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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Wy,yvL,t4b,wu,Ez,FL4,Kd,fd,Ma,qa,EPR,NuR,Uz,gPn,Pnt,xP,vPj,ebu,hbj,Nr,pyd,idd,Tut,qzv,Uav,cz,fq,SQ,DI,ltG,xJ,xav,kJ,AA,$J,sR4,Hz,X6,Yza,jRy,$au,wW,Hdn,Fj,Xy4,Nu,nP4,Iv,GGn,QRb,wzu,Dq,tQv,FfR,EJb,Nmd,IIG,SP,yAt,Mu,WfL,VQy,ziR,eid,hiu,Bd,Kfb,pzv,iqd,fId,mrj,MQz,u6L,SEz,xrd,ssR,YEj,$rb,Hqv,nJv,bt,Xzv,QsL,ZqL,WCt,FCa,wdt,EEy,tP4,Zq,Tmu,yG,WZ,w3,NWv,t_,PtL,Iqj,gEz,Cu,Ctj,Oea,dun,z4z,LCz,cmG,e4z,h4j,IG,KCt,iea,cZ,TWP,Uuv,pu,Duv,kjb,muR,svP,Y3R,BWj,XdP,jvb,Gjt,beu,Qvv,y_u,Why,ERL,C_t,c_y,KhP,MhR,J_,
U5y,Sxa,D54,XM,aG,r3,QG,tX,Nl,Ih,R1y,nRd,HuG,G3R,QGy,KJ,Zud,i7,fJ,Ml,ql,WXv,Vmd,w7u,tmb,FXP,N$z,IBa,gX4,P7z,OJP,DB,Sm,vXj,dly,LXu,cXR,z8P,e8z,h8b,oXv,JX,Rh,$X,nJ,Xy,p7P,ah,fB4,UlR,r$,uya,Scd,Dl4,Qe,lBu,xlb,kCn,ZB,Yct,W3,R8R,jhb,VL,nXR,$lj,HJy,X7L,aBL,GCP,E9,rXR,bJj,NG,Qhz,ZJa,IS,gU,P3,Cz,yUG,VDb,Wbb,O9,tDb,FbG,EYt,zc,eD,hU,oS,Kz,pz,NU4,ISP,gYy,Pj4,CjP,Ozv,vYj,dGd,Lbz,zCz,cUG,eC4,fz,hCn,oYb,uj,Kbz,lj,xY,p3b,TU4,mGy,MDj,UGR,u0d,S9G,kcv,sSz,AUP,Y9L,BUu,JUb,RC4,Hzv,AU,X3L,aSb,GcR,rUn,bzd,QSn,yGR,Oad,
vub,dRj,cGb,epy,nz,hpL,pMn,TJG,mRu,MAb,qfL,URy,uoy,Sfj,DRy,xRL,kkz,iau,suR,AGv,Yfv,BJd,JGn,Rp4,juL,$Rv,nut,rGP,aan,Zau,baL,Quj,VHn,w1L,tHv,yod,Edv,WTv,IZG,NR,gdd,Iu,PM,POd,Obt,vdG,zwb,m14,ewd,coy,ody,p1a,hwz,D1d,U1a,lZv,x14,kt4,sfP,Aod,BfP,Yya,Rwa,jfz,$1R,ndb,X1a,Gta,rou,bby,Zbv,Qft,CUP,dJ,OGn,dVL,Ldn,znd,cby,env,oVP,KdP,pVb,pa,iz,iGj,UVR,m1,MR,l7u,kId,HGd,SA,rba,bGR,Wjy,ZGy,ysn,AG,VXP,w4u,Fjj,iBL,f3z,TiP,mOd,MXL,q14,uUa,S1b,l3P,DOa,sAt,au,Qc,Y14,Biu,Jsj,RLd,jAL,$Oy,HBz,a3z,X4y,P1,Oy,v1,NEu,Ibd,zt,
Phj,Cht,c1,v2R,OAj,pUj,iAz,fbz,mkv,u1u,Dky,lbL,xkd,kpa,AfL,BEG,JfG,Kb,n2z,abL,GpG,rfn,bAR,QVv,XUL,$kG,jVt,iO,Ryv,ZAv,W6d,F6v,wpt,mT,NQv,gIP,Pb4,Cbd,Oin,uO,vIG,L6b,dNv,z9v,e9d,lO,TQb,MsR,UNv,SgP,Ao,lYv,Jo,nb,$d,Atb,DNt,Ygj,af,jpv,bO,Q6,Hiz,GDG,bi4,Qp4,Zin,ZZ,yLt,ya,WJL,wlb,tiL,FJz,Ekd,IRt,Va,gkb,P4b,tb,NV,vkz,dTn,LJb,gV,emL,hmL,KJn,LG,qhL,UTz,TSz,Sh4,DTP,lRR,KG,iU,fG,ALR,Yha,md,BSt,JLz,Rmj,j0n,nku,H7j,Xlz,aRL,$TG,GYt,UF,b7a,Z74,uU,Q0L,y8z,rLz,WN4,D7,wfP,tKb,FNn,EyP,IAv,Nyt,gyt,OMj,PuR,dBv,oyv,pfR,
iMn,Tyz,q0G,MKj,mBG,UBG,S0z,lAd,DBa,ky4,A84,Y04,Byv,J8j,XfL,HMd,aAz,Gyd,GI,rV,r8d,Q2v,y1v,wNP,FRa,tMv,zJ,EFG,ZMj,vFb,d8v,LRP,KB,zzv,ezz,KRR,f2j,igd,qnv,U8y,u$u,Snj,l2j,Ynb,x8j,swa,A1t,BwR,J1y,jwj,Rzz,nFL,$8n,lC,Hgy,a2P,G2t,Zgb,jX,$_,yzG,W_R,nB,F_4,GJ,ri,bC,gCv,QC,O2d,WU,vCL,dKG,L_a,z5P,tf,czn,h5j,oCP,pER,fHG,MEz,UKn,vU,urj,SBP,DKj,lHv,xKt,k4P,sBn,AzL,zp,JzR,R5j,jBv,$KP,nCz,H2u,XEG,aH4,G4L,rzz,b2v,QBu,Z2z,ih,CNn,OOd,fA,Tp,m9,v1L,doG,LSt,zd4,cxb,edL,hdt,fPb,TP4,moR,MWz,qTL,uh,Db,lh,x2,Af,Y2,BU,u4G,
RV,DoP,j1,lPR,xoL,$2,kwz,scj,Ax4,X94,Gw4,ycP,tBu,wWj,aPv,FgG,IpR,pWb,dgz,MBz,zk4,mgv,q$P,rE,ueR,Wp,DgR,lpP,kAu,s6P,Acy,Bgu,tt,Rky,j6n,$gR,nAn,H6d,XWj,apn,JcG,b6y,Q6L,Z6j,Eg,FMz,Ecb,tYv,I8j,gcd,CEb,ODn,PEd,h6n,KMz,iDL,Tcv,zD,SrL,uZG,sUL,Yru,Bct,JYG,R6n,jU4,$MG,TD,ZDb,WmL,bDR,rYu,ylv,HDv,waL,d4v,ESj,NLd,IQt,fQv,m4y,i5v,D4v,pab,ncj,SUR,FmL,vSd,TLz,Vl4,a8P,XCL,Gbv,QUy,Kmt,$I,aQL,rlP,b5d,QdL,Z5R,I1v,dHj,LGt,yp,cnP,onu,f1L,inz,mHt,Mfa,UHb,SPb,uRu,DHd,Pl,l1P,xHb,sJv,k$G,C7,jJy,RMG,JnL,X5v,$Hd,a14,Hnu,G$j,
vl,rnz,yOy,QJz,Zna,Vy4,FHz,cl,I6y,E9G,g9v,v9P,dUu,cOz,h7P,K7,p7,ivt,f6v,TY,mJ,T7G,MT,qT,mUz,Uh,Myn,u4,qZd,UUG,DR,uWu,SZz,DUv,l6R,xUj,stn,kry,YZt,R74,JOz,jta,$Ub,AOb,n9z,a6z,Xej,B7G,Grt,rOv,AL,bvj,Zvv,QtG,yDd,Waz,wmu,V3j,t3R,Bl,EUL,Nxn,Fab,gUu,Pwn,Cw4,Lan,eTv,iVP,M3n,JL,uuG,Spj,R0,DEn,Hl,XD,Ypz,$k,rS,Bx4,JD4,jDP,$Ed,HVn,aEz,GSz,rDy,bVa,ydG,FUj,wXb,ZVv,Eev,NKn,yV,t6R,ITd,wy,gev,PPt,CPz,OFR,zlu,vea,LUu,oed,KUR,mWj,TKz,UWv,kWt,sXz,YXb,JdG,Rlv,$Wt,neL,HFy,aTP,GWG,rdu,ZFd,w8R,tdj,y$j,EWy,IxP,N4v,Fqb,gWd,
CQR,Olb,vWt,d_b,LqR,LM,zy,h8,KM,h3j,oWP,p8z,T4P,pM,iu,m_v,fM,U_n,uhv,Svy,mN,s1u,J$4,j1v,$_b,nWP,HlR,X8P,r$n,qB,bly,yPj,U0,W$j,tId,F$n,Esy,wgb,Owu,L$P,vsj,zSP,hSt,K$j,iwL,MIn,mIG,SHa,xy,DIt,lC4,ky,xIy,s0,k0j,syu,APP,BDj,YHa,JPb,RSR,jyG,$Ib,bwR,ZwG,Wxv,y0v,aCj,HwG,wYy,Fxt,PKP,CK4,dYb,oGz,pYy,J8,iHv,TFu,mYz,qQj,DYu,kFz,YQj,BFd,J0R,R0a,XYv,jPR,bHv,QPL,yRt,$y,V9v,wsv,t9v,FFa,E$b,N6z,Igt,PyR,Cyy,a2,OoR,v$v,LFa,ry,dcd,cRG,KFu,ZA,psu,iob,fgy,M9G,qKz,T6t,ubv,xcG,kfz,sgz,En,ARb,REv,jgv,PN,HoL,$cn,n$b,agP,rRv,
bov,Qga,VNy,Fub,tNj,wQu,EgG,IGz,ggt,d2v,PJb,Lut,cqn,z$L,ijR,m2a,qea,uIv,knu,j4y,ngv,Hjv,rqy,Q4u,$F,w5,txj,I4L,NoR,Pdy,Cdj,vfd,O8b,dfP,LB4,tz,WgP,FB4,gfy,Efz,WE,eKb,hKu,ofL,KBb,pwR,i84,f4P,Tov,cE,mfL,eE,MxL,qJP,Ufy,ugb,K2,SJy,xfL,sav,ABG,nfn,Xw4,a4j,Gmj,b8G,Qan,ug,yrv,WIb,VZv,wqn,tZb,FIt,N1G,gov,CIy,O$a,eId,zIa,hIn,pqd,i$L,Az,fsz,T1y,mnv,Unv,SVt,ufb,lsd,k6z,RB,ArG,YVL,sxu,B1P,Jrz,jxL,nou,$nG,H$v,RIb,XqP,asy,G6P,rry,b$R,Qxb,Z$v,ygz,WZb,tnu,wh4,FZt,Nzu,E0v,jE,INL,CTz,LZG,g0v,egt,hgL,o0v,KZz,uBv,S8a,
lNn,xxj,VY,Y8P,ji4,H3R,wP,rg4,Gdy,b3b,ET,QiP,Z3v,ySv,VLb,wPt,tLn,FPy,NdL,IkP,eYa,di4,zYv,oKa,hYy,KPz,pPj,fkz,mit,qAd,uSd,JSu,op4,pBn,ihR,f0b,T04,mCa,qmj,UCd,DCv,l0v,xCn,k5y,sY4,AZy,YmR,B0j,jYt,XBz,oc,KO,pO,iN,a0z,mS,rZv,Fon,Cft,g5v,MVv,qRu,U$4,QYb,tVb,Wov,SRd,D$u,l9a,NeP,k8a,AC4,BeL,jLj,$$P,Y1,Rc,jW,bKy,rCL,WOb,VUL,Ca4,vtR,LO4,zFv,hFj,KOy,otd,fOP,mdz,lOb,S4R,q4u,DdL,UdR,xdv,Y4R,tc,aOt,ntP,rWL,brb,ZrL,yjj,E$,W3y,twb,Eqv,NaG,gqy,IuR,gg,L3n,zA,cjn,eRy,eB,hRj,oqt,K34,p_u,isy,fuP,Tan,mJG,Mwv,q_P,UJa,u7d,
S_y,DJz,lut,hc,xJG,khL,s54,Ajb,Y_u,Baa,JjP,RRu,j5a,$Jv,nqb,Hsv,K6,au4,rjj,Q5u,Wld,tFn,Fln,Erv,IrG,Ppt,Cpb,O9j,SB,ckj,LlP,eGn,hGz,oru,i9n,frR,TXb,MFn,$A,UDP,R6,SSv,DDy,n6,lrP,xDy,kXy,szL,Xe,JkR,jzy,arn,XG4,rkj,b9P,y3,Qzt,Z9L,WsL,wvv,tcv,Ehb,NkL,Vct,ghy,Pqv,Lsv,hrP,ohG,WC,KsG,pva,McR,itn,Tkz,mFu,lUu,UFv,xFn,s_P,Ytu,Bkz,J4u,Rrv,j_4,$FP,Ht4,Xvb,aUb,Gib,r4P,Q_t,y3u,w6d,NRt,PxL,OmP,Li4,IU,zxL,c3v,exn,hxz,owj,p6b,imu,fin,TRd,mhz,Mjy,qjv,Uhj,u94,Sj4,Dhn,xhG,liy,A3j,BRa,Or,J3v,$hv,j7j,X6b,aib,GEP,r3y,Zmv,
V$j,Wwt,Q7P,Fw4,t$G,Pvb,EZj,hY,IdP,cEu,vZb,dwd,Lwy,zhv,eha,oZv,hhG,oU,KD,M$y,pDj,mwu,TOz,iNn,fdG,uQv,Dw4,xwP,ldG,YbP,AEa,Rhb,jEd,nZv,HNy,$wj,XDa,G_u,adt,bN4,yQt,Ur,W74,VoL,F7a,PHj,zQL,SY,eQj,ptP,mtn,T_R,iRy,fov,sr,uYn,Mob,q2R,S2G,loj,DtR,slP,AQv,B_R,JQt,RQ4,jld,$tb,HRu,Xt4,rc,GTL,Q3,rQ4,yVd,WVu,V4,VTR,tTz,v4n,N4,IXt,OUv,g4j,P$R,cVu,eeR,zen,heR,o4L,fXP,KVj,TIv,mPP,gL,qin,UPy,uFP,MTn,OU,Siv,Pa,ken,jNj,$Pu,n4d,HUv,XOG,aXR,QNR,rVz,bU4,GeP,yyn,wRb,Ead,Ntb,gaP,Opa,PY4,CYv,vaP,L4y,zfv,cyy,efv,hfR,oad,pRd,
od,fwj,MGL,mzG,Uzn,qG4,uPu,SGt,Dzt,K5,xzu,Hpv,$zP,Gv4,ryR,Vez,wxy,tey,F2y,EQb,NHR,Prv,CrG,OWd,vQR,zOz,cpd,eOu,hOd,oQP,K24,pxa,iWL,fVb,THt,Me4,qNy,ULP,SNn,lVz,Apj,soG,kNj,xLd,ROt,BHv,$LR,HWd,Xxd,aVb,Ba,GNv,rpd,bWy,W8u,Qob,V_P,ZWL,w2P,$S,t_v,F84,ENn,yIu,NCd,OYj,d7n,e_z,X2,h_n,K8z,oNa,p2j,iYy,fnj,TCu,m7R,qoP,U7L,ua4,SoL,x7d,lnd,BCt,D7a,GP,JIG,kxv,YoR,$7a,HYn,bYu,Gxd,rIt,ana,X2u,FR,yFy,VCP,wHR,tCv,FYR,EOv,Cov,IMP,Nht,gOR,pHu,oOn,Pov,hWG,U3d,uKv,SIy,D3t,lM4,x3G,kZj,set,Bhv,RWu,$3n,HIL,XHz,aM4,Qea,bI4,
ZIy,WzG,T$,tJL,Fzu,ETj,NM4,MH,qH,Pcu,vTy,hNd,i0G,fFa,TMR,mQL,MJa,q5t,usL,DQb,S5P,lFj,klG,snR,A5n,Y5y,BMy,J5G,l8,RNG,Gld,r5n,H0v,nTz,aFG,Xuj,t5a,Wrv,An,Frb,ELv,NBv,Ima,gLy,Pm4,Ok4,dva,ztn,etP,oLR,fmn,TBn,mvj,UvP,qqy,M5a,uCL,Sqb,lm4,xv4,kav,sWG,$n,Yqj,BBd,J9G,jWL,Rtv,$vt,HkR,Ga4,r9L,bkv,QWb,ZkG,VRj,wou,ywL,Wet,PGn,CGG,vML,dya,Le4,zvP,cwy,evd,KeR,poa,fWb,myb,TjR,MRd,yS,q7G,UyG,uAd,S7j,kLR,xyR,Y7a,Bj4,jMv,nMz,HPG,XoG,aWu,GLd,rwR,bPL,QM4,ZPj,yhv,Vqb,WDR,wIt,tqd,FDG,EDj,Nvt,ILa,gDn,Ce4,OXP,Peb,NU,dqd,LDy,
zst,chv,hsz,KDt,pIP,iXL,fLb,Tvn,mqP,qMb,Uqv,SML,lLv,kVv,Bvd,Ahj,sHv,YMn,Jhu,Rsn,jHv,HXP,XIy,aLL,GVa,rhb,bXd,QHv,yTP,ZXv,Wvu,Vvd,wrL,tvv,E7R,NbG,IKP,g7n,PRG,CRv,OQR,v74,Lvb,zP4,cTP,ePa,o7v,Kvn,pr4,Tba,m0b,iQP,fKa,U0y,u3n,SC4,x0R,k9v,pv,JTn,RPv,$0G,XrR,HQz,aK4,G9z,i0,Tr,bQa,Qrv,qU,UZ,VzL,ZQd,yaj,F5v,Emn,N8y,I$z,OTG,dbL,L5L,z2b,cad,e2n,omb,K54,pAd,iTn,f$u,T8v,mbb,D6,Mzv,qW4,x9,UbL,uzn,SWv,Dbj,l$4,xbj,AO,Y9,kzv,sq4,Be,AaP,YWR,B8a,Jav,jqy,$by,HTy,bTz,ra4,Gzv,Qqb,ZT4,Fny,VSv,wkd,Wnz,tSP,Rt,Ilj,gHd,PBL,
CBL,O_u,dju,zXv,hXz,i_G,Knd,jy,oHy,quj,uwb,Sun,DjP,llu,xjj,sKv,A2u,Yuv,BGb,RXu,jKt,$jy,H_4,XkG,GBG,r2n,WEa,wJn,Vkz,FEy,PXz,CXv,OLd,v3v,LEu,eqt,Gr,hqv,o3G,KEv,pJG,fjv,Tlv,mpj,Mkb,Upy,SYz,DpG,ljv,r7,xpz,kun,YYu,Blt,b0,QS,jQG,JKj,HLz,$pn,XJv,Wm,Guy,rKu,ZLu,Wcu,VW,wTn,t8v,FcG,Ezv,NNz,Icv,gzb,OZj,zo4,ceG,ozb,eot,hoG,Kcv,TNR,pTv,fcd,mAL,M8z,qa4,Sab,DAt,lcu,k1v,s9R,j9R,RoL,G1L,Q9G,CV,ZZu,vVP,yHu,WAG,wFy,EbP,NAP,dsj,LAy,zVa,cHj,eV4,hVR,KAa,pFv,fzR,msy,iSv,TAt,qwd,MpR,Dsj,u8G,lzG,xsv,kUv,sFb,AHL,BA4,Ywa,$sR,
XFd,nbn,azR,GUt,rHv,oD,bSL,QFz,pV,yuv,ZSG,Wpn,V2n,t2v,Fpv,Nnv,I_z,g84,P3t,C3u,dZt,cun,o8n,haz,Kpv,p$4,Tna,kHu,UZR,AuL,Ydz,Jun,RaL,Hfn,X$P,GHd,rua,bfn,Zfz,y6y,Wtu,VuG,wiP,tut,Ftv,NqR,PLu,CLa,OEu,vlu,dmv,Ltz,zun,huz,euP,iER,fvv,Tqy,mm4,MuR,Umn,qDL,SDL,sCv,jCv,J6u,$mt,nlt,HEj,avy,nV,r6z,GS,QCa,yN4,WWu,Exv,IDv,OxG,d6u,LWP,cNG,eBd,hBL,KW4,ixu,fDz,m6z,U6R,qlv,Maz,yH,Slb,umd,D6n,lDn,x6z,kKn,sZn,ANR,Ylz,JNn,RBG,jZj,$6v,nxa,Hxu,Xcb,aD4,GKd,bxL,QZv,EBR,NTd,I5P,PlG,Clt,O4R,LkR,NW,Kkv,p0G,i44,f5n,TTu,IX,gK,Cb,
PX,OX,l54,skz,YOn,A7n,dK,BTd,J7a,RJR;_.yj=function(y,W){if(Error.captureStackTrace)Error.captureStackTrace(this,_.yj);else{var V=Error().stack;V&&(this.stack=V)}y&&(this.message=String(y));W!==void 0&&(this.cause=W)};
Wy=function(){throw Error("E");};
yvL=function(y,W){W=String.fromCharCode.apply(null,W);return y==null?W:y+W};
t4b=function(y){var W=!1;W=W===void 0?!1:W;if(WLu){if(W&&(V4a?!y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(y)))throw Error("F");y=(wyv||(wyv=new TextEncoder)).encode(y)}else{for(var V=0,w=new Uint8Array(3*y.length),t=0;t<y.length;t++){var F=y.charCodeAt(t);if(F<128)w[V++]=F;else{if(F<2048)w[V++]=F>>6|192;else{if(F>=55296&&F<=57343){if(F<=56319&&t<y.length){var I=y.charCodeAt(++t);if(I>=56320&&I<=57343){F=(F-55296)*1024+I-56320+65536;w[V++]=F>>18|
240;w[V++]=F>>12&63|128;w[V++]=F>>6&63|128;w[V++]=F&63|128;continue}else t--}if(W)throw Error("F");F=65533}w[V++]=F>>12|224;w[V++]=F>>6&63|128}w[V++]=F&63|128}}y=V===w.length?w:w.subarray(0,V)}return y};
wu=function(y){_.Vj.setTimeout(function(){throw y;},0)};
_.tv=function(y,W){return y.lastIndexOf(W,0)==0};
Ez=function(y,W){var V=y.length-W.length;return V>=0&&y.indexOf(W,V)==V};
_.gu=function(y){return/^[\s\xa0]*$/.test(y)};
_.Cd=function(y,W){return y.indexOf(W)!=-1};
_.Oz=function(y,W){return _.Cd(y.toLowerCase(),W.toLowerCase())};
_.Ld=function(y,W){var V=0;y=vy(String(y)).split(".");W=vy(String(W)).split(".");for(var w=Math.max(y.length,W.length),t=0;V==0&&t<w;t++){var F=y[t]||"",I=W[t]||"";do{F=/(\d*)(\D*)(.*)/.exec(F)||["","","",""];I=/(\d*)(\D*)(.*)/.exec(I)||["","","",""];if(F[0].length==0&&I[0].length==0)break;V=FL4(F[1].length==0?0:parseInt(F[1],10),I[1].length==0?0:parseInt(I[1],10))||FL4(F[2].length==0,I[2].length==0)||FL4(F[2],I[2]);F=F[3];I=I[3]}while(V==0)}return V};
FL4=function(y,W){return y<W?-1:y>W?1:0};
_.cy=function(){var y=_.Vj.navigator;return y&&(y=y.userAgent)?y:""};
Kd=function(y){if(!e4||!oR)return!1;for(var W=0;W<oR.brands.length;W++){var V=oR.brands[W].brand;if(V&&_.Cd(V,y))return!0}return!1};
fd=function(y){return _.Cd(_.cy(),y)};
Ma=function(){return e4?!!oR&&oR.brands.length>0:!1};
qa=function(){return Ma()?!1:fd("Opera")};
EPR=function(){return Ma()?!1:fd("Trident")||fd("MSIE")};
NuR=function(){return Ma()?Kd("Microsoft Edge"):fd("Edg/")};
Uz=function(){return fd("Firefox")||fd("FxiOS")};
_.Dt=function(){return fd("Safari")&&!(_.S4()||(Ma()?0:fd("Coast"))||qa()||(Ma()?0:fd("Edge"))||NuR()||(Ma()?Kd("Opera"):fd("OPR"))||Uz()||fd("Silk")||fd("Android"))};
_.S4=function(){return Ma()?Kd("Chromium"):(fd("Chrome")||fd("CriOS"))&&!(Ma()?0:fd("Edge"))||fd("Silk")};
_.Ita=function(){return fd("Android")&&!(_.S4()||Uz()||qa()||fd("Silk"))};
gPn=function(y){var W={};y.forEach(function(V){W[V[0]]=V[1]});
return function(V){return W[V.find(function(w){return w in W})]||""}};
Pnt=function(y){var W=_.cy();if(y==="Internet Explorer"){if(EPR())if((y=/rv: *([\d\.]*)/.exec(W))&&y[1])W=y[1];else{y="";var V=/MSIE +([\d\.]+)/.exec(W);if(V&&V[1])if(W=/Trident\/(\d.\d)/.exec(W),V[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":y="8.0";break;case "5.0":y="9.0";break;case "6.0":y="10.0";break;case "7.0":y="11.0"}else y="7.0";else y=V[1];W=y}else W="";return W}var w=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var t;t=w.exec(W);)V.push([t[1],t[2],t[3]||void 0]);
W=gPn(V);switch(y){case "Opera":if(qa())return W(["Version","Opera"]);if(Ma()?Kd("Opera"):fd("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(Ma()?0:fd("Edge"))return W(["Edge"]);if(NuR())return W(["Edg"]);break;case "Chromium":if(_.S4())return W(["Chrome","CriOS","HeadlessChrome"])}return y==="Firefox"&&Uz()||y==="Safari"&&_.Dt()||y==="Android Browser"&&_.Ita()||y==="Silk"&&fd("Silk")?(W=V[2])&&W[1]||"":""};
_.Cna=function(y){if(Ma()&&y!=="Silk"){var W=oR.brands.find(function(V){return V.brand===y});
if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=Pnt(y);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])};
xP=function(){return e4?!!oR&&!!oR.platform:!1};
_.Odt=function(){return xP()?oR.platform==="Android":fd("Android")};
vPj=function(){return fd("iPhone")&&!fd("iPod")&&!fd("iPad")};
_.kP=function(){return vPj()||fd("iPad")||fd("iPod")};
_.dad=function(){return xP()?oR.platform==="macOS":fd("Macintosh")};
_.LLP=function(){return xP()?oR.platform==="Windows":fd("Windows")};
_.zbu=function(){return xP()?oR.platform==="Chrome OS":fd("CrOS")};
_.Av=function(y){return y[y.length-1]};
_.By=function(y,W,V){W=_.cvv(y,W,V);return W<0?null:typeof y==="string"?y.charAt(W):y[W]};
_.cvv=function(y,W,V){for(var w=y.length,t=typeof y==="string"?y.split(""):y,F=0;F<w;F++)if(F in t&&W.call(V,t[F],F,y))return F;return-1};
ebu=function(y){for(var W=_.Jv,V=typeof y==="string"?y.split(""):y,w=y.length-1;w>=0;w--)if(w in V&&W.call(void 0,V[w],w,y))return w;return-1};
_.j4=function(y,W){return _.RR(y,W)>=0};
_.nd=function(y,W){_.j4(y,W)||y.push(W)};
_.GG=function(y,W){W=_.RR(y,W);var V;(V=W>=0)&&_.aR(y,W);return V};
_.aR=function(y,W){Array.prototype.splice.call(y,W,1)};
_.ru=function(y){var W=y.length;if(W>0){for(var V=Array(W),w=0;w<W;w++)V[w]=y[w];return V}return[]};
_.yK=function(y,W){for(var V=1;V<arguments.length;V++){var w=arguments[V];if(_.bn(w)){var t=y.length||0,F=w.length||0;y.length=t+F;for(var I=0;I<F;I++)y[t+I]=w[I]}else y.push(w)}};
_.oPj=function(y,W,V,w){Array.prototype.splice.apply(y,hbj(arguments,1))};
hbj=function(y,W,V){return arguments.length<=2?Array.prototype.slice.call(y,W):Array.prototype.slice.call(y,W,V)};
Nr=function(y,W){W=W||y;for(var V=0,w=0,t={};w<y.length;){var F=y[w++],I=_.VK(F)?"o"+_.tA(F):(typeof F).charAt(0)+F;Object.prototype.hasOwnProperty.call(t,I)||(t[I]=!0,W[V++]=F)}W.length=V};
_.KLy=function(y,W,V){V=V||_.Is;for(var w=0,t=y.length,F;w<t;){var I=w+(t-w>>>1);var P=V(W,y[I]);P>0?w=I+1:(t=I,F=!P)}return F?w:-w-1};
_.gm=function(y,W,V){if(!_.bn(y)||!_.bn(W)||y.length!=W.length)return!1;var w=y.length;V=V||pyd;for(var t=0;t<w;t++)if(!V(y[t],W[t]))return!1;return!0};
_.Is=function(y,W){return y>W?1:y<W?-1:0};
pyd=function(y,W){return y===W};
idd=function(y,W,V){W=Array.prototype.splice.call(y,W,1);Array.prototype.splice.call(y,V,0,W[0])};
Tut=function(y){return fty[y]||""};
qzv=function(y){if(!ma4)return _.Cq(y);y=M4L.test(y)?y.replace(M4L,Tut):y;y=atob(y);for(var W=new Uint8Array(y.length),V=0;V<y.length;V++)W[V]=y.charCodeAt(V);return W};
Uav=function(y,W){y.__closure__error__context__984382||(y.__closure__error__context__984382={});y.__closure__error__context__984382.severity=W};
_.dm=function(y){y=Error(y);Uav(y,"warning");return y};
cz=function(y,W){if(y!=null){var V;var w=(V=uvb)!=null?V:uvb={};V=w[y]||0;V>=W||(w[y]=V+1,y=Error(),Uav(y,"incident"),wu(y))}};
fq=function(y,W,V){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(V===void 0?0:V)&&Symbol.for&&y?Symbol.for(y):y!=null?Symbol(y):Symbol():W};
SQ=function(y,W){qr||_.UE in y||Szb(y,Dau);y[_.UE]|=W};
DI=function(y,W){qr||_.UE in y||Szb(y,Dau);y[_.UE]=W};
ltG=function(y){if(4&y)return 512&y?512:1024&y?1024:0};
xJ=function(y){SQ(y,34);return y};
xav=function(y){SQ(y,32);return y};
kJ=function(){return typeof BigInt==="function"};
AA=function(y,W){return W===void 0?y.copyOnWrite!==sE&&!!(2&(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.UE]|0)):!!(2&W)&&y.copyOnWrite!==sE};
_.Rs=function(y,W){if(y!=null)if(typeof y==="string")y=y?new YJ(y,Bz):_.JA();else if(y.constructor!==YJ)if(kGv&&y!=null&&y instanceof Uint8Array)y=y.length?new YJ(new Uint8Array(y),Bz):_.JA();else{if(!W)throw Error();y=void 0}return y};
$J=function(y,W){if(typeof W!=="number"||W<0||W>=y.length)throw Error();};
sR4=function(y,W,V){var w=W&128?0:-1,t=y.length,F;if(F=!!t)F=y[t-1],F=F!=null&&typeof F==="object"&&F.constructor===Object;var I=t+(F?-1:0);for(W=W&128?1:0;W<I;W++)V(W-w,y[W]);if(F){y=y[t-1];for(var P in y)!isNaN(P)&&V(+P,y[P])}};
Hz=function(y){return y&128?nq:void 0};
X6=function(y){y.isGuard_doNotManuallySetPrettyPlease=!0;return y};
Yza=function(){var y=Avj;return X6(function(W){for(var V in y)if(W===y[V]&&!/^[0-9]+$/.test(V))return!0;return!1})};
_.rm=function(y){var W=y;if(Buj(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(Jvy(W)&&!Number.isSafeInteger(W))throw Error(String(W));return as?BigInt(y):y=Rbn(y)?y?"1":"0":Buj(y)?y.trim()||"0":String(y)};
jRy=function(y,W){if(y.length>W.length)return!1;if(y.length<W.length||y===W)return!0;for(var V=0;V<y.length;V++){var w=y[V],t=W[V];if(w>t)return!1;if(w<t)return!0}};
$au=function(y){var W=y>>>0;ZI=W;Vu=(y-W)/4294967296>>>0};
wW=function(y){if(y<0){$au(-y);var W=_.N(nP4(ZI,Vu));y=W.next().value;W=W.next().value;ZI=y>>>0;Vu=W>>>0}else $au(y)};
Hdn=function(y,W){var V=W*4294967296+(y>>>0);return Number.isSafeInteger(V)?V:_.tm(y,W)};
Fj=function(y,W){var V=W&2147483648;V&&(y=~y+1>>>0,W=~W>>>0,y==0&&(W=W+1>>>0));y=Hdn(y,W);return typeof y==="number"?V?-y:y:V?"-"+y:y};
_.tm=function(y,W){W>>>=0;y>>>=0;if(W<=2097151)var V=""+(4294967296*W+y);else kJ()?V=""+(BigInt(W)<<BigInt(32)|BigInt(y)):(V=(y>>>24|W<<8)&16777215,W=W>>16&65535,y=(y&16777215)+V*6777216+W*6710656,V+=W*8147497,W*=2,y>=1E7&&(V+=y/1E7>>>0,y%=1E7),V>=1E7&&(W+=V/1E7>>>0,V%=1E7),V=W+Xy4(V)+Xy4(y));return V};
Xy4=function(y){y=String(y);return"0000000".slice(y.length)+y};
_.E3=function(y,W){W&2147483648?kJ()?y=""+(BigInt(W|0)<<BigInt(32)|BigInt(y>>>0)):(W=_.N(nP4(y,W)),y=W.next().value,W=W.next().value,y="-"+_.tm(y,W)):y=_.tm(y,W);return y};
Nu=function(y){if(y.length<16)wW(Number(y));else if(kJ())y=BigInt(y),ZI=Number(y&BigInt(4294967295))>>>0,Vu=Number(y>>BigInt(32)&BigInt(4294967295));else{var W=+(y[0]==="-");Vu=ZI=0;for(var V=y.length,w=W,t=(V-W)%6+W;t<=V;w=t,t+=6)w=Number(y.slice(w,t)),Vu*=1E6,ZI=ZI*1E6+w,ZI>=4294967296&&(Vu+=Math.trunc(ZI/4294967296),Vu>>>=0,ZI>>>=0);W&&(W=_.N(nP4(ZI,Vu)),y=W.next().value,W=W.next().value,ZI=y,Vu=W)}};
nP4=function(y,W){W=~W;y?y=~y+1:W+=1;return[y,W]};
Iv=function(y){return Array.prototype.slice.call(y)};
_.gW=function(y,W){throw Error(W===void 0?"unexpected value "+y+"!":W);};
_.O3=function(y){if(y!=null&&typeof y!=="number")throw Error("L`"+typeof y+"`"+y);return y};
_.atd=function(y){if(y==null||typeof y==="number")return y;if(y==="NaN"||y==="Infinity"||y==="-Infinity")return Number(y)};
GGn=function(y){if(y!=null&&typeof y!=="boolean")throw Error("M`"+_.Le(y)+"`"+y);return y};
_.rvv=function(y){if(y==null||typeof y==="boolean")return y;if(typeof y==="number")return!!y};
_.cd=function(y){switch(typeof y){case "bigint":return!0;case "number":return zj(y);case "string":return bdj.test(y);default:return!1}};
_.hm=function(y){if(!zj(y))throw _.dm("enum");return y|0};
_.pe=function(y){return y==null?y:zj(y)?y|0:void 0};
QRb=function(y){if(typeof y!=="number")throw _.dm("int32");if(!zj(y))throw _.dm("int32");return y|0};
_.fe=function(y){return y==null?y:QRb(y)};
_.mC=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return zj(y)?y|0:void 0};
_.Zdu=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return zj(y)?y>>>0:void 0};
wzu=function(y){var W=0;W=W===void 0?0:W;if(!_.cd(y))throw _.dm("int64");var V=typeof y;switch(W){case 512:switch(V){case "string":return Mu(y);case "bigint":return String(U3(64,y));default:return yAt(y)}case 1024:switch(V){case "string":return WfL(y);case "bigint":return _.rm(U3(64,y));default:return VQy(y)}case 0:switch(V){case "string":return Mu(y);case "bigint":return _.rm(U3(64,y));default:return SP(y)}default:return _.gW(W,"Unknown format requested type for int64")}};
Dq=function(y){return y==null?y:wzu(y)};
tQv=function(y){if(y[0]==="-")return!1;var W=y.length;return W<20?!0:W===20&&Number(y.substring(0,6))<184467};
FfR=function(y){var W=y.length;return y[0]==="-"?W<20?!0:W===20&&Number(y.substring(0,7))>-922337:W<19?!0:W===19&&Number(y.substring(0,6))<922337};
EJb=function(y){if(y<0){wW(y);var W=_.tm(ZI,Vu);y=Number(W);return xE(y)?y:W}W=String(y);if(tQv(W))return W;wW(y);return Hdn(ZI,Vu)};
Nmd=function(y){if(FfR(y))return y;Nu(y);return _.E3(ZI,Vu)};
IIG=function(y){if(tQv(y))return y;Nu(y);return _.tm(ZI,Vu)};
SP=function(y){y=kE(y);xE(y)||(wW(y),y=Fj(ZI,Vu));return y};
_.gJt=function(y){y=kE(y);return y>=0&&xE(y)?y:EJb(y)};
yAt=function(y){y=kE(y);if(xE(y))y=String(y);else{var W=String(y);FfR(W)?y=W:(wW(y),y=_.E3(ZI,Vu))}return y};
_.P2d=function(y){y=kE(y);if(y>=0&&xE(y))y=String(y);else{var W=String(y);tQv(W)?y=W:(wW(y),y=_.tm(ZI,Vu))}return y};
Mu=function(y){var W=kE(Number(y));if(xE(W))return String(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return Nmd(y)};
WfL=function(y){var W=kE(Number(y));if(xE(W))return _.rm(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return kJ()?_.rm(U3(64,BigInt(y))):_.rm(Nmd(y))};
VQy=function(y){return xE(y)?_.rm(SP(y)):_.rm(yAt(y))};
_.C2t=function(y){return xE(y)?_.rm(_.gJt(y)):_.rm(_.P2d(y))};
_.Oqn=function(y){var W=kE(Number(y));if(xE(W)&&W>=0)return String(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return IIG(y)};
_.vJR=function(y){var W=kE(Number(y));if(xE(W)&&W>=0)return _.rm(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return kJ()?_.rm((0,_.s3)(64,BigInt(y))):_.rm(IIG(y))};
_.Lfn=function(y){if(y==null)return y;if(typeof y==="bigint")return drb(y)?y=Number(y):(y=U3(64,y),y=drb(y)?Number(y):String(y)),y;if(_.cd(y))return typeof y==="number"?SP(y):Mu(y)};
ziR=function(y,W){W=W===void 0?!1:W;var V=typeof y;if(y==null)return y;if(V==="bigint")return String(U3(64,y));if(_.cd(y))return V==="string"?Mu(y):W?yAt(y):SP(y)};
_.cA4=function(y){var W=typeof y;if(y==null)return y;if(W==="bigint")return _.rm(U3(64,y));if(_.cd(y))return W==="string"?WfL(y):VQy(y)};
eid=function(y){if(y==null)return y;var W=typeof y;if(W==="bigint")return String(U3(64,y));if(_.cd(y)){if(W==="string")return Mu(y);if(W==="number")return SP(y)}};
hiu=function(y){if(y==null)return y;var W=typeof y;if(W==="bigint")return String((0,_.s3)(64,y));if(_.cd(y)){if(W==="string")return _.Oqn(y);if(W==="number")return _.gJt(y)}};
_.YE=function(y){if(typeof y!=="string")throw Error();return y};
Bd=function(y){if(y!=null&&typeof y!=="string")throw Error();return y};
_.Jm=function(y){return y==null||typeof y==="string"?y:void 0};
Kfb=function(y,W,V,w){if(y!=null&&y[Rv]===jP)return y;if(!Array.isArray(y))return V?w&2?((y=W[oJ4])||(y=new W,xJ(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),y=W[oJ4]=y),W=y):W=new W:W=void 0,W;V=y[_.UE]|0;w=V|w&32|w&2;w!==V&&DI(y,w);return new W(y)};
pzv=function(y,W,V){y=W?QRb(y):_.mC(y);return y==null?V?0:void 0:y|0};
iqd=function(y){return y};
fId=function(y){return y};
mrj=function(y,W,V,w,t,F){y=Kfb(y,w,V,F);t&&(y=Tmu(y));return y};
MQz=function(y){return[y,this.get(y)]};
u6L=function(){return qEn||(qEn=new $E(xJ([]),void 0,void 0,void 0,Urz))};
SEz=function(y){var W=Xj(av);return W?y[W]:void 0};
xrd=function(y,W){var V=V===void 0?!1:V;if(Xj(Dry)&&Xj(av)&&void 0===Dry){var w=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=w[av];if(!t)return;if(t=t.reviveUnknownFields)try{t(w,W,lIG);return}catch(F){wu(F)}}V&&(y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(V=Xj(av))&&V in y&&(y=y[V])&&delete y[W])};
ssR=function(y,W){var V=Xj(av),w;qr&&V&&((w=y[V])==null?void 0:w[W])!=null&&cz(kRL,3)};
YEj=function(y,W){W<100||cz(AAL,1)};
$rb=function(y,W,V,w){var t=w!==void 0;w=!!w;var F=Xj(av),I;!t&&qr&&F&&(I=y[F])&&Bmj(I,YEj);F=[];var P=y.length;I=4294967295;var C=!1,d=!!(W&64),L=d?W&128?0:-1:void 0;if(!(W&1)){var z=P&&y[P-1];z!=null&&typeof z==="object"&&z.constructor===Object?(P--,I=P):z=void 0;if(d&&!(W&128)&&!t){C=!0;var c;I=((c=JAz)!=null?c:iqd)(I-L,L,y,z,void 0)+L}}W=void 0;for(c=0;c<P;c++){var K=y[c];if(K!=null&&(K=V(K,w))!=null)if(d&&c>=I){var f=c-L,U=void 0;((U=W)!=null?U:W={})[f]=K}else F[c]=K}if(z)for(var l in z)P=z[l],
P!=null&&(P=V(P,w))!=null&&(c=+l,K=void 0,d&&!Number.isNaN(c)&&(K=c+L)<I?F[K]=P:(c=void 0,((c=W)!=null?c:W={})[l]=P));W&&(C?F.push(W):F[I]=W);t&&Xj(av)&&(y=SEz(y))&&y instanceof Ri4&&(F[av]=jsy(y));return F};
Hqv=function(y){y[0]=nJv(y[0]);y[1]=nJv(y[1]);return y};
nJv=function(y){switch(typeof y){case "number":return Number.isFinite(y)?y:""+y;case "bigint":return drb(y)?Number(y):""+y;case "boolean":return y?1:0;case "object":if(Array.isArray(y)){var W=y[_.UE]|0;return y.length===0&&W&1?void 0:$rb(y,W,nJv)}if(y!=null&&y[Rv]===jP)return Xzv(y);if(y instanceof YJ){W=y.JSC$8743_value_;if(W==null)y="";else if(typeof W==="string")y=W;else{if(ma4){for(var V="",w=0,t=W.length-10240;w<t;)V+=String.fromCharCode.apply(null,W.subarray(w,w+=10240));V+=String.fromCharCode.apply(null,
w?W.subarray(w):W);W=btoa(V)}else W=_.Gj(W);y=y.JSC$8743_value_=W}return y}if(y instanceof $E)return y=y.size!==0?Array.from(rW.prototype.entries.call(y),Hqv):void 0,y;return}return y};
bt=function(y,W){if(W){JAz=W==null||W===iqd||W[aIy]!==GRR?iqd:W;try{return Xzv(y)}finally{JAz=void 0}}return Xzv(y)};
Xzv=function(y){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $rb(y,y[_.UE]|0,nJv)};
QsL=function(y){switch(typeof y){case "boolean":return rAG||(rAG=[0,void 0,!0]);case "number":return y>0?void 0:y===0?bq4||(bq4=[0,void 0]):[-y,void 0];case "string":return[0,y];case "object":return y}};
ZqL=function(y,W,V){return y=_.Qu(y,W[0],W[1],V?1:2)};
_.Qu=function(y,W,V,w){w=w===void 0?0:w;if(y==null){var t=32;V?(y=[V],t|=128):y=[];W&&(t=t&-8380417|(W&1023)<<13)}else{if(!Array.isArray(y))throw Error("O");t=y[_.UE]|0;if(yma&&1&t)throw Error("P");2048&t&&!(2&t)&&WCt();if(t&256)throw Error("Q");if(t&64)return w!==0||t&2048||DI(y,t|2048),y;if(V&&(t|=128,V!==y[0]))throw Error("R");a:{V=y;t|=64;var F=V.length;if(F){var I=F-1,P=V[I];if(P!=null&&typeof P==="object"&&P.constructor===Object){W=t&128?0:-1;I-=W;if(I>=1024)throw Error("T");for(var C in P)F=
+C,F<I&&(V[F+W]=P[C],delete P[C]);t=t&-8380417|(I&1023)<<13;break a}}if(W){C=Math.max(W,F-(t&128?0:-1));if(C>1024)throw Error("U");t=t&-8380417|(C&1023)<<13}}}t|=64;w===0&&(t|=2048);DI(y,t);return y};
WCt=function(){if(yma)throw Error("S");cz(VP4,5)};
FCa=function(y,W){if(typeof y!=="object")return y;if(Array.isArray(y)){var V=y[_.UE]|0;return y.length===0&&V&1?void 0:wdt(y,V,W)}if(y!=null&&y[Rv]===jP)return tP4(y);if(y instanceof $E){W=y.arrayState;if(W&2)return y;if(!y.size)return;V=xJ(Array.from(rW.prototype.entries.call(y)));if(y.valueCtor)for(y=0;y<V.length;y++){var w=V[y],t=w[1];t==null||typeof t!=="object"?t=void 0:t!=null&&t[Rv]===jP?t=tP4(t):Array.isArray(t)?t=wdt(t,t[_.UE]|0,!!(W&32)):t=void 0;w[1]=t}return V}if(y instanceof YJ)return y};
wdt=function(y,W,V){if(W&2)return y;!V||4096&W||16&W?y=Zq(y,W,!1,V&&!(W&16)):(SQ(y,34),W&4&&Object.freeze(y));return y};
EEy=function(y,W,V){y=new y.constructor(W);V&&(y.copyOnWrite=sE);y.noLegacyNull=sE;return y};
tP4=function(y){var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=W[_.UE]|0;return AA(y,V)?y:NWv(y,W,V)?EEy(y,W):Zq(W,V)};
Zq=function(y,W,V,w){w!=null||(w=!!(34&W));y=$rb(y,W,FCa,w);w=32;V&&(w|=2);W=W&8380609|w;DI(y,W);return y};
Tmu=function(y){var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=W[_.UE]|0;return AA(y,V)?NWv(y,W,V)?EEy(y,W,!0):new y.constructor(Zq(W,V,!1)):y};
yG=function(y){if(y.copyOnWrite!==sE)return!1;var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=Zq(W,W[_.UE]|0);SQ(W,2048);y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=W;y.copyOnWrite=void 0;y.noLegacyNull=void 0;return!0};
WZ=function(y){if(!yG(y)&&AA(y,y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.UE]|0))throw Error();};
w3=function(y,W){W===void 0&&(W=y[_.UE]|0);W&32&&!(W&4096)&&DI(y,W|4096)};
NWv=function(y,W,V){return V&2?!0:V&32&&!(V&4096)?(DI(W,V|2),y.copyOnWrite=sE,!0):!1};
t_=function(y,W,V,w,t){var F=V+(t?0:-1),I=y.length-1;if(I>=1+(t?0:-1)&&F>=I){var P=y[I];if(P!=null&&typeof P==="object"&&P.constructor===Object)return P[V]=w,W}if(F<=I)return y[F]=w,W;if(w!==void 0){var C;I=((C=W)!=null?C:W=y[_.UE]|0)>>13&1023||536870912;V>=I?w!=null&&(F={},y[I+(t?0:-1)]=(F[V]=w,F)):y[F]=w}return W};
_.PZ=function(y,W,V,w,t){var F=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=F[_.UE]|0;w=AA(y,I)?1:w;t=!!t||w===3;w===2&&yG(y)&&(F=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=F[_.UE]|0);y=Iqj(F,W);var P=y===N5?7:y[_.UE]|0,C=gEz(P,I);var d=4&C?!1:!0;if(d){4&C&&(y=Iv(y),P=0,C=IG(C,I),I=t_(F,I,W,y));for(var L=0,z=0;L<y.length;L++){var c=V(y[L]);c!=null&&(y[z++]=c)}z<L&&(y.length=z);V=(C|4)&-513;C=V&=-1025;C&=-4097}C!==P&&(DI(y,C),2&C&&Object.freeze(y));return y=PtL(y,C,F,
I,W,w,d,t)};
PtL=function(y,W,V,w,t,F,I,P){var C=W;F===1||(F!==4?0:2&W||!(16&W)&&32&w)?Cu(W)||(W|=!y.length||I&&!(4096&W)||32&w&&!(4096&W||16&W)?2:256,W!==C&&DI(y,W),Object.freeze(y)):(F===2&&Cu(W)&&(y=Iv(y),C=0,W=IG(W,w),w=t_(V,w,t,y)),Cu(W)||(P||(W|=16),W!==C&&DI(y,W)));2&W||!(4096&W||16&W)||w3(V,w);return y};
Iqj=function(y,W,V){y=Ox(y,W,V);return Array.isArray(y)?y:N5};
gEz=function(y,W){2&W&&(y|=2);return y|1};
Cu=function(y){return!!(2&y)&&!!(4&y)||!!(256&y)};
Ctj=function(y){return _.Rs(y,!0)};
Oea=function(y,W){var V=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=V[_.UE]|0;a:{var t=w;w=AA(y,w);!w&&yG(y)&&(V=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=V[_.UE]|0);var F=Ox(V,W);y=!1;if(F==null){if(w){W=u6L();break a}F=[]}else if(F.constructor===$E)if(F.arrayState&2&&!w)F=Array.from(rW.prototype.entries.call(F));else{W=F;break a}else Array.isArray(F)?y=!!((F[_.UE]|0)&2):F=[];if(w){if(!F.length){W=u6L();break a}y||(y=!0,xJ(F))}else if(y){y=!1;w=F;w=Iv(w);for(F=0;F<
w.length;F++){var I=w[F]=Iv(w[F]);Array.isArray(I[1])&&(I[1]=xJ(I[1]))}F=w}!y&&t&32&&xav(F);w=new $E(F,void 0,pzv,pzv);t=t_(V,t,W,w);y||w3(V,t);W=w}return W};
_.vZ=function(y,W,V,w){WZ(y);var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=t[_.UE]|0;if(V==null)return t_(t,F,W),y;var I=V===N5?7:V[_.UE]|0,P=I,C=Cu(I),d=C||Object.isFrozen(V);C||(I=0);d||(V=Iv(V),P=0,I=IG(I,F),d=!1);I|=5;var L;C=(L=ltG(I))!=null?L:0;for(L=0;L<V.length;L++){var z=V[L],c=w(z,C);Object.is(z,c)||(d&&(V=Iv(V),P=0,I=IG(I,F),d=!1),V[L]=c)}I!==P&&(d&&(V=Iv(V),I=IG(I,F)),DI(V,I));t_(t,F,W,V);return y};
_.d3=function(y,W,V,w,t){WZ(y);var F=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t_(F,F[_.UE]|0,W,(w==="0"?Number(V)===0:V===w)?void 0:V,t);return y};
_.vEv=function(y,W,V){if(W&2)throw Error();var w=Hz(W),t=Iqj(y,V,w),F=t===N5?7:t[_.UE]|0,I=gEz(F,W);if(2&I||Cu(I)||16&I)t=Iv(t),F=0,I=IG(I,W),t_(y,W,V,t,w);I&=-13;I!==F&&DI(t,I);return t};
dun=function(y){if(qr){var W;return(W=y[Lu])!=null?W:y[Lu]=new Map}if(Lu in y)return y[Lu];W=new Map;Object.defineProperty(y,Lu,{value:W});return W};
z4z=function(y,W,V,w,t){var F=dun(y),I=LCz(F,y,W,V,t);I!==w&&(I&&(W=t_(y,W,I,void 0,t)),F.set(V,w));return W};
LCz=function(y,W,V,w,t){var F=y.get(w);if(F!=null)return F;for(var I=F=0;I<w.length;I++){var P=w[I];Ox(W,P,t)!=null&&(F!==0&&(V=t_(W,V,F,void 0,t)),F=P)}y.set(w,F);return F};
cmG=function(y,W,V,w,t){var F=!1;w=Ox(y,w,t,function(I){var P=Kfb(I,V,!1,W);F=P!==I&&P!=null;return P});
if(w!=null)return F&&!AA(w)&&w3(y,W),w};
e4z=function(y,W,V,w,t,F,I,P){var C=AA(y,V);F=C?1:F;I=!!I||F===3;C=P&&!C;(F===2||C)&&yG(y)&&(W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=W[_.UE]|0);y=Iqj(W,t);var d=y===N5?7:y[_.UE]|0,L=gEz(d,V);if(P=!(4&L)){var z=y,c=V,K=!!(2&L);K&&(c|=2);for(var f=!K,U=!0,l=0,x=0;l<z.length;l++){var B=Kfb(z[l],w,!1,c);if(B instanceof w){if(!K){var r=AA(B);f&&(f=!r);U&&(U=r)}z[x++]=B}}x<l&&(z.length=x);L|=4;L=U?L&-4097:L|4096;L=f?L|8:L&-9}L!==d&&(DI(y,L),2&L&&Object.freeze(y));if(C&&!(8&L||!y.length&&
(F===1||(F!==4?0:2&L||!(16&L)&&32&V)))){Cu(L)&&(y=Iv(y),L=IG(L,V),V=t_(W,V,t,y));w=y;C=L;for(d=0;d<w.length;d++)z=w[d],L=Tmu(z),z!==L&&(w[d]=L);C|=8;L=C=w.length?C|4096:C&-4097;DI(y,L)}return y=PtL(y,L,W,V,t,F,P,I)};
h4j=function(y){y==null&&(y=void 0);return y};
IG=function(y,W){return y=(2&W?y|2:y&-3)&-273};
_.oEv=function(y,W,V,w,t){WZ(y);W=_.PZ(y,W,t,2,!0);var F;t=(F=ltG(W===N5?7:W[_.UE]|0))!=null?F:0;W.push(V(w,t));return y};
KCt=function(y,W,V,w,t,F,I){WZ(y);var P=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=e4z(y,P,P[_.UE]|0,V,W,2,!0);if(F&&I)t!=null||(t=y.length-1),$J(y,t),y.splice(t,F),y.length||(y[_.UE]&=-4097);else{if(F){if(typeof t!=="number"||t<0||t>y.length)throw Error();}else w=w!=null?w:new V;t!=void 0?y.splice(t,F,w):y.push(w);t=V=y===N5?7:y[_.UE]|0;(w=AA(w))?(V&=-9,y.length===1&&(V&=-4097)):V|=4096;V!==t&&DI(y,V);w||w3(P)}};
iea=function(y,W){if(typeof y==="string")return new z3(qzv(y),W);if(Array.isArray(y))return new z3(new Uint8Array(y),W);if(y.constructor===Uint8Array)return new z3(y,!1);if(y.constructor===ArrayBuffer)return y=new Uint8Array(y),new z3(y,!1);if(y.constructor===YJ)return W=pdz(y)||new Uint8Array(0),new z3(W,!0,y);if(y instanceof Uint8Array)return y=y.constructor===Uint8Array?y:new Uint8Array(y.buffer,y.byteOffset,y.byteLength),new z3(y,!1);throw Error();};
cZ=function(){var y=function(){throw Error();};
Object.setPrototypeOf(y,y.prototype);return y};
TWP=function(y,W){var V=V===void 0?fqz:V;return new h_(y,W,V)};
Uuv=function(y,W,V,w,t){W=muR(W,w);W!=null&&(V=_.MPz(y,V),t(W,y),_.q3y(y,V))};
pu=function(y,W,V,w){var t=w[y];if(t)return t;t={};t.binaryFields=w;t.messageMetadata=QsL(w[0]);var F=w[1],I=1;F&&F.constructor===Object&&(t.extensions=F,F=w[++I],typeof F==="function"&&(t.isMessageSet=!0,ujn!=null||(ujn=F),S3t!=null||(S3t=w[I+1]),F=w[I+=2]));for(var P={};F&&Duv(F);){for(var C=0;C<F.length;C++)P[F[C]]=F;F=w[++I]}for(C=1;F!==void 0;){typeof F==="number"&&(C+=F,F=w[++I]);var d=void 0;if(F instanceof h_)var L=F;else L=lqd,I--;F=void 0;if((F=L)==null?0:F.$$isMsg){F=w[++I];d=w;var z=I;
typeof F==="function"&&(F=F(),d[z]=F);d=F}F=w[++I];z=C+1;typeof F==="number"&&F<0&&(z-=F,F=w[++I]);for(;C<z;C++){var c=P[C];d?V(t,C,L,d,c):W(t,C,L,c)}}return w[y]=t};
Duv=function(y){return Array.isArray(y)&&!!y.length&&typeof y[0]==="number"&&y[0]>0};
kjb=function(y){return Array.isArray(y)?y[0]instanceof h_?y:[xua,y]:[y,void 0]};
muR=function(y,W){if(y instanceof _.fu)return y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(y))return ZqL(y,W,!1)};
svP=function(y,W,V,w){var t=V.$$binaryReaderFn;y[W]=w?function(F,I,P){return t(F,I,P,w)}:t};
Y3R=function(y,W,V,w,t){var F=V.$$binaryReaderFn,I,P;y[W]=function(C,d,L){return F(C,d,L,P||(P=pu(Amd,svP,Y3R,w).messageMetadata),I||(I=BWj(w)),t)}};
BWj=function(y){var W=y[Jmn];if(W!=null)return W;var V=pu(Amd,svP,Y3R,y);W=V.isMessageSet?function(w,t){return ujn(w,t,V)}:function(w,t){for(;R4a(t)&&t.nextWireType_!=4;){var F=t.nextField_,I=V[F];
if(I==null){var P=V.extensions;P&&(P=P[F])&&(P=jvb(P),P!=null&&(I=V[F]=P))}if(I==null||!I(t,w,F)){P=t;I=P.fieldCursor_;$uv(P);if(P.discardUnknownFields)var C=void 0;else{var d=P.decoder_.cursor_-I;P.decoder_.cursor_=I;C=nEz(P.decoder_,d)}d=P=I=void 0;var L=w;C&&((I=(P=(d=L[av])!=null?d:L[av]=new Ri4)[F])!=null?I:P[F]=[]).push(C)}}if(w=SEz(w))w.reviveUnknownFields=V.binaryFields[He4];return!0};
y[Jmn]=W;y[He4]=XdP.bind(y);return W};
XdP=function(y,W,V,w){var t=this[Amd],F=this[Jmn],I=ZqL(void 0,t.messageMetadata,!1),P=SEz(y);if(P){var C=!1,d=t.extensions;if(d){t=function(f,U,l){if(l.length!==0)if(d[U])for(f=_.N(l),U=f.next();!U.done;U=f.next()){U=aqP(U.value);try{C=!0,F(I,U)}finally{U.free()}}else w==null||w(y,U,l)};
if(W==null)Bmj(P,t);else if(P!=null){var L=P[W];L&&t(P,W,L)}if(C){var z=y[_.UE]|0;if(z&2&&z&2048&&(V==null||!V.reviveIntoImmutable))throw Error();var c=Hz(z),K=function(f,U){if(Ox(y,f,c)!=null)switch(V==null?void 0:V.resolutionBehavior){case 1:return;default:throw Error();}U!=null&&(z=t_(y,z,f,U,c));delete P[f]};
W==null?sR4(I,I[_.UE]|0,function(f,U){K(f,U)}):K(W,Ox(I,W,c))}}}};
jvb=function(y){y=kjb(y);var W=y[0].$$binaryReaderFn;if(y=y[1]){var V=BWj(y),w=pu(Amd,svP,Y3R,y).messageMetadata;return function(t,F,I){return W(t,F,I,w,V)}}return W};
Gjt=function(y,W,V){y[W]=V.$$binaryWriterFn};
beu=function(y,W,V,w){var t,F,I=V.$$binaryWriterFn;y[W]=function(P,C,d){return I(P,C,d,F||(F=pu(rmb,Gjt,beu,w).messageMetadata),t||(t=Qvv(w)))}};
Qvv=function(y){var W=y[Zez];if(!W){var V=pu(rmb,Gjt,beu,y);W=function(w,t){return y_u(w,t,V)};
y[Zez]=W}return W};
y_u=function(y,W,V){sR4(y,y[_.UE]|0,function(w,t){if(t!=null){var F=Why(V,w);F?F(W,t,w):w<500||cz(Vh4,3)}});
(y=SEz(y))&&Bmj(y,function(w,t,F){T3(W,W.encoder_.end());for(w=0;w<F.length;w++)T3(W,pdz(F[w])||new Uint8Array(0))})};
Why=function(y,W){var V=y[W];if(V)return V;if(V=y.extensions)if(V=V[W]){V=kjb(V);var w=V[0].$$binaryWriterFn;if(V=V[1]){var t=Qvv(V),F=pu(rmb,Gjt,beu,V).messageMetadata;V=y.isMessageSet?S3t(F,t):function(I,P,C){return w(I,P,C,F,t)}}else V=w;
return y[W]=V}};
_.wZR=function(y,W,V){if(Array.isArray(W)){var w=W[_.UE]|0;if(w&4)return W;for(var t=0,F=0;t<W.length;t++){var I=y(W[t]);I!=null&&(W[F++]=I)}F<t&&(W.length=F);V&&(DI(W,(w|5)&-1537),w&2&&Object.freeze(W));return W}};
_.mh=function(y,W,V){return new h_(y,W,V)};
_.thb=function(y,W,V){return new h_(y,W,V)};
_.M5=function(y,W,V){t_(y,y[_.UE]|0,W,V,Hz(y[_.UE]|0))};
ERL=function(y,W,V){W=_.atd(W);W!=null&&(_.q5(y,V,1),y=y.encoder_,V=Fha||(Fha=new DataView(new ArrayBuffer(8))),V.setFloat64(0,+W,!0),ZI=V.getUint32(0,!0),Vu=V.getUint32(4,!0),_.Ux(y,ZI),_.Ux(y,Vu))};
_.u_=function(y,W,V){W=eid(W);if(W!=null){switch(typeof W){case "string":N3R(W)}if(W!=null)switch(_.q5(y,V,0),typeof W){case "number":y=y.encoder_;wW(W);If4(y,ZI,Vu);break;case "bigint":V=BigInt.asUintN(64,W);V=new gRG(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));If4(y.encoder_,V.JSC$8787_lo,V.JSC$8787_hi);break;default:V=N3R(W),If4(y.encoder_,V.JSC$8787_lo,V.JSC$8787_hi)}}};
C_t=function(y,W,V){W=_.mC(W);W!=null&&W!=null&&(_.q5(y,V,0),_.P_v(y.encoder_,W))};
_.vRz=function(y,W,V){Ouu(y,V,hiu(W))};
_.d5z=function(y,W,V){W=_.rvv(W);W!=null&&(_.q5(y,V,0),y.encoder_.JSC$8789_buffer_.push(W?1:0))};
_.z1d=function(y,W,V){W=_.Jm(W);W!=null&&Lhd(y,V,t4b(W))};
c_y=function(y,W,V,w,t){W=muR(W,w);W!=null&&(V=_.MPz(y,V),t(W,y),_.q3y(y,V))};
_.e1R=function(y,W,V){W=W==null||typeof W=="string"||W instanceof YJ?W:void 0;W!=null&&Lhd(y,V,iea(W,!0).buffer)};
_.h1n=function(y,W,V){W=_.mC(W);W!=null&&(W=parseInt(W,10),_.q5(y,V,0),_.P_v(y.encoder_,W))};
_.Sh=function(y,W){return function(V,w){var t={treatNewDataAsImmutable:!0};w&&Object.assign(t,w);V=aqP(V,void 0,void 0,t);try{var F=new y,I=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;BWj(W)(I,V);var P=F}finally{V.free()}return P}};
_.Df=function(y){return function(W){return oRd(W,y)}};
KhP=function(y){return function(){return oRd(this,y)}};
_.pZz=function(y){return X6(function(W){return W instanceof y&&!AA(W)})};
_.l_=function(y){return function(W){return iuG(y,W)}};
MhR=function(y,W){return ff4({child:y,origin:W||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:T3v,getPayloadCase:function(V){return V.getPayloadCase()},
createInitMessage:function(V){var w=new kR,t=new m5j;V=_.sx(t,1,V);return _.A_(w,5,BZ,V)}})};
J_=function(y){return{valueOf:y}.valueOf()};
U5y=function(){var y=null;if(!qxv)return y;try{var W=function(V){return V};
y=qxv.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(V){}return y};
Sxa=function(){uMy===void 0&&(uMy=U5y());return uMy};
_.jh=function(y){var W=Sxa();y=W?W.createScriptURL(y):y;return new RG(y)};
_.$R=function(y){if(y instanceof RG)return y.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("ga");};
_.nu=function(y){return Object.isFrozen(y)&&Object.isFrozen(y.raw)};
D54=function(y){return y.toString().indexOf("`")===-1};
XM=function(y){return new _.HZ(lfP,y)};
aG=function(y){return y instanceof _.HZ};
_.G3=function(y){if(aG(y))return y.privateDoNotAccessOrElseWrappedUrl;throw Error("ga");};
r3=function(y){return new x5u(function(W){return W.substr(0,y.length+1).toLowerCase()===y+":"})};
QG=function(y,W){W=W===void 0?sGv:W;if(aG(y))return y;for(var V=0;V<W.length;++V){var w=W[V];if(w instanceof x5u&&w.isValid(y))return XM(y)}};
_.ye=function(y,W){W=W===void 0?sGv:W;return QG(y,W)||Zf};
_.W7=function(y){var W=window;if(typeof MediaSource!=="undefined"&&y instanceof MediaSource||typeof W.ManagedMediaSource!=="undefined"&&y instanceof W.ManagedMediaSource)return XM(URL.createObjectURL(y));W=y.type;W.toLowerCase()==="application/octet-stream"?W=!0:(W=W.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),W=(W==null?void 0:W.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(W[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(W[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(W[1])||/^font\/[\w-]+$/i.test(W[1])));if(!W)throw Error("ga");return XM(URL.createObjectURL(y))};
_.A_u=function(y){for(var W=_.Ve.apply(1,arguments),V=[y[0]],w=0;w<W.length;w++)V.push(String(W[w])),V.push(y[w+1]);return XM(V.join(""))};
_.B3n=function(y){if(!Yxu){a:{var W=document.createElement("a");try{W.href=y}catch(V){y=void 0;break a}y=W.protocol;y=y===":"||y===""?"https:":y}return y}try{W=new URL(y)}catch(V){return"https:"}return W.protocol};
_.w$=function(y){y instanceof _.HZ?y=_.G3(y):y=J_P.test(y)?y:void 0;return y};
tX=function(y,W){W=_.w$(W);W!==void 0&&(y.href=W)};
Nl=function(y){var W=Sxa();y=W?W.createHTML(y):y;return new Ec(y)};
Ih=function(y){if(y instanceof Ec)return y.privateDoNotAccessOrElseWrappedHtml;throw Error("ga");};
_.g$=function(y,W){y.src=_.$R(W).toString()};
R1y=function(y,W){y.setAttribute("sandbox","");for(var V=0;V<W.length;V++)y.sandbox.supports&&!y.sandbox.supports(W[V])||y.sandbox.add(W[V])};
_.$5u=function(y,W,V){y.removeAttribute("srcdoc");switch(W){case 0:if(V instanceof RG)throw new jGy("TrustedResourceUrl",0);R1y(y,[]);W=_.w$(V);W!==void 0&&(y.src=W);break;case 1:if(!(V instanceof RG))throw new jGy(typeof V,1);R1y(y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.g$(y,V);break;case 2:if(V instanceof RG)throw new jGy("TrustedResourceUrl",2);R1y(y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
W=_.w$(V);W!==void 0&&(y.src=W);break;default:_.gW(W)}};
_.P7=function(y,W,V,w){W=_.w$(W);return W!==void 0?y.open(W,V,w):null};
_.CJ=function(y){y=y===void 0?document:y;var W,V;y=(V=(W=y).querySelector)==null?void 0:V.call(W,"script[nonce]");return y==null?"":y.nonce||y.getAttribute("nonce")||""};
_.d$=function(y){var W=Sxa();y=W?W.createScript(y):y;return new _.Oc(y)};
nRd=function(y){if(y instanceof _.Oc)return y.privateDoNotAccessOrElseWrappedScript;throw Error("ga");};
HuG=function(y){var W=_.CJ(y.ownerDocument);W&&y.setAttribute("nonce",W)};
_.LJ=function(y,W){y.textContent=nRd(W);HuG(y)};
_.zC=function(y,W){y.src=_.$R(W);HuG(y)};
_.c7=function(y,W){if(y.nodeType===1&&/^(script|style)$/i.test(y.tagName))throw Error("ga");y.innerHTML=Ih(W)};
_.em=function(y,W,V,w){if(y.length===0)throw Error("ga");y=y.map(function(F){if(F instanceof XZn)F=F.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("ga");return F});
var t=V.toLowerCase();if(y.every(function(F){return t.indexOf(F)!==0}))throw Error("ia`"+V);
W.setAttribute(V,w)};
_.hX=function(y,W,V){if(W instanceof RG)y.href=_.$R(W).toString(),y.rel=V;else{if(afd.indexOf(V)===-1)throw Error("ja`"+V);W=_.w$(W);W!==void 0&&(y.href=W,y.rel=V)}};
G3R=function(y){return"function"==typeof _.oh&&y instanceof _.oh};
_.r_j=function(y){if(G3R(y))return y.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("ga");};
_.buj=function(y,W){W=_.w$(W);W!==void 0&&(y.href=W)};
QGy=function(y,W){y&&(W=y.indexOf(W),0<=W&&y.splice(W,1))};
KJ=function(y){return typeof y==="function"};
Zud=function(y){return y instanceof pJ||y&&"closed"in y&&KJ(y.remove)&&KJ(y.add)&&KJ(y.unsubscribe)};
i7=function(){};
fJ=function(y){yXb(function(){throw y;})};
Ml=function(y){return y};
ql=function(){return WXv(_.Ve.apply(0,arguments))};
WXv=function(y){return y.length===0?Ml:y.length===1?y[0]:function(W){return y.reduce(function(V,w){return w(V)},W)}};
Vmd=function(y){var W;return(W=y!=null?y:void 0)!=null?W:Promise};
w7u=function(y,W){return new Uc(function(V){var w=0;return W.schedule(function(){w===y.length?V.complete():(V.next(y[w++]),V.closed||this.schedule())})})};
tmb=function(y,W){if(!y)throw Error("ka");return new Uc(function(V){var w=new pJ;w.add(W.schedule(function(){var t=y[Symbol.asyncIterator]();w.add(W.schedule(function(){var F=this;t.next().then(function(I){I.done?V.complete():(V.next(I.value),F.schedule())})}))}));
return w})};
FXP=function(y,W,V){W=W.schedule(function(){try{V.call(this)}catch(w){y.error(w)}},0);
y.add(W)};
N$z=function(y,W){return new Uc(function(V){var w;V.add(W.schedule(function(){w=y[EXv]();FXP(V,W,function(){var t=w.next(),F=t.value;t.done?V.complete():(V.next(F),this.schedule())})}));
return function(){var t;return KJ((t=w)==null?void 0:t.return)&&w.return()}})};
IBa=function(y,W){return new Uc(function(V){var w=new pJ;w.add(W.schedule(function(){var t=y[u7]();w.add(t.subscribe({next:function(F){w.add(W.schedule(function(){return V.next(F)}))},
error:function(F){w.add(W.schedule(function(){return V.error(F)}))},
complete:function(){w.add(W.schedule(function(){return V.complete()}))}}))}));
return w})};
gX4=function(y,W){return new Uc(function(V){return W.schedule(function(){return y.then(function(w){V.add(W.schedule(function(){V.next(w);V.add(W.schedule(function(){return V.complete()}))}))},function(w){V.add(W.schedule(function(){return V.error(w)}))})})})};
P7z=function(y){return new TypeError("la`"+(y!==null&&typeof y==="object"?"an invalid object":"'"+y+"'"))};
OJP=function(y,W){if(y!=null){if(KJ(y[u7]))return IBa(y,W);if(C7b(y))return w7u(y,W);if(KJ(y==null?void 0:y.then))return gX4(y,W);if(Symbol.asyncIterator&&KJ(y==null?void 0:y[Symbol.asyncIterator]))return tmb(y,W);if(KJ(y==null?void 0:y[EXv]))return N$z(y,W)}throw P7z(y);};
DB=function(y,W){return W?OJP(y,W):Sm(y)};
Sm=function(y){if(y instanceof Uc)return y;if(y!=null){if(KJ(y[u7]))return vXj(y);if(C7b(y))return dly(y);if(KJ(y==null?void 0:y.then))return LXu(y);if(Symbol.asyncIterator&&KJ(y==null?void 0:y[Symbol.asyncIterator]))return z8P(y);if(KJ(y==null?void 0:y[EXv]))return cXR(y)}throw P7z(y);};
vXj=function(y){return new Uc(function(W){var V=y[u7]();if(KJ(V.subscribe))return V.subscribe(W);throw new TypeError("ma");})};
dly=function(y){return new Uc(function(W){for(var V=0;V<y.length&&!W.closed;V++)W.next(y[V]);W.complete()})};
LXu=function(y){return new Uc(function(W){y.then(function(V){W.closed||(W.next(V),W.complete())},function(V){return W.error(V)}).then(null,fJ)})};
cXR=function(y){return new Uc(function(W){for(var V=y[EXv]();!W.closed;){var w=V.next(),t=w.value;w.done?W.complete():W.next(t)}return function(){return KJ(V==null?void 0:V.return)&&V.return()}})};
z8P=function(y){return new Uc(function(W){e8z(y,W).catch(function(V){return W.error(V)})})};
e8z=function(y,W){var V,w,t,F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:_.l7(C,2,3),F=_.xX(y);case 5:return C.yield(F.next(),8);case 8:w=C.yieldResult;if(w.done){C.jumpTo(3);break}I=w.value;W.next(I);C.jumpTo(5);break;case 3:_.kX(C);_.sc(C,9);if(!w||w.done||!(t=F.return)){C.jumpTo(9);break}return C.yield(t.call(F),9);case 9:_.kX(C,0,0,1);if(V)throw V.error;_.AX(C,10,1);break;case 10:_.AX(C,4);break;case 2:P=_.YX(C);V={error:P};C.jumpTo(3);break;case 4:W.complete(),_.B7(C)}})};
h8b=function(y,W){return W?w7u(y,W):dly(y)};
oXv=function(y){return KJ(y[y.length-1])?y.pop():void 0};
JX=function(y){var W=y[y.length-1];return W&&KJ(W.schedule)?y.pop():void 0};
Rh=function(){var y=_.Ve.apply(0,arguments),W=JX(y);return W?w7u(y,W):h8b(y)};
$X=function(y){var W=KJ(y)?y:function(){return y};
return new Uc(function(V){return V.error(W())})};
nJ=function(y){return function(W){if(KJ(W==null?void 0:W.lift))return W.lift(function(V){try{return y(V,this)}catch(w){this.error(w)}});
throw new TypeError("na");}};
Xy=function(){return nJ(function(y,W){var V=null;y._refCount++;var w=new H7(W,void 0,void 0,void 0,function(){if(!y||y._refCount<=0||0<--y._refCount)V=null;else{var t=y._connection,F=V;V=null;!t||F&&t!==F||t.unsubscribe();W.unsubscribe()}});
y.subscribe(w);w.closed||(V=y.connect())})};
p7P=function(){var y=KXy;var W=W===void 0?0:W;return nJ(function(V,w){w.add(y.schedule(function(){return V.subscribe(w)},W))})};
ah=function(y){return nJ(function(W,V){var w=0;W.subscribe(new H7(V,function(t){V.next(y.call(void 0,t,w++))}))})};
fB4=function(y){return ah(function(W){return iJR(W)?y.apply(null,_.GC(W)):y(W)})};
UlR=function(y){if(y.length===1){var W=y[0];if(T$G(W))return{args:W,keys:null};if(W&&typeof W==="object"&&mla(W)===MmR)return y=qc4(W),{args:y.map(function(V){return W[V]}),
keys:y}}return{args:y,keys:null}};
r$=function(){var y=_.Ve.apply(0,arguments),W=JX(y),V=oXv(y);y=UlR(y);var w=y.args,t=y.keys;if(w.length===0)return DB([],W);W=new Uc(uya(w,W,t?function(F){for(var I={},P=0;P<F.length;P++)I[t[P]]=F[P];return I}:Ml));
return V?W.pipe(fB4(V)):W};
uya=function(y,W,V){V=V===void 0?Ml:V;return function(w){Scd(W,function(){for(var t=y.length,F=Array(t),I=t,P=y.map(function(){return!1}),C=!0,d={i$jscomp$216:0};d.i$jscomp$216<t;d={i$jscomp$216:d.i$jscomp$216},d.i$jscomp$216++)Scd(W,function(L){return function(){DB(y[L.i$jscomp$216],W).subscribe(new b7(w,function(z){F[L.i$jscomp$216]=z;
C&&(P[L.i$jscomp$216]=!0,C=!P.every(Ml));C||w.next(V(F.slice()))},function(){return--I===0}))}}(d),w)},w)}};
Scd=function(y,W,V){y?V.add(y.schedule(W)):W()};
Dl4=function(y,W,V,w){var t=[],F=0,I=0,P=!1,C=function(d){F++;Sm(V(d,I++)).subscribe(new H7(W,function(L){W.next(L)},void 0,function(){F--;
for(var L={};t.length&&F<w;L={bufferedValue:void 0})L.bufferedValue=t.shift(),C(L.bufferedValue);!P||t.length||F||W.complete()}))};
y.subscribe(new H7(W,function(d){return F<w?C(d):t.push(d)},void 0,function(){P=!0;
!P||t.length||F||W.complete()}));
return function(){t=null}};
Qe=function(y,W){var V=V===void 0?Infinity:V;if(KJ(W))return Qe(function(w,t){return ah(function(F,I){return W(w,F,t,I)})(Sm(y(w,t)))},V);
typeof W==="number"&&(V=W);return nJ(function(w,t){return Dl4(w,t,y,V)})};
lBu=function(y){y=y===void 0?Infinity:y;return Qe(Ml,y)};
xlb=function(){var y=_.Ve.apply(0,arguments);return lBu(1)(h8b(y,JX(y)))};
kCn=function(y){return new Uc(function(W){Sm(y()).subscribe(W)})};
ZB=function(y,W,V){if(KJ(V)){var w=V;V=void 0}if(w)return ZB(y,W,V).pipe(fB4(w));w=_.N(KJ(y.addEventListener)&&KJ(y.removeEventListener)?shy.map(function(I){return function(P){return y[I](W,P,V)}}):KJ(y.addListener)&&KJ(y.removeListener)?AXn.map(Yct(y,W)):KJ(y.on)&&KJ(y.off)?B$n.map(Yct(y,W)):[]);
var t=w.next().value,F=w.next().value;return!t&&C7b(y)?Qe(function(I){return ZB(I,W,V)})(h8b(y)):new Uc(function(I){if(!t)throw new TypeError("oa");
var P=function(){var C=_.Ve.apply(0,arguments);return I.next(1<C.length?C:C[0])};
t(P);return function(){return F(P)}})};
Yct=function(y,W){return function(V){return function(w){return y[V](W,w)}}};
W3=function(){var y=_.Ve.apply(0,arguments),W=JX(y);var V=typeof y[y.length-1]==="number"?y.pop():Infinity;return y.length?y.length===1?Sm(y[0]):lBu(V)(h8b(y,W)):yL};
R8R=function(y){return y.length===1&&JXL(y[0])?y[0]:y};
jhb=function(){var y=R8R(_.Ve.apply(0,arguments));return nJ(function(W,V){var w=[W].concat(_.GC(y)),t=function(){if(!V.closed)if(w.length>0){try{var F=Sm(w.shift())}catch(P){t();return}var I=new H7(V,void 0,i7,i7);V.add(F.subscribe(I));I.add(t)}else V.complete()};
t()})};
VL=function(y){return nJ(function(W,V){var w=0;W.subscribe(new H7(V,function(t){return y.call(void 0,t,w++)&&V.next(t)}))})};
nXR=function(){var y=_.Ve.apply(0,arguments);y=R8R(y);return y.length===1?Sm(y[0]):new Uc($lj(y))};
$lj=function(y){return function(W){for(var V=[],w={i$jscomp$219:0};V&&!W.closed&&w.i$jscomp$219<y.length;w={i$jscomp$219:w.i$jscomp$219},w.i$jscomp$219++)V.push(Sm(y[w.i$jscomp$219]).subscribe(new H7(W,function(t){return function(F){if(V){for(var I=0;I<V.length;I++)I!==t.i$jscomp$219&&V[I].unsubscribe();V=null}W.next(F)}}(w))))}};
HJy=function(){var y=_.Ve.apply(0,arguments),W=oXv(y),V=R8R(y);return V.length?new Uc(function(w){var t=V.map(function(){return[]}),F=V.map(function(){return!1});
w.add(function(){t=F=null});
for(var I={sourceIndex$jscomp$1:0};!w.closed&&I.sourceIndex$jscomp$1<V.length;I={sourceIndex$jscomp$1:I.sourceIndex$jscomp$1},I.sourceIndex$jscomp$1++)Sm(V[I.sourceIndex$jscomp$1]).subscribe(new H7(w,function(P){return function(C){t[P.sourceIndex$jscomp$1].push(C);t.every(function(d){return d.length})&&(C=t.map(function(d){return d.shift()}),w.next(W?W.apply(null,_.GC(C)):C),t.some(function(d,L){return!d.length&&F[L]})&&w.complete())}}(I),void 0,function(P){return function(){F[P.sourceIndex$jscomp$1]=
!0;
!t[P.sourceIndex$jscomp$1].length&&w.complete()}}(I)));
return function(){t=F=null}}):yL};
X7L=function(y){var W,V,w;return!!y&&typeof y.active==="boolean"&&typeof((W=y.clock)==null?void 0:W.now)==="function"&&((V=y.clock)==null?void 0:V.timeline)!==void 0&&!((w=y.lastMeasurement)==null||!w.timestamp)&&typeof y.equivalentTo==="function"&&typeof y.extrapolateToNow==="function"&&typeof y.extrapolateToTime==="function"&&typeof y.map==="function"&&typeof y.joinWith==="function"};
aBL=function(y){function W(V){return typeof V==="boolean"||typeof V==="string"||typeof V==="number"||V===void 0||V===null}
return W(y)?!0:Array.isArray(y)?y.every(W):typeof y==="object"?Object.keys(y).every(function(V){return typeof V==="string"})&&Object.values(y).every(function(V){return Array.isArray(V)?V.every(W):W(V)}):!1};
GCP=function(y){if(aBL(y))return y;if(X7L(y))return{lastMeasurement:{value:GCP(y.lastMeasurement.value),timestamp:wU(y.lastMeasurement.timestamp,new F0(0,y.lastMeasurement.timestamp.timeline))},active:y.active};try{return JSON.parse(JSON.stringify(y))}catch(W){}return String(y)};
E9=function(y,W){return function(V){return new Uc(function(w){return V.subscribe(function(t){y.timeExecution(W,function(){w.next(t)})()},function(t){y.timeExecution(W,function(){w.error(t)})()},function(){y.timeExecution(W,function(){w.complete()})()})})}};
rXR=function(y,W){var V=!1;return new Uc(function(w){var t=y.setTimeout(function(){V=!0;w.next(!0);w.complete()},W);
return function(){V||y.clearTimeout(t)}})};
bJj=function(y){y=y.global;if(y.fetchLater)return y.fetchLater.bind(y)};
NG=function(y){return nJ(function(W,V){var w=null,t=!1,F;w=W.subscribe(new H7(V,void 0,function(I){F=Sm(y(I,NG(y)(W)));w?(w.unsubscribe(),w=null,F.subscribe(V)):t=!0}));
t&&(w.unsubscribe(),w=null,F.subscribe(V))})};
Qhz=function(y,W,V){return function(w,t){var F=V,I=W,P=0;w.subscribe(new H7(t,function(C){var d=P++;I=F?y(I,C,d):(F=!0,C);t.next(I)},void 0,void 0))}};
ZJa=function(y){y=y===void 0?null:y;return nJ(function(W,V){var w=!1;W.subscribe(new H7(V,function(t){w=!0;V.next(t)},void 0,function(){w||V.next(y);
V.complete()}))})};
IS=function(){return nJ(function(y,W){y.subscribe(new H7(W,i7))})};
gU=function(y){return nJ(function(W,V){W.subscribe(new H7(V,function(){return V.next(y)}))})};
P3=function(y){return y<=0?function(){return yL}:nJ(function(W,V){var w=0;
W.subscribe(new H7(V,function(t){++w<=y&&(V.next(t),y<=w&&V.complete())}))})};
Cz=function(y){var W=W===void 0?Ml:W;var V;y=(V=y)!=null?V:yUG;return nJ(function(w,t){var F,I=!0;w.subscribe(new H7(t,function(P){var C=W(P);if(I||!y(F,C))I=!1,F=C,t.next(P)}))})};
yUG=function(y,W){return y===W};
VDb=function(y){y=y===void 0?Wbb:y;return nJ(function(W,V){var w=!1;W.subscribe(new H7(V,function(t){w=!0;V.next(t)},void 0,function(){return w?V.complete():V.error(y())}))})};
Wbb=function(){return new w3a};
O9=function(){var y=_.Ve.apply(0,arguments);return function(W){return xlb(W,Rh.apply(null,_.GC(y)))}};
tDb=function(y){return nJ(function(W,V){var w=0;W.subscribe(new H7(V,function(t){y.call(void 0,t,w++,W)||(V.next(!1),V.complete())},void 0,function(){V.next(!0);
V.complete()}))})};
FbG=function(){return nJ(function(y,W){var V=[];y.subscribe(new H7(W,function(w){V.push(w);1<V.length&&V.shift()},void 0,function(){for(var w=_.N(V),t=w.next();!t.done;t=w.next())W.next(t.value);
W.complete()},function(){V=null}))})};
EYt=function(y,W){var V=arguments.length>=2;return function(w){return w.pipe(y?VL(function(t,F){return y(t,F,w)}):Ml,FbG(),V?ZJa(W):VDb(function(){return new w3a}))}};
zc=function(y){var W=KJ(y)?y:function(){return y};
return KJ()?nJ(function(V,w){var t=W();(void 0)(t).subscribe(w).add(V.subscribe(t))}):function(V){var w=new v3(V,W);
KJ(V==null?void 0:V.lift)&&(w.lift=V.lift);w.source=V;w.subjectFactory=W;return w}};
eD=function(y){var W=new c3(y,void 0,void 0);return function(V){return zc(function(){return W})(V)}};
hU=function(y,W){return nJ(Qhz(y,W,arguments.length>=2))};
oS=function(){var y=_.Ve.apply(0,arguments),W=JX(y);return nJ(function(V,w){(W?xlb(y,V,W):xlb(y,V)).subscribe(w)})};
Kz=function(y){return nJ(function(W,V){var w=null,t=0,F=!1;W.subscribe(new H7(V,function(I){var P;(P=w)==null||P.unsubscribe();P=t++;Sm(y(I,P)).subscribe(w=new H7(V,function(C){return V.next(C)},void 0,function(){w=null;
F&&!w&&V.complete()}))},void 0,function(){(F=!0,!w)&&V.complete()}))})};
pz=function(y,W){W=W===void 0?!1:W;return nJ(function(V,w){var t=0;V.subscribe(new H7(w,function(F){var I=y(F,t++);(I||W)&&w.next(F);!I&&w.complete()}))})};
NU4=function(y,W,V){var w=KJ(y)||W||V?{next:y,error:W,complete:V}:y;return w?nJ(function(t,F){t.subscribe(new H7(F,function(I){var P;(P=w.next)==null||P.call(w,I);F.next(I)},function(I){var P;
(P=w.error)==null||P.call(w,I);F.error(I)},function(){var I;
(I=w.complete)==null||I.call(w);F.complete()}))}):Ml};
ISP=function(){var y=_.Ve.apply(0,arguments),W=oXv(y);return nJ(function(V,w){for(var t=y.length,F=Array(t),I=y.map(function(){return!1}),P=!1,C={i$jscomp$229:0};C.i$jscomp$229<t;C={i$jscomp$229:C.i$jscomp$229},C.i$jscomp$229++)Sm(y[C.i$jscomp$229]).subscribe(new H7(w,function(d){return function(L){F[d.i$jscomp$229]=L;
P||I[d.i$jscomp$229]||(I[d.i$jscomp$229]=!0,(P=I.every(Ml))&&(I=null))}}(C),void 0,i7));
V.subscribe(new H7(w,function(d){P&&(d=[d].concat(_.GC(F)),w.next(W?W.apply(null,_.GC(d)):d))}))})};
gYy=function(y){var W=[],V=0,w;for(w in y)W[V++]=w;return W};
Pj4=function(y,W){for(var V in y)if(y[V]==W)return!0;return!1};
CjP=function(y,W,V){for(var w in y)if(W.call(V,y[w],w,y))return w};
Ozv=function(y){if(!y||typeof y!=="object")return y;if(typeof y.clone==="function")return y.clone();if(typeof Map!=="undefined"&&y instanceof Map)return new Map(y);if(typeof Set!=="undefined"&&y instanceof Set)return new Set(y);if(y instanceof Date)return new Date(y.getTime());var W=Array.isArray(y)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(y)||y instanceof DataView?{}:new y.constructor(y.length),V;for(V in y)W[V]=Ozv(y[V]);return W};
vYj=function(y){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return vYj.apply(null,arguments[0]);if(W%2)throw Error("sa");for(var V={},w=0;w<W;w+=2)V[arguments[w]]=arguments[w+1];return V};
dGd=function(y){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return dGd.apply(null,arguments[0]);for(var V={},w=0;w<W;w++)V[arguments[w]]=!0;return V};
_.ij=function(y){return new XZn(y[0].toLowerCase())};
Lbz=function(y){try{return new URL(y,window.document.baseURI)}catch(W){return new URL("about:invalid")}};
zCz=function(y,W){var V=W.createRange();V.selectNode(W.body);y=Nl(y);return V.createContextualFragment(Ih(y))};
cUG=function(y){y=y.nodeName;return typeof y==="string"?y:"FORM"};
eC4=function(y){y=y.nodeType;return y===1||typeof y!=="number"};
fz=function(y,W,V){y.setAttribute(W,V)};
hCn=function(y){return y.parts.map(function(W){var V=W.descriptor;return""+W.url+(V?" "+V:"")}).join(" , ")};
_.Tc=function(y){var W=_.Ve.apply(1,arguments);if(W.length===0)return _.jh(y[0]);for(var V=y[0],w=0;w<W.length;w++)V+=encodeURIComponent(W[w])+y[w+1];return _.jh(V)};
_.mb=function(y,W){y=_.$R(y).toString();var V=y.split(/[?#]/),w=/[?]/.test(y)?"?"+V[1]:"";return oYb(V[0],w,/[#]/.test(y)?"#"+(w?V[2]:V[1]):"",W)};
oYb=function(y,W,V,w){function t(I,P){I!=null&&(Array.isArray(I)?I.forEach(function(C){return t(C,P)}):(W+=F+encodeURIComponent(P)+"="+encodeURIComponent(I),F="&"))}
var F=W.length?"&":"?";w.constructor===Object&&(w=Object.entries(w));Array.isArray(w)?w.forEach(function(I){return t(I[1],I[0])}):w.forEach(t);
return _.jh(y+W+V)};
uj=function(y,W,V,w){this.top=y;this.right=W;this.bottom=V;this.left=w};
Kbz=function(y){y=y.global;if(y.PendingGetBeacon)return y.PendingGetBeacon};
lj=function(y){return function(W){return W.pipe(p3b(y,zc(new SD)))}};
xY=function(y){return function(W){return W.pipe(p3b(y,eD(1)))}};
p3b=function(y,W){function V(w){return new Uc(function(t){return w.subscribe(function(F){kY(y,function(){return void t.next(F)},3)},function(F){kY(y,function(){return void t.error(F)},3)},function(){kY(y,function(){return void t.complete()},3)})})}
return ql(V,p7P(),W,Xy(),V)};
TU4=function(y){var W=izL(y);return W===null?new s9(null):W.pipe(ah(function(V){V=V.serialize();if(fSt)V=_.Vj.btoa(V);else{for(var w=[],t=0,F=0;F<V.length;F++){var I=V.charCodeAt(F);I>255&&(w[t++]=I&255,I>>=8);w[t++]=I}V=_.Gj(w)}return V}),P3(1),xY(y.queue))};
mGy=function(y){var W=W===void 0?{}:W;if(typeof Event==="function")return new Event(y,W);if(typeof document!=="undefined"){var V=document.createEvent("CustomEvent");V.initCustomEvent(y,W.bubbles||!1,W.cancelable||!1,W.detail);return V}throw Error();};
MDj=function(y){return typeof y==="string"?document.getElementById(y):y};
UGR=function(y){var W=!1;W=W===void 0?!1:W;if(y.tagName==="IMG"){if(y.complete&&(!y.naturalWidth||!y.naturalHeight))return!0;var V;if(W&&((V=y.style)==null?void 0:V.display)==="none")return!0}var w,t;return q9t.test((w=y.getAttribute("width"))!=null?w:"")&&q9t.test((t=y.getAttribute("height"))!=null?t:"")};
u0d=function(y,W){if(y.tagName==="IMG")return y.naturalWidth&&y.naturalHeight?!0:!1;try{if(y.readyState)var V=y.readyState;else{var w,t;V=(w=y.contentWindow)==null?void 0:(t=w.document)==null?void 0:t.readyState}return V==="complete"}catch(F){return W===void 0?!1:W}};
S9G=function(y){y||(y=function(W,V,w){W.addEventListener(V,w)});
return y};
kcv=function(y,W){var V=DGL();V=V===void 0?new lSv:V;if(y=MDj(y)){var w=S9G(w);for(var t=!1,F=function(l){t||(t=!0,W(l))},I,P=2,C=0;C<xGj.length;++C)if(xGj[C]===y.tagName){P=3;
I=[y];break}I||(I=y.querySelectorAll(xGj.join(",")));var d=0,L=0,z=!0,c=y=!1;C={};for(var K=0;K<I.length;C={isImg:void 0},K++){var f=I[K];if(!UGR(f))if(C.isImg=f.tagName==="IMG",u0d(f,V.crossDomainLoadedDefault))y=!0,C.isImg&&(z=!0);else{d++;var U=function(l){return function(x){d--;!d&&z&&F(P);l.isImg&&(x=x&&x.type==="error",L--,x||(z=!0),!L&&c&&z&&F(P))}}(C);
w(f,"load",U);C.isImg&&(L++,w(f,"error",U))}}L===0&&(z=!0);I=null;I=_.Vj.document.readyState==="complete";if(d===0&&!y&&I)P=5;else if(d||!y){w(_.Vj,"load",function(){!V.pendingImagesBlockLoad||!L&&z?F(4):c=!0});
return}F(P)}};
sSz=function(y,W,V){if(y)for(var w=0;y!=null&&w<500&&!V(y);++w)y=W(y)};
AUP=function(y,W){sSz(y,function(V){try{return V===V.parent?null:V.parent}catch(w){}return null},W)};
Y9L=function(y,W){if(y.tagName=="IFRAME")W(y);else{y=y.querySelectorAll("IFRAME");for(var V=0;V<y.length&&!W(y[V]);++V);}};
BUu=function(y){return(y=y.ownerDocument)&&(y.parentWindow||y.defaultView)||null};
JUb=function(y,W,V){try{var w=JSON.parse(V.data)}catch(I){}if(typeof w==="object"&&w&&w.type==="creativeLoad"){var t=BUu(y);if(V.source&&t){var F;AUP(V.source,function(I){try{if(I.parent===t)return F=I,!0}catch(P){}});
F&&Y9L(y,function(I){if(I.contentWindow===F)return W(w),!0})}}};
RC4=function(y){return typeof y==="string"?document.getElementById(y):y};
Hzv=function(){var y={};return y[0]=_.Tc(jSy,"current"),y[1]=_.Tc($Gt),y[2]=_.Tc(nYR),y};
AU=function(y,W){return y.left===W.left&&y.top===W.top&&y.width===W.width&&y.height===W.height};
X3L=function(y,W){return{left:Math.max(y.left,W.left),top:Math.max(y.top,W.top),width:Math.max(0,Math.min(y.left+y.width,W.left+W.width)-Math.max(y.left,W.left)),height:Math.max(0,Math.min(y.top+y.height,W.top+W.height)-Math.max(y.top,W.top))}};
aSb=function(y,W){return{left:Math.round(y.left+W.x),top:Math.round(y.top+W.y),width:y.width,height:y.height}};
GcR=function(y,W,V){if(y&&W!==null&&W!=W.top){if(!W.top)return new _.YY(-12245933,-12245933);W=W.top}try{return(V===void 0?0:V)?(new _.YY(W.innerWidth,W.innerHeight)).round():_.B3(W).round()}catch(w){return new _.YY(-12245933,-12245933)}};
rUn=function(y,W,V){try{if(y){if(!W.top)return new uj(-12245933,-12245933,-12245933,-12245933);W=W.top}var w=GcR(y,W,V),t=w.height,F=w.width;if(F===-12245933)return new uj(F,F,F,F);var I=JU(RS(W.document)),P=I.x,C=I.y;return new uj(C,P+F,C+t,P)}catch(d){return new uj(-12245933,-12245933,-12245933,-12245933)}};
bzd=function(y){var W;return(W=y.google_tag_data)!=null?W:y.google_tag_data={}};
QSn=function(y){var W,V;return typeof((W=y.navigator)==null?void 0:(V=W.userAgentData)==null?void 0:V.getHighEntropyValues)==="function"};
yGR=function(y){if(!QSn(y))return null;var W=bzd(y);if(W.uach_promise)return W.uach_promise;y=y.navigator.userAgentData.getHighEntropyValues(Zza).then(function(V){W.uach!=null||(W.uach=V);return V});
return W.uach_promise=y};
Oad=function(y){var W;return W1v(VAL(wML(tAR(F1z(Eud(NJv(IaP(guR(new PzL,y.architecture||""),y.bitness||""),y.mobile||!1),y.model||""),y.platform||""),y.platformVersion||""),y.uaFullVersion||""),((W=y.fullVersionList)==null?void 0:W.map(function(V){var w=new Czy;w=_.jD(w,1,V.brand);return _.jD(w,2,V.version)}))||[]),y.wow64||!1)};
vub=function(y){var W,V;return(V=(W=yGR(y))==null?void 0:W.then(function(w){return Oad(w)}))!=null?V:null};
dRj=function(y,W){return new Uc(function(V){var w=!1,t=Array(W.length);t.fill(void 0);var F=new Set,I=new Set,P=function(z,c){y.running?(t[c]=z,F.add(c),w||(w=!0,kY(y,function(){w=!1;V.next(_.ru(t))},1))):V.error(new $Y(c))},C=function(z,c){I.add(c);
F.add(c);kY(y,function(){V.error(z)},1)},d=function(z){I.add(z);
kY(y,function(){I.size===W.length&&V.complete()},1)},L=W.map(function(z,c){return z.subscribe(function(K){return void P(K,c)},function(K){return void C(K,c)},function(){return void d(c)})});
return function(){L.forEach(function(z){return void z.unsubscribe()})}})};
cGb=function(y,W,V){function w(){if(W.debugChannel){var l=W.debugChannel,x=l.next;var B={creativeId:W.debugNames.getName(V),requiredSignals:t,signals:Object.assign({},F),hasPrematurelyCompleted:I,errorMessage:P,erroredSignalKey:C};B={specMajor:2,specMinor:0,specPatch:0,timestamp:wU(W.timeProvider.now(),new F0(0,W.timeProvider.timeline)),instanceId:W.debugNames.getName(W.symbol),creativeState:B};x.call(l,B)}}
for(var t=Object.keys(y),F={},I=!1,P=null,C=null,d={},L=new Set,z=[],c=[],K=_.N(t),f=K.next(),U={};!f.done;U={key$jscomp$396:void 0},f=K.next())U.key$jscomp$396=f.value,f=y[U.key$jscomp$396],f instanceof s9?(d[U.key$jscomp$396]=f.value,L.add(U.key$jscomp$396),W.debugChannel&&(F[String(U.key$jscomp$396)]=GCP(f.value))):(f=f.pipe(Cz(function(l,x){return X7L(l)||X7L(x)?!1:l===x}),ah(function(l){return function(x){W.debugChannel&&(F[String(l.key$jscomp$396)]=GCP(x),w());
var B={};return B[l.key$jscomp$396]=x,B}}(U)),NG(function(l){return function(x){if(x instanceof $Y)throw new L1G(String(l.key$jscomp$396));
throw x;}}(U)),NU4(function(l){return function(){L.add(l.key$jscomp$396)}}(U),function(l){return function(x){C=String(l.key$jscomp$396);
P=String(x);w()}}(U),function(l){return function(){L.has(l.key$jscomp$396)||(I=!0,w())}}(U))),c.push(U.key$jscomp$396),z.push(f));
(y=Object.keys(F).length>0)&&w();K=dRj(W.queue,z).pipe(NG(function(l){if(l instanceof $Y)throw new zpv(String(c[l.inputObservableIndex]));throw l;}),ah(function(l){return Object.freeze(Object.assign.apply(Object,[{},
d].concat(_.GC(l))))}));
return(z=z.length>0)&&y?W3(Rh(Object.freeze(d)),K):z?K:Rh(Object.freeze(d))};
epy=function(y,W,V,w,t){return y.performanceMonitor.timeExecution.bind(y.performanceMonitor)(733,function(){var F={};try{return W.pipe(NG(function(I){w(Object.assign({},F,{error:I}));return yL}),Qe(function(I){try{var P=V(y,I)}catch(d){return w(Object.assign({},F,{error:d instanceof Error?d:String(d)})),yL}var C={};
return cGb(P,y,I.symbol).pipe(NU4(function(d){C=d}),eD(1),Xy()).pipe(t,NG(function(d){w(Object.assign({},C,{error:d}));
return yL}),O9(void 0),ah(function(){return!0}))})).pipe(hU(function(I){return I+1},0),NG(function(I){w(Object.assign({},F,{error:I}));
return yL}))}catch(I){return w(Object.assign({},F,{error:I})),yL}})()};
nz=function(y){var W=new Map;if(typeof y!=="object"||y===null)return W;Object.values(y).forEach(function(V){V&&typeof V.extrapolateToNow==="function"&&(W.has(V.clock.timeline)||W.set(V.clock.timeline,V.clock.now()))});
return W};
hpL=function(y,W){return typeof y==="string"?encodeURIComponent(y):typeof y==="number"?String(y):Array.isArray(y)?y.map(function(V){return hpL(V,W)}).join(","):y instanceof F0?y.toString():y&&typeof y.extrapolateToNow==="function"?hpL(y.extrapolateUsingTimestampMap(W).value,W):y===!0?"1":y===!1?"0":y===void 0||y===null?null:y instanceof ouP?K14(y):[y.top,
y.left,y.top+y.height,y.left+y.width].join()};
pMn=function(y,W){y=Object.entries(y).map(function(V){var w=_.N(V);V=w.next().value;w=w.next().value;w=hpL(w,W);return w===null?"":V+"="+w}).filter(function(V){return V!==""});
return y.length?y.join("&"):""};
TJG=function(y,W){var V=iau,w=fav;W=W===void 0?.01:W;return function(t){W>0&&Math.random()<=W&&(y.global.HTMLFencedFrameElement&&y.global.fence&&typeof y.global.fence.reportEvent==="function"&&y.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),t=Object.assign({},t,{errorMessage:t.error instanceof Error&&t.error.message?t.error.message:String(t.error),errorStack:t.error instanceof Error&&t.error.stack?String(t.error.stack):null,errorName:t.error instanceof
Error&&t.error.name?String(t.error.name):null,errorContext:String(y.performanceMonitor.timedFunctionContext),errorEscapedQueryId:t.escapedQueryId}),V(Object.assign({},t,{payloadMapper:function(){return function(F){try{return w(Object.assign({},F))}catch(I){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),nz(t)).forEach(function(F){y.beaconFactory.makeBeacon(F).sendNow()}))}};
mRu=function(){var y=_.Ve.apply(0,arguments);return function(W){var V=W.pipe(eD(1),Xy());W=y.map(function(w){return V.pipe(w,O9(!0))});
return r$(W).pipe(P3(1),IS())}};
MAb=function(){var y=_.Ve.apply(0,arguments);return function(W){var V=W.pipe(eD(1),Xy());W=y.map(function(w){return V.pipe(w,O9(!0))});
return W3.apply(null,_.GC(W)).pipe(P3(1),IS())}};
qfL=function(y,W){return function(V){var w=V.pipe(eD(1),Xy());V=w.pipe(y,O9(!0));w=w.pipe(ql(W,eD(),Xy()),O9(!0));V=r$([V,w]);return nXR(V,w).pipe(P3(1),IS())}};
URy=function(y,W,V){V(!0)};
uoy=function(y,W){return ql(Kz(function(V){var w=y(V),t=W(V),F={};return w&&t&&F?new Uc(function(I){t(w,F,function(P){I.next(Object.assign({},V,{canEmit:P}));I.complete()});
return function(){}}):H3}),VL(function(V){return V.canEmit}))};
Sfj=function(y){var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(V){return V.pipe(Kz(function(w){return new Uc(function(t){function F(){P.disconnect();C.unsubscribe()}
var I=y.MutationObserver;if(I&&w.ref!==void 0){var P=new I(function(d){t.next(d)});
P.observe(w.ref,W);var C=w.JSC$9284_released.subscribe(F);return F}})}))}};
DRy=function(y){if(y.measurementDeferralState===3)return null;if(y.timeOnScreenReason!==void 0){var W=y.creativeFound===!1?"n":null;if(W!==null)return W}return y.geometricMeasurementErrors instanceof X0?"msf":y.contextValidationErrors instanceof aS?"c":y.contextVisibilityKnown===!1?"pv":y.geometricMeasurementErrors||y.contextValidationErrors?"x":null};
xRL=function(y,W){return y.replace(laL,function(V,w){try{var t=_.Gc.get(W,w);if(t==null||t.toString()==null)return V;t=t.toString();if(t==""||!_.gu(t==null?"":String(t)))return encodeURIComponent(t).replace(/%2C/g,",")}catch(F){}return V})};
kkz=function(y,W){var V=Object.assign({},y),w=y.userAgentClientHints;V=(delete V.userAgentClientHints,V);V=y.payloadMapper(V);var t=pMn(V,W);return _.rU(y.urlPrefixes,function(F){var I="";typeof w==="string"&&(I="&"+pMn({uach:w},W));var P={};return xRL(F,(P.VIEWABILITY=t,P))+I})};
iau=function(y,W){var V=y.payloadMapper(y),w=pMn(V,W);return w?_.rU(y.urlPrefixes,function(t){t=t.indexOf("?")>=0?t:t+"?";t="?&".indexOf(t.slice(-1))>=0?t:t+"&";return t+w}):y.urlPrefixes};
suR=function(){return ql(VL(function(y){return y!==void 0}),ah(function(y){return y}))};
AGv=function(y){return ql(ah(function(){return!0}),oS(!1),xY(y))};
Yfv=function(y){return y.length<=0?yL:r$(y.map(function(W){var V=0;return W.pipe(ah(function(w){return{index:V++,value:w}}))})).pipe(VL(function(W){return W.every(function(V){return V.index===W[0].index})}),ah(function(W){return W.map(function(V){return V.value})}))};
BJd=function(y,W){y.currentState&&(y.previousState=y.currentState);y.currentState=W;y.previousState&&y.previousState.value?(W=Math.max(0,wU(W.timestamp,y.previousState.timestamp)),y.totalTime+=W,y.consecutiveTime+=W):y.consecutiveTime=0;return y};
JGn=function(){return ql(hU(BJd,{totalTime:0,consecutiveTime:0}),ah(function(y){return y.totalTime}))};
Rp4=function(){return ql(hU(BJd,{totalTime:0,consecutiveTime:0}),ah(function(y){return y.consecutiveTime}))};
juL=function(y,W){return function(V){return Yfv(W.map(function(w){return V.pipe(y(w))}))}};
$Rv=function(){var y;return ql(NU4(function(W){return void(y=W.timestamp)}),Rp4(),ah(function(W){return{timestamp:y,
value:Math.round(W)}}))};
nut=function(y,W){return AU(y.topWindowViewportExternalGeometry,W.topWindowViewportExternalGeometry)&&AU(y.elementGeometry,W.elementGeometry)&&AU(y.exposedViewportLocalGeometry,W.exposedViewportLocalGeometry)&&AU(y.intersectionGeometry,W.intersectionGeometry)&&y.elementGeometrySourceName===W.elementGeometrySourceName&&y.measurementRequests===W.measurementRequests&&y.viewportGeometrySourceName===W.viewportGeometrySourceName&&y.viewportLocalAppOffset.x===W.viewportLocalAppOffset.x&&y.viewportLocalAppOffset.y===
W.viewportLocalAppOffset.y};
rGP=function(y,W){return function(V){return function(w){var t=w.pipe(zc(new SD),Xy());w=V.element.pipe(Cz());t=t.pipe(ah(function(F){return F.value}));
return r$([w,t,W]).pipe(ah(function(F){var I=_.N(F);F=I.next().value;var P=I.next().value;I=I.next().value;if(F.ref===void 0)var C={top:0,left:0,width:0,height:0};else{C=F.ref.getBoundingClientRect();var d=F.ref,L=y.global,z=new _.bj(0,0),c=QL(_.ZS(d));if(Han(c,"parent")){do{if(c==L)var K=_.yc(d);else K=XMv(d),K=new _.bj(K.left,K.top);z.x+=K.x;z.y+=K.y}while(c&&c!=L&&c!=c.parent&&(d=c.frameElement)&&(c=c.parent))}C={top:z.y,left:z.x,width:C.width,height:C.height}}C=aSb(C,P.viewportLocalAppOffset);
L=X3L(C,P.exposedViewportLocalGeometry);z=y.timeProvider.now();c=Object;d=c.assign;if(I!==2||y.inCrossDomainIframe||L.width<=0||L.height<=0)var f=!1;else try{var U=y.document.elementFromPoint(L.left+L.width/2,L.top+L.height/2);f=U?!aan(U,F):!1}catch(l){f=!1}return{timestamp:z,value:d.call(c,{},P,{elementGeometrySourceName:"geo",intersectionGeometry:f?Gka.intersectionGeometry:L,elementGeometry:C})}}),lj(y.queue))}}};
aan=function(y,W,V){V=V===void 0?0:V;return y.ref===void 0||W.ref===void 0?!1:y.ref===W.ref||_.WM(W.ref,function(w){return w===y.ref})?!0:W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView===W.ref.ownerDocument.defaultView.top?!1:V<10&&W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView.frameElement?aan(y,new Vc(W.ref.ownerDocument.defaultView.frameElement),V+1):!0};
Zau=function(y){return function(W){return W.pipe(y.ResizeObserver?baL(y):Quj(y),eD(1),Xy())}};
baL=function(y){return function(W){return W.pipe(Kz(function(V){var w=y.ResizeObserver;if(!w||V.ref===void 0)return Rh(Gka.elementGeometry);var t=(new Uc(function(F){function I(){V.ref!==void 0&&P.unobserve(V.ref);P.disconnect();C.unsubscribe()}
if(V.ref===void 0)return F.complete(),function(){};
var P=new w(function(d){d.forEach(function(L){F.next(L)})});
P.observe(V.ref);var C=V.JSC$9284_released.subscribe(I);return I})).pipe(E9(y.performanceMonitor,736),ah(function(F){return F.contentRect}));
return W3(Rh(V.ref.getBoundingClientRect()),t)}),Cz(AU))}};
Quj=function(y){return function(W){var V=W.pipe(Sfj(y)),w=y.onResize;V=W3(W.pipe(ah(function(){return mGy("resize")})),V,w);
return r$(W,V).pipe(E9(y.performanceMonitor,737),ah(function(t){t=_.N(t).next().value;return t.ref===void 0?void 0:t.ref.getBoundingClientRect()}),suR(),Cz(AU))}};
VHn=function(y,W){var V=yod(y,W).pipe(eD(1),Xy());return function(w){return function(t){t=t.pipe(Kz(function(F){return F.element}),Cz());
return r$([V,t]).pipe(Kz(function(F){var I=_.N(F);F=I.next().value;I=I.next().value;return WTv(y,F.intersectionObserver,Zau(y),F.observations,w,F.flushRecords,I)}),lj(y.queue))}}};
w1L=function(y){return ah(function(W){return W.value.viewportGeometrySourceName!=="nio"?W:Object.assign({},W,{value:Object.assign({},W.value,{exposedViewportLocalGeometry:wJ(y,!0),topWindowViewportExternalGeometry:wJ(y,!0)})})})};
tHv=function(y,W){return Rh(W).pipe(y,ah(function(){return W}))};
yod=function(y,W){return y.timeProvider.timeline!==FTd?$X(new X0(2)):y.MutationObserver?typeof IntersectionObserver==="undefined"?$X(new X0(0)):(new Uc(function(V){var w=new SD,t=new tG(w.next.bind(w),{threshold:[].concat(_.GC(W))});V.next({observations:w.pipe(E9(y.performanceMonitor,735)),intersectionObserver:t,flushRecords:function(F){F=t.takeRecords(F);F.length>0&&w.next(F)}})})).pipe(P3(1),eD(1),Xy()):$X(new X0(1))};
Edv=function(y){return OJP(y.sort(function(W,V){return W.time-V.time}),KXy)};
WTv=function(y,W,V,w,t,F,I){return new Uc(function(P){function C(){f||(f=!0,I.ref!==void 0&&W.unobserve(t,I.ref),L.unsubscribe(),K.unsubscribe(),c.unsubscribe(),U.unsubscribe())}
if(I.ref!==void 0){Nfv(W,t);W.observe(t,I.ref);var d=new Fo({timestamp:y.timeProvider.now(),value:Object.assign({},Gka,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),L=w.pipe(Qe(function(l){return Edv(l)}),VL(function(l){return l.target===I.ref}),ah(function(l){return{timestamp:new F0(l.time,FTd),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:l.rootBounds||Ef,topWindowViewportExternalGeometry:l.rootBounds||wJ(y,!0),measurementRequests:z,elementGeometrySourceName:"nio",intersectionGeometry:l.intersectionRect,elementGeometry:l.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:l.isIntersecting,isV2Visible:l.isVisible}}}),zc(d),Xy()).subscribe(P),z=new SD,c=z.subscribe(function(){F(t);
P.next({timestamp:y.timeProvider.now(),value:d.value.value});I.ref!==void 0&&(W.unobserve(t,I.ref),W.observe(t,I.ref))}),K=tHv(V,I).subscribe(function(){z.next()}),f=!1,U=I.JSC$9284_released.subscribe(function(){return C()});
return C}})};
IZG=function(y,W){var V=y.getOnBackgrounded().pipe(ah(function(){return"b"}));
return nXR(W,V).pipe(P3(1),xY(y.queue))};
NR=function(y){return function(W){var V;return W.pipe(NU4(function(w){return void(V=w.timestamp)}),ah(function(w){return w.value}),y,ah(function(w){return{timestamp:V,
value:w}}))}};
gdd=function(y){return y.intersectionGeometry.width*y.intersectionGeometry.height/(y.elementGeometry.width*y.elementGeometry.height)};
Iu=function(y,W,V){V=V===void 0?function(w,t){return w===t}:V;
return y.timestamp.equals(W.timestamp)&&V(y.value,W.value)};
PM=function(y,W){return W.pipe(ah(function(V){return new gJ(y.timeProvider,{timestamp:y.timeProvider.now(),value:V})}))};
POd=function(y){return function(W){return W.pipe(ISP(y),ah(function(V){var w=_.N(V);V=w.next().value;w=w.next().value;var t=V.value;return{timestamp:V.timestamp,value:t>=1?!0:t<=0?!1:t>=w}}))}};
Obt=function(){return ql(VL(function(y,W){return W>0}),COj,oS(-1),Cz())};
vdG=function(y,W,V){return y?r$([W,V]).pipe(VL(function(w){var t=_.N(w);w=t.next().value;t=t.next().value;return w.timestamp.equals(t.timestamp)}),ah(function(w){var t=_.N(w);
w=t.next().value;t=t.next().value;return w.value>t.value?w:t})):W};
zwb=function(y){return function(W){var V=W.pipe(d1P),w=W.pipe(LTG);return y instanceof Uc?y.pipe(Kz(function(t){return vdG(t,V,w)})):vdG(y.value,V,w)}};
m14=function(y,W,V,w){var t=w.geometryIsOccluded,F=w.exposureThreshold,I=w.wasLargeAdAtRender,P=w.allowLargeAdThreshold,C=w.largeAdExposureThreshold,d=w.mayUseViewportShareExposure,L=w.hasMeasurementStarted;w=w.useIntersectionObserverV2;W=coy(y,V,W);V=ewd(y,V);w=hwz(W,w);var z=ody(y,t,d,W),c=z.pipe(ah(function(a){return a.value}),Cz(),xY(y),hU(function(a,b){return Math.max(a,b)},0)),K=z.pipe(ah(function(a){return a.value}),Obt(),xY(y)),f=W.pipe(KTa,ah(function(a){return a.value}),P3(2),Cz(),xY(y));
I=p1a(y,W,I,P);var U=I.pipe(oS(!1),Cz(),ah(function(a){return a?C:F}));
P=z.pipe(POd(U),Cz(),xY(y));var l=r$([P,W]).pipe(VL(function(a){var b=_.N(a);a=b.next().value;b=b.next().value;return a.timestamp.equals(b.timestamp)}),ah(function(a){var b=_.N(a);
a=b.next().value;b=b.next().value;return{visible:a.value,geometry:b.value.elementGeometry}}),hU(function(a,b){return!b.visible&&a.visible?a:b},{visible:!1,
geometry:Ef}),ah(function(a){return a.geometry}),oS(Ef),xY(y),Cz(AU));
d=d instanceof Uc?d.pipe(Cz(),gU()):H3;U=r$([d,U]).pipe(gU());var x=W.pipe(VL(function(a){return a.value.viewportGeometrySourceName!=="ns"&&a.value.elementGeometrySourceName!=="ns"}),hU(function(a){return a+1},0),oS(0),xY(y)),B=V.pipe(gU(!0),oS(!1),xY(y));
B=r$([L,B]).pipe(ah(function(a){var b=_.N(a);a=b.next().value;b=b.next().value;return a&&!b}),xY(y));
var r=W.pipe(ib4,Cz()),H=r.pipe(ah(function(a){return a.value}),hU(function(a,b){return Math.max(a,b)},0),Cz(),xY(y));
y=r.pipe(ah(function(a){return a.value}),Obt(),xY(y));
return{shouldResetExposureSignals:d,shouldResetViewabilitySignals:U,geometrySignals:{readyGeometryWithDefault:W,measurementStrategy:W.pipe(fZG),creativePosition:l.pipe(Cz(AU)),visible:P.pipe(Cz(Iu)),timestampedExposure:z.pipe(Cz(Iu)),maximumExposure:c,minimumExposure:K,browserSize:W.pipe(TfR,Cz(_.gm)),timestampedScreenShare:r,maxScreenShare:H,minScreenShare:y,geometricMeasurementErrors:V,measurementRequests:W.pipe(ah(function(a){return a.value.measurementRequests})),
isLargeAd:I,geometryIsOccluded:t,hasMeasurementStarted:L,geometryMeasurable:B,validMeasurementCount:x,loadTimeExposure:f,v2VisibilityBitVector:w}}};
ewd=function(y,W){return W.pipe(VL(function(){return!1}),ah(function(V){return V}),NG(function(V){return Ca(new s9(V),y)}))};
coy=function(y,W,V){return W.pipe(jhb(H3),xY(y)).pipe(Cz(function(w,t){return Iu(w,t,nut)}),oS({timestamp:V.now(),
value:Gka}),xY(y))};
ody=function(y,W,V,w){V=w.pipe(zwb(V),NR(ah(function(t){return Math.round(t*100)/100})),xY(y));
return W instanceof s9?V:r$([V,W]).pipe(ah(function(t){var F=_.N(t);t=F.next().value;F=F.next().value;return{timestamp:F.timestamp.maximum(t.timestamp),value:F.value?0:t.value}}),Cz(Iu),xY(y))};
p1a=function(y,W,V,w){W=[W.pipe(ah(function(t){return t.value.elementGeometry.width*t.value.elementGeometry.height>=242500}))];
V instanceof Uc&&W.push(V.pipe(ah(function(t){return!!t})));
V=r$(W);return w?V.pipe(ah(function(t){return t.some(function(F){return F})}),oS(!1),Cz(),xY(y)):Ca(new s9(!1),y)};
hwz=function(y,W){y=r$([y,W]).pipe(ah(function(t){var F=_.N(t);t=F.next().value;if(F.next().value&&t.value.isIntersecting)return t.value.isV2Visible}),Cz());
var V=y.pipe(ah(function(t){return t===void 0?!0:t}),hU(function(t,F){return t||!F},!1)),w=y.pipe(hU(function(t,F){return F===void 0?t:F?!1:t!=null?t:!0},void 0),ah(function(t){return!!t}));
return r$([W,HJy(y,V,w)]).pipe(ah(function(t){var F=_.N(t);t=F.next().value;var I=_.N(F.next().value);F=I.next().value;var P=I.next().value;I=I.next().value;var C=0;if(!t)return 0;if(F===void 0)return 16;F&&(C|=1);F||(C|=2);P&&(C|=4);I&&(C|=8);return C}))};
D1d=function(y,W,V,w,t){var F=MHy.timeThresholdMs;var I=I===void 0?new qyj(W,w):I;return(new Uc(function(P){var C=V.pipe(oS(void 0),Kz(function(){return U1a(t)})).pipe(ah(function(d){var L=d.value;
d=d.timestamp;var z=L.visible;L=L.consecutiveViewTime;var c=L>=F;c||!z?uTv(I):(d=Math.max(0,wU(W.now(),d)),Syu(I,Math.max(0,F-L-d)));return c}),hU(function(d,L){return L||d},!1),Cz()).subscribe(P);
return function(){I.dispose();C.unsubscribe()}})).pipe(pz(function(P){return!P},!0),xY(y))};
U1a=function(y){return Yfv([y,y.pipe($Rv())]).pipe(ah(function(W){var V=_.N(W);W=V.next().value;V=V.next().value;return{timestamp:W.timestamp,value:{visible:W.value,consecutiveViewTime:V.value}}}),Cz(function(W,V){return Iu(W,V,function(w,t){return w.consecutiveViewTime===t.consecutiveViewTime&&w.visible===t.visible})}))};
lZv=function(){return ql(Rp4(),hU(function(y,W){return Math.max(y,W)},0),ah(function(y){return Math.round(y)}))};
x14=function(y){return ql(POd(Rh(y)),lZv())};
kt4=function(y,W){return W instanceof Uc?W.pipe(Kz(function(V){return(V=V?15:null)?$X(new X0(V)):y})):(W=W.value?15:null)?$X(new X0(W)):y};
sfP=function(y){var W=new X0(13);if(y.length<1)return{chain:yL,capturedErrors:yL};var V=new SD,w=y[0];return{chain:y.slice(1).reduce(function(t,F){return t.pipe(NG(function(I){V.next(I);return F}))},w).pipe(NG(function(t){V.next(t);
return $X(W)}),zc(new SD),Xy()),
capturedErrors:V}};
Aod=function(y,W){var V=y.pipe(zc(new SD),Xy());return Kz(function(w){return V.pipe(W(w))})};
BfP=function(y,W){if(y.inCrossDomainIframe)return $X(new X0(6));var V=new SD;return W3(Rh({}),W,V).pipe(ah(function(){return{timestamp:y.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Yya(y),topWindowViewportExternalGeometry:wJ(y,!0),measurementRequests:V,viewportLocalAppOffset:{x:0,y:0}}}}),lj(y.queue))};
Yya=function(y){var W=wJ(y,!1);if(!y.inIframe||!Jot(y.global.parent)||y.global.parent===y.global)return W;var V=new Of(y.global.parent,y.debugChannel);V.beaconFactory=y.beaconFactory;V=Yya(V);y=y.global.frameElement.getBoundingClientRect();return X3L(aSb(X3L(V,y),{x:W.left-y.left,y:W.top-y.top}),W)};
Rwa=function(y){if(y.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[y.visibilityState||y.webkitVisibilityState||y.mozVisibilityState||""])!=null?W:0};
jfz=function(y){return y.document.JSC$9295_onVisibilityChange.pipe(ah(function(W){return W==="visible"}),Cz(),xY(y.queue))};
$1R=function(y,W,V){var w;return W.pipe(Cz(),Kz(function(t){return V.pipe(ah(function(){if(!w){w=!0;try{t.next()}finally{w=!1}}return!0}))}),oS(!1),xY(y.queue))};
ndb=function(y){return ql(NR(ah(function(W){return W>=1?!0:W<=0?!1:W>=y})),JGn(),ah(function(W){return Math.round(W)}))};
X1a=function(y,W,V,w,t){var F=HbL;if(F.length>1)for(var I=0;I<F.length-1;I++)if(F[I]<F[I+1])throw Error();I=t.pipe(oS(void 0),Kz(function(){return V.pipe($Rv())}),Cz(),xY(y));
t=t.pipe(oS(void 0),Kz(function(){return V.pipe(lZv())}),Cz(),xY(y));
return{totalMeasurementTime:w.pipe(oS(void 0),Kz(function(){return W.pipe(ah(function(P){return{timestamp:P.timestamp,value:!0}}),JGn())}),Cz(),xY(y)),
totalUnviewedTime:w.pipe(oS(void 0),Kz(function(){return W.pipe(ah(function(P){return{timestamp:P.timestamp,value:P.value===0}}),JGn())}),Cz(),xY(y)),
maxTimeOnScreen:w.pipe(oS(void 0),Kz(function(){return W.pipe(juL(x14,F))}),Cz(_.gm),xY(y)),
timeOnScreen:w.pipe(oS(void 0),Kz(function(){return W.pipe(juL(ndb,F),ah(function(P){return P.map(function(C,d){return d>0?C-P[d-1]:C})}))}),Cz(_.gm),xY(y)),
maxConsecutiveViewTime:t,consecutiveViewTime:I.pipe(Cz(Iu),xY(y))}};
Gta=function(y){var W=!0;W=W===void 0?!1:W;return ql(Kz(function(V){return aZn(y.document,V,W)}),xY(y.queue))};
rou=function(y,W,V){var w=V.pipe(ah(function(t){return{value:t,timestamp:y.timeProvider.now()}}),Cz(Iu));
return W instanceof Uc?W.pipe(Cz(),Kz(function(t){return t?Ca(new s9({value:!1,timestamp:y.timeProvider.now()}),y.queue):w})):W.value===!1?w:new s9(!1)};
bby=function(y,W,V,w,t,F,I){var P=MHy;W=W instanceof Uc?W.pipe(oS(!1),Cz()):W;var C=!y.isMobile();V=rou(y,V,w);y=I.measurableCreative.pipe(AGv(y.queue));return Object.assign({},P,{geometryIsOccluded:V,wasLargeAdAtRender:t,allowLargeAdThreshold:C,mayUseViewportShareExposure:W,hasMeasurementStarted:y,useIntersectionObserverV2:F})};
Zbv=function(y,W,V,w,t,F){var I=1;F=F===void 0?!0:F;I=I===void 0?.01:I;var P=P===void 0?y.timeProvider.intervalObservable(100).pipe(xY(y.queue)):P;return y.performanceMonitor.timeExecution(916,function(){return Qft(y,W.pipe(lj(y.queue)),V.pipe(lj(y.queue)),w,t,F,I,P)})()};
Qft=function(y,W,V,w,t,F,I,P){var C=jfz(y).pipe(ah(function(L){return!L})),d=new ybz(y,[new Wdv(y,HbL),
new V04(y,P)]);P=mRu(wVy,t0L);return epy(y,W,function(L,z){var c=Ca(new s9(z.element),L.queue).pipe(Gta(L),xY(L.queue)),K={loadedElement:c,shouldMeasure:c.pipe(gU(!0)),measurableCreative:c.pipe(ah(function(a){var b=b===void 0?Symbol():b;return Object.freeze({symbol:b,element:Ca(new s9(a),L.queue)})})),
creativeSearchResult:Ca(new s9("mue"),L.queue)},f=new s9(!1),U=new s9(!1),l=new s9(17),x=new s9(!1),B=new s9(!1),r=Ca(vM,L.queue);f=d.buildGeometrySource(K,{inApp:f,useV2:!1,requestSource:Ca(l,L.queue)}).geometrySource;K=bby(L,x,U,C,B,r,K);U=m14(L.queue,L.timeProvider,f,K);K=U.geometrySignals;x=U.shouldResetViewabilitySignals;U=X1a(L.queue,K.timestampedExposure,K.visible,U.shouldResetExposureSignals,x);x=D1d(L.queue,L.timeProvider,x,K.measurementRequests,K.visible);B=V.pipe(VL(function(a){return a===
z.element.ref}),ah(function(){return"ur"}));
r=rXR(L.timeProvider,t).pipe(gU("t"));B=IZG(L,W3(B,r));r=$1R(L,K.measurementRequests,B.pipe(VL(function(a){return a!==null})));
f=B.pipe(VL(function(a){return a!==null}),ah(function(){return Rwa(L.global.document)===1}));
var H=Fdy(L.document);return Object.assign({},{beaconFactory:new s9(L.beaconFactory),context:new s9(L),inferredPingId:new s9("lidar2"),timeOnScreenPingId:new s9("lidartos"),binaryContext:new s9(17),binaryVersion:new s9(w),requestSource:l,contextValidationErrors:new s9(L.validate()?null:new aS),contextVisibilityKnown:new s9(H),payloadMapper:new s9(fav),endOfSessionReason:B,timeOnScreenReason:B,requestMeasurementOnEndOfSession:r,hasImpressionFired:EVG,crossDomainIframeState:new s9(L.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:vM,inFetchLaterBeaconExperiment:vM,isTurtlex:vM,turtlexReportEventData:new s9(""),reportFencedFrameEvent:H3,isViewableAttributionEnabled:vM,inViewableAttributionExperiment:new s9(0),fetchBeaconFactory:H3,supportsPendingBeacon:vM,supportsFetchLater:vM,emit:new s9(URy),beginToRenderEvent:new s9(Symbol()),activeViewUnmeasurableEvent:new s9(Symbol()),activeViewViewableEvent:new s9(Symbol()),creativeFound:EVG,immediateUrlPrefixes:new s9(z.immediateUrls),timeOnScreenUrlPrefixes:new s9(z.timeOnScreenUrls),
cpmavUrls:H3,viewableRelayUrls:H3,measurementDeferralState:new s9(2),urlSerializer:new s9(kkz),viewUrlSerializer:new s9(NVt),isCreativeLoaded:c.pipe(AGv(L.queue)),pageVisible:C.pipe(ah(function(a){return!a})),
eosPageVisible:f,timestampedExposureHistory:K.timestampedExposure.pipe(hU(function(a,b){a.push(b);return a},[]))},K,{viewable:PM(L,x),
maxTimeOnScreen:PM(L,U.maxTimeOnScreen),timeOnScreen:PM(L,U.timeOnScreen),maxConsecutiveViewTime:PM(L,U.maxConsecutiveViewTime),consecutiveViewTime:U.consecutiveViewTime.pipe(ah(function(a){return new gJ(L.timeProvider,a)})),
totalMeasurementTime:PM(L,U.totalMeasurementTime),totalUnviewedTime:PM(L,U.totalUnviewedTime),userAgentClientHints:TU4(L),clientOrderPingCounter:new s9(new ouP)})},TJG(y,I),MAb(F?qfL(P,I7P):qfL(P,gVv),PUv))};
CUP=function(y){var W=_.Ve.apply(1,arguments).filter(Boolean).join("&");if(!W)return y;var V=y.match(/[?&]adurl=/);return V?y.slice(0,V.index+1)+W+"&"+y.slice(V.index+1):y+(y.indexOf("?")<0?"?":"&")+W};
dJ=function(y,W){return W?"&"+y+"="+encodeURIComponent(W):""};
OGn=function(){try{var y,W;return!!((y=window)==null?0:(W=y.top)==null?0:W.location.href)&&!1}catch(V){return!0}};
_.La=function(y){y&&typeof y.dispose=="function"&&y.dispose()};
_.zk=function(y){for(var W=0,V=arguments.length;W<V;++W){var w=arguments[W];_.bn(w)?_.zk.apply(null,w):_.La(w)}};
dVL=function(){var y=vVP();y=y===void 0?"bevasrsg":y;return new Promise(function(W){var V=window===window.top?window:OGn()?window:window.top,w=V[y],t;((t=w)==null?0:t.bevasrs)?W(new cM(w.bevasrs)):(w||(w={},w=(w.nqfbel=[],w),V[y]=w),w.nqfbel.push(function(F){W(new cM(F))}))})};
Ldn=function(y){var W={c:y.nC,e:y.knC,mc:y.a8u,me:y.xt8};y.kO&&(W.co={c:y.kO.d4l,a:y.kO.gRz,s:y.kO.yaE});return W};
znd=function(y){var W,V,w={nC:y.c,knC:y.e,a8u:(W=y.mc)!=null?W:!1,xt8:(V=y.me)!=null?V:!1};y.co&&(w.kO={d4l:y.co.c,gRz:y.co.a,yaE:y.co.s});return w};
cby=function(y){return function(){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y(),2);W=V.yieldResult;return V.return({f:function(){return W.zT4()},
c:function(w){return W.lF4(w)},
m:function(w){return W.ls(znd(w))},
mws:function(w){return W.oyl(znd(w))}})})}};
env=function(y,W){var V=vVP();V=V===void 0?"bevasrsg":V;W={s:function(F){var I;return y.snapshot(Object.assign({},F.c&&{nC:F.c},F.s&&{wqD:F.s},{xrk:(I=F.p)!=null?I:!0}))},
e:function(F){var I;return void((I=y.wWH)==null?void 0:I.call(y,F))},
c:function(F,I){return y.fym(F,I)},
p:y.xsl,l:function(){return y.iGH()},
wpc:W?cby(W):void 0};var w=window===window.top?window:OGn()?window:window.top,t=w[V];if(t){t.bevasrs=W;if(t.nqfbel!==void 0)for(V=_.N(t.nqfbel),w=V.next();!w.done;w=V.next())w=w.value,w(W);t.nqfbel=void 0}else t={},t=(t.bevasrs=W,t.nqfbel=void 0,t),w[V]=t};
oVP=function(y){var W=W===void 0?50:W;var V=[];_.eA(y,hn4,6,_.hG()).forEach(function(w){_.Ka(w,2)<=W&&V.push(_.Ka(w,1))});
return V};
KdP=function(y){var W=W===void 0?50:W;var V=[];_.eA(y,hn4,6,_.hG()).forEach(function(w){_.Ka(w,2)>W&&V.push(_.Ka(w,1))});
return V};
pVb=function(y){y.then(function(){},function(){})};
pa=function(y){return{fieldType:1,fieldName:y}};
iz=function(y){return{fieldType:2,fieldName:y}};
_.fa=function(y){return{fieldType:3,fieldName:y}};
iGj=function(){function y(){t[0]=1732584193;t[1]=4023233417;t[2]=2562383102;t[3]=271733878;t[4]=3285377520;L=d=0}
function W(z){for(var c=I,K=0;K<64;K+=4)c[K/4]=z[K]<<24|z[K+1]<<16|z[K+2]<<8|z[K+3];for(K=16;K<80;K++)z=c[K-3]^c[K-8]^c[K-14]^c[K-16],c[K]=(z<<1|z>>>31)&4294967295;z=t[0];var f=t[1],U=t[2],l=t[3],x=t[4];for(K=0;K<80;K++){if(K<40)if(K<20){var B=l^f&(U^l);var r=1518500249}else B=f^U^l,r=1859775393;else K<60?(B=f&U|l&(f|U),r=2400959708):(B=f^U^l,r=3395469782);B=((z<<5|z>>>27)&4294967295)+B+x+r+c[K]&4294967295;x=l;l=U;U=(f<<30|f>>>2)&4294967295;f=z;z=B}t[0]=t[0]+z&4294967295;t[1]=t[1]+f&4294967295;t[2]=
t[2]+U&4294967295;t[3]=t[3]+l&4294967295;t[4]=t[4]+x&4294967295}
function V(z,c){if(typeof z==="string"){z=unescape(encodeURIComponent(z));for(var K=[],f=0,U=z.length;f<U;++f)K.push(z.charCodeAt(f));z=K}c||(c=z.length);K=0;if(d==0)for(;K+64<c;)W(z.slice(K,K+64)),K+=64,L+=64;for(;K<c;)if(F[d++]=z[K++],L++,d==64)for(d=0,W(F);K+64<c;)W(z.slice(K,K+64)),K+=64,L+=64}
function w(){var z=[],c=L*8;d<56?V(P,56-d):V(P,64-(d-56));for(var K=63;K>=56;K--)F[K]=c&255,c>>>=8;W(F);for(K=c=0;K<5;K++)for(var f=24;f>=0;f-=8)z[c++]=t[K]>>f&255;return z}
for(var t=[],F=[],I=[],P=[128],C=1;C<64;++C)P[C]=0;var d,L;y();return{reset:y,update:V,digest:w,digestString:function(){for(var z=w(),c="",K=0;K<z.length;K++)c+="0123456789ABCDEF".charAt(Math.floor(z[K]/16))+"0123456789ABCDEF".charAt(z[K]%16);return c}}};
UVR=function(y,W){W=W===void 0?f7n:W;if(!TVv){var V;y=(V=y.navigator)==null?void 0:V.userAgentData;if(!y||typeof y.getHighEntropyValues!=="function"||y.brands&&typeof y.brands.map!=="function")return Promise.reject(Error("Ca"));mVL((y.brands||[]).map(function(t){var F=new M0t;F=_.jD(F,1,t.brand);return _.jD(F,2,t.version)}));
typeof y.mobile==="boolean"&&_.Tk(qFa,2,y.mobile);TVv=y.getHighEntropyValues(W)}var w=new Set(W);return TVv.then(function(t){var F=qFa.clone();w.has("platform")&&_.jD(F,3,t.platform);w.has("platformVersion")&&_.jD(F,4,t.platformVersion);w.has("architecture")&&_.jD(F,5,t.architecture);w.has("model")&&_.jD(F,6,t.model);w.has("uaFullVersion")&&_.jD(F,7,t.uaFullVersion);return F.serialize()}).catch(function(){return qFa.serialize()})};
m1=function(y,W,V,w){this.initialValue_=y;this.maxValue_=W;this.currBaseValue_=this.currValue_=y;this.randomFactor_=V||0;this.backoffFactor_=w||2};
MR=function(y){this.src=y;this.listeners={};this.typeCount_=0};
l7u=function(){for(var y;y=udy.remove();){try{y.fn.call(y.scope)}catch(W){wu(W)}SFt.put(y)}DVa=!1};
_.xVv=function(y){switch(y){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}};
kId=function(y){switch(y){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""}};
_.s8u=function(){};
HGd=function(y,W,V,w,t){y=AbL(YF4(BV4(new _.qR(1828,"0"),y),new Jbn));W.length&&Rnv(y,j8P(new $Vb,W));w!==void 0&&(y.destinationUrl=w);t&&y.disableWithCredentials();var F=new nVu(1828,"","",!1,"",y.build());_.Uf(F,y);var I=new uz({flush:function(P){try{F.flush(P)}catch(C){V(C)}}});
I.addOnDisposeCallback(function(){setTimeout(function(){try{I.snapshotAndFlush()}finally{F.dispose()}})});
I.invocationLimit=1E5;I.flushInterval=3E4;I.JSC$9712_flushTimer.setInterval(3E4);return I};
SA=function(){var y,W,V;return(V=(y=globalThis.performance)==null?void 0:(W=y.now)==null?void 0:W.call(y))!=null?V:Date.now()};
rba=function(y,W){if(y.disable)return new XVt;var V=W?oVP(W):[],w=y.xT,t=y.sfU,F=y.uUx,I=y.destinationUrl,P=y.yHC;y=y.wLm;W=W==null?void 0:_.Da(W,a7d,11);var C=C===void 0?50:C;W=(W==null?void 0:_.Ka(W,1))||0;w={xT:w,aVR:t,t2G:F,destinationUrl:I,yHC:P,wLm:y,disableClearcutCredentialBinding:W>0&&C>=W};V=V===void 0?[]:V;return new GIR(w,V)};
bGR=function(y){if(!y)return null;y=_.lz(y,2);return y===null||y===void 0?null:Nl(y)};
_.Q8n=function(y){if(!y)return null;y=_.lz(y,4);return y===null||y===void 0?null:_.jh(y)};
Wjy=function(y,W){return W?ZGy(W):y?ysn(y):Promise.resolve()};
ZGy=function(y){return new Promise(function(W,V){var w=_.xu("SCRIPT"),t=_.Q8n(y);_.zC(w,t);w.onload=function(){_.ku(w);W()};
w.onerror=function(){_.ku(w);V(Error("Na"))};
(sf("HEAD")[0]||document.documentElement).appendChild(w)})};
ysn=function(y){return new Promise(function(W){var V=_.xu("SCRIPT");if(y){var w=_.lz(y,6);w=w===null||w===void 0?null:_.d$(w)}else w=null;_.LJ(V,w);(sf("HEAD")[0]||document.documentElement).appendChild(V);_.ku(V);W()})};
AG=function(y,W,V){var w,t=new Promise(function(F){w=setTimeout(F,W)});
return Promise.race([y.finally(function(){return void clearTimeout(w)}),
t.then(V)])};
VXP=function(y,W){try{return globalThis.sessionStorage.setItem(y,W),!0}catch(V){return!1}};
w4u=function(y,W,V,w){W=W===void 0?0:W;V=V===void 0?y.length:V;var t=0;for(w&&(t=w4u(w));W<V;W++)w=typeof y==="string"?y.charCodeAt(W):y[W],t=tX4(31,t)+w|0;return t};
Fjj=function(y,W){return[w4u(y,0,y.length>>1,W),w4u(y,y.length>>1)]};
iBL=function(y){var W=_.N(Fjj(y,Yu));y=W.next().value;W=W.next().value;return y.toString(16)+W.toString(16)};
f3z=function(y,W){var V=Fjj(W);y=new Uint32Array(y.buffer);W=y[0];var w=_.N(V);V=w.next().value;w=w.next().value;for(var t=1;t<y.length;t+=2){for(var F=W,I=t,P=V,C=w,d=0;d<22;d++)I=I>>>8|I<<24,I+=F|0,I^=P+38293,F=F<<3|F>>>29,F^=I,C=C>>>8|C<<24,C+=P|0,C^=d+38293,P=P<<3|P>>>29,P^=C;F=[F,I];y[t]^=F[0];t+1<y.length&&(y[t+1]^=F[1])}};
TiP=function(y,W,V,w,t){var F=(4-(Yu.length+V.length)%4)%4,I=new Uint8Array(4+F+Yu.length+4+V.length),P=new DataView(I.buffer),C=0;P.setUint32(C,Math.random()*4294967295);C=C+4+F;I.set(Yu,C);C+=Yu.length;P.setUint32(C,t);I.set(V,C+4);f3z(I,w);return y.insert(W,function(d){return void globalThis.sessionStorage.removeItem(d)})?VXP(W,_.Gj(I))?"s":"t":"i"};
mOd=function(y,W){var V=globalThis.sessionStorage.getItem(y);if(!V)return["m"];try{var w=_.Cq(V);f3z(w,W)}catch(t){return globalThis.sessionStorage.removeItem(y),["c"]}for(W=4;W<7&&w[W]===0;)W++;for(V=0;V<Yu.length;V++)if(w[W++]!==Yu[V])return globalThis.sessionStorage.removeItem(y),["d"];V=(new DataView(w.buffer)).getUint32(W);return Math.floor(Date.now()/1E3)>=V?(globalThis.sessionStorage.removeItem(y),["e"]):["a",new Uint8Array(w.buffer,W+4)]};
MXL=function(y){return globalThis.TextEncoder?(new TextEncoder).encode(y):_.JG(y)};
q14=function(y){var W=y,V;return function(){if(W){var w=W;W=void 0;V=w.apply(this,arguments)}return V}};
uUa=function(y){return X6(function(W){if(W instanceof y)return!0;var V,w,t=W==null?void 0:(V=W.ownerDocument)==null?void 0:(w=V.defaultView)==null?void 0:w[y.name];return UOv(t)&&W instanceof t})};
_.$u=function(y,W,V){_.Ru.call(this);this.JSC$9927_listener_=y;this.JSC$9927_interval_=W||0;this.handler_=V;this.callback_=(0,_.jA)(this.JSC$9929_doAction_,this)};
_.na=function(y){y=S1b(y);return _.jh(y)};
S1b=function(y){return y===null?"null":y===void 0?"undefined":y};
l3P=function(y){if(y&&y.focus)if(y!==document.activeElement)y.focus();else return DOa(function(){return _.g(function(W){document.activeElement&&document.activeElement.blur();return W.return(DOa(function(){y.focus()}))})})};
_.xOv=function(y){var W=W===void 0?5:W;setTimeout(function(){var V;return _.g(function(w){w.nextAddress==1&&(V=document.activeElement);if(w.nextAddress!=5)return(document.activeElement===V||document.activeElement===document.body)&&W>=0&&y?w.yield(l3P(y),5):w.jumpTo(0);if(document.activeElement===y)return w.return();y=y.parentElement;--W;return w.jumpTo(2)})},15)};
DOa=function(y){return new Promise(function(W){requestAnimationFrame(function(){W(y())})})};
sAt=function(y){if(_.HM)y(_.HM);else{var W;((W=kJa)!=null?W:kJa=[]).push(y)}};
au=function(){!_.HM&&_.Xo&&_.As4(_.Xo());return _.HM};
_.As4=function(y){_.HM=y;var W;(W=kJa)==null||W.forEach(sAt);kJa=void 0};
_.Gk=function(y){_.HM&&_.HM.beforeLoadModuleCode(y)};
_.rJ=function(){_.HM&&_.HM.JSC$10917_setLoaded()};
Qc=function(y){return drb(y)?Number(y):String(y)};
Y14=function(y){this.action=y;this.wfv=!1};
Biu=function(y,W){Y14.call(this,"set-drive-options");this.appId=y;this.appOrigin=W};
Jsj=function(y){Y14.call(this,"visibility");this.visible=y};
RLd=function(y,W,V){Za.call(this,y,W,V)};
jAL=function(y){y6.call(this,y)};
$Oy=function(y){y=y&&y.getWindow()||window;return y.gadgets&&y.gadgets.rpc};
HBz=function(y,W){var V=W&&W.getWindow()||window;if($Oy(W))y();else if(n_j)n_j.push(y);else var w=n_j=[y],t=V.setInterval(function(){if($Oy(W)){V.clearInterval(t);for(var F=0;F<w.length;F++)w[F]();n_j=null}},100)};
a3z=function(y,W){var V=new W1(y);_.Uf(W,V);var w={passive:!1};W.listen(V,"mousewheel",function(t){return void X4y(y,t)},w).listen(y,"scroll",function(t){return void X4y(y,t)},w)};
X4y=function(y,W){var V;a:{for(V=W.target;V;){if(V.nodeType==1){var w=_.V6(V,"overflowY");if(w=="auto"||w=="scroll")break a}V=V.parentNode}V=null}if(!V||!_.wf(y,V)||V.scrollHeight==V.clientHeight||W.deltaY>0&&Math.abs(V.scrollTop-(V.scrollHeight-V.clientHeight))<=1||W.deltaY<0&&V.scrollTop==0)W.preventDefault(),W.stopPropagation()};
P1=function(y,W,V,w,t,F,I,P,C){P=P===void 0?!1:P;C=C===void 0?!1:C;Za.call(this,void 0,void 0,void 0);Za.call(this,F?F+" picker modal-dialog":"picker modal-dialog",!0,V);_.to(y,"protocol");this.iframeManager_=new GJa;this.targetId_=FT();this.rpcToken_=FT();y=_.Ey(y);_.N1(y,"hostId");V=_.N1(y,"parent");this.useGapi_=!C&&!0||(V==null?void 0:V.includes("onepick.corp.google.com"));P&&_.If(y,"fv2","true");this.setUrl(y.toString());this.preferredDialogWidth_=w;this.preferredDialogHeight_=t;w!==void 0||
t!==void 0?w=!0:(w=_.N1(_.Ey(y.toString()),"hostId"),rsz||(rsz=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),w=!rsz.has(w));this.autoSizeDialog_=w;this.JSC$10117_gadgetsDomHelper_=I||this.JSC$10068_dom_;W&&(I=this.JSC$10117_gadgetsDomHelper_,W=_.N1(_.Ey(this.JSC$10119_url_),"grugl")=="true"?bBn:QA4,$Oy(I)||(I=I||RS(document),w=I.createElement("SCRIPT"),_.zC(w,W),w.type="text/javascript",I.JSC$9250_document_.body.appendChild(w)));
y=y.toString();W=null;I=y.indexOf("/picker?");I>-1?W=y.substring(0,I+8-1):Ez(y,"/picker")&&(W=y);W&&this.setRelayUrl(W+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(y=this.buttons_,y.JSC$10102_element_=this.buttonEl_,y.render()):_.c7(this.buttonEl_,ZBj),_.gf(this.buttonEl_,!!this.buttons_))};
_.wUb=function(y){var W=W===void 0?yfd:W;var V=_.tA(y),w=function(F){F=_.N(F);F.next();F=Cb(F);return W(V,F)},t=function(F){var I=_.N(F);
F=I.next().value;I=Cb(I);return y.apply(F,I)};
return function(){var F=_.Ve.apply(0,arguments),I=this||_.Vj,P=W9y.get(I);P||(P={},W9y.set(I,P));return V14(P,[this].concat(_.GC(F)),t,w)}};
Oy=function(y){var W={};y=y.replace(/\r/g,"").split("\n");for(var V=0;V<y.length;V++){var w=y[V],t=w.indexOf(":");t<0||(W[w.substring(0,t)]=w.substring(t+2,w.length))}return W};
v1=function(y,W,V){V=V===void 0?function(){}:V;
return y?W():V()};
_.F94=function(y){var W;return((W=t14.documentOverride)!=null?W:y).__wizdispatcher};
_.Lb=function(y){var W=df;df=y;return W};
NEu=function(y){return y===E24||(y==null?void 0:y.name)==="\u0275NotFound"};
Ibd=function(y,W){var V;if((V=y)==null?0:V.isDisposed)throw Error("sb`"+String(y.debugName));for(;y!==void 0;){V=y;if(V.retrieve)return V.retrieve(W,{optional:!0});y=y.parent}return E24};
zt=function(y){return{"\u0275prov":{providedIn:"root",token:Symbol(y),factory:void 0,value:void 0}}};
_.g2j=function(y){var W=df;if(!W){switch(y===void 0?4:y){case 0:y=Error("qb");break;case 1:y=Error("rb");break;case 2:y=Error("tb");break;case 3:y=Error("ub");break;default:y=Error("vb")}throw y;}return W};
Phj=function(y){var W=_.Lb(y);y={};return y[Symbol.dispose]=function(){_.Lb(W)},y};
Cht=function(y,W){y.disposables||(y.disposables=[]);y.disposables.push(W)};
c1=function(y){var W=df;W&&!W.isDisposed&&(Cht(W,y),y.parent=W)};
v2R=function(y){if(y.disposables){for(var W=_.N(y.disposables),V=W.next();!V.done;V=W.next())V=V.value,typeof V==="function"?V():OAj(V);y.disposables.length=0}};
OAj=function(y){if(!y.isDisposed){y.isDisposed=!0;var W;(W=y[Symbol.dispose])==null||W.call(y);delete y.parent;v2R(y)}};
pUj=function(y){var W={retrieve:function(V){switch(V.\u0275prov.token){case dkd.\u0275prov.token:var w=y.asyncDeps;break;case L9n.\u0275prov.token:w=y.rootElement;break;case zyt.\u0275prov.token:w=y.modelRootElement;break;case cfR.\u0275prov.token:w=y.appContext;break;case eyj.\u0275prov.token:w=y.rendererData;break;case hyv.\u0275prov.token:w=y.injectingConstructor;break;case o2j.\u0275prov.token:w=y.dispatcher}if(w)V=w;else a:{for(w=W.parent;w;){var t=w;if(t.retrieve){V=t.retrieve(V);break a}w=
w.parent}w=V.\u0275prov.token;t=K9u[w];t!==void 0?V=t:(t=V.\u0275prov.providedIn,V.\u0275prov.factory?(V=V.\u0275prov.factory(),w&&t==="root"&&(K9u[w]=V)):V=E24)}return V}};
c1(W);return W};
iAz=function(){var y=_.g2j(2),W=Ibd(y,cfR);NEu(W)&&(y=Ibd(y,o2j),NEu(y)||y.getOptionalAppContext())};
fbz=function(y){if(typeof document!=="undefined"&&document&&document.getElementById&&(y=document.getElementById(y))){var W=y.tagName.toUpperCase();if(W=="SCRIPT"||W=="LINK")return y}return null};
mkv=function(y,W){if((y=y===void 0?"":y)&&W)throw Error("Bb");var V="";var w=_.Vj._F_jsUrl;(y=W||fbz(y))&&(V=y.src?y.src:y.getAttribute("href"));if(w&&V){if(w!=V)throw Error("Cb`"+w+"`"+V);V=w}else V=w||V;if(!TEP(V))throw Error("Db");return V};
u1u=function(){if(!M1G){M1G=!0;try{var y=mkv(_.Vj._F_jsUrl?"":"base-js")}catch(w){return}var W=q6n(Uku(y)),V=Object.keys(W);V.length!==0&&sAt(function(w){for(var t=_.N(V),F=t.next();!F.done;F=t.next()){F=F.value;for(var I=_.N(Object.keys(W[F])),P=I.next();!P.done;P=I.next())w.addExtraEdge(F,P.value)}})}};
Dky=function(){var y=Object.assign({},S64);Object.getOwnPropertyNames(S64).forEach(function(W){eH[W]!==void 0&&(y[W]=eH[W])});
return y};
lbL=function(y,W){if(eH.enablePerformanceTiming){var V,w;(w=(V=performance).mark)==null||w.call(V,y+"Start__"+W)}};
xkd=function(y,W){if(eH.enablePerformanceTiming){var V,w;(w=(V=performance).measure)==null||w.call(V,y+"__"+W,y+"Start__"+W)}};
kpa=function(y,W,V){var w;return y&&W?y+"__"+W:(w=y!=null?y:W)!=null?w:V};
AfL=function(y,W){var V=Object.create(sVy);V.debugName=W;!df||c1(V);W=_.Lb(V);try{y(V)}finally{_.Lb(W)}return function(){return void OAj(V)}};
BEG=function(y){return ho(y)&&Y6P in y};
JfG=function(y,W){return Object.is(y,W)};
Kb=function(y){var W=of;of=y;return W};
n2z=function(y){if(pb)throw Error("ga");if(of!==null){var W=of.nextProducerIndex++;Ryv(of);W<of.producerNode.length&&of.producerNode[W]!==y&&iO(of)&&jVt(of.producerNode[W],of.producerIndexOfThis[W]);of.producerNode[W]!==y&&(of.producerNode[W]=y,of.producerIndexOfThis[W]=iO(of)?$kG(y,of,W):0);of.producerLastReadVersion[W]=y.version}};
abL=function(y){if(!iO(y)||y.dirty)if(y.dirty||y.lastCleanEpoch!==HAd)(y.producerMustRecompute(y)||XUL(y))&&y.producerRecomputeValue(y),y.dirty=!1,y.lastCleanEpoch=HAd};
GpG=function(y){if(y.liveConsumerNode!==void 0){var W=pb;pb=!0;try{for(var V=_.N(y.liveConsumerNode),w=V.next();!w.done;w=V.next()){var t=w.value;t.dirty||(y=void 0,t.dirty=!0,GpG(t),(y=t.consumerMarkedDirty)==null||y.call(t,t))}}finally{pb=W}}};
rfn=function(){var y;return((y=of)==null?void 0:y.consumerAllowSignalWrites)!==!1};
bAR=function(y){y&&(y.nextProducerIndex=0);return Kb(y)};
QVv=function(y,W){Kb(W);if(y&&y.producerNode!==void 0&&y.producerIndexOfThis!==void 0&&y.producerLastReadVersion!==void 0){if(iO(y))for(W=y.nextProducerIndex;W<y.producerNode.length;W++)jVt(y.producerNode[W],y.producerIndexOfThis[W]);for(;y.producerNode.length>y.nextProducerIndex;)y.producerNode.pop(),y.producerLastReadVersion.pop(),y.producerIndexOfThis.pop()}};
XUL=function(y){Ryv(y);for(var W=0;W<y.producerNode.length;W++){var V=y.producerNode[W],w=y.producerLastReadVersion[W];if(w!==V.version)return!0;abL(V);if(w!==V.version)return!0}return!1};
$kG=function(y,W,V){ZAv(y);if(y.liveConsumerNode.length===0&&y.producerNode!==void 0)for(var w=0;w<y.producerNode.length;w++)y.producerIndexOfThis[w]=$kG(y.producerNode[w],y,w);y.liveConsumerIndexOfThis.push(V);return y.liveConsumerNode.push(W)-1};
jVt=function(y,W){ZAv(y);if(y.liveConsumerNode.length===1&&y.producerNode!==void 0)for(var V=0;V<y.producerNode.length;V++)jVt(y.producerNode[V],y.producerIndexOfThis[V]);V=y.liveConsumerNode.length-1;y.liveConsumerNode[W]=y.liveConsumerNode[V];y.liveConsumerIndexOfThis[W]=y.liveConsumerIndexOfThis[V];y.liveConsumerNode.length--;y.liveConsumerIndexOfThis.length--;W<y.liveConsumerNode.length&&(V=y.liveConsumerIndexOfThis[W],y=y.liveConsumerNode[W],Ryv(y),y.producerIndexOfThis[V]=W)};
iO=function(y){var W,V;return y.consumerIsAlwaysLive||((V=y==null?void 0:(W=y.liveConsumerNode)==null?void 0:W.length)!=null?V:0)>0};
Ryv=function(y){y.producerNode!=null||(y.producerNode=[]);y.producerIndexOfThis!=null||(y.producerIndexOfThis=[]);y.producerLastReadVersion!=null||(y.producerLastReadVersion=[])};
ZAv=function(y){y.liveConsumerNode!=null||(y.liveConsumerNode=[]);y.liveConsumerIndexOfThis!=null||(y.liveConsumerIndexOfThis=[])};
W6d=function(y){var W=Object.create(ytv);W.computation=y;y=function(){abL(W);n2z(W);if(W.value===fb)throw W.error;return W.value};
y[Tt]=W;return y};
F6v=function(y,W){var V=Object.create(VsR);V.value=y;W!==void 0&&(V.equal=W);y=function(){n2z(V);return V.value};
y[Tt]=V;return[y,function(w){return wpt(V,w)},
function(w){rfn()||tsb(V);wpt(V,w(V.value))}]};
wpt=function(y,W){rfn()||tsb(y);if(!y.equal(y.value,W)){y.value=W;y.version++;HAd++;GpG(y);var V;(V=EIz)==null||V(y)}};
mT=function(y){var W=Kb(null);try{return y()}finally{Kb(W)}};
_.M1=function(y,W,V){V=V===void 0?"":V;y=F6v(y,W==null?void 0:W.equals);var w=y[0],t=w[Tt];t.debugName=kpa(W==null?void 0:W.debugName,V,"[signal]");if(!eH.enablePerformanceTiming)return y;var F=y[1],I=y[2];return[w,function(P){NQv(function(){return void F(P)},t)},
function(P){NQv(function(){return void I(P)},t)}]};
NQv=function(y,W){lbL("signalSet",W.debugName);try{y()}finally{xkd("signalSet",W.debugName)}};
gIP=function(y,W){var V=_.N(_.M1(y,void 0,"cPpJzc"));y=V.next().value;V=V.next().value;y[IYv]=V;y[q1]=W;return y};
Pb4=function(y){return!!y&&typeof y==="object"&&Object.getPrototypeOf(y)===Object.prototype};
Cbd=function(y){return typeof y==="function"&&IYv in y&&typeof y[IYv]==="function"};
Oin=function(y,W){Object.defineProperty(y,q1,{get:function(){return W}})};
uO=function(y,W){if(Uy(y)){var V=y.map(function(F){return uO(F,W)});
Oin(V,W);return V}if(Pb4(y)){V={};y=_.N(Object.entries(y));for(var w=y.next();!w.done;w=y.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;V[w]=uO(t,W)}Oin(V,W);return V}return gIP(y,W)};
vIG=function(y){if(Uy(y))return y.map(function(t){return vIG(t)});
if(Pb4(y)){var W={};y=_.N(Object.entries(y));for(var V=y.next();!V.done;V=y.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;W[V]=vIG(w)}return W}return Cbd(y)?y():y};
L6b=function(){var y={height:0,width:0};if(!Pb4(y))throw Error("Pb");var W=Symbol("Qb");return[uO(y,W),function(V,w){if(V[q1]===W)if(typeof w==="function"){var t=[].concat(_.GC(vIG(V)));w=w(t)||t;dNv(V,[].concat(_.GC(w)))}else dNv(V,w);else throw Error("Rb");}]};
dNv=function(y,W){if(Cbd(y))y[IYv](W);else if(Uy(y)&&Uy(W))W=uO(W,y[q1]),y.length=0,y.push.apply(y,_.GC(W));else if((Pb4(y)||Uy(y))&&(Uy(W)||typeof W==="object"&&W!==null)){W=_.N(Object.entries(W));for(var V=W.next();!V.done;V=W.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;var t=y,F=t[V];Object.hasOwn(y,V)?dNv(F,w):t[V]=uO(w,y[q1])}}else throw Error("Sb");};
z9v=function(y){return Object.create(Object.assign({},SH,y))};
e9d=function(){var y;return(y=cty)!=null?y:cty=z9v({consumerAllowSignalWrites:!0})};
_.DZ=function(y,W,V){V=V===void 0?"":V;y=W6d(y);var w=y[Tt];w.debugName=kpa(W==null?void 0:W.debugName,V,"[computed]");(W==null?void 0:W.equals)!=null&&(w.equal=W.equals);return y};
lO=function(y){var W=Kb(h9P);try{y()}finally{Kb(W)}};
TQb=function(y){if(!y.isDisposed)switch(y.effectType){case xd:oIn.schedule(y);break;case K6v:ppL.schedule(y);break;case iin:fYv.schedule(y);break;default:_.gW(y.effectType)}};
MsR=function(y){mNu.push(y);return function(){var W=mNu.indexOf(y);W!==-1&&mNu.splice(W,1)}};
UNv=function(){if(kd>0)eH.flushRenderEffectsDuringRender&&oIn.flush();else for(var y=_.N(qgz),W=y.next();!W.done;W=y.next())W.value.flush()};
SgP=function(y){sy=!0;try{for(var W=_.N(y),V=W.next();!V.done;V=W.next()){for(var w=V.value,t=[w],F=w;F.parent!==void 0;)F=F.parent,ukv(F)&&y.has(F)&&t.push(F);for(;t.length>0;){var I=t.pop();y.delete(I);I.run()}}}finally{sy=!1}};
Ao=function(y){kd--;if(y){y=_.N(qgz);for(var W=y.next();!W.done;W=y.next())W.value.clear()}else kd>0||sy&&!eH.flushRenderEffectsDuringRender||UNv()};
lYv=function(y,W,V){var w=DNt(y);Yd={name:V?w+" ("+V+")":w,isReactive:y.componentType!==B1,parent:Yd};y=W();Yd=Yd.parent;return y};
Jo=function(){var y=Yd;return y?y.isReactive:!1};
nb=function(y,W,V){var w=Yd;W&&(Yd=W);try{return V==null?y():y.call(V)}catch(F){y=F;$d(y,Yd);if(y!==xNd){kDa=Yd;W=[];for(V=df;V;){var t=void 0;W.push((t=V.debugName)!=null?t:"[context]");t=void 0;V=(t=V.parent)!=null?t:null}sp4=W.reverse()}xNd=y;throw y;}finally{Yd=w}};
$d=function(y,W){try{var V=Atb(W);if(V&&!y.componentStack&&(y.componentStack=V,eH.enableComponentStacksInErrorMessages)){var w=y.message+"\n\nComponent stack: "+V;y.stack&&(y.stack=y.stack.replace(y.message,w));y.message=w}}catch(t){}};
Atb=function(y){if(ho(y)&&y.name!==void 0&&y.isReactive!==void 0&&y.parent!==void 0||y===null){for(var W=0,V="";W<20&&y;)V+=y.name+" > ",y=y.parent,W++;y=V.slice(0,-3)}else if(eH.enableContextBasedComponentStacks){a:{for(y=y===void 0?df:y;y;){if(BEG(y))break a;W=void 0;y=(W=y.parent)!=null?W:null}y=null}y=y.getComponentStack().slice(0,20).join(" > ")}else y="";return y};
DNt=function(y){return y.debugName||y.name||"[component]"};
Ygj=function(y,W,V){W=Object.create(W);y&&(W.effectFn=y);V&&(W.debugName=V);c1(W);W.componentStack=Yd;return W};
_.H1=function(y,W){y=Ygj(y,BQz,W);TQb(y)};
_.XT=function(y){var W=df;if(W){var V=Yd;Cht(W,function(){var w=Kb(e9d());try{nb(function(){return void y()},V)}catch(t){throw eH.enableContextBasedComponentStacks&&$d(t),t;
}finally{Kb(w)}})}};
af=function(y,W){var V={};(W===void 0||W)&&c1(V);W=_.Lb(V);try{y(V)}finally{_.Lb(W)}return function(){return void OAj(V)}};
_.Gt=function(y){return typeof y==="function"?y():(y==null?0:y[Jtj])?y.get():y};
_.rf=function(y,W){y=Ygj(y,R9d,W);TQb(y)};
jpv=function(y){if(df)throw Error("wb");af(y,!1)};
bO=function(y,W){y=_.Lb(y);try{return mT(W)}finally{_.Lb(y)}};
Q6=function(y,W){var V=Atb(kDa),w,t;var F=(t=(w=sp4)==null?void 0:w.slice())!=null?t:[];W={componentStack:V,contextTrace:F,errorSeverity:3,featureFlags:Dky(),tagName:W};return[y,W]};
Hiz=function(y,W,V){if(Object.hasOwnProperty.call($Nj,y)&&(y=$Nj[y],Object.hasOwnProperty.call(y,W)&&(y=y[W],y instanceof Array))){for(var w=null,t=!1,F=0,I=y.length;F<I;++F){var P=y[F],C=P.contingentAttribute;if(!C)return P.contract;w===null&&(w={});C=Object.hasOwnProperty.call(w,C)?w[C]:w[C]=V(C);if(C===P.requiredValue)return P.contract;C==null&&(t=!0)}if(t)return null}W=nI4[W];return typeof W==="number"?W:null};
GDG=function(y,W,V){var w=null;(y=Xpv[y])&&(w=y[W]);return typeof w!=="number"&&((y=Xpv["*"])&&(w=y[W]),typeof w!=="number")?!1:!0===aYn[w][String(V).toLowerCase()]};
bi4=function(y,W){W=Hiz(y.toLowerCase(),W,function(){var w;(w=eH.handleError)==null||w.call.apply(w,[eH].concat(_.GC(Q6(Error("Xb"),y.toLowerCase()))))});
if(W===null)return null;var V;return(V=rt4[W])!=null?V:null};
Qp4=function(y,W,V){if(V===null||V===void 0)return V;W=W.toLowerCase();y=bi4(y,W);return y===null?V:y(W,V)};
Zin=function(){};
ZZ=function(y,W){for(;y.length>W;)y.pop()};
yLt=function(y){y=Array(y);ZZ(y,0);return y};
ya=function(y,W,V){if(V==null)y.removeAttribute(W);else{var w;(w=W.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":W.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?y.setAttributeNS(w,W,V):y.setAttribute(W,V)}};
WJL=function(y,W,V){y[W]=V};
wlb=function(y,W,V){y=y.style;if(typeof V==="string")y.cssText=V;else{y.cssText="";for(var w in V)if(ViG.call(V,w)){W=y;var t=w,F=V[w];t.indexOf("-")>=0?W.setProperty(t,F):W[t]=F}}};
tiL=function(y,W,V){var w=typeof V;w==="object"||w==="function"?y[W]=V:ya(y,W,V)};
FJz=function(){var y=new Zin;y[WV.default]=tiL;y.style=wlb;return y};
Ekd=function(y,W,V,w){(w[W]||w[WV.default])(y,W,V)};
IRt=function(y,W,V){W=new NSb(W,V);return y.__incrementalDOMData=W};
Va=function(y,W){if(y.__incrementalDOMData)return y.__incrementalDOMData;var V=y.nodeType===1?y.localName:y.nodeName,w=y.nodeType===1?y.getAttribute("key"):null;W=IRt(y,V,y.nodeType===1?w||W:null);if(y.nodeType===1&&(y=y.attributes,V=y.length)){w=W._attrsArr||(W._attrsArr=yLt(V*2));for(var t=0,F=0;t<V;t+=1,F+=2){var I=y[t],P=I.value;w[F]=I.name;w[F+1]=P}}return W};
gkb=function(y,W,V,w,t){return W==V&&w==t};
P4b=function(y){for(var W=wV,V=tb();V!==y;){var w=V.nextSibling;W.removeChild(V);Fd.deleted.push(V);V=w}};
tb=function(){return EF?EF.nextSibling:wV.firstChild};
NV=function(){EF=tb()};
vkz=function(y,W,V){NV();var w;a:{if(w=EF){do{var t=w,F=y,I=W,P=Va(t,I);if(C4z(t,F,P.nameOrCtor,I,P.key))break a}while(W&&(w=w.nextSibling))}w=null}w||(y==="#text"?(V=I8.createTextNode(""),IRt(V,"#text",null),y=V):(w=I8,t=wV,typeof y==="function"?w=new y:w=(t=y==="svg"?"http://www.w3.org/2000/svg":y==="math"?"http://www.w3.org/1998/Math/MathML":t==null||Va(t).nameOrCtor==="foreignObject"?null:t.namespaceURI)?w.createElementNS(t,y):w.createElement(y),IRt(w,y,W),y=w,V&&y.setAttribute("nonce",V)),Fd.created.push(y),
w=y);V=w;if(V!==EF){if(O7t.indexOf(V)>=0)for(y=wV,W=V.nextSibling,w=EF;w!==null&&w!==V;)t=w.nextSibling,y.insertBefore(w,W),w=t;else wV.insertBefore(V,EF);EF=V}};
dTn=function(y,W,V){vkz(y,W,V);wV=EF;EF=null;return wV};
LJb=function(){P4b(null);EF=wV;wV=wV.parentNode};
gV=function(){EF=wV.lastChild};
emL=function(y,W){W=W===void 0?{}:W;var V=W.matches===void 0?gkb:W.matches;return function(w,t,F){var I=Fd,P=I8,C=O7t,d=PV,L=CG,z=EF,c=wV,K=C4z;I8=w.ownerDocument;Fd=new zmu(w);C4z=V;PV=[];CG=[];EF=null;var f=wV=w.parentNode,U,l=cLa.call(w);if((U=l.nodeType===11||l.nodeType===9?l.activeElement:null)&&w.contains(U)){for(l=[];U!==f;)l.push(U),U=U.parentNode||(f?U.host:null);f=l}else f=[];O7t=f;try{return y(w,t,F)}finally{w=Fd,OF&&w.deleted.length>0&&OF(w.deleted),I8=P,Fd=I,C4z=K,PV=d,CG=L,EF=z,wV=c,
O7t=C}}};
hmL=function(y,W,V,w){vV.push(Ekd);vV.push(y);vV.push(W);vV.push(V);vV.push(w)};
KJn=function(y,W,V){var w=CG;W=W._attrsArr||(W._attrsArr=yLt(w.length));for(var t=!W.length||!1,F=0;F<w.length;F+=2){var I=w[F];if(t)W[F]=I;else if(W[F]!==I)break;var P=w[F+1];if(t||W[F+1]!==P)W[F+1]=P,hmL(y,I,P,V)}if(F<w.length||F<W.length){for(F=t=F;F<W.length;F+=2)dV[W[F]]=W[F+1];for(F=t;F<w.length;F+=2)t=w[F],I=w[F+1],dV[t]!==I&&hmL(y,t,I,V),W[F]=t,W[F+1]=I,delete dV[t];ZZ(W,w.length);for(var C in dV)hmL(y,C,void 0,V),delete dV[C]}y=okP;okP=V=vV.length;for(C=y;C<V;C+=5)(0,vV[C])(vV[C+1],vV[C+
2],vV[C+3],vV[C+4]);okP=y;ZZ(vV,y);ZZ(w,0)};
LG=function(y){vkz("#text",null);var W=EF;var V=Va(W);if(V.text!==y){V=V.text=y;for(var w=1;w<arguments.length;w+=1)V=(0,arguments[w])(V);W.data!==V&&(W.data=V)}};
qhL=function(y,W,V){if(V===!1&&pla.has(W))ya(y,W,null);else if(W!=="idomKey"&&W!=="skip"&&W!=="skipchildren"&&W!=="children"&&W!=="el")if(W.startsWith("on")){if(W[2]!==":")throw Error("Wb`"+W);if(V===void 0||V===null){var w;(w=eH.handleError)==null||w.call.apply(w,[eH].concat(_.GC(Q6(Error("ac`"+W),y.tagName))));y[W]=void 0}else{var t=W.slice(3);w=Jo();if(t==="jsaction"){V=Array.isArray(V)?V:[V];V=_.N(V);for(var F=V.next();!F.done;F=V.next()){F=F.value;if(typeof F!=="object"||F===null||typeof F.selfReg!==
"function")throw Error("dc`"+W);F.selfReg(0,y,w?_.XT:function(){})}}else{if(typeof V!=="object"||V===null)throw Error("bc`"+W+"`"+typeof V);
if(typeof V.getFn!=="function")throw Error("cc`"+W+"`"+Object.keys(V));if(V.selfReg)V.selfReg(0,y,t,w?_.XT:function(){});
else if(w&&y["on"+t]===void 0){var I=V.getFn(0);y.addEventListener(t,I);_.XT(function(){return void y.removeEventListener(t,I)})}else if(w||!i7R.includes(t))y["on"+t]=V.getFn(0)}}}else{if(W.startsWith("data-")&&typeof V==="string")try{V=fRP(V)}catch(P){V="zSoyz"}typeof V!=="function"||y._disposeEffects!=null?((w=W.startsWith("prop:"))&&(W=W.slice(5)),eH.enableAttributeSanitization&&(w&&TSz(y.tagName)||(V=Qp4(y.tagName,W,V))),W==="style"?("function"==typeof _.cV&&V instanceof _.cV&&(V=V.toString()),
mTR(y,W,V)):w?y[W]=V:Mia(y,W,V)):(y._signalProps||(y._signalProps=[]),y._signalValues||(y._signalValues=[]),y._signalProps.push(W))}};
UTz=function(y,W,V){V=(V===void 0?{}:V).isReactive;if(W==null?0:W.el){var w=W.el;if(typeof w==="function")w(y);else{var t;(t=w.onRender)==null||t.call(w,y);y._disposeRef||(y._disposeRef=function(){var F;(F=w.onUnmount)==null||F.call(w);delete y._disposeRef},V&&_.XT(function(){var F;
(F=y._disposeRef)==null||F.call(y)}))}}};
TSz=function(y){return y.length>0&&y.includes("-")&&!uDn.includes(y.toLowerCase())};
Sh4=function(y){return ho(y)&&e0 in y};
DTP=function(y){return Sh4(y)?y[e0].flattened:y};
lRR=function(y,W){var V=_.Ve.apply(2,arguments),w;W=(w=W)!=null?w:{};w={};return w.type=y,w.props=W,w.children=V,w[hb]=!0,w};
_.o8=function(y){return y.children};
KG=function(y){var W=xTu!==lRR;xTu=y?kYj:lRR;return W};
_.pG=function(y){return _.VK(y)?"nodeType"in y:!1};
iU=function(){return document.createTextNode("")};
fG=function(y){y=document.createTextNode(String(y));y._isSignalTextNode=!0;return y};
ALR=function(y){return y!=null&&y.contentKind===TI||y instanceof Ec||s0u(y)};
Yha=function(y){var W=document.createElement("div");if(s0u(y)&&bGR(y))_.c7(W,bGR(y));else if(y instanceof Ec)_.c7(W,y);else if(y!=null&&y.contentKind===TI){if(y.contentKind!==TI)throw Error("$b");y=Nl(y.toString());_.c7(W,y)}y=_.N(W.childNodes);for(var V=y.next();!V.done;V=y.next())V.value._isSafeOrSanitizedHtmlNode=!0;return W};
md=function(y){y=typeof y;return y==="string"||y==="number"||y==="boolean"};
BSt=function(y){return y instanceof RG||aG(y)||"function"==typeof _.oh&&y instanceof _.oh||"function"==typeof _.cV&&y instanceof _.cV};
JLz=function(y,W){var V=y.parentElement;if(!V)return W;V.replaceChild(W,y);return W};
Rmj=function(y,W){var V=y[0].parentElement;if(V)if(y[0].previousSibling||y[y.length-1].nextSibling){V.insertBefore(W,y[0]);for(var w=y.length-1;w>=0;w--)V.removeChild(y[w])}else V.textContent="",V.appendChild(W);return W};
j0n=function(y,W){if(y[0].parentElement)for(var V=y[0].parentElement,w=W.length,t=y.length,F=w,I=0,P=0,C=y[t-1].nextSibling,d=null;I<t||P<F;)if(y[I]===W[P])I++,P++;else{for(;y[t-1]===W[F-1];)t--,F--;if(t===I)for(var L=F<w?P?W[P-1].nextSibling:W[F-P]:C;P<F;){var z=W[P++];V.insertBefore(z,L)}else if(F===P)for(;I<t;)L=y[I],d&&d.has(L)||V.removeChild(L),I++;else if(y[I]===W[F-1]&&W[P]===y[t-1])L=y[--t].nextSibling,V.insertBefore(W[P++],y[I++].nextSibling),V.insertBefore(W[--F],L),y[t]=W[F];else{if(!d)for(d=
new Map,L=P;L<F;)d.set(W[L],L++);L=d.get(y[I]);if(L==null)V.removeChild(y[I]),I++;else if(P<L&&L<F){z=I;for(var c=1,K=void 0;++z<t&&z<F&&(K=d.get(y[z]))!=null&&K===L+c;)c++;if(c>L-P)for(z=y[I];P<L;)V.insertBefore(W[P++],z);else V.replaceChild(W[P++],y[I++])}else I++}}return W};
nku=function(y){if(Array.isArray(y)){if(y.length>1)throw Error("mc`"+y.length+"`"+y.map($TG).join(", "));y=y[0]}if(y==null)return null;if(!(y instanceof _.Oc)){var W,V;if((W=window)==null?0:(V=W.trustedTypes)==null?0:V.isScript(y))throw Error("lc");if(String(y).trim().length===0)return null;throw Error("nc`"+$TG(y));}return y};
H7j=function(y,W){W=nku(W);W!==null&&_.LJ(y,W)};
Xlz=function(y){if(Array.isArray(y)){if(y.length>1)throw Error("oc`"+y.length+"`"+y.map($TG).join(", "));y=y[0]}if(y==null)return null;if(!G3R(y)){if(String(y).trim().length===0)return null;throw Error("pc`"+$TG(y));}return y};
aRL=function(y,W){W=Xlz(W);W!==null&&(y.textContent=_.r_j(W))};
$TG=function(y){return"("+typeof y+") "+(y!=null&&typeof y==="object"?y.constructor.name:typeof y)+" "+y};
GYt=function(){};
UF=function(y,W){W=W===void 0?{}:W;var V=rLz();eH.legacyTriggerSoyRendererEvents&&iAz();_.rf(function(){MV.setUp();W.isControlFlowComponent&&kd++;var w=V[0],t=V[e0].flattened,F=KG(!0);try{var I=y(),P=b7a(w,I,V);Array.isArray(P)||(V[e0].flattened=[P]);var C=V[e0].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var d=Array.isArray(t)?t[0]:t,L=d[qV],z=d._disposeEffects;d._disposeEffects=void 0;d=Array.isArray(C)?C[0]:C;d[qV]=L;d[qV]&&(d[qV].numNodes=d===C?1:C.length);d._disposeEffects=z}V[0]=P;W.isControlFlowComponent&&
Ao(!1)}catch(c){throw W.isControlFlowComponent&&Ao(!0),c;}finally{KG(F),MV.tearDown()}},W.debugName);
return V};
b7a=function(y,W,V){for(;typeof W==="function";)W=W();if(W!=null&&W[hb]){var w,t,F;(F=eH.handleError)==null||F.call.apply(F,[eH].concat(_.GC(Q6(Error("qc`"+((w=W.type)==null?void 0:w.TAG_NAME)),(t=W.type)==null?void 0:t.TAG_NAME))))}if(y==null)return W==null?iU():md(W)?fG(W):BSt(W)?fG(W.toString()):_.pG(W)?W:W.length===0?iU():Q0L(W,V);if(_.pG(y)){if(W==null)return JLz(y,iU());if(md(W))return Z74(y,W);if(BSt(W))return Z74(y,W.toString());if(_.pG(W))return JLz(y,W);if(W.length===0)return JLz(y,iU());
W=Q0L(W,V);j0n([y],V[e0].flattened);return W}y=uU(y);if(W==null)return Rmj(y,iU());if(md(W))return Rmj(y,fG(W));if(BSt(W))return Rmj(y,fG(W.toString()));if(_.pG(W))return j0n(y,[W])[0];if(W.length===0)return Rmj(y,iU());W=Q0L(W,V);j0n(y,V[e0].flattened);return W};
Z74=function(y,W){y.nodeType===Node.TEXT_NODE?y.textContent!==String(W)&&(y.textContent=String(W)):y=JLz(y,fG(W));return y};
uU=function(y,W,V){return y8z(y,W!=null?W:[],V===void 0?!1:V)};
Q0L=function(y,W){var V=uU(y,void 0,!0);if(V.length===0)return iU();W[e0].flattened=V;return y};
y8z=function(y,W,V,w,t){W=W===void 0?[]:W;V=V===void 0?!1:V;t=t===void 0?-1:t;if(y==null)return W;if(y instanceof S0){var F=y.render();return y8z(F,W,V,w,t)}if(_.pG(W)&&W.nodeType===Node.ELEMENT_NODE)switch(W.tagName){case "SCRIPT":H7j(W,y);return;case "STYLE":aRL(W,y);return}md(y)&&(y=fG(y),w&&V&&(w[t]=y));if(ALR(y)){V=Yha(y);V=Array.from(V.childNodes);V=_.N(V);for(F=V.next();!F.done;F=V.next())WN4(W,F.value);return W}BSt(y)&&(y=fG(y.toString()),w&&V&&(w[t]=y));if(_.pG(y))return WN4(W,y);if(Array.isArray(y)){for(F=
0;F<y.length;F++)y8z(y[F],W,V,y,F);return W}if(typeof y==="function"){F=UF(function(){var P=y();return P!=null&&!md(P)&&ALR(P)?(P=Yha(P),Array.from(P.childNodes)):P},{debugName:"qmF2ne"})[0];
if(Array.isArray(F)){V=_.N(F);for(F=V.next();!F.done;F=V.next())WN4(W,F.value);return W}w&&V&&(w[t]=F);return WN4(W,F)}if(y!=null&&y[hb]){w=y;t=KG(!0);var I=xTu;try{F=I.apply(null,[w.type,w.props].concat(_.GC(w.children)))}finally{KG(t)}return y8z(F,W,V)}(I=eH.handleError)==null||I.call.apply(I,[eH].concat(_.GC(Q6(Error("rc")))));return W};
rLz=function(y){var W={};W=Object.assign([],(W[e0]={flattened:[]},W));if(!y)return W;W[0]=Q0L(y,W);return W};
WN4=function(y,W){Array.isArray(y)?y.push(W):y.appendChild(W);return y};
D7=function(y){if(!eH.enableLazyTsx)return y;if(Array.isArray(y)){for(var W=0;W<y.length;W++)y[W]=D7(y[W]);return y}return y instanceof S0?(y=y.render(),D7(y)):y};
wfP=function(y,W){var V,w,t=DNt(y),F=function(K){w=K;K=KG(!0);var f=Kb(lU);lbL("render",t);try{V=D7(y(W))}finally{xkd("render",t),Kb(f),KG(K)}};
F=eH.enableContextPerComponent?AfL(F,t):af(F,eH.alwaysTrackContexts||!!df);BEG(w);if(!W.renderedFromIdom){var I=_.Lb(w);try{return VKu(y,W,V),V}finally{_.Lb(I)}}!Sh4(V)&&Array.isArray(V)&&(V=rLz(V));var P=DTP(V);I=Array.isArray(P)?P[0]:P;var C=!1;if(I){var d,L=(d=W==null?void 0:W.idomKey)!=null?d:y;d=P!==I;I._disposeEffects=F;var z=I[qV]||{},c=Sh4(V)?V:z.sourceDynamicRange;Object.assign(z,{key:L,numNodes:d?P.length:1,context:w,higherOrder:!!I[qV],sourceDynamicRange:c});I[qV]=z}else C=!0;(function(){var K=
_.Lb(w);try{VKu(y,W,P)}finally{_.Lb(K)}})();
C&&F();return V};
tKb=function(y){var W={},V;for(V in y)W={prev$jscomp$23:void 0,next$jscomp$33:void 0},W.prev$jscomp$23=xV[V],W.next$jscomp$33=y[V],xV[V]=function(w){return function(){var t=_.Ve.apply(0,arguments);w.prev$jscomp$23.apply(null,_.GC(t));w.next$jscomp$33.apply(null,_.GC(t))}}(W)};
FNn=function(){if(Jo())throw Error("sc");return kV};
EyP=function(y,W){if(!y.__unmounted&&W){y.__unmounted=!0;try{y.didUnmount()}catch(t){var V,w;(w=eH.handleError)==null||w.call.apply(w,[eH].concat(_.GC(Q6(t,(V=y.JSC$10143___type)==null?void 0:V.TAG_NAME))))}xV.didUnmount(y);y.el=null;W.__instance&&delete W.__instance}};
IAv=function(y,W,V){y._signalProps!=null&&y._disposeEffects==null&&((V===void 0?0:V)?y._disposeEffects=af(function(){return void Nyt(y,W)},eH.alwaysTrackContexts||!!df):Nyt(y,W))};
Nyt=function(y,W){_.rf(function(){for(var V=y._signalProps,w=y._signalValues,t=0;t<V.length;t++){var F=V[t],I=W[F]();w[t]!==I&&(w[t]=I,qhL(y,F,I))}},"e3YVbb")};
gyt=function(y,W,V){var w,t=[];y._disposeEffects=af(function(){_.rf(function(){var F=V();if(F===null||F===void 0)F="";if(md(F)||F===null)w!=null||(w=document.createTextNode("")),w.parentNode!==y&&(w._isSignalTextNode=!0,y.insertBefore(w,W)),w.textContent=String(F);else if(ALR(F)){for(var I=t.length>0?t[t.length-1].nextSibling:W,P=_.N(t),C=P.next();!C.done;C=P.next())y.removeChild(C.value);F=Yha(F);t=Array.from(F.childNodes);F=_.N(t);for(P=F.next();!P.done;P=F.next())y.insertBefore(P.value,I)}else throw C=
(P=(I=Yd)==null?void 0:I.name)!=null?P:"unknown",Error("hc`"+C+"`"+typeof F);},"VvDgC")},eH.alwaysTrackContexts||!!df)};
OMj=function(y,W){var V=_.Ve.apply(2,arguments);W!=null||(W={});return!eH.enableLazyTsx||Yd!=null&&!Jo()?PuR(y,W,V):new Cuz(y,W,V)};
PuR=function(y,W,V){if(y===_.o8)return V;if(typeof y==="function")return Yd&&!Jo()&&(W.renderedFromIdom=!0),lYv(y,function(){var F=vyb(y,W,V);if(F)return F;V.length>0&&(W.children=V.length===1?V[0]:V);if(y.componentType===B1){var I;AfL(function(){var P=W;if(y.componentType!==B1)I=!1;else{P||(P={});var C=new sF(P,y),d=Kb(lU);try{var L=C.render(P)}finally{Kb(d)}L instanceof HTMLElement?(L.__instance=C,C.el=L,C.JSC$10143___type=y,y.TAG_NAME=L.tagName.toLowerCase(),xV.didPatch(C),I=L):I=L}},y.name);
if(I)return I}return wfP(y,W)},W.debugInstance);
var w=dBv(y,W),t;for(t in W)qhL(w,t,W[t]);IAv(w,W);uU(V,w);UTz(w,W,{isReactive:!0});LNR(w,W);return w};
dBv=function(y,W){y=(zDy.has(y.toLowerCase())?0:c8L.has(y.startsWith("svg:")?y.replace("svg:",""):y))?document.createElementNS("http://www.w3.org/2000/svg",y.startsWith("svg:")?y.replace("svg:",""):y):eDG(y,W)||document.createElement(y);y[hDt]=!0;return y};
oyv=function(y){if(y){var W;(W=y._disposeRef)==null||W.call(y);var V;(V=y._disposeEffects)==null||V.call(y);y.__instance&&y.__instance instanceof Ab&&(W=y.__instance,EyP(W,y),W instanceof sF&&W.disposeEffects());for(W=0;W<y.childNodes.length;W++)oyv(y.childNodes[W])}};
pfR=function(y){KNd.push(y)===1&&requestAnimationFrame(function(){setTimeout(function(){var W=[].concat(_.GC(KNd));KNd=[];W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;try{for(var w=0;w<V.length;w++)oyv(V[w])}catch(t){w=V=void 0,(w=(V=eH).handleError)==null||w.call.apply(w,[V].concat(_.GC(Q6(t))))}}})})};
_.O=function(y,W){return xTu.apply(null,[y,W].concat(_.GC(_.Ve.apply(2,arguments))))};
iMn=function(y,W){W=W===void 0?new Map:W;y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,!W.has(V)){var w=void 0,t=(w=V.producerNode)!=null?w:[];W.set(V,t);iMn(t,W)}return W};
_.v=function(y){var W=y.cond;if(W===void 0)return y.else&&y.else();var V=_.DZ(function(){return!!W()},void 0,"JHVi8"),w=function(){var t=W();
if(!t){var F;(F=eH.handleError)==null||F.call.apply(F,[eH].concat(_.GC(Q6(fAd.nonNullableCondIsNull()))))}return t};
return UF(function(){var t=V(),F;af(function(){var I=Kb(lU);try{F=D7(t?y.then(w):y.else&&y.else())}finally{Kb(I)}},!0);
return F},{debugName:y.debugInstance,
isControlFlowComponent:!0})};
Tyz=function(y){return _.v(y)};
_.YV=function(y){return y.keyBy==="INDEX"?mBG(y):MKj(y)};
q0G=function(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next()){var V=void 0;(V=W.value)==null||V()}};
MKj=function(y){var W=y.keyBy===void 0||y.keyBy==="REFERENCE",V=W?function(L){return L}:y.keyBy,w=[],t=[],F=[],I=[],P=[],C=[],d=!0;
_.XT(function(){q0G(I)});
return UF(function(){var L=y.each(),z=L.length;if(z===0){if(w.length===0&&!d)return F;q0G(I);w=L;t=[];for(L=0;L<w.length;L++)t.push(V(w[L]));F=[];I=[];P=[];C=[];y.fallback&&(I[0]=UBG(function(){F[0]=D7(y.fallback())}));
d=!1;return F}for(var c=new un4,K=w.length-1;K>=0;K--)c.push(t[K],K);K=Array(z);for(var f=Array(z),U=Array(z),l=Array(z),x=Array(W?0:z),B={i$jscomp$450:0};B.i$jscomp$450<z;B={i$jscomp$450:B.i$jscomp$450,item$jscomp$103:void 0,key$jscomp$550:void 0},B.i$jscomp$450++){B.item$jscomp$103=L[B.i$jscomp$450];B.key$jscomp$550=V(B.item$jscomp$103);var r=c.pop(B.key$jscomp$550);r!=null?(U[B.i$jscomp$450]=F[r],f[B.i$jscomp$450]=t[r],K[B.i$jscomp$450]=I[r],l[B.i$jscomp$450]=P[r],W||(x[B.i$jscomp$450]=C[r]),lO(function(H){return function(){l[H.i$jscomp$450](H.i$jscomp$450);
if(!W)x[H.i$jscomp$450](H.item$jscomp$103)}}(B)),delete I[r]):K[B.i$jscomp$450]=UBG(function(H){return function(){var a=_.N(_.M1(H.i$jscomp$450,void 0,"Fqk1zd")),b=a.next().value;
a=a.next().value;l[H.i$jscomp$450]=a;f[H.i$jscomp$450]=H.key$jscomp$550;if(W)U[H.i$jscomp$450]=D7(y.children(H.item$jscomp$103,b));else{var Fv=_.N(_.M1(H.item$jscomp$103,void 0,"GBj5de"));a=Fv.next().value;Fv=Fv.next().value;x[H.i$jscomp$450]=Fv;U[H.i$jscomp$450]=D7(y.children(a,b))}}}(B))}q0G(I);
w=L;t=f;F=U;I=K;P=l;C=x;d=!1;return U},{debugName:y.debugInstance,
isControlFlowComponent:!0})};
mBG=function(y){var W=[],V=[],w=[],t=[],F=!1;_.XT(function(){for(var I=_.N(t),P=I.next();!P.done;P=I.next())P=P.value,P()});
return UF(function(){var I=y.each();F&&I.length>0&&(t.pop()(),W.pop(),F=!1);for(var P=Array(I.length),C={i$jscomp$451:0};C.i$jscomp$451<I.length;C={i$jscomp$451:C.i$jscomp$451},C.i$jscomp$451++)if(C.i$jscomp$451<W.length)W[C.i$jscomp$451]!==I[C.i$jscomp$451]&&(lO(function(L){return function(){return void V[L.i$jscomp$451](I[L.i$jscomp$451])}}(C)),W[C.i$jscomp$451]=I[C.i$jscomp$451]),P[C.i$jscomp$451]=w[C.i$jscomp$451];
else{var d=UBG(function(L){return function(){W[L.i$jscomp$451]=I[L.i$jscomp$451];var z=_.N(_.M1(I[L.i$jscomp$451],void 0,"kGMqJe")),c=z.next().value;z=z.next().value;V[L.i$jscomp$451]=z;P[L.i$jscomp$451]=D7(y.children(c,L.i$jscomp$451))}}(C));
t[C.i$jscomp$451]=d}for(;W.length>I.length;)W.pop(),t.pop()(),V.pop();I.length===0&&!F&&y.fallback&&(C=UBG(function(){P[0]=D7(y.fallback())}),t[0]=C,F=!0);
return w=P},{debugName:y.debugInstance,
isControlFlowComponent:!0})};
UBG=function(y){var W=df;return af(function(V){var w=Kb(lU);try{V.parent=W,y(V)}finally{Kb(w)}},!1)};
_.BV=function(y){return y};
_.j0=function(y){return{isDefault:!0,children:y.children}};
_.$V=function(y){var W=S0z(y),V=_.DZ(function(){return DBa(W)},void 0,"F1PF4");
return UF(function(){var w=V(),t;af(function(){var F=Kb(lU);try{t=D7(w())}finally{Kb(F)}});
return t},{debugName:y.debugInstance,
isControlFlowComponent:!0})};
S0z=function(y){y=y.children;return Array.isArray(y)?y:[y]};
lAd=function(y){var W=y.props;y=y.getChildren()[0];return W.when?{when:W.when,children:y}:{isDefault:!0,children:y}};
DBa=function(y){var W=function(){return null};
y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,V!=null&&V[hb]&&(V=V.type===_.j0?{isDefault:!0,children:V.children[0]}:{when:V.props.when,children:V.children[0]}),V instanceof S0&&(V=lAd(V)),V.isDefault)W=V.children;else if(V.when())return V.children;return W};
ky4=function(y){var W=null,V,w={get value(){var F,I;(I=(F=t).validateGetValue)==null||I.call(F);return t.__value},set value(F){var I,P;(P=(I=t).validateSetValue)==null||P.call(I,F);t.__value=F;t.__hasBeenSet=!0}},t=(w.__value=null,w.__hasBeenSet=!1,w.__hasErrored=!1,w.onRender=function(F){if(V&&F!==V){V._disposeRef=void 0;var I;(I=W)==null||I()}V=F;W=y(F)||null},w.onUnmount=function(){var F;
(F=W)==null||F();W=t.value=null},w[xBv]=!0,w);
return t};
A84=function(y){var W=FNn();if(W==null)throw _.s2z.PRIMITIVE_INVALID_HOOK_CALL();var V=W.hookCounter++;W.hooks||(W.hooks=[]);var w=W.hooks;w[V]||(w[V]={key:y,host:W});if(y!==w[V].key){if(W.JSC$10143___type){var t;y=(t=W.JSC$10143___type)==null?void 0:t.name}else y=W instanceof sF?DNt(W.functionComponent):"<"+W.el.tagName.toLowerCase()+">";throw _.s2z.OUT_OF_ORDER_HOOK_CALL(y);}return w[V]};
Y04=function(y,W){return!y||y.length!==(W==null?void 0:W.length)||y.some(function(V,w){return V!==W[w]})};
Byv=function(y,W){var V=A84("onChange"),w=FNn();Y04(V.deps,W)&&(V.deps=W,V.pendingEffect=y,w.__syncEffects||(w.__syncEffects=[]),w.__syncEffects.push(V))};
_.nG=function(y,W){var V=V===void 0?{}:V;V=V.appContext;var w=!!eH.legacyTriggerSoyRendererEvents;MV.setUp();try{var t=J8j(y,W,V);w&&(W=V,W==null&&(W=_.F94(document).getAppContext()),W.get(RDj).JSC$28688_getEventTarget().dispatchEvent(new j2y($Bv,y,TI)));MV.log(y);return t}finally{MV.tearDown()}};
J8j=function(y,W,V){var w=nb(function(){var t=Kb(lU);try{return af(function(){var F=_.F94(_.ZS(y)),I;var P=pUj({rootElement:{value:y},appContext:V||(F==null?void 0:(I=F.getOptionalAppContext)==null?void 0:I.call(F)),dispatcher:F});F=_.Lb(P);P=KG(!0);kd++;try{uU(W(),y),Ao(!1)}catch(C){throw Ao(!0),C;}finally{KG(P),_.Lb(F)}},!1)}catch(F){throw eH.enableContextBasedComponentStacks&&$d(F),F;
}finally{Kb(t)}});
y[nyz]=!0;return function(){y.textContent="";w();y[nyz]=!1}};
_.HV=function(y){if(ukv(of)){var W;(W=eH.handleError)==null||W.call.apply(W,[eH].concat(_.GC(Q6(Error("gc")))))}var V=df,w=Yd;Promise.resolve().then(function(){if(V&&!V.isDisposed){var t=_.Lb(V);try{nb(function(){return void y()},w)}catch(F){throw eH.enableContextBasedComponentStacks&&$d(F),F;
}finally{_.Lb(t)}}})};
_.Xd=function(y,W){Byv(function(){return mT(y)},W)};
_.a8=function(y){Jo()?_.HV(function(){mT(y)}):Byv(function(){return mT(y)},[])};
XfL=function(y){var W=[].concat(_.GC(y));y.length=0;y=_.N(W);for(W=y.next();!W.done;W=y.next()){W=W.value;HMd(W);var V=W.pendingEffect;W.pendingEffect=null;if(V=V==null?void 0:V())W.pendingCleanup=V}};
HMd=function(y){var W=y.pendingCleanup;y.pendingCleanup=null;W==null||W()};
aAz=function(y,W){if(Jo())return y();var V=A84("useMemoInternal");Y04(V.deps,W)&&(V.deps=W,V.value=y());return V.value};
Gyd=function(y,W){return aAz(y,W)};
GI=function(y){return aAz(y,[])};
rV=function(y){return GI(function(){return{value:y}})};
_.bU=function(y,W){if(!y)return null;y=Object.keys(y);y=_.N(y);for(var V=y.next();!V.done;V=y.next()){V=V.value;var w=V.toLowerCase();if(w.indexOf(W,w.length-W.length)>-1)return V}return null};
_.Z7=function(){var y=arguments,W=_.Qa;y.length>1?W[y[0]]=y[1]:y.length===1&&Object.assign(W,y[0])};
_.yC=function(y,W){return y in _.Qa?_.Qa[y]:W};
_.W4=function(y,W){return!!_.yC(y,W)};
r8d=function(y){var W=_.Qa.EXPERIMENT_FLAGS;return W?W[y]:void 0};
Q2v=function(y){bMu.forEach(function(W){return W(y)})};
_.wi=function(y){return y&&window.yterr?function(){try{return y.apply(this,arguments)}catch(W){_.VC(W)}}:y};
_.VC=function(y){var W=_.ts("yt.logging.errors.log");W?W(y,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=_.yC("ERRORS",[]),W.push([y,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Z7("ERRORS",W));Q2v(y)};
_.FU=function(y,W,V,w,t){var F=_.ts("yt.logging.errors.log");F?F(y,"WARNING",W,V,w,void 0,t):(F=_.yC("ERRORS",[]),F.push([y,"WARNING",W,V,w,void 0,t]),_.Z7("ERRORS",F))};
y1v=function(y,W){W=y.split(W);for(var V={},w=0,t=W.length;w<t;w++){var F=W[w].split("=");if(F.length===1&&F[0]||F.length===2)try{var I=ZMj(F[0]||""),P=ZMj(F[1]||"");if(I in V){var C=V[I];Array.isArray(C)?_.yK(C,P):V[I]=[C,P]}else V[I]=P}catch(c){var d=c,L=F[0],z=String(y1v);d.args=[{key:L,value:F[1],query:y,method:WRn===z?"unchanged":z}];VMn.hasOwnProperty(L)||_.FU(d)}}return V};
wNP=function(y){var W=[];_.Gc.forEach(y,function(V,w){var t=_.E1(w);V=Array.isArray(V)?V:[V];_.IA(V,function(F){F==""?W.push(t):W.push(t+"="+_.E1(F))})});
return W.join("&")};
_.gi=function(y){y.charAt(0)==="?"&&(y=y.substring(1));return y1v(y,"&")};
_.P4=function(y){return y.indexOf("?")!==-1?(y=(y||"").split("#")[0],y=y.split("?",2),_.gi(y.length>1?y[1]:y[0])):{}};
_.CB=function(y,W){return tMv(y,W||{},!0)};
FRa=function(y,W){return tMv(y,W||{},!1)};
tMv=function(y,W,V){var w=y.split("#",2);y=w[0];w=w.length>1?"#"+w[1]:"";var t=y.split("?",2);y=t[0];t=_.gi(t[1]||"");for(var F in W)if(V||!_.Gc.containsKey(t,F))t[F]=W[F];return _.O1(y,t)+w};
zJ=function(y){if(!W)var W=window.location.href;var V=_.v4(y)[1]||null,w=_.di(y);return V&&w?LB(y,W):w?_.di(W)===w&&(Number(_.v4(W)[4]||null)||null)===(Number(_.v4(y)[4]||null)||null):!0};
_.Nwj=function(y){y=EFG(y);return y===null?!1:y[0]==="com"&&y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
EFG=function(y){y=_.di(y);return y!==null?y.split(".").reverse():null};
ZMj=function(y){return y&&y.match(I2y)?y:c4(y)};
_.eX=function(y){return new gFt(y)};
_.hs=function(){P5n||(P5n=new C5u);return P5n};
vFb=function(y){var W=_.oA,V,w;_.g(function(t){V=_.hs();return(w=V.resolve(_.eX(W)))?(y(w),t.return(Promise.resolve(w))):t.return(V.resolve(new OgP(W)).then(function(F){y(F);return F}))})};
_.e=function(y){y=KB(y);return typeof y==="string"&&y==="false"?!1:!!y};
_.pB=function(y,W){y=KB(y);return y===void 0&&W!==void 0?W:Number(y||0)};
d8v=function(y){y=KB(y);return Array.isArray(y)?_.rU(y,function(W){return Number(W||0)}):[Number(y||0)]};
_.iC=function(y){y=KB(y);return y!==void 0?String(y):""};
_.fB=function(y){y=KB(y);return Array.isArray(y)?_.rU(y,function(W){return String(W||"")}):[String(y||"")]};
LRP=function(){return _.yC("EXPERIMENTS_TOKEN","")};
KB=function(y){return _.yC("EXPERIMENT_FLAGS",{})[y]};
zzv=function(){for(var y=[],W=_.yC("EXPERIMENTS_FORCED_FLAGS",{}),V=_.N(Object.keys(W)),w=V.next();!w.done;w=V.next())w=w.value,y.push({key:w,value:String(W[w])});V=_.yC("EXPERIMENT_FLAGS",{});w=_.N(Object.keys(V));for(var t=w.next();!t.done;t=w.next())t=t.value,t.startsWith("force_")&&W[t]===void 0&&y.push({key:t,value:String(V[t])});return y};
ezz=function(){if(!c1R)return null;var y=c1R();return"open"in y?y:null};
_.hzj=function(y){switch(_.TJ(y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.TJ=function(y){return y&&"status"in y?y.status:-1};
_.mj=function(y,W){typeof y==="function"&&(y=_.wi(y));return window.setTimeout(y,W)};
_.MO=function(y,W){typeof y==="function"&&(y=_.wi(y));return window.setInterval(y,W)};
_.qO=function(y){window.clearTimeout(y)};
KRR=function(y){y=_.P4(y);for(var W=_.N(oFy),V=W.next();!V.done;V=W.next())if(y[V.value]!==void 0)return!0;return!1};
f2j=function(y,W,V,w,t,F,I,P){V=V===void 0?"GET":V;w=w===void 0?"":w;P=P===void 0?!1:P;var C=ezz();if(!C)return null;var d=function(){(C&&"readyState"in C?C.readyState:0)===4&&W&&_.wi(W)(C)};
"onloadend"in C?C.addEventListener("loadend",d,!1):C.onreadystatechange=d;_.e("debug_forward_web_query_parameters")&&(y=pNd(y,window.location.search));C.open(V,y,!0);F&&(C.responseType=F);I&&(C.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(w instanceof FormData));if(t=igd(y,t))for(var L in t)C.setRequestHeader(L,t[L]),"content-type"===L.toLowerCase()&&(V=!1);V&&C.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(P&&"setAttributionReporting"in XMLHttpRequest.prototype){y=
{eventSourceEligible:!0,triggerEligible:!1};try{C.setAttributionReporting(y)}catch(z){_.FU(z)}}C.send(w);return C};
igd=function(y,W){W=W===void 0?{}:W;var V=zJ(y),w=_.yC("INNERTUBE_CLIENT_NAME"),t=_.e("web_ajax_ignore_global_headers_if_set"),F;for(F in Twa){var I=_.yC(Twa[F]),P=F==="X-Goog-AuthUser"||F==="X-Goog-PageId";F!=="X-Goog-Visitor-Id"||I||(I=_.yC("VISITOR_DATA"));var C;if(!(C=!I)){if(!(C=V||(_.di(y)?!1:!0))){C=y;var d;if(d=_.e("add_auth_headers_to_remarketing_google_dot_com_ping")&&F==="Authorization"&&(w==="TVHTML5"||w==="TVHTML5_UNPLUGGED"||w==="TVHTML5_SIMPLY"))d=EFG(C),d=d===null?!1:d[1]==="google"?
!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1;d&&(C=_.U1(C)||"",C=C.split("/"),C="/"+(C.length>1?C[1]:""),d=C==="/pagead");C=d?!0:!1}C=!C}C||t&&W[F]!==void 0||w==="TVHTML5_UNPLUGGED"&&P||(W[F]=I)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(V||!_.di(y))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!_.di(y)){try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(z){}L&&(W["X-YouTube-Time-Zone"]=
L)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&_.di(y)||(W["X-YouTube-Ad-Signals"]=wNP(m8d()));return W};
_.MMu=function(y,W){var V=_.di(y);_.e("debug_handle_relative_url_for_query_forward_killswitch")||!V&&zJ(y)&&(V=document.location.hostname);var w=_.U1(y);w=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&w&&w.startsWith("/api/");if(!V||w)return y;var t=_.gi(W),F={};_.IA(oFy,function(I){t[I]&&(F[I]=t[I])});
return FRa(y,F)};
qnv=function(y,W){W.method="POST";W.postParams||(W.postParams={});return _.uC(y,W)};
U8y=function(y,W){var V=_.yC("XSRF_FIELD_NAME"),w;W.headers&&(w=W.headers["Content-Type"]);return!W.excludeXsrf&&(!_.di(y)||W.withCredentials||_.di(y)===document.location.hostname)&&W.method==="POST"&&(!w||w==="application/x-www-form-urlencoded")&&!(W.postParams&&W.postParams[V])};
_.uC=function(y,W){var V=W.format||"JSON";y=u$u(y,W);var w=Snj(y,W),t=!1,F=D8P(y,function(C){if(!t){t=!0;P&&_.qO(P);var d=_.hzj(C),L=null,z=400<=C.status&&C.status<500,c=500<=C.status&&C.status<600;if(d||z||c)L=l2j(y,V,C,W.convertToSafeHtml);d&&(d=x8j(V,C,L));L=L||{};z=W.context||_.Vj;d?W.onSuccess&&W.onSuccess.call(z,C,L):W.onError&&W.onError.call(z,C,L);W.onFinish&&W.onFinish.call(z,C,L)}},W.method,w,W.headers,W.responseType,W.withCredentials);
w=W.timeout||0;if(W.onTimeout&&w>0){var I=W.onTimeout;var P=_.mj(function(){t||(t=!0,F.abort(),_.qO(P),I.call(W.context||_.Vj,F))},w)}return F};
u$u=function(y,W){W.includeDomain&&(y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+y);var V=_.yC("XSRF_FIELD_NAME");if(W=W.urlParams)W[V]&&delete W[V],y=_.CB(y,W);return y};
Snj=function(y,W){var V=_.yC("XSRF_FIELD_NAME"),w=_.yC("XSRF_TOKEN"),t=W.postBody||"",F=W.postParams;U8y(y,W)&&(F||(F={}),F[V]=w);(_.e("ajax_parse_query_data_only_when_filled")&&F&&Object.keys(F).length>0||F)&&typeof t==="string"&&(t=_.gi(t),_.Gc.extend(t,F),t=W.postBodyFormat&&W.postBodyFormat==="JSON"?JSON.stringify(t):_.SX(t));F=t||F&&!_.Gc.isEmpty(F);!k2z&&F&&W.method!=="POST"&&(k2z=!0,_.VC(Error("Pc")));return t};
l2j=function(y,W,V,w){var t=null;switch(W){case "JSON":try{var F=V.responseText}catch(I){throw w=Error("Qc"),w.params=y,_.FU(w),I;}y=V.getResponseHeader("Content-Type")||"";F&&y.indexOf("json")>=0&&(F.substring(0,5)===")]}'\n"&&(F=F.substring(5)),t=JSON.parse(F));break;case "XML":if(y=(y=V.responseXML)?swa(y):null)t={},_.IA(y.getElementsByTagName("*"),function(I){t[I.tagName]=A1t(I)})}w&&Ynb(t);
return t};
Ynb=function(y){if(_.VK(y))for(var W in y)W==="html_content"||Ez(W,"_html")?y[W]=Nl(y[W]):Ynb(y[W])};
x8j=function(y,W,V){if(W&&W.status===204)return!0;switch(y){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}};
swa=function(y){return y?(y=("responseXML"in y?y.responseXML:y).getElementsByTagName("root"))&&y.length>0?y[0]:null:null};
A1t=function(y){var W="";_.IA(y.childNodes,function(V){W+=V.nodeValue});
return W};
BwR=function(y){if(y.name==="JavaException")return!0;y=y.stack;return y.includes("chrome://")||y.includes("-extension://")||y.includes("webkit-masked-url://")};
J1y=function(y){if(!y.stack)return!0;var W=!y.stack.includes("\n");return W&&y.stack.includes("ErrorType: ")||W&&y.stack.includes("Anonymous function (Unknown script")||y.stack.toLowerCase()==="not available"||y.fileName==="user-script"||y.fileName.startsWith("user-script:")?!0:!1};
_.D3=function(y){_.Ru.call(this);this.JSC$10410_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!y};
jwj=function(y,W){var V=y.length,w=0,t=function(){return y.charCodeAt(w++)};
do{var F=Rzz(t);if(F===Infinity)break;var I=F>>3;switch(F&7){case 0:F=Rzz(t);if(I===W)return F;break;case 1:if(I===W)return;w+=8;break;case 2:F=Rzz(t);if(I===W)return y.substr(w,F);w+=F;break;case 5:if(I===W)return;w+=4;break;default:return}}while(w<V)};
Rzz=function(y){var W=y(),V=W&127;if(W<128)return V;W=y();V|=(W&127)<<7;if(W<128)return V;W=y();V|=(W&127)<<14;if(W<128)return V;W=y();return W<128?V|(W&127)<<21:Infinity};
nFL=function(y,W,V,w){if(y)if(Array.isArray(y)){var t=w;for(w=0;w<y.length&&!(y[w]&&(t+=$8n(w,y[w],W,V),t>500));w++);w=t}else if(typeof y==="object")for(t in y){if(y[t]){var F=t;var I=y[t],P=W,C=V;F=typeof I!=="string"||F!=="clickTrackingParams"&&F!=="trackingParams"?0:(I=jwj(atob(I.replace(/-/g,"+").replace(/_/g,"/")),2))?$8n(F+".ve",I,P,C):0;w+=F;w+=$8n(t,y[t],W,V);if(w>500)break}}else V[W]=lC(y),w+=V[W].length;else V[W]=lC(y),w+=V[W].length;return w};
$8n=function(y,W,V,w){V+="."+y;y=lC(W);w[V]=y;return V.length+y.length};
lC=function(y){try{return(typeof y==="string"?y:String(JSON.stringify(y))).substr(0,500)}catch(W){return"unable to serialize "+typeof y+" ("+W.message+")"}};
Hgy=function(y){switch(y){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}};
_.s1=function(y,W,V,w,t){_.k_.set(y,W,{maxAge:V,path:"/",domain:w===void 0?"youtube.com":w,secure:t===void 0?!1:t})};
_.XNv=function(y,W,V){_.k_.remove(y,W===void 0?"/":W,V===void 0?"youtube.com":V)};
_.As=function(){if(_.e("embeds_web_enable_cookie_detection_fix")){if(!_.Vj.navigator.cookieEnabled)return!1}else if(!_.k_.isEnabled())return!1;if(!_.k_.isEmpty())return!0;_.e("embeds_web_enable_cookie_detection_fix")?_.k_.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.k_.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.k_.get("TESTCOOKIESENABLED")!=="1")return!1;_.k_.remove("TESTCOOKIESENABLED");return!0};
a2P=function(){var y=_.Vj.navigator;return y?y.connection:void 0};
G2t=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}};
_.bga=function(){var y=a2P();if(y){var W=r1u[y.type||"unknown"]||"CONN_UNKNOWN";y=r1u[y.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&y!=="CONN_UNKNOWN"&&(W=y);if(W!=="CONN_UNKNOWN")return W;if(y!=="CONN_UNKNOWN")return y}};
Zgb=function(){var y=a2P();if(y!=null&&y.effectiveType)return Qwa.hasOwnProperty(y.effectiveType)?Qwa[y.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.B4=function(){try{return _.Y_(),!0}catch(y){return!1}};
_.Y_=function(y){if(_.yC("DATASYNC_ID")!==void 0)return _.yC("DATASYNC_ID");throw new _.Js("Datasync ID not set",y===void 0?"unknown":y);};
_.RA=function(y){this.mechanism=y};
jX=function(y){this.mechanism=y};
$_=function(y){this.storage_=y;this.cachedIsStorageAvailable_=null};
yzG=function(){var y=null;try{y=_.Vj.localStorage||null}catch(W){}$_.call(this,y)};
W_R=function(){var y=null;try{y=_.Vj.sessionStorage||null}catch(W){}$_.call(this,y)};
nB=function(y,W){this.mechanism_=y;this.JSC$10512_prefix_=W+"::"};
_.VEP=function(y){var W=new yzG;return W.isAvailable()?y?new nB(W,y):W:null};
_.wEb=function(y){var W=new W_R;return W.isAvailable()?y?new nB(W,y):W:null};
F_4=function(){var y;return(y=tEn())==null?void 0:y.get("LAST_RESULT_ENTRY_KEY",!0)};
_.aA=function(y){ECn||(_.H4?_.H4.logError(y):(_.XU.push({type:"ERROR",payload:y}),_.XU.length>10&&_.XU.shift()))};
GJ=function(y,W){ECn||(_.H4?_.H4.logEvent(y,W):(_.XU.push({type:"EVENT",eventType:y,payload:W}),_.XU.length>10&&_.XU.shift()))};
ri=function(y){if(y.indexOf(":")>=0)throw Error("Xc");};
bC=function(y){return y.substr(0,y.indexOf(":"))||y};
gCv=function(){return(N5R||IHv)&&QC("applewebkit")&&!QC("version")&&(!QC("safari")||QC("gsa/"))};
QC=function(y){var W=_.cy();return W?W.toLowerCase().indexOf(y)>=0:!1};
O2d=function(y,W,V,w){W=bC(W);var t=y instanceof Error?y:Error("Yc`"+y);if(t instanceof Z3)return t;y={objectStoreNames:V,dbName:W,dbVersion:w};if(t.name==="QuotaExceededError")return new Z3("QUOTA_EXCEEDED",y);if(_.yi&&t.name==="UnknownError")return new Z3("QUOTA_MAYBE_EXCEEDED",y);if(t instanceof Pgn)return new Z3("MISSING_INDEX",Object.assign({},y,{objectStore:t.objectStore,index:t.index}));if(t.name==="InvalidStateError"&&Cgd.some(function(F){return t.message.includes(F)}))return new Z3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
y);
if(t.name==="AbortError")return new Z3("UNKNOWN_ABORT",y,t.message);t.args=[Object.assign({},y,{name:"IdbError",originalName:t.name})];t.level="WARNING";return t};
WU=function(y,W,V){var w=F_4();return new Z3("IDB_NOT_SUPPORTED",{context:{caller:y,publicName:W,version:V,hasSucceededOnce:w==null?void 0:w.hasSucceededOnce}})};
vCL=function(y){if(!y)throw Error();throw y;};
dKG=function(y){return y};
L_a=function(y,W,V){var w=function(){try{y.removeEventListener("success",t),y.removeEventListener("error",F)}catch(I){}},t=function(){W(y.result);
w()},F=function(){V(y.error);
w()};
y.addEventListener("success",t);y.addEventListener("error",F)};
z5P=function(y){return new Promise(function(W,V){L_a(y,W,V)})};
tf=function(y){return new Vi(new wE(function(W,V){L_a(y,W,V)}))};
czn=function(y,W){return new Vi(new wE(function(V,w){var t=function(){var F=y?W(y):null;F?F.then(function(I){y=I;t()},w):V()};
t()}))};
h5j=function(y,W,V){return new Promise(function(w,t){var F=W!==void 0?self.indexedDB.open(y,W):self.indexedDB.open(y);var I=V.blocked,P=V.blocking,C=V.terminated,d=V.upgrade,L=V.closed,z,c=function(){z||(z=new F1(F.result,{closed:L}));return z};
F.addEventListener("upgradeneeded",function(K){try{if(K.newVersion===null)throw Error("cd");if(F.transaction===null)throw Error("dd");K.dataLoss&&K.dataLoss!=="none"&&GJ("IDB_DATA_CORRUPTED",{reason:K.dataLossMessage||"unknown reason",dbName:bC(y)});var f=c(),U=new e5R(F.transaction);d&&d(f,function(l){return K.oldVersion<l&&K.newVersion>=l},U);
U.done.catch(function(l){t(l)})}catch(l){t(l)}});
F.addEventListener("success",function(){var K=F.result;P&&K.addEventListener("versionchange",function(){P(c())});
K.addEventListener("close",function(){GJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:bC(y),dbVersion:K.version});C&&C()});
w(c())});
F.addEventListener("error",function(){t(F.error)});
I&&F.addEventListener("blocked",function(){I()})})};
oCP=function(y,W,V){V=V===void 0?{}:V;return h5j(y,W,V)};
_.Nk=function(y,W){W=W===void 0?{}:W;var V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return _.l7(I,2),V=self.indexedDB.deleteDatabase(y),w=W,(t=w.blocked)&&V.addEventListener("blocked",function(){t()}),I.yield(z5P(V),4);
if(I.nextAddress!=2)return _.E6(I,0);F=_.YX(I);throw O2d(F,y,"",-1);})};
pER=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return w.yield(_.IV(K_P,W),2);V=w.yieldResult;return w.return(_.gE(V,["databases"],{enableRetries:!0,mode:"readwrite"},function(t){var F=t.objectStore("databases");return F.get(y.actualName).then(function(I){if(I?y.actualName!==I.actualName||y.publicName!==I.publicName||y.userIdentifier!==I.userIdentifier:1)return F.put(y).then(function(){})})}))})};
_.PU=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return y?w.yield(_.IV(K_P,W),2):w.return();V=w.yieldResult;return w.return(V.delete("databases",y))})};
_.i2v=function(y,W){var V,w;return _.g(function(t){return t.nextAddress==1?(V=[],t.yield(_.IV(K_P,W),2)):t.nextAddress!=3?(w=t.yieldResult,t.yield(_.gE(w,["databases"],{enableRetries:!0,mode:"readonly"},function(F){V.length=0;return CA(F.objectStore("databases"),{},function(I){y(I.getValue())&&V.push(I.getValue());return I.continue()})}),3)):t.return(V)})};
fHG=function(y,W){return _.i2v(function(V){return V.publicName===y&&V.userIdentifier!==void 0},W)};
MEz=function(){var y,W,V,w;return _.g(function(t){switch(t.nextAddress){case 1:y=F_4();if((W=y)==null?0:W.hasSucceededOnce)return t.return(!0);var F;if(F=T5j)F=/WebKit\/([0-9]+)/.exec(_.cy()),F=!!(F&&parseInt(F[1],10)>=600);F&&(F=/WebKit\/([0-9]+)/.exec(_.cy()),F=!(F&&parseInt(F[1],10)>=602));if(F||O6)return t.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return t.return(!1)}catch(I){return t.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return t.return(!1);
_.l7(t,2);w={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return t.yield(pER(w,mKb),4);case 4:return t.yield(_.PU("yt-idb-test-do-not-use",mKb),5);case 5:return t.return(!0);case 2:return _.YX(t),t.return(!1)}})};
UKn=function(){if(qBv!==void 0)return qBv;ECn=!0;return qBv=MEz().then(function(y){ECn=!1;var W;if((W=tEn())!=null&&W.expiringStorage_){var V;W={hasSucceededOnce:((V=F_4())==null?void 0:V.hasSucceededOnce)||y};var w;(w=tEn())==null||w.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return y})};
vU=function(){return _.ts("ytglobal.idbToken_")||void 0};
_.LA=function(){var y=vU();return y?Promise.resolve(y):UKn().then(function(W){(W=W?mKb:void 0)&&_.dE("ytglobal.idbToken_",W);return W})};
urj=function(y){if(!_.B4())throw y=new Z3("AUTH_INVALID",{dbName:y}),_.aA(y),y;var W=_.Y_();return{actualName:y+":"+W,publicName:y,userIdentifier:W}};
SBP=function(y,W,V,w){var t,F,I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:return F=(t=Error().stack)!=null?t:"",L.yield(_.LA(),2);case 2:I=L.yieldResult;if(!I)throw P=WU("openDbImpl",y,W),_.e("ytidb_async_stack_killswitch")||(P.stack=P.stack+"\n"+F.substring(F.indexOf("\n")+1)),_.aA(P),P;ri(y);C=V?{actualName:y,publicName:y,userIdentifier:void 0}:urj(y);_.l7(L,3);return L.yield(pER(C,I),5);case 5:return L.yield(oCP(C.actualName,W,w),6);case 6:return L.return(L.yieldResult);case 3:return d=
_.YX(L),_.l7(L,7),L.yield(_.PU(C.actualName,I),9);case 9:_.E6(L,8);break;case 7:_.YX(L);case 8:throw d;}})};
DKj=function(y,W,V){V=V===void 0?{}:V;return SBP(y,W,!1,V)};
lHv=function(y,W,V){V=V===void 0?{}:V;return SBP(y,W,!0,V)};
xKt=function(y,W){W=W===void 0?{}:W;var V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(_.LA(),2);if(t.nextAddress!=3){V=t.yieldResult;if(!V)return t.return();ri(y);w=urj(y);return t.yield(_.Nk(w.actualName,W),3)}return t.yield(_.PU(w.actualName,V),0)})};
k4P=function(y,W,V){y=y.map(function(w){return _.g(function(t){return t.nextAddress==1?t.yield(_.Nk(w.actualName,W),2):t.yield(_.PU(w.actualName,V),0)})});
return Promise.all(y).then(function(){})};
sBn=function(y){var W=W===void 0?{}:W;var V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(_.LA(),2);if(t.nextAddress!=3){V=t.yieldResult;if(!V)return t.return();ri(y);return t.yield(fHG(y,V),3)}w=t.yieldResult;return t.yield(k4P(w,W,V),0)})};
AzL=function(y,W){W=W===void 0?{}:W;var V;return _.g(function(w){if(w.nextAddress==1)return w.yield(_.LA(),2);if(w.nextAddress!=3){V=w.yieldResult;if(!V)return w.return();ri(y);return w.yield(_.Nk(y,W),3)}return w.yield(_.PU(y,V),0)})};
zp=function(y,W){return YBa(y,W)};
JzR=function(y){return _.IV(B5L(),y)};
R5j=function(y,W,V,w){var t,F,I;return _.g(function(P){switch(P.nextAddress){case 1:return t={config:y,hashData:W,timestamp:w!==void 0?w:(0,_.cU)()},P.yield(JzR(V),2);case 2:return F=P.yieldResult,P.yield(F.clear("hotConfigStore"),3);case 3:return P.yield(F.put("hotConfigStore",t),4);case 4:return I=P.yieldResult,P.return(I)}})};
jBv=function(y,W,V,w,t){var F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:return F={config:y,hashData:W,configData:V,timestamp:t!==void 0?t:(0,_.cU)()},C.yield(JzR(w),2);case 2:return I=C.yieldResult,C.yield(I.clear("coldConfigStore"),3);case 3:return C.yield(I.put("coldConfigStore",F),4);case 4:return P=C.yieldResult,C.return(P)}})};
$KP=function(y){var W,V;return _.g(function(w){return w.nextAddress==1?w.yield(JzR(y),2):w.nextAddress!=3?(W=w.yieldResult,V=void 0,w.yield(_.gE(W,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.e1(t.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(F){V=F.getValue()})}),3)):w.return(V)})};
nCz=function(y){var W,V;return _.g(function(w){return w.nextAddress==1?w.yield(JzR(y),2):w.nextAddress!=3?(W=w.yieldResult,V=void 0,w.yield(_.gE(W,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.e1(t.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(F){V=F.getValue()})}),3)):w.return(V)})};
H2u=function(){return _.g(function(y){return y.yield(sBn("ytGcfConfig"),0)})};
XEG=function(){return"INNERTUBE_API_KEY"in _.Qa&&"INNERTUBE_API_VERSION"in _.Qa};
_.hf=function(){return{innertubeApiKey:_.yC("INNERTUBE_API_KEY"),innertubeApiVersion:_.yC("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.yC("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.yC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.yC("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.yC("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.yC("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.yC("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.W4("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.W4("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.yC("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.yxv=function(y){var W={client:{hl:y.innertubeContextHostLanguage,gl:y.innertubeContextGeoLocation,clientName:y.innertubeContextClientName,clientVersion:y.innertubeContextClientVersion,configInfo:y.innertubeContextClientConfigInfo}};navigator.userAgent&&(W.client.userAgent=String(navigator.userAgent));var V=_.Vj.devicePixelRatio;V&&V!=1&&(W.client.screenDensityFloat=String(V));V=LRP();V!==""&&(W.client.experimentsToken=V);V=zzv();V.length>0&&(W.request={internalExperimentFlags:V});aH4(y,void 0,W);
G4L(void 0,W);rzz(void 0,W);b2v(y,void 0,W);QBu(void 0,W);_.e("start_client_gcf")&&Z2z(void 0,W);_.yC("DELEGATED_SESSION_ID")&&!_.e("pageid_as_header_web")&&(W.user={onBehalfOfUser:_.yC("DELEGATED_SESSION_ID")});!_.e("fill_delegate_context_in_gel_killswitch")&&(y=_.yC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:y}));y=_.yC("INNERTUBE_CONTEXT");var w;if(_.e("enable_persistent_device_token")&&(y==null?0:(w=y.client)==null?0:w.rolloutToken)){var t;
W.client.rolloutToken=y==null?void 0:(t=y.client)==null?void 0:t.rolloutToken}w=Object;t=w.assign;y=W.client;V={};for(var F=_.N(Object.entries(_.gi(_.yC("DEVICE","")))),I=F.next();!I.done;I=F.next()){var P=_.N(I.value);I=P.next().value;P=P.next().value;I==="cbrand"?V.deviceMake=P:I==="cmodel"?V.deviceModel=P:I==="cbr"?V.browserName=P:I==="cbrver"?V.browserVersion=P:I==="cos"?V.osName=P:I==="cosver"?V.osVersion=P:I==="cplatform"&&(V.platform=P)}W.client=t.call(w,y,V);return W};
aH4=function(y,W,V){y=y.innertubeContextClientName;if(y==="WEB"||y==="MWEB"||y===1||y===2)if(W){V=_.Da(W,WSR,96)||new WSR;var w=VWn();w=Object.keys(w9j).indexOf(w);w=w===-1?null:w;w!==null&&_.oV(V,3,w);_.sx(W,96,V)}else V&&(V.client.mainAppWebInfo=(w=V.client.mainAppWebInfo)!=null?w:{},V.client.mainAppWebInfo.webDisplayMode=VWn())};
G4L=function(y,W){var V=_.ts("yt.embedded_player.embed_url");V&&(y?(W=_.Da(y,tWz,7)||new tWz,_.jD(W,4,V),_.sx(y,7,W)):W&&(W.thirdParty={embedUrl:V}))};
rzz=function(y,W){var V;if(_.e("web_log_memory_total_kbytes")&&((V=_.Vj.navigator)==null?0:V.deviceMemory)){var w;V=(w=_.Vj.navigator)==null?void 0:w.deviceMemory;y?_.KA(y,95,Dq(V*1E6)):W&&(W.client.memoryTotalKbytes=""+V*1E6)}};
b2v=function(y,W,V){if(y.appInstallData)if(W){var w;V=(w=_.Da(W,pA,62))!=null?w:new pA;_.jD(V,6,y.appInstallData);_.sx(W,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=y.appInstallData)};
QBu=function(y,W){var V=_.bga();V&&(y?_.oV(y,61,FSP[V]):W&&(W.client.connectionType=V));_.e("web_log_effective_connection_type")&&(V=Zgb())&&(y?_.oV(y,94,E1j[V]):W&&(W.client.effectiveConnectionType=V))};
_.g1t=function(y,W,V){V=V===void 0?{}:V;var w={};_.yC("EOM_VISITOR_DATA")?w={"X-Goog-EOM-Visitor-Id":_.yC("EOM_VISITOR_DATA")}:w={"X-Goog-Visitor-Id":V.visitorData||_.yC("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return w;W=V.authorization||_.yC("AUTHORIZATION");W||(y?W="Bearer "+_.ts("gapi.auth.getToken")().access_token:(NPP.instance||(NPP.instance=new NPP),y=IPP(),_.e("pageid_as_header_web")||delete y["X-Goog-PageId"],w=Object.assign({},w,y)));W&&(w.Authorization=W);return w};
Z2z=function(y,W){var V=PN4();if(V){var w=V.coldConfigData,t=V.coldHashData;V=V.hotHashData;if(y){var F;W=(F=_.Da(y,pA,62))!=null?F:new pA;w=_.jD(W,1,w);_.jD(w,3,t).setHotHashData(V);_.sx(y,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},w&&(W.client.configInfo.coldConfigData=w),t&&(W.client.configInfo.coldHashData=t),V&&(W.client.configInfo.hotHashData=V))}};
ih=function(y){for(var W=y.length;--W>=0;)y[W]=0};
CNn=function(y,W,V,w,t){this.static_tree=y;this.extra_bits=W;this.extra_base=V;this.elems=w;this.max_length=t;this.has_stree=y&&y.length};
OOd=function(y,W){this.dyn_tree=y;this.max_code=0;this.stat_desc=W};
fA=function(y,W){y.pending_buf[y.pending++]=W&255;y.pending_buf[y.pending++]=W>>>8&255};
Tp=function(y,W,V){y.bi_valid>16-V?(y.bi_buf|=W<<y.bi_valid&65535,fA(y,y.bi_buf),y.bi_buf=W>>16-y.bi_valid,y.bi_valid+=V-16):(y.bi_buf|=W<<y.bi_valid&65535,y.bi_valid+=V)};
m9=function(y,W,V){Tp(y,V[W*2],V[W*2+1])};
v1L=function(y,W){var V=0;do V|=y&1,y>>>=1,V<<=1;while(--W>0);return V>>>1};
doG=function(y,W,V){var w=Array(16),t=0,F;for(F=1;F<=15;F++)w[F]=t=t+V[F-1]<<1;for(V=0;V<=W;V++)t=y[V*2+1],t!==0&&(y[V*2]=v1L(w[t]++,t))};
LSt=function(y){var W;for(W=0;W<286;W++)y.dyn_ltree[W*2]=0;for(W=0;W<30;W++)y.dyn_dtree[W*2]=0;for(W=0;W<19;W++)y.bl_tree[W*2]=0;y.dyn_ltree[512]=1;y.opt_len=y.static_len=0;y.last_lit=y.matches=0};
zd4=function(y){y.bi_valid>8?fA(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf);y.bi_buf=0;y.bi_valid=0};
cxb=function(y,W,V){zd4(y);fA(y,V);fA(y,~V);Mk.arraySet(y.pending_buf,y.window,W,V,y.pending);y.pending+=V};
edL=function(y,W,V,w){var t=W*2,F=V*2;return y[t]<y[F]||y[t]===y[F]&&w[W]<=w[V]};
hdt=function(y,W,V){for(var w=y.heap[V],t=V<<1;t<=y.heap_len;){t<y.heap_len&&edL(W,y.heap[t+1],y.heap[t],y.depth)&&t++;if(edL(W,w,y.heap[t],y.depth))break;y.heap[V]=y.heap[t];V=t;t<<=1}y.heap[V]=w};
fPb=function(y,W,V){var w=0;if(y.last_lit!==0){do{var t=y.pending_buf[y.d_buf+w*2]<<8|y.pending_buf[y.d_buf+w*2+1];var F=y.pending_buf[y.l_buf+w];w++;if(t===0)m9(y,F,W);else{var I=qk[F];m9(y,I+256+1,W);var P=o1j[I];P!==0&&(F-=KSt[I],Tp(y,F,P));t--;I=t<256?U6[t]:U6[256+(t>>>7)];m9(y,I,V);P=p9n[I];P!==0&&(t-=iOt[I],Tp(y,t,P))}}while(w<y.last_lit)}m9(y,256,W)};
TP4=function(y,W){var V=W.dyn_tree,w=W.stat_desc.static_tree,t=W.stat_desc.has_stree,F=W.stat_desc.elems,I,P=-1;y.heap_len=0;y.heap_max=573;for(I=0;I<F;I++)V[I*2]!==0?(y.heap[++y.heap_len]=P=I,y.depth[I]=0):V[I*2+1]=0;for(;y.heap_len<2;){var C=y.heap[++y.heap_len]=P<2?++P:0;V[C*2]=1;y.depth[C]=0;y.opt_len--;t&&(y.static_len-=w[C*2+1])}W.max_code=P;for(I=y.heap_len>>1;I>=1;I--)hdt(y,V,I);C=F;do I=y.heap[1],y.heap[1]=y.heap[y.heap_len--],hdt(y,V,1),w=y.heap[1],y.heap[--y.heap_max]=I,y.heap[--y.heap_max]=
w,V[C*2]=V[I*2]+V[w*2],y.depth[C]=(y.depth[I]>=y.depth[w]?y.depth[I]:y.depth[w])+1,V[I*2+1]=V[w*2+1]=C,y.heap[1]=C++,hdt(y,V,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1];I=W.dyn_tree;C=W.max_code;w=W.stat_desc.static_tree;t=W.stat_desc.has_stree;F=W.stat_desc.extra_bits;var d=W.stat_desc.extra_base,L=W.stat_desc.max_length,z,c=0;for(z=0;z<=15;z++)y.bl_count[z]=0;I[y.heap[y.heap_max]*2+1]=0;for(W=y.heap_max+1;W<573;W++){var K=y.heap[W];z=I[I[K*2+1]*2+1]+1;z>L&&(z=L,c++);I[K*2+1]=z;if(!(K>
C)){y.bl_count[z]++;var f=0;K>=d&&(f=F[K-d]);var U=I[K*2];y.opt_len+=U*(z+f);t&&(y.static_len+=U*(w[K*2+1]+f))}}if(c!==0){do{for(z=L-1;y.bl_count[z]===0;)z--;y.bl_count[z]--;y.bl_count[z+1]+=2;y.bl_count[L]--;c-=2}while(c>0);for(z=L;z!==0;z--)for(K=y.bl_count[z];K!==0;)w=y.heap[--W],w>C||(I[w*2+1]!==z&&(y.opt_len+=(z-I[w*2+1])*I[w*2],I[w*2+1]=z),K--)}doG(V,P,y.bl_count)};
moR=function(y,W,V){var w,t=-1,F=W[1],I=0,P=7,C=4;F===0&&(P=138,C=3);W[(V+1)*2+1]=65535;for(w=0;w<=V;w++){var d=F;F=W[(w+1)*2+1];++I<P&&d===F||(I<C?y.bl_tree[d*2]+=I:d!==0?(d!==t&&y.bl_tree[d*2]++,y.bl_tree[32]++):I<=10?y.bl_tree[34]++:y.bl_tree[36]++,I=0,t=d,F===0?(P=138,C=3):d===F?(P=6,C=3):(P=7,C=4))}};
MWz=function(y,W,V){var w,t=-1,F=W[1],I=0,P=7,C=4;F===0&&(P=138,C=3);for(w=0;w<=V;w++){var d=F;F=W[(w+1)*2+1];if(!(++I<P&&d===F)){if(I<C){do m9(y,d,y.bl_tree);while(--I!==0)}else d!==0?(d!==t&&(m9(y,d,y.bl_tree),I--),m9(y,16,y.bl_tree),Tp(y,I-3,2)):I<=10?(m9(y,17,y.bl_tree),Tp(y,I-3,3)):(m9(y,18,y.bl_tree),Tp(y,I-11,7));I=0;t=d;F===0?(P=138,C=3):d===F?(P=6,C=3):(P=7,C=4)}}};
qTL=function(y){var W=4093624447,V;for(V=0;V<=31;V++,W>>>=1)if(W&1&&y.dyn_ltree[V*2]!==0)return 0;if(y.dyn_ltree[18]!==0||y.dyn_ltree[20]!==0||y.dyn_ltree[26]!==0)return 1;for(V=32;V<256;V++)if(y.dyn_ltree[V*2]!==0)return 1;return 0};
uh=function(y,W,V){y.pending_buf[y.d_buf+y.last_lit*2]=W>>>8&255;y.pending_buf[y.d_buf+y.last_lit*2+1]=W&255;y.pending_buf[y.l_buf+y.last_lit]=V&255;y.last_lit++;W===0?y.dyn_ltree[V*2]++:(y.matches++,W--,y.dyn_ltree[(qk[V]+256+1)*2]++,y.dyn_dtree[(W<256?U6[W]:U6[256+(W>>>7)])*2]++);return y.last_lit===y.lit_bufsize-1};
Db=function(y,W){y.msg=S1[W];return W};
lh=function(y){for(var W=y.length;--W>=0;)y[W]=0};
x2=function(y){var W=y.state,V=W.pending;V>y.avail_out&&(V=y.avail_out);V!==0&&(Mk.arraySet(y.output,W.pending_buf,W.pending_out,V,y.next_out),y.next_out+=V,W.pending_out+=V,y.total_out+=V,y.avail_out-=V,W.pending-=V,W.pending===0&&(W.pending_out=0))};
Af=function(y,W){var V=y.block_start>=0?y.block_start:-1,w=y.strstart-y.block_start,t=0;if(y.level>0){y.strm.data_type===2&&(y.strm.data_type=qTL(y));TP4(y,y.l_desc);TP4(y,y.d_desc);moR(y,y.dyn_ltree,y.l_desc.max_code);moR(y,y.dyn_dtree,y.d_desc.max_code);TP4(y,y.bl_desc);for(t=18;t>=3&&y.bl_tree[Uoa[t]*2+1]===0;t--);y.opt_len+=3*(t+1)+5+5+4;var F=y.opt_len+3+7>>>3;var I=y.static_len+3+7>>>3;I<=F&&(F=I)}else F=I=w+5;if(w+4<=F&&V!==-1)Tp(y,W?1:0,3),cxb(y,V,w);else if(y.strategy===4||I===F)Tp(y,2+(W?
1:0),3),fPb(y,k2,s6);else{Tp(y,4+(W?1:0),3);V=y.l_desc.max_code+1;w=y.d_desc.max_code+1;t+=1;Tp(y,V-257,5);Tp(y,w-1,5);Tp(y,t-4,4);for(F=0;F<t;F++)Tp(y,y.bl_tree[Uoa[F]*2+1],3);MWz(y,y.dyn_ltree,V-1);MWz(y,y.dyn_dtree,w-1);fPb(y,y.dyn_ltree,y.dyn_dtree)}LSt(y);W&&zd4(y);y.block_start=y.strstart;x2(y.strm)};
Y2=function(y,W){y.pending_buf[y.pending++]=W};
BU=function(y,W){y.pending_buf[y.pending++]=W>>>8&255;y.pending_buf[y.pending++]=W&255};
u4G=function(y,W){var V=y.max_chain_length,w=y.strstart,t=y.prev_length,F=y.nice_match,I=y.strstart>y.w_size-262?y.strstart-(y.w_size-262):0,P=y.window,C=y.w_mask,d=y.prev,L=y.strstart+258,z=P[w+t-1],c=P[w+t];y.prev_length>=y.good_match&&(V>>=2);F>y.lookahead&&(F=y.lookahead);do{var K=W;if(P[K+t]===c&&P[K+t-1]===z&&P[K]===P[w]&&P[++K]===P[w+1]){w+=2;for(K++;P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&P[++w]===P[++K]&&w<L;);
K=258-(L-w);w=L-258;if(K>t){y.match_start=W;t=K;if(K>=F)break;z=P[w+t-1];c=P[w+t]}}}while((W=d[W&C])>I&&--V!==0);return t<=y.lookahead?t:y.lookahead};
RV=function(y){var W=y.w_size,V;do{var w=y.window_size-y.lookahead-y.strstart;if(y.strstart>=W+(W-262)){Mk.arraySet(y.window,y.window,W,W,0);y.match_start-=W;y.strstart-=W;y.block_start-=W;var t=V=y.hash_size;do{var F=y.head[--t];y.head[t]=F>=W?F-W:0}while(--V);t=V=W;do F=y.prev[--t],y.prev[t]=F>=W?F-W:0;while(--V);w+=W}if(y.strm.avail_in===0)break;t=y.strm;V=y.window;F=y.strstart+y.lookahead;var I=t.avail_in;I>w&&(I=w);I===0?V=0:(t.avail_in-=I,Mk.arraySet(V,t.input,t.next_in,I,F),t.state.wrap===
1?t.adler=STu(t.adler,V,I,F):t.state.wrap===2&&(t.adler=Jf(t.adler,V,I,F)),t.next_in+=I,t.total_in+=I,V=I);y.lookahead+=V;if(y.lookahead+y.insert>=3)for(w=y.strstart-y.insert,y.ins_h=y.window[w],y.ins_h=(y.ins_h<<y.hash_shift^y.window[w+1])&y.hash_mask;y.insert&&!(y.ins_h=(y.ins_h<<y.hash_shift^y.window[w+3-1])&y.hash_mask,y.prev[w&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=w,w++,y.insert--,y.lookahead+y.insert<3););}while(y.lookahead<262&&y.strm.avail_in!==0)};
DoP=function(y,W){for(var V;;){if(y.lookahead<262){RV(y);if(y.lookahead<262&&W===0)return 1;if(y.lookahead===0)break}V=0;y.lookahead>=3&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,V=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);V!==0&&y.strstart-V<=y.w_size-262&&(y.match_length=u4G(y,V));if(y.match_length>=3)if(V=uh(y,y.strstart-y.match_start,y.match_length-3),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=3){y.match_length--;
do y.strstart++,y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+1])&y.hash_mask;else V=uh(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(V&&(Af(y,!1),y.strm.avail_out===0))return 1}y.insert=y.strstart<2?y.strstart:2;return W===4?(Af(y,
!0),y.strm.avail_out===0?3:4):y.last_lit&&(Af(y,!1),y.strm.avail_out===0)?1:2};
j1=function(y,W){for(var V,w;;){if(y.lookahead<262){RV(y);if(y.lookahead<262&&W===0)return 1;if(y.lookahead===0)break}V=0;y.lookahead>=3&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,V=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);y.prev_length=y.match_length;y.prev_match=y.match_start;y.match_length=2;V!==0&&y.prev_length<y.max_lazy_match&&y.strstart-V<=y.w_size-262&&(y.match_length=u4G(y,V),y.match_length<=5&&(y.strategy===1||y.match_length===3&&
y.strstart-y.match_start>4096)&&(y.match_length=2));if(y.prev_length>=3&&y.match_length<=y.prev_length){w=y.strstart+y.lookahead-3;V=uh(y,y.strstart-1-y.prev_match,y.prev_length-3);y.lookahead-=y.prev_length-1;y.prev_length-=2;do++y.strstart<=w&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);y.match_available=0;y.match_length=2;y.strstart++;if(V&&(Af(y,!1),y.strm.avail_out===0))return 1}else if(y.match_available){if((V=
uh(y,0,y.window[y.strstart-1]))&&Af(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return 1}else y.match_available=1,y.strstart++,y.lookahead--}y.match_available&&(uh(y,0,y.window[y.strstart-1]),y.match_available=0);y.insert=y.strstart<2?y.strstart:2;return W===4?(Af(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(Af(y,!1),y.strm.avail_out===0)?1:2};
lPR=function(y,W){for(var V,w,t,F=y.window;;){if(y.lookahead<=258){RV(y);if(y.lookahead<=258&&W===0)return 1;if(y.lookahead===0)break}y.match_length=0;if(y.lookahead>=3&&y.strstart>0&&(w=y.strstart-1,V=F[w],V===F[++w]&&V===F[++w]&&V===F[++w])){for(t=y.strstart+258;V===F[++w]&&V===F[++w]&&V===F[++w]&&V===F[++w]&&V===F[++w]&&V===F[++w]&&V===F[++w]&&V===F[++w]&&w<t;);y.match_length=258-(t-w);y.match_length>y.lookahead&&(y.match_length=y.lookahead)}y.match_length>=3?(V=uh(y,1,y.match_length-3),y.lookahead-=
y.match_length,y.strstart+=y.match_length,y.match_length=0):(V=uh(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++);if(V&&(Af(y,!1),y.strm.avail_out===0))return 1}y.insert=0;return W===4?(Af(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(Af(y,!1),y.strm.avail_out===0)?1:2};
xoL=function(y,W){for(var V;;){if(y.lookahead===0&&(RV(y),y.lookahead===0)){if(W===0)return 1;break}y.match_length=0;V=uh(y,0,y.window[y.strstart]);y.lookahead--;y.strstart++;if(V&&(Af(y,!1),y.strm.avail_out===0))return 1}y.insert=0;return W===4?(Af(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(Af(y,!1),y.strm.avail_out===0)?1:2};
$2=function(y,W,V,w,t){this.good_length=y;this.max_lazy=W;this.nice_length=V;this.max_chain=w;this.func=t};
kwz=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 Mk.Buf16(1146);this.dyn_dtree=new Mk.Buf16(122);this.bl_tree=new Mk.Buf16(78);lh(this.dyn_ltree);lh(this.dyn_dtree);lh(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Mk.Buf16(16);this.heap=new Mk.Buf16(573);lh(this.heap);this.heap_max=this.heap_len=0;this.depth=new Mk.Buf16(573);lh(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};
scj=function(y,W){if(!y||!y.state||W>5||W<0)return y?Db(y,-2):-2;var V=y.state;if(!y.output||!y.input&&y.avail_in!==0||V.status===666&&W!==4)return Db(y,y.avail_out===0?-5:-2);V.strm=y;var w=V.last_flush;V.last_flush=W;if(V.status===42)if(V.wrap===2)y.adler=0,Y2(V,31),Y2(V,139),Y2(V,8),V.gzhead?(Y2(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),Y2(V,V.gzhead.time&255),Y2(V,V.gzhead.time>>8&255),Y2(V,V.gzhead.time>>16&255),Y2(V,V.gzhead.time>>
24&255),Y2(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Y2(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length&&(Y2(V,V.gzhead.extra.length&255),Y2(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(y.adler=Jf(y.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(Y2(V,0),Y2(V,0),Y2(V,0),Y2(V,0),Y2(V,0),Y2(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),Y2(V,3),V.status=113);else{var t=8+(V.w_bits-8<<4)<<8;t|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.strstart!==0&&(t|=
32);V.status=113;BU(V,t+(31-t%31));V.strstart!==0&&(BU(V,y.adler>>>16),BU(V,y.adler&65535));y.adler=1}if(V.status===69)if(V.gzhead.extra){for(t=V.pending;V.gzindex<(V.gzhead.extra.length&65535)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t)),x2(y),t=V.pending,V.pending!==V.pending_buf_size));)Y2(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++;V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t));V.gzindex===V.gzhead.extra.length&&
(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){t=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t)),x2(y),t=V.pending,V.pending===V.pending_buf_size)){var F=1;break}F=V.gzindex<V.gzhead.name.length?V.gzhead.name.charCodeAt(V.gzindex++)&255:0;Y2(V,F)}while(F!==0);V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t));F===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===
91)if(V.gzhead.comment){t=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t)),x2(y),t=V.pending,V.pending===V.pending_buf_size)){F=1;break}F=V.gzindex<V.gzhead.comment.length?V.gzhead.comment.charCodeAt(V.gzindex++)&255:0;Y2(V,F)}while(F!==0);V.gzhead.hcrc&&V.pending>t&&(y.adler=Jf(y.adler,V.pending_buf,V.pending-t,t));F===0&&(V.status=103)}else V.status=103;V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&x2(y),
V.pending+2<=V.pending_buf_size&&(Y2(V,y.adler&255),Y2(V,y.adler>>8&255),y.adler=0,V.status=113)):V.status=113);if(V.pending!==0){if(x2(y),y.avail_out===0)return V.last_flush=-1,0}else if(y.avail_in===0&&(W<<1)-(W>4?9:0)<=(w<<1)-(w>4?9:0)&&W!==4)return Db(y,-5);if(V.status===666&&y.avail_in!==0)return Db(y,-5);if(y.avail_in!==0||V.lookahead!==0||W!==0&&V.status!==666){w=V.strategy===2?xoL(V,W):V.strategy===3?lPR(V,W):nA[V.level].func(V,W);if(w===3||w===4)V.status=666;if(w===1||w===3)return y.avail_out===
0&&(V.last_flush=-1),0;if(w===2&&(W===1?(Tp(V,2,3),m9(V,256,k2),V.bi_valid===16?(fA(V,V.bi_buf),V.bi_buf=0,V.bi_valid=0):V.bi_valid>=8&&(V.pending_buf[V.pending++]=V.bi_buf&255,V.bi_buf>>=8,V.bi_valid-=8)):W!==5&&(Tp(V,0,3),cxb(V,0,0),W===3&&(lh(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),x2(y),y.avail_out===0))return V.last_flush=-1,0}if(W!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(Y2(V,y.adler&255),Y2(V,y.adler>>8&255),Y2(V,y.adler>>16&255),Y2(V,y.adler>>24&255),Y2(V,
y.total_in&255),Y2(V,y.total_in>>8&255),Y2(V,y.total_in>>16&255),Y2(V,y.total_in>>24&255)):(BU(V,y.adler>>>16),BU(V,y.adler&65535));x2(y);V.wrap>0&&(V.wrap=-V.wrap);return V.pending!==0?0:1};
Ax4=function(y){if(!(this instanceof Ax4))return new Ax4(y);y=this.options=Mk.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},y||{});y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new YT4;this.strm.avail_out=0;var W=this.strm;var V=y.level,w=y.method,t=y.windowBits,F=y.memLevel,I=y.strategy;if(W){var P=1;V===-1&&(V=6);t<0?(P=0,t=-t):t>15&&
(P=2,t-=16);if(F<1||F>9||w!==8||t<8||t>15||V<0||V>9||I<0||I>4)W=Db(W,-2);else{t===8&&(t=9);var C=new kwz;W.state=C;C.strm=W;C.wrap=P;C.gzhead=null;C.w_bits=t;C.w_size=1<<C.w_bits;C.w_mask=C.w_size-1;C.hash_bits=F+7;C.hash_size=1<<C.hash_bits;C.hash_mask=C.hash_size-1;C.hash_shift=~~((C.hash_bits+3-1)/3);C.window=new Mk.Buf8(C.w_size*2);C.head=new Mk.Buf16(C.hash_size);C.prev=new Mk.Buf16(C.w_size);C.lit_bufsize=1<<F+6;C.pending_buf_size=C.lit_bufsize*4;C.pending_buf=new Mk.Buf8(C.pending_buf_size);
C.d_buf=C.lit_bufsize;C.l_buf=3*C.lit_bufsize;C.level=V;C.strategy=I;C.method=w;if(W&&W.state){W.total_in=W.total_out=0;W.data_type=2;V=W.state;V.pending=0;V.pending_out=0;V.wrap<0&&(V.wrap=-V.wrap);V.status=V.wrap?42:113;W.adler=V.wrap===2?0:1;V.last_flush=0;if(!BPL){w=Array(16);for(F=I=0;F<28;F++)for(KSt[F]=I,t=0;t<1<<o1j[F];t++)qk[I++]=F;qk[I-1]=F;for(F=I=0;F<16;F++)for(iOt[F]=I,t=0;t<1<<p9n[F];t++)U6[I++]=F;for(I>>=7;F<30;F++)for(iOt[F]=I<<7,t=0;t<1<<p9n[F]-7;t++)U6[256+I++]=F;for(t=0;t<=15;t++)w[t]=
0;for(t=0;t<=143;)k2[t*2+1]=8,t++,w[8]++;for(;t<=255;)k2[t*2+1]=9,t++,w[9]++;for(;t<=279;)k2[t*2+1]=7,t++,w[7]++;for(;t<=287;)k2[t*2+1]=8,t++,w[8]++;doG(k2,287,w);for(t=0;t<30;t++)s6[t*2+1]=5,s6[t*2]=v1L(t,5);JxG=new CNn(k2,o1j,257,286,15);RdG=new CNn(s6,p9n,0,30,15);jcv=new CNn([],$od,0,19,7);BPL=!0}V.l_desc=new OOd(V.dyn_ltree,JxG);V.d_desc=new OOd(V.dyn_dtree,RdG);V.bl_desc=new OOd(V.bl_tree,jcv);V.bi_buf=0;V.bi_valid=0;LSt(V);V=0}else V=Db(W,-2);V===0&&(W=W.state,W.window_size=2*W.w_size,lh(W.head),
W.max_lazy_match=nA[W.level].max_lazy,W.good_match=nA[W.level].good_length,W.nice_match=nA[W.level].nice_length,W.max_chain_length=nA[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=2,W.match_available=0,W.ins_h=0);W=V}}else W=-2;if(W!==0)throw Error(S1[W]);y.header&&(W=this.strm)&&W.state&&W.state.wrap===2&&(W.state.gzhead=y.header);if(y.dictionary){var d;typeof y.dictionary==="string"?d=n1y(y.dictionary):HOu.call(y.dictionary)==="[object ArrayBuffer]"?
d=new Uint8Array(y.dictionary):d=y.dictionary;y=this.strm;F=d;I=F.length;if(y&&y.state)if(d=y.state,W=d.wrap,W===2||W===1&&d.status!==42||d.lookahead)W=-2;else{W===1&&(y.adler=STu(y.adler,F,I,0));d.wrap=0;I>=d.w_size&&(W===0&&(lh(d.head),d.strstart=0,d.block_start=0,d.insert=0),V=new Mk.Buf8(d.w_size),Mk.arraySet(V,F,I-d.w_size,d.w_size,0),F=V,I=d.w_size);V=y.avail_in;w=y.next_in;t=y.input;y.avail_in=I;y.next_in=0;y.input=F;for(RV(d);d.lookahead>=3;){F=d.strstart;I=d.lookahead-2;do d.ins_h=(d.ins_h<<
d.hash_shift^d.window[F+3-1])&d.hash_mask,d.prev[F&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=F,F++;while(--I);d.strstart=F;d.lookahead=2;RV(d)}d.strstart+=d.lookahead;d.block_start=d.strstart;d.insert=d.lookahead;d.lookahead=0;d.match_length=d.prev_length=2;d.match_available=0;y.next_in=w;y.input=t;y.avail_in=V;d.wrap=W;W=0}else W=-2;if(W!==0)throw Error(S1[W]);this._dict_set=!0}};
X94=function(y,W){W=W||{};W.gzip=!0;W=new Ax4(W);W.push(y,!0);if(W.err)throw W.msg||S1[W.err];return W.result};
Gw4=function(y,W){var V=aPv();V&&V.publish.call(V,y.toString(),y,W)};
ycP=function(y,W,V){var w=aPv();if(!w)return 0;var t=w.subscribe(y.toString(),function(F,I){var P=_.ts("ytPubsub2Pubsub2SkipSubKey");P&&P==t||(P=function(){if(rxP[t])try{if(I&&y instanceof bOR&&y!=F)try{var C=y.dataClass,d=I;if(!d.args||!d.version)throw Error("fd");try{if(!C.version_){var L=new C;C.version_=L.version}var z=C.version_}catch(c){}if(!z||d.version!=z)throw Error("gd");try{I=Reflect.construct(C,_.ru(d.args))}catch(c){throw c.message="yt.pubsub2.Data.deserialize(): "+c.message,c;}}catch(c){throw c.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+y.toString()+": "+c.message,c;}W.call(V||window,I)}catch(c){_.VC(c)}},QcG[y.toString()]?_.ts("yt.scheduler.instance")?_.HU.addLowPriorityJob(P):_.mj(P,0):P())});
rxP[t]=!0;ZOt[y.toString()]||(ZOt[y.toString()]=[]);ZOt[y.toString()].push(t);return t};
tBu=function(){var y=WgP,W=ycP(VBj,function(V){y.apply(void 0,arguments);wWj(W)});
return W};
wWj=function(y){var W=aPv();W&&(typeof y==="number"&&(y=[y]),_.IA(y,function(V){W.unsubscribeByKey(V);delete rxP[V]}))};
aPv=function(){return _.ts("ytPubsub2Pubsub2Instance")};
FgG=function(y,W,V){V=V===void 0?{sampleRate:.1}:V;Math.random()<Math.min(.02,V.sampleRate/100)&&Gw4("meta_logging_csi_event",{timerName:y,timelineData:W})};
_.EAR=function(y){return y?(y=y.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.d$(y):null:null};
_.X1=function(y){return y?(y=y.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.jh(y):null:null};
IpR=function(){Ngz||(Ngz=_.X1(_.yC("WORKER_SERIALIZATION_URL")));return Ngz||void 0};
_.P6L=function(){var y=IpR();gAa||y===void 0||(gAa=new Worker(_.$R(y),void 0));return gAa};
_.C64=function(){return typeof Worker==="function"&&IpR()?!0:!1};
_.Lgz=function(){if(_.C64()&&!O6n){var y=function(V){V=V.data;if(V.op==="gzippedGelBatch"){var w=vAj.get(V.key);w&&(dgz(V.gzippedBatch,w.latencyPayload,w.url,w.options,w.sendFn),vAj.delete(V.key))}},W=_.P6L();
W&&(W.addEventListener("message",y),W.onerror=function(){vAj.clear()},O6n=!0)}};
pWb=function(y,W,V,w,t){t=t===void 0?!1:t;var F={startTime:(0,_.cU)(),ticks:{},infos:{}};if(aV)try{var I=zk4(W);if(I!=null&&(I>ccy||I<ekd))w(y,V);else{if(_.e("gzip_gel_with_worker")&&(_.e("initial_gzip_use_main_thread")&&!hkP||!_.e("initial_gzip_use_main_thread"))){O6n||_.Lgz();var P=_.P6L();if(P&&!t){vAj.set(oAd,{latencyPayload:F,url:y,options:V,sendFn:w});P.postMessage({op:"gelBatchToGzip",serializedBatch:W,key:oAd});oAd++;return}}var C=X94(Kgn(W));dgz(C,F,y,V,w)}}catch(d){_.FU(d),w(y,V)}else w(y,
V)};
dgz=function(y,W,V,w,t){hkP=!1;var F=(0,_.cU)();W.ticks.gelc=F;Gp++;_.e("disable_compression_due_to_performance_degredation")&&F-W.startTime>=i6v&&(fpv++,_.e("abandon_compression_after_N_slow_zips")?Gp===_.pB("compression_disable_point")&&fpv>Tgv&&(aV=!1):aV=!1);mgv(W);w.headers||(w.headers={});w.headers["Content-Encoding"]="gzip";w.postBody=y;w.postParams=void 0;t(V,w)};
MBz=function(y){var W=W===void 0?!1:W;var V=V===void 0?!1:V;var w=(0,_.cU)(),t={startTime:w,ticks:{},infos:{}},F=W?_.ts("yt.logging.gzipForFetch",!1):!0;if(aV&&F){if(!y.body)return y;try{var I=V?y.body:typeof y.body==="string"?y.body:JSON.stringify(y.body);F=I;if(!V&&typeof I==="string"){var P=zk4(I);if(P!=null&&(P>ccy||P<ekd))return y;V=W?{level:1}:void 0;F=X94(Kgn(I),V);var C=(0,_.cU)();t.ticks.gelc=C;if(W){Gp++;if((_.e("disable_compression_due_to_performance_degredation")||_.e("disable_compression_due_to_performance_degradation_lr"))&&
C-w>=i6v)if(fpv++,_.e("abandon_compression_after_N_slow_zips")||_.e("abandon_compression_after_N_slow_zips_lr")){W=fpv/Gp;var d=Tgv/_.pB("compression_disable_point");Gp>0&&Gp%_.pB("compression_disable_point")===0&&W>=d&&(aV=!1)}else aV=!1;mgv(t)}}y.headers=Object.assign({},{"Content-Encoding":"gzip"},y.headers||{});y.body=F;return y}catch(L){return _.FU(L),y}}else return y};
zk4=function(y){try{return(new Blob(y.split(""))).size}catch(W){return _.FU(W),null}};
mgv=function(y){_.e("gel_compression_csi_killswitch")||!_.e("log_gel_compression_latency")&&!_.e("log_gel_compression_latency_lr")||FgG("gel_compression",y,{sampleRate:.1})};
q$P=function(){this.blockSize=-1};
rE=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var y=1;y<this.blockSize;++y)this.pad_[y]=0;this.total_=this.inbuf_=0;this.reset()};
ueR=function(y){y=Object.assign({},y);delete y.Authorization;var W=_.UgP();if(W){var V=new rE;V.update(_.yC("INNERTUBE_API_KEY"));V.update(W);y.hash=_.Gj(V.digest(),3)}return y};
Wp=function(){S$v||(S$v=new _.Zb("yt.innertube"));return S$v};
DgR=function(y,W,V,w){if(w)return null;w=Wp().get("nextId",!0)||1;var t=Wp().get("requests",!0)||{};t[w]={method:y,request:W,authState:ueR(V),requestTime:Math.round((0,_.cU)())};Wp().set("nextId",w+1,86400,!0);Wp().set("requests",t,86400,!0);return w};
lpP=function(y){var W=Wp().get("requests",!0)||{};delete W[y];Wp().set("requests",W,86400,!0)};
kAu=function(y){var W=Wp().get("requests",!0);if(W){for(var V in W){var w=W[V];if(!(Math.round((0,_.cU)())-w.requestTime<6E4)){var t=w.authState,F=ueR(_.g1t(!1));_.Gc.equals(t,F)&&(t=w.request,"requestTimeMs"in t&&(t.requestTimeMs=Math.round((0,_.cU)())),xgy(y,w.method,t,{}));delete W[V]}}Wp().set("requests",W,86400,!0)}};
s6P=function(y){var W;return(y=y==null?void 0:(W=y.error)==null?void 0:W.code)&&y>=400&&y<=599?!1:!0};
Acy=function(y){var W;y=y==null?void 0:(W=y.error)==null?void 0:W.code;return!(y!==400&&y!==415)};
Bgu=function(){if(Y$R)return Y$R();var y={};Y$R=zp("LogsDatabaseV2",{objectStores:(y.LogsRequestsStore={addedAtVersion:2},y),shared:!1,upgrade:function(W,V,w){V(2)&&VT(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(w=w.objectStore("LogsRequestsStore"),w.JSC$10570_wrapped.indexNames.contains("newRequest")&&w.JSC$10570_wrapped.deleteIndex("newRequest"),wQ(w,"newRequestV2",["status","interface","timestamp"]));V(7)&&W.JSC$10556_wrapped.objectStoreNames.contains("sapisid")&&W.JSC$10556_wrapped.deleteObjectStore("sapisid");
V(9)&&W.JSC$10556_wrapped.objectStoreNames.contains("SWHealthLog")&&W.JSC$10556_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Y$R()};
tt=function(y){return _.IV(Bgu(),y)};
Rky=function(y,W){var V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return V={startTime:(0,_.cU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},I.yield(tt(W),2);if(I.nextAddress!=3)return w=I.yieldResult,t=Object.assign({},y,{options:JSON.parse(JSON.stringify(y.options)),interface:_.yC("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),I.yield(w.put("LogsRequestsStore",t),3);F=I.yieldResult;V.ticks.tc=(0,_.cU)();JcG(V);return I.return(F)})};
j6n=function(y,W){var V,w,t,F,I,P,C,d,L;return _.g(function(z){if(z.nextAddress==1)return V={startTime:(0,_.cU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},z.yield(tt(W),2);if(z.nextAddress!=3)return w=z.yieldResult,t=_.yC("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[y,t,0],I=[y,t,(0,_.cU)()],P=IDBKeyRange.bound(F,I),C="prev",_.e("use_fifo_for_networkless")&&(C="next"),d=void 0,L=y==="NEW"?"readwrite":"readonly",_.e("use_readonly_for_get_most_recent_by_status_killswitch")&&(L="readwrite"),
z.yield(_.gE(w,["LogsRequestsStore"],{mode:L,enableRetries:!0},function(c){return _.e1(c.objectStore("LogsRequestsStore").index("newRequestV2"),{query:P,direction:C},function(K){K.getValue()&&(d=K.getValue(),y==="NEW"&&(d.status="QUEUED",K.update(d)))})}),3);
V.ticks.tc=(0,_.cU)();JcG(V);return z.return(d)})};
$gR=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return w.yield(tt(W),2);V=w.yieldResult;return w.return(_.gE(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var F=t.objectStore("LogsRequestsStore");return F.get(y).then(function(I){if(I)return I.status="QUEUED",F.put(I).then(function(){return I})})}))})};
nAn=function(y,W,V,w){V=V===void 0?!0:V;var t;return _.g(function(F){if(F.nextAddress==1)return F.yield(tt(W),2);t=F.yieldResult;return F.return(_.gE(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(I){var P=I.objectStore("LogsRequestsStore");return P.get(y).then(function(C){return C?(C.status="NEW",V&&(C.sendCount+=1),w!==void 0&&(C.options.compress=w),P.put(C).then(function(){return C})):Vi.resolve(void 0)})}))})};
H6d=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return w.yield(tt(W),2);V=w.yieldResult;return w.return(V.delete("LogsRequestsStore",y))})};
XWj=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(tt(y),2);W=w.yieldResult;V=(0,_.cU)()-2592E6;return w.yield(_.gE(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){return CA(t.objectStore("LogsRequestsStore"),{},function(F){if(F.getValue().timestamp<=V)return F.delete().then(function(){return F.continue()})})}),0)})};
apn=function(){_.g(function(y){return y.yield(sBn("LogsDatabaseV2"),0)})};
JcG=function(y){_.e("nwl_csi_killswitch")||FgG("networkless_performance",y,{sampleRate:1})};
_.rcP=function(y){return _.IV(GAL(),y)};
b6y=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(_.rcP(y),2);W=w.yieldResult;V=(0,_.cU)()-2592E6;return w.yield(_.gE(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){return CA(t.objectStore("SWHealthLog"),{},function(F){if(F.getValue().timestamp<=V)return F.delete().then(function(){return F.continue()})})}),0)})};
Q6L=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.rcP(y),2);W=V.yieldResult;return V.yield(W.clear("SWHealthLog"),0)})};
_.Fk=function(y,W,V,w,t,F,I){t=t===void 0?"":t;F=F===void 0?!1:F;I=I===void 0?!1:I;if(y)if(V&&!QC("cobalt"))_.FU(new _.Js("Legacy referrer-scrubbed ping detected")),y&&Z6j(y,void 0,{scrubReferrer:!0});else if(t)f2j(y,W,"POST",t,w);else if(_.yC("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||w||I)f2j(y,W,"GET","",w,void 0,F,I);else{b:{try{c:{var P=new yYt({url:y});if(P.urlParamValues_.dsh==="1")var C=null;else{var d=P.urlParamValues_.ae;if(d==="1"){var L=P.urlParamValues_.adurl;if(L)try{C={version:3,directUrl:decodeURIComponent(L),
asyncUrl:CUP(P.JSC$9400_url_,"act=1","ri=1",WMy(P))};break c}catch(f){}}C=d==="2"?{version:4,directUrl:CUP(P.JSC$9400_url_,"dct=1","suid="+P.suid_,""),asyncUrl:CUP(P.JSC$9400_url_,"act=1","ri=1","suid="+P.suid_)}:null}}if(C){var z=_.U1(y);var c=!(!z||!z.endsWith("/aclk")||_.to(y,"ri")!=="1");break b}}catch(f){}c=!1}if(c){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(y,"")){var K=!0;break b}}catch(f){}K=!1}K?(W&&W(),V=!0):V=!1}else V=!1;V||Z6j(y,W)}};
Z6j=function(y,W,V){V=V===void 0?{}:V;var w=new Image,t=""+VYn++;wCv[t]=w;w.onload=w.onerror=function(){W&&wCv[t]&&W();delete wCv[t]};
V.scrubReferrer&&(w.referrerPolicy="no-referrer");w.src=y};
Eg=function(y,W){tYv(y,W==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
FMz=function(y){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?y+"&nis=6":y+"&nis=5"};
Ecb=function(y){if(!y)return!1;try{var W;if(((W=_.gi(y))==null?void 0:W.asm)==="4")return!0}catch(V){_.VC(V)}return!1};
tYv=function(y,W){W?(y=FMz(y),_.Fk(y,void 0,void 0,void 0,"",!0,!0)):_.Fk(y)};
I8j=function(){Ncb||(Ncb=new _.Zb("yt.offline"));return Ncb};
gcd=function(y){if(_.e("offline_error_handling")){var W=I8j().get("errors",!0)||{};W[y.message]={name:y.name,stack:y.stack};y.level&&(W[y.message].level=y.level);I8j().set("errors",W,2592E3,!0)}};
CEb=function(y,W,V,w){w=w===void 0?!1:w;W=_.e("web_fp_via_jspb")?Object.assign({},W):W;_.e("use_cfr_monitor")&&PEd(y,W);if(_.e("use_request_time_ms_header"))W.headers&&zJ(y)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.cU)())));else{var t;if((t=W.postParams)==null?0:t.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,_.cU)())}V&&Object.keys(W).length===0?_.Fk(y):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),pWb(y,W.postBody,
W,_.uC,w)):pWb(y,JSON.stringify(W.postParams),W,qnv,w):_.uC(y,W)};
ODn=function(y,W){_.e("use_event_time_ms_header")&&zJ(y)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.cU)())));return W};
_.dMd=function(){vcL||(vcL=new _.NN({logOfflineErrors:!0,enablePolling:!0}));return vcL};
PEd=function(y,W){var V=W.onError?W.onError:function(){};
W.onError=function(t,F){Ip().requestComplete(y,!1);V(t,F)};
var w=W.onSuccess?W.onSuccess:function(){};
W.onSuccess=function(t,F){Ip().requestComplete(y,!0);w(t,F)}};
_.LMz=function(){return _.di(document.location.toString())!=="www.youtube-nocookie.com"};
_.e6a=function(){return _.ts("ytNetworklessLoggingInitializationOptions")?_.z6z.isNwlInitialized:_.cYa};
h6n=function(y,W){if(_.e("polymer_on_demand_shady_dom")){var V;var w=(V=y.__shady_native_firstElementChild)!=null?V:y.firstElementChild}else w=y.firstElementChild;for(;w;){if(y=W(w)?w:h6n(w,W))return y;w=w.nextElementSibling}return null};
KMz=function(){var y=document;if("visibilityState"in y)return y.visibilityState;var W=oc4+"VisibilityState";if(W in y)return y[W]};
_.pCG=function(y,W){var V;gQ(y,function(w){V=W[w];return!!V});
return V};
_.Ci=function(y){var W=iDL(y);W?W.focus(void 0):_.Pp(y)};
iDL=function(y){return(y=h6n(y,function(W){return _.Og(W)?f8R(W)&&!!W.offsetParent:!1}))?y:null};
_.Pp=function(y,W){y.hasAttribute("tabindex")||y.setAttribute("tabindex","-1");y.focus(W)};
Tcv=function(y,W,V,w){w=w===void 0?{}:w;y.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return _.Gc.findKey(vp,function(t){var F=typeof t[4]==="boolean"&&t[4]==!!w,I=_.VK(t[4])&&_.VK(w)&&_.Gc.equals(t[4],w);return!!t.length&&t[0]==y&&t[1]==W&&t[2]==V&&(F||I)})};
_.Li=function(y,W,V,w){w=w===void 0?{}:w;if(!y||!y.addEventListener&&!y.attachEvent)return"";var t=Tcv(y,W,V,w);if(t)return t;t=++mMv.count+"";var F=!(W!="mouseenter"&&W!="mouseleave"||!y.addEventListener||"onmouseenter"in document);var I=F?function(P){P=new dQ(P);if(!_.WM(P.relatedTarget,function(C){return C==y},!0))return P.currentTarget=y,P.type=W,V.call(y,P)}:function(P){P=new dQ(P);
P.currentTarget=y;return V.call(y,P)};
I=_.wi(I);y.addEventListener?(W=="mouseenter"&&F?W="mouseover":W=="mouseleave"&&F?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),MYb()||typeof w==="boolean"?y.addEventListener(W,I,w):y.addEventListener(W,I,!!w.capture)):y.attachEvent("on"+W,I);vp[t]=[y,W,V,I,w];return t};
_.UMz=function(y,W,V){var w=w===void 0?{}:w;var t=_.Li(y,W,function(){_.qrz(t);V.apply(y,arguments)},w)};
_.qrz=function(y){y&&(typeof y=="string"&&(y=[y]),_.IA(y,function(W){if(W in vp){var V=vp[W],w=V[0],t=V[1],F=V[3];V=V[4];w.removeEventListener?MYb()||typeof V==="boolean"?w.removeEventListener(t,F,V):w.removeEventListener(t,F,!!V.capture):w.detachEvent&&w.detachEvent("on"+t,F);delete vp[W]}}))};
zD=function(y){this.callback_=y;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(y=0;y<4;y++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Li(window,"mousemove",(0,_.jA)(this.onMouseMove_,this));this.timerId_=_.MO((0,_.jA)(this.checkPosition_,this),25)};
SrL=function(){var y={};var W=y.preferMobileEvents===void 0?!1:y.preferMobileEvents;y=y.enableScrollEventListener===void 0?!0:y.enableScrollEventListener;if(_.ts("_lact",window)==null){var V=parseInt(_.yC("LACT"),10);V=isFinite(V)?Date.now()-Math.max(V,0):-1;_.dE("_lact",V,window);_.dE("_fact",V,window);V==-1&&_.cp();_.Li(document,"keydown",_.cp);_.Li(document,"keyup",_.cp);_.Li(document,"mousedown",_.cp);_.Li(document,"mouseup",_.cp);W?_.Li(window,"touchmove",function(){uZG("touchmove",200)},{passive:!0}):
(_.Li(window,"resize",function(){uZG("resize",200)}),y&&_.Li(window,"scroll",function(){uZG("scroll",200)}));
new zD(function(){uZG("mouse",100)});
_.Li(document,"touchstart",_.cp,{passive:!0});_.Li(document,"touchend",_.cp,{passive:!0})}};
uZG=function(y,W){DMu[y]||(DMu[y]=!0,_.HU.addLowPriorityJob(function(){_.cp();DMu[y]=!1},W))};
_.cp=function(){_.ts("_lact",window)==null&&SrL();var y=Date.now();_.dE("_lact",y,window);_.ts("_fact",window)==-1&&_.dE("_fact",y,window);(y=_.ts("ytglobal.ytUtilActivityCallback_"))&&y()};
_.es=function(){var y=_.ts("_lact",window);return y==null?-1:Math.max(Date.now()-y,0)};
_.pi=function(y,W,V){var w=_.ht();if(w&&W){var t=w.subscribe(y,function(){var F=arguments,I=function(){op[t]&&W.apply&&typeof W.apply=="function"&&W.apply(V||window,F)};
try{_.l8d[y]?I():_.mj(I,0)}catch(P){_.VC(P)}},V);
op[t]=!0;Ki[y]||(Ki[y]=[]);Ki[y].push(t);return t}return 0};
_.xM4=function(y){var W=_.ht();W&&(typeof y==="number"?y=[y]:typeof y==="string"&&(y=[parseInt(y,10)]),_.IA(y,function(V){W.unsubscribeByKey(V);delete op[V]}))};
_.kbd=function(y,W){var V=_.ht();V&&V.publish.apply(V,arguments)};
_.AYn=function(y){var W=_.ht();if(W)if(W.clear(y),y)sUL(y);else for(var V in Ki)sUL(V)};
_.ht=function(){return _.Vj.ytPubsubPubsubInstance};
sUL=function(y){Ki[y]&&(y=Ki[y],_.IA(y,function(W){op[W]&&delete op[W]}),y.length=0)};
Yru=function(){var y,W;return"h5vcc"in ib&&((y=ib.h5vcc.traceEvent)==null?0:y.traceBegin)&&((W=ib.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in ib&&ib.performance.mark&&ib.performance.measure?2:0};
Bct=function(y){var W=Yru();switch(W){case 1:ib.h5vcc.traceEvent.traceBegin("YTLR",y);break;case 2:ib.performance.mark(y+"-start");break;case 0:break;default:_.gW(W,"unknown trace type")}};
JYG=function(y){var W=Yru();switch(W){case 1:ib.h5vcc.traceEvent.traceEnd("YTLR",y);break;case 2:W=y+"-start";var V=y+"-end";ib.performance.mark(V);ib.performance.measure(y,W,V);break;case 0:break;default:_.gW(W,"unknown trace type")}};
R6n=function(y){var W,V;(V=(W=window).onerror)==null||V.call(W,y.message,"",0,0,y)};
jU4=function(y){if(_.e("web_lifecycle_error_handling_killswitch"))return y();try{return y()}catch(W){R6n(W)}};
$MG=function(y){return[y.auth===void 0?"undefined":y.auth,y.isJspb===void 0?"undefined":y.isJspb,y.cttAuthInfo===void 0?"undefined":y.cttAuthInfo,y.tier===void 0?"undefined":y.tier].join("/")};
_.h=function(y,W){if(y)return y[W.name]};
TD=function(){var y=_.ts("yt.logging.ims");y||(y=new fi,_.dE("yt.logging.ims",y));return y};
ZDb=function(y,W){if(y.endpoint==="log_event"){ncj(y);var V=HDv(y),w=XCL(y.payload)||"",t=a8P(w),F=200;if(t){if(t.enabled===!1&&!_.e("web_payload_policy_disabled_killswitch"))return;F=Gbv(t.tier);if(F===400){rYu(y,W);return}}m6[V]=!0;V={cttAuthInfo:V,isJspb:!1,tier:F};TD().storePayload(V,y.payload);bDR(W,!1,V,QUy(w))}};
WmL=function(y,W,V){if(W.endpoint==="log_event"){ncj(void 0,W);var w=HDv(W,!0),t=a8P(y),F=200;if(t){if(t.enabled===!1&&!_.e("web_payload_policy_disabled_killswitch"))return;F=Gbv(t.tier);if(F===400){ylv(y,W,V);return}}m6[w]=!0;w={cttAuthInfo:w,isJspb:!0,tier:F};TD().storePayload(w,bt(W.payload));bDR(V,!0,w,QUy(y))}};
bDR=function(y,W,V,w){W=W===void 0?!1:W;w=w===void 0?!1:w;y&&(MN=new y);y=_.pB("tvhtml5_logging_max_batch_ads_fork")||_.pB("tvhtml5_logging_max_batch")||_.pB("web_logging_max_batch")||100;var t=(0,_.cU)(),F=Vl4(W,V.tier),I=F.lastDebounceQueueFromLogTimeMs;w&&(F.useVideoStatsEndPoint=!0);w=0;V&&(w=TD().getSequenceCount(V));var P=function(){waL({writeThenSend:!0},W,V.tier)};
w>=1E3?P():w>=y?tlt||(tlt=FmL(function(){P();tlt=void 0},0)):t-I>=10&&(ESj(W,V.tier),F.lastDebounceQueueFromLogTimeMs=t)};
rYu=function(y,W){if(y.endpoint==="log_event"){_.e("more_accurate_gel_parser")&&TD().storePayload({isJspb:!1},y.payload);ncj(y);var V=HDv(y),w=new Map;w.set(V,[y.payload]);var t=XCL(y.payload)||"";W&&(MN=new W);return new _.qN(function(F,I){MN&&MN.isReady()?NLd(w,MN,F,I,{bypassNetworkless:!0},!0,QUy(t)):F()})}};
ylv=function(y,W,V){if(W.endpoint==="log_event"){ncj(void 0,W);var w=HDv(W,!0),t=new Map;t.set(w,[bt(W.payload)]);V&&(MN=new V);return new _.qN(function(F){MN&&MN.isReady()?IQt(t,MN,F,{bypassNetworkless:!0},!0,QUy(y)):F()})}};
HDv=function(y,W){var V="";if(y.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(y.cttAuthInfo){if(W===void 0?0:W){W=y.cttAuthInfo.token;V=y.cttAuthInfo;var w=new gSz;V.videoId?w.setVideoId(V.videoId):V.playlistId&&Ug(w,2,PFv,Bd(V.playlistId));CFy[W]=w}else W=y.cttAuthInfo,V={},W.videoId?V.videoId=W.videoId:W.playlistId&&(V.playlistId=W.playlistId),O5d[y.cttAuthInfo.token]=V;V=y.cttAuthInfo.token}return V};
waL=function(y,W,V){y=y===void 0?{}:y;W=W===void 0?!1:W;new _.qN(function(w,t){var F=Vl4(W,V),I=F.useVideoStatsEndPoint;F.useVideoStatsEndPoint=!1;vSd(F.queueTimer);vSd(F.queueMaxTimer);F.queueMaxTimer=0;MN&&MN.isReady()?V===void 0&&_.e("enable_web_tiered_gel")?d4v(w,t,y,W,300,I):d4v(w,t,y,W,V,I):(ESj(W,V),w())})};
d4v=function(y,W,V,w,t,F){var I=MN;V=V===void 0?{}:V;w=w===void 0?!1:w;t=t===void 0?200:t;F=F===void 0?!1:F;var P=new Map,C=new Map,d={isJspb:w,cttAuthInfo:void 0,tier:t},L={isJspb:w,cttAuthInfo:void 0};if(w){W=_.N(Object.keys(m6));for(t=W.next();!t.done;t=W.next())t=t.value,C=_.e("enable_web_tiered_gel")?TD().smartExtractMatchingEntries({keys:[d,L],sizeLimit:1E3}):TD().extractMatchingEntries({isJspb:!0,cttAuthInfo:t}),C.length>0&&P.set(t,C),(_.e("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.e("web_fp_via_jspb_and_json"))&&
delete m6[t];IQt(P,I,y,V,!1,F)}else{P=_.N(Object.keys(m6));for(d=P.next();!d.done;d=P.next())d=d.value,L=_.e("enable_web_tiered_gel")?TD().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:t},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):TD().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),L.length>0&&C.set(d,L),(_.e("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.e("web_fp_via_jspb_and_json"))&&delete m6[d];NLd(C,I,y,W,V,!1,F)}};
ESj=function(y,W){y=y===void 0?!1:y;W=W===void 0?200:W;var V=function(){waL({writeThenSend:!0},y,W)},w=Vl4(y,W),t=w===Lmb||w===zAP?5E3:clj;
_.e("web_gel_timeout_cap")&&!w.queueMaxTimer&&(t=FmL(function(){V()},t),w.queueMaxTimer=t);
vSd(w.queueTimer);t=_.yC("LOGGING_BATCH_TIMEOUT",_.pB("web_gel_debounce_ms",1E4));_.e("shorten_initial_gel_batch_timeout")&&eAy&&(t=hAa);t=FmL(function(){_.pB("gel_min_batch_size")>0?TD().getSequenceCount({cttAuthInfo:void 0,isJspb:y,tier:W})>=oSv&&V():V()},t);
w.queueTimer=t};
NLd=function(y,W,V,w,t,F,I){t=t===void 0?{}:t;var P=Math.round((0,_.cU)()),C=y.size,d=Kmt(I);y=_.N(y);var L=y.next();for(I={};!L.done;I={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},L=y.next()){var z=_.N(L.value);L=z.next().value;z=z.next().value;I.batchRequest=_.Gc.unsafeClone({context:_.yxv(W.config_||_.hf())});if(!_.bn(z)&&!_.e("throw_err_when_logevent_malformed_killswitch")){w();break}I.batchRequest.events=z;
(z=O5d[L])&&pab(I.batchRequest,L,z);delete O5d[L];I.dangerousLogToVisitorSession=L==="visitorOnlyApprovedKey";i5v(I.batchRequest,P,I.dangerousLogToVisitorSession);fQv(t);I.onSuccess$jscomp$3=function(c){_.e("start_client_gcf")&&_.HU.addLowPriorityJob(function(){return _.g(function(K){return K.yield(TLz(c),0)})});
C--;C||V()};
I.networkFailures=0;I.onError$jscomp$5=function(c){return function(){c.networkFailures++;if(t.bypassNetworkless&&c.networkFailures===1)try{xgy(W,d,c.batchRequest,m4y({writeThenSend:!0},c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,F)),eAy=!1}catch(K){_.VC(K),w()}C--;C||V()}}(I);
try{xgy(W,d,I.batchRequest,m4y(t,I.dangerousLogToVisitorSession,I.onSuccess$jscomp$3,I.onError$jscomp$5,F)),eAy=!1}catch(c){_.VC(c),w()}}};
IQt=function(y,W,V,w,t,F){w=w===void 0?{}:w;var I=Math.round((0,_.cU)()),P={value:y.size},C=new Map([].concat(_.GC(y)));C=_.N(C);for(var d=C.next();!d.done;d=C.next()){var L=_.N(d.value).next().value,z=y.get(L);d=new Mlv;var c=W.config_||_.hf(),K=new ub,f=new qUn;_.jD(f,1,c.innertubeContextHostLanguage);_.jD(f,2,c.innertubeContextGeoLocation);_.oV(f,16,c.innertubeContextClientNameFieldNumber);_.jD(f,17,c.innertubeContextClientVersion);if(c.innertubeContextClientConfigInfo){var U=c.innertubeContextClientConfigInfo,
l=new pA;U.coldConfigData&&_.jD(l,1,U.coldConfigData);U.appInstallData&&_.jD(l,6,U.appInstallData);U.coldHashData&&_.jD(l,3,U.coldHashData);U.hotHashData&&l.setHotHashData(U.hotHashData);_.sx(f,62,l)}(U=_.Vj.devicePixelRatio)&&U!=1&&_.KA(f,65,_.O3(U));U=LRP();U!==""&&_.jD(f,54,U);U=zzv();if(U.length>0){l=new U4n;for(var x=0;x<U.length;x++){var B=new Ss;B.setKey(U[x].key);Ug(B,2,u2y,Bd(U[x].value));DY(l,15,Ss,B)}_.sx(K,5,l)}aH4(c,f);G4L(K);rzz(f);b2v(c,f);QBu(f);_.e("start_client_gcf")&&Z2z(f);_.yC("DELEGATED_SESSION_ID")&&
!_.e("pageid_as_header_web")&&(c=new lb,_.jD(c,3,_.yC("DELEGATED_SESSION_ID")));!_.e("fill_delegate_context_in_gel_killswitch")&&(U=_.yC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l=_.Da(K,lb,3)||new lb,c=K,U=_.jD(l,18,U),_.sx(c,3,U));c=f;U=_.N(Object.entries(_.gi(_.yC("DEVICE",""))));for(l=U.next();!l.done;l=U.next())x=_.N(l.value),l=x.next().value,x=x.next().value,l==="cbrand"?_.jD(c,12,x):l==="cmodel"?_.jD(c,13,x):l==="cbr"?_.jD(c,87,x):l==="cbrver"?_.jD(c,88,x):l==="cos"?_.jD(c,18,
x):l==="cosver"?_.jD(c,19,x):l==="cplatform"&&_.oV(c,42,Hgy(x));K.setClient(f);_.sx(d,1,K);if(f=CFy[L])a:{if(_.lz(f,xI(f,PFv,1)))K=1;else if(f.getPlaylistId())K=2;else break a;_.sx(d,4,f);f=d.getContext()||new ub;c=_.Da(f,lb,3)||new lb;U=new kI;U.setToken(L);_.oV(U,1,K);DY(c,12,kI,U);_.sx(f,3,c)}delete CFy[L];L=L==="visitorOnlyApprovedKey";SUR()||_.sg(d,2,I);!L&&(K=_.yC("EVENT_ID"))&&(f=D4v(),c=new lQv,_.jD(c,1,K),_.sg(c,2,f),_.sx(d,5,c));fQv(w);if(_.e("jspb_serialize_with_worker")&&(K=_.P6L())&&
w.writeThenSend){_.x4j.set(kPu,{client:W,resolve:V,networklessOptions:w,isIsolated:t,useVSSEndpoint:F,dangerousLogToVisitorSession:L,requestsOutstanding:P});K.postMessage({op:"gelBatchToSerialize",batchRequest:bt(d),clientEvents:z,key:kPu});kPu++;break}if(z){K=[];for(f=0;f<z.length;f++)try{K.push(new At(z[f]))}catch(r){_.VC(new _.Js("Transport failed to deserialize "+String(z[f])))}z=K}else z=[];z=_.N(z);for(K=z.next();!K.done;K=z.next())DY(d,3,At,K.value);z={startTime:(0,_.cU)(),ticks:{},infos:{}};
d=d.serialize();z.ticks.geljspc=(0,_.cU)();_.e("log_jspb_serialize_latency")&&FgG("gel_jspb_serialize",z,{sampleRate:.1});_.sdv(d,W,V,w,t,F,L,P)}};
_.sdv=function(y,W,V,w,t,F,I,P){w=w===void 0?{}:w;P=P===void 0?{value:0}:P;F=Kmt(F);w=m4y(w,I,function(C){_.e("start_client_gcf")&&_.HU.addLowPriorityJob(function(){return _.g(function(d){return d.yield(TLz(C),0)})});
P.value--;P.value||V()},function(){P.value--;
P.value||V()},t);
w.headers["Content-Type"]="application/json+protobuf";w.postBodyFormat="JSPB";w.postBody=y;xgy(W,F,"",w);eAy=!1};
fQv=function(y){_.e("always_send_and_write")&&(y.writeThenSend=!1)};
m4y=function(y,W,V,w,t){y={retry:!0,onSuccess:V,onError:w,networklessOptions:y,dangerousLogToVisitorSession:W,bypassMonitoring:!!t,headers:{},postBodyFormat:"",postBody:"",compress:_.e("compress_gel")||_.e("compress_gel_lr")};SUR()&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.cU)())));return y};
i5v=function(y,W,V){SUR()||(y.requestTimeMs=String(W));_.e("unsplit_gel_payloads_in_logs")&&(y.unsplitGelPayloadsInLogs=!0);!V&&(W=_.yC("EVENT_ID"))&&(V=D4v(),y.serializedClientEventId={serializedEventId:W,clientCounter:String(V)})};
D4v=function(){var y=_.yC("BATCH_CLIENT_COUNTER")||0;y||(y=Math.floor(Math.random()*65535/2));y++;y>65535&&(y=1);_.Z7("BATCH_CLIENT_COUNTER",y);return y};
pab=function(y,W,V){if(V.videoId)var w="VIDEO";else if(V.playlistId)w="PLAYLIST";else return;y.credentialTransferTokenTargetId=V;y.context=y.context||{};y.context.user=y.context.user||{};y.context.user.credentialTransferTokens=[{token:W,scope:w}]};
ncj=function(y,W){var V=_.iC("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ts("yt.logging.transport.enableScrapingForTest"))if(V)Aly=[],_.dE("yt.logging.transport.enableScrapingForTest",!0),_.dE("yt.logging.transport.scrapedPayloadsForTesting",Aly),_.dE("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.dE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.dE("yt.logging.transport.scrapeClientEvent",!0);else return;V=_.ts("yt.logging.transport.scrapedPayloadsForTesting");var w=_.ts("yt.logging.transport.payloadToScrape");W&&(W=_.ts("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W.payload)())&&V.push(W);W=_.ts("yt.logging.transport.scrapeClientEvent");if(w&&w.length>=1)for(var t=0;t<w.length;t++)if(y&&y.payload[w[t]])if(W)V.push(y.payload);else{var F=void 0;V.push(((F=y)==null?void 0:F.payload)[w[t]])}_.dE("yt.logging.transport.scrapedPayloadsForTesting",
V)};
SUR=function(){return _.e("use_request_time_ms_header")||_.e("lr_use_request_time_ms_header")};
FmL=function(y,W){return _.e("transport_use_scheduler")===!1?_.mj(y,W):_.e("logging_avoid_blocking_during_navigation")||_.e("lr_logging_avoid_blocking_during_navigation")?_.Jt(_.HU,function(){if(_.YUj().currentState==="none")y();else{var V={};_.YUj().install((V.none={callback:y},V))}},W):_.Jt(_.HU,y,W)};
vSd=function(y){_.e("transport_use_scheduler")?_.HU.cancelJob(y):_.qO(y)};
TLz=function(y){var W,V,w,t,F,I,P,C,d,L;return _.g(function(z){return z.nextAddress==1?(w=(W=y)==null?void 0:(V=W.responseContext)==null?void 0:V.globalConfigGroup,t=_.h(w,BLy),I=(F=w)==null?void 0:F.hotHashData,P=_.h(w,JlR),d=(C=w)==null?void 0:C.coldHashData,(L=_.hs().resolve(_.eX(Rp)))?I?t?z.yield(RAL(L,I,t),2):z.yield(RAL(L,I),2):z.jumpTo(2):z.return()):d?P?z.yield(jdn(L,d,P),0):z.yield(jdn(L,d),0):z.jumpTo(0)})};
Vl4=function(y,W){W=W===void 0?200:W;return y?W===300?Lmb:$4a:W===300?zAP:nSu};
a8P=function(y){if(_.e("enable_web_tiered_gel")){y=H5n[y||""];var W,V,w,t=_.hs().resolve(_.eX(Rp))==null?void 0:(W=XaL())==null?void 0:(V=W.loggingHotConfig)==null?void 0:(w=V.eventLoggingConfig)==null?void 0:w.payloadPolicies;if(t)for(W=0;W<t.length;W++)if(t[W].payloadNumber===y)return t[W]}};
XCL=function(y){y=Object.keys(y);y=_.N(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,H5n[W])return W};
Gbv=function(y){switch(y){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}};
QUy=function(y){return y==="gelDebuggingEvent"};
Kmt=function(y){return(y===void 0?0:y)&&_.e("vss_through_gel_video_stats")?"video_stats":"log_event"};
$I=function(y,W,V,w){w=w===void 0?{}:w;var t={},F=Math.round(w.timestamp||(0,_.cU)());t.eventTimeMs=F<Number.MAX_SAFE_INTEGER?F:0;t[y]=W;y=_.es();t.context={lastActivityMs:String(w.timestamp||!isFinite(y)?-1:y)};w.sequenceGroup&&!_.e("web_gel_sequence_info_killswitch")&&(y=t.context,W=w.sequenceGroup,W={index:aQL(W),groupKey:W},y.sequence=W,w.endOfSequence&&delete js[w.sequenceGroup]);_.e("web_tag_automated_log_events")&&(t.context.automatedLogEventSource=w.automatedLogEventSource);(w.sendIsolatedPayload?
rYu:ZDb)({endpoint:"log_event",payload:t,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},V)};
aQL=function(y){js[y]=y in js?js[y]+1:0;return js[y]};
_.Hp=function(y,W,V){V=V===void 0?{}:V;var w=ni;_.W4("ytLoggingEventsDefaultDisabled",!1)&&ni===ni&&(w=null);$I(y,W,w,V)};
_.Xk=function(){if(_.e("web_fp_via_jspb")){var y=!0;y=y===void 0?!1:y;var W=GPb;GPb=[];if(W){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,y?$I(V.payloadName,V.payload,ni,V.options):_.Hp(V.payloadName,V.payload,V.options)}waL(void 0,!0);if(!_.e("web_fp_via_jspb_and_json"))return}waL(void 0,!1)};
rlP=function(y,W){var V;if((V=W)==null?0:V.componentStack)return W;if(y=y.componentStack)W||(W={}),W.componentStack=y;return W};
b5d=function(){_.IA(_.yC("ERRORS")||[],function(y){_.ap.apply(null,y)});
_.Z7("ERRORS",[])};
_.GD=function(y){_.ap(y)};
_.rQ=function(y){_.ap(y,"WARNING")};
QdL=function(y){y instanceof Error?_.ap(y):(y=_.VK(y)?JSON.stringify(y):String(y),y=new _.Js(y),y.name="RejectedPromiseError",_.rQ(y))};
Z5R=function(y,W,V,w,t,F){W=W===void 0?"Unknown file":W;V=V===void 0?0:V;var I=!1,P=r8d("log_window_onerror_fraction");if(P&&Math.random()<P)I=!0;else{P=document.getElementsByTagName("script");for(var C=0,d=P.length;C<d;C++)if(P[C].src.indexOf("/debug-")>0){I=!0;break}}I&&(I=!1,t?I=!0:(typeof y==="string"?P=y:ErrorEvent&&y instanceof ErrorEvent?(I=!0,P=y.message,W=y.filename,V=y.lineno,w=y.colno):(P="Unknown error",W="Unknown file",V=0),t=new _.Js(P),t.name="UnhandledWindowError",t.message=P,t.fileName=
W,t.lineNumber=V,isNaN(w)?delete t.columnNumber:t.columnNumber=w),_.e("wiz_enable_component_stack_propagation_killswitch")||(F=rlP(t,F)),F&&_.bb(t,F),I?_.ap(t):_.rQ(t))};
_.ap=function(y,W,V,w,t,F,I,P){F=F===void 0?{}:F;F.name=V||_.yC("INNERTUBE_CONTEXT_CLIENT_NAME",1);F.version=w||_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION");V=F;W=W===void 0?"ERROR":W;I=I===void 0?!1:I;W=W===void 0?"ERROR":W;I=I===void 0?!1:I;if(y&&(y.hasOwnProperty("level")&&y.level&&(W=y.level),_.e("console_log_js_exceptions")&&(w=[],w.push("Name: "+y.name),w.push("Message: "+y.message),y.hasOwnProperty("params")&&w.push("Error Params: "+JSON.stringify(y.params)),y.hasOwnProperty("args")&&w.push("Error args: "+
JSON.stringify(y.args)),w.push("File name: "+y.fileName),w.push("Stacktrace: "+y.stack),w=w.join("\n"),window.console.log(w,y)),!(ynu>=5))){w=[];t=_.N(WGv);for(F=t.next();!F.done;F=t.next()){F=F.value;try{F()&&w.push(F())}catch(l){}}w=[].concat(_.GC(Vfv),_.GC(w));var C=w5L(y);t=C.message||"Unknown Error";F=C.name||"UnknownError";var d=C.stack||y.stacktrace||"Not available";if(d.startsWith(F+": "+t)){var L=d.split("\n");L.shift();d=L.join("\n")}L=C.lineNumber||"Not available";C=C.fileName||"Not available";
var z=0;if(y.hasOwnProperty("args")&&y.args&&y.args.length)for(var c=0;c<y.args.length&&!(z=nFL(y.args[c],"params."+c,V,z),z>=500);c++);else if(y.hasOwnProperty("params")&&y.params){var K=y.params;if(typeof y.params==="object")for(c in K){if(K[c]){var f="params."+c,U=lC(K[c]);V[f]=U;z+=f.length+U.length;if(z>500)break}}else V.params=lC(K)}if(w.length)for(c=0;c<w.length&&!(z=nFL(w[c],"params.context."+c,V,z),z>=500);c++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);
c={message:t,name:F,lineNumber:L,fileName:C,stack:d,params:V,sampleWeight:1};V=Number(y.columnNumber);isNaN(V)||(c.lineNumber=c.lineNumber+":"+V);if(y.level==="IGNORED")y=0;else a:{y=tfa();V=_.N(y.messageWeights);for(w=V.next();!w.done;w=V.next())if(w=w.value,c.message&&c.message.match(w.messageRegExp)){y=w.weight;break a}y=_.N(y.callbackWeights);for(V=y.next();!V.done;V=y.next())if(V=V.value,V.callback(c)){y=V.weight;break a}y=1}c.sampleWeight=y;y=_.N(FGn);for(V=y.next();!V.done;V=y.next())if(V=
V.value,V.patternsForType[c.name])for(t=_.N(V.patternsForType[c.name]),w=t.next();!w.done;w=t.next())if(F=w.value,w=c.message.match(F.regexp)){c.params["params.error.original"]=w[0];t=F.groups;F={};for(L=0;L<t.length;L++)F[t[L]]=w[L+1],c.params["params.error."+t[L]]=w[L+1];c.message=V.messageFn(F);break}c.params||(c.params={});y=tfa();c.params["params.errorServiceSignature"]="msg="+y.messageWeights.length+"&cb="+y.callbackWeights.length;c.params["params.serviceWorker"]="false";_.Vj.document&&_.Vj.document.querySelectorAll&&
(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new QT(EnP,"sample")).constructor!==QT&&(c.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(c);if(c.sampleWeight!==0&&!Npj.has(c.message)){if(I&&_.e("web_enable_error_204"))I1v(W===void 0?"ERROR":W,c);else{W=W===void 0?"ERROR":W;W==="ERROR"?(gny.publish("handleError",c),_.e("record_app_crashed_web")&&P8z===0&&c.sampleWeight===1&&(P8z++,I={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.e("report_client_error_with_app_crash_ks")||(I.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),_.Hp("appCrashed",I)),C8G++):W==="WARNING"&&gny.publish("handleWarning",c);if(_.e("kevlar_gel_error_routing")){I=W;P=P===void 0?{}:P;b:{y=_.N(Ond);for(V=y.next();!V.done;V=y.next())if(QC(V.value.toLowerCase())){y=!0;break b}y=!1}if(y)P=void 0;else{V={stackTrace:c.stack};c.fileName&&(V.filename=c.fileName);y=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];y.length!==
0&&(y.length!==1||isNaN(Number(y[0]))?y.length!==2||isNaN(Number(y[0]))||isNaN(Number(y[1]))||(V.lineNumber=Number(y[0]),V.columnNumber=Number(y[1])):V.lineNumber=Number(y[0]));y={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};I==="ERROR"?y.level="ERROR_LEVEL_ERROR":I==="WARNING"&&(y.level="ERROR_LEVEL_WARNNING");V={isObfuscated:!0,browserStackInfo:V};P.pageUrl=window.location.href;P.kvPairs=[];_.yC("FEXP_EXPERIMENTS")&&(P.experimentIds=_.yC("FEXP_EXPERIMENTS"));
w=_.yC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!r8d("web_disable_gel_stp_ecatcher_killswitch")&&w)for(t=_.N(Object.keys(w)),F=t.next();!F.done;F=t.next())F=F.value,P.kvPairs.push({key:F,value:String(w[F])});if(w=c.params)for(t=_.N(Object.keys(w)),F=t.next();!F.done;F=t.next())F=F.value,P.kvPairs.push({key:"client."+F,value:String(w[F])});w=_.yC("SERVER_NAME");t=_.yC("SERVER_VERSION");w&&t&&(P.kvPairs.push({key:"server.name",value:w}),P.kvPairs.push({key:"server.version",value:t}));P={errorMetadata:P,
stackTrace:V,logMessage:y}}P&&(_.Hp("clientError",P),(I==="ERROR"||_.e("errors_flush_gel_always_killswitch"))&&_.Xk())}_.e("suppress_error_204_logging")||I1v(W,c)}try{Npj.add(c.message)}catch(l){}ynu++}}};
I1v=function(y,W){var V=W.params||{};y={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:y,"client.name":V.name},postParams:{url:_.yC("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};V.version&&(y["client.version"]=V.version);if(y.postParams){W.stack&&(y.postParams.stack=W.stack);W=_.N(Object.keys(V));for(var w=W.next();!w.done;w=W.next())w=w.value,y.postParams["client."+w]=V[w];if(V=_.yC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W=
_.N(Object.keys(V)),w=W.next();!w.done;w=W.next())w=w.value,y.postParams[w]=V[w];(V=_.yC("LAVA_VERSION"))&&(y.postParams["lava.version"]=V);V=_.yC("SERVER_NAME");W=_.yC("SERVER_VERSION");V&&W&&(y.postParams["server.name"]=V,y.postParams["server.version"]=W)}_.uC(_.yC("ECATCHER_REPORT_HOST","")+"/error_204",y)};
_.vnb=function(y,W){W=W===void 0?"ERROR":W;var V=V===void 0?{}:V;var w=_.ts("ytbin.polymer.shared.lib.tampering.info");w&&(w=w())&&(V["params.tamperingInfo"]=w.sort().join(","));_.ap(y,W,void 0,void 0,!0,V)};
_.bb=function(y){var W=_.Ve.apply(1,arguments);y.args||(y.args=[]);Array.isArray(y.args)&&y.args.push.apply(y.args,_.GC(W))};
dHj=function(y){y.level="IGNORED"};
LGt=function(y,W){Vfv.push(y);W();Vfv.pop()};
yp=function(y,W){for(var V in W)W.hasOwnProperty(V)&&(y=_.ZY(y,V,W[V]));return y};
_.zMP=function(y,W,V){V=V===void 0?!1:V;if(!y)return null;if(y.adInfoDialogEndpoint||y.backstageImageUploadEndpoint||y.confirmDialogEndpoint||y.clientActionEndpoint||y.createBackstagePostDialogEndpoint||y.createCommentReplyDialogEndpoint||y.flowEndpoint||y.guideBuilderEndpoint||y.liveChatDialogEndpoint||y.modalEndpoint||y.openPopupAction||y.shareEndpoint||y.shareEntityEndpoint||y.showLiveChatItemEndpoint||y.subscriptionManagerEndpoint||y.unlimitedCreateFamilyEndpoint||y.unlimitedFamilyFlowEndpoint||
y.updateCommentDialogEndpoint||y.updateCommentReplyDialogEndpoint||y.userFeedbackEndpoint||y.videoEditorEndpoint||y.ypcCancelSurveyEndpoint)return W=_.pB("polymer_report_client_url_requested_rate"),!V&&Math.random()<W&&_.rQ(new _.Js("urlForEndpoint used on client endpoint",y)),null;var w=_.pB("polymer_report_missing_web_navigation_endpoint_rate");if(y.liveChatEndpoint||y.liveChatReplayEndpoint)w=0;if(!y.commandMetadata&&!y.clickTrackingParams&&Math.random()<w){var t={},F;for(F in y)t[F]="1";_.rQ(new _.Js("Missing navigation data",
t))}t="";if(y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url)t=y.commandMetadata.webCommandMetadata.url;else if(y.searchEndpoint)Math.random()<w&&_.rQ(new _.Js("Should not manually handle search",y)),t="/results?search_query="+encodeURIComponent(y.searchEndpoint.query).replace(/%20/g,"+"),y.searchEndpoint.params&&(t+="&sp="+y.searchEndpoint.params);else if(y.watchEndpoint)Math.random()<w&&_.rQ(new _.Js("Should not manually handle watch",y)),t="/watch?v="+
y.watchEndpoint.videoId,y.watchEndpoint.playlistId&&(t+="&list="+y.watchEndpoint.playlistId),y.watchEndpoint.index&&(t+="&index="+y.watchEndpoint.index),y.watchEndpoint.startTimeSeconds&&(t+="&t="+y.watchEndpoint.startTimeSeconds);else if(y.browseEndpoint)w=y.browseEndpoint.browseId,(F=y.browseEndpoint.canonicalBaseUrl)?t=F:w&&(t=w.substr(0,2),t=t==="FE"?w==="FEwhat_to_watch"?"/":w==="FEmy_videos"?"/my_videos":"/feed/"+w.substr(2):t==="VL"?"/playlist?list="+w.substr(2):"/channel/"+w),t&&y.browseEndpoint.query&&
(t=yp(t+"/search",{query:y.browseEndpoint.query})),t&&y.browseEndpoint.params&&(t=yp(t,{params:y.browseEndpoint.params}));else{if(y.urlEndpoint)return y.urlEndpoint.url;y.signInEndpoint?(t="https://accounts.google.com/ServiceLogin",w={},_.Gc.extend(w,W||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),W=w):y.uploadEndpoint?t="//www.youtube.com/upload":y.liveChatEndpoint?(t=y.liveChatEndpoint,w=_.Gc.clone(t),_.VK(t.continuation)&&(F=Object.keys(t.continuation)[0],
w.continuation=t.continuation[F].continuation),t=yp("/youtubei/v1/live_chat/get_live_chat",w)):y.liveChatReplayEndpoint?(t=_.Gc.clone(y.liveChatReplayEndpoint),t.currentPlayerState&&(_.Gc.extend(t,t.currentPlayerState),delete t.currentPlayerState),t=yp("/youtubei/v1/live_chat/get_live_chat_replay",t)):y.liveChatItemContextMenuEndpoint?t=yp("/youtubei/v1/live_chat/get_item_context_menu",y.liveChatItemContextMenuEndpoint):y.liveChatPurchaseMessageEndpoint?t=yp("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
y.liveChatPurchaseMessageEndpoint):y.openSuperStickerBuyFlowCommand?t=yp("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",y.openSuperStickerBuyFlowCommand):y.videoEditEndpoint?t=yp("/edit",{video_id:y.videoEditEndpoint.videoId}):y.liveDashboardEndpoint?t=y.liveDashboardEndpoint.videoId?yp("/live_dashboard",{v:y.liveDashboardEndpoint.videoId}):"/live_dashboard":y.signalNavigationEndpoint&&y.signalNavigationEndpoint.signal&&y.signalNavigationEndpoint.signal==="WEBCAM"?t="/webcam":y.getPdgBuyFlowCommand&&
(t=yp(y.getPdgBuyFlowCommand.buyflowApiPath,{params:y.getPdgBuyFlowCommand.params}))}return t||V?yp(t,W||{}):(_.rQ(new _.Js("Error: Can't construct url for endpoint","keys:"+Object.keys(y).sort().join(","),y)),null)};
cnP=function(y){if(y){if(y.browseEndpoint)return!!y.browseEndpoint.nofollow;if(y.watchEndpoint)return!!y.watchEndpoint.nofollow;if(y.urlEndpoint)return!!y.urlEndpoint.nofollow}return!1};
_.hMa=function(y,W){var V=W+y,w=eMu.get(V);if(w)return w;y=W+"-"+y.replace(/([A-Z])/g,"-$1").toLowerCase();eMu.set(V,y);return y};
onu=function(y){var W=_.bU(y,"action")||_.bU(y,"command")||_.bU(y,"endpoint");if(!W)return null;W=_.hMa(W,"yt");_.h(y,_.Wl)&&(W+="-"+_.h(y,_.Wl).signal.toLowerCase().replace(/_/g,"-"));return W};
f1L=function(y){try{var W=Object.keys(y)}catch(t){return[]}for(var V=0;V<W.length;V++){var w=W[V];if(KGd.test(w)||p5z.test(w))return inz(y[w])}return[]};
inz=function(y){return y.command?[y.command]:y.onExecutionAction?[y.onExecutionAction]:y.onResponseReceivedCommand?[y.onResponseReceivedCommand]:y.updateFlowCommand?[y.updateFlowCommand]:y.clientActions?y.clientActions:y.action?[y.action]:y.actions||y.commands||y.onResponseReceivedActions||y.onResponseReceivedCommands||y.onResponseReceivedEndpoints||[]};
mHt=function(y,W){W=W===void 0?!1:W;var V=_.hs().resolve(_.eX(Vp));V||(V=new TpG,_.hs().addProvider({provide:Vp,useValue:V}));return V&&y&&!_.Gc.isEmpty(y)?V.getUrl(y,W):""};
Mfa=function(y,W,V){V=V===void 0?"":V;if(W){y.data=W;var w=mHt(W);w?(tX(y,w),cnP(W)||!zJ(w)?y.rel="nofollow":y.removeAttribute("rel"),_.h(W,_.wS)&&_.h(W,_.wS).target==="TARGET_NEW_WINDOW"?y.target="_blank":V?y.target=V:y.removeAttribute("target")):(y.removeAttribute("href"),y.removeAttribute("rel"),y.removeAttribute("target"))}};
_.NT=function(y,W){var V=df;if(Jo())qPa(y,function(){var F=_.Ve.apply(0,arguments);bO(V,function(){W.apply(null,_.GC(F))})});
else{var w=_.tL.getInstance(),t=rV(W);Byv(function(){t.value=W});
_.a8(function(){var F={},I=_.FD(w,(F[y]=function(){var P=_.Ve.apply(0,arguments);bO(V,function(){t.value.apply(t,_.GC(P))})},F));
return function(){var P={};_.Eh(w,(P[y]="",P),I)}})}};
_.I0=function(y,W){return UHb(y,!1,W)};
_.gS=function(y,W){return UHb(y,!0,W)};
UHb=function(y,W,V){return Jo()?uRu(y,W,V):SPb(y,W,V)};
SPb=function(y,W,V){return GI(function(){return uRu(y,W,V)})};
uRu=function(y,W,V){var w=ky4(function(t){w.value=t;var F=function(){var I=Kb(null);try{return V==null?void 0:V(t)}finally{Kb(I)}}();
return function(){F==null||F()}});
w.__expectedTagName=y;w.__optional=W;w.isIdom=!Jo();return w};
DHd=function(y){var W=df,V=Yd;return{getFn:function(){return function(w){W.isDisposed||nb(function(){return mT(function(){return y(w)})},V)!==!0&&w.stopPropagation()}}}};
Pl=function(y){if(typeof y.children==="function")return y.children(),null;y=_.N(y.children);for(var W=y.next();!W.done;W=y.next())W=W.value,W();return null};
l1P=function(y){var W;return((W=y.prototype)==null?void 0:W.render)===void 0};
xHb=function(y){return y.items.map(y.children)};
sJv=function(y,W,V){V=V===void 0?!1:V;nb(function(){return k$G(y,W,V)})};
k$G=function(y,W,V){var w=null;kd++;V=(V===void 0?0:V)?Anj:YPb;try{w=V(y,function(){C7(W)}),Ao(!1)}catch(t){throw Ao(!0),t;
}return w===null?y:w};
C7=function(y){if(y!==void 0&&y!==null)if(y instanceof S0)for(var W=wV;tb()!=null&&hDt in tb()&&W.contains(tb());)NV();else if(Array.isArray(y))for(W=_.N(y),y=W.next();!y.done;y=W.next())C7(y.value);else if(y instanceof RG||"function"==typeof _.oh&&y instanceof _.oh||"function"==typeof _.cV&&y instanceof _.cV)LG(y.toString());else if(_.pG(y)){if(tb()!==y){var V,w;W=(w=(V=Yd)==null?void 0:V.name)!=null?w:"unknown";throw Error("kc`"+y.tagName+"`"+W);}NV()}else if(y!=null&&y.contentKind===TI||y instanceof
Ec||s0u(y))for(W=Yha(y),W=Array.from(W.childNodes),W=_.N(W),y=W.next();!y.done;y=W.next())wV.appendChild(y.value),NV();else if(aG(y)&&(y=y.toString()),V=typeof y,V==="boolean"||V==="number"||V==="string")LG(y);else if(typeof y==="function"){W=wV;var t=tb();t&&(t._isSignalTextNode||t._isSafeOrSanitizedHtmlNode)||gyt(W,t,y);NV()}else if(y.type===xHb)C7(y.type(Object.assign({},y.props,{children:y.children[0]})));else{xV.beforeVisit(y);if(typeof y.type==="string"){a:{y.__open||dTn(y.type,y.props.idomKey);
t=wV;for(W in y.props)if(y.props[W]!==Bpd){var F=y.props[W];V=CG;V.push(W);V.push(F)}W=eH.attributes;W=W===void 0?Oh:W;F=wV;V=Va(F);KJn(F,V,W);IAv(t,y.props,!0);if((y.props.skip||y.props.skipchildren)&&wV.hasChildNodes())gV();else{if(y.type==="style"&&Xlz(y.children)===null){gV();W=void 0;break a}C7(y.children)}LJb();y.__open&&(y.__open=!1);UTz(t,y.props);W=t}return W}if(y.type===_.o8)C7(y.children);else if(!JnL(y)){W=y;try{RMG(W)}catch(I){y=I,(F=eH.handleError)==null||F.call.apply(F,[eH].concat(_.GC(Q6(y,
(t=W.type)==null?void 0:t.TAG_NAME))))}W.__open&&(LJb(),W.__open=!1)}}};
jJy=function(y,W){var V;l1P(y)?V=new sF(W,y):V=new y(W);V.JSC$10143___type=y;V.__updateContext={nextState:V.state,isForced:!1};return V};
RMG=function(y){var W=y.type,V=W.TAG_NAME;if(W===Pl)y.props.children=y.children,W(y.props);else{y.children.length>0&&(y.props.children=y.children);var w;(w=y.props).idomKey||(w.idomKey=W);if(V){var t=dTn(V,y.props.idomKey);y.__open=!0;var F=t.__instance}F||(F=jJy(W,y.props),F.props=null,t&&(t.__instance=F,F.el=t));var I;V=((I=F.__updateContext)!=null?I:{nextState:F.state,isForced:!1}).nextState;F.__updateContext=void 0;W.getDerivedStateFromProps&&(V=W.getDerivedStateFromProps(y.props,V));F.props=
y.props;F.state=V;I=function(){var P=F;xV.beforeRender(P);var C=P.render(P.props);xV.afterRender(P,C);C?(P.props.idomKey&&(C.props.idomKey=P.props.idomKey),P=C):P=void 0;if(C=P)if(C.__open=y.__open,P=C7(C),y.__open=C.__open,!W.TAG_NAME)if(P)W.TAG_NAME=P.tagName.toLowerCase(),P.__instance=F,F.el=P;else{var d;if((d=F.hooks)==null?0:d.length){var L;(L=eH.handleError)==null||L.call.apply(L,[eH].concat(_.GC(Q6(Error("td")))))}}F.didPatch();xV.didPatch(F)};
(V=F.functionComponent)?lYv(V,I,F.props.debugInstance):I()}};
JnL=function(y){var W=y.type;if(!l1P(W)||W===Pl||W.componentType===B1)return!1;y.props.children=y.children.length>1?y.children:y.children[0];var V,w=(V=y.props.idomKey)!=null?V:y.type,t;if(tb()&&((t=tb()[qV])==null?void 0:t.key)===w){var F=tb(),I=F[qV];if(!I)throw Error("jc`"+F.tagName);var P;(P=I.updateSignalsFromIdomProps)==null||P.call(I,y.props);$Hd(I);return!0}if(nnt.has(W.name))throw P=W.name,W=(I=(F=Yd)==null?void 0:F.name)!=null?I:"unknown",Error("ic`"+P+"`"+W);vyb(y.type,y.props,y.children);
y.props.renderedFromIdom=!0;(P=lYv(y.type,function(){return wfP(y.type,y.props)},y.props.debugInstance))&&Hnu(P);
return!0};
X5v=function(y){for(var W=0;W<uU(y).length;W++)NV()};
$Hd=function(y){var W=a14();if(W)X5v(W);else for(var V=0;V<y.numNodes;V++)(W=a14())?X5v(W):NV()};
a14=function(){var y;return(y=tb()[qV])==null?void 0:y.sourceDynamicRange};
Hnu=function(y){y=DTP(y);y=Array.isArray(y)?y:[y];y=_.N(y);for(var W=y.next();!W.done;W=y.next())wV.insertBefore(W.value,tb()),NV()};
G$j=function(y){var W=FNn(),V=GI(function(){return{value:typeof y==="function"?y():y}});
return[V.value,function(w){if(kV!==null){var t;(t=eH.handleError)==null||t.call.apply(t,[eH].concat(_.GC(Q6(Error("ud")))))}V.value=typeof w==="function"?w(V.value):w;W.__updateContext={nextState:W.state,isForced:!0};w=_.Lb(W.effectContext);t=KG(!1);try{if(W.el){var F,I={},P=(I.props=W.props,I.type=W.JSC$10143___type,I.children=(F=W.props.children)!=null?F:[],I[hb]=!0,I);try{sJv(W.el,P,!0)}catch(L){var C,d;(d=eH.handleError)==null||d.call.apply(d,[eH].concat(_.GC(Q6(L,(C=W.JSC$10143___type)==null?
void 0:C.TAG_NAME))))}}}finally{KG(t),_.Lb(w)}}]};
vl=function(y,W){var V=df,w=function(t){bO(V,function(){W(t)})};
window.addEventListener(y,w,void 0);_.XT(function(){window.removeEventListener(y,w,void 0)})};
_.L7=function(y){var W=df;return function(V){var w,t=(w=y.observer)!=null?w:_.hs().resolve(dS);w=rnz(V);var F=[];y.showOption&&F.push(t.observe(V,function(){bO(W,function(){y.visibilityCallback(!0,V)})},y.showOption));
y.hideOption&&F.push(t.observe(V,function(){bO(W,function(){y.visibilityCallback(!1,V)})},y.hideOption));
y.prescanOption&&y.prescanCallback&&F.push(t.observe(V,function(){bO(W,function(){y.prescanCallback()})},y.prescanOption));
var I;w.visibilityMonitorKeys=((I=w.visibilityMonitorKeys)!=null?I:[]).concat(F)}};
rnz=function(y){var W;return(W=y.polymerController)!=null?W:y};
_.zY=function(y){y.componentType=B1};
yOy=function(y,W){var V=bnP;return _.O(_.o8,null,v1(eH.enableLazyTsx,function(){return _.O(QJz,{id:V,value:y,children:W})},function(){var w=Zna(V,y);
c1(w);w=_.Lb(w);try{return W()}finally{_.Lb(w)}}))};
QJz=function(y){var W=y.children;y=Zna(y.id,y.value);c1(y);y=_.Lb(y);try{return _.O(_.o8,null,D7(W()))}finally{_.Lb(y)}};
Zna=function(y,W){return Object.assign(Object.create(WHL),{id:y,contextValue:W})};
Vy4=function(y){var W,V=df;_.rf(function(){var w=_.Lb(V),t=KG(!W);try{if(W)sJv(W,y.children(),!0);else if(W=D7(y.children()),!(W instanceof Element))throw Error("vd");}finally{KG(t),_.Lb(w)}});
return W};
_.we4=function(y,W){var V;W=af(function(){var w=KG(!0);try{V=uU(y())}finally{KG(w)}},W===void 0?!1:W);
return[V,W]};
FHz=function(y){y=y.buf.charCodeAt(y.pos++);return tyP[y]};
cl=function(y){var W=0,V=0;do{var w=FHz(y);W|=(w&31)<<V;V+=5}while(w&32);return W<0?W+4294967296:W};
I6y=function(y,W,V){E9G(y,W);y[W][N7L].unshift(V)};
E9G=function(y,W){if(!y[W]||!y[W][N7L]){var V=y[W],w=V?[V]:[];y[W]=function(){for(var t=_.N(w),F=t.next();!F.done;F=t.next())F.value.apply(this,arguments)};
y[W][N7L]=w}};
g9v=function(y){if(!y)return[];var W=[];y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,Array.isArray(V)?W.push.apply(W,_.GC(g9v(V))):W.push(V);return W};
_.hL=function(y,W){if(y&&P0d.test(y)||y==="//")return y;if(C0n===void 0){C0n=!1;try{var V=new URL("b","http://a");V.pathname="c%20d";C0n=V.href==="http://a/c%20d"}catch(w){}}W||(W=document.baseURI||window.location.href);if(C0n)try{return(new URL(y,W)).href}catch(w){return y}ei||(ei=document.implementation.createHTMLDocument("temp"),ei.base=ei.createElement("base"),ei.head.appendChild(ei.base),ei.anchor=ei.createElement("a"),ei.body.appendChild(ei.anchor));ei.base.href=W;ei.anchor.href=y;return ei.anchor.href||
y};
v9P=function(y,W){return y.replace(Ovj,function(V,w,t,F){return w+"'"+_.hL(t.replace(/["']/g,""),W)+"'"+F})};
dUu=function(y){return y.substring(0,y.lastIndexOf("/")+1)};
cOz=function(){LHu=!1;for(var y=o0.length,W=0;W<y;W++){var V=o0[W];if(V)try{V()}catch(w){setTimeout(function(){throw w;})}}o0.splice(0,y);
z74+=y};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(y){console.log("["+y.is+"]: registered")};
h7P=function(y){e7G.push(y)};
K7=function(y){return o9j[y]||(o9j[y]=y.indexOf("-")<0?y:y.replace(KHL,function(W){return W[1].toUpperCase()}))};
p7=function(y){return o9j[y]||(o9j[y]=y.replace(pe4,"-$1").toLowerCase())};
ivt=function(y,W){var V=W.parentInfo&&ivt(y,W.parentInfo);if(V)for(y=V.firstChild,V=0;y;y=y.nextSibling){if(W.parentIndex===V++)return y}else return y};
f6v=function(y,W){y=y._methodHost||y;return function(V){if(y[W])y[W](V,V.detail);else console.warn("listener method `"+W+"` not defined")}};
TY=function(y){return y.indexOf(".")>=0};
mJ=function(y){var W=y.indexOf(".");return W===-1?y:y.slice(0,W)};
T7G=function(y,W){return y.indexOf(W+".")===0};
MT=function(y,W){return W.indexOf(y+".")===0};
qT=function(y,W,V){return W+V.slice(y.length)};
mUz=function(y,W){return y===W||T7G(y,W)||MT(y,W)};
Uh=function(y){if(Array.isArray(y)){for(var W=[],V=0;V<y.length;V++)for(var w=y[V].toString().split("."),t=0;t<w.length;t++)W.push(w[t]);return W.join(".")}return y};
Myn=function(y){return Array.isArray(y)?Uh(y).split("."):y.toString().split(".")};
u4=function(y,W,V){W=Myn(W);for(var w=0;w<W.length;w++){if(!y)return;y=y[W[w]]}V&&(V.path=W.join("."));return y};
qZd=function(y,W,V){var w=Myn(W),t=w[w.length-1];if(w.length>1){for(W=0;W<w.length-1;W++)if(y=y[w[W]],!y)return;y[t]=V}else y[W]=V;return w.join(".")};
UUG=function(y,W,V){var w=y[W];if(!w)w=y[W]={};else if(!y.hasOwnProperty(W)&&(w=y[W]=Object.create(y[W]),V))for(var t in w)for(y=w[t],W=w[t]=Array(y.length),V=0;V<y.length;V++)W[V]=y[V];return w};
DR=function(y,W,V,w,t,F){if(W){var I=!1,P=Si++,C;for(C in V){var d=t?mJ(C):C;if(d=W[d])for(var L=0,z=d.length,c=void 0;L<z&&(c=d[L]);L++)c.info&&c.info.lastRun===P||t&&!uWu(C,c.trigger)||(c.info&&(c.info.lastRun=P),c.fn(y,C,V,w,c.info,t,F),I=!0)}return I}return!1};
uWu=function(y,W){if(W){var V=W.name;return V==y||!(!W.structured||!T7G(V,y))||!(!W.wildcard||!MT(V,y))}return!0};
SZz=function(y,W,V,w,t){W=typeof t.method==="string"?y[t.method]:t.method;V=t.property;W?W.call(y,y.__data[V],w[V]):t.dynamicFn||console.warn("observer method `"+t.method+"` not defined")};
DUv=function(y,W,V,w){V={value:V,queueProperty:!0};w&&(V.path=w);(0,_.l4)(y).dispatchEvent(new CustomEvent(W,{detail:V}))};
l6R=function(y,W,V,w,t,F){F=(w=(F?mJ(W):W)!=W?W:null)?u4(y,w):y.__data[W];w&&F===void 0&&(F=V[W]);DUv(y,t.eventName,F,w)};
xUj=function(y,W,V,w,t){V=y.__data[W];xk&&(V=xk(V,t.attrName,"attribute",y));y._propertyToAttribute(W,t.attrName,V)};
stn=function(y){var W=y.constructor.__orderedComputedDeps;if(!W){W=new Map;for(var V=y.__computeEffects,w=kry(y),t=w.counts,F=w.ready,I=w.total;w=F.shift();)W.set(w,W.size),(w=V[w])&&w.forEach(function(P){P=P.info.methodInfo;--I;--t[P]===0&&F.push(P)});
I!==0&&console.warn("Computed graph for "+y.localName+" incomplete; circular?");y.constructor.__orderedComputedDeps=W}return W};
kry=function(y){var W=y.__computeInfo,V={};y=y.__computeEffects;var w=[],t=0,F;for(F in W){var I=W[F];t+=V[F]=I.args.filter(function(C){return!C.literal}).length+(I.dynamicFn?1:0)}for(var P in y)W[P]||w.push(P);
return{counts:V,ready:w,total:t}};
YZt=function(y,W,V,w,t){W=AOb(y,W,V,w,t);if(W===kk)return!1;t=t.methodInfo;if(y.__dataHasAccessor&&y.__dataHasAccessor[t])return y._setPendingProperty(t,W,!0);y[t]=W;return!1};
R74=function(y,W,V,w,t,F,I){V.bindings=V.bindings||[];w={kind:w,target:t,parts:F,literal:I,isCompound:F.length!==1};V.bindings.push(w);w.target&&w.kind!="attribute"&&w.kind!="text"&&!w.isCompound&&w.parts[0].mode==="{"&&(V=w.parts[0],F=V.negate,w.listenerEvent=V.event||p7(t)+"-changed",w.listenerNegate=F);t=W.nodeInfoList.length;for(V=0;V<w.parts.length;V++){var P=w.parts[V];P.compoundIndex=V;F=y;I=W;var C=w,d=P,L=t;if(!d.literal)if(C.kind==="attribute"&&C.target[0]==="-")console.warn("Cannot set attribute "+
C.target+' because "-" is not a valid attribute starting character');else for(P=d.dependencies,C={index:L,binding:C,part:d,evaluator:F},d=0;d<P.length;d++)L=P[d],typeof L=="string"&&(L=B7G(L),L.wildcard=!0),F._addTemplatePropertyEffect(I,L.rootProperty,{fn:JOz,info:C,trigger:L})}};
JOz=function(y,W,V,w,t,F,I){I=I[t.index];var P=t.binding,C=t.part;F&&C.source&&W.length>C.source.length&&P.kind=="property"&&!P.isCompound&&I.__isPropertyEffectsClient&&I.__dataHasAccessor&&I.__dataHasAccessor[P.target]?(V=V[W],W=qT(C.source,P.target,W),I._setPendingPropertyOrPath(W,V,!1,!0)&&y._enqueueClient(I)):(W=t.evaluator._evaluateBinding(y,C,W,V,w,F),W!==kk&&(P.isCompound&&(V=I.__dataCompoundStorage[P.target],V[C.compoundIndex]=W,W=V.join("")),P.kind==="attribute"||P.target!=="textContent"&&
(P.target!=="value"||I.localName!=="input"&&I.localName!=="textarea")||(W=W==void 0?"":W),C=W,xk&&(C=xk(C,P.target,P.kind,I)),P.kind=="attribute"?y._valueToNodeAttribute(I,C,P.target):(P=P.target,I.__isPropertyEffectsClient&&I.__dataHasAccessor&&I.__dataHasAccessor[P]?I.__readOnly&&I.__readOnly[P]||I._setPendingProperty(P,C)&&y._enqueueClient(I):y._setUnmanagedPropertyToNode(I,P,C))))};
jta=function(y,W,V){if(V.listenerEvent){var w=V.parts[0];y.addEventListener(V.listenerEvent,function(t){var F=V.target,I=w.source,P=w.negate,C=t.detail,d=C&&C.path;d?(I=qT(F,I,d),t=C&&C.value):t=t.currentTarget[F];W.__readOnly&&W.__readOnly[I]||!W._setPendingPropertyOrPath(I,P?!t:t,!0,!!d)||C&&C.queueProperty||W._invalidateProperties()})}};
$Ub=function(y,W,V,w,t,F){F=W.static||F&&(typeof F!=="object"||F[W.methodName]);t={methodName:W.methodName,args:W.args,methodInfo:t,dynamicFn:F};for(var I=0,P=void 0;I<W.args.length&&(P=W.args[I]);I++)P.literal||y._addPropertyEffect(P.rootProperty,V,{fn:w,info:t,trigger:P});F&&y._addPropertyEffect(W.methodName,V,{fn:w,info:t});return t};
AOb=function(y,W,V,w,t){w=y._methodHost||y;var F=w[t.methodName];if(F)return y=y._marshalArgs(t.args,W,V),y===kk?kk:F.apply(w,y);t.dynamicFn||console.warn("method `"+t.methodName+"` not defined")};
n9z=function(y){for(var W="",V=0;V<y.length;V++)W+=y[V].literal||"";return W};
a6z=function(y){if(y=y.match(/([^\s]+?)\(([\s\S]*)\)/)){var W={methodName:y[1],static:!0,args:Hvt};return y[2].trim()?Xej(y[2].replace(/\\,/g,"&comma;").split(","),W):W}return null};
Xej=function(y,W){W.args=y.map(function(V){V=B7G(V);V.literal||(W.static=!1);return V},this);
return W};
B7G=function(y){y=y.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var W={name:y,value:"",literal:!1},V=y[0];V==="-"&&(V=y[1]);V>="0"&&V<="9"&&(V="#");switch(V){case "'":case '"':W.value=y.slice(1,-1);W.literal=!0;break;case "#":W.value=Number(y),W.literal=!0}W.literal||(W.rootProperty=mJ(y),W.structured=TY(y),W.structured&&(W.wildcard=y.slice(-2)==".*",W.wildcard&&(W.name=y.slice(0,-2))));return W};
Grt=function(y,W,V){y=u4(y,V);y===void 0&&(y=W[V]);return y};
rOv=function(y,W,V,w){w={indexSplices:w};sh&&!y._overrideLegacyUndefined&&(W.splices=w);y.notifyPath(V+".splices",w);y.notifyPath(V+".length",W.length);sh&&!y._overrideLegacyUndefined&&(w.indexSplices=[])};
AL=function(y,W,V,w,t,F){rOv(y,W,V,[{index:w,addedCount:t,removed:F,object:W,type:"splice"}])};
bvj=function(y){y=v9P((y.body?y.body:y).textContent,y.baseURI);var W=document.createElement("style");W.textContent=y;return W};
Zvv=function(y){y=y.trim().split(/\s+/);for(var W=[],V=0;V<y.length;V++)W.push.apply(W,_.GC(QtG(y[V])));return W};
QtG=function(y){var W=Yk.import(y);if(!W)return console.warn("Could not find style data in module named",y),[];if(W._styles===void 0){y=[];y.push.apply(y,_.GC(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W)));var V=W.querySelector("template");V&&y.push.apply(y,_.GC(yDd(V,W.assetpath)));W._styles=y}return W._styles};
yDd=function(y,W){if(!y._styles){for(var V=[],w=y.content.querySelectorAll("style"),t=0;t<w.length;t++){var F=w[t],I=F.getAttribute("include");I&&V.push.apply(V,_.GC(Zvv(I).filter(function(P,C,d){return d.indexOf(P)===C})));
W&&(F.textContent=v9P(F.textContent,W));V.push(F)}y._styles=V}return y._styles};
Waz=function(y){return(y=Yk.import(y))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(y){var W=[];y=y.querySelectorAll("link[rel=import][type~=css]");for(var V=0;V<y.length;V++){var w=y[V];if(w.import){var t=w.import;if((w=w.hasAttribute("shady-unscoped"))&&!t._unscopedStyle){var F=bvj(t);F.setAttribute("shady-unscoped","");t._unscopedStyle=F}else t._style||(t._style=bvj(t));W.push(w?t._unscopedStyle:t._style)}}return W};
wmu=function(y){y=y.trim().split(/\s+/);for(var W="",V=0;V<y.length;V++)W+=V3j(y[V]);return W};
V3j=function(y){var W=Yk.import(y);if(W&&W._cssText===void 0){var V=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W),w=W.querySelector("template");w&&(V+=t3R(w,W.assetpath));W._cssText=V||null}W||console.warn("Could not find style data in module named",y);return W&&W._cssText||""};
t3R=function(y,W){var V="";y=yDd(y,W);for(W=0;W<y.length;W++){var w=y[W];w.parentNode&&w.parentNode.removeChild(w);V+=w.textContent}return V};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(y){var W="";y=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y);for(var V=0;V<y.length;V++)W+=y[V].textContent;return W};
Bl=function(y,W){return{index:y,removed:[],addedCount:W}};
EUL=function(y,W,V,w){var t=0,F=0,I=0,P=0,C=Math.min(W-t,w-F);if(t==0&&F==0)a:{for(I=0;I<C;I++)if(y[I]!==V[I])break a;I=C}if(W==y.length&&w==V.length){P=y.length;for(var d=V.length,L=0;L<C-I&&Fab(y[--P],V[--d]);)L++;P=L}t+=I;F+=I;W-=P;w-=P;if(W-t==0&&w-F==0)return[];if(t==W){for(W=Bl(t,0);F<w;)W.removed.push(V[F++]);return[W]}if(F==w)return[Bl(t,W-t)];C=t;I=F;w=w-I+1;P=W-C+1;W=Array(w);for(d=0;d<w;d++)W[d]=Array(P),W[d][0]=d;for(d=0;d<P;d++)W[0][d]=d;for(d=1;d<w;d++)for(L=1;L<P;L++)if(y[C+L-1]===
V[I+d-1])W[d][L]=W[d-1][L-1];else{var z=W[d-1][L]+1,c=W[d][L-1]+1;W[d][L]=z<c?z:c}C=W.length-1;I=W[0].length-1;w=W[C][I];for(y=[];C>0||I>0;)C==0?(y.push(2),I--):I==0?(y.push(3),C--):(P=W[C-1][I-1],d=W[C-1][I],L=W[C][I-1],z=d<L?d<P?d:P:L<P?L:P,z==P?(P==w?y.push(0):(y.push(1),w=P),C--,I--):z==d?(y.push(3),C--,w=d):(y.push(2),I--,w=L));y.reverse();W=void 0;C=[];for(I=0;I<y.length;I++)switch(y[I]){case 0:W&&(C.push(W),W=void 0);t++;F++;break;case 1:W||(W=Bl(t,0));W.addedCount++;t++;W.removed.push(V[F]);
F++;break;case 2:W||(W=Bl(t,0));W.addedCount++;t++;break;case 3:W||(W=Bl(t,0)),W.removed.push(V[F]),F++}W&&C.push(W);return C};
Nxn=function(y,W){return EUL(y,y.length,W,W.length)};
Fab=function(y,W){return y===W};
gUu=function(y){if(y instanceof IEb)return y.value;throw Error("Md`"+y);};
Pwn=function(y,W){for(var V in W)V===null?y.style.removeProperty(V):y.style.setProperty(V,W[V])};
Cw4=function(y,W){return(y=window.getComputedStyle(y).getPropertyValue(W))?y.trim():""};
Lan=function(y){requestAnimationFrame(function(){OVn?OVn(y):(vUt||(vUt=new Promise(function(W){dEP=W}),document.readyState==="complete"?dEP():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&dEP()})),vUt.then(function(){y&&y()}))})};
eTv=function(y){zTj=y&&y.shimcssproperties?!1:cDz||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
iVP=function(y){if(!(hTL.indexOf(y)>-1)&&y!=="touchend"&&oUj&&KaP&&pmv)return{passive:!0}};
M3n=function(y){for(var W=fEL?["click"]:hTL,V=0,w;V<W.length;V++)w=W[V],y?(Txd.length=0,document.addEventListener(w,mEz,!0)):document.removeEventListener(w,mEz,!0)};
JL=function(y){var W=y.type;return hTL.indexOf(W)>-1?W==="mousemove"?(W=y.buttons===void 0?1:y.buttons,y instanceof window.MouseEvent&&!qpR&&(W=UEz[y.which]||0),!!(W&1)):(y.button===void 0?0:y.button)===0:!1};
uuG=function(y){if(y.type==="click"){if(y.detail===0)return!0;var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);if(!W.nodeType||W.nodeType!==Node.ELEMENT_NODE)return!0;W=W.getBoundingClientRect();var V=y.pageX;y=y.pageY;return!(V>=W.left&&V<=W.right&&y>=W.top&&y<=W.bottom)}return!1};
Spj=function(y,W,V){y.movefn=W;y.upfn=V;document.addEventListener("mousemove",W);document.addEventListener("mouseup",V)};
R0=function(y){document.removeEventListener("mousemove",y.movefn);document.removeEventListener("mouseup",y.upfn);y.movefn=null;y.upfn=null};
DEn=function(y,W){for(var V=document.elementFromPoint(y,W),w=V;w&&w.shadowRoot&&!window.ShadyDOM;){var t=w;w=w.shadowRoot.elementFromPoint(y,W);if(t===w)break;w&&(V=w)}return V};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=lEG(y);return W.length>0?W[0]:y.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=y.type,V=y.currentTarget.__polymerGestures;if(V&&(V=V[W])){if(!y.__polymerGesturesHandled&&(y.__polymerGesturesHandled={},W.slice(0,5)==="touch")){var w=y.changedTouches[0];W==="touchstart"&&y.touches.length===1&&(xEz=w.identifier);if(xEz!==w.identifier)return;oUj||(W==="touchstart"||W==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)}w=
y.__polymerGesturesHandled;if(!w.skip){for(var t=0,F;t<ji.length;t++)F=ji[t],V[F.name]&&!w[F.name]&&F.flow&&F.flow.start.indexOf(y.type)>-1&&F.reset&&F.reset();for(t=0;t<ji.length;t++)F=ji[t],V[F.name]&&!w[F.name]&&(w[F.name]=!0,F[W](y))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=y.changedTouches[0],V=y.type;if(V==="touchstart")kSj=W.clientX,sDv=W.clientY,ADR=!1;else if(V==="touchmove"&&!ADR){ADR=!0;V="auto";for(var w=lEG(y),t=0,F;t<w.length;t++)if(F=w[t],F.__polymerGesturesTouchAction){V=F.__polymerGesturesTouchAction;break}w=!1;t=Math.abs(kSj-W.clientX);W=Math.abs(sDv-W.clientY);y.cancelable&&(V==="none"?w=!0:V==="pan-x"?w=W>t:V==="pan-y"&&(w=t>W));w?y.preventDefault():
$k("track")}};
Hl=function(y,W,V){return n7[W]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,W,V),!0):!1};
XD=function(y,W,V){return n7[W]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,W,V),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,V){var w=n7[W],t=w.deps,F=w.name,I=y.__polymerGestures;I||(y.__polymerGestures=I={});for(var P=0,C,d;P<t.length;P++)C=t[P],fEL&&hTL.indexOf(C)>-1&&C!=="click"||((d=I[C])||(I[C]=d={_count:0}),d._count===0&&y.addEventListener(C,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,iVP(C)),d[F]=(d[F]||0)+1,d._count=(d._count||0)+1);y.addEventListener(W,V);w.touchAction&&_.a0(y,w.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,V){var w=n7[W],t=w.deps;w=w.name;var F=y.__polymerGestures;if(F)for(var I=0,P,C;I<t.length;I++)P=t[I],(C=F[P])&&C[w]&&(C[w]=(C[w]||1)-1,C._count=(C._count||1)-1,C._count===0&&y.removeEventListener(P,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,iVP(P)));y.removeEventListener(W,V)};
Ypz=function(y){ji.push(y);for(var W=0;W<y.emits.length;W++)n7[y.emits[W]]=y};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){for(var W=0,V;W<ji.length;W++){V=ji[W];for(var w=0,t;w<V.emits.length;w++)if(t=V.emits[w],t===y)return V}return null};
_.a0=function(y,W){oUj&&y instanceof HTMLElement&&GY.run(function(){y.style.touchAction=W});
y.__polymerGesturesTouchAction=W};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,V){W=new Event(W,{bubbles:!0,cancelable:!0,composed:!0});W.detail=V;(0,_.l4)(y).dispatchEvent(W);W.defaultPrevented&&(y=V.preventer||V.sourceEvent)&&y.preventDefault&&y.preventDefault()};
$k=function(y){y=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y.info&&(y.info.prevent=!0)};
rS=function(y,W,V,w){W&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,y,{x:V.clientX,y:V.clientY,sourceEvent:V,preventer:w,prevent:function(t){return $k(t)}})};
Bx4=function(y,W,V){if(y.prevent)return!1;if(y.started)return!0;V=Math.abs(y.y-V);return Math.abs(y.x-W)>=5||V>=5};
JD4=function(y,W,V){if(W){var w=y.moves[y.moves.length-2],t=y.moves[y.moves.length-1],F=t.x-y.x,I=t.y-y.y,P=0;if(w){var C=t.x-w.x;P=t.y-w.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,"track",{state:y.state,x:V.clientX,y:V.clientY,dx:F,dy:I,ddx:C,ddy:P,sourceEvent:V,hover:function(){return DEn(V.clientX,V.clientY)}})}};
jDP=function(y,W,V){var w=Math.abs(W.clientX-y.x),t=Math.abs(W.clientY-y.y),F=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V||W);!F||RTv[F.localName]&&F.hasAttribute("disabled")||!(isNaN(w)||isNaN(t)||w<=25&&t<=25||uuG(W))||y.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,"tap",{x:W.clientX,y:W.clientY,sourceEvent:W,preventer:V})};
$Ed=function(y,W,V,w,t){var F;t&&(F=typeof V==="object"&&V!==null)&&(w=y.__dataTemp[W]);w=w!==V&&(w===w||V===V);F&&w&&(y.__dataTemp[W]=V);return w};
HVn=function(){if(b4&&!Qp){if(!nUz){nUz=!0;var y=document.createElement("style");y.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(y)}return!0}return!1};
aEz=function(){return Xmd};
GSz=function(y,W){Xmd=y;Object.setPrototypeOf(y,W.prototype);new W;Xmd=null};
rDy=function(y,W){for(var V=0;V<W.length;V++){var w=W[V];if(!!y!=!!w.__hideTemplateChildren__)if(w.nodeType===Node.TEXT_NODE)y?(w.__polymerTextContent__=w.textContent,w.textContent=""):w.textContent=w.__polymerTextContent__;else if(w.localName==="slot")if(y)w.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.l4)((0,_.l4)(w).parentNode).replaceChild(w.__polymerReplaced__,w);else{var t=w.__polymerReplaced__;t&&(0,_.l4)((0,_.l4)(t).parentNode).replaceChild(w,t)}else w.style&&(y?(w.__polymerDisplay__=
w.style.display,w.style.display="none"):w.style.display=w.__polymerDisplay__);w.__hideTemplateChildren__=y;w._showHideChildren&&w._showHideChildren(y)}};
bVa=function(y){return(y=y.__dataHost)&&y._methodHost||y};
ydG=function(y,W,V){var w=V.mutableData?QDL:ZR;yV.mixin&&(w=yV.mixin(w));var t=function(){return w.apply(this,arguments)||this};
_.p(t,w);t.prototype.__templatizeOptions=V;t.prototype._bindTemplate(y);ZVv(t,y,W,V);return t};
FUj=function(y,W,V,w){var t=V.forwardHostProp;if(t&&W.hasHostProps){var F=y.localName=="template",I=W.templatizeTemplateClass;if(!I){if(F){var P=V.mutableData?WUy:V6u;I=function(){return P.apply(this,arguments)||this};
_.p(I,P);I=W.templatizeTemplateClass=I}else{var C=y.constructor;I=function(){return C.apply(this,arguments)||this};
_.p(I,C);I=W.templatizeTemplateClass=I}var d=W.hostProps,L;for(L in d)I.prototype._addPropertyEffect("_host_"+L,I.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:wXb(t)}),I.prototype._createNotifyingProperty("_host_"+L);Wf&&w&&t6R(W,V,w)}y.__dataProto&&Object.assign(y.__data,y.__dataProto);if(F)GSz(y,I),y.__dataTemp={},y.__dataPending=null,y.__dataOld=null,y._enableProperties();else{Object.setPrototypeOf(y,I.prototype);W=W.hostProps;for(var z in W)z="_host_"+z,z in y&&(W=y[z],delete y[z],y.__data[z]=
W)}}};
wXb=function(y){return function(W,V,w){y.call(W.__templatizeOwner,V.substring(6),w[V])}};
ZVv=function(y,W,V,w){var t=V.hostProps||{},F;for(F in w.instanceProps){delete t[F];var I=w.notifyInstanceProp;I&&y.prototype._addPropertyEffect(F,y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Eev(I)})}if(w.forwardHostProp&&W.__dataHost)for(var P in t)V.hasHostProps||(V.hasHostProps=!0),y.prototype._addPropertyEffect(P,y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:NKn()})};
Eev=function(y){return function(W,V,w){y.call(W.__templatizeOwner,W,V,w[V])}};
NKn=function(){return function(y,W,V){y.__dataHost._setPendingPropertyOrPath("_host_"+W,V[W],!0,!0)}};
yV=function(y,W,V){if(VV&&!bVa(y))throw Error("Sd");V=V||{};if(y.__templatizeOwner)throw Error("Td");y.__templatizeOwner=W;var w=(W?W.constructor:ZR)._parseTemplate(y),t=w.templatizeInstanceClass;t||(t=ydG(y,w,V),w.templatizeInstanceClass=t);var F=bVa(y);FUj(y,w,V,F);V=function(){return t.apply(this,arguments)||this};
_.p(V,t);V.prototype._methodHost=F;V.prototype.__dataHost=y;V.prototype.__templatizeOwner=W;V.prototype.__hostProps=w.hostProps;return V};
t6R=function(y,W,V){V=V.constructor._properties;y=y.propertyEffects;W=W.instanceProps;for(var w in y)if(!(V[w]||W&&W[w]))for(var t=y[w],F=0;F<t.length;F++){var I=t[F].info.part;if(!I.signature||!I.signature.static){console.warn("Property '"+w+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
ITd=function(y,W){for(var V;W;)if(V=W.__dataHost?W:W.__templatizeInstance)if(V.__dataHost!=y)W=V.__dataHost;else return V;else W=(0,_.l4)(W).parentNode;return null};
wy=function(y){return y.localName==="slot"};
gev=function(){for(var y=t8.prototype,W="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),V={},w=0;w<W.length;V={method$jscomp$33:void 0},w++)V.method$jscomp$33=W[w],y[V.method$jscomp$33]=function(t){return function(){return this.node[t.method$jscomp$33].apply(this.node,arguments)}}(V)};
PPt=function(y,W){for(var V={},w=0;w<W.length;V={name$jscomp$421:void 0},w++)V.name$jscomp$421=W[w],Object.defineProperty(y,V.name$jscomp$421,{get:function(t){return function(){return this.node[t.name$jscomp$421]}}(V),
configurable:!0})};
CPz=function(){for(var y=t8.prototype,W=["textContent","innerHTML","className"],V={},w=0;w<W.length;V={name$jscomp$422:void 0},w++)V.name$jscomp$422=W[w],Object.defineProperty(y,V.name$jscomp$422,{get:function(t){return function(){return this.node[t.name$jscomp$422]}}(V),
set:function(t){return function(F){this.node[t.name$jscomp$422]=F}}(V),
configurable:!0})};
OFR=function(){Fn=document.documentElement.getAttribute("dir");Fn=document.documentElement.getAttribute("dir");for(var y=0;y<E0.length;y++){var W=E0[y];W.__autoDirOptOut||W.setAttribute("dir",Fn)}};
zlu=function(){NB=!0;requestAnimationFrame(function(){NB=!1;vea(dWb);setTimeout(function(){for(var y=0,W=I2.length;y<W;y++)LUu(I2.shift())})})};
vea=function(y){for(;y.length;)LUu(y.shift())};
LUu=function(y){var W=y[0],V=y[1];y=y[2];try{V.apply(W,y)}catch(w){setTimeout(function(){throw w;})}};
_.cdn=function(y,W,V){NB||zlu();dWb.push([y,W,V])};
_.gy=function(y,W,V){NB||zlu();I2.push([y,W,V])};
oed=function(y,W){W=W===void 0?!1:W;if(!elj||!hlv||!elj.handlesDynamicScoping)return null;var V=hlv.ScopingShim;if(!V)return null;var w=V.scopeForNode(y),t=(0,_.l4)(y).getRootNode(),F=function(I){if((0,_.l4)(I).getRootNode()===t){var P=Array.from(elj.nativeMethods.querySelectorAll.call(I,"*"));P.push(I);for(I=0;I<P.length;I++){var C=P[I];if((0,_.l4)(C).getRootNode()===t){var d=V.currentScopeForNode(C);d!==w&&(d!==""&&V.unscopeNode(C,d),V.scopeNode(C,w))}}}};
F(y);return W?(W=new MutationObserver(function(I){for(var P=0;P<I.length;P++)for(var C=I[P],d=0;d<C.addedNodes.length;d++){var L=C.addedNodes[d];L.nodeType===Node.ELEMENT_NODE&&F(L)}}),W.observe(y,{childList:!0,
subtree:!0}),W):null};
KUR=function(){document.body.removeAttribute("unresolved")};
mWj=function(y){var W=y=y.replace(pXu,"").replace(iF4,""),V=new fTd;V.start=0;V.end=W.length;for(var w=V,t=0,F=W.length;t<F;t++)if(W[t]==="{"){w.rules||(w.rules=[]);var I=w,P=I.rules[I.rules.length-1]||null;w=new fTd;w.start=t+1;w.parent=I;w.previous=P;I.rules.push(w)}else W[t]==="}"&&(w.end=t+1,w=w.parent||V);return TKz(V,y)};
TKz=function(y,W){var V=W.substring(y.start,y.end-1);y.parsedCssText=y.cssText=V.trim();y.parent&&(V=W.substring(y.previous?y.previous.end:y.parent.start,y.start-1),V=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V),V=V.replace(M64," "),V=V.substring(V.lastIndexOf(";")+1),V=y.parsedSelector=y.selector=V.trim(),y.atRule=V.indexOf("@")===0,y.atRule?V.indexOf("@media")===0?y.type=4:V.match(qXL)&&(y.type=7,y.keyframesName=y.selector.split(M64).pop()):V.indexOf("--")===
0?y.type=1E3:y.type=1);if(V=y.rules)for(var w=0,t=V.length,F=void 0;w<t&&(F=V[w]);w++)TKz(F,W);return y};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(y){return y.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var W=arguments[1],V=6-W.length;V--;)W="0"+W;return"\\"+W})};
UWv=function(y,W,V){V=V===void 0?"":V;var w="";if(y.cssText||y.rules){var t=y.rules;if(t&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t))for(var F=0,I=t.length,P=void 0;F<I&&(P=t[F]);F++)w=UWv(P,W,w);else W?W=y.cssText:(W=y.cssText,W=W.replace(u_d,"").replace(SXz,""),W=W.replace(DWG,"").replace(lTj,"")),(w=W.trim())&&(w="  "+w+"\n")}w&&(y.selector&&(V+=y.selector+" {\n"),V+=w,y.selector&&(V+="}\n\n"));return V};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(y){y=y[0];return!!y&&!!y.selector&&y.selector.indexOf("--")===0};
kWt=function(y){if(y=xWa[y])y._applyShimCurrentVersion=y._applyShimCurrentVersion||0,y._applyShimValidatingVersion=y._applyShimValidatingVersion||0,y._applyShimNextVersion=(y._applyShimNextVersion||0)+1};
sXz=function(y){return y._applyShimCurrentVersion===y._applyShimNextVersion};
YXb=function(y){y._applyShimValidatingVersion=y._applyShimNextVersion;y._validating||(y._validating=!0,Ad4.then(function(){y._applyShimCurrentVersion=y._applyShimNextVersion;y._validating=!1}))};
JdG=function(y){if(!y)return"";typeof y==="string"&&(y=mWj(y));return UWv(y,BKR)};
Rlv=function(y){!y.__cssRules&&y.textContent&&(y.__cssRules=mWj(y.textContent));return y.__cssRules||null};
$Wt=function(y,W,V,w){if(y){var t=!1,F=y.type;if(w&&F===4){var I=y.selector.match(jXR);I&&(window.matchMedia(I[1]).matches||(t=!0))}F===1?W(y):V&&F===7?V(y):F===1E3&&(t=!0);if((y=y.rules)&&!t)for(t=0,F=y.length,I=void 0;t<F&&(I=y[t]);t++)$Wt(I,W,V,w)}};
neL=function(y,W){var V=y.indexOf("var(");if(V===-1)return W(y,"","","");a:{var w=0;var t=V+3;for(var F=y.length;t<F;t++)if(y[t]==="(")w++;else if(y[t]===")"&&--w===0)break a;t=-1}w=y.substring(V+4,t);V=y.substring(0,V);y=neL(y.substring(t+1),W);F=w.indexOf(",");if(F===-1)return W(V,w.trim(),"",y);t=w.substring(0,F).trim();w=w.substring(F+1).trim();return W(V,t,w,y)};
HFy=function(y){if(Pf!==void 0)return Pf;if(y.__cssBuild===void 0){var W=y.getAttribute("css-build");if(W)y.__cssBuild=W;else{a:{W=y.localName==="template"?y.content.firstChild:y.firstChild;if(W instanceof Comment&&(W=W.textContent.trim().split(":"),W[0]==="css-build")){W=W[1];break a}W=""}if(W!==""){var V=y.localName==="template"?y.content.firstChild:y.firstChild;V.parentNode.removeChild(V)}y.__cssBuild=W}}return y.__cssBuild||""};
aTP=function(y,W,V,w){for(var t=W._noAccessors,F=Object.getOwnPropertyNames(W),I=0;I<F.length;I++){var P=F[I];if(!(P in w))if(t)y[P]=W[P];else{var C=Object.getOwnPropertyDescriptor(W,P);C&&(C.configurable=!0,Object.defineProperty(y,P,C))}}for(var d in XXv)W[d]&&(V[d]=V[d]||[],V[d].push(W[d]))};
GWG=function(y,W,V){W=W||[];for(var w=y.length-1;w>=0;w--){var t=y[w];t?Array.isArray(t)?GWG(t,W):W.indexOf(t)<0&&(!V||V.indexOf(t)<0)&&W.unshift(t):console.warn("behavior is null, check for missing or 404 import")}return W};
rdu=function(y,W){for(var V in W){var w=y[V],t=W[V];y[V]=!("value"in t)&&w&&"value"in w?Object.assign({value:w.value},t):t}};
ZFd=function(y,W,V){var w={},t=function(){return W.apply(this,arguments)||this};
_.p(t,W);t._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(I)for(var C=0,d;C<I.length;C++)d=I[C],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);y.properties&&this.createProperties(y.properties);y.observers&&this.createObservers(y.observers,y.properties);this._prepareTemplate()}else W._finalizeClass.call(this)};
t.prototype.created=function(){W.prototype.created.call(this);var C=w.created;if(C)for(var d=0;d<C.length;d++)C[d].call(this)};
t.prototype._registered=function(){var C=t.prototype;if(!C.hasOwnProperty("__hasRegisterFinished")){C.__hasRegisterFinished=!0;W.prototype._registered.call(this);b4&&P(C);C=Object.getPrototypeOf(this);var d=w.beforeRegister;if(d)for(var L=0;L<d.length;L++)d[L].call(C);if(d=w.registered)for(L=0;L<d.length;L++)d[L].call(C)}};
t.prototype._applyListeners=function(){W.prototype._applyListeners.call(this);var C=w.listeners;if(C)for(var d=0;d<C.length;d++){var L=C[d];if(L)for(var z in L)this._addMethodEventListenerToNode(this,z,L[z])}};
t.prototype._ensureAttributes=function(){var C=w.hostAttributes;if(C)for(var d=C.length-1;d>=0;d--){var L=C[d],z;for(z in L)this._ensureAttribute(z,L[z])}W.prototype._ensureAttributes.call(this)};
t.prototype.ready=function(){W.prototype.ready.call(this);var C=w.ready;if(C)for(var d=0;d<C.length;d++)C[d].call(this)};
t.prototype.attached=function(){W.prototype.attached.call(this);var C=w.attached;if(C)for(var d=0;d<C.length;d++)C[d].call(this)};
t.prototype.detached=function(){W.prototype.detached.call(this);var C=w.detached;if(C)for(var d=0;d<C.length;d++)C[d].call(this)};
t.prototype.attributeChanged=function(C,d,L){W.prototype.attributeChanged.call(this);var z=w.attributeChanged;if(z)for(var c=0;c<z.length;c++)z[c].call(this,C,d,L)};
_.CM.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){var C={};if(I)for(var d=0;d<I.length;d++)rdu(C,I[d].properties);rdu(C,y.properties);return C}},
observers:{configurable:!0,enumerable:!0,get:function(){var C=[];if(I)for(var d=0,L;d<I.length;d++)L=I[d],L.observers&&(C=C.concat(L.observers));y.observers&&(C=C.concat(y.observers));return C}}});
if(V){Array.isArray(V)||(V=[V]);var F=W.prototype.behaviors;var I=GWG(V,null,F);t.prototype.behaviors=F?F.concat(V):I}var P=function(C){if(I)for(var d=I,L=0;L<d.length;L++)aTP(C,d[L],w,bFj);aTP(C,y,w,QXL)};
b4||P(t.prototype);t.generatedFrom=y;return t};
w8R=function(y){var W=typeof y!=="string"?y:{is:y,notifyObserversOnUndefined:!0};W.fastInit===void 0&&(W.fastInit=!0);return function(V){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(V.prototype).constructor!==_.O0)throw Error("Xd");var w=V.prototype;w.is=W.is;I6y(w,"created",function(){this.hostElement=this;this.polymerController=this});
y$j(w,V,W.fastInit);W.notifyObserversOnUndefined&&(w._overrideLegacyUndefined=!0);if(Wqn)for(var t=_.N(Object.getOwnPropertyNames(w)),F=t.next();!F.done;F=t.next()){F=F.value;var I=Object.getOwnPropertyDescriptor(w,F);I.enumerable===!1&&(I.enumerable=!0,Object.defineProperty(w,F,I))}if("template"in V)var P=function(){return V.template};
else W.template!==void 0&&(P=W.template);if(P!==void 0){var C;Object.defineProperty(w,"_template",{get:function(){C===void 0&&(C=P());return C},
set:function(d){C=d},
configurable:!0,enumerable:!0})}Polymer(w);V[Vdd]=w}};
tdj=function(y){y=y===void 0?{}:y;y.fastInit===void 0&&(y.fastInit=!0);return function(W){if(!y.disableInheritanceCheck&&Object.getPrototypeOf(W.prototype).constructor!==vf)throw Error("Yd");y$j(W.prototype,W,y.fastInit)}};
y$j=function(y,W,V){V=V===void 0?!1:V;Fqb(W);V?I6y(y,"created",function(){this.disableEnforceFastDefaultValuesCheck||EWy(W,this)}):I6y(y,"ready",function(){for(var w={},t=_.N(g9v(this.behaviors)),F=t.next();!F.done;F=t.next())F=F.value,F.properties&&Object.assign(w,N4v(this,F.properties));
Object.assign(w,N4v(this,this.properties));EWy(W,this);t=_.N(Object.keys(w));for(F=t.next();!F.done;F=t.next())F=F.value,this[F]=w[F]})};
EWy=function(y,W){if(Wqn){y=new y;for(var V=_.N(Object.getOwnPropertyNames(y)),w=V.next();!w.done;w=V.next())w=w.value,W[w]=y[w];for(V=W;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){w=_.N(Object.getOwnPropertyNames(V));for(var t=w.next();!t.done;t=w.next())t=t.value,y.hasOwnProperty(t)||Object.defineProperty(y,t,IxP(W,t))}}else y.apply(W)};
IxP=function(y,W){return{get:function(){var V=y[W];return V instanceof Function?V.bind(y):V},
set:function(V){y[W]=V}}};
N4v=function(y,W){if(!W)return{};for(var V={},w=_.N(Object.keys(W)),t=w.next();!t.done;t=w.next())if(t=t.value,!W[t].readOnly){var F=y[t];F!==void 0&&(V[t]=F)}return V};
Fqb=function(y){var W=new y;y=y.prototype.properties||{};for(var V=_.N(Object.keys(y)),w=V.next();!w.done;w=V.next())if(w=w.value,W.hasOwnProperty(w)){var t=y[w];typeof t==="function"&&(y[w]=t={type:t});W[w]!=null&&t.type===Object&&(t.type=gWd(W[w].constructor))}};
gWd=function(y){for(var W=_.N(PQu),V=W.next();!V.done;V=W.next())if(V=V.value,y===V)return V;return Object};
CQR=function(y){return function(W,V){W.behaviors=W.behaviors||[];W.behaviors.push(y||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",W,V).prototype:void 0));Object.defineProperty(W,V,{get:function(){return this},
enumerable:!0,configurable:!0})}};
Olb=function(y){y=y===void 0?{}:y;return function(W,V){W.properties=W.properties||{};y.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?y.type=gWd(Reflect.getMetadata("design:type",W,V)):y.type=String);var w=y,t=W.properties[V];W.properties[V]=t?Object.assign({},t,w):w}};
vWt=function(y){return function(W,V){W.listeners=W.listeners||{};W.listeners[y]=V}};
d_b=function(){var y=_.Ve.apply(0,arguments);if(y.length===0)throw Error("Zd");return function(W,V){W.observers=W.observers||[];W.observers.push(V+"("+y.join(",")+")")}};
LqR=function(){var y=_.Ve.apply(0,arguments);return function(W,V,w){var t=Object.getOwnPropertyDescriptor(W,V).get,F="__compute__"+V;Object.defineProperty(W,F,{value:t,enumerable:!0});W.properties=W.properties||{};t=W.properties[V];t||(t={},W.properties[V]=t);t.computed=F+"("+y.join(",")+")";w.get=void 0}};
_.dy=function(y,W,V){_.Ru.call(this);this.JSC$11188_id_=null;this.usingListeners_=!1;this.JSC$11188_listener_=y;this.handler_=V;this.JSC$11188_win_=W||window;this.callback_=(0,_.jA)(this.JSC$11190_doAction_,this)};
LM=function(y){this.range_=y};
zy=function(y){this.range_=y};
h8=function(y,W,V){_.Ru.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=y;this.scrollTimer_=new _.cf(50);this.JSC$11267_eventHandler_=new _.eK(this);this.scrollDelta_=new _.bj;this.containerIsActuallyContent_=y.tagName==="BODY"||y.tagName==="HTML";this.containerBounds_=z3d(y);this.containerIsActuallyContent_&&(y=_.B3(),this.containerBounds_.height=y.height,this.containerBounds_.width=y.width);this.margin_=W||0;if(W){if(W=this.containerBounds_.clone(),y=this.margin_){var w=
Math.min(y,W.height*.25);W.top+=w;W.height-=2*w;y=Math.min(y,W.width*.25);W.left+=y;W.width-=2*y}}else W=this.containerBounds_;this.scrollBounds_=W;V||this.JSC$11267_eventHandler_.listen(_.ZS(this.containerNode_),"mousemove",this.JSC$11269_onMouseMove);this.JSC$11267_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11269_onTick_)};
_.o2=function(y){this.mechanism=y};
KM=function(y,W){this.JSC$11365_key_=y;this.JSC$11365_value_=W};
h3j=function(y){if(y>=55296&&y<=57343||y>1114111)return"\ufffd";y in c$d&&(y=c$d[y]);var W="";y>65535&&(y-=65536,W+=String.fromCharCode(y>>>10&1023|55296),y=56320|y&1023);return W+=String.fromCharCode(y)};
oWP=function(y,W){return y<W?1:-1};
p8z=function(){return function(y){return y.charAt(1)==="#"?y.charAt(2)==="X"||y.charAt(2)==="x"?h3j(parseInt(y.substr(3),16)):h3j(parseInt(y.substr(2),10)):Kqu[y.slice(1,-1)]}};
T4P=function(y){return y.slice(1,y.length-1).trim().replace(ilv,function(W){return fxv[W]||" "})};
pM=function(y){return y===32||y===9};
iu=function(y,W){return W<y.length?y.charCodeAt(W):-1};
m_v=function(y){for(;y;){if(y._lastLineBlank)return!0;var W=y.type;if(W==="list"||W==="item")y=y._lastChild;else break}return!1};
fM=function(y){if(Mdj.test(y)){var W=1,V=0,w=0;for(y[V]=="|"&&V++;V<y.length;){switch(y[V]){case "|":w=1;break;case " ":break;case "\t":break;default:w&&(w=0,W++)}V++}return qvR.test(y)?-W:W}return 0};
U_n=function(y){return y=="table"||y=="row"||y=="cell"};
uhv=function(){return new Ty("document",[[1,1],[0,0]])};
Svy=function(){};
mN=function(){var y={safe:!1};y=y||{};y.softbreak=y.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=y};
s1u=function(y,W){var V="";if(y)if(y=y.toLowerCase(),y===" "||D_z.test(y))V="space";else if(lxj.test(y))V="esc";else if(y.length==1){if(!W||x_R.test(y))V=y}else V=k7u.test(y)?y.replace("arrow",""):y=="multiply"?"*":y;return V};
J$4=function(y,W){var V=y.hasModifiers;if(W.key)V=s1u(W.key,V);else if(W.detail&&W.detail.key)V=s1u(W.detail.key,V);else{V=W.keyIdentifier;var w="";V&&(V in A$a?w=A$a[V]:Yvd.test(V)?(V=parseInt(V.replace("U+","0x"),16),w=String.fromCharCode(V).toLowerCase()):w=V.toLowerCase());(V=w)||(V=W.keyCode,w="",Number(V)&&(V>=65&&V<=90?w=String.fromCharCode(32+V):V>=112&&V<=123?w="f"+(V-112+1):V>=48&&V<=57?w=String(V-48):V>=96&&V<=105?w=String(V-96):w=B44[V]),V=w);V=V||""}return V===y.key&&(!y.hasModifiers||
!!W.shiftKey===!!y.shiftKey&&!!W.ctrlKey===!!y.ctrlKey&&!!W.altKey===!!y.altKey&&!!W.metaKey===!!y.metaKey)};
j1v=function(y){return y.length===1?{combo:y,key:y,event:"keydown"}:y.split("+").reduce(function(W,V){var w=V.split(":");V=w[0];w=w[1];V in R3G?(W[R3G[V]]=!0,W.hasModifiers=!0):(W.key=V,W.event=w||"keydown");return W},{combo:y.split(":").shift()})};
$_b=function(y){return y.trim().split(" ").map(function(W){return j1v(W)})};
nWP=function(y,W){if(y&&y.fn){var V=y.fn;y.fn=function(){try{V.apply(this,arguments)}catch(w){if(w instanceof MB)console.warn("Argument '"+w.arg+"'"+(W?" for method '"+W+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw w;}}}return y};
HlR=function(){var y=_.Ve.apply(0,arguments);return y.length===0?function(W){return W}:y.length===1?y[0]:y.reduce(function(W,V){return function(){return W(V.apply(null,_.GC(_.Ve.apply(0,arguments))))}})};
X8P=function(){var y=_.Ve.apply(0,arguments);return function(W){return function(V,w){V=W(V,w);var t=function(){throw Error("Je");},F={getState:V.getState,
dispatch:function(I){return t.apply(null,[I].concat(_.GC(_.Ve.apply(1,arguments))))}};
w=y.map(function(I){return I(F)});
t=HlR.apply(null,_.GC(w))(V.dispatch);return Object.assign({},V,{dispatch:t})}}};
r$n=function(y){Object.keys(y).forEach(function(W){var V=y[W];if(typeof V(void 0,{type:axj})==="undefined")throw Error("Ke`"+W);if(typeof V(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+G74()})==="undefined")throw Error("Le`"+W+"`"+axj);})};
qB=function(y){for(var W=Object.keys(y),V={},w=0;w<W.length;w++){var t=W[w];typeof y[t]==="function"&&(V[t]=y[t])}var F=Object.keys(V);try{r$n(V)}catch(P){var I=P}return function(P,C){P=P===void 0?{}:P;if(I)throw I;for(var d=!1,L={},z=0;z<F.length;z++){var c=F[z],K=P[c],f=(0,V[c])(K,C);if(typeof f==="undefined")throw P=C&&C.type,Error("Me`"+(P?'"'+String(P)+'"':"(unknown type)")+"`"+c);L[c]=f;d=d||f!==K}return(d=d||F.length!==Object.keys(P).length)?L:P}};
bly=function(y,W,V){function w(){if(L)throw Error("Ne");return P}
function t(K){if(typeof K!=="function")throw Error("Oe`"+typeof K);if(L)throw Error("Pe");var f=!0;d===C&&(d=C.slice());d.push(K);return function(){if(f){if(L)throw Error("Qe");f=!1;d===C&&(d=C.slice());var U=d.indexOf(K);d.splice(U,1);C=null}}}
function F(K){if(typeof K!=="object"||K===null)var f=!1;else{for(f=K;Object.getPrototypeOf(f)!==null;)f=Object.getPrototypeOf(f);f=Object.getPrototypeOf(K)===f}if(!f)throw Error("Re`"+typeof K);if(typeof K.type==="undefined")throw Error("Se");if(L)throw Error("Te");try{L=!0,P=I(P,K)}finally{L=!1}f=C=d;for(var U=0;U<f.length;U++)(0,f[U])();return K}
if(typeof W==="function"&&typeof V==="function"||typeof V==="function"&&typeof arguments[3]==="function")throw Error("Ue");typeof W==="function"&&typeof V==="undefined"&&(V=W,W=void 0);if(typeof V!=="undefined"){if(typeof V!=="function")throw Error("Ve`"+typeof V);return V(bly)(y,W)}if(typeof y!=="function")throw Error("We`"+typeof y);var I=y,P=W,C=[],d=C,L=!1;F({type:axj});var z={},c=(z.dispatch=F,z.subscribe=t,z.getState=w,z.replaceReducer=function(K){if(typeof K!=="function")throw Error("Xe`"+
typeof K);I=K;F({type:Q1z});return c},z[Zlv]=function(){var K={};
return K.subscribe=function(f){function U(){f.next&&f.next(w())}
if(typeof f!=="object"||f===null)throw new TypeError("Ye`"+typeof f);U();return{unsubscribe:t(U)}},K[Zlv]=function(){return this},K},z);
return c};
yPj=function(y){function W(){t&&(t=!1,y());F&&w()}
function V(){requestAnimationFrame(W)}
function w(){var P=Date.now();if(t){if(P-I<2)return;F=!0}else t=!0,F=!1,setTimeout(V,20);I=P}
var t=!1,F=!1,I=0;return w};
U0=function(y){return typeof y==="number"?y:parseFloat(y)||0};
W$j=function(y){return _.Ve.apply(1,arguments).reduce(function(W,V){return W+U0(y["border-"+V+"-width"])},0)};
_.T=function(y,W){W=Ih(Nl(W));y.innerHTML=W};
tId=function(y){var W=VIj;W||(W=wgb(),W=VIj=_.Gc.transpose(W));W=W[y];return typeof W==="string"?W:_.uu(y)};
F$n=function(y){y=String(y).toLowerCase();var W=wgb()[y];return typeof W==="string"?W:_.SK(y)};
Esy=function(y){y=y.toLowerCase();y=wgb()[y];return typeof y==="string"?y:null};
wgb=function(){if(!NDL){for(var y=Object.assign({},ICv),W=_.N(gsL),V=W.next();!V.done;V=W.next())V=V.value,y[V.toLowerCase()]=V;NDL=y}return NDL};
Owu=function(y,W){var V=window.customElements;return V&&V.get(y)||PWt[y]===!0?2:W.name==="HTMLUnknownElement"?1:W.name==="HTMLElement"&&CWv.test(y)?3:0};
L$P=function(y,W){switch(W){case "innerHTML":return vsj(y)===1?2:null;case "textContent":return y=vsj(y),y===1||y===6?1:null;default:var V,w;return(w=(V=dIn[y.localName])==null?void 0:V[W])!=null?w:null}};
vsj=function(y){var W=y.localName,V=Owu(W,y.constructor);switch(V){case 0:case 1:return zSP(W,y);case 3:case 2:return 1;default:_.gW(V,"got an unknown element classification")}};
zSP=function(y,W){var V=Object.hasOwnProperty.call(cPG,y)?cPG[y]:null;return V!==null?V:Object.hasOwnProperty.call(eSj,y)&&W instanceof SVGElement?eSj[y]:null};
hSt=function(y,W){return W};
K$j=function(y){return(y=y.split(osv,2))?{url:y[0],metadata:y[1]}:null};
iwL=function(y){var W=String(y.url).replace(pgR,encodeURIComponent);if(y=y.metadata){pgR.lastIndex=0;if(pgR.test(y))return null;W+=" "+y}return W};
MIn=function(y){function W(d){var L=d.localName;if(!d.getAttribute("is")&&Owu(L,d.constructor)===2){var z;return(z=C)!=null?z:C=document.createElement("polyresinuncustomized")}(d=P[L])||(d=P[L]=document.createElement(L));return d}
var V=y.reportHandler||void 0,w=y.safeTypesBridge||fCz,t=/^$/;if(y=y.allowedIdentifierPrefixes){y=_.N(y);for(var F=y.next();!F.done;F=y.next())t=new RegExp(t.source+"|^"+_.TDt(F.value))}V&&V(!1,"initResin",null);var I=mIG(t,w,V),P={},C=null;return function(d,L,z){var c=d.nodeType;if(c!==Node.ELEMENT_NODE){if(c===Node.TEXT_NODE){L=d.parentElement;z=!L;if(L&&L.nodeType===Node.ELEMENT_NODE){c=L.localName;var K=Owu(c,L.constructor);switch(K){case 0:case 1:L=zSP(c,L);z=L===1||L===6;break;case 3:case 2:z=
!0;break;default:_.gW(K,"got an unknown element classification")}}if(z)return function(x){return""+w(x,"STRING",x)}}return function(x){if(!x&&x!==document.all)return x;
V&&V(!0,"Failed to sanitize "+(d.parentElement&&d.parentElement.nodeName)+" #text node to value "+x,d.parentElement);return DA}}var f=d.localName;
c=W(d);var U=null;switch(z){case "attribute":if(F$n(L)in c)break;return function(x){return x};
case "property":if(L in c){U=L$P(c,L);break}if((K=Esy(L))&&K in c)break;return function(x){return x};
default:_.gW(z,"got an unknown resin type, expected either 'property' or 'attribute'")}var l=z==="attribute"?L.toLowerCase():tId(L);U||(U=Hiz(f,l,function(x){var B=d.getAttribute(x);return!B||/[\[\{]/.test(x)?null:B}));
return function(x){var B=lu,r=null;if(!x&&x!==document.all)return x;if(U!=null){var H=I[U],a=H.safeType;r=H.safeReplacement;a&&(B=w(x,a,lu));B===lu&&(H.filterString?(B=String(w(x,"STRING",x)),B=H.filterString(f,l,B)):H.filterRaw&&(B=H.filterRaw(f,l,x,d)),B===r&&(B=lu))}B===lu&&(B=r||DA,V&&V(!0,"Failed to sanitize attribute of <"+f+">: <"+f+" "+l+'="'+x+'">',d));return B}}};
mIG=function(y,W,V){return[,{filterRaw:function(w,t,F){return F},
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:qHt,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:qHt,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:DA,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:UIy,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(w,t,F){F=
String(F).toLowerCase();return GDG(w,t,F)?F:DA},
safeReplacement:DA,safeType:void 0},,{filterRaw:void 0,filterString:function(w,t,F){return y.test(F)?F:DA},
safeReplacement:DA,safeType:"CONSTANT"},{filterRaw:function(w,t,F,I){if(typeof F==="string")var P=(P=F.match(ulR))?P.map(K$j).filter(Boolean):[];else if(Array.isArray(F))P=F;else return qHt;var C=P;P=[];var d=[],L={};if(Array.isArray(C))for(var z=0,c=C.length;z<c;++z){var K=C[z],f=K&&K.url;if(f){var U=W(f,"URL",L);if(U){var l=U!==L;(l?P:d).push({url:l?U:f,metadata:K.metadata})}}}else d.push(C);C=d.length?JSON.stringify(d):null;d=lu;if(P.length){if(!Array.isArray(P))throw Error();d=P.map(iwL).filter(Boolean).join(" , ")||
lu}C&&V&&V(!0,"Failed to sanitize attribute value of <"+w+">: <"+w+" "+t+'="'+F+'">: '+C,I);return d===lu?qHt:d},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
SHa=function(y){var W=MIn(y);return function(V,w,t,F){return F||F===document.all?W(V,w,t)(F):F}};
xy=function(y,W){function V(){function t(P,C,d){for(C=Reflect.getMetadata("parameters",P)||[];C.length<=d;)C.push(null);C[d]=C[d]||[];C[d].push(I);Reflect.defineMetadata(C,P);return P}
var F=_.Ve.apply(0,arguments);if(this instanceof V)return w.apply(this,F),this;var I=new (Function.prototype.bind.apply(V,[null].concat(_.GC(F))));t.annotation=I;return t}
var w=DIt(W);V.prototype.toString=function(){return"@"+y};
return V.annotationCls=V};
DIt=function(y){return function(){var W=_.Ve.apply(0,arguments),V=this;y.forEach(function(w,t){t=W[t];if(Array.isArray(w))V[w[0]]=t&&t!==void 0?t:w[1];else for(var F in w)V[F]=t&&t[F]!==void 0?t[F]:w[F]})}};
lC4=function(y){return y!==void 0&&y!==null};
ky=function(y){if(typeof y==="string")return y;if(y===void 0||y===null)return""+y;if(y.overriddenName)return y.overriddenName;if(y.name)return y.name;y=y.toString();var W=y.indexOf("\n");return W===-1?y:y.substring(0,W)};
xIy=function(y){y.__forward_ref__=xIy;y.toString=function(){return ky(this())};
return y};
s0=function(y){return typeof y==="function"&&y.hasOwnProperty("__forward_ref__")&&y.__forward_ref__===xIy?y():y};
k0j=function(y){return y?y.map(function(W){return new (Function.prototype.bind.apply(W.type.annotationCls,[null].concat(_.GC(W.args?W.args:[]))))}):[]};
syu=function(y){for(var W=[],V=0;V<y.length;++V){if(W.indexOf(y[V])>-1){W.push(y[V]);break}W.push(y[V])}return W};
APP=function(y){return y.length>1?" ("+syu(y.slice().reverse()).map(function(W){return ky(W.token)}).join(" -> ")+")":""};
BDj=function(y,W,V,w){if(w){var t=Error("ef``"+(w instanceof Error?w.message:w));t.ngOriginalError=w}else t=Error();t.addKey=YHa;t.keys=[W];t.injectors=[y];t.constructResolvingMessage=V;t.message=t.constructResolvingMessage();t.ngOriginalError=w;return t};
YHa=function(y,W){this.injectors.push(y);this.keys.push(W);this.message=this.constructResolvingMessage()};
JPb=function(y,W){return BDj(y,W,function(){return"No provider for "+ky(this.keys[0].token)+"!"+APP(this.keys)})};
RSR=function(y,W){return BDj(y,W,function(){return"Cannot instantiate cyclic dependency!"+APP(this.keys)})};
jyG=function(y,W,V){return BDj(y,V,function(){var w=ky(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+w+"!"+APP(this.keys)+"."},W)};
$Ib=function(y,W){for(var V=[],w=0,t=W.length;w<t;w++){var F=W[w];F&&F.length!=0?V.push(F.map(ky).join(" ")):V.push("?")}return Error("jf`"+ky(y)+"`"+V.join(", ")+"`"+ky(y))};
bwR=function(y){var W=void 0,V=void 0;if(y&&y.useClass!==void 0){W=y.useClass;var w=s0(y.useClass);var t=nsG.factory(w);w=HwG(w)}else y&&y.useExisting!==void 0?(t=function(F){return F},w=[Xgv(A8.get(s0(y.useExisting)))]):y&&y.useFactory!==void 0?(t=y.useFactory,w=aCj(y.useFactory,y.deps)):(V=y.useValue,t=function(){return y.useValue},w=G0j);
return new rPv(t,w,W,V)};
ZwG=function(y){return new Qy4(A8.get(s0(y.provide)),[bwR(y)],y.multi)};
Wxv=function(y){y=y0v(y,[]).map(ZwG);for(var W=new Map,V=0;V<y.length;V++){var w=y[V],t=W.get(w.key.id);if(t){if(w.multiProvider!==t.multiProvider)throw Error("lf`"+t+"`"+w);if(w.multiProvider)for(var F=0;F<w.resolvedFactories.length;F++)t.resolvedFactories.push(w.resolvedFactories[F]);else W.set(w.key.id,w)}else t=void 0,w.multiProvider?t=new Qy4(w.key,w.resolvedFactories.slice(),w.multiProvider):t=w,W.set(w.key.id,t)}return Array.from(W.values())};
y0v=function(y,W){y.forEach(function(V){if(V instanceof Vbv)W.push({provide:V,useClass:V});else if(V&&typeof V=="object"&&V.provide!==void 0)W.push(V);else if(V instanceof Array)y0v(V,W);else throw Error("hf`"+V);});
return W};
aCj=function(y,W){if(W){var V=W.map(function(w){return[w]});
return W.map(function(w){return wYy(y,w,V)})}return HwG(y)};
HwG=function(y){var W=nsG.parameters(y);if(!W)return[];if(W.some(function(V){return V==null}))throw $Ib(y,W);
return W.map(function(V){return wYy(y,V,W)})};
wYy=function(y,W,V){var w=null,t=!1;if(!Array.isArray(W))return W instanceof tby?Fxt(W.token,t,null):Fxt(W,t,null);for(var F=null,I=0;I<W.length;++I){var P=W[I];if(P instanceof Vbv)w=P;else if(P instanceof tby)w=P.token;else if(P instanceof EGR)t=!0;else if(P instanceof NF4||P instanceof Iez)F=P}w=s0(w);if(w!=null)return Fxt(w,t,F);throw $Ib(y,V);};
Fxt=function(y,W,V){return new gGu(A8.get(s0(y)),W,V)};
PKP=function(y,W){for(var V=Array(y.providers.length),w=0;w<y.providers.length;++w){var t=w;if(w<0||w>=y.providers.length)throw Error("kf`"+w);V[t]=W(y.providers[w])}return V};
CK4=function(y){return typeof y==="function"&&nsG.parameters(y).every(function(W){return!!W})};
dYb=function(y){var W=OHz;vG4.get(y)||vG4.set(y,new W);return vG4.get(y)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(y)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(y)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y,W){var V,w;if(y.contains(W))return!0;y=_.Yy(y).querySelectorAll("content,slot");for(V=0;V<y.length;++V){var t=_.Yy(y[V]).getDistributedNodes();for(w=0;w<t.length;++w)if(t[w].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t[w],W))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){y.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(y)&&y.preventDefault();y.targetTouches&&(y=y.targetTouches[0],Lxa=y.pageX,z0a=y.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 y=0,W=Bf.length;y<W;y++)document.addEventListener(Bf[y],_._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 y=0,W=Bf.length;y<W;y++)document.removeEventListener(Bf[y],_._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(y){var W=_.Yy(y).rootTarget;y.type!=="touchmove"&&c0G!==W&&(c0G=W,e0R=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Yy(y).path));if(!e0R.length)return!0;if(y.type==="touchstart")return!1;y=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(y);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e0R,y.deltaX,y.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){for(var W=[],V=y.indexOf(h0y),w=0;w<=V;w++)if(y[w].nodeType===Node.ELEMENT_NODE){var t=y[w],F=t.style;F.overflow!=="scroll"&&F.overflow!=="auto"&&(F=window.getComputedStyle(t));F.overflow!=="scroll"&&F.overflow!=="auto"||W.push(t)}return W};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y,W,V){if(W||V)for(var w=Math.abs(V)>=Math.abs(W),t=0;t<y.length;t++){var F=y[t];if(w?V<0?F.scrollTop>0:F.scrollTop<F.scrollHeight-F.clientHeight:W<0?F.scrollLeft>0:F.scrollLeft<F.scrollWidth-F.clientWidth)return F}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){var W={deltaX:y.deltaX,deltaY:y.deltaY};"deltaX"in y||("wheelDeltaX"in y&&"wheelDeltaY"in y?(W.deltaX=-y.wheelDeltaX,W.deltaY=-y.wheelDeltaY):"wheelDelta"in y?(W.deltaX=0,W.deltaY=-y.wheelDelta):"axis"in y?(W.deltaX=y.axis===1?y.detail:0,W.deltaY=y.axis===2?y.detail:0):y.targetTouches&&(y=y.targetTouches[0],W.deltaX=Lxa-y.pageX,W.deltaY=z0a-y.pageY));return W};
oGz=function(y){this.element=y;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
pYy=function(y){this.element=y;this.color=window.getComputedStyle(y).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");_.Yy(this.waveContainer).appendChild(this.wave);Kx4(this)};
J8=function(y,W){for(var V in y)if(V.toLowerCase()===W.toLowerCase())return y[V]};
iHv=function(y,W){for(var V in y)if(V.toLowerCase()===W.toLowerCase()){delete y[V];break}};
TFu=function(y){y=_.Gc.clone(y);for(var W=0;W<feG.length;++W){var V=feG[W],w=J8(y,V);w&&(y["X-Goog-Upload-Header-"+V]=w,iHv(y,V))}return y};
mYz=function(y){y=_.Gc.clone(y);iHv(y,"X-Goog-Upload-Status")};
qQj=function(y){return Mb4.some(function(W){return W.test(y)})};
DYu=function(y,W){var V;var w=(V=y.formContent)==null?void 0:V.locale;V=w==null?void 0:w.split("-")[0];w=w&&UYv.includes(w)?w:V&&UYv.includes(V)?V:void 0;w=(w!=null?w:"en").replaceAll("-","_").toLowerCase();var t;y=((t=y.initializationData)==null?0:t.useNightlyRelease)?"nightly":"live";var F;return(W==null?0:(F=W.getEnableAlohaBinarySplit)==null?0:F.call(W))?_.Tc(uJu,y):_.Tc(SQb,y,w)};
kFz=function(y,W,V,w){if(leL&&xYG===W)return leL;xYG=W;var t=DYu(y,w);return leL=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(F,I){var P=_.xu("SCRIPT");_.zC(P,t);P.onload=function(){W.feedbackV2GlobalObject?F(W.feedbackV2GlobalObject):I(Error("of"))};
P.onerror=function(){I(Error("pf`"+t.toString()))};
V.body.appendChild(P)})};
YQj=function(y,W,V,w){if(sPP&&A0j===W)return sPP;A0j=W;var t=DYu(y,w);return sPP=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(F,I){var P=_.xu("SCRIPT");_.zC(P,t);P.onload=function(){W.feedbackV2GlobalObject?F(W.feedbackV2GlobalObject):I(Error("of"))};
P.onerror=function(){I(Error("pf`"+t.toString()))};
V.body.appendChild(P)})};
BFd=function(y,W,V,w,t){t=t===void 0?!0:t;var F,I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:return F=Date.now(),L.yield(kFz(y,V,w,W),2);case 2:I=L.yieldResult;if(!(t||((C=y.initializationData)==null?0:C.useNightlyRelease)||((d=y.initializationData)==null?0:d.isLocalServer))){P=I.initializeFeedbackClient(y,F,W);L.jumpTo(3);break}return L.yield(I.initializeFeedbackClientAsync(y,F,W),4);case 4:P=L.yieldResult;case 3:return P.initiateAloha(),L.return(P)}})};
J0R=function(y,W,V,w){var t,F,I;return _.g(function(P){if(P.nextAddress==1)return t=Date.now(),P.yield(YQj(y,V,w.document,W),2);if(P.nextAddress!=3)return F=P.yieldResult,P.yield(F.initializeFeedbackClientAsync(y,t,W,w),3);I=P.yieldResult;I.initiateAloha();return P.return(I)})};
R0a=function(y,W,V){var w=!0;w=w===void 0?!0:w;var t,F,I,P,C,d,L,z,c,K;return _.g(function(f){t=V||_.Vj;if((F=W)==null?0:(P=(I=F).getEnableAlohaBinarySplit)==null?0:P.call(I)){C=t;if(C.isFormOpened)throw d=Error("qf"),d.name="DuplicateFormError",d;C.isFormOpened=!0;y.callbacks=y.callbacks||{};L=y.callbacks.onClose||function(){};
y.callbacks.onClose=function(U){C.isFormOpened=!1;L(U)};
try{return f.return(J0R(y,W,C,t))}catch(U){throw C.isFormOpened=!1,U;}}else{z=t;if(z.isFormOpened)throw c=Error("qf"),c.name="DuplicateFormError",c;z.isFormOpened=!0;y.callbacks=y.callbacks||{};K=y.callbacks.onClose||function(){};
y.callbacks.onClose=function(U){z.isFormOpened=!1;K(U)};
try{return f.return(BFd(y,W,z,t.document,w))}catch(U){throw z.isFormOpened=!1,U;}}_.B7(f)})};
XYv=function(y,W){return _.g(function(V){return V.return(new Promise(function(w){var t=jPR(W!=null?W:"")+"/aloha_form_properties?productId="+y;$Yj(t,function(F){F=F.target;var I=null;try{var P=JSON,C=P.stringify;if(F.JSC$9721_xhr_){var d=F.JSC$9721_xhr_.responseText;d.indexOf(")]}'\n")==0&&(d=d.substring(5));var L=(0,_.R2)(d)}else L=void 0;I=iuG(nGL,C.call(P,L))}catch(z){C=new nGL,L=HHG(),L=_.jK(L,13,!1),L=_.jK(L,14,!0),L=_.jK(L,15,!0),L=_.jK(L,20,!1),I=_.sx(C,1,L)}w(I)},"GET","",{},2E3,!0)}))})};
jPR=function(y){return qQj(y)?y:"https://www.google.com/tools/feedback"};
bHv=function(y){y=y.match(new RegExp(aev,"gi"))||[];y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;a:{var V=_.N(GFR);for(var w=V.next();!w.done;w=V.next())if(w.value.test(W)){V=!1;break a}V=!0}if(!V)a:{V=_.N(r0P);for(w=V.next();!w.done;w=V.next())if(w.value.test(W)){V=!0;break a}V=!1}if(V)return!0}return!1};
QPL=function(y){switch(y){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"}};
yRt=function(y){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(y),V=new Uint8Array(y);window.crypto.getRandomValues(V);for(var w=0;w<W.length;w++)W[w]=V[w];return W}catch(F){}W=Array(y);for(V=0;V<y;V++){w=Date.now();for(var t=0;t<w%23;t++)W[V]=Math.random();W[V]=Math.floor(Math.random()*256)}if(ZHG)for(V=1,w=0;w<ZHG.length;w++)W[V%y]^=W[(V-1)%y]/4^ZHG.charCodeAt(w),V++;return W};
$y=function(y){y=yRt(y);for(var W=[],V=0;V<y.length;V++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(y[V]&63));return W.join("")};
V9v=function(y){y&&_.Hp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:WFL,clientScreenNonce:y})};
wsv=function(y){return _.yC("client-screen-nonce-store",{})[y===void 0?0:y]};
t9v=function(y,W){W=W===void 0?0:W;var V=_.yC("client-screen-nonce-store");V||(V={},_.Z7("client-screen-nonce-store",V));V[W]=y};
FFa=function(y){y=y===void 0?0:y;return y===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+y};
E$b=function(y){return _.yC(FFa(y===void 0?0:y))};
_.Hf=function(y){return(y=E$b(y===void 0?0:y))?new _.nM({veType:y,youtubeData:void 0,jspbYoutubeData:void 0}):null};
N6z=function(){var y=_.yC("csn-to-ctt-auth-info");y||(y={},_.Z7("csn-to-ctt-auth-info",y));return y};
Igt=function(){return Object.values(_.yC("client-screen-nonce-store",{})).filter(function(y){return y!==void 0})};
_.Xn=function(y){y=wsv(y===void 0?0:y);if(!y&&!_.W4("USE_CSN_FALLBACK",!0))return null;y||(y="UNDEFINED_CSN");return y?y:null};
PyR=function(y){for(var W=_.N(Object.values(g$L)),V=W.next();!V.done;V=W.next())if(_.Xn(V.value)===y)return!0;return!1};
Cyy=function(y,W,V){var w=N6z();(V=_.Xn(V))&&delete w[V];W&&(w[y]=W)};
a2=function(y){return N6z()[y]};
_.Gy=function(y,W,V,w){V=V===void 0?0:V;if(y!==wsv(V)||W!==_.yC(FFa(V)))if(Cyy(y,w,V),t9v(y,V),_.Z7(FFa(V),W),W=function(){setTimeout(function(){V9v(y)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(t){W()}else W()};
OoR=function(y,W){W=W===void 0?"":W;var V=[],w;for(w in y)if(y.hasOwnProperty(w)){var t=W!==""?W+"."+w:w;typeof y[w]==="object"?V.push.apply(V,_.GC(OoR(y[w],t))):V.push([t,y[w]])}V.sort();return V};
_.bu=function(y){var W=_.Ve.apply(1,arguments);if(!ry(y)||W.some(function(w){return!ry(w)}))throw Error("rf");
W=_.N(W);for(var V=W.next();!V.done;V=W.next())v$v(y,V.value)};
v$v=function(y,W){for(var V in W)if(ry(W[V])){if(V in y&&!ry(y[V]))throw Error("sf");V in y||(y[V]={});v$v(y[V],W[V])}else if(dcd(W[V])){if(V in y&&!dcd(y[V]))throw Error("tf");V in y||(y[V]=[]);LFa(y[V],W[V])}else y[V]=W[V];return y};
LFa=function(y,W){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,ry(V)?y.push(v$v({},V)):dcd(V)?y.push(LFa([],V)):y.push(V);return y};
ry=function(y){return typeof y==="object"&&!Array.isArray(y)};
dcd=function(y){return typeof y==="object"&&Array.isArray(y)};
cRG=function(y){for(var W=_.N(Object.entries(zEG)),V=W.next();!V.done;V=W.next())if(V=_.N(V.value),V.next(),V=V.next().value,V==="SLI_STATUS_"+y)return V;return"SLI_STATUS_UNKNOWN"};
_.QV=function(y,W,V,w){return eEa(y,W,function(){return new _.hEL(y,W,V,w)})};
_.o$4=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
KFu=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
ZA=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
psu=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
iob=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
fgy=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
M9G=function(y){y&&(y.dataset?y.dataset[T6t()]="true":_.em([_.ij(mcu)],y,"data-loaded","true".toString()))};
qKz=function(y){return y?y.dataset?y.dataset[T6t()]:y.getAttribute("data-loaded"):null};
T6t=function(){return Ucv.loaded||(Ucv.loaded="loaded".replace(/\-([a-z])/g,function(y,W){return W.toUpperCase()}))};
_.ym=function(y,W,V){ubv(y,W,V===void 0?null:V)};
_.Dct=function(y,W){y&&W&&(y=""+_.tA(W),(y=SKR[y])&&_.xM4(y))};
ubv=function(y,W,V){V=V===void 0?null:V;var w=_.lgG(typeof y==="string"?y:y.toString()),t=document.getElementById(w),F=t&&qKz(t),I=t&&!F;F?W&&W():(W&&(F=_.pi(w,W),W=""+_.tA(W),SKR[W]=F),I||(t=xcG(y,w,function(){qKz(t)||(M9G(t),_.kbd(w),_.mj(function(){_.AYn(w)},0))},V)))};
xcG=function(y,W,V,w){w=w===void 0?null:w;var t=_.xu("SCRIPT");t.id=W;t.onload=function(){V&&setTimeout(V,0)};
t.onreadystatechange=function(){switch(t.readyState){case "loaded":case "complete":t.onload()}};
w&&t.setAttribute("nonce",w);_.zC(t,typeof y==="string"?_.na(y):y);y=document.getElementsByTagName("head")[0]||document.body;y.insertBefore(t,y.firstChild);return t};
_.lgG=function(y){var W=document.createElement("a");tX(W,y);return"js-"+WN(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
kfz=function(y){var W=_.yC("INNERTUBE_HOST_OVERRIDE");W&&(y=String(W)+String(_.Vm(y)));return y};
sgz=function(y){var W={};_.e("json_condensed_response")&&(W.prettyPrint="false");return y=FRa(y,W)};
_.t1=function(y){return zJ(y)?"same-origin":"include"};
_.F$=function(y){return zJ(y)?"same-origin":"cors"};
En=function(y,W,V){V=V===void 0?{}:V;y={method:W===void 0?"POST":W,mode:_.F$(y),credentials:_.t1(y)};W={};for(var w=_.N(Object.keys(V)),t=w.next();!t.done;t=w.next())t=t.value,V[t]&&(W[t]=V[t]);Object.keys(W).length>0&&(y.headers=W);return y};
_.N8=function(y,W){W=W===void 0?{}:W;return"service:"+y+"/"+Object.keys(W).sort().map(function(V){return V+":"+W[V]}).join("/")};
ARb=function(y){var W,V,w,t;y=(W=_.h(y,_.Iw))==null?void 0:(V=W.watchEndpointSupportedOnesieConfig)==null?void 0:(w=V.html5PlaybackOnesieConfig)==null?void 0:(t=w.commonConfig)==null?void 0:t.url;if(!y)return[];W=new _.gw(y);return W.JSC$9958_domain_?["https://"+W.JSC$9958_domain_+"/generate_204"]:[]};
_.JRt=function(){return YKj()||gCv()||B6v&&QC("version/")?!0:_.yC("EOM_VISITOR_DATA")?!1:!0};
REv=function(y){var W=y.docid||y.video_id||y.videoId||y.id;if(W)return W;W=y.raw_player_response;W||(y=y.player_response)&&(W=JSON.parse(y));return W&&W.videoDetails&&W.videoDetails.videoId||null};
jgv=function(y){return y.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
PN=function(y){return!isNaN(Number(y))&&!_.gu(y)};
_.On=function(y,W,V,w){w=w===void 0?!0:w;var t=_.yC("VALID_SESSION_TEMPDATA_DOMAINS",[]),F=_.di(window.location.href);F&&t.push(F);F=_.di(y);if(_.j4(t,F)||!F&&_.tv(y,"/"))if(t=document.createElement("a"),tX(t,y),y=t.href)if(y=_.Vm(y),y=_.Cg(y))w&&!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:_.Xn()},W)),V?(V=parseInt(V,10),isFinite(V)&&V>0&&$cn(y,W,V)):$cn(y,W)};
HoL=function(y){var W=_.yC("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.di(window.location.href);V&&W.push(V);V=_.di(y);if(!(_.j4(W,V)||!V&&_.tv(y,"/")))return null;y=_.Vm(y);(y=_.Cg(y))?(y=n$b(y),y=(y=_.k_.get(y,void 0)||null)?_.gi(y):{}):y=null;return y};
$cn=function(y,W,V){y=n$b(y);W=W?_.SX(W):"";V=V||5;_.JRt()&&_.s1(y,W,V)};
n$b=function(y){for(var W=_.N(Xsa),V=W.next();!V.done;V=W.next())y=_.vN(y,V.value);return"ST-"+WN(y).toString(36)};
agP=function(y,W){y.commandMetadata&&_.h(y.commandMetadata,_.dw)&&_.h(y.commandMetadata,_.dw).url&&(y=_.P4(_.h(y.commandMetadata,_.dw).url).adurl)&&_.Nwj(y)&&_.On(_.Vm(y),{encoded_ad_playback_context:W})};
_.Gf4=function(y){if(y.requestFullscreen)y=y.requestFullscreen(void 0);else if(y.webkitRequestFullscreen)y=y.webkitRequestFullscreen();else if(y.mozRequestFullScreen)y=y.mozRequestFullScreen();else if(y.msRequestFullscreen)y=y.msRequestFullscreen();else if(y.webkitEnterFullscreen)y=y.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return y instanceof Promise?y:Promise.resolve()};
_.z2=function(y){var W;_.pCG(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Lg()==y&&(W=document):W=y;if(W&&(y=_.pCG(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))){y.call(W)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Lg=function(){var y=y===void 0?!1:y;var W=_.pCG(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(y)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null};
_.cN=function(y,W){W=W===void 0?!0:W;y.addEventListener("wheel",rRv);y.overscrollConfig={cooldown:W}};
_.eM=function(y){y.overscrollConfig=void 0;y.removeEventListener("wheel",rRv)};
rRv=function(y){var W=y.deltaY,V=y.target,w=null;if(window.Polymer&&window.Polymer.Element){if(V=y.path||y.composedPath&&y.composedPath()){V=_.N(V);for(var t=V.next();!t.done&&(t=t.value,!bov(t,W));t=V.next())if(t.overscrollConfig){w=t;break}}}else for(;V&&!bov(V,W);){if(V.overscrollConfig){w=V;break}V=V.parentElement}w&&(W=w.overscrollConfig,W.cooldown?(w=y.deltaY,V=W.lastDeltaY||0,W.lastDeltaY=w,t=W.lastStopped||0,V&&t&&V>0==w>0?Math.abs(V)>=Math.abs(w)?(w=t+1200,V=!1):(w=t+600,V=!0):(w=Date.now()+
600,V=!0),w>Date.now()&&(y.preventDefault(),V&&(W.lastStopped=Date.now()))):y.preventDefault())};
bov=function(y,W){return W<0&&y.scrollTop>0||W>0&&y.scrollTop<y.scrollHeight-y.clientHeight-1?(y=getComputedStyle(y).overflowY,y=="auto"||y=="scroll"):!1};
_.h1=function(y,W,V,w){w||(w={bubbles:!0,cancelable:!1,composed:!0});V!==null&&V!==void 0&&(w.detail=V);var t=new CustomEvent(W,w);_.e("untrack_fire_custom_event_killswitch")?y.dispatchEvent(t):mT(function(){return void y.dispatchEvent(t)});
return t};
Qga=function(y){var W=window,V=function(w){W.removeEventListener("yt-navigate-start",V);return y.call(W,w)};
W.addEventListener("yt-navigate-start",V,void 0)};
_.ow=function(y,W,V,w){W=new Zov(W,!(w===void 0||!w),V);_.h1(y,"yt-action",W);return W.returnValue};
_.Kg=function(y,W,V){return _.ow(y,W,V,!0)};
_.pg=function(y,W,V){return _.ow(y,W,V)[0]};
_.fg=function(y,W,V,w){W&&W.length&&W.forEach(function(t){var F=onu(t);F&&(_.e("handle_service_request_actions")&&t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.i5(V?V:y,[t]):_.Kg(y,F,[t,V,w]))})};
_.i5=function(y,W){var V=[y];W&&V.push.apply(V,W);W=_.ow(y,"yt-service-request",V);return W.length>0&&(W=W[0],_.h1(y,"yt-service-request-sent",W),W&&W.ajaxPromise)?(W.ajaxPromise.then(function(w){_.h1(y,"yt-service-request-completed",w)},function(w){_.h1(y,"yt-service-request-error",{error:w,
params:V})},y),W.ajaxPromise):_.T2()};
_.M8=function(y,W){if(_.e("handle_service_request_actions"))_.fg(W,y,W);else{y=_.N(y);for(var V=y.next();!V.done;V=y.next()){V=V.value;var w=void 0;((w=_.h(V,_.mR))==null?0:w.commands)?_.M8(_.h(V,_.mR).commands,W):(w=void 0,((w=_.h(V,_.q8))==null?0:w.actions)?_.M8(_.h(V,_.q8).actions,W):(w=void 0,((w=_.h(V.commandMetadata,_.dw))==null?0:w.sendPost)?_.i5(W,[V]):_.fg(W,[V],W)))}}};
_.Wuy=function(y,W,V){W=W===void 0?{}:W;typeof W==="function"&&(W={callback:W});V||W._c&&W._c.jsl&&W._c.jsl.h||_.Gc.extend(W,{_c:{jsl:{h:_.yC("GAPI_HINT_PARAMS")}}});(W.gapiHintOverride||_.yC("GAPI_HINT_OVERRIDE"))&&(V=_.P4(document.location.href).gapi_jsh)&&_.Gc.extend(W,{_c:{jsl:{h:V}}});yqt(y,W)};
_.u5=function(y,W,V){W=W===void 0?{}:W;y=(y=y in Un?Un[y]:V)||"";V={};for(var w in W){V={key$jscomp$815:V.key$jscomp$815};V.key$jscomp$815=w;var t=function(F){return function(){return String(W[F.key$jscomp$815])}}(V);
y=y.replace(new RegExp("\\$\\{"+V.key$jscomp$815+"\\}","gi"),t);y=y.replace(new RegExp("\\$"+V.key$jscomp$815,"gi"),t)}return y};
_.SM=function(y,W){return VNy(y in Un?Un[y]:{},W)};
VNy=function(y,W){var V=_.yC("I18N_PLURAL_RULES");V||(V=function(w){return w==1?"one":"other"});
return(y=y["case"+W]||y[V(W)])?y.replace("#",W.toString()):W+""};
Fub=function(y){var W=wQu(y),V=document.getElementById(W),w=V&&qKz(V);w||V&&!w||(V=tNj(y,W,function(){if(!qKz(V)){M9G(V);_.kbd(W);var t=_.D2(_.AYn,W);_.mj(t,0)}}))};
tNj=function(y,W,V){var w=document.createElement("link");w.id=W;w.onload=function(){V&&setTimeout(V,0)};
y=_.na(y);_.hX(w,y,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(w);return w};
wQu=function(y){var W=_.xu("A");tX(W,XM(y));return"css-"+WN(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.N9R=function(y){var W=EgG();y!==W&&(W=_.l5(),!_.e("web_autonav_allow_off_by_default")&&y||_.xF(0,141,!0),_.xF(0,140,!y),W.save())};
EgG=function(){var y=_.l5();return _.e("web_autonav_allow_off_by_default")&&!y.getFlag(141)&&_.yC("AUTONAV_OFF_BY_DEFAULT")?!1:!y.getFlag(140)};
IGz=function(y,W){var V,w;y=((V=y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(w=V.videoAuthorizationToken)==null?void 0:w.credentialTransferTokens)||[];for(V=0;V<y.length;++V)if(y[V].scope===W)return y[V].token||void 0};
ggt=function(y){for(var W=0,V=0;V<y.length;V++)W=W*31+y.charCodeAt(V),V<y.length-1&&(W%=0x800000000000);return W%1E5};
_.kF=function(y){return _.ts("ytcsi."+(y||"")+"data_")||PJb(y)};
_.CJv=function(y){y=_.kF(y);y.metadata||(y.metadata={});return y.metadata};
_.Ojv=function(y){y=_.kF(y);y.tick||(y.tick={});return y.tick};
_.sn=function(y){y=_.kF(y);if(y.gel){var W=y.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else y.gel={gelTicks:{},gelInfos:{}};return y.gel};
_.vgz=function(y){y=_.sn(y);y.gelInfos||(y.gelInfos={});return y.gelInfos};
d2v=function(y){var W=_.kF(y).nonce;W||(W=$y(16),_.kF(y).nonce=W);return W};
PJb=function(y){var W={tick:{},info:{}};_.dE("ytcsi."+(y||"")+"data_",W);return W};
Lut=function(){var y=_.ts("ytcsi.debug");y||(y=[],_.dE("ytcsi.debug",y),_.dE("ytcsi.reference",{}));return y};
_.A1=function(y){y=y||"";var W=z$L();if(W[y])return W[y];var V=Lut(),w={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};V.push(w);return W[y]=w};
cqn=function(y){y=y||"";var W=z$L();W[y]&&delete W[y];var V=Lut(),w={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};V.push(w);W[y]=w};
z$L=function(){var y=_.ts("ytcsi.reference");if(y)return y;Lut();return _.ts("ytcsi.reference")};
_.h$L=function(y){return e$n[y]||"LATENCY_ACTION_UNKNOWN"};
ijR=function(y,W,V){V=V===void 0?{}:V;var w=!1;_.W4("ytLoggingEventsDefaultDisabled",!1)&&(w=!0);w=w?null:ni;V=V===void 0?{}:V;var t=Math.round(V.timestamp||(0,_.cU)());_.sg(W,1,t<Number.MAX_SAFE_INTEGER?t:0);t=new ogP;if(V.lact)_.sg(t,1,isFinite(V.lact)?V.lact:-1);else if(V.timestamp)_.sg(t,1,-1);else{var F=_.es();_.sg(t,1,isFinite(F)?F:-1)}if(V.sequenceGroup&&!_.e("web_gel_sequence_info_killswitch")){F=V.sequenceGroup;var I=aQL(F),P=new Kuj;_.sg(P,2,I);_.jD(P,1,F);_.sx(t,3,P);V.endOfSequence&&delete pQj[V.sequenceGroup]}_.sx(W,
33,t);(V.sendIsolatedPayload?ylv:WmL)(y,{endpoint:"log_event",payload:W,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},w)};
_.BN=function(){return(_.e("csi_use_time_origin")||_.e("csi_use_time_origin_tvhtml5"))&&_.YF.timeOrigin?Math.floor(_.YF.timeOrigin):_.YF.timing.navigationStart};
_.fGL=function(y,W){_.J1("_start",y,W)};
_.Rw=function(y,W){if(!_.e("web_csi_action_sampling_enabled")||!_.kF(W).actionDisabled){var V=_.A1(W||"");_.bu(V.info,y);y.loadType&&(V=y.loadType,_.CJv(W).loadType=V);_.bu(_.vgz(W),y);V=d2v(W);W=_.kF(W).cttAuthInfo;T9z().info(y,V,W)}};
m2a=function(){var y,W,V,w;return((w=_.hs().resolve(_.eX(Rp))==null?void 0:(y=XaL())==null?void 0:(W=y.loggingHotConfig)==null?void 0:(V=W.csiConfig)==null?void 0:V.debugTicks)!=null?w:[]).map(function(t){return Object.values(t)[0]})};
_.J1=function(y,W,V){if(!_.e("web_csi_action_sampling_enabled")||!_.kF(V).actionDisabled){var w=d2v(V),t;if(t=_.e("web_csi_debug_sample_enabled")&&w){(_.hs().resolve(_.eX(Rp))==null?0:XaL())&&!MNa&&(MNa=!0,_.J1("gcfl",(0,_.cU)(),V));var F,I,P;t=(_.hs().resolve(_.eX(Rp))==null?void 0:(F=XaL())==null?void 0:(I=F.loggingHotConfig)==null?void 0:(P=I.csiConfig)==null?void 0:P.debugSampleWeight)||0;if(F=t!==0)b:{F=m2a();if(F.length>0)for(I=0;I<F.length;I++)if(y===F[I]){F=!0;break b}F=!1}F?(t=ggt(w)%t!==
0,_.kF(V).debugTicksExcludedLogged||(F={},F.debugTicksExcluded=t,_.Rw(F,V)),_.kF(V).debugTicksExcludedLogged=!0):t=!1}if(!t){y[0]!=="_"&&qea(y,V,W);t=_.A1(V||"");t.tick[y]=W||(0,_.cU)();if(t.callback&&t.callback[y])for(t=_.N(t.callback[y]),F=t.next();!F.done;F=t.next())F=F.value,F();t=_.sn(V);t.gelTicks&&(t.gelTicks[y]=!0);F=_.Ojv(V);t=W||(0,_.cU)();_.e("log_repeated_ytcsi_ticks")?y in F||(F[y]=t):F[y]=t;F=_.kF(V).cttAuthInfo;y==="_start"?T9z().baseline(w,W,F):T9z().tick(y,w,W,F);_.U2a(V);return t}}};
qea=function(y,W,V){if(_.YF.mark)if(y.startsWith("mark_")||(y="mark_"+y),W&&(y+=" ("+W+")"),V===void 0||_.e("web_csi_disable_alt_time_performance_mark"))_.YF.mark(y);else{V=_.e("csi_use_performance_navigation_timing")?V-_.YF.timeOrigin:V-(_.YF.timeOrigin||_.YF.timing.navigationStart);try{_.YF.mark(y,{startTime:V})}catch(w){}}};
uIv=function(){var y,W=(y=_.YF.getEntriesByType)==null?void 0:y.call(_.YF,"mark");W&&W.forEach(function(V){if(V.name.startsWith("mark_")){var w;(w=_.YF.clearMarks)==null||w.call(_.YF,V.name)}})};
_.D2y=function(){switch(KMz()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.lGz=function(y){var W={},V=function(F,I,P){I=I.match("_rid")?I.split("_rid")[0]:I;typeof P==="number"&&(P=JSON.stringify(P));F.requestIds?F.requestIds.push({endpoint:I,id:P}):F.requestIds=[{endpoint:I,id:P}]};
y=_.N(Object.entries(y));for(var w=y.next();!w.done;w=y.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;switch(w){case "GetBrowse_rid":V(W,w,t);break;case "GetGuide_rid":V(W,w,t);break;case "GetHome_rid":V(W,w,t);break;case "GetPlayer_rid":V(W,w,t);break;case "GetSearch_rid":V(W,w,t);break;case "GetSettings_rid":V(W,w,t);break;case "GetTrending_rid":V(W,w,t);break;case "GetWatchNext_rid":V(W,w,t);break;case "yt_red":W.isRedSubscriber=!!t;break;case "yt_ad":W.isMonetized=!!t}}return W};
knu=function(y,W,V,w,t,F){if(!_.e("web_csi_action_sampling_enabled")||!_.kF(F).actionDisabled){var I=_.sn(F);if(I.gelSpans)I.gelSpans[y]=!0;else{var P={};I.gelSpans=(P[y]=!0,P)}x2z++;y={spanName:y,spanLengthUsec:String(Math.round(W*1E3)),spanNonce:x2z};w&&(y.spanInfo=w);t&&(y.parentSpanNonce=t);V&&(y.spanStartTimeUsec=String(Math.round(V*1E3)));_.A1(F||"").span[String(y.spanName)]=y;V=_.sn(F);V.gelSpans||(V.gelSpans={});_.bu(V.gelSpans,y);V=d2v(F);F=_.kF(F).cttAuthInfo;T9z().span(y,V,F);return y.spanNonce}};
_.s4d=function(y){var W=_.jM("aft",y);if(W)return W;W=_.yC((y||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=W.length,w=0;w<V;w++){var t=_.jM(W[w],y);if(t)return t}return NaN};
_.Aqt=function(y,W){_.dE("ytglobal.timing"+(W||"")+"ready_",y)};
_.jM=function(y,W){if(y=_.Ojv(W)[y])return typeof y==="number"?y:y[y.length-1]};
_.U2a=function(y){var W=_.jM("_start",y),V=_.s4d(y),w=!Yev;W&&V&&w&&(Gw4(B9G,new Jqy(Math.round(V-W),y)),Yev=!0)};
j4y=function(y){PJb(y);R$R();uIv();y||(_.yC("TIMING_ACTION")&&_.Z7("PREVIOUS_ACTION",_.yC("TIMING_ACTION")),_.Z7("TIMING_ACTION",""))};
_.$2v=function(y){y=y===void 0?{}:y;_.wi(function(){$F();cqn();j4y();_.Aqt(!1);y.cttAuthInfo&&(_.kF().cttAuthInfo=y.cttAuthInfo);_.Z7("TIMING_AFT_KEYS",[]);y.isHot?_.HN({loadType:"hot"}):_.HN({loadType:"warm"});_.Z7("TIMING_ACTION","");delete _.yC("TIMING_INFO",{}).yt_lt;_.wi(_.fGL)(y.startTime,void 0)})()};
_.X$=function(y,W,V,w){W=W===void 0?{}:W;_.wi(function(){var t=V?V:y;ngv(t);var F=W.sampleRate;if(!_.e("web_csi_action_sampling_enabled")||F===void 0||F<=1)F=!1;else{var I=d2v(t);F=ggt(I)%F!==0}F&&(_.kF(t).actionDisabled=!0);_.A1(t||"").info.actionType=y;W.cttAuthInfo&&(_.kF(t).cttAuthInfo=W.cttAuthInfo);_.Z7(t+"TIMING_ACTION",y);_.wi(_.fGL)(W.startTime,t);F={actionType:w||_.h$L(y)};W.logPreviousAction&&(F.previousAction=_.h$L(_.yC("TIMING_ACTION")));(I=_.Xn())&&I!=="UNDEFINED_CSN"&&(F.clientScreenNonce=
I);_.HN(F,t);_.Aqt(!0,t)})()};
ngv=function(y){_.wi(function(){$F(y);cqn(y);j4y(y)})()};
Hjv=function(){_.wi(function(){var y=[],W;for(W in _.ts("ytcsi.".slice(0,-1)))W.endsWith("data_")&&y.push(W.slice(0,-5));y=_.N(y);for(W=y.next();!W.done;W=y.next())ngv(W.value);$F()})()};
_.aGt=function(y){return _.wi(function(){return _.XQn("_start",y)})()};
_.HN=function(y,W,V){_.wi(_.Rw)(y,W,V===void 0?!1:V)};
_.aw=function(y,W,V){return _.wi(_.J1)(y,W,V)};
_.XQn=function(y,W){return _.wi(function(){var V=_.Ojv(W);return y in V})()};
rqy=function(y){if(!_.e("universal_csi_network_ticks"))return"";y=_.U1(y)||"";for(var W=Object.keys(Gnz),V=0;V<W.length;V++){var w=W[V];if(y.includes(w))return w}return""};
Q4u=function(y){if(!_.e("universal_csi_network_ticks"))return function(){};
var W=Gnz[y];return W?(_.G2(W),function(){var V=_.e("universal_csi_network_ticks")?(V=bju[y])?_.G2(V):!1:!1;return V}):function(){}};
_.G2=function(y,W,V){return _.wi(function(){if(_.XQn(y,V))return!1;_.aw(y,W,V);return!0})()};
_.rw=function(y,W,V){_.wi(function(){if(!_.aGt(V)||_.XQn(y,V))return!1;_.aw(y,W,V);return!0})()};
_.yD=function(y){return _.wi(_.jM)(y,void 0)};
$F=function(y){_.aGt(y)&&_.aw("aa",void 0,y)};
_.wwL=function(y,W,V,w,t,F,I,P,C){var d=Zjv();P=new _.nM({veType:W,youtubeData:F,jspbYoutubeData:P});F=WE({},d);t&&(F.cttAuthInfo=t);t={csn:d,pageVe:P.getAsJson()};_.e("expectation_logging")&&C&&C.screenCreatedLoggingExpectations&&(t.screenCreatedLoggingExpectations=C.screenCreatedLoggingExpectations);V&&V.visualElement?(t.implicitGesture={parentCsn:V.clientScreenNonce,gesturedVe:V.visualElement.getAsJson()},I&&(t.implicitGesture.gestureType=I)):V&&_.rQ(new _.Js("newScreen() parent element does not have a VE - rootVe",
W));w&&(t.cloneCsn=w);y?$I("screenCreated",t,y,F):_.Hp("screenCreated",t,F);Gw4(VBj,new yBj(d));VD.clear();WBj.clear();VxG.clear();return d};
w5=function(y,W,V,w,t,F){F=F===void 0?{}:F;txj(y,W,V,[w],t===void 0?!1:t,F)};
txj=function(y,W,V,w,t,F){t=t===void 0?!1:t;F=F===void 0?{}:F;Object.assign(F,WE({cttAuthInfo:a2(W)||void 0},W));for(var I=_.N(w),P=I.next();!P.done;P=I.next()){P=P.value;var C=P.getAsJson();(_.Gc.isEmpty(C)||!C.trackingParams&&!C.veType)&&_.rQ(Error("Df"));if(_.e("no_client_ve_attach_unless_shown")){var d=FB4(P,W);if(C.veType&&!WBj.has(d)&&!VxG.has(d)&&!t){if(!_.e("il_attach_cache_limit")||VD.size<1E3){VD.set(d,[y,W,V,P]);return}_.e("il_attach_cache_limit")&&VD.size>1E3&&_.rQ(new _.Js("IL Attach cache exceeded limit"))}P=
FB4(V,W);VD.has(P)?Efz(V,W):VxG.set(P,!0)}}w=w.filter(function(L){L.csn!==W?(L.csn=W,L=!0):L=!1;return L});
V={csn:W,parentVe:V.getAsJson(),childVes:_.rU(w,function(L){return L.getAsJson()})};
W==="UNDEFINED_CSN"?tz("visualElementAttached",F,V):y?$I("visualElementAttached",V,y,F):_.Hp("visualElementAttached",V,F)};
I4L=function(y,W,V,w,t){NoR(y,W,V,t)};
NoR=function(y,W,V,w){gfy(V,W);var t=WE({cttAuthInfo:a2(W)||void 0},W);V={csn:W,ve:V.getAsJson(),eventType:1};w&&(V.clientData=w);W==="UNDEFINED_CSN"?tz("visualElementShown",t,V):y?$I("visualElementShown",V,y,t):_.Hp("visualElementShown",V,t)};
Pdy=function(y,W,V,w){gfy(V,W);var t=WE({cttAuthInfo:a2(W)||void 0},W);V={csn:W,ve:V.getAsJson(),eventType:4};w&&(V.clientData=w);W==="UNDEFINED_CSN"?tz("visualElementShown",t,V):y?$I("visualElementShown",V,y,t):_.Hp("visualElementShown",V,t)};
Cdj=function(y,W,V,w,t){var F=(w=w===void 0?!1:w)?16:8;w=WE({cttAuthInfo:a2(W)||void 0,endOfSequence:w},W);V={csn:W,ve:V.getAsJson(),eventType:F};t&&(V.clientData=t);W==="UNDEFINED_CSN"?tz("visualElementHidden",w,V):y?$I("visualElementHidden",V,y,w):_.Hp("visualElementHidden",V,w)};
vfd=function(y,W,V,w,t){O8b(y,W,V,void 0,w,t)};
O8b=function(y,W,V,w,t){gfy(V,W);w=w||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var F=WE({cttAuthInfo:a2(W)||void 0},W);V={csn:W,ve:V.getAsJson(),gestureType:w};t&&(V.clientData=t);W==="UNDEFINED_CSN"?tz("visualElementGestured",F,V):y?$I("visualElementGestured",V,y,F):_.Hp("visualElementGestured",V,F)};
dfP=function(y,W,V,w){var t=WE({cttAuthInfo:a2(W)||void 0},W);V={csn:W,ve:V.getAsJson(),clientData:w};W==="UNDEFINED_CSN"?tz("visualElementStateChanged",t,V):y?$I("visualElementStateChanged",V,y,t):_.Hp("visualElementStateChanged",V,t)};
LB4=function(){var y=yRt(16);for(var W=[],V=0;V<y.length;V++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(y[V]&63));return W.join("")};
tz=function(y,W,V){zKG.push({payloadName:y,payload:V,jspbPayload:void 0,options:W});cBa||(cBa=tBu())};
WgP=function(y){if(zKG){for(var W=_.N(zKG),V=W.next();!V.done;V=W.next())V=V.value,V.payload&&(V.payload.csn=y.csn,_.Hp(V.payloadName,V.payload,V.options));zKG.length=0}cBa=0};
FB4=function(y,W){return""+y.getAsJson().veType+y.getAsJson().veCounter+W};
gfy=function(y,W){if(_.e("no_client_ve_attach_unless_shown")){var V=FB4(y,W);WBj.set(V,!0);Efz(y,W)}};
Efz=function(y,W){y=FB4(y,W);VD.has(y)&&(W=VD.get(y)||[],w5(W[0],W[1],W[2],W[3],!0),VD.delete(y))};
WE=function(y,W){_.e("log_sequence_info_on_gel_web")&&(y.sequenceGroup=W);return y};
_.Fr=function(y,W,V){_.wi(w5)(void 0,y,W,V)};
_.EB=function(y,W,V){_.wi(txj)(void 0,y,W,V)};
_.NK=function(y,W){_.wi(I4L)(void 0,y,W,void 0,void 0,void 0)};
_.IB=function(y,W,V){_.wi(function(){_.IA(W,function(w){Pdy(void 0,y,w,V)})})()};
_.g5=function(y,W,V,w){_.wi(function(){_.IA(W,function(t){Cdj(void 0,y,t,V,w)})})()};
_.PE=function(y,W,V){_.wi(vfd)(void 0,y,W,V,void 0)};
_.vE=function(y,W,V,w){_.wi(O8b)(void 0,y,W,V,w,void 0)};
_.d5=function(y,W,V){_.wi(dfP)(void 0,y,W,V,void 0)};
eKb=function(y,W){L2.set(y,W)};
hKu=function(y){return z4?z4.enabledSpans?!!z4.enabledSpans[y]:!0:!1};
ofL=function(y){if(!z4)throw Error("Gf");z4.processors.push(y)};
KBb=function(y,W){if(y){W=W===void 0?1:W;if(y&&(y.endTime=performance.now(),W&&(y.status=W),W=z4)){W=_.N(W.processors);for(var V=W.next();!V.done;V=W.next()){var w=void 0,t=void 0;(t=(w=V.value).onSpanEnd)==null||t.call(w,y)}}if(W=z4){if(y!==W.activeSpan)throw Error("Hf");var F;W.activeSpan=(F=W.activeSpan)==null?void 0:F.parent}}};
pwR=function(y,W,V){var w;if((w=z4)&&hKu(y)){var t=w.nextSpanId++,F=w.activeSpan;y={id:t,parent:F,name:y,attributes:W,traceId:F?F.traceId:t,sessionId:w.sessionId,startTime:performance.now(),status:0};if(w.activeSpan){var I;(I=w.activeSpan).children||(I.children=[]);w.activeSpan.children.push(y)}w=_.N(w.processors);for(I=w.next();!I.done;I=w.next())t=W=void 0,(t=(W=I.value).onSpanStart)==null||t.call(W,y);w=y}else w=void 0;y=z4;w=w&&y?y.activeSpan=w:void 0;if(!w)return V();try{var P=V(w);KBb(w);return P}catch(C){throw KBb(w,
2),C;}};
i84=function(y,W){var V=Object.keys(y);y=new _.Js("[Command Handler] "+W,{filteredCommandNames:V,originalCommand:y});_.ap(y)};
f4P=function(y,W){i84(y,W+" was called but not set")};
Tov=function(y){return function(){return new y}};
cE=function(y){return function(){return _.hs().resolve(y)}};
mfL=function(y,W){var V=_.h(y,_.Wl);if(V&&(V=W[V.signal]))return V();y=_.N(Object.keys(y));for(V=y.next();!V.done;V=y.next())if(V=V.value,W[V]&&(V=W[V]))return V()};
eE=function(y,W,V,w){return{browseEndpoint:{browseId:y},commandMetadata:{webCommandMetadata:{url:W,rootVe:V,webPageType:w===void 0?"WEB_PAGE_TYPE_BROWSE":w}}}};
MxL=function(y,W,V){var w=W=W===void 0?0:W;V=V===void 0?0:V;var t=V-w;return _.hz(y,"PPSV",void 0,void 0,(t>600?0:t<60||V<=0||w/V>.9)?0:W)};
_.hz=function(y,W,V,w,t){var F="/watch?v="+y;y={videoId:y};W&&(y.playlistId=W,F+="&list="+W);w&&(F+="&pp="+w);t&&(y.startTimeSeconds=t,F+="&t="+t+"s");W={watchEndpoint:y,commandMetadata:{webCommandMetadata:{url:F,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};V&&(W.clickTrackingParams=V);w&&(_.h(W,_.Iw).playerParams=w);return W};
qJP=function(y){return{browseEndpoint:{browseId:"VL"+y},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+y,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Ufy=function(y){if(y){var W;if(y){var V=(W=_.h(y.commandMetadata,_.dw))==null?void 0:W.url;W=!(!V||V==="/service_ajax")}else W=!1;if(W)return y;var w;if(y=(w=_.h(y,_.mR))==null?void 0:w.commands)for(w=_.N(y),y=w.next();!y.done;y=w.next())if(y=Ufy(y.value))return y}};
_.oB=function(y){return{runs:[{text:y}]}};
ugb=function(y,W){return y&&W?{runs:[{text:y,navigationEndpoint:W}]}:void 0};
K2=function(y){return y?_.oB(y):void 0};
_.p2=function(y){return y?{simpleText:y}:void 0};
_.ig=function(y){var W=y.type;y=y.payload;W={type:W};y!==void 0&&(W.payload=y);return W};
SJy=function(y,W,V){for(var w=Object.assign({},y),t=_.N(Object.keys(W)),F=t.next();!F.done;F=t.next()){F=F.value;var I=y[F],P=W[F];if(P===void 0)delete w[F];else if(I===void 0)w[F]=P;else if(Array.isArray(P)&&Array.isArray(I))w[F]=V?[].concat(_.GC(I),_.GC(P)):P;else if(!Array.isArray(P)&&_.VK(P)&&!Array.isArray(I)&&_.VK(I))w[F]=SJy(I,P,V);else if(typeof P===typeof I)w[F]=P;else return W=new _.Js("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:F,originalValue:I,updateValue:P}),
_.ap(W),y}return w};
xfL=function(y){if(!y.length)return"";try{if(DfL)return DfL.decode(y);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(y)}catch(I){}for(var W=0,V=[],w=y.length;W<w;){for(var t=0;t<1024&&W<w;){var F=y[W++];if(F<128)l4j[t++]=F;else{if(F<224)F=(F&31)<<6|y[W++]&63;else if(F<240)F=(F&15)<<12|(y[W++]&63)<<6|y[W++]&63;else{if(t+1===1024){--W;break}F=(F&7)<<18|(y[W++]&63)<<12|(y[W++]&63)<<6|y[W++]&63;F-=65536;l4j[t++]=55296|F>>10;F=56320|F&1023}l4j[t++]=F}}F=String.fromCharCode.apply(String,
l4j);t<1024&&(F=F.substring(0,t));V.push(F)}return V.join("")};
sav=function(y,W){var V;if((V=kmj)==null?0:V.encodeInto)return W=kmj.encodeInto(y,W),W.read<y.length?y.length*4:W.written;for(var w=V=0;w<y.length;w++){var t=y.charCodeAt(w);t<128?W[V++]=t:(t<2048?W[V++]=t>>6|192:((t&64512)===55296&&w+1<y.length&&(y.charCodeAt(w+1)&64512)===56320?(t=65536+((t&1023)<<10)+(y.charCodeAt(++w)&1023),W[V++]=t>>18|240,W[V++]=t>>12&63|128):W[V++]=t>>12|224,W[V++]=t>>6&63|128),W[V++]=t&63|128)}return V};
ABG=function(y,W,V){if(W&&V&&V.buffer===W.exports.memory.buffer){var w=W.realloc(V.byteOffset,y);if(w)return new Uint8Array(W.exports.memory.buffer,w,y)}y=W?new Uint8Array(W.exports.memory.buffer,W.malloc(y),y):new Uint8Array(y);V&&y.set(V);return y};
_.T4=function(y){y=new YJG(new Bod([_.Cq(decodeURIComponent(y))]));if(JBd(y,2)){var W=f2(y);var V=y.pos;var w=y.arrayView;V=V===void 0?0:V;var t=W===void 0?-1:W;V=V===void 0?0:V;t=t===void 0?-1:t;if(w.totalLength&&t){t<0&&(t=w.totalLength-V);w.focus(V);if(!(V-w.arrayPos+t<=w.arrays[w.arrayIdx].length)){var F=w.arrayIdx,I=w.arrayPos;w.focus(V+t-1);I=new Uint8Array(w.arrayPos+w.arrays[w.arrayIdx].length-I);for(var P=0,C=F;C<=w.arrayIdx;C++)I.set(w.arrays[C],P),P+=w.arrays[C].length;w.arrays.splice(F,
w.arrayIdx-F+1,I);w.arrayIdx=0;w.arrayPos=0;w.focus(V)}F=w.arrays[w.arrayIdx];w=new DataView(F.buffer,F.byteOffset+V-w.arrayPos,t)}else w=new DataView(new ArrayBuffer(0));w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength);y.pos+=W;W=w}else W=void 0;W=W?xfL(W):void 0;y=JBd(y,4)?f2(y):void 0;w=RKz[y];if(typeof w==="undefined")throw y=new _.Js("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:y}),_.ap(y),y;return{entityTypeFieldNumber:y,entityType:w,entityId:W}};
_.qK=function(y,W,V){V=V===void 0?0:V;var w=new jat;if(kmj)y=kmj.encode(y);else{var t=new Uint8Array(Math.ceil(y.length*1.2)),F=sav(y,t);t.length<F&&(t=new Uint8Array(F),F=sav(y,t));t.length>F&&(t=t.subarray(0,F));y=t}y!==void 0&&(m_(w,18),t=y.length,m_(w,t),MK(w,t),w.buf.set(y,w.pos),w.pos+=t);y=$fv[W];if(typeof y==="undefined")throw V=new _.Js("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),_.ap(V),V;y!==void 0&&(m_(w,32),m_(w,y));m_(w,40);m_(w,1);W=new Uint8Array(w.buf.buffer,
w.buf.byteOffset,w.pos);return encodeURIComponent(_.Gj(W,V))};
nfn=function(y){y=y.key||y.id;if(!y)throw Error("If");return y};
Xw4=function(y,W){y=y===void 0?{}:y;return H8u(y,W)};
a4j=function(y,W,V,w){if(w===void 0)return w=Object.assign({},y[W]||{}),V=(delete w[V],w),w={},Object.assign({},y,(w[W]=V,w));var t={},F={};return Object.assign({},y,(F[W]=Object.assign({},y[W],(t[V]=w,t)),F))};
Gmj=function(y,W,V,w,t){var F=y[W];if(F==null||!F[V])return y;w=SJy(F[V],w,t==="REPEATED_FIELDS_MERGE_OPTION_APPEND");t={};F={};return Object.assign({},y,(F[W]=Object.assign({},y[W],(t[V]=w,t)),F))};
_.UB=function(y,W,V){return y[W]?y[W][V]||null:null};
b8G=function(){if(rBu)return rBu();var y={};rBu=zp("PersistentEntityStoreDb",{objectStores:(y.EntityStore={addedAtVersion:1},y.EntityAssociationStore={addedAtVersion:2},y),shared:!1,upgrade:function(W,V){V(1)&&wQ(VT(W,"EntityStore",{keyPath:"key"}),"entityType","entityType");V(2)&&(W=VT(W,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),wQ(W,"byParentEntityKey","parentEntityKey"),wQ(W,"byChildEntityKey","childEntityKey"))},
version:3});return rBu()};
Qan=function(y){return _.IV(b8G(),y)};
ug=function(y){return window.Int32Array?new Int32Array(y):Array(y)};
yrv=function(y){return _.IV(Z8t(),y)};
WIb=function(y){return new SE("WRONG_DATA_TYPE",{encoderVersion:y})};
VZv=function(y){return y instanceof Error?new SE("UNKNOWN_ENCODE_ERROR",{originalMessage:y.message}):new SE("UNKNOWN_ENCODE_ERROR")};
wqn=function(y){return y instanceof Error?new SE("UNKNOWN_DECODE_ERROR",{originalMessage:y.message}):new SE("UNKNOWN_DECODE_ERROR")};
tZb=function(y,W){y=y instanceof SE?y:W(y);_.ap(y);throw y;};
FIt=function(y){y=(new TextEncoder).encode(y).subarray(0,16);var W=new Uint8Array(16);W.set(y);return W};
N1G=function(y){var W=Eoa[y];if(W)return W;_.rQ(new _.Js("Entity model not found.",{entityType:y}))};
_.DH=function(){Isu||(Isu=gov());return Isu};
gov=function(){var y,W,V;return _.g(function(w){if(w.nextAddress==1)return _.l7(w,2),w.yield(_.LA(),4);if(w.nextAddress!=2){y=w.yieldResult;if(!y||!_.B4()||typeof _.Vj.BroadcastChannel==="undefined")return w.return();W=new PIR;return w.return(new lg(y,W))}V=_.YX(w);V instanceof Error&&_.ap(V);return w.return()})};
_.xC=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1){V=y.mutations;if(!V||V.length<=0)return w.return();W&&W.dispatch(_.ig({type:"ENTITY_LOADED",payload:V}));return w.yield(CIy(V),2)}V.length=0;_.B7(w)})};
CIy=function(y){var W;return _.g(function(V){return V.nextAddress==1?V.yield(_.DH(),2):(W=V.yieldResult)?V.yield(_.kC(W,"readwrite",function(w){for(var t={},F=_.N(y),I=F.next(),P={};!I.done;P={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},I=F.next())P.mutation$jscomp$4=I.value,P.mutation$jscomp$4.entityKey&&O$a(P.mutation$jscomp$4)&&(P.mutationEntityType$jscomp$3=(0,_.Gc.getAnyKey)(P.mutation$jscomp$4.payload),I=void 0,P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(I=function(C){return function(){return _.voj(w,
C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(P)),P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(I=function(C){return function(){return dnL(w,C.mutation$jscomp$4.entityKey)}}(P)),P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(I=function(C){return function(){return LIR(w,C.mutation$jscomp$4.entityKey,C.mutation$jscomp$4.payload[C.mutationEntityType$jscomp$3],C.mutationEntityType$jscomp$3)}}(P)),I&&(t[P.mutation$jscomp$4.entityKey]=
t[P.mutation$jscomp$4.entityKey]?t[P.mutation$jscomp$4.entityKey].then(I):I()));
return Vi.all(Object.values(t))}),0):V.return()})};
O$a=function(y){var W;y=(W=y.options)==null?void 0:W.persistenceOption;return y==="ENTITY_PERSISTENCE_OPTION_PERSIST"||y==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
eId=function(y,W){var V,w;_.g(function(t){if(t.nextAddress==1)return t.yield(_.DH(),2);if(t.nextAddress!=3)return(V=t.yieldResult)?t.yield(_.kC(V,"readonly",function(F){var I={},P=Object.keys(W).map(function(C){var d=W[C]?[].concat(_.GC(W[C])):[];return zIa(F,C,d,I)});
return Vi.all(P).then(function(){return I})}),3):t.return();
w=t.yieldResult;Object.keys(w).length>0&&y.dispatch(crv(w));_.B7(t)})};
zIa=function(y,W,V,w){return sB(y,W,V).then(function(t){w[W]=hIn(V,t)})};
hIn=function(y,W){if(W.length!==y.length)throw Error("Lf");return W.reduce(function(V,w,t){V[y[t]]=w;return V},{})};
pqd=function(y){var W=y.filter(function(t){var F;return(t==null?void 0:(F=t.transferEntity)==null?void 0:F.transferState)==="TRANSFER_STATE_COMPLETE"}).length,V=y.filter(function(t){var F;
return(t==null?void 0:(F=t.transferEntity)==null?void 0:F.transferState)==="TRANSFER_STATE_FAILED"}).length,w=y.filter(function(t){var F;
return(t==null?void 0:(F=t.transferEntity)==null?void 0:F.transferState)&&oon.includes(t.transferEntity.transferState)});
if(!(W||w!=null&&w.length))return 0;W=_.KIt(w)+W;y=y.length-V;return y===0?0:Math.round(W*100/y)/100};
_.KIt=function(y){var W=[];W=W.concat.apply(W,_.GC(y.filter(function(F){return F.streamEntity}).map(function(F){var I=Object.assign({},F.streamEntity),P,C=(P=F.transferEntity)==null?void 0:P.transferState;
I.streamsProgress=I.streamsProgress||[];I.streamsProgress=I.streamsProgress.map(function(d){var L=Object.assign({},d);L.numBytesDownloaded=C==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded;return L});
return I}).map(function(F){return F.streamsProgress})));
var V=y=0;W=_.N(W);for(var w=W.next();!w.done;w=W.next()){var t=w.value;w=Number(t.numBytesDownloaded);t=Number(t.numTotalBytes);V+=isNaN(w)?0:w;y+=isNaN(t)?0:t}return y===0?0:Math.round(V*100/y)/100};
i$L=function(y){if(!y||!y.expirationTimestamp||!y.action)return!1;var W=(0,_.cU)()/1E3;return Number(y.expirationTimestamp)>=W};
Az=function(y){return y&&y.expirationTimestamp&&y.action?i$L(y)&&y.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.YC=function(y){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(y||"TRANSFER_STATE_UNKNOWN")};
fsz=function(y){var W=new jat;if(y!==void 0){var V=Math.ceil(Math.log2(y.length*4+2)/7);V=V===void 0?2:V;m_(W,10);W.submessagePosStack.push(W.pos);W.submessagePosStack.push(V);W.pos+=V;MK(W,y.length*1.2);V=sav(y,W.buf.subarray(W.pos));W.pos+V>W.buf.length&&(MK(W,V),V=sav(y,W.buf.subarray(W.pos)));W.pos+=V;y=W.submessagePosStack.pop();V=W.submessagePosStack.pop();for(var w=W.pos-V-y;y--;){var t=y?128:0;W.view.setUint8(V++,w&127|t);w>>=7}}W=new Uint8Array(W.buf.buffer,W.buf.byteOffset,W.pos);return(new TextDecoder("utf-8")).decode(W)};
_.BE=function(y){var W=0;y=_.N(y);for(var V=y.next(),w={};!V.done;w={transferState$jscomp$3:void 0},V=y.next()){var t=V.value,F=void 0;V=(F=t.streamEntity)!=null?F:{};F=void 0;w.transferState$jscomp$3=(F=t.transferEntity)==null?void 0:F.transferState;F=t=void 0;((t=V)==null?0:(F=t.streamsProgress)==null?0:F.length)&&V.streamsProgress.forEach(function(I){return function(P){P=Number(I.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?P.numTotalBytes:P.numBytesDownloaded);isFinite(P)&&(W+=P)}}(w))}return W};
T1y=function(y){return y.some(function(W){var V;if(!(W==null?0:(V=W.transferEntity)==null?0:V.transferState)){var w;return!(W==null?0:(w=W.policyEntity)==null?0:w.action)||W.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return oon.includes(W.transferEntity.transferState)})};
mnv=function(y,W){if(!W)return!1;if(_.e("of_pb_en_po_ks"))return!0;var V;y=(V=_.UB(y,"offlineVideoPolicy",_.qK(W,"offlineVideoPolicy")))!=null?V:void 0;return!!y&&Az(y)};
_.qVy=function(y){var W=["TRANSFER_STATE_COMPLETE"];W=W===void 0?MZt:W;return y.filter(function(V){var w,t;return W.includes((t=(w=V.transferEntity)==null?void 0:w.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN")})};
Unv=function(y,W){if(W){var V,w=(V=_.UB(y,"playbackData",_.qK(W,"playbackData")))!=null?V:null,t;V=(t=_.UB(y,"transfer",_.qK(W,"transfer")))!=null?t:null;var F;t=(F=_.UB(y,"offlineVideoStreams",_.qK(W,"offlineVideoStreams")))!=null?F:null;var I;y=(I=_.UB(y,"offlineVideoPolicy",_.qK(W,"offlineVideoPolicy")))!=null?I:null;if(w||V||t||y)return{playbackDataEntity:w,transferEntity:V,streamEntity:t,policyEntity:y}}};
_.Jz=function(y){var W=y.playbackData;if(!W)return[];var V=[];W=_.N(Object.keys(W));for(var w=W.next();!w.done;w=W.next()){var t=w.value;if(!ufb(y,_.T4(t).entityId)&&(w=Unv(y,_.T4(t).entityId))){var F=void 0,I=void 0;t=(I=Number((F=_.UB(y,"playbackData",t))==null?void 0:F.streamDownloadTimestampSeconds))!=null?I:(0,_.cU)();V.push({entity:w,streamDownloadTimestamp:t})}}return V.sort(function(P,C){var d=P.streamDownloadTimestamp,L=C.streamDownloadTimestamp;return L===d?P.entity.streamEntity&&!C.entity.streamEntity?
1:-1:L-d}).map(function(P){return P.entity})};
SVt=function(y){return _.qVy(_.Jz(y))};
_.Dnb=function(y){return _.Jz(y).filter(function(W){var V;if(((V=W.policyEntity)==null?0:V.action)&&W.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var w;if((w=W.transferEntity)==null?0:w.transferState){var t;return oon.includes((t=W.transferEntity)==null?void 0:t.transferState)}return!0})};
ufb=function(y,W){var V;return((V=_.UB(y,"downloadStatusEntity",_.qK(W,"downloadStatusEntity")))==null?void 0:V.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
lsd=function(y){var W;if(y==null?0:(W=y.playbackDataEntity)==null?0:W.key)return _.T4(y.playbackDataEntity.key).entityId;var V;if(y==null?0:(V=y.transferEntity)==null?0:V.key)return _.T4(y.transferEntity.key).entityId;var w;if(y==null?0:(w=y.streamEntity)==null?0:w.key)return _.T4(y.streamEntity.key).entityId;var t;if(y==null?0:(t=y.policyEntity)==null?0:t.key)return _.T4(y.policyEntity.key).entityId};
k6z=function(y){var W=new Set,V;y=(V=y.mainDownloadsListEntity)==null?void 0:V[xnj];var w;if(!(y==null?0:(w=y.downloads)==null?0:w.length))return W;var t;y==null||(t=y.downloads)==null||t.forEach(function(F){(F==null?0:F.videoItem)&&W.add(F.videoItem)});
return W};
RB=function(y,W){if(W){var V=_.UB(y,"mainVideoEntity",_.qK(W,"mainVideoEntity")),w=_.UB(y,"downloadStatusEntity",_.qK(W,"downloadStatusEntity")),t=_.UB(y,"ytMainChannelEntity",_.qK(W,"ytMainChannelEntity")),F={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};y=Unv(y,W);w=(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.e("woffle_render_failed_download_state_ks")&&(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_FAILED";!y&&w&&(y=F);if(y&&V&&
t)return Object.assign({},{videoEntity:V,channelEntity:t},y)}};
ArG=function(y,W){return sxu(y,W)==="TRANSFER_STATE_COMPLETE"&&mnv(y,W)};
YVL=function(y,W){if(!W)return!1;var V;y=(V=_.UB(y,"playbackData",_.qK(W,"playbackData")))!=null?V:void 0;return!!y&&!!y.playerResponseJson};
sxu=function(y,W){if(!W)return"TRANSFER_STATE_UNKNOWN";var V=_.UB(y,"transfer",_.qK(W,"transfer"));if(V){var w;return(w=V.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}V=_.UB(y,"offlineOrchestrationActionWrapperEntity",_.qK(W,"offlineOrchestrationActionWrapperEntity"));y=_.UB(y,"mainVideoEntity",_.qK(W,"mainVideoEntity"));return V||y?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
B1P=function(y,W){if(!W)return"TRANSFER_STATE_UNKNOWN";if(y=_.UB(y,"transfer",_.qK(W,"transfer"))){var V;return(V=y.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Jrz=function(y,W){return W&&(y=_.UB(y,"videoPlaybackPositionEntity",_.qK(W,"videoPlaybackPositionEntity")),y==null?0:y.lastPlaybackPositionSeconds)?Number(y.lastPlaybackPositionSeconds):0};
jxL=function(y,W){return RIb(y).some(function(V){var w;return(V==null?void 0:(w=V.mainPlaylistEntity)==null?void 0:w.playlistId)===W})};
nou=function(y,W,V){var w=$nG(y,W);if(!w.length)return[];W=[];w=_.N(w);for(var t=w.next();!t.done;t=w.next()){t=t.value;var F=RB(y,t);V&&sxu(y,t)!=="TRANSFER_STATE_COMPLETE"||F&&W.push(F)}return W};
$nG=function(y,W){if(!W)return[];var V=_.qK(W,"mainPlaylistEntity"),w;W=(w=y.mainPlaylistEntity)==null?void 0:w[V];w=[];if(W==null||!W.videos)return w;W=_.N(W.videos);for(V=W.next();!V.done;V=W.next()){V=V.value;var t=void 0,F=void 0,I=void 0,P=(t=y)==null?void 0:(F=t.mainPlaylistVideoEntity)==null?void 0:(I=F[V])==null?void 0:I.video;P&&(V=_.T4(P).entityId)&&w.push(V)}return w};
H$v=function(y,W){if(W){var V=_.UB(y,"mainPlaylistEntity",_.qK(W,"mainPlaylistEntity")),w=_.UB(y,"mainPlaylistDownloadStateEntity",_.qK(W,"mainPlaylistDownloadStateEntity"));y=_.UB(y,"ytMainChannelEntity",_.qK(W,"ytMainChannelEntity"));if(w&&V)return Object.assign({},{mainPlaylistEntity:V,mainPlaylistDownloadStateEntity:w},!!y&&{channelEntity:y})}};
RIb=function(y){return XqP(y).sort(function(W,V){return V.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedPlaylistEntities})};
XqP=function(y){var W=y.mainPlaylistDownloadStateEntity,V=[];if(!W)return V;for(var w=_.N(Object.keys(W)),t=w.next();!t.done;t=w.next()){var F=t.value;t=H$v(y,_.T4(F).entityId);var I=void 0;F=Number((I=W[F])==null?void 0:I.addedTimestampMillis);I=isNaN(F)?(0,_.cU)():F;t!==void 0&&V.push({downloadedPlaylistEntities:t,addedTimestampMillis:I})}return V};
asy=function(y){var W,V=(W=y.mainPlaylistVideoEntity)!=null?W:{};return new Set(RIb(y).reduce(function(w,t){w=w===void 0?[]:w;var F,I;t==null||(F=t.mainPlaylistEntity)==null||(I=F.videos)==null||I.forEach(function(P){var C;(P=(C=V[P])==null?void 0:C.video)&&w.push(P)});
return w},[]))};
G6P=function(y){return"downloadedMusicPlaylistEntities"in y};
rry=function(y){return"mainPlaylistEntity"in y&&"mainPlaylistDownloadStateEntity"in y};
b$R=function(y){return"videoEntity"in y&&"channelEntity"in y};
Qxb=function(y){var W=y.musicPlaylistDownloadMetadataEntity,V=[];if(!W)return V;for(var w=_.N(Object.keys(W)),t=w.next();!t.done;t=w.next()){t=t.value;a:{var F=y,I=_.T4(t).entityId;if(I){var P=_.UB(F,"musicPlaylist",_.qK(I,"musicPlaylist"));F=_.UB(F,"musicPlaylistDownloadMetadataEntity",_.qK(I,"musicPlaylistDownloadMetadataEntity"));if(P&&F){P={musicPlaylistEntity:P,musicPlaylistDownloadStateEntity:F};break a}}P=void 0}F=void 0;t=Number((F=W[t])==null?void 0:F.addedTimestampMillis);t=isNaN(t)?(0,_.cU)():
t;P!==void 0&&V.push({downloadedMusicPlaylistEntities:P,addedTimestampMillis:t})}return V};
Z$v=function(y){var W=new Set;y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,"musicPlaylistEntity"in V&&"musicPlaylistDownloadStateEntity"in V){V=_.N(V.musicPlaylistEntity.tracks);for(var w=V.next();!w.done;w=V.next())W.add(w.value)}return W};
ygz=function(y,W){if(W){var V=_.UB(y,"musicTrack",_.qK(W,"musicTrack")),w=_.UB(y,"musicArtist",_.qK(W,"musicArtist"))||{};if((y=Unv(y,W))&&V&&w)return Object.assign({},{musicTrackEntity:V,musicArtistEntity:w},y)}};
WZb=function(y){var W=y.musicTrackDownloadMetadataEntity,V=[];if(!W)return[];W=_.N(Object.keys(W));for(var w=W.next();!w.done;w=W.next()){var t=w.value;w=ygz(y,_.T4(t).entityId);var F=void 0;t=Number((F=_.UB(y,"musicTrackDownloadMetadataEntity",t))==null?void 0:F.addedTimestampMillis);F=isNaN(t)?(0,_.cU)():t;w!==void 0&&V.push({downloadedMusicEntities:w,addedTimestampMillis:F})}return V};
tnu=function(y,W){if(!W)return[];if(Object.values(Vna).includes(W))return wh4(y,W);W=_.qK(W,"musicPlaylist");var V;y=(V=y.musicPlaylist)==null?void 0:V[W];V=[];if(y==null||!y.tracks)return V;y=_.N(y.tracks);for(W=y.next();!W.done;W=y.next())(W=_.T4(W.value).entityId)&&V.push(W);return V};
wh4=function(y,W){var V=new Set,w=Qxb(y).map(function(F){return F.downloadedMusicPlaylistEntities});
w=Z$v(w);w=_.N(w);for(var t=w.next();!t.done;t=w.next())(t=_.T4(t.value).entityId)&&V.add(t);return FZt(y).downloadedMusicEntities.filter(function(F){var I;if((I=F.musicTrackEntity)!=null&&I.videoId){F=F.musicTrackEntity;if(I=W==="PPOM"?!0:!V.has(F.videoId))b:switch(F=F.musicVideoType,W){case "PPSE":I=F==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:I=F!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}F=I}else F=!1;return F}).map(function(F){var I;
return(I=F.musicTrackEntity)==null?void 0:I.videoId})};
FZt=function(y){var W=WZb(y).sort(function(V,w){return w.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:G6P(V)?V.downloadedMusicPlaylistEntities:{}});
y=Qxb(y).sort(function(V,w){return w.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:G6P(V)?V.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:W,downloadedMusicPlaylistEntities:y}};
Nzu=function(y,W){W=_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?tnu(y,W):$nG(y,W);if(!W.length)return"TRANSFER_STATE_UNKNOWN";W=W.map(function(V){return B1P(y,V)});
return E0v(W)};
E0v=function(y){var W=new Set(y);if(W.has("TRANSFER_STATE_FAILED")&&W.size===1)return"TRANSFER_STATE_FAILED";W.delete("TRANSFER_STATE_FAILED");if(W.has("TRANSFER_STATE_UNKNOWN")&&W.size===1)return"TRANSFER_STATE_PRE_TRANSFER";W.delete("TRANSFER_STATE_UNKNOWN");if(W.has("TRANSFER_STATE_PRE_TRANSFER")&&W.size===1||W.size===0)return"TRANSFER_STATE_PRE_TRANSFER";y=W.has("TRANSFER_STATE_TRANSFERRING");W=W.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return y||W?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
jE=function(y){var W=y.mainVideoDownloadStateEntity,V=[];if(!W)return[];W=_.N(Object.keys(W));for(var w=W.next();!w.done;w=W.next()){var t=w.value;if(!ufb(y,_.T4(t).entityId)){w=RB(y,_.T4(t).entityId);var F=void 0,I=void 0;t=(I=Number((F=_.UB(y,"mainVideoDownloadStateEntity",t))==null?void 0:F.addedTimestampMillis))!=null?I:(0,_.cU)();w!==void 0&&V.push({downloadedVideoEntities:w,addedTimestampMillis:t})}}return V};
INL=function(y){return jE(y).sort(function(W,V){return V.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedVideoEntities})};
_.PTn=function(y){var W=asy(y),V=_.$C(y),w=k6z(y),t=jE(y).filter(function(I){var P,C;if((I==null?void 0:(P=I.downloadedVideoEntities)==null?void 0:(C=P.transferEntity)==null?void 0:C.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var d,L;I=I==null?void 0:(d=I.downloadedVideoEntities)==null?void 0:(L=d.videoEntity)==null?void 0:L.key;return _.e("kevlar_use_library_entity")?I&&(w.has(I)||V[I]):I&&!W.has(I)}),F=XqP(y).filter(function(I){return Nzu(y,I.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.GC(t),_.GC(F)).sort(function(I,P){return P.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return g0v(I)})};
CTz=function(y,W){if(W&&mnv(y,W)){var V,w,t=(w=(V=_.UB(y,"playbackData",_.qK(W,"playbackData")))!=null?V:void 0)==null?void 0:w.playerResponseJson;if(t){try{var F=JSON.parse(t);var I=_.UB(y,"transfer",_.qK(W,"transfer")),P=Jrz(y,W);P&&(F=Object.assign({},F,{playerConfig:Object.assign({},F.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+P*1E3}}})}));F.cotn=I==null?void 0:I.cotn}catch(C){}return F}}};
_.v0t=function(y){var W,V,w;y=(w=(V=((W=y.downloadsPageViewConfigurationEntity)!=null?W:{})[_.n2])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?w:{};var t;return(t=_.h(y,O3b))!=null?t:{}};
_.$C=function(y){var W,V,w;y=(w=(V=((W=y.mainDownloadsListEntity)!=null?W:{})[_.dxa])==null?void 0:V.downloads)!=null?w:[];W={};V=_.N(y);for(w=V.next();!w.done;w=V.next())y=void 0,W[(y=w.value.videoItem)!=null?y:""]=!0;return W};
LZG=function(y){var W=_.$C(y);if(Object.keys(W).length===0)return!1;var V=y.mainVideoEntity;if(!V)return!0;V=_.N(Object.keys(V));for(var w=V.next();!w.done;w=V.next()){w=w.value;var t=_.T4(w).entityId;if(W[w]&&!ufb(y,t))return!1}return!0};
_.HE=function(y){var W=_.$C(y);return jE(y).sort(function(V,w){return V.addedTimestampMillis-w.addedTimestampMillis}).map(function(V){return V.downloadedVideoEntities}).filter(function(V){var w;
return(V=V==null?void 0:(w=V.videoEntity)==null?void 0:w.key)&&!!W[V]})};
_.cgv=function(y){var W,V,w;y=(w=(V=((W=y.downloadsPageViewConfigurationEntity)!=null?W:{})[_.n2])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?w:{};var t;return(t=_.h(y,zgP))!=null?t:{}};
g0v=function(y){return"downloadedVideoEntities"in y?y.downloadedVideoEntities:"downloadedPlaylistEntities"in y?y.downloadedPlaylistEntities:{}};
egt=function(y){var W=_.$C(y),V=asy(y),w=jE(y).filter(function(t){var F,I;return(t=t==null?void 0:(F=t.downloadedVideoEntities)==null?void 0:(I=F.videoEntity)==null?void 0:I.key)&&!W[t]&&!V.has(t)});
y=XqP(y);return[].concat(_.GC(w),_.GC(y)).sort(function(t,F){return F.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return g0v(t)})};
_.Xr=function(y){if(!_.e("kevlar_use_library_entity"))return egt(y);var W=jE(y).filter(function(w){var t,F;if(t=w=w==null?void 0:(t=w.downloadedVideoEntities)==null?void 0:(F=t.videoEntity)==null?void 0:F.key){var I,P,C;t=((P=(I=y.mainDownloadsListEntity)==null?void 0:I[xnj])==null?0:(C=P.downloads)==null?0:C.length)?k6z(y).has(w):!1}return t}),V=XqP(y);
return[].concat(_.GC(W),_.GC(V)).sort(function(w,t){return t.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return g0v(w)})};
hgL=function(y){var W=_.$C(y),V=asy(y);return INL(y).filter(function(w){var t;return(w=w==null?void 0:(t=w.videoEntity)==null?void 0:t.key)&&!W[w]&&!V.has(w)})};
o0v=function(y){if(!_.e("kevlar_use_library_entity"))return hgL(y);var W=_.$C(y),V=k6z(y);return INL(y).filter(function(w){var t;return(w=w==null?void 0:(t=w.videoEntity)==null?void 0:t.key)&&!W[w]&&V.has(w)})};
KZz=function(y,W){W=_.qK(W,"settingEntity");var V,w,t;return!!((t=(w=((V=y.settingEntity)!=null?V:{})[W])==null?void 0:w.settingOptionValue)!=null?t:{}).boolValue};
_.aB=function(y){var W=_.HE(y);if(T1y(W))return 0;var V=[];W=_.N(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var t=void 0,F=void 0;if((t=w)==null?0:(F=t.videoEntity)==null?0:F.key)t=_.T4(w.videoEntity.key).entityId,w=y,t=_.qK(t,"mainVideoDownloadStateEntity"),w=_.UB(w,"mainVideoDownloadStateEntity",t),(w=Number(w==null?void 0:w.addedTimestampMillis))&&V.push(w)}return Math.max.apply(Math,_.GC(V))};
_.G4=function(y){return y.ui.richGridMiniMode};
_.r5=function(y){return y.ui.richGridItemsPerRow};
_.phd=function(y){return y.ui.richGridSlimItemsPerRow};
_.i3y=function(y){return y.ui.guideIsExpanded};
_.bg=function(y){return y.ui.miniplayerIsActive};
_.fNP=function(y){return y.ui.singleOptionSurveyIsActive};
_.QD=function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.Tzu=function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.mxj=function(y){return y.ui.inlinePreviewIsActive};
_.Mnv=function(y){return y.ui.inlinePreviewIsEnabled};
_.q8R=function(y){return y.ui.miniplayerPlaybackState};
_.ZH=function(y){return y.ui.isOnline};
_.Uxj=function(y){return y.ui.frostedGlassMode};
_.yY=function(y,W){return sxu(y.entities,W)};
_.W9=function(y,W){return Nzu(y.entities,W)};
uBv=function(y,W){var V;if(W){var w;y=(w=_.UB(y.entities,"offlineVideoPolicy",_.qK(W,"offlineVideoPolicy")))==null?void 0:w.action}else y=void 0;return(V=y)!=null?V:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
S8a=function(y,W){var V;W?(y=_.UB(y.entities,"offlineVideoPolicy",_.qK(W,"offlineVideoPolicy")),y=Number(y==null?void 0:y.expirationTimestamp)):y=void 0;return(V=y)!=null?V:0};
_.DxL=function(y){return _.Jz(y.entities).length};
lNn=function(y,W){return RB(y.entities,W)};
xxj=function(y,W){return H$v(y.entities,W)};
VY=function(y,W){return(y=RB(y.entities,W))?_.KIt([y]):0};
_.kd4=function(y,W){var V=_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(V){var w=y.entities;var t=tnu(w,W);if(t.length){var F=[];t=_.N(t);for(var I=t.next();!I.done;I=t.next())(I=ygz(w,I.value))&&F.push(I);w=F}else w=[]}else w=nou(y.entities,W);var P;if(V){var C=y.entities;W?(W=_.qK(W,"musicPlaylist"),C=(P=C.musicPlaylist)==null?void 0:P[W],P=C!=null&&C.tracks?C.tracks.length:0):P=0}else P=y.entities,W?(W=_.qK(W,"mainPlaylistEntity"),P=(C=P.mainPlaylistEntity)==null?void 0:C[W],P=P!=null&&P.videos?
P.videos.length:0):P=0;return w.length!==P?0:w?pqd(w):0};
_.siu=function(y){return y.download.isLeaderTab};
_.AgR=function(y,W,V){if(!W&&V){var w=y.entities;if(V){var t=fsz(V),F,I;W=(I=(F=_.UB(w,"offlineabilityEntity",_.qK(t,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?I:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else F=y.entities,W?(I=fsz(W),W=(t=(w=_.UB(F,"offlineabilityEntity",_.qK(I,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return W};
Y8P=function(y,W){y=y.entities;if(W){W=fsz(W);var V,w;W=(w=(V=_.UB(y,"offlineabilityEntity",_.qK(W,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else W="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return W};
_.Bzv=function(y){var W=y.entities;y=_.ZH(y);var V=KZz(W,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.e("kevlar_modern_downloads_page")&&V)var w=!1;else{var t,F;W=(F=(t=((w=W.downloadsPageViewConfigurationEntity)!=null?w:{})[_.n2])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?F:{};w=y?!!W.visibleWithConnection:!!W.visibleWithoutConnection}return w};
_.Jgz=function(y){return KZz(y.entities,"SMART_DOWNLOADS_ENABLED")};
_.Rg4=function(y){return LZG(y.entities)};
ji4=function(y){return _.HE(y.entities).every(function(W){var V;return(W==null?void 0:(V=W.transferEntity)==null?void 0:V.transferState)&&!oon.includes(W.transferEntity.transferState)})};
_.$xv=function(y){var W,V,w,t=(w=(V=((W=y.entities.downloadsPageViewConfigurationEntity)!=null?W:{})[_.n2])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?w:{};return _.ZH(y)?!!t.visibleWithConnection:!!t.visibleWithoutConnection};
_.n0n=function(y,W){return ufb(y.entities,W)};
H3R=function(y,W){if(W){var V,w;y=(w=(V=_.UB(y.entities,"downloadStatusEntity",_.qK(W,"downloadStatusEntity")))==null?void 0:V.downloadState)!=null?w:"DOWNLOAD_STATE_UNKNOWN"}else y="DOWNLOAD_STATE_UNKNOWN";return y};
wP=function(y,W){return Jrz(y.entities,W)};
rg4=function(y){y=_.XhL(y);var W=y.hours===void 0?0:y.hours,V=y.minutes===void 0?0:y.minutes,w=y.seconds===void 0?0:y.seconds,t=W>0;y=[];t&&(W=_.aNy(W),y.push(W));W=t;W=W===void 0?!1:W;V=(["af","be","lt"].includes(_.tx)||W)&&V<10?Gdy().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);y.push(V);V=Gdy().format(w);y.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(_.tx)&&(V=".");return y.join(V)};
_.XhL=function(y){var W=y.hours||0,V=y.minutes||0,w=y.seconds||0;W=w+V*60+W*3600+(y.days||0)*86400+(y.weeks||0)*604800+(y.months||0)*2629800+(y.years||0)*31557600;if(W<=0)return{hours:0,minutes:0,seconds:0};y=W;W=Math.floor(y/3600);y%=3600;V=Math.floor(y/60);w=Math.floor(y%60);return{hours:W,minutes:V,seconds:w}};
_.aNy=function(y){y=(new Intl.NumberFormat("en-u-nu-latn")).format(y);var W=["fr"],V="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(_.tx)?y.replace(",","\u00a0"):W.includes(_.tx)?y.replace(",","\u202f"):V.includes(_.tx)?y.replace(",","."):y};
Gdy=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
b3b=function(y){try{return(new _.F4(5)).format(y)}catch(W){}};
ET=function(y){return{thumbnailOverlayDownloadingRenderer:{state:y}}};
QiP=function(y){if(y=b3b(y))return{thumbnailOverlaySidePanelRenderer:{text:_.oB(y),icon:{iconType:"PLAYLISTS"}}}};
Z3v=function(){var y=_.u5("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.oB(y),icon:{iconType:"PLAY_ALL"}}}};
ySv=function(y){y=_.No(y,2);return _.tx!=="ru"&&_.tx!=="es_419"&&_.tx!=="es-419"&&_.tx!=="es"&&_.tx!=="es_US"&&_.tx!=="es-US"&&_.tx!=="fr"&&_.tx!=="pl"&&_.tx!=="it"&&_.tx!=="nl"&&_.tx!=="uk"&&_.tx!=="fr_CA"&&_.tx!=="fr-CA"||y===""?y:y[0].toLocaleUpperCase()+y.substring(1)};
VLb=function(y){return function(W){var V=y(),w=_.No(W,V.dateFormat);W=_.No(W,V.timeFormat);var t=WPR.DATETIMEFORMATS[V.joinerStyle];t=t.replace(/'(?!')/g,"");t=t.replace("{0}",W);t=t.replace("{1}",w);return V.capitalize(t)}};
wPt=function(y){return y?typeof y.seconds==="string"&&(y.nanos===void 0||typeof y.nanos==="number"):!1};
tLn=function(y){return new Date(Number(y.seconds)*1E3+(y.nanos||0)*1E-6)};
_.No=function(y,W){if(typeof y.getTime==="function")y={date:y};else if(wPt(y))y={date:tLn(y)};else if(typeof wPt(y.timestamp)&&typeof y.i18nInternalSecondsEastOfUtc==="number")y={date:tLn(y.timestamp),timeZone:Ic(-y.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(y));var V=y;y=V.date;V=V.timeZone;W=FPy(W).format(y,V);_.tx==="zh-TW"&&(y=V?Number(FPy("H").format(y,V)):y.getHours(),W=y<5?W.replace("\u4e0a\u5348","\u51cc\u6668"):y<8?W.replace("\u4e0a\u5348","\u65e9\u4e0a"):y<12?
W.replace("\u4e0a\u5348","\u4e0a\u5348"):y<13?W.replace("\u4e0b\u5348","\u4e2d\u5348"):y<19?W.replace("\u4e0b\u5348","\u4e0b\u5348"):W.replace("\u4e0b\u5348","\u665a\u4e0a"));return W};
FPy=function(y){if(EKR.has(y))return EKR.get(y);var W=NdL(y);W=IkP(W);gKd!==!0&&(gKd=!0);Pit=!0;Pit=!1;W=new gP(W,WPR);EKR.set(y,W);return W};
NdL=function(y){return(new gP(y,WPR)).patternParts_.map(function(W){return W.type===0?"'"+W.text+"'":W.text}).join("")};
IkP=function(y){return _.tx==="en"||_.tx==="es_US"||_.tx==="es-US"?y:y.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(W,V,w){return"H".repeat(V.length)+w})};
eYa=function(y,W){CiG||(_.P9=_.OcG,CiG=new vKG);var V=CiG;a:if(y=di4(y),W=di4(W||new Date),y>W)V=y.getTime()-W.getTime()>6048E5?_.No(y,1):LPy(y);else{for(var w=0;zYv(y,12*(w+1))<W;)++w;if(w>0)V=V.format(-w,0);else{for(w=0;zYv(y,w+1)<W;)++w;if(w>0)V=V.format(-w,2);else{y=W.getTime()-y.getTime();W=_.N(cSP);for(w=W.next();!w.done;w=W.next()){w=w.value;var t=w.unit,F=Math.floor(y/w.unitDuration);if(F>=(w.threshold===void 0?1:w.threshold)){V=V.format(-F,t);break a}}V=V.format(-0,7)}}}return V};
di4=function(y){if(typeof y.getTime==="function")return y;if(wPt(y))return tLn(y);throw Error("Nf`"+JSON.stringify(y));};
zYv=function(y,W){for(var V=0,w;;++V)if(w=new Date(y.getFullYear(),y.getMonth()+W,y.getDate()-V,y.getHours(),y.getMinutes(),y.getSeconds()),w.getMonth()===(y.getMonth()+W)%12)return w};
_.CO=function(y){return{runs:[{text:y}]}};
_.OT=function(y){if(y&&y.simpleText)return y.simpleText;var W="";if(y&&y.runs)for(var V=0;V<y.runs.length;V++)y.runs[V].text&&(W+=y.runs[V].text);return W};
oKa=function(y,W,V,w){return y.videoEntity&&!y.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"?[ET("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Az(y.policyEntity)&&W!=="TRANSFER_STATE_FAILED"&&W!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?W==="TRANSFER_STATE_PAUSED_BY_USER"?[ET("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.YC(W)?[ET("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:y.videoEntity.lengthSeconds?hYy(y.videoEntity.lengthSeconds,w):[]:
[ET("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
hYy=function(y,W){var V=[{thumbnailOverlayTimeStatusRenderer:{text:_.oB(rg4({seconds:y})),style:"DEFAULT"}}];W&&(y=W<=0||y<=0?0:W>=y?100:Math.ceil(W*100/y),y>0&&V.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:y}}));return V};
KPz=function(y,W,V,w,t){if(W==="TRANSFER_STATE_UNKNOWN"||!y)return{};if(_.YC(W)||W==="TRANSFER_STATE_PRE_TRANSFER")var F=[ET("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var I,P;if(W==="TRANSFER_STATE_COMPLETE"&&((I=y.mainPlaylistEntity)==null?0:(P=I.videos)==null?0:P.length)){if(_.e("web_modern_collections_v2")){var C;var d=(F=y.mainPlaylistEntity)==null?void 0:(C=F.videos)==null?void 0:C.length;F=(F=b3b(d))?{thumbnailOverlayBottomPanelRenderer:{text:_.oB(F),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var L;F=QiP((d=y.mainPlaylistEntity)==null?void 0:(L=d.videos)==null?void 0:L.length)}var z;F=[Z3v(),Object.assign({},(z=F)!=null?z:{})]}else F=[]}z=F;a:if(W==="TRANSFER_STATE_PRE_TRANSFER")V=K2(_.u5("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE")V=K2(_.u5("WAITING_TO_DOWNLOAD"));else if(_.YC(W))V=Math.floor(V*100).toString(),V=K2(_.u5("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%"));else{if(w&&(_.e("playlist_is_offline_selector_killswitch")&&
(t=_.hs().resolve(_.NN).isNetworkAvailable()),t)){V=ugb(_.u5("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),qJP(w));break a}V=void 0}W=W==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.u5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},z.length?{thumbnailOverlays:z}:{},V?{viewPlaylistText:V}:{viewPlaylistText:_.CO("")},W.length?{badges:W}:{})};
pPj=function(y,W,V,w,t,F){if(W==="TRANSFER_STATE_UNKNOWN"||!y)return{};if(w==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var I=oKa(y,W,w);if(y.videoEntity&&!y.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"){var P=_.u5("WAITING_TO_DOWNLOAD");if(P)return{shortViewCountText:_.CO(P),publishedTimeText:void 0,thumbnailOverlays:I}}if(!Az(y.policyEntity)){F=y.policyEntity&&!i$L(y.policyEntity)?_.u5("DOWNLOAD_EXPIRED",{},"Download expired"):
_.u5("TRANSFER_FAILED",{},"Download failed");var C;if((C=y.policyEntity)==null?0:C.shortMessageForDisabledAction)F=y.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:K2(F),publishedTimeText:void 0,thumbnailOverlays:I}}if(W==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.CO(_.u5("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:I};if(W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.CO(_.u5("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:I};if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(C=_.u5("WAITING_TO_DOWNLOAD"),w==="DOWNLOAD_STATE_PAUSED"&&(C=_.u5("DOWNLOAD_PAUSED",{},"Download paused")),C))return{shortViewCountText:_.CO(C),publishedTimeText:void 0,thumbnailOverlays:I};if(_.YC(W))return y=Math.floor(V*100).toString(),{shortViewCountText:_.CO(_.u5("DOWNLOADING_PERCENT",{percent:y},"Downloading... "+y+"%")),publishedTimeText:void 0,thumbnailOverlays:I};W=void 0;y.videoEntity.publishedTimestampMillis&&
(W=new Date,t&&(W=new Date(t)),W=K2(eYa(new Date(Number(y.videoEntity.publishedTimestampMillis)),W)));t=[];_.e("kevlar_woffle_badge_killswitch")||(t=[{metadataBadgeRenderer:{label:_.u5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var d;y=K2((d=y.videoEntity.localizedStrings)==null?void 0:d.viewCount);return Object.assign({},F?{shortViewCountText:void 0}:{shortViewCountText:y},F?{}:{publishedTimeText:W},{badges:t,thumbnailOverlays:I})};
fkz=function(y,W){y=y===void 0?icu:y;switch(W.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:W.payload.playlistId,inviteLinkURL:W.payload.inviteLinkUrl};default:return y}};
mit=function(y,W){y=y===void 0?Tdj:y;switch(W.type){case "SET_CURRENT_FORM_ID":return W=W.payload.formId,y.currentFormId===W?y:{currentFormId:W,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var V=W.payload;W=V.groupId;V=V.command;if(y.currentFormId){var w=Object.assign({},y.commandsMap);w[W]=V;y=Object.assign({},y,{commandsMap:w})}return y;case "RESET_COMMAND_MAP":return Object.assign({},y,{commandsMap:{}});default:return y}};
qAd=function(y,W){y=y===void 0?MLG:y;switch(W.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},y,{guideIsExpanded:W.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},y,{scrollAtTop:W.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},y,{guideIsVisibleButNotPersistent:W.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},y,{miniplayerIsActive:W.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},y,{singleOptionSurveyIsActive:W.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},y,{slimlineSurveyRatingSelectedIndex:W.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},y,{richGridMiniMode:W.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},y,{richGridItemsPerRow:W.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},y,{richGridSlimItemsPerRow:W.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},y,{richGridContainerWidth:W.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},y,{richGridStyle:W.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},y,{currentPageType:W.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},y,{inlinePreviewIsActive:W.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},y,{inlinePreviewIsEnabled:W.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},y,{darkModeIsEnabled:W.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
y,{miniplayerPlaybackState:W.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},y,{tabGesturesIsActive:W.payload});case "SET_ONLINE_STATUS":return Object.assign({},y,{isOnline:W.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},y,{chipBarIsSticky:W.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},y,{frostedGlassMode:W.payload});default:return y}};
uSd=function(y,W){y=y===void 0?Uiz:y;switch(W.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},y,{transcription:W.payload});case "SET_OVERLAY_STATE":return Object.assign({},y,{overlay:W.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return y}};
JSu=function(){return qB(Object.assign({},{continuation:SAt,entities:Xw4,download:Din,reportChannelAbuse:lkP,share:xib,talkToRecs:kqb,ui:qAd,voiceSearch:uSd,watch:sbu,ypc:ASn,shorts:YAt,radioButtonGroup:mit,collabInviteLink:fkz},Bdd))};
op4=function(){return _.e("web_player_entities_middleware")?new v9(JSu(),[ejz,hjd]):new v9(JSu(),[ejz])};
_.dP=function(){KKd||(KKd=op4());return KKd};
pBn=function(y,W,V){if(y.length)return{titleText:_.oB(W!=null?W:_.u5("DOWNLOADS",void 0,"Downloads")),contents:y.map(function(w){var t=w.videoEntity;w={videoId:t.videoId,title:K2(t.title),shortBylineText:K2(w.channelEntity.title),thumbnail:t.thumbnail};var F=t.videoId?wP(_.dP().getState(),t.videoId):0;t.videoId&&V?w.navigationEndpoint=_.hz(t.videoId,V,void 0,void 0,F):t.videoId&&(w.navigationEndpoint=MxL(t.videoId,F,t.lengthSeconds));t.lengthSeconds&&(w.thumbnailOverlays=hYy(t.lengthSeconds,F));return{playlistPanelVideoRenderer:w}}),
totalVideos:y.length}};
ihR=function(y){return(y=(0,_.Gc.getValueByKeys)(y,"playlistId"))?{playlistId:y}:null};
f0b=function(){return{}};
T04=function(y,W){return new _.qN(function(V,w){y.then(function(t){if(t){if(t=W(t))return V(t);w()}},w)})};
mCa=function(y){var W,V,w,t=(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.autoplay)==null?void 0:w.autoplay,F,I,P;W=(F=y.contents)==null?void 0:(I=F.twoColumnWatchNextResults)==null?void 0:(P=I.playlist)==null?void 0:P.playlist;return t&&W&&W.playlistId?{rawResponse:y,autoplayRenderer:t,playlistPanelRenderer:W,playlistId:W.playlistId}:null};
qmj=function(y){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(y.length===1)return y[0];var V=Mtt[W];if(V){V=new RegExp(V);for(var w=_.N(y),t=w.next();!t.done;t=w.next())if(t=t.value,V.exec(t))return t}var F=[];Object.entries(Mtt).forEach(function(I){var P=_.N(I);I=P.next().value;P=P.next().value;W!==I&&F.push(P)});
V=new RegExp(F.join("|"));y.sort(function(I,P){return I.length-P.length});
w=_.N(y);for(t=w.next();!t.done;t=w.next())if(t=t.value,!V.exec(t))return t;return y[0]};
_.LO=function(y){return"/youtubei/v1/"+qmj(y)};
_.zw=function(y){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:y}}}}};
_.eW=function(y){return _.zw(_.CO(y))};
UCd=function(y,W){var V={mode:"NORMAL"};y&&(V.autoplayVideo=y.navigationEndpoint,V.nextButtonVideo=y.navigationEndpoint);W&&(V.previousButtonVideo=W.navigationEndpoint);return V};
DCv=function(y,W,V){if(!V||!V.sets)return{sets:[UCd(y,W)]};var w=V.sets.find(function(I){return I.mode==="NORMAL"}),t=(0,_.Gc.unsafeClone)(V);
if(!w)return t.sets.push(UCd(y,W)),t;if(!y)return V;w=_.Gc.getValueByKeys.apply(null,[w].concat(_.GC(uVu)));var F=_.Gc.getValueByKeys.apply(null,[y].concat(_.GC(Smb)));if(w===F)return V;t.sets=t.sets.filter(function(I){return I.mode!=="NORMAL"});
t.sets.push(UCd(y,W));return t};
l0v=function(y){return!!y.playlistPanelVideoRenderer&&!y.playlistPanelVideoRenderer.unplayableText};
xCn=function(y){return!!y.playlistPanelVideoRenderer&&!!y.playlistPanelVideoRenderer.title};
k5y=function(y,W){if(W.contents&&!(y>=W.contents.length)&&(y=W.contents.slice(y).find(l0v)))return y.playlistPanelVideoRenderer};
sY4=function(y,W){if(W.contents)return(W=W.contents.find(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===y}))?W.playlistPanelVideoRenderer:void 0};
AZy=function(y,W){return W.contents?W.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===y}):-1};
YmR=function(y,W){return W.contents?W.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.playlistSetVideoId===y}):-1};
B0j=function(y,W){y.contents&&W!==-1&&y.contents.splice(W,1).length===1&&y.totalVideos!==void 0&&(--y.totalVideos,delete y.videoCountText)};
_.JZu=function(y){var W=[];if(!y||!y.contents)return W;y=_.N(y.contents);for(var V=y.next();!V.done;V=y.next())V=V.value,V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId&&W.push(V.playlistPanelVideoRenderer.videoId);return W};
_.Rj4=function(y){if(y&&y.contents)return(y=y.contents.find(function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.selected})||y.contents[y.currentIndex])?y.playlistPanelVideoRenderer:void 0};
jYt=function(y,W,V,w,t,F,I){t=t===void 0?!1:t;F=F===void 0?!1:F;I=I===void 0?!1:I;if(y.contents&&y.contents.length!==0){w&&(y.contents=y.contents.filter(w));w=y.contents.length;for(var P=0;P<w;P++){var C=y.contents[P].playlistPanelVideoRenderer;C&&(P===W?(F&&delete C.menu,C.indexText=_.CO("\u25b6")):t||y.isInfinite||C.indexText===void 0?delete C.indexText:C.indexText=_.CO((P+1+V).toString()))}y.currentIndex=W+V;I&&(delete y.videoCountText,y.totalVideos=w)}};
_.hx=function(y){y=$Cv(y);if(y){var W=y.length;var V=-15%W;V<0&&(V=W+V);y=y.slice(W-V)+y.slice(0,W-V)}else y="";V="";for(W=0;W<y.length&&y[W]!==npP;W++)V+=y[W];return V};
_.Hhz=function(y,W){var V=document.body;W=W===void 0?function(P){return P}:W;
var w,t=null;y=_.N(y);for(w=y.next();!w.done;w=y.next()){var F=w.value;w="div";F[2]&&(w=W(F[2]));w=document.createElement(w);t||(t=w);var I=F[0];F=F[1];I&&(w.id=W(I));if(F)for(F=_.N(F),I=F.next();!I.done;I=F.next())w.classList.add(W(I.value));V.appendChild(w);V=w}return[t,V]};
XBz=function(y,W){for(var V="",w=0;w<W;w++)V+=y.charAt(Math.floor(Math.random()*y.length));return V};
oc=function(y){return XBz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",y)};
KO=function(y){return XBz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",y)};
pO=function(y){return XBz("0123456789",y)};
iN=function(){var y=performance.now(),W=new Date;var V="2."+W.getFullYear()+String(W.getMonth()+1).padStart(2,"0")+String(W.getDate()).padStart(2,"0");for(var w,t=Math.floor(Math.random()*11)+15,F=[],I=0;I<t;I++)F.push(Math.floor(Math.random()*26476865)+24547720);w=F.join(",");var P=oc(10),C=oc(100),d=oc(102),L=oc(106),z=oc(108),c=oc(11),K=oc(1140),f=oc(123),U=oc(14),l=oc(16),x=oc(1900),B=oc(23),r=oc(26),H=oc(34),a=oc(397),b=oc(44),Fv=oc(5),Py=oc(72),du=oc(74),mL=oc(75),un=oc(88),hv=oc(91),$P="rr3---sn-q4flrn7r rr2---sn-ntqe6nee rr2---sn-q4fl6ns6 rr5---sn-hgn7rn7y rr2---sn-5hneknek rr1---sn-q4flrne6 rr3---sn-q4fl6nlz rr4---sn-q4fzene7 rr3---sn-5hne6nz6 rr1---sn-q4fzen7y rr2---sn-q4flrn7k rr2---sn-q4fzene7 rr5---sn-q4flrne7 rr1---sn-q4fzen7e rr4---sn-5hnekn7k rr4---sn-q4fl6nds rr2---sn-5hne6nzs rr5---sn-q4flrnez rr4---sn-q4fl6nlz rr3---sn-q4fl6ndz".split(" ");
var sz=$P[Math.floor(Math.random()*$P.length)];var Wz=(new Date("2010-01-01")).getTime();var mf=(new Date(Wz+Math.random()*((new Date).getTime()-Wz))).toISOString().split("T")[0];for(var OE,Qj=[],Kq=0;Kq<4;Kq++)Qj.push(Math.floor(Math.random()*100));OE=Qj.join(".");var zR=Number(pO(5)),l2=Number(pO(6)),lt=Number(pO(7)),yu=Number(pO(9)),Na=pO(1),F6=pO(10),TR=pO(16),eP=pO(19),hA=pO(2),jQ=pO(20),Fy=pO(21),Wd=pO(3),Pz=pO(4),b2=pO(5),vd=pO(6),Mr=pO(7),u2=pO(8),ov=pO(9);var v7=XBz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Ce=[KO(5),KO(5),KO(5)].join("%2C"),MG=[pO(3),pO(5),pO(5)].join("%2C"),b5=KO(0),GR=KO(1),ne=KO(10),FM=KO(108),Ex=KO(11),BM=KO(12),qG=KO(13),bh=KO(14),bz=KO(15),tU=KO(16),Qm=KO(17),TG=KO(18),YP=KO(19),Hy=KO(2),pq=KO(20),Pd=KO(22),xR=KO(23),Ke=KO(24),i2=KO(266),eQ=KO(3),ut=KO(30),oG=KO(34),vz=KO(35),TC=KO(36),x_=KO(4),YR=KO(40),U9=KO(43),Qi=KO(47),Z2=KO(5),Xv=KO(6),dW=KO(7),Hd=KO(75),VG=KO(8),dU=KO(80),DS=KO(9),Ku="https://www."+KO(12)+".com",dg={},GW={},Vw={},k3u={},wX={},Zl={},yM={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:w}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:V},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+KO(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:V},{key:"client.name",value:"WEB"},{key:"client.fexp",value:w}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Fy+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+KO(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:YR,ypcGetOfflineUpsellEndpoint:{params:dU}},trackingParams:vz+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&cnr="+hA+"&ratebypass=yes&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&c=WEB&txp="+Mr+"&n="+l+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:l2,width:640,height:360,lastModified:TR,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Mr,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+MG+"&mn="+
Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&cnr="+hA+"&ratebypass=yes&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&c=WEB&txp="+Mr+"&n="+l+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+FM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:l2,width:1280,
height:720,lastModified:TR,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Mr,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+Ce+"&ms="+
Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:lt,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lt,approxDurationMs:Mr},{itag:248,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+Ce+"&ms="+Ce+"&mv="+
GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:lt,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:399,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:lt,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:lt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:136,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:lt,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:l2,approxDurationMs:Mr},{itag:247,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+
Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:lt,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:398,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+ov+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:lt,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:ov,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:135,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:l2,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:l2,approxDurationMs:Mr},{itag:244,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+
Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+FM+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:l2,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:397,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:l2,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:134,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:l2,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:l2,highReplication:!0,approxDurationMs:Mr},{itag:243,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:l2,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:396,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:l2,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:133,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:l2,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:l2,approxDurationMs:Mr},{itag:242,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+
Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:l2,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:395,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:l2,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:l2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:160,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:l2,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zR,approxDurationMs:Mr},{itag:278,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+MG+"&mn="+
Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:l2,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:394,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&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="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=video%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:zR,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:zR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Mr},{itag:140,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=audio%2Fmp4&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:l2,
initRange:{start:"0",end:"631"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:l2,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Mr,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+
hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=audio%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+Mr+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:zR,initRange:{start:"0",end:"265"},indexRange:{start:Wd,
end:Pz},lastModified:TR,contentLength:Mr,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zR,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Mr,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=audio%2Fwebm&ns="+
Ke+"&gir="+eQ+"&clen="+Mr+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:zR,initRange:{start:"0",end:"265"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:Mr,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:zR,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Mr,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+sz+".googlevideo.com/videoplayback?expire="+F6+"&ei="+B+"&ip="+OE+"&id=o-AF"+U9+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+MG+"&mn="+Ce+"&ms="+Ce+"&mv="+GR+"&mvi="+Na+"&pl="+hA+"&initcwndbps="+Mr+"&siu="+Na+"&spc="+b+"&vprv="+Na+"&svpuc="+Na+"&mime=audio%2Fwebm&ns="+Ke+"&gir="+eQ+"&clen="+u2+"&dur="+u2+"&lmt="+TR+"&mt="+F6+"&fvip=3&keepalive="+eQ+"&c=WEB&txp="+
Mr+"&n="+tU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:l2,initRange:{start:"0",end:"265"},indexRange:{start:Wd,end:Pz},lastModified:TR,contentLength:u2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:l2,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Mr,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="+ov+"&docid="+c+"&ei="+B+"&feature="+P+"&fexp="+b5+"&ns="+Hy+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+GR+"&el="+ne+"&len="+Pz+"&of="+Pd+
"&uga="+hA+"&vm="+i2},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ov+"&docid="+c+"&ei="+B+"&feature="+P+"&fexp="+b5+"&ns="+Hy+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+GR+"&el="+ne+"&len="+Pz+"&of="+Pd+"&uga="+hA+"&vm="+i2},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ov+"&docid="+c+"&ei="+B+"&feature="+P+"&fexp="+b5+"&ns="+Hy+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
GR+"&el="+ne+"&len="+Pz+"&of="+Pd+"&uga="+hA+"&vm="+i2},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+B+"&m="+un+"&oid="+Pd+"&plid="+l+"&pltype="+dW+"&ptchn="+Pd+"&ptk="+U+"&video_id="+c},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ov+"&docid="+c+"&ei="+B+"&event="+bh+"&feature="+P+"&fexp="+b5+"&ns="+Hy+"&plid="+l+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+GR},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+c+"&ei="+B+"&feature="+
P+"&len="+Pz+"&ns="+Hy+"&plid="+l+"&ver="+Na,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+c+"&caps="+eQ+"&opi="+ov+"&xoaf="+Na+"&hl="+Hy+"&ip="+OE+"&ipbits="+Na+"&expire="+F6+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+OE+"&key="+eQ+"&lang="+Fv,name:{simpleText:ne},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+c+"&caps="+eQ+"&opi="+ov+"&xoaf="+Na+"&hl="+Hy+"&ip="+OE+"&ipbits="+Na+"&expire="+F6+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+OE+"&key="+eQ+"&kind="+eQ+"&lang="+Hy,name:{simpleText:YP},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:Ex,title:qG,lengthSeconds:"1155",keywords:[BM,Z2,bz,BM],
channelId:Ke,isOwnerViewing:!1,shortDescription:Qm,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+oG,width:168,height:94},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+oG,width:196,height:110},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+H,width:246,height:138},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+H,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
c+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Mr,author:qG,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Mr,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Pd+"/featured_channel.jpg?v="+VG,width:40,height:40}]},trackingParams:vz+"=",navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ke,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ke}},channelName:qG,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:BM}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ke,showPreferences:!1,subscribedButtonText:{runs:[{text:Xv}]},unsubscribedButtonText:{runs:[{text:bz}]},trackingParams:vz+"=",unsubscribeButtonText:{runs:[{text:Xv}]},serviceEndpoints:[{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Ke],params:VG}},{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:YR,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:vz+"=",dialogMessages:[{runs:[{text:Z2},{text:qG},{text:tU}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ex}]},serviceEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ke],params:VG}},accessibility:{label:bz},trackingParams:vz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qG}]},accessibility:{label:Ex},trackingParams:vz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Z2}},unsubscribeAccessibility:{accessibilityData:{label:TG}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:u2},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ke],params:VG}},unsubscribeCommand:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ke],params:VG}},addToWatchLaterCommand:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Ex,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Ex}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+c+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+TC+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
c+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Ex,width:1280,height:720},title:{simpleText:x_},description:{simpleText:x_},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+TG,externalChannelId:Ke,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:Mr,category:"Travel & Events",publishDate:mf,ownerChannelName:qG,uploadDate:mf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:YP},trackingParams:vz+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:YR,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:vz+"="}}],headerText:{simpleText:Z2},icon:{infoCardIconRenderer:{trackingParams:vz+"="}},closeButton:{infoCardIconRenderer:{trackingParams:vz+"="}},trackingParams:vz+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:vz+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Ex+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:v7,interpreterSafeUrl:(dg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+ut+".js",dg),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:YP},{text:BM,bold:!0}]},endpoint:{clickTrackingParams:YR,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:vz+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:bz}]},actionButton:{buttonRenderer:{text:{runs:[{text:BM}]},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+c,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
c,target:"TARGET_NEW_WINDOW"}},trackingParams:vz+"="}},trackingParams:vz+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Py+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Py+"=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:Mr,endMs:Mr,title:{accessibility:{accessibilityData:{label:tU}},simpleText:BM},metadata:{simpleText:VG},callToAction:{simpleText:qG},dismiss:{simpleText:x_},endpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ke,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ke}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:bz}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ke,showPreferences:!1,
subscribedButtonText:{runs:[{text:BM}]},unsubscribedButtonText:{runs:[{text:bz}]},trackingParams:vz+"=",unsubscribeButtonText:{runs:[{text:Qm}]},serviceEndpoints:[{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ke],params:VG}},{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:YR,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:vz+
"=",dialogMessages:[{runs:[{text:pq},{text:pq},{text:DS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Z2}]},serviceEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ke],params:VG}},accessibility:{label:bz},trackingParams:vz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:tU}]},
accessibility:{label:ne},trackingParams:vz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:TG}},unsubscribeAccessibility:{accessibilityData:{label:Xv}}}},trackingParams:vz+"=",isSubscribe:!0,id:jQ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+H,width:168,height:94},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+oG,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+H,width:246,height:138},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+TC+"G&rs="+H,width:336,height:188},{url:"https://i.ytimg.com/vi/"+c+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Mr,endMs:Mr,title:{accessibility:{accessibilityData:{label:VG}},simpleText:TG},metadata:{simpleText:Ex},endpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Ex,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Ex,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+sz+".googlevideo.com/videoplayback?source=youtube&oeis="+Na+"&c=WEB&oad="+Pz+"&ovd="+Pz+"&oaad="+b2+"&oavd="+b2+"&ocs="+Wd+"&oewis="+Na+"&oputc="+Na+"&ofpcc="+Na+"&siu="+Na+"&msp="+Na+"&odepv="+Na+
"&id=o-AF"+U9+"&ip="+OE+"&initcwndbps="+Mr+"&mt="+F6+"&oweuc="+b5}}}}},trackingParams:vz+"=",id:jQ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:tU}},simpleText:VG},style:"DEFAULT"}}]}}],startMs:Mr,trackingParams:vz+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Na,offsetEndMilliseconds:b2},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";ord="+F6+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Wd+";dc_sk="+Na+";dc_ctype="+hA+";dc_ref=http://www.youtube.com/video/"+Ex+";dc_pubid="+Na+";dc_btype=23?gclid="+hv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Na+"&ns="+Na+"&event="+Na+"&device="+Na+"&content_v="+c+"&el="+ne+"&ei="+B+"&devicever="+V+"&bti="+Mr+"&format="+vd+"&break_type="+Na+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Na+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+OE+"&slot_pos="+Na+"&slot_len="+Na+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+MG+"&ad_len="+b2+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Ex+"&aqi="+B+"&ad_rmp="+Na+"&sli="+Na}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+
";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&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"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&ctype="+Wd+"&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"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_engaged_view&ctype="+Wd+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+eP+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&dc_pubid="+Na+"&dc_exteid="+jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Na},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&avm="+Na+"&dc_pubid="+Na+"&dc_exteid="+
jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&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="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
d+"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Na},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&dc_pubid="+Na+"&dc_exteid="+jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:YR,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+
Wd+"&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/"+c+"/mqdefault.jpg",width:320,height:180}]},trackingParams:vz+"="},trackingParams:vz+
"=",templatedCountdown:{templatedAdText:{text:YP,isTemplated:!0,trackingParams:vz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Xv,isTemplated:!1,trackingParams:vz+"="},trackingParams:vz+"="}},trackingParams:vz+"=",skipOffsetMilliseconds:5E3}},trackingParams:vz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Z2},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Ex,isTemplated:!1,trackingParams:vz+"="},trackingParams:vz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Qm,isTemplated:!0,trackingParams:vz+"="}},trackingParams:vz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:YR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(GW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+Hy+"&origin=www.youtube.com&ata_theme="+x_,GW),trackingParams:vz+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:vz+"="}},hoverText:{runs:[{text:Z2}]},trackingParams:vz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qi+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:vz+"="},headline:{text:BM,isTemplated:!1,trackingParams:vz+"="},description:{text:Ex,
trackingParams:vz+"="},actionButton:{buttonRenderer:{text:{simpleText:VG},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"="}},startMs:Na,trackingParams:vz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pq},elementId:TG}},elementId:TG,trackingParams:vz+"=",legacyInfoCardVastExtension:TG,sodarExtensionData:{siub:TG,bgub:dW,scs:Z2,bgp:Ex},externalVideoId:Ex,adLayoutLoggingData:{serializedAdServingDataEntry:bh},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qi+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:vz+"="},
headline:{text:bh,isTemplated:!1,trackingParams:vz+"="},description:{text:TG,isTemplated:!1,trackingParams:vz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ex},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+
jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+
Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:vz+"="}},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+
ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+
f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:vz+"="},abandonCommands:{commands:[{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&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="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+
Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:YR,commandExecutorCommand:{commands:[{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:dW,isTemplated:!1,trackingParams:vz+
"="},trackingParams:vz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ne},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+Mr+";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="+ov+";dc_trk_cid="+ov+";ord="+F6+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Wd+";dc_sk="+Na+";dc_ctype="+hA+";dc_ref=http://www.youtube.com/video/"+Ex+";dc_pubid="+Na+";dc_btype=23?gclid="+hv+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Na+"&ns="+Na+"&event="+Na+"&device="+Na+"&content_v="+c+"&el="+ne+"&ei="+B+"&devicever="+V+"&bti="+Mr+"&format="+vd+"&break_type="+Na+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Na+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+OE+"&slot_pos="+Na+"&slot_len="+Na+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
MG+"&ad_len="+b2+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Ex+"&aqi="+B+"&ad_rmp="+Na+"&sli="+Na}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+
r+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&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"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&ctype="+Wd+"&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"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_engaged_view&ctype="+Wd+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+
Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&dc_pubid="+Na+"&dc_exteid="+jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+
"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Na},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&avm="+Na+"&dc_pubid="+Na+"&dc_exteid="+jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&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="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+xR+"&ad_cpn=[AD_CPN]&id="+Xv+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Na},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Xv+"&dc_pubid="+Na+"&dc_exteid="+jQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+vd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+
Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&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/"+c+"/mqdefault.jpg",width:320,height:180}]},trackingParams:vz+"="},trackingParams:vz+"=",templatedCountdown:{templatedAdText:{text:qG,isTemplated:!0,trackingParams:vz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:BM,isTemplated:!1,trackingParams:vz+"="},trackingParams:vz+"="}},
trackingParams:vz+"=",skipOffsetMilliseconds:5E3}},trackingParams:vz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Xv},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:qG,isTemplated:!1,trackingParams:vz+"="},trackingParams:vz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:dW,
isTemplated:!0,trackingParams:vz+"="}},trackingParams:vz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:YR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Vw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+Hy+"&origin=www.youtube.com&ata_theme="+x_,Vw),trackingParams:vz+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:vz+"="}},hoverText:{runs:[{text:Qm}]},trackingParams:vz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+du+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:vz+"="},headline:{text:Qm,isTemplated:!1,trackingParams:vz+"="},description:{text:bh,trackingParams:vz+"="},actionButton:{buttonRenderer:{text:{simpleText:DS},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"="}},startMs:Na,trackingParams:vz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:YP},elementId:BM}},elementId:bz,trackingParams:vz+"=",legacyInfoCardVastExtension:dW,sodarExtensionData:{siub:Xv,bgub:bz,scs:ne,bgp:YP},externalVideoId:Ex,adLayoutLoggingData:{serializedAdServingDataEntry:YP},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+du+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:vz+"="},headline:{text:bz,
isTemplated:!1,trackingParams:vz+"="},description:{text:Z2,isTemplated:!1,trackingParams:vz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Z2},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:vz+"="}},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+
Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:vz+"="},abandonCommands:{commands:[{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&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="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+hA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:YR,commandExecutorCommand:{commands:[{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:qG,isTemplated:!1,trackingParams:vz+"="},trackingParams:vz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ex},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Na+";dc_exteid="+jQ+";met="+Na+";ecn"+Na+"="+Na+";etm1="+Na+";eid1="+
Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Ex}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:b2,offsetEndMilliseconds:vd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+hA+"&token=ALHj"+a+"&index="+Na+"&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="+V+"&m_pos_ms="+b2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:vd,offsetEndMilliseconds:vd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Wd+"&token=ALHj"+a+"&index="+Na+"&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="+
V+"&m_pos_ms="+vd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:x_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vd,offsetEndMilliseconds:vd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Wd+"&token=ALHj"+a+"&index="+Na+"&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="+
V+"&m_pos_ms="+vd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vd,offsetEndMilliseconds:vd},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Wd+"&token=ALHj"+a+"&index="+Na+"&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="+
V+"&m_pos_ms="+vd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vd,offsetEndMilliseconds:hA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Wd+"&token=ALHj"+a+"&index="+Na+"&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="+
V+"&m_pos_ms="+vd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:hA,offsetEndMilliseconds:hA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+hA+"&token=ALHj"+a+"&index="+Na+"&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="+
V+"&m_pos_ms="+hA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:tU,isTemplated:!1,trackingParams:vz+"="},description:{text:DS,isTemplated:!1,trackingParams:vz+"="},actionButton:{buttonRenderer:{text:{simpleText:BM},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qi+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:vz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:vz+"="},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+
";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:YR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(k3u.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+Hy+"&origin=www.youtube.com&ata_theme="+x_,k3u),trackingParams:vz+"="}},popupType:"DIALOG"}},trackingParams:vz+"="}},hoverText:{runs:[{text:qG}]},trackingParams:vz+"="}},adVideoId:Ex,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bz},associatedCompositePlayerBytesLayoutId:tU}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Z2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:VG,isTemplated:!1,trackingParams:vz+"="},description:{text:DS,isTemplated:!1,trackingParams:vz+"="},actionButton:{buttonRenderer:{text:{simpleText:TG},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+
f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+du+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:vz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Hd+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:vz+"="},navigationEndpoint:{clickTrackingParams:YR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+
Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:YR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(wX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+Hy+"&origin=www.youtube.com&ata_theme="+x_,wX),trackingParams:vz+"="}},popupType:"DIALOG"}},trackingParams:vz+"="}},
hoverText:{runs:[{text:VG}]},trackingParams:vz+"="}},adVideoId:Ex,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+Ex+"&cid="+r+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bz},associatedCompositePlayerBytesLayoutId:tU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:bz,
isTemplated:!1,trackingParams:vz+"="},description:{text:bh,isTemplated:!1,trackingParams:vz+"="},actionButton:{buttonRenderer:{text:{simpleText:bz},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+
hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+
H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:vz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qi+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:vz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:vz+
"="},navigationEndpoint:{clickTrackingParams:YR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ov+";dc_trk_cid="+ov+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Na+";ord="+ov+";dc_rui="+Na+";dc_exteid="+jQ+";dc_av="+Na+";dc_sk="+Na+";dc_ctype="+hA+";dc_pubid="+Na+";dc_btype=3?gclid="+hv+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+f+"AxAA&ase=2&num="+Na+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+Ku+"&label=video_click_to_advertiser_site&ctype="+Wd+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:vz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:YR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Zl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+Hy+"&origin=www.youtube.com&ata_theme="+x_,Zl),trackingParams:vz+"="}},popupType:"DIALOG"}},trackingParams:vz+
"="}},hoverText:{runs:[{text:qG}]},trackingParams:vz+"="}},adVideoId:Ex,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+f+"AxAA&sigh="+c+"&cid="+r+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:qG},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:tU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bh}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:ut,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:ut,command:{innertubeCommand:{clickTrackingParams:YR,ypcGetOfflineUpsellEndpoint:{params:dU}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:vz+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:F6,nanos:yu}}}},e3u=JSON.stringify(yM),WJ=performance.now()-y;return{objectRepresentation:yM,jsonRepresentation:e3u,generationTime:WJ}};
a0z=function(y,W){if(y===W)return!0;if(!y||!W||typeof y!==typeof W)return!1;if(y instanceof Array&&W instanceof Array){if(y.length!==W.length)return!1;for(var V=0;V<y.length;V++)if(!a0z(y[V],W[V]))return!1;return!0}if(typeof y==="object"&&typeof W==="object"&&y&&W){for(V in y)if(!(V in W&&a0z(y[V],W[V])))return!1;for(var w in W)if(!(w in y))return!1;return!0}return!1};
_.Tw=function(){if(!fO){fO=new uz(new G5v);var y=_.pB("client_streamz_web_flush_count",-1);y!==-1&&(fO.invocationLimit=y)}return fO};
mS=function(y,W,V,w){if(y===W)return!0;if(Array.isArray(y)&&Array.isArray(W)){if(y.length!==W.length)return!1;for(var t=0;t<y.length;t++)if(!mS(y[t],W[t],V,w))return!1;return!0}if(y instanceof Set||W instanceof Set){if(y instanceof Set&&W instanceof Set){if(y.size!==W.size)return!1;w=_.N(y.values());for(t=w.next();!t.done;t=w.next())if(!W.has(t.value))return!1;return!0}return!1}if(y instanceof Function){if(w)return!0;y.name===""&&_.ap(Error("Rf"),"ERROR");return!1}if(y instanceof Date&&W instanceof
Date)return y.getTime()===W.getTime();if(y instanceof Object&&W instanceof Object){if(rZv(y)&&rZv(W))try{return y.equals(W)}catch(I){_.ap(Error("Sf`"+I),"ERROR")}t=Object.getOwnPropertyNames(y).filter(function(I){return V?y[I]!==void 0:!0});
var F=Object.getOwnPropertyNames(W).filter(function(I){return V?W[I]!==void 0:!0});
if(t.length!==F.length)return!1;t=_.N(t);for(F=t.next();!F.done;F=t.next())if(F=F.value,!mS(y[F],W[F],V,w))return!1;return!0}return!1};
rZv=function(y){y=Object.getPrototypeOf(y).equals;return y instanceof Function&&y.length===1};
_.Zhd=function(){return _.g(function(y){if(y.nextAddress==1)return bht!==2?y.jumpTo(2):y.yield(QYb(),3);y.nextAddress!=2&&(bht=y.yieldResult);return y.return(bht)})};
_.VVv=function(){return _.g(function(y){if(y.nextAddress==1)return _.e("ab_pl_man")?yCv!==2?y.jumpTo(2):y.yield(Wov(),3):y.return(1);y.nextAddress!=2&&(yCv=y.yieldResult);return y.return(yCv)})};
Fon=function(){return _.g(function(y){if(y.nextAddress==1)return _.e("ab_fk_sk_cl")?wKj!==2?y.jumpTo(2):y.yield(tVb(),3):y.return(1);y.nextAddress!=2&&(wKj=y.yieldResult);return y.return(wKj)})};
_.I9P=function(){return _.g(function(y){if(y.nextAddress==1)return _.e("ab_det_apb_b")?E54!==2?y.jumpTo(2):y.yield(NeP(),3):y.return(1);y.nextAddress!=2&&(E54=y.yieldResult);return y.return(E54)})};
Cft=function(){var y;return _.g(function(W){if(W.nextAddress==1)return W.yield(Promise.all([_.Zhd(),_.I9P(),_.VVv(),Fon()]),2);if(W.nextAddress!=3)return g5v()?W.return(!0):W.yield(_.PfP(),3);y=W.yieldResult;return W.return(y===0)})};
g5v=function(){var y=!1,W=function(V,w){OKd.increment(w,V);V===0&&(y=!0)};
W(_.v5a(),"j.s_");W(bht,"f.i_");W(E54,"a.b_");W(yCv,"p.m_");W(wKj,"i.f_");d$L===2&&(d$L=_.LoL(zUv));W(d$L,"e.h_");_.e("ks_det_gpbl")||W(_.cCL(),"p.i_");_.e("ks_get_o_pp")||W(_.eU4(),"g.o_");_.e("ab_deg_unex_thr")||W(_.hUa(),"a.o_");W(o5z,"s.t_");_.e("ab_det_sc_inj_enf")&&W(_.Ko4(),"s.i_");W(pKu,"d.p_");W(_.iK4(_.Mo),"o.p_");W(_.f9v()===0?0:_.TeG(),"o.a_");return _.e("debug_sk_em_precheck")?!0:y};
MVv=function(){var y=[].concat(_.GC(m$L));try{var W=iN();y.push({jsonRepresentation:W.jsonRepresentation,objectRepresentation:W.objectRepresentation})}catch(V){y=[].concat(_.GC(m$L))}return y};
qRu=function(){var y=["adPlacements","adSlots"];try{return y.filter(function(){return!0}).length!==y.length?0:1}catch(W){return 0}};
_.eU4=function(){if(qRu()===0)return 0;var y=iN(),W=y.objectRepresentation,V=(0,_.Gc.unsafeClone)(W),w=[];if(W&&typeof W==="object")for(var t in W)w.push(t);else return 4;y=y.objectRepresentation.adPlacements;if(!(y&&y.length>0))return 4;try{if(!a0z(w,Object.getOwnPropertyNames(W)))return 0}catch(F){return 0}return a0z(V,W)?1:0};
_.iK4=function(y){if(!y||!y.length||typeof y==="string")return 0;for(var W=Object.getOwnPropertyNames(Object.prototype),V=0;V<y.length;V++)for(var w=_.hx(y[V]),t=_.N(W),F=t.next();!F.done;F=t.next())if(w===F.value)return 0;return 1};
U$4=function(y){var W=_.hx(y[1]);if(y[0]===null)return W;y=y[0];for(var V={},w=0;w<y.length;w++){var t=_.hx(y[w]);if(w===0)V[t]=W;else{var F={};F[t]=V;V=F}}return V};
_.f9v=function(){for(var y=_.qo,W=0;W<y.length;W++){var V=U$4(y[W]),w=[];w.push(V);if(w.length===0)return 0}return 1};
_.TeG=function(){for(var y=_.qo,W={},V=0;V<y.length;W={dRH:void 0},V++){var w=[U$4(y[V])];W.dRH=[];w.forEach(function(t){return function(F){t.dRH[t.dRH.length]=F}}(W));
if(W.dRH.length===0)return 0}return 1};
_.v5a=function(){for(var y=_.N(MVv()),W=y.next();!W.done;W=y.next()){var V=W.value;W=V.jsonRepresentation;V=V.objectRepresentation;try{var w=JSON.parse(W);if(!mS(w,V,!1,!1))return 0}catch(t){return 0}}return 1};
_.Ko4=function(){try{var y=_.fB("ab_det_sc_inj_val");y.length===1&&y[0]===""&&(y=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var W=document.querySelectorAll("script"),V=_.N(W),w=V.next();!w.done;w=V.next())for(var t=w.value,F=_.N(y),I=F.next();!I.done;I=F.next()){var P=I.value;W=void 0;if((W=t.textContent)==null?0:W.includes(P))return 0}}catch(C){return 4}return 1};
_.PfP=function(){var y,W,V,w,t,F,I;return _.g(function(P){switch(P.nextAddress){case 1:_.l7(P,2),y=_.N(m$L),W=y.next();case 4:if(W.done)return P.return(1);w=V=W.value;t=w.jsonRepresentation;F=w.objectRepresentation;return P.yield((new Response(t,{status:200})).json(),7);case 7:I=P.yieldResult;if(!mS(I,F,!1,!1))return P.return(0);W=y.next();P.jumpTo(4);break;case 2:return _.YX(P),P.return(4)}})};
_.hUa=function(){try{btoa("abc")}catch(y){return 0}return 1};
QYb=function(){var y,W,V,w,t,F,I,P,C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:_.l7(z,2),y=_.N(MVv()),W=y.next();case 4:if(W.done)return z.return(1);w=V=W.value;t=w.jsonRepresentation;F=w.objectRepresentation;I=btoa(t);P="data:application/json;base64,"+I;C=new Request(P);Object.defineProperty(C,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(C,"method",{get:function(){return"POST"}});
Object.defineProperty(C,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(C,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(C,"body",{get:function(){return new ReadableStream}});
return z.yield(fetch(C),7);case 7:return d=z.yieldResult,z.yield(d.json(),8);case 8:L=z.yieldResult;if(!mS(L,F,!1,!1))return z.return(0);W=y.next();z.jumpTo(4);break;case 2:return _.YX(z),z.return(4)}})};
_.LoL=function(y){if(!y||!y.length||typeof y==="string")return 0;for(var W=function(t){return _.hx(t)},V=2,w=0;w<y.length&&(V=_.uXG(_.Hhz(y[w],W)),V!==0);w++);
return V};
_.uXG=function(y){var W=_.N(y);y=W.next().value;W=W.next().value;try{var V=document.createElement("div");document.body.appendChild(V);var w=getComputedStyle(V).display;document.body.removeChild(V);if(w==="none")return 4;var t=getComputedStyle(W).display==="none"?0:1;document.body.removeChild(y);return t}catch(F){return 4}};
tVb=function(){var y,W,V;return _.g(function(w){y=new _.UT;W=document.createElement("button");W.classList.add("ytp-ad-skip-button");W.style.opacity="0";W.style.height="0px";W.style.width="0px";W.style.padding="0px";W.style.border="none";V=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.onclick=function(){y.resolve(0);V()};
document.body.appendChild(W);setTimeout(function(){V();y.resolve(1)},50);
return w.return(y.promise)})};
Wov=function(){var y,W,V,w,t,F,I;return _.g(function(P){y=new _.UT;W=document.createElement("ytd-player");try{document.body.prepend(W)}catch(C){return P.return(4)}V=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.getElementsByTagName("div").length>0?w=W.getElementsByTagName("div")[0]:(w=document.createElement("div"),W.appendChild(w));t=document.createElement("div");w.appendChild(t);F=document.createElement("video");I=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"});F.src=_.G3(_.W7(I));F.ontimeupdate=function(){V();y.resolve(0)};
t.appendChild(F);F.classList.add("html5-main-video");setTimeout(function(){t.classList.add("ad-interrupting")},200);
setTimeout(function(){V();y.resolve(1)},5E3);
return P.return(y.promise)})};
SRd=function(y,W){var V,w;return _.g(function(t){switch(t.nextAddress){case 1:V=[],w=0;case 2:if(!(w<3)){t.jumpTo(4);break}return t.yield(fetch(y,{cache:"no-store",method:W}).then(function(F){V.push(F.status)}).catch(function(){V.push(-1)}),3);
case 3:w++;t.jumpTo(2);break;case 4:return t.return(V)}})};
D$u=function(y){return y.domainLookupStart===0&&y.domainLookupEnd===0&&y.connectStart===0&&y.connectEnd===0};
l9a=function(y,W,V){V=V===void 0?"GET":V;var w,t,F,I,P,C,d,L,z,c;return _.g(function(K){if(K.nextAddress==1)return K.yield(Promise.all([SRd(y,V),SRd(W,V)]),2);w=K.yieldResult;t=_.N(w);F=t.next().value;I=t.next().value;P=F;C=I;if(Math.min.apply(Math,_.GC(C))!==Math.max.apply(Math,_.GC(C))||Math.min.apply(Math,_.GC(P))!==Math.max.apply(Math,_.GC(P)))return K.return(2);if(Math.min.apply(Math,_.GC(C))===Math.min.apply(Math,_.GC(P)))return K.return(1);L=(d=performance.getEntriesByName(y))==null?void 0:
d[0];c=(z=performance.getEntriesByName(W))==null?void 0:z[0];return L&&c?D$u(c)?K.return(1):D$u(L)?K.return(0):K.return(1):K.return(2)})};
NeP=function(){var y;return _.g(function(W){var V=[];var w;var t,F,I;(t=w=(t=iN().objectRepresentation.streamingData)==null?void 0:(F=t.formats)==null?void 0:(I=F[0])==null?void 0:I.url)&&t&&!w.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(t=t.replace("initcwndbps","ctier=L&initcwndbps"),t=t.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),w={testUrl:t,baseUrl:w,method:"GET"}):w=void 0;w&&V.push(w);_.e("ab_net_tp_e")&&V.push({testUrl:_.Vj.location.origin+"/ad_companion",baseUrl:_.Vj.location.origin+
"/generate_204",method:"OPTIONS"});if(_.e("ad_net_pb_ab")){var P;b:{w=/api\/stats\/ads/;var C,d,L,z;t=(P=iN().objectRepresentation.adPlacements)==null?void 0:(C=P[0])==null?void 0:(d=C.adPlacementRenderer)==null?void 0:(L=d.renderer)==null?void 0:(z=L.linearAdSequenceRenderer)==null?void 0:z.linearAds;if(t!=null&&t.length&&(P=_.h(t[0],x$y))&&(P=P.pings,P!=null&&P.impressionPings))for(C=[].concat(_.GC(P.impressionPings)),P.progressPings&&(C=[].concat(_.GC(C),_.GC(P.progressPings))),P=_.N(C),C=P.next();!C.done;C=
P.next())if(C=C.value,C.baseUrl&&w.test(C.baseUrl)){P=C.baseUrl.replace("https://www.youtube.com","");break b}P=void 0}P&&V.push({testUrl:_.Vj.location.origin+P,baseUrl:_.Vj.location.origin+"/feed/download",method:"GET"})}if(_.e("ad_net_pb_pbp")){var c;b:{P=/api\/stats\/qoe/;if(C=iN().objectRepresentation.playbackTracking){d=[];d.push(C==null?void 0:(c=C.videostatsPlaybackUrl)==null?void 0:c.baseUrl);var K;d.push(C==null?void 0:(K=C.videostatsDelayplayUrl)==null?void 0:K.baseUrl);var f;d.push(C==
null?void 0:(f=C.videostatsWatchtimeUrl)==null?void 0:f.baseUrl);var U;d.push(C==null?void 0:(U=C.ptrackingUrl)==null?void 0:U.baseUrl);var l;d.push(C==null?void 0:(l=C.qoeUrl)==null?void 0:l.baseUrl);var x;d.push(C==null?void 0:(x=C.atrUrl)==null?void 0:x.baseUrl);c=_.N(d);for(K=c.next();!K.done;K=c.next())if((K=K.value)&&P.test(K)){c=K.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}c=void 0}c&&V.push({testUrl:_.Vj.location.origin+c,baseUrl:_.Vj.location.origin+
"/feed/download",method:"GET"})}V=V.length!==0?V[Math.floor(Math.random()*V.length)]:void 0;return(y=V)?W.return(l9a(y.testUrl,y.baseUrl,y.method)):W.return(4)})};
_.cCL=function(){if(_.Vj.sgb===void 0||_.Vj.sgb===null||typeof _.Vj.sgb!=="function")return 2;try{return _.Vj.sgb()===!0?0:1}catch(y){return 0}};
k8a=function(y){switch(y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.gW(y,"unknown result type")}};
_.sLG=function(y,W){var V=Number(_.yC("CATSTAT",0));if(W.n4O===void 0)return V;W=W.n4O;y=k8a(y);return V&~(3<<W)|y<<W};
AC4=function(y){var W,V;if((y=(W=y.auxiliaryUi)==null?void 0:(V=W.messageRenderers)==null?void 0:V.bkaEnforcementMessageViewModel)&&y.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return y};
BeL=function(){for(var y=_.N(Object.values(_.YRz)),W=y.next();!W.done;W=y.next())W=W.value,W.isAsync&&W.n4O&&_.Z7("CATSTAT",_.sLG(2,W))};
_.lN=function(y,W){y=_.uN("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",y);(W===void 0?0:W)?_.JCv(y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.SW(_.DP(),y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
jLj=function(){if(!RUv){if(Polymer.Base){var y=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{y.apply(this,arguments)}catch(z){_.VC(z)}};
var W=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{W.apply(this,arguments)}catch(z){_.VC(z)}};
var V=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{V.apply(this,arguments)}catch(z){_.VC(z)}};
var w=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{w.apply(this,arguments)}catch(z){_.VC(z)}};
var t=Polymer.Base._listen,F=new WeakMap;Polymer.Base._listen=function(z,c,K){var f=function(){try{K.apply(this,arguments)}catch(U){_.VC(U)}};
F.set(K,f);t.call(this,z,c,f)};
var I=Polymer.Base._unlisten;Polymer.Base._unlisten=function(z,c,K){I.call(this,z,c,F.get(K))}}if(Polymer.Async){var P=Polymer.Async,C=P._atEndOfMicrotask;
P._atEndOfMicrotask=function(){try{C.apply(P,arguments)}catch(z){_.VC(z)}}}if(Polymer.RenderStatus){var d=Polymer.RenderStatus,L=d.afterNextRender;
d.afterNextRender=function(z,c,K){L.call(d,z,function(){try{c.apply(this,arguments)}catch(f){_.VC(f)}},K)}}RUv=!0}};
_.x1=function(y){var W=y?_.U1(y):"";if(W){if(W.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(W.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(W.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(W.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(W.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.e("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(W.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";W=W.toLowerCase();if(W==="/")return"home";if(W==="/channel_memberships")return"channel-memberships-shopfront";if(W.indexOf("/feed/trending")===0)return"trending";if(W.indexOf("/feed/explore")===0)return"explore";if(W.indexOf("/live")===0)return"live";if(W.indexOf("/results")===0)return"search";if(W.indexOf("/sports")===0)return"sports";if(W.indexOf("/fashion")===0||W.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(W))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(W))return _.e("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(W.indexOf("/channel/")===0||W.indexOf("/user/")===0||W.indexOf("/gaming")===0||W.indexOf("/post/")===0)return"channel";if($$P(y))return"show";if(W==="/playlist"||W.indexOf("/playlist/")===0||W==="/view_play_list"||W.indexOf("/view_play_list/")===0||W.indexOf("/show/")===0)return"playlist";if(W==="/feed/history"||W.indexOf("/feed/history/")===0)return"history";if(W===
"/new")return"labs";if(W==="/feed/subscriptions")return"subscriptions";if(W.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(W==="/history_controls")return"standalone";if(W.indexOf("/account")===0||W==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(W.indexOf("/paid_memberships")===0||W.indexOf("/refund")===0||W.indexOf("/purchases")===0||W.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(W.indexOf("/product")===0)return"yts-products";if(W.indexOf("/premium")===
0||W.indexOf("/musicpremium")===0)return W.indexOf("/premium/offers")===0||W.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(W==="/cart/checkout"||W==="/cart")return"ypc-checkout";if(W.indexOf("/feed/downloads")===0||W.indexOf("/redeem")===0||W.indexOf("/reporthistory")===0)return"browse";if(W.indexOf("/hashtag")===0)return"hashtag-landing-page";if(W.indexOf("/handle")===0)return"handle";if(W.indexOf("/source")===0)return"audio-pivot";if(W.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(W.indexOf("/playables")===0)return"playables";if(W.indexOf("/create/live/join")===0)return"open-in-app";if(W.indexOf("/shorts")===0)return"shorts";if(W.indexOf("/feed/channels")===0)return"subscriptions-channels";(W=y?_.U1(y):"")&&W.indexOf("/watch")===0&&_.e("web_watch_enable_learning_journey")?(y=_.P4(y),y=!!y.list&&y.list.indexOf("LJPP")===0):y=!1;if(y)return"learning_journey_watch"}};
_.k1=function(y){var W,V;(y=(V=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:V.url)&&(W=_.x1(y));return W};
$$P=function(y){var W=y?_.U1(y):"";if(!W)return!1;W=W.toLowerCase();return W.indexOf("/show/")===0||W.indexOf("/playlist")===0&&(y=_.P4(y),y.list&&y.list.indexOf("EL")===0)?!0:!1};
Y1=function(y){var W="unknown",V;var w=((V=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:V.webPageType)||"";w?(V=w.toLowerCase(),V.startsWith("web_page_type_")&&(V=V.slice(14))):V=w;V&&n5j[V.toUpperCase()]?W=n5j[V.toUpperCase()]:_.h(y,_.sT)||_.h(y,HKv)?W="browse":_.h(y,_.Ax)?W="search":_.h(y,_.Iw)&&(W="watch");W==="watch"&&_.k1(y||null)==="learning_journey_watch"&&(W="learning_journey_watch");W==="unknown"&&_.rQ(Error("Uf`"+JSON.stringify({clickTrackingParams:y==null?void 0:y.clickTrackingParams,
commandMetadata:y==null?void 0:y.commandMetadata,allEndpointKeys:Object.keys(y||[])})));return W};
_.B9=function(y){if(!_.XKP||y)_.XKP=_.B3();return _.XKP};
_.a9u=function(y){return!!_.h(y,_.Iw)||!!_.h(y,_.Jx)&&_.e("kevlar_enable_shorts_prefetch")};
_.G8v=function(y,W){y=_.h(y,_.Iw)||_.h(y,_.Jx);return"v"+y.videoId+(y.playlistId?"-pl"+y.playlistId:"")+(W?"-an1":"")+(y.params?"-pr"+y.params:"")};
Rc=function(y){return function(){return new y}};
jW=function(y){var W=_.hs();return function(){return W.resolve(y)}};
bKy=function(y){var W=_.pB("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;if(!_.h(y,_.Jx))return W&&_.rQ(Error("Xf")),!1;var V;return _.e("shorts_controller_retrieve_seedless_sequence_v2")&&((V=_.h(y,_.Jx))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:rCL(y)?!0:(W&&_.rQ(Error("Yf")),!1)};
rCL=function(y){var W=(_.h(y,_.Iw)||_.h(y,_.Jx)).videoId;if(!W||!QLv.test(W))return!1;var V;return(y=(V=_.h(y.commandMetadata,_.dw))==null?void 0:V.url)&&(y.includes(W)||y.startsWith("/clip"))?!0:!1};
_.yWb=function(){var y=_.l5();return y.getFlag(192)?y.getFlag(190):!(_.e("web_watch_cinematics_disabled_by_default")||_.e("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&ZKy())};
_.$1=function(y,W,V){var w={};w.currentUrl=W;w.vis=y.vis!==void 0?y.vis:0;w.splay=!1;W=_.l5();w.autoCaptionsDefaultOn=W.getFlag(66);W.getFlag(141)?W.getFlag(140)?w.autonavState="STATE_OFF":w.autonavState="STATE_ON":w.autonavState="STATE_NONE";w.html5Preference="HTML5_PREF_WANTS";isNaN(_.yC("STS"))||(w.signatureTimestamp=_.yC("STS"));y.autonav&&(w.autoplay=!0,w.autonav=!0);y.mutedAutoplay&&(w.autoplay=!0,w.mutedAutoplay=!0);y.inlinePlayback&&(w.autoplay=!0,w.autonav=!1,w.isInlineUnmutedPlayback=!!y.inlineUnmuted);
w.referer=V;w.lactMilliseconds=y.lact!==void 0?y.lact.toString():"-1";_.e("enable_unknown_lact_fix_on_html5")&&w.lactMilliseconds==="-1"&&_.rQ(new _.Js("Unknown LACT is set in playbackContext.",{"lact in tempData":y.lact||"undefined",autonav:y.autonav||"undefined"}));y={};W.getFlag(194)&&(y.hasShownAmbientMode=!0);W.getFlag(192)&&(y.hasToggledOffAmbientMode=!0);_.yWb()&&(y.watchAmbientModeEnabled=!0);w.watchAmbientModeContext=y;return w};
WOb=function(y){var W={},V=y.pbis||0;V&&(W.playbackBeginsInSeconds=V);y.prefetch_reason&&y.prefetch_reason==="hc_pbis"&&(W.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return W};
_.H9=function(y){y=y===void 0?!1:y;var W=_.l5(),V="USER_INTERFACE_THEME_LIGHT";W.getFlag(165)?V="USER_INTERFACE_THEME_DARK":W.getFlag(174)?V="USER_INTERFACE_THEME_LIGHT":_.nO()&&(V="USER_INTERFACE_THEME_DARK");return y?V:VUL()||V};
_.wS4=function(){return!_.e("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.nO=function(){return _.wS4()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.X4=function(){var y=_.l5();return _.wS4()&&!y.getFlag(165)&&!y.getFlag(174)};
VUL=function(){var y=y===void 0?window.location.href:y;if(_.e("kevlar_disable_theme_param"))return null;var W=_.U1(y);if(_.tUv(W))return"USER_INTERFACE_THEME_DARK";try{var V=_.P4(y).theme;return FOd.get(V)||null}catch(w){}return null};
_.tUv=function(y){return _.e("enable_dark_theme_only_on_shorts")?!(y==null||!y.startsWith("/shorts/")):!1};
_.IOz=function(y,W,V,w,t){W=W===void 0?!1:W;V=V===void 0?!1:V;var F=_.yC("INNERTUBE_CONTEXT");if(!F)return _.ap(Error("ag")),{};F=(0,_.Gc.unsafeClone)(F);_.e("web_no_tracking_params_in_shell_killswitch")||delete F.clickTracking;F.client||(F.client={});var I=F.client;I.clientName==="MWEB"&&I.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(I.clientFormFactor=_.yC("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");I.screenWidthPoints=window.innerWidth;I.screenHeightPoints=window.innerHeight;I.screenPixelDensity=
Math.round(window.devicePixelRatio||1);I.screenDensityFloat=window.devicePixelRatio||1;I.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());I.userInterfaceTheme=_.H9();if(!W){var P=_.bga();P&&(I.connectionType=P);_.e("web_log_effective_connection_type")&&(P=Zgb())&&(F.client.effectiveConnectionType=P)}var C;if(_.e("web_log_memory_total_kbytes")&&((C=_.Vj.navigator)==null?0:C.deviceMemory)){var d;C=(d=_.Vj.navigator)==null?void 0:d.deviceMemory;F.client.memoryTotalKbytes=""+C*1E6}W&&w&&!_.e("web_it_context_set_original_url_ks")&&
(I.originalUrl=Etj(_.Vj.location.href,w).toString());_.e("web_gcf_hashes_innertube")&&(P=PN4())&&(d=P.coldConfigData,C=P.coldHashData,P=P.hotHashData,F.client.configInfo=F.client.configInfo||{},d&&(F.client.configInfo.coldConfigData=d),C&&(F.client.configInfo.coldHashData=C),P&&(F.client.configInfo.hotHashData=P));d=_.P4(_.Vj.location.href);!_.e("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(I.internalGeo=d.internalcountrycode);!_.e("web_populate_client_screen_killswitch")&&t&&(I.clientScreen=
t);I.clientName==="MWEB"||I.clientName==="WEB"?(I.mainAppWebInfo||(I.mainAppWebInfo={}),I.mainAppWebInfo.graftUrl=w||_.Vj.location.href,_.e("kevlar_woffle")&&_.ac.instance&&(w=_.ac.instance,I.mainAppWebInfo.pwaInstallabilityStatus=!w.appInstalledEventFired&&w.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),I.mainAppWebInfo.webDisplayMode=VWn(),I.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):I.clientName==="TVHTML5"&&
(!_.e("web_lr_app_quality_killswitch")&&(w=_.yC("LIVING_ROOM_APP_QUALITY"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{appQuality:w})),w=_.yC("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{certificationScope:w}));!_.e("web_populate_time_zone_itc_killswitch")&&(w=G2t())&&(I.timeZone=w);(w=LRP())?I.experimentsToken=w:delete I.experimentsToken;I=zzv();w=_.NZv();w=(0,_.Gc.getValues)(w.tokenJars);F.request=Object.assign({},F.request,{internalExperimentFlags:I,consistencyTokenJars:w});
!_.e("web_prequest_context_killswitch")&&(I=_.yC("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(F.request.externalPrequestContext=I);w=_.l5();I=w.getFlag(58);w=w.get("gsml","");F.user=Object.assign({},F.user);I&&(F.user.enableSafetyMode=I);w&&(F.user.lockedSafetyMode=!0);_.e("warm_op_csn_cleanup")?V&&(W=_.Xn())&&(F.clientScreenNonce=W):!W&&(W=_.Xn())&&(F.clientScreenNonce=W);y&&(F.clickTracking={clickTrackingParams:y});if(y=_.ts("yt.mdx.remote.remoteClient_"))F.remoteClient=y;_.Gw.getInstance().setLocationOnInnerTubeContext(F);
try{var L=m8d(),z=L.bid;delete L.bid;F.adSignalsInfo={params:[],bid:z};for(var c=_.N(Object.entries(L)),K=c.next();!K.done;K=c.next()){var f=_.N(K.value),U=f.next().value,l=f.next().value;L=U;z=l;y=void 0;(y=F.adSignalsInfo.params)==null||y.push({key:L,value:""+z})}var x,B;if(((x=F.client)==null?void 0:x.clientName)==="TVHTML5"||((B=F.client)==null?void 0:B.clientName)==="TVHTML5_UNPLUGGED"){var r=_.yC("INNERTUBE_CONTEXT");r.adSignalsInfo&&(F.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,
F.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",F.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(H){_.ap(H)}return F};
_.gtj=function(y){var W=new rP(_.yC("ONE_PICK_URL",""));W.urlParamMap_.set("hostId",y);(y=_.yC("GAPI_LOCALE"))&&W.urlParamMap_.set("hl",y);(y=_.yC("SESSION_INDEX"))&&W.urlParamMap_.set("authuser",y);(y=_.yC("DELEGATED_SESSION_ID"))&&W.urlParamMap_.set("groupId",y);return W};
Ca4=function(){var y=_.hs(),W=y.resolve(_.bN);y=y.resolve(_.QY);return new Pan(W,y)};
vtR=function(y){if(window.IntersectionObserver)return new Orn(y,400);throw new TypeError("hg");};
LO4=function(){var y=Hammer.TouchAction,W=y.prototype.preventDefaults;y.prototype.preventDefaults=function(V){var w=this.actions.indexOf("pan-down")>-1;if(!w)return W.call(this,V);if(!ddL){var t=V.srcEvent;V=V.direction;var F;if((F=this.manager)==null?0:F.session.prevented)t.preventDefault();else if(w&&V&Hammer.DIRECTION_DOWN)return this.preventSrc(t)}}};
zFv=function(y){if(!y||y.size===0)return Hammer.DIRECTION_ALL;if(y.size===2){if(y.has("up")&&y.has("down"))return Hammer.DIRECTION_VERTICAL;if(y.has("right")&&y.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(y.size===1){if(y.has("up"))return Hammer.DIRECTION_UP;if(y.has("down"))return Hammer.DIRECTION_DOWN;if(y.has("right"))return Hammer.DIRECTION_RIGHT;if(y.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.eF4=function(){return cWj?Promise.resolve(cWj):new Promise(function(y,W){var V=self.indexedDB.open("swpushnotificationsdb");V.onerror=W;V.onsuccess=function(){var w=V.result;if(w.objectStoreNames.contains("swpushnotificationsstore"))cWj=w,y(cWj);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.eF4()};
V.onupgradeneeded=hFj})};
hFj=function(y){y=y.target.result;y.objectStoreNames.contains("swpushnotificationsstore")&&y.deleteObjectStore("swpushnotificationsstore");y.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
KOy=function(y){var W=otd(),V;return _.g(function(w){switch(w.nextAddress){case 1:return _.l7(w,2),w.yield(y.match(W,{cacheName:"yt-appshell-assets"}),4);case 4:V=w.yieldResult;_.E6(w,3);break;case 2:_.YX(w);case 3:return w.return(V)}})};
otd=function(){var y=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?pSL.registration.scope:ir4;y.endsWith("/")&&(y=y.slice(0,-1));return y+"/app_shell_home"};
fOP=function(y){y.map(function(W){return W.source}).join("|")};
_.TZj=function(y){return _.g(function(W){return W.return(KOy(y))})};
mdz=function(){var y=window.caches,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.TZj(y),2);W=V.yieldResult;return V.return(!!W)})};
lOb=function(){_.g(function(y){if(y.nextAddress==1){if(MUa)return y.jumpTo(0);MUa=!0;if(_.e("enable_system_health_primes_monitoring"))return _.MO(q4u,3E4),UdR(),y.return();if(!(Math.random()<_.pB("web_system_health_fraction")))return y.jumpTo(0);uqd={heightPixels:screen.height,widthPixels:screen.width};ZP&&!isNaN(ZP.jsHeapSizeLimit)&&(uqd.memoryTotalKbytes=String(Math.round(ZP.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(uqd.devicePixelRatio=window.devicePixelRatio);return y.yield(S4R(),4)}_.MO(q4u,
3E4);return y.yield(DdL(),0)})};
S4R=function(){return _.g(function(y){if(y.nextAddress==1)return y2.intersectionObserverPresent="IntersectionObserver"in window,y2.serviceWorkerPresent="serviceWorker"in navigator,y2.webSharePresent="share"in navigator,y2.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,y2.cacheStoragePresent="caches"in window,y2.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,y2.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
y2.webkitTemporaryStoragePresent="webkitTemporaryStorage"in WW&&WW.webkitTemporaryStorage&&"queryUsageAndQuota"in WW.webkitTemporaryStorage,y2.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",y.yield(UKn(),2);y2.indexedDbPresent=y.yieldResult;y2.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;y2.broadcastChannelPresent="BroadcastChannel"in window;y2.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(y2.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,y2.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.B7(y)})};
q4u=function(){var y=9E4+Math.random()*2E3;_.es()>y||(_.e("enable_system_health_primes_monitoring")?UdR():DdL())};
DdL=function(){var y;return _.g(function(W){if(W.nextAddress==1)return W.yield(xdv(),2);y=W.yieldResult;_.Hp("systemHealthCaptured",y);_.B7(W)})};
UdR=function(){var y={metric:{}},W=kQz();W.networkEvents.length&&(y.metric.networkEvents=sjL(W));_.Hp("systemHealthCaptured",y)};
xdv=function(){var y,W,V,w,t,F,I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:y={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)};W=window.screen;_.e("enable_is_extended_monitoring")&&W&&"isExtended"in W&&(y.isExtended=!!W.isExtended);V={metric:{staticContext:uqd,dynamicContext:y,webMetric:AWv,webApiSupport:y2}};
if(w=_.Xn())V.csn=w;ZP&&(V.metric.webMetric.currentHeapKbytes=Math.round(ZP.usedJSHeapSize/1E3));window.matchMedia&&(V.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,V.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,V.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in WW&&typeof WW.getBattery==="function")){L.jumpTo(2);break}return L.yield(WW.getBattery(),3);case 3:if(t=
L.yieldResult)V.metric.dynamicContext.chargingStatus=t.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(V.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(y2.storageEstimatePresent)return L.yield(navigator.storage.estimate(),8);if(!y2.webkitTemporaryStoragePresent){L.jumpTo(5);break}return L.yield(Y4R(),7);case 7:F=L.yieldResult;L.jumpTo(5);break;case 8:F=L.yieldResult;case 5:return V.metric.dynamicContext.deviceStorageQuotaMbytes=((I=F)==null?0:I.quota)?String(Math.round(F.quota/
1048576/10)*10):"-1",V.metric.dynamicContext.deviceStorageUsageMbytes=((P=F)==null?0:P.usage)?String(Math.round(F.usage/1048576/10)*10):"-1",C=V.metric.dynamicContext,L.yield(mdz(),9);case 9:return C.hasAppShell=L.yieldResult,d=kQz(),d.networkEvents.length&&(V.metric.networkEvents=sjL(d)),L.return(V)}})};
Y4R=function(){return new Promise(function(y){var W;y2.webkitTemporaryStoragePresent&&(W=WW.webkitTemporaryStorage)!=null&&W.queryUsageAndQuota?WW.webkitTemporaryStorage.queryUsageAndQuota(function(V,w){y({usage:V,quota:w})}):y(void 0)})};
_.V2=function(y){y&=16777215;y=[(y&16711680)>>16,(y&65280)>>8,y&255];return BZv(y[0],y[1],y[2])};
_.wg=function(y){y=[(y&16711680)>>>16,(y&65280)>>>8,y&255,(y&4278190080)>>>24];var W=_.JWa(y,function(V){return V==(V&255)});
y[3]=(y[3]/255).toFixed(3);if(!W)throw Error("ig`"+y.join(","));return"rgba("+y.join(",")+")"};
_.RFb=function(y){return[(y&16711680)>>>16,(y&65280)>>>8,y&255]};
_.jjn=function(y){y=y.map(function(W){W/=255;return W<=.03928?W/12.92:Math.pow((W+.05)/1.05,2.4)});
return y[0]*.2126+y[1]*.7152+y[2]*.0722};
tc=function(y,W){y=_.RFb(y);return"rgba("+y[0]+", "+y[1]+", "+y[2]+", "+W+")"};
_.$dP=function(){try{return!!self.localStorage}catch(y){return!1}};
aOt=function(){if(ntP())_.rQ(Error("jg"));else{var y=document.createElement("iframe");y.style.display="none";var W=W===void 0?window.location.href:W;var V=_.X1(_.yC("PERSIST_IDENTITY_IFRAME_URL"));W=V?V:(new URL(W)).host.indexOf("studio")===0?_.Tc(Hrj,"persist_identity"):_.Tc(XSv,"persist_identity");_.$5u(y,1,W);y.id="persist_identity";var w;(w=document.body)==null||w.appendChild(y)}};
ntP=function(){var y=GQG;y||(y=document.querySelector("#persist_identity"));return y};
rWL=function(){var y=!1;try{y=!!window.sessionStorage.getItem("session_logininfo")}catch(W){y=!0}return(_.yC("INNERTUBE_CLIENT_NAME")==="WEB"||_.yC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&y};
brb=function(y,W){if(!rWL())return!1;W||(W=_.yC("LOGIN_INFO"));return W?(y.session_logininfo=W,!0):!1};
ZrL=function(y,W){y=y===void 0?!1:y;if((W===void 0||!W)&&Qjy!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.W4("LOG_STICKINESS",!1)){W=_.Xn();var V=_.Hf(),w={identityStickinessData:{initialState:Qjy}};W&&V&&_.d5(W,V,w)}if(W=ntP())if(V=W.src?(new URL(W.src)).origin:"*",y){var t;(t=W.contentWindow)==null||t.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(y=window.sessionStorage.getItem("session_logininfo"))){var F;(F=W.contentWindow)==null||F.postMessage({loginInfo:y},V)}};
_.Fe=function(y){y=y===void 0?!0:y;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Z7("LOGIN_INFO",""),y&&window.sessionStorage.setItem("from_switch_account","1"),ZrL(!0,y)}catch(W){}};
yjj=function(y){y&&(y.startsWith("https://accounts.google.com/AddSession")?_.Fe():y.startsWith("https://accounts.google.com/ServiceLogin")?_.Fe():y.startsWith("https://myaccount.google.com")&&_.Ey(y).getPath().endsWith("/youtubeoptions")&&_.Fe())};
E$=function(y,W){yjj(y);if(_.W4("LOGGED_IN",!0)&&rWL()){var V=HoL(y);V==null&&(V={});brb(V,W)&&_.On(y,V)}};
W3y=function(){function y(W){for(W=W.target;W&&W.nodeName!=="A";)if(W=W.parentNode,!(W&&W instanceof HTMLElement))return;if(W&&!W.hasAttribute("download")&&W.getAttribute("rel")!=="external"&&W.href)return W.href}
document.addEventListener("mousedown",function(W){W.button!==0&&(W=y(W))&&E$(W)});
document.addEventListener("click",function(W){(W=y(W))&&E$(W)})};
twb=function(){var y=new Vwb;try{if(_.W4("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(P){y.increment(5,!1);return}if(_.yC("LOGIN_INFO")){var W=w_b?w_b:window.location;_.yC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&aOt();var V=HoL(W.href);V==null&&(V={});var w=V.session_logininfo,t=Number(window.sessionStorage.getItem("stickiness_reload")),F=w===_.yC("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
t>=2||F)t>=2?y.increment(2,F):F?y.increment(7,F):window.sessionStorage.getItem("session_logininfo")||(y.increment(3,F),Qjy="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.yC("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.yC("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))y.increment(4,F),window.sessionStorage.removeItem("stickiness_reload");
else if(t<2){window.sessionStorage.setItem("stickiness_reload",String(t+1));var I=W.href;I=_.vN(I,"sttick");E$(I,window.sessionStorage.getItem("session_logininfo"));I=_.CB(I,{sttick:t});y.increment(t,F);_.buj(W,I)}}else y.increment(6,!1)}else _.Fe(!1)}catch(P){}};
_.Ng=function(y,W,V,w,t){W=W===void 0?{}:W;V=V===void 0?"":V;w=w===void 0?window:w;y=_.O1(y,W);E$(y);V=_.ye(y+V,t);_.buj(w.location,V)};
_.F3G=function(y,W,V,w,t){t=t===void 0?!1:t;V&&_.On(y,V);V=_.ye(y);var F=_.G3(V);y!=F&&_.FU(Error("kg`"+y));y=F;W=W||WN(y).toString(36);try{if(t)return t=y,t=FMz(t),E$(t),_.P7(window,t,W,"attributionsrc")}catch(I){_.VC(I)}E$(y);return _.P7(window,V,W,w)};
Eqv=function(y){if(y.urlEndpoint){if(y=_.P4(y.urlEndpoint.url),y.adurl)return c4(y.adurl)}else if(y.watchEndpoint)return"//www.youtube.com/watch?v="+y.watchEndpoint.videoId;return null};
NaG=function(y){if(!y||!y.reportingPings)return null;var W={};y.reportingPings.forEach(function(V){V.pingType in W?W[V.pingType].push(V.url):W[V.pingType]=[V.url]});
return{adpings:wNP(W)}};
_.I6=function(){return{isShellLoad:_.W4("IS_SHELL_LOAD",!1)}};
gqy=function(){navigator.serviceWorker.getRegistrations().then(function(y){y.forEach(IuR)})};
IuR=function(y){y&&_.PVz(CVy,y.scope)};
_.PVz=function(y,W){W={scope:W||_.iC("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.$R(y),W)};
gg=function(y,W,V,w){if(W&&W.serializedYpcCujLoggingParams){if(V){var t={};t.transactionErrorType=V;w&&(t.errorMessage=w);W.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:t}}}V={};V.ypcCujContext=W;y=_.uN("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",y,V);_.SW(_.DP(),y,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Osv=function(y,W,V,w){var t={};t.serializedTransactionFlowLoggingParams=W;V&&(t.errorType=V);w&&(t.errorMessage=w);_.Hp(y,t);_.Xk()};
_.vqd=function(y){y&&_.Osv("transactionFlowStarted",y)};
_.dJ4=function(y){y&&_.Osv("transactionFlowCancelled",y)};
_.PW=function(y,W,V){W&&_.Osv("transactionFlowFailed",W,y,V)};
L3n=function(y){var W=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");W&&(W.inert=y)};
_.C6=function(){this.megabloxUrl_=null};
_.O$=function(y){try{var W=zRP==null?void 0:zRP.composedPath(y)}catch(V){W=y.composedPath?y.composedPath():[]}return W&&W.length>0?W:y.composedPath?y.composedPath():[]};
_.vW=function(y){return _.O$(y)[0]};
_.L6=function(y){if(!(y instanceof Element))return null;y=y.classList?Array.from(y.classList):void 0;if(!y)return null;var W=y.indexOf("style-scope");return W>-1&&W+1<y.length?y[W+1]:null};
zA=function(y){if(!(y instanceof HTMLElement))return null;var W=y&&(y.$$||y.polymerController)?y.tagName.toLowerCase():null;return W?W:_.L6(y)};
cjn=function(y,W){return y.replace(/[^a-z]*[^\s]+/g,function(V){return V+".style-scope."+W})};
eRy=function(y,W){return W?y.split(",").map(function(V){return cjn(V.trim(),W)}).join(", "):y};
_.cW=function(y){var W,V,w,t;return(t=(w=(V=(W=y.root)!=null?W:y.shadowRoot)!=null?V:y.__shady_native_shadowRoot)!=null?w:y.__shady_shadowRoot)!=null?t:y};
eB=function(y){return y instanceof ShadowRoot?ShadowRoot:y instanceof DocumentFragment?DocumentFragment:y instanceof Document?Document:HTMLElement};
hRj=function(y){var W,V,w;return(w=(V=(W=y.parentElement)!=null?W:y.__shady_native_parentElement)!=null?V:y.__shady_parentElement)!=null?w:null};
oqt=function(y){var W,V,w;return(w=(V=(W=y.parentNode)!=null?W:y.__shady_native_parentNode)!=null?V:y.__shady_parentNode)!=null?w:null};
K34=function(y){var W,V,w;return(w=(V=(W=y.__shady_parentNode)!=null?W:y.__shady_native_parentNode)!=null?V:y.parentNode)!=null?w:null};
p_u=function(y){var W,V;return(V=(W=oqt(y))!=null?W:y.host)!=null?V:null};
isy=function(y){var W,V,w;return(w=(V=(W=y.nextSibling)!=null?W:y.__shady_native_nextSibling)!=null?V:y.__shady_nextSibling)!=null?w:null};
fuP=function(y){var W,V,w;return(w=(V=(W=y.previousSibling)!=null?W:y.__shady_native_previousSibling)!=null?V:y.__shady_previousSibling)!=null?w:null};
Tan=function(y){var W,V,w;return(w=(V=(W=y.nextElementSibling)!=null?W:y.__shady_native_nextElementSibling)!=null?V:y.__shady_nextElementSibling)!=null?w:null};
mJG=function(y){var W,V,w;return(w=(V=(W=y.previousElementSibling)!=null?W:y.__shady_native_previousElementSibling)!=null?V:y.__shady_previousElementSibling)!=null?w:null};
Mwv=function(y){var W,V,w;return new Set([].concat(_.GC((W=y.children)!=null?W:[]),_.GC((V=y.__shady_native_children)!=null?V:[]),_.GC((w=y.__shady_children)!=null?w:[])))};
q_P=function(y){var W,V,w;return new Set([].concat(_.GC((W=y.childNodes)!=null?W:[]),_.GC((V=y.__shady_native_childNodes)!=null?V:[]),_.GC((w=y.__shady_childNodes)!=null?w:[])))};
UJa=function(y){if(!y)return null;var W=_.L6(y);if(!W){var V;return(V=Node.prototype.getRootNode)==null?void 0:V.call(y)}W=W.toUpperCase();for(y=hRj(y);y&&y.tagName!==W;)y=hRj(y);return y?_.cW(y):null};
u7d=function(y){for(;y&&!(y instanceof HTMLElement);)y=p_u(y);return y};
S_y=function(y){var W=u7d(y);return y===W?_.L6(y):W?zA(W):null};
DJz=function(y){return(y=u7d(y))?zA(y):null};
lut=function(y){if(y instanceof Comment)return!1;if(y instanceof Text){var W,V;if(((V=(W=y.textContent)==null?void 0:W.trim())!=null?V:"")==="")return!1}return!0};
hc=function(y,W,V){var w=W(y);for(V=V===void 0?DJz(y):V;w&&(S_y(w)!==V||!lut(w));)y=w,w=W(y);return w};
xJG=function(y,W,V){if(!W)return null;y=DJz(y);return S_y(W)===y&&lut(W)?W:hc(W,V,y)};
khL=function(y){return hc(y,K34,_.L6(y))};
s54=function(y){return hc(y,Tan)};
Ajb=function(y){return hc(y,isy)};
Y_u=function(y){return hc(y,mJG)};
Baa=function(y){return hc(y,fuP)};
JjP=function(y){return xJG(y,y.firstChild||y.__shady_native_firstChild||y.__shady_firstChild||null,isy)};
RRu=function(y){var W,V,w;var t=(w=(V=(W=y.firstElementChild)!=null?W:y.__shady_native_firstElementChild)!=null?V:y.__shady_firstElementChild)!=null?w:null;return xJG(y,t,Tan)};
j5a=function(y){var W,V,w;var t=(w=(V=(W=y.lastChild)!=null?W:y.__shady_native_lastChild)!=null?V:y.__shady_lastChild)!=null?w:null;return xJG(y,t,fuP)};
$Jv=function(y){var W,V,w;var t=(w=(V=(W=y.lastElementChild)!=null?W:y.__shady_native_lastElementChild)!=null?V:y.__shady_lastElementChild)!=null?w:null;return xJG(y,t,mJG)};
nqb=function(y){var W=DJz(y);return Array.from(q_P(y)).filter(function(V){return S_y(V)===W})};
Hsv=function(y){var W=zA(y);return Array.from(Mwv(y)).filter(function(V){return _.L6(V)===W})};
_.o6=function(y,W,V){if(y instanceof HTMLElement&&_.L6(y)===V){var w=Array.from(y.classList).indexOf("style-scope");if(w===-1)y.classList.add("style-scope"),y.classList.add(W);else if(!(w+1>=y.classList.length)){w=y.classList[w+1];var t,F;y==null||(t=y.classList)==null||(F=t.replace)==null||F.call(t,w,W)}}if(y instanceof HTMLElement||y instanceof DocumentFragment)for(t=_.N(Mwv(y)),F=t.next();!F.done;F=t.next())_.o6(F.value,W,V);return y};
K6=function(y,W){if(y instanceof HTMLElement&&_.L6(y)===W){var V=Array.from(y.classList).indexOf("style-scope");V===-1||V+1>=y.classList.length||y.classList.remove("style-scope",y.classList[V+1])}if(y instanceof HTMLElement||y instanceof DocumentFragment){V=_.N(y.children);for(var w=V.next();!w.done;w=V.next())K6(w.value,W)}return y};
_.X_L=function(y,W){return eB(y).prototype.appendChild.call(y,W)};
au4=function(y,W){if(y===W)return!0;y=q_P(y);return Array.from(y).some(function(V){return au4(V,W)})};
_.i6=function(y,W){if(y instanceof p6)return y;(W==null?0:W.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(y,"ownerDocument")&&Object.defineProperty(y,"ownerDocument",{get:function(){return window.document}});
return new p6(y)};
rjj=function(){var y=p6.prototype,W=[].concat(_.GC(Gha?[]:["getRootNode"]),["setAttribute","removeAttribute"]);W=_.N(W);for(var V=W.next(),w={};!V.done;w={method$jscomp$51:void 0},V=W.next())w.method$jscomp$51=V.value,y[w.method$jscomp$51]=function(t){return function(){return this.host[t.method$jscomp$51].apply(this.host,arguments)}}(w)};
Q5u=function(){var y=p6.prototype,W=[].concat(_.GC(Gha?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.GC(bsd?[]:["querySelector","querySelectorAll"]));W=_.N(W);for(var V=W.next(),w={};!V.done;w={method$jscomp$52:void 0},V=W.next())w.method$jscomp$52=V.value,y[w.method$jscomp$52]=function(t){return function(){return this.root[t.method$jscomp$52].apply(this.root,arguments)}}(w)};
Wld=function(){var y=p6.prototype,W=[].concat(_.GC(Zsu?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.GC(yku?[]:["parentNode"]));W=_.N(W);for(var V=W.next(),w={};!V.done;w={prop$jscomp$62:void 0},V=W.next())w.prop$jscomp$62=V.value,Object.defineProperty(y,w.prop$jscomp$62,{get:function(t){return function(){return this.host[t.prop$jscomp$62]}}(w),
configurable:!0})};
tFn=function(){var y=p6.prototype,W=["activeElement"].concat(_.GC(Zsu?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.GC(VFL?[]:["children"]),_.GC(wGt?[]:["lastChild"]));W=_.N(W);for(var V=W.next(),w={};!V.done;w={prop$jscomp$63:void 0},V=W.next())w.prop$jscomp$63=V.value,Object.defineProperty(y,w.prop$jscomp$63,{get:function(t){return function(){return this.root[t.prop$jscomp$63]}}(w),
configurable:!0})};
Fln=function(){for(var y=p6.prototype,W=_.N(["innerHTML","textContent"]),V=W.next(),w={};!V.done;w={prop$jscomp$64:void 0},V=W.next())w.prop$jscomp$64=V.value,Object.defineProperty(y,w.prop$jscomp$64,{get:function(t){return function(){return this.root[t.prop$jscomp$64]}}(w),
set:function(t){return function(F){this.root[t.prop$jscomp$64]=F}}(w),
configurable:!0})};
Erv=function(y){var W=p6.prototype;y=_.N(Object.entries(y));for(var V=y.next(),w={};!V.done;w={fn$jscomp$387:void 0},V=y.next()){var t=_.N(V.value);V=t.next().value;t=t.next().value;w.fn$jscomp$387=t;W[V]=function(F){return function(){return F.fn$jscomp$387.apply(null,[this.host.node||this.host].concat(_.GC(arguments)))}}(w)}};
IrG=function(){for(var y=p6.prototype,W=_.N(Object.entries(NXv)),V=W.next(),w={};!V.done;w={fn$jscomp$388:void 0},V=W.next()){var t=_.N(V.value);V=t.next().value;t=t.next().value;w.fn$jscomp$388=t;Object.defineProperty(y,V,{get:function(F){return function(){return F.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.GC(arguments)))}}(w),
configurable:!0})}};
_.f6=function(y){return y instanceof grR||y instanceof Document?y:new grR(y)};
Ppt=function(){for(var y=grR.prototype,W=_.N("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),V=W.next(),w={};!V.done;w={method$jscomp$53:void 0},V=W.next())w.method$jscomp$53=V.value,y[w.method$jscomp$53]=function(t){return function(){return HTMLElement.prototype[t.method$jscomp$53].call.apply(HTMLElement.prototype[t.method$jscomp$53],[this.node].concat(_.GC(arguments)))}}(w)};
Cpb=function(){for(var y=grR.prototype,W=_.N("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),V=W.next(),w={};!V.done;w={prop$jscomp$65:void 0},V=W.next())w.prop$jscomp$65=V.value,Object.defineProperty(y,w.prop$jscomp$65,{get:function(t){return function(){var F;return(F=this.node["__shady_native_"+t.prop$jscomp$65])!=null?F:this.node[t.prop$jscomp$65]}}(w),
configurable:!0})};
_.TA=function(y,W,V){V===void 0&&(V=!y.classList.contains(W));V?y.classList.add(W):y.classList.remove(W)};
_.mg=function(y,W,V){V===void 0&&(V=!y.hasAttribute(W));if(W==="class")throw Error("og");V?_.f6(y).setAttribute(W,""):_.f6(y).removeAttribute(W)};
O9j=function(y){return(y.localName!=="slot"?[]:(0,_.Mg)(y).assignedNodes({flatten:!0})).filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
_.vrL=function(y){return(y=_.i6(y).querySelector("slot"))&&y.localName==="slot"?O9j(y):[]};
_.qg=function(y,W){window.ShadyCSS&&window.ShadyCSS.styleSubtree(y,W)};
SB=function(y,W){var V=W.bind(y);return function(w){V(w,w.detail)}};
_.Dp=function(y,W){var V=dDG.get(y);V||(V=new WeakMap,dDG.set(y,V));if(V.has(W))return V.get(W);if(_.e("web_fi_listen_disable_bound_fn_helper")){var w=W.bind(y);y=function(t){w(t,t==null?void 0:t.detail)}}else y=SB(y,W);
V.set(W,y);return y};
ckj=function(y,W){LlP(y);y.created[zGy].push(W)};
LlP=function(y){if(!y.created||!y.created[zGy]){var W=y.created,V=W?[W]:[];y.created=function(){for(var w=_.N(V),t=w.next();!t.done;t=w.next())t.value.apply(this)};
y.created[zGy]=V}};
eGn=function(y){return function(){var W=_.Ve.apply(0,arguments);return function(V,w,t){y.apply(null,_.GC(W))(V,w,t)}}};
hGz=function(){return function(){var y=_.Ve.apply(0,arguments);return function(W,V,w){CQR.apply(null,_.GC(y))(W,V,w)}}};
_.m=function(y){return hGz()(y)};
_.M=function(){return eGn(LqR).apply(null,_.GC(_.Ve.apply(0,arguments)))};
_.l6=function(y){return _.e("pbcm_fi_listen_decorators")?oru(y):eGn(vWt)(y)};
oru=function(y){return function(W,V){ckj(W,function(){var w=this[V],t=_.e("web_fi_listen_disable_bound_fn_helper")?function(F){w(F,F.detail)}.bind(this):SB(this,w);
Klv.has(y)?Hl(this.hostElement,y,t):this.hostElement.addEventListener(y,t)})}};
_.xA=function(){return eGn(d_b).apply(null,_.GC(_.Ve.apply(0,arguments)))};
_.q=function(y){y=y===void 0?{}:y;return eGn(Olb)(y)};
_.kA=function(y){if(y.hostElement&&y!==y.hostElement){var W=_.Yy(y.hostElement);W=y.renderIdom?W:W.shadowRoot}W||(y=y.root,W=y instanceof Node?_.Yy(y):null);return W};
_.s$=function(y){return pGt?i9n(y):function(W,V){Object.defineProperty(W,V,{get:function(){var w;return(w=_.kA(this))==null?void 0:w.querySelector(y)},
enumerable:!0,configurable:!0})}};
i9n=function(y){return function(W,V){Object.defineProperty(W,V,{get:function(){var w,t=(w=_.i6(this.hostElement))==null?void 0:w.querySelector(y);if(t)return t;var F;return(F=_.kA(this))==null?void 0:F.querySelector(y)},
enumerable:!0,configurable:!0})}};
_.Ac=function(y){return pGt?frR(y):function(W,V){Object.defineProperty(W,V,{get:function(){var w;return(w=_.kA(this))==null?void 0:w.querySelectorAll(y)},
enumerable:!0,configurable:!0})}};
frR=function(y){return function(W,V){Object.defineProperty(W,V,{get:function(){var w,t=(w=_.i6(this.hostElement))==null?void 0:w.querySelectorAll(y);if(t==null?0:t.length)return t;var F;return(F=_.kA(this))==null?void 0:F.querySelectorAll(y)},
enumerable:!0,configurable:!0})}};
TXb=function(y){return function(W){if(![_.O0,_.u].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("pg");w8R(Object.assign({},typeof y!=="string"?y:{is:y,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(W)}};
_.BW=function(){var y=y===void 0?{}:y;return function(W){if(![vf,_.YA].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("qg");tdj(Object.assign({},y,{disableInheritanceCheck:!0}))(W)}};
MFn=function(y,W){mDv[y]!=null||(mDv[y]=new Set);mDv[y].add(W)};
_.Jc=function(){var y=_.xA.apply(null,_.GC(_.Ve.apply(0,arguments)));return function(W,V){MFn(W.is,V);y(W,V)}};
$A=function(y,W,V){if(R6(y)&&!qSz.has(W)){W=W.replace(/^JSC\$[\d]+_/,"");W=W.replace(/\.\d+(\.|$)/g,function(F,I){return".#"+I});
jB[y]!=null||(jB[y]={});var w,t;(w=jB[y])[t=W]!=null||(w[t]=new Set);jB[y][W].has(V)||(jB[y][W].add(V),_.Hp("polymerPropertyAccessEvent",{componentName:y,propertyName:W,accessType:V}))}};
UDP=function(){return _.e("polymer_property_access_logging_debug")||_.e("polymer_enable_property_access_logging")};
R6=function(y){if(_.e("polymer_property_access_logging_debug"))return!0;if(!_.e("polymer_enable_property_access_logging"))return!1;uHb||(uHb=Date.now());return(WN(y)+uHb)%100<_.pB("polymer_property_access_logging_percent")};
SSv=function(y,W){return R6(W)&&y.hostElement.loggingStatus?new Proxy(y,{get:function(V,w,t){if(V.hostElement.loggingStatus.bypassProxyController)return V[w];V.hostElement.loggingStatus.isExternalGet=!0;var F=V[w];V.hostElement.loggingStatus.isExternalGet=!1;if(F instanceof Function)return function(){var I=_.Ve.apply(0,arguments);try{return V.hostElement.loggingStatus.currentExternalCall=w,$A(W,w,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),F.apply(this===t?V:this,I)}finally{V.hostElement.loggingStatus.currentExternalCall=
void 0}};
$A(W,w,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return F},
set:function(V,w,t){if(V.hostElement.loggingStatus.bypassProxyController)return V[w]=t,!0;V.hostElement.loggingStatus.isRendererStamper?$A(W,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):V.hostElement.loggingStatus.isDeclarativeExternal||$A(W,w,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{V.hostElement.loggingStatus.currentExternalSet=w,V[w]=t}finally{V.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):y};
DDy=function(y,W){y&&y.loggingStatus&&!y.loggingStatus.isDeclarativeExternal&&!y.loggingStatus.isExternalGet&&y.loggingStatus.currentExternalSet!==W&&$A(y.tagName.toLowerCase(),W,"PROPERTY_ACCESS_GET_INTERNAL")};
n6=function(y,W,V){y&&(V||y.loggingStatus&&!y.loggingStatus.isInitializing&&!y.loggingStatus.isDefiningPropertyAccessor&&y.loggingStatus.currentExternalSet!==W)&&$A(y.tagName.toLowerCase(),W,"PROPERTY_ACCESS_SET_INTERNAL")};
lrP=function(){return{_definePropertyAccessor:function(y,W){var V=this,w=V.hostElement.loggingStatus;w&&(w.isDefiningPropertyAccessor=!0);var t=V[y];t!==void 0&&(V.__data?V._setPendingProperty(y,t):(V.__dataProto!=null||(V.__dataProto={}),V.__dataProto[y]=t));w&&(w.isDefiningPropertyAccessor=!1);Object.defineProperty(this,y,{get:function(){DDy(V.hostElement,y);return this.__data[y]},
set:function(F){W||this._setPendingProperty(y,F,!0)&&this._invalidateProperties()}})},
created:function(){var y=this._setPendingProperty.bind(this);this._setPendingProperty=function(W,V,w){n6(this.hostElement,W);return y.apply(this,[W,V,w])}}}};
xDy=function(y){UDP()&&_.m(HW.prototype)(y.prototype,"__templateBindingLoggingBehavior")};
kXy=function(y,W){if(W.resolvedFactories.length!==y.resolvedFactories.length)return!0;W=_.N(W.resolvedFactories.entries());for(var V=W.next();!V.done;V=W.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;if(w.providerClass){if(w.providerClass!==y.resolvedFactories[V].providerClass)return!0}else if(w.providerValue){if(w.providerValue!==y.resolvedFactories[V].providerValue)return!0}else if(w.factory!==y.resolvedFactories[V].factory)return!0}return!1};
szL=function(y,W){y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,V.constructor===Array)szL(V,W);else{var w=W;w.has(V)||(V.inject&&w.add(V),V.behaviors&&szL(V.behaviors,w))}};
Xe=function(y,W){var V=y[W];y[W]=function(){var w=_.Ve.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(V)return V.apply(this,w)}};
JkR=function(){_.a6.Class=function(V,w){V=Akb(V,w);Xe(V.prototype,"created");return V};
Xe(GA.prototype,"_initializeProperties");Xe(_.rg.prototype,"_initializeProperties");if(YSG)Xe(BXd,"created");else{var y=function(){Xe(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))y();else{var W=customElements.define;customElements.define=function(V,w,t){W.call(customElements,V,w,t);V==="tp-yt-iron-list"&&(y(),customElements.define=W)}}}};
jzy=function(y,W){y.prototype.behaviors=y.prototype.behaviors||[];y.prototype.behaviors.unshift(RG4.InjectBehavior);y.prototype.provide=W};
_.Zp=function(y){return function(W){if(!y.disableElementRegistration){y.noInjection||jzy(W,y.providers);var V=W.prototype;V.__templateHelpers||CQR(b6.prototype)(V,"__templateHelpers");V=y.is;$Dt||($Dt=Date.now());(WN(V)+$Dt)%100<_.pB("polymer_log_prop_change_observer_percent")&&CQR(Q2.prototype)(W.prototype,"__propertyObserverObserver");W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(_.nrR.YtHostElementBehavior);xDy(W);TXb({is:y.is,notifyObserversOnUndefined:y.notifyObserversOnUndefined!==
!1,fastInit:y.fastInit,template:y.template,disableEnforceFastDefaultValuesCheck:!0})(W)}}};
_.k=function(y){return _.Zp({is:y.is,template:y.template,disableElementRegistration:y.disableElementRegistration,cssBuildOptOut:y.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
arn=function(y,W){if(H9R){y=new y;for(var V=_.N(Object.getOwnPropertyNames(y)),w=V.next();!w.done;w=V.next())w=w.value,W[w]=y[w];for(V=W;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){w=_.N(Object.getOwnPropertyNames(V));for(var t=w.next();!t.done;t=w.next())t=t.value,y.hasOwnProperty(t)||Object.defineProperty(y,t,XG4(W,t))}}else y.apply(W)};
XG4=function(y,W){return{get:function(){var V=y[W];return V instanceof Function?V.bind(y):V},
set:function(V){y[W]=V}}};
rkj=function(y,W){for(var V=y._noAccessors,w=_.N(Object.getOwnPropertyNames(y)),t=w.next();!t.done;t=w.next())if(t=t.value,!GX4.has(t))if(V)W[t]=y[t];else{var F=Object.getOwnPropertyDescriptor(y,t);F&&(F.configurable=!0,Object.defineProperty(W,t,F))}};
b9P=function(y,W,V){return function(w){if(V){var t=V();w.model=t}if(y[W])y[W](w,w.detail)}};
y3=function(y){var W=[];if(typeof y==="string")y.length>0&&W.push.apply(W,_.GC(y.split(".")));else{y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,typeof V==="string"?W.push.apply(W,_.GC(V.split("."))):W.push(V)}return W};
Qzt=function(y,W){if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){for(var V=0;V<W.length;V++){if(!y)return;y=y[W[V]]}return y}};
Z9L=function(y,W){if(y.length>W.length)return!1;for(var V=0;V<y.length;V++)if(y[V]!==W[V])return!1;return!0};
WsL=function(y,W,V){if(W.type==="compute"){var w=W.getter.bind(V);var t=W.args}else w=function(){return V[W.method.methodName].apply(V,_.GC(_.Ve.apply(0,arguments)))},t=W.method.args;
y4P(y,W.propertyKey,w,t,W.value)};
wvv=function(y,W){if(W.readOnly){var V=Object.getOwnPropertyDescriptor(y.model,W.propertyKey);Object.defineProperty(y.model,W.propertyKey,{get:V.get,set:function(){}});
y.model[Vct(W.propertyKey)]=V.set}};
tcv=function(y,W,V){if(V){var w=W.propertyKey,t=W.selector;W=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.GC(W.selectorArgs.map(function(F){return{type:"path",path:F}})));
y4P(y,w,function(F){var I=_.Ve.apply(1,arguments);return t.apply(null,[V.getState()].concat(_.GC(I)))},W)}};
Ehb=function(y,W,V){var w=_.uu(W.propertyKey)+"-changed";Fsv(y,function(t){var F={value:t.value,queueProperty:!0};t.path.split(".").length>1&&(F.path=t.path);V.dispatchEvent(new CustomEvent(w,{detail:F}))},[{type:"wildcard",
path:W.propertyKey}])};
NkL=function(y,W,V){Fsv(y,function(){V[W.method.methodName].apply(V,_.GC(_.Ve.apply(0,arguments)))},W.method.args)};
Vct=function(y){return"_set"+(y.charAt(0).toUpperCase()+y.slice(1))};
ghy=function(){return _.e("enable_track_defined_via_mutable_signal")||IUz};
Pqv=function(){var y,W=af(function(V){y=V},!1);
return[y,W]};
Lsv=function(y){y=y.trim().replace(Cqv,",").replace(Ota,"$1");var W=y[0];W==="-"&&(W=y[1]);if(W>="0"&&W<="9")return{type:"literal",value:Number(y)};if(W==="'"||W==='"')return{type:"literal",value:y.slice(1,-1)};if(W=y.match(vhG)){W=W[1];var V=dFj[W];if(V)return{type:V,path:y.slice(0,-(W.length+1))}}return{type:"path",path:y}};
hrP=function(y){var W=y.match(zrv);if(W)return y={methodName:W[1],args:c44},W[2].trim()&&(W=W[2].replace(ert,"&comma;").split(","),y.args=W.map(Lsv)),y};
ohG=function(y,W,V,w){w=w===void 0?!1:w;W=_.uu(W);var t=xk;t&&(V=t(V,W,"attribute",y));WC(y,V,W,w)};
WC=function(y,W,V,w){W=KsG(W,w===void 0?!1:w);W===void 0?y.removeAttribute(V):y.setAttribute(V,W)};
KsG=function(y,W){switch(typeof y){case "object":case "function":if(y instanceof Date)return y.toString();if(y){if((W===void 0?0:W)&&!_.e("polymer_reflect_objects_as_boolean_killswitch"))return y?"":void 0;W=window.trustedTypes?window.trustedTypes.isHTML(y)||window.trustedTypes.isScript(y)||window.trustedTypes.isScriptURL(y):void 0;if(W)return y;try{return JSON.stringify(y)}catch(V){_.rQ(Error("Mg`"+y))}}break;case "boolean":return y?"":void 0;default:return y!==null&&y!==void 0?y.toString():void 0}};
pva=function(y){if(y===void 0)throw Error("Ng");return y};
McR=function(y,W,V,w){var t=itn(w);if(t.length){w=V;var F="property";fUG.test(V)?F="attribute":V[V.length-1]==="$"&&(V=V.slice(0,-1),F="attribute");var I=Tkz(t);I&&F==="attribute"&&(V==="class"&&y.hasAttribute("class")&&(I+=" "+y.getAttribute(V)),WC(y,I,V));F==="attribute"&&w==="disable-upgrade$"&&y.setAttribute("disable-upgrade","");y.localName==="input"&&w==="value"&&y.setAttribute("value","");y.removeAttribute(w);F==="property"&&(V=_.SK(V));W=pva(W);mFu(W,F,V,t);return!0}return V.slice(0,3)===
"on-"?(y.removeAttribute(V),(F=W).events!=null||(F.events=[]),W.events.push({name:V.slice(3),value:w}),!0):V==="id"?(W.id=w,!0):!1};
itn=function(y){for(var W=[],V=0,w;(w=qtG.exec(y))!==null;){w.index>V&&W.push({type:"literal",value:y.slice(V,w.index)});var t=w[1][0];V=!!w[2];w=w[3].trim();if(t==="{")throw Error("Og");(t=hrP(w))?W.push({type:"method",negate:V,signature:t}):W.push({type:"path",negate:V,path:w});V=qtG.lastIndex}V&&V<y.length&&(y=y.substring(V))&&W.push({type:"literal",value:y});return W};
Tkz=function(y){for(var W="",V=0;V<y.length;V++){var w=y[V];w.type==="literal"&&(W+=w.value)}return W};
mFu=function(y,W,V,w){y.bindings!=null||(y.bindings=[]);y.bindings.push({kind:W,target:V,parts:w})};
lUu=function(y,W,V){var w=!1;if(y.localName==="template"){w=V;var t=W.stripWhitespace;t=UFv(y,t===void 0?!1:t);var F=y.content.ownerDocument.createDocumentFragment();t.content=F;F.appendChild(y.content);w&&(w.templateInfo=t);w=!0}else y.localName==="slot"&&(W.hasInsertionPoint=!0);if(y.firstChild&&(t=V,y.localName!=="script"&&y.localName!=="style")){F=0;for(var I=y.firstChild;I;){var P=I;if(P.localName==="template"){var C=P.getAttribute("is");if((I=C==="dom-if")||C==="dom-repeat"){P.removeAttribute("is");
C=P.ownerDocument.createElement("ps-"+C);P.parentNode.replaceChild(C,P);C.appendChild(P);var d=Array.from(P.attributes);d=_.N(d);for(var L=d.next();!L.done;L=d.next())L=L.value,I?uNG.has(L.name)&&WC(C,L.value,L.name):Stb.has(L.name)?WC(C,L.value,L.name):DFn.has(L.name),P.removeAttribute(L.name);I=C}else I=P}if(I.nodeType===Node.TEXT_NODE){P=void 0;C=y;for(d=I;((P=d.nextSibling)==null?void 0:P.nodeType)===Node.TEXT_NODE;)L=void 0,(L=d).textContent!=null||(L.textContent=""),d.nextSibling.textContent&&
(d.textContent+=d.nextSibling.textContent),C.removeChild(d.nextSibling);if(W.stripWhitespace&&I.textContent&&!I.textContent.trim()){y.removeChild(I);I=I.nextSibling;continue}}lUu(I,W,{parentIndex:F,parentInfo:t});I.parentNode&&F++;I=I.nextSibling}}var z;if((z=y.hasAttributes)==null?0:z.call(y)){z=V=pva(V);t=!1;F=Array.from(y.attributes);F=_.N(F);for(P=F.next();!P.done;P=F.next())P=P.value,t=McR(y,z,P.name,P.value)||t;w=t||w}y.nodeType===Node.TEXT_NODE&&(z=itn(y.textContent),z.length&&(y.textContent=
Tkz(z)||" ",V=pva(V),mFu(V,"text","textContent",z),w=!0));V&&w&&(V.infoIndex=W.nodeInfoList.push(V)-1)};
UFv=function(y,W){W={nodeInfoList:[],stripWhitespace:(W===void 0?!1:W)||y.hasAttribute("strip-whitespace")};lUu(y.content,W);return W};
xFn=function(y){Object.assign(y,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
s_P=function(y,W,V){W.signalCache!=null||(W.signalCache={});var w=W.signalCache[V];if(!w){var t=V.split(".");w=!kiz(y,t[0]);if(t.length>1&&w){var F=y.getPathMutationSignal(t);w=function(){var I=bO(y.owner,function(){return y.getWithPath([t[0]])}),P,C=(P=F())==null?void 0:P.value;
return{rootWasDefined:I!==void 0,value:C}}}else w=function(){var I=y.getWithPath(t);
return{rootWasDefined:I!==void 0,value:I}};
W.signalCache[V]=w}return w()};
Ytu=function(y,W,V,w,t){W=W.parts.map(function(I,P){if(I.type==="literal"){V.partWasDefined!=null||(V.partWasDefined=[]);var C;(C=V.partWasDefined)[P]||(C[P]=I.value!==void 0);return I.value}var d;if(I.type==="method"){var L,z=(L=(d=V.partWasDefined)==null?void 0:d[P])!=null?L:!1;z||(z=I.signature.args.every(function(f){return f.type==="literal"}));
var c=!1,K=!0;d=I.signature.args.map(function(f){if(f.type==="literal")return f.value;if(f.type!=="path")throw Error("Pg`"+f.type);var U=s_P(y,V,f.path);f=U.value;U=U.rootWasDefined;c||(c=U);K&&(K=U);return f});
z||(z=t===1?K:c);V.partWasDefined!=null||(V.partWasDefined={});V.partWasDefined[P]=z;if(!z)return;d=(P=s_P(y,V,I.signature.methodName).value)&&typeof P==="function"?P.apply(w,d):void 0}else L=s_P(y,V,I.path),d=L.value,V.partWasDefined!=null||(V.partWasDefined={}),(z=V.partWasDefined)[P]||(z[P]=d!==void 0||L.rootWasDefined);I.negate&&(d=!d);return d});
if(W.length===1){var F;return((F=V.partWasDefined)==null?0:F[0])?W[0]:A4n}return W.join("")};
Bkz=function(y){return typeof y==="object"&&!!y&&"notifyPath"in y&&"canNotifyPath"in y};
J4u=function(y){return typeof y==="object"&&!!y&&"notifyPath"in y};
Rrv=function(y){return"polymerController"in y};
j_4=function(y,W){W=""+y3(W)[0];if(Bkz(y))return y.canNotifyPath(W);if(Rrv(y)&&Bkz(y.polymerController))return y.polymerController.canNotifyPath(W);if(J4u(y)){var V;return!((V=y.properties)==null||!V[W])}if(Rrv(y)&&J4u(y.polymerController)){var w;return!((w=y.polymerController.properties)==null||!w[W])}return!1};
$FP=function(y,W,V){Bkz(y)||J4u(y)?y.notifyPath(W,V):Rrv(y)&&(Bkz(y.polymerController)||J4u(y.polymerController))&&y.polymerController.notifyPath(W,V)};
Ht4=function(y,W,V){if(V!==A4n){y.kind==="attribute"||y.target!=="textContent"&&(y.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(V=V===void 0?"":V);var w,t=(w=nh4.Polymer)==null?void 0:w.sanitizeDOMValue;t&&(V=t(V,y.target,y.kind,W));if(y.kind==="attribute"){y=y.target;if(y==="class"||y==="name"||y==="slot")W=(0,_.Mg)(W);WC(W,V,y)}else if(y=y.target,V!==W[y]||typeof V==="object")W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0,$A(W.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
W[y]=V,W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)}};
Xvb=function(y,W,V,w){var t=W.parts[0];if(W.parts.length!==1||t.type!=="path"||!j_4(V,W.target))return!1;var F=_.N(t.path.split(".")),I=F.next().value,P=Cb(F);if(kiz(y,I))return!1;w.signalCache!=null||(w.signalCache={});F=w.signalCache[t.path];var C;F=(C=F)==null?void 0:C().value;if((F==null?void 0:F.path)!==void 0){w=y3(F.path);var d=y3(t.path);w=[W.target].concat(_.GC(w.slice(d.length-1)));$FP(V,w,t.negate?!F.value:F.value);return!0}var L=V3(y,I);var z=L.getChangeRecordSignal(P),c=!1;F=function(){if(!c){var f=
bO(y.owner,function(){return L.getWithPath([])});
c||(c=f!==void 0)}return{value:z(),rootWasDefined:c}};
w.signalCache[t.path]=F;w.partWasDefined!=null||(w.partWasDefined={});F=F();(d=w.partWasDefined)[0]||(d[0]=F.rootWasDefined);var K=bO(y.owner,function(){return L.getWithPath(P)});
w.partWasDefined[0]&&bO(y.owner,function(){return void Ht4(W,V,t.negate?!K:K)});
return!0};
aUb=function(y,W,V,w,t,F){if(!Xvb(y,W,V,w)){var I=Ytu(y,W,w,t,F);bO(y.owner,function(){return void Ht4(W,V,I)})}};
Gib=function(y,W,V,w,t,F){V=_.N(V);for(var I=V.next(),P={};!I.done;P={infoIndex:void 0},I=V.next()){I=I.value;var C=I.bindings;P.infoIndex=I.infoIndex;I=I.parentInfo;if(C){C=_.N(C);for(var d=C.next(),L={};!d.done;L={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},d=C.next()){L.b$jscomp$253=d.value;if(P.infoIndex===void 0)throw Error("Qg");L.bindingCtx$jscomp$4={};y.effect(function(z,c){return function(){t&&!t()||aUb(y,z.b$jscomp$253,W[c.infoIndex],z.bindingCtx$jscomp$4,w,F)}}(L,P))}}I&&Gib(y,W,[I],
w,t,F)}};
r4P=function(y,W){y=(W.parentInfo?r4P(y,W.parentInfo):y).firstChild;for(var V=0;y;y=y.nextSibling)if(W.parentIndex===V++)return y;throw Error("Rg");};
Q_t=function(y,W,V,w){y=document.importNode(y.content,!0);y.__noInsertionPoint=!(w==null?0:w.hasInsertionPoint);for(var t=Array(W.length),F={},I=0;I<W.length;I++){var P=W[I],C=r4P(y,P);t[I]=C;P.id&&(F[P.id]=C);if(P.templateInfo){var d=C.parentElement;d&&(d.templateInfo=P.templateInfo,d.parentSignalProxy=V,d.eventListenerHost=w.eventListenerHost,d.stampingEnabled=w.enabledSignal)}d=void 0;if((d=P.events)==null?0:d.length)for(d=0;d<P.events.length;d++){var L=P.events[d];btL(w.eventListenerHost,C,L.name,
L.value,w.getModel)}}Gib(V,t,W,w.thisCtx,w.enabledSignal,w.methodInvocationRequirement);return{root:y,nodes:t,nodesById:F}};
y3u=function(y,W){y=y();var V;(V=Zty.ShadyCSS)==null||V.prepareTemplate(y,W);W=UFv(y);return{template:y,nodeInfoList:W.nodeInfoList,hasInsertionPoint:W.hasInsertionPoint}};
w6d=function(){Wiy=!1;for(var y=wc.length,W=0;W<y;W++){var V=wc[W];if(V)try{V()}catch(w){Promise.resolve().then(function(){throw w;})}}wc.splice(0,y);
Vjd+=y};
NRt=function(y){Wiy||(Wiy=!0,tj4.textContent=(Fij++).toString());wc.push(y);return EwG++};
_.Er=function(y,W,V){tY++;y=W?new IiG(tY,y,W,V):new gw4(tY,y);FZ.set(tY,y);return tY};
PxL=function(y){(y=FZ.get(y))&&y.cancel()};
OmP=function(y,W){y=Cxb.get(y);return y?(W=y.get(W))?W:null:null};
_.NM=function(y,W,V,w){var t=OmP(y,W);if(!t){t=new vwb;var F=Cxb.get(y);F||(F=new Map,Cxb.set(y,F));F.set(W,t)}y=V.bind(y);t.run(y,w,void 0)};
_.dhy=function(y,W){var V;(V=OmP(y,W))==null||V.cancel()};
Li4=function(y){var W;(W=OmP(y,"doRender"))==null||W.flush()};
IU=function(y){var W;return(W=y.hostElement)!=null?W:y};
zxL=function(y){var W=y.indexOf(".");return W===-1?y:y.slice(0,W)};
c3v=function(y,W,V,w,t,F){F=(t=(w=F?zxL(W):W)?W:null)?y.get(t):y.__data[W];t&&F===void 0&&(F=V[W]);_.h1(y.hostElement,jgv(w)+"-changed",{value:F,queueProperty:!0,path:t!=null?t:void 0},{bubbles:!1,composed:!1})};
exn=function(y,W){y.__isReflecting=!0;ohG(y.hostElement,W,y.__data[W]);y.__isReflecting=!1};
hxz=function(y){if(y._onIronRequestResizeNotifications){var W=y._onIronRequestResizeNotifications.bind(y);y._onIronRequestResizeNotifications=function(V){_.vW(V)!==y.hostElement&&W(V)}}y._ariaActiveAttributeChanged&&(y._ariaActiveAttributeChanged=y._ariaActiveAttributeChanged.bind(y.hostElement));
y._activeChanged&&(y._activeChanged=function(V){y.toggles?WC(y.hostElement,V?"true":"false",y.ariaActiveAttribute):y.hostElement.removeAttribute(y.ariaActiveAttribute);y._changedButtonState()});
y._asyncClick&&(y._asyncClick=function(){_.Er(function(){y.hostElement.click()},1)});
!y.keyEventTarget||y.keyEventTarget instanceof EventTarget||(y.keyEventTarget=IU(y.keyEventTarget));y._disabledChanged&&(y._disabledChanged=y._disabledChanged.bind(y.hostElement));y._observeItems&&(y._observeItems=function(V){var w=IU(V);return _.Yy(w).observeNodes(function(t){y._updateItems();y._updateSelected();_.h1(w,"iron-items-changed",t,{bubbles:!1,cancelable:!1})})});
y._updateItems&&y._updateItems===_.PC._updateItems&&(y._updateItems=function(){var V=_.Yy(y.hostElement).queryDistributedElements(y.selectable||"*");V=Array.prototype.filter.call(V,y._bindFilterItem);y._setItems(V)});
y._computeKeyboardClass&&(y._computeKeyboardClass=function(V){_.TA(y.hostElement,"keyboard-focus",V)});
y.ensureRipple&&(y.ensureRipple=function(V){if(y.hasRipple&&!y.hasRipple()){if(!y._createRipple)return;y._ripple=y._createRipple();y._ripple.noink=y.noink;var w=y._rippleContainer||y.hostElement;w&&_.i6(w).appendChild(y._ripple)}var t;if(V&&((t=y._ripple)==null?0:t.uiDownAction)){w=_.i6(y._rippleContainer||y.hostElement);var F;t=(F=V.composedPath())==null?void 0:F[0];w.contains(t)&&y._ripple.uiDownAction(V)}});
y._updateMultiselectable&&(y._updateMultiselectable=function(V){V?y.hostElement.setAttribute("aria-multiselectable","true"):y.hostElement.removeAttribute("aria-multiselectable")})};
owj=function(y,W,V){V=_.N(V);for(var w=V.next();!w.done;w=V.next())arn(w.value.constructor,y);arn(W.constructor,y)};
p6b=function(y,W){y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,V.type==="signal"){var w=V.propertyKey;if(W.hasOwnProperty(w)&&W[w]!=null&&V.attributeType===Object){a:{w=W[w].constructor;for(var t=_.N(Kij),F=t.next();!F.done;F=t.next())if(F=F.value,w===F){w=F;break a}w=Object}V.attributeType=w}}};
imu=function(){};
fin=function(y){var W;return(W=y.hostElement)!=null?W:y};
TRd=function(){throw Error("Vg");};
mhz=function(y,W){y.constructor.prototype.useSignals=!0;var V=new y.constructor;owj(V,y,W.behaviors);p6b(W.reactiveSchemas,V);V={};for(var w=_.N(W.reactiveSchemas),t=w.next();!t.done;t=w.next())t=t.value,t.type==="signal"&&(V[t.propertyKey]=t.attributeType);var F={copyPropertiesToProto:TRd,didRegister:!1,typesForSignals:V},I=["disable-upgrade"].concat(_.GC(W.observedAttributes)),P=function(C){CD.call(this,y,W,F,C)};
_.p(P,CD);_.CM.Object.defineProperties(P,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I}}});
F.copyPropertiesToProto=function(){for(var C=0;C<W.behaviors.length;C++)rkj(W.behaviors[C],P.prototype);rkj(y,P.prototype)};
W.legacyOptimizations||F.copyPropertiesToProto();P.prototype.is=y.is;return P};
Mjy=function(y,W){if(Object.getPrototypeOf(W.prototype).constructor!==_.u)throw Error("Wg");W.prototype.is=y.is;return mhz(W.prototype,y)};
qjv=function(y){return y.type==="compute"||y.type==="computeWithMethod"};
Uhj=function(y){for(var W=y.reactiveSchemas.filter(qjv),V=new Map,w=new Map,t=new Map,F=_.N(W),I=F.next();!I.done;I=F.next())I=I.value,V.set(I.propertyKey,I),w.set(I.propertyKey,[]),t.set(I.propertyKey,0);F=0;W=_.N(W);for(I=W.next();!I.done;I=W.next()){I=I.value;for(var P=_.N(I.type==="computeWithMethod"?I.method.args:I.args),C=P.next();!C.done;C=P.next())C=C.value,C.type!=="literal"&&(C=C.path.split(".")[0],w.has(C)&&(w.get(C).push(I.propertyKey),t.set(I.propertyKey,t.get(I.propertyKey)+1),F++))}I=
[].concat(_.GC(w.keys())).filter(function(d){return t.get(d)===0});
for(W=[];I.length;)for(P=I.shift(),W.push(V.get(P)),P=_.N(w.get(P)),C=P.next();!C.done;C=P.next())C=C.value,t.set(C,t.get(C)-1),F--,t.get(C)===0&&I.push(C);V=y.reactiveSchemas.filter(function(d){return!qjv(d)});
y.reactiveSchemas=[].concat(_.GC(V),_.GC(W))};
u94=function(y,W){if(W.properties)for(var V=_.N(Object.entries(W.properties)),w=V.next();!w.done;w=V.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;y.properties[w]=typeof t==="function"?{type:t}:t}W.observers&&y.observers.push.apply(y.observers,_.GC(W.observers));W.disabledPolySiReactions&&y.disabledPolySiReactions.push.apply(y.disabledPolySiReactions,_.GC(W.disabledPolySiReactions))};
Sj4=function(y,W){for(var V=W.length-1;V>=0;V--){var w=W[V];Array.isArray(w)?Sj4(y,w):y.indexOf(w)<0&&y.unshift(w)}};
Dhn=function(y,W){y.reactiveSchemas=y.reactiveSchemas.filter(function(V){return V.type==="observe"&&W.includes(V.method.methodName)||qjv(V)&&W.includes(V.propertyKey)?!1:!0})};
xhG=function(y,W){var V=W.prototype,w,t,F={is:y.is,reactiveSchemas:[],observedAttributes:[],behaviors:[RG4.InjectBehavior,b6.prototype],disableElementRegistration:y.disableElementRegistration,provide:(w=y.providers)!=null?w:[],reactivityMode:y.reactivityMode,signalProperties:(t=V.signalProperties)!=null?t:[]};"template"in W?F.templateGetter=function(){return W.template}:y.getTemplate&&(F.templateGetter=y.getTemplate);
V.behaviors&&Sj4(F.behaviors,V.behaviors);liy(F,W);return F};
liy=function(y,W){for(var V=W.prototype,w={properties:{},observers:[],disabledPolySiReactions:[]},t=_.N(y.behaviors),F=t.next();!F.done;F=t.next())u94(w,F.value);u94(w,V);if(y.signalProperties)for(V=_.N(y.signalProperties),t=V.next();!t.done;t=V.next())delete w.properties[t.value];V=_.N(Object.entries(w.properties));for(t=V.next();!t.done;t=V.next()){F=_.N(t.value);t=F.next().value;F=F.next().value;var I=void 0;if((I=y.signalProperties)==null||!I.includes(t)){I=void 0;var P=y,C=F.type;if(!C)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{C=Reflect.getMetadata("design:type",W,t);for(var d=_.N(kEv),L=d.next();!L.done;L=d.next())if(L=L.value,C===L){C=L;break a}C=Object}else C=String;F.computed||F.selector||(P.reactiveSchemas.push({type:"signal",propertyKey:t,value:F.value,attributeType:C,readOnly:F.readOnly}),P.observedAttributes.push(_.uu(t)));F.reflectToAttribute&&P.reactiveSchemas.push({type:"reflect",propertyKey:t});if(F.computed){C=hrP(F.computed);if(!C)throw Error("Xg");P.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:t,method:C,value:F.value})}F.observer&&P.reactiveSchemas.push({type:"observe",method:{methodName:F.observer,args:[{type:"path",path:t}]}});F.notify&&P.reactiveSchemas.push({type:"notify",propertyKey:t});F.selector&&P.reactiveSchemas.push({type:"redux",propertyKey:t,selector:F.selector,selectorArgs:(I=F.selectorArgs)!=null?I:[]})}}s7u&&Uhj(y);W=_.N(w.observers);for(t=W.next();!t.done;t=W.next())V=y,t=t.value,(F=hrP(t))?V.reactiveSchemas.push({type:"observe",method:F}):console.log('Warning: unable to parse observe declaration: "'+
t+'"');Dhn(y,w.disabledPolySiReactions)};
A3j=function(y,W){for(var V=0;V<W.length;V++){var w=W[V],t=void 0;(t=w).showHideApi!=null||(t.showHideApi={});t=void 0;!!y!==!((t=w.showHideApi)==null||!t.hideTemplateChildren)&&(w.nodeType===Node.TEXT_NODE?y?(w.showHideApi.polymerTextContent=w.textContent,w.textContent=""):(t=void 0,w.textContent=(t=w.showHideApi.polymerTextContent)!=null?t:null):w instanceof Element&&w.localName==="slot"?y?(w.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Mg)((0,_.Mg)(w).parentNode).replaceChild(w.showHideApi.polymerReplaced,
w)):(t=w.showHideApi.polymerReplaced)&&(0,_.Mg)((0,_.Mg)(t).parentNode).replaceChild(w,t):w instanceof HTMLElement&&w.style&&(y?(w.showHideApi.polymerDisplay=w.style.display,w.style.display="none"):w.style.display=w.showHideApi.polymerDisplay));w.showHideApi.hideTemplateChildren=y;w.showHideChildren&&w.showHideChildren(y)}};
BRa=function(){if(!Yjy){var y=document.createElement("style");y.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(y);Yjy=!0}};
Or=function(){return _.e("disable_hidden_dom_if_using_stamper")};
J3v=function(y,W){var V=_.vC().getState();return W?y.apply(null,[V].concat(_.GC(W))):y(V)};
$hv=function(){if(Rxj)return Rxj;var y=_.N(_.M1(0,void 0,"Nl6eIe")),W=y.next().value;y.next();var V=y.next().value;_.vC().subscribe(function(){j7j(V)});
return Rxj=W};
j7j=function(y){_.e("delay_redux_signal_update_killswitch")?y(function(W){return W+1}):nwu||(nwu=!0,Promise.resolve().then(function(){y(function(W){return W+1});
nwu=!1}))};
_.vC=function(){return HmL.getAppStore()};
X6b=function(y,W){return HmL.getSelectFn()(y,W)};
_.dc=function(y){HmL.getDispatchFn()(y)};
aib=function(y,W){var V={},w;for(w in y)V[w]=W(y[w],w);return V};
_.LD=function(y,W){return function(){var V;return(V=_.Gt(y))!=null?V:W}};
_.zb=function(y,W){var V=Object.assign({},y),w;for(w in W)W.hasOwnProperty(w)&&(V[w]=_.LD(y[w],W[w]));return V};
GEP=function(y,W,V){y instanceof Element&&(V.debugName||(V.debugName="<"+y.tagName.toLowerCase()+(y.tagName.includes("-")?">":"."+y.className+">")),_.e("ytwiz_enable_debug_component_props")&&(y.debugProps||(y.debugProps=aib(W,function(w){return function(){return w()}}))))};
r3y=function(y){var W;if(!(W=cC.traceAllComponents)){var V;W=(V=z4)==null?void 0:V.activeSpan;W=(W==null?void 0:W.name)!=="ytComponent"}return W?pwR("ytComponent",{},y):y()};
_.eY=function(y,W){var V=function(w){return r3y(function(t){var F=bmv={};var I;if(((I=V)==null?0:I.idomCompat)&&w.renderedFromIdom){var P;I=typeof V.idomCompat==="object"?(P=V)==null?void 0:P.idomCompat.callbacks:{};I=_.N(Q7P(w,I,V.debugName));P=I.next().value;I.next();I=I.next().value;var C=Zmv(y,P);F.privateValue=C;bmv=void 0;GEP(C,P,V);F={debugName:V.debugName};t&&F&&Object.assign(t.attributes,F);t=DTP(C);t=Array.isArray(t)?t[0]:t;t[qV]||(t[qV]={});t[qV].updateSignalsFromIdomProps=I;yEP(P,C);return C}I=
aib(w,Wwt);P=Zmv(y,I);F.privateValue=P;bmv=void 0;GEP(P,I,V);F={debugName:V.debugName};t&&F&&Object.assign(t.attributes,F);yEP(I,P);return P})};
V.debugName=W===void 0?"":W;return V};
Zmv=function(y,W){y=y(W);return D7(y)};
V$j=function(y,W){y[W]||(y=new _.Js("IDOM interop setter undefined. Key:",W),_.ap(y))};
Wwt=function(y,W){return W==="children"||W==="ref"||typeof y==="function"||y===void 0?y:function(){return _.Gt(y)}};
Q7P=function(y,W,V){var w={},t={},F={},I={},P;for(P in y){I={key$jscomp$920:I.key$jscomp$920};I.key$jscomp$920=P;var C=y[I.key$jscomp$920];if(I.key$jscomp$920==="children"||I.key$jscomp$920==="ref")w[I.key$jscomp$920]=C;else if(typeof C==="function")I.key$jscomp$920 in W||C.length>0?(F[I.key$jscomp$920]=C,w[I.key$jscomp$920]=function(L){return function(){return F[L.key$jscomp$920].apply(F,_.GC(_.Ve.apply(0,arguments)))}}(I)):w[I.key$jscomp$920]=C;
else if(!(y[I.key$jscomp$920]===void 0&&I.key$jscomp$920 in W)){var d=_.N(_.M1(y[I.key$jscomp$920],{debugName:I.key$jscomp$920+":cwis:"+V},"orv71b"));C=d.next().value;d=d.next().value;w[I.key$jscomp$920]=C;t[I.key$jscomp$920]=d}}return[w,t,function(L){var z={},c;for(c in L)z={key$jscomp$921:z.key$jscomp$921,val$jscomp$117:void 0},z.key$jscomp$921=c,z.val$jscomp$117=L[z.key$jscomp$921],z.key$jscomp$921!=="children"&&z.key$jscomp$921!=="ref"&&(typeof z.val$jscomp$117==="function"?z.key$jscomp$921 in
W?F[z.key$jscomp$921]=z.val$jscomp$117:z.val$jscomp$117.length>0&&(F[z.key$jscomp$921]=z.val$jscomp$117,_.rQ(new _.Js("Callback detected that was not set in the idomCompat callbacks map. Key:",z.key$jscomp$921))):z.key$jscomp$921 in W&&z.val$jscomp$117===void 0||(V$j(t,z.key$jscomp$921),lO(function(K){return function(){t[K.key$jscomp$921](K.val$jscomp$117)}}(z))))}]};
Fw4=function(y,W,V){var w=ZFd(y.prototype,wDa,y.prototype.behaviors);w.prototype.is=W;w.prototype.localName=W;V&&t$G(w,V);return function(t){t&&(w.prototype.hostElement=t);var F=new w;F.root=F;F.hostElement=t;return F}};
t$G=function(y,W){var V;Object.defineProperty(y.prototype,"_template",{get:function(){V===void 0&&(V=W());return V},
set:function(w){V=w},
configurable:!0,enumerable:!0})};
Pvb=function(y,W,V,w){function t(){if(!K){for(var f=new Set,U=_.N(L),l=U.next();!l.done;l=U.next()){l=l.value;for(var x=_.N(Object.getOwnPropertyNames(l)),B=x.next();!B.done;B=x.next()){B=B.value;var r=void 0,H=(r=Object.getOwnPropertyDescriptor(l,B))==null?void 0:r.value;H&&H instanceof Function&&!hY(B)&&(!P[B]||_.e("polymer_forward_method_killswitch"))&&f.add(B)}}U=_.N(Object.entries(Object.getOwnPropertyDescriptors(y.prototype)));for(l=U.next();!l.done;l=U.next())x=_.N(l.value),l=x.next().value,
x=x.next().value,x.value instanceof Function&&!hY(l)&&f.add(l);K=f}return K}
EZj(y,W,w==null?void 0:w.providers);y$j(y.prototype,y,!0);var F=Fw4(y,W,V),I,P=(I=y.prototype.properties)!=null?I:{},C,d,L=(d=(C=y.prototype.behaviors)==null?void 0:C.flat(Infinity))!=null?d:[];V=_.N(L);for(I=V.next();!I.done;I=V.next())P=Object.assign({},I.value.properties,P);var z=[].concat(_.GC(NOP),_.GC(Object.keys(P).map(function(f){return _.uu(f)}))),c=!1,K;
return{ctor:function(f,U){var l=F(f),x,B;f=[].concat(_.GC((x=w==null?void 0:w.allowedProps)!=null?x:[]),_.GC((B=w==null?void 0:w.allowedPropsFromBehaviors)!=null?B:[]));l.allowedProps=f.length>0?f:void 0;x={};B=_.N(z);for(f=B.next();!f.done;f=B.next())f=f.value,x[f]=_.SK(f);l.__dataAttributes=x;var r=l.ready.bind(l);l.ready=function(){U.beforeReady();r();if(R6(W)&&!c){var H=l.__templateInfo;if(H==null?0:H.hostProps){H=_.N(Object.keys(H.hostProps));for(var a=H.next();!a.done;a=H.next())$A(W,a.value,
"PROPERTY_ACCESS_GET_INTERNAL")}c=!0}};
l._overrideLegacyUndefined=!0;return l},
props:P,observedAttributes:z,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var f=[],U=new Set,l=_.N(Object.keys(P)),x=l.next();!x.done;x=l.next())x=x.value,f.push([x,P[x].readOnly]),U.add(x);l=t();x=_.N(Object.keys(Object.getOwnPropertyDescriptors(y.prototype)));for(var B=x.next();!B.done;B=x.next())B=B.value,!IdP(B)||l.has(B)||U.has(B)||(f.push([B,!1]),U.add(B));U=_.N(gZu);for(l=U.next();!l.done;l=U.next())f.push([l.value,!0]);return f},
getPropsToForwardBeforeReady:function(f){for(var U=[],l=_.N(Object.entries(f)),x=l.next();!x.done;x=l.next()){var B=_.N(x.value);x=B.next().value;B=B.next().value;if(IdP(x)&&!(B instanceof Function)&&(U.push([x,!1]),R6(W))){var r=B=void 0;(r=(B=f)._createPropertyAccessor)==null||r.call(B,x)}}return U},
shouldForwardProp:IdP,shouldLog:R6}};
EZj=function(y,W,V){jzy(y,V);y.prototype.behaviors.unshift(Cvn);if(UDP()){if(R6(W)){var w;(w=y.prototype).behaviors!=null||(w.behaviors=[]);y.prototype.behaviors.unshift(lrP())}xDy(y)}_.m(b6.prototype)(y.prototype,"__templateHelpers")};
hY=function(y){return ON4.has(y)||y.startsWith("__compute__")};
IdP=function(y){return!hY(y)&&!y.startsWith("_")&&!y.endsWith("_")};
cEu=function(y,W){function V(){var c=C();c=_.N(c);for(var K=c.next();!K.done;K=c.next()){var f=_.N(K.value);K=f.next().value;f=f.next().value;vZb(z.prototype,K,f)}w=!0}
var w=!1,t=y.ctor,F=y.getInitialMethods,I=y.observedAttributes,P=y.getPropsToForwardBeforeReady,C=y.getPropsToForwardBeforeRegister,d=y.shouldForwardProp,L=y.shouldLog,z=function(){var c=HTMLElement.call(this)||this;c.didForwardDynamicProps=!1;c.loggingStatus={};w||V();c.inst=t(c,{beforeReady:function(){c.didForwardDynamicProps||(c.forwardDynamicProps(),c.didForwardDynamicProps=!0)}});
c.controllerProxy=SSv(c.inst,W);c.forwardMethods();return c};
_.p(z,HTMLElement);z.prototype.forwardMethods=function(){for(var c=this,K=_.N(this.inst.getExtraMethodsToForward()),f=K.next(),U={};!f.done;U={method$jscomp$63:void 0},f=K.next()){var l=_.N(f.value);f=l.next().value;l=l.next().value;U.method$jscomp$63=l;this[f]=function(x){return function(){return x.method$jscomp$63.call.apply(x.method$jscomp$63,[c.inst].concat(_.GC(_.Ve.apply(0,arguments))))}}(U)}K=_.N(F());
for(U=K.next();!U.done;U=K.next())U=U.value,d(U)&&dwd(this,U),L(W)&&!hY(U)&&Lwy(this.inst,U)};
z.prototype.forwardDynamicProps=function(){var c=P(this.inst);c=_.N(c);for(var K=c.next();!K.done;K=c.next()){var f=_.N(K.value);K=f.next().value;f=f.next().value;vZb(this,K,f);L(W)&&!hY(K)&&zhv(this.inst,K)}};
z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
z.prototype.attributeChangedCallback=function(c,K,f){this.inst.attributeChangedCallbackWrapper(c,K,f)};
_.CM.Object.defineProperties(z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return W}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.CM.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I}}});
customElements.define(W,z)};
vZb=function(y,W,V){y.hasOwnProperty(W)||Object.defineProperty(y,W,{get:function(){var w,t=((w=y.is)!=null?w:y.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||$A(t,W,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,w=this.polymerController[W],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,w},
set:function(w){if(!V){var t,F=((t=y.is)!=null?t:y.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||$A(F,W,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=W,this.loggingStatus.bypassProxyController=!0,this.polymerController[W]!==w&&(t={},this.polymerController.setProperties((t[W]=w,t)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
dwd=function(y,W,V){var w=y.polymerController;y[W]=function(){var t=_.Ve.apply(0,arguments);y.loggingStatus.currentExternalCall=W;y.loggingStatus.bypassProxyController=!0;var F,I=((F=y.is)!=null?F:y.tagName).toLowerCase();$A(I,W,"PROPERTY_ACCESS_CALL_EXTERNAL");var P;F=(P=V!=null?V:w[W])==null?void 0:P.call.apply(P,[w].concat(_.GC(t)));y.loggingStatus.currentExternalCall=void 0;y.loggingStatus.bypassProxyController=!1;return F}};
Lwy=function(y,W){var V=y.hostElement,w=y[W];y[W]=function(){var t=_.Ve.apply(0,arguments);if(V.loggingStatus.currentExternalCall!==W){var F,I=((F=V.is)!=null?F:V.tagName).toLowerCase();$A(I,W,"PROPERTY_ACCESS_CALL_INTERNAL")}return w==null?void 0:w.apply(y,t)}};
zhv=function(y,W){var V=Object.getOwnPropertyDescriptor(y,W);V&&!V.get&&Object.defineProperty(y,W,{get:function(){DDy(y.hostElement,W);return V.value},
set:function(w){n6(y.hostElement,W);V.value=w}})};
eha=function(y){return _.e("poly_si_dom_repeat_detached_fix_killswitch")||y.tagName!=="PS-DOM-REPEAT"?y.tagName==="DOM-REPEAT":!0};
oZv=function(y,W){var V=hhG(y);y instanceof Element&&V.unshift(y);y=_.N(V.filter(eha));for(var w=y.next();!w.done;w=y.next()){var t=void 0;w=_.N((t=w.value.__instances)!=null?t:[]);for(t=w.next();!t.done;t=w.next())if(t=t.value,t.root){t=Array.from(t.root.children);t=_.N(t);for(var F=t.next();!F.done;F=t.next())V.push.apply(V,_.GC(oZv(F.value,W)))}}return V.filter(function(I){return I.usePatchedLifecycles&&I.lifecycleIsConnected===W})};
hhG=function(y){var W=null;y instanceof Element?W=Element.prototype.querySelectorAll:y instanceof DocumentFragment&&(W=DocumentFragment.prototype.querySelectorAll);return W?Array.from(W.call(y,"*")):[]};
oU=function(y){mT(function(){for(var W=_.N(oZv(y,!1)),V=W.next();!V.done;V=W.next()){V=V.value;V.lifecycleIsConnected=!0;try{var w=void 0,t=void 0,F=void 0,I=void 0;(w=(I=V.polymerController)!=null?I:V)==null||(F=(t=w).connectedCallback)==null||F.call(t)}catch(P){_.ap(P)}}})};
KD=function(y){mT(function(){for(var W=_.N(oZv(y,!0)),V=W.next();!V.done;V=W.next()){V=V.value;V.lifecycleIsConnected=!1;try{var w=void 0,t=void 0,F=void 0,I=void 0;(w=(I=V.polymerController)!=null?I:V)==null||(F=(t=w).disconnectedCallback)==null||F.call(t)}catch(P){_.ap(P)}}})};
M$y=function(){if(!Kwz){Kwz=!0;var y=[Node];pD&&y.push(pD.Wrapper);var W=Node.prototype.insertBefore,V=Node.prototype.removeChild;y=_.N(y);for(var w=y.next(),t={};!w.done;t={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},w=y.next())w=w.value,t.nativeInsertBefore=w.prototype.insertBefore,w.prototype.insertBefore=function(I){return function(P,C){if(P instanceof DocumentFragment){var d=Array.from(P.children);P=I.nativeInsertBefore.call(this,P,C);
if(this.isConnected&&I.nativeInsertBefore===W)for(C=_.N(d),d=C.next();!d.done;d=C.next())oU(d.value);return P}d=P instanceof Element&&P.isConnected;C=I.nativeInsertBefore.call(this,P,C);d&&KD(P);this.isConnected&&oU(P);return C}}(t),t.nativeAppendChild=w.prototype.appendChild,w.prototype.appendChild=function(I){return function(P){if(P instanceof DocumentFragment){var C=Array.from(P.children);
P=I.nativeAppendChild.call(this,P);if(this.isConnected){C=_.N(C);for(var d=C.next();!d.done;d=C.next())oU(d.value)}return P}C=P instanceof Element&&P.isConnected;d=I.nativeAppendChild.call(this,P);C&&KD(P);this.isConnected&&oU(P);return d}}(t),t.nativeRemoveChild=w.prototype.removeChild,w.prototype.removeChild=function(I){return function(P){var C=P instanceof Element&&P.isConnected,d=I.nativeRemoveChild.call(this,P);
C&&V===I.nativeRemoveChild&&KD(P);return d}}(t),t.nativeReplaceChild=w.prototype.replaceChild,w.prototype.replaceChild=function(I){return function(P,C){if(P instanceof DocumentFragment){var d=Array.from(P.children);
P=I.nativeReplaceChild.call(this,P,C);if(this.isConnected)for(KD(C),C=_.N(d),d=C.next();!d.done;d=C.next())oU(d.value);return P}d=P instanceof Element&&P.isConnected;var L=this.isConnected,z=I.nativeReplaceChild.call(this,P,C);L&&KD(C);d&&KD(P);L&&oU(P);return z}}(t);
y=[Element];pD&&y.push(pD.Wrapper);y=_.N(y);w=y.next();for(t={};!w.done;t={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},w=y.next())w=w.value,w.prototype.before=pDj(w.prototype.before),w.prototype.after=pDj(w.prototype.after),t.nativeReplaceWith=w.prototype.replaceWith,w.prototype.replaceWith=function(I){return function(){var P=_.Ve.apply(0,arguments),C=_.N(iNn(P)),d=C.next().value,
L=C.next().value;C=this.isConnected;I.nativeReplaceWith.apply(this,P);P=_.N(L);for(L=P.next();!L.done;L=P.next())KD(L.value);if(C)for(KD(this),d=_.N(d),C=d.next();!C.done;C=d.next())C=C.value,C instanceof Element&&oU(C)}}(t),t.nativeRemove=w.prototype.remove,w.prototype.remove=function(I){return function(){var P=this.isConnected;
I.nativeRemove.call(this);P&&KD(this)}}(t),t.nativeInsertAdjacentElement=w.prototype.insertAdjacentElement,w.prototype.insertAdjacentElement=function(I){return function(P,C){var d=C.isConnected;
P=I.nativeInsertAdjacentElement.call(this,P,C);d&&KD(C);P.isConnected&&oU(P);return P}}(t),t.nativeSetAttribute=w.prototype.setAttribute,w.prototype.setAttribute=function(I){return function(P,C){var d=fdG(this);
if(!d.usePatchedLifecycles)return I.nativeSetAttribute.call(this,P,C);var L=this.getAttribute(P);I.nativeSetAttribute.call(this,P,C);C=this.getAttribute(P);TOz(d,P,L,C)}}(t),t.nativeRemoveAttribute=w.prototype.removeAttribute,w.prototype.removeAttribute=function(I){return function(P){var C=fdG(this);
if(!C.usePatchedLifecycles)return I.nativeRemoveAttribute.call(this,P);var d=this.getAttribute(P);I.nativeRemoveAttribute.call(this,P);d!==null&&TOz(C,P,d,null)}}(t),t.nativeToggleAttribute=w.prototype.toggleAttribute,w.prototype.toggleAttribute=function(I){return function(P,C){var d=fdG(this);
if(!this.usePatchedLifecycles)return I.nativeToggleAttribute.call(this,P,C);var L=this.getAttribute(P),z=L!==null;C=I.nativeToggleAttribute.call(this,P,C);C!==z&&TOz(d,P,L,C?"":null);return C}}(t);
y=[Document,DocumentFragment,Element,ShadowRoot];pD&&y.push(pD.Wrapper);y=_.N(y);for(t=y.next();!t.done;t=y.next())t=t.value,t.prototype.prepend=pDj(t.prototype.prepend),t.prototype.append=pDj(t.prototype.append);(pD==null?void 0:pD.noPatch)===!0&&mwu();document.readyState==="complete"?oU(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&oU(document.body)});
var F=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");F&&F.get&&F.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:F.enumerable,configurable:!0,get:F.get,set:function(I){I||KD(this);F.set.call(this,I);return I}})}};
pDj=function(y){return function(){var W=_.Ve.apply(0,arguments),V=_.N(iNn(W)),w=V.next().value;V=V.next().value;y.apply(this,W);W=_.N(V);for(V=W.next();!V.done;V=W.next())KD(V.value);if(this.isConnected)for(w=_.N(w),W=w.next();!W.done;W=w.next())W=W.value,W instanceof Element&&oU(W)}};
mwu=function(){for(var y=_.N(qbR),W=y.next();!W.done;W=y.next()){W=W.value.prototype;for(var V=_.N(UwG),w=V.next();!w.done;w=V.next()){w=w.value;var t=Object.getOwnPropertyDescriptor(W,w);t&&Object.defineProperty(W,"__shady_native_"+w,t)}}};
TOz=function(y,W,V,w){var t,F;if((t=y.polymerController)==null?0:(F=t.observedAttributes)==null?0:F.includes(W))if(y=y.polymerController,y.attributeChangedCallbackWrapper)y.attributeChangedCallbackWrapper.call(y,W,V,w);else{var I;(I=y.attributeChangedCallback)==null||I.call(y,W,V,w)}};
iNn=function(y){var W=[],V=[];y=_.N(y);for(var w=y.next();!w.done;w=y.next())w=w.value,w instanceof Element&&w.isConnected&&V.push(w),w instanceof DocumentFragment?W.push.apply(W,_.GC(Array.from(w.children))):W.push(w);return[W,V]};
fdG=function(y){return!(y instanceof Element)&&y.node instanceof Element?y.node:y};
uQv=function(y,W){var V=W?["children"].concat(_.GC(W)):["children"];W=[];V=_.N(V);for(var w=V.next();!w.done;w=V.next()){var t=w.value;if(y.hasOwnProperty(t)){w=y[t];w=typeof w==="function"?w():w;w=Array.isArray(w)?w:[w];w=D7(w).flat();if(t!=="children"){t=jgv(t);for(var F=_.N(w),I=F.next();!I.done;I=F.next())I=I.value,I instanceof Element&&I.setAttribute("slot",t)}W.push(w)}}W.length===0?y=[]:(y=D7(_.O("div",null,W)),y=Array.from(y.childNodes));return y};
Dw4=function(y,W,V){var w={};_.rf(function(){var t={},F;for(F in W)if(W.hasOwnProperty(F)){var I=void 0,P=void 0;if(!(((I=V.slotProps)==null?0:I.includes(F))||F==="children"||((P=V.callbackProps)==null?0:P.includes(F))||F==="ref")&&(I=_.Gt(W[F]),w[F]!==I)){w[F]=I;P=void 0;var C=(P=y.hostElement)!=null?P:y;Sbt.has(F)&&(C[F]=I);t[F]=I}}lO(function(){if(y.setProperties)y.setProperties(t);else for(var d=_.N(Object.entries(t)),L=d.next();!L.done;L=d.next()){var z=_.N(L.value);L=z.next().value;z=z.next().value;
y[L]=z}})})};
xwP=function(y,W,V,w){var t=uQv(V,w.slotProps),F=(0,_.Mg)(y);t=_.N(t);for(var I=t.next();!I.done;I=t.next())F.appendChild(I.value);Dw4(W,V,w);w=_.N(w.callbackProps||[]);t=w.next();for(F={};!t.done;F={kebabEventName:void 0,eventListener:void 0},t=w.next())I=t=t.value,String(t).substring(0,2)==="on"&&V[I]?(F.kebabEventName=jgv(String(t).substring(2)),F.eventListener=V[I],y.addEventListener(F.kebabEventName,F.eventListener),_.XT(function(L){return function(){y.removeEventListener(L.kebabEventName,L.eventListener)}}(F))):
W[I]=V[I];
if(V.ref){V=_.N(ldG(V.ref));var P=V.next().value,C=V.next().value,d=W.attached.bind(W);W.attached=function(){P(y);d()};
_.XT(function(){C()})}};
ldG=function(y){if(typeof y==="function"){var W;return[function(V){W=y(V)},
function(){var V;(V=W)==null||V()}]}if(!y.onRender||!y.onUnmount)throw Error("ah");
return[y.onRender,y.onUnmount]};
YbP=function(y,W,V,w,t){w=w===void 0?{}:w;var F=k_v,I=!1;F?(I=!0,k_v=void 0):(sEy=W,F=document.createElement(W),sEy=void 0);var P=F;P.usePatchedLifecycles=!0;P.lifecycleIsConnected=!1;F.loggingStatus={};var C=AEa(y,W,F,w,t);_.XT(function(){P.lifecycleIsConnected&&(P.lifecycleIsConnected=!1,C.disconnectedCallback())});
I||(_.e("sink_wrapper_disable_runtime_shadycss")&&(F.__noInsertionPoint=!0),xwP(F,C,V,w));return F};
AEa=function(y,W,V,w,t){t=t===void 0?Pvb:t;BOu[W]!=null||(BOu[W]=t(y,W,w==null?void 0:w.getTemplate,w));var F=BOu[W],I=F.ctor;t=F.getInitialMethods;var P=F.getPropsToForwardBeforeReady;y=F.getPropsToForwardBeforeRegister;w=F.shouldForwardProp;var C=F.observedAttributes,d=F.shouldLog,L=I(V,{beforeReady:function(){var z=L;z._takeAttributes?z._takeAttributes():z.setPropertiesFromInitialAttributeValues&&z.setPropertiesFromInitialAttributeValues();z=_.N(P(V.polymerController));for(var c=z.next();!c.done;c=
z.next()){var K=_.N(c.value);c=K.next().value;K=K.next().value;vZb(V,c,K);d(W)&&!hY(c)&&zhv(V.polymerController,c)}V.polymerController=SSv(L,W)}});
V.polymerController=L;V.polymerController.observedAttributes=C;F=_.N(L.getExtraMethodsToForward());for(I=F.next();!I.done;I=F.next())C=_.N(I.value),I=C.next().value,C=C.next().value,dwd(V,I,C);t=_.N(t());for(F=t.next();!F.done;F=t.next())F=F.value,w(F)&&dwd(V,F),d(W)&&!hY(F)&&Lwy(L,F);y=_.N(y());for(w=y.next();!w.done;w=y.next())t=_.N(w.value),w=t.next().value,t=t.next().value,vZb(V,w,t);return L};
Rhb=function(y,W){return iE===W?(y.isInert=!0,iE="",!0):JEG===W?(y.isInert=!0,JEG="",!0):!1};
jEd=function(y){var W=fD;fD=y;return W};
nZv=function(y){if(Tb.has(y))JEG=y;else if(mM.has(y)&&fD&&$wj(fD)===y){var W;(W=fD)._numRenders!=null||(W._numRenders=0);fD._numRenders++;if(fD._numRenders>1)throw Error("bh");return fD}};
HNy=function(y){Tb.has($wj(y))?JEG=$wj(y):mM.has($wj(y))&&fD!==y&&(y._isInert=!0)};
$wj=function(y){var W;return(W=y==null?void 0:y.tagName.toLowerCase())!=null?W:""};
XDa=function(y,W){if(y.componentType===B1)throw Error("ch");mM.add(W);var V=function(){var w=HTMLElement.call(this)||this;w.is=W;if(sEy===W)return w.isInert=!0,w;w.createElement();return w};
_.p(V,HTMLElement);V.prototype.createElement=function(){if(!this.isInert){k_v=this;var w=_.N(_.we4(function(){return _.O(y,null)})).next().value;
k_v=void 0;xFn(this);return w}};
customElements.define(W,V)};
G_u=function(y,W,V,w,t){y.prototype.is=W;(w==null?0:w.useSink)?adt(y,W,V,w,t):(V=Pvb(y,W,V,w),cEu(V,W));return y};
adt=function(y,W,V,w,t){M$y();var F=_.eY(function(I){return YbP(y,W,I,Object.assign({},w,{getTemplate:V}),t)},"a");
F.debugName=W+" (CoW wrapped)";XDa(F,W);return F};
bN4=function(y){return!rEL.has(y)};
yQt=function(y,W,V,w){function t(){if(!z){for(var c=new Set(QEz),K=_.N(F.behaviors),f=K.next();!f.done;f=K.next()){f=f.value;for(var U=_.N(Object.getOwnPropertyNames(f)),l=U.next();!l.done;l=U.next()){l=l.value;var x=void 0,B=(x=Object.getOwnPropertyDescriptor(f,l))==null?void 0:x.value;B&&B instanceof Function&&(!d[l]||_.e("polymer_forward_method_killswitch"))&&c.add(l)}}K=_.N(Object.entries(Object.getOwnPropertyDescriptors(y.prototype)));for(f=K.next();!f.done;f=K.next())U=_.N(f.value),f=U.next().value,
U=U.next().value,U.value instanceof Function&&c.add(f);z=c}return z}
var F=xhG({is:W,disableElementRegistration:!1,getTemplate:V,providers:w==null?void 0:w.providers,reactivityMode:w==null?void 0:w.reactivityMode},y);if((w==null?0:w.allowedProps)||(w==null?0:w.allowedPropsFromBehaviors)){var I,P;F.allowedProps=[].concat(_.GC((I=w.allowedProps)!=null?I:[]),_.GC((P=w.allowedPropsFromBehaviors)!=null?P:[]))}var C=Mjy(F,y);W=C.observedAttributes;var d={};V=_.N(F.reactiveSchemas);for(w=V.next();!w.done;w=V.next())if(w=w.value,w.type==="signal")d[w.propertyKey]={readOnly:w.readOnly},
w.readOnly&&(d[Vct(w.propertyKey)]={readOnly:!0});else if(w.type==="compute"||w.type==="computeWithMethod"||w.type==="redux")d[w.propertyKey]={readOnly:!0};var L=F.reactiveSchemas.length,z;return{ctor:function(c,K){c=new C(c);c.beforeReady=K.beforeReady;return c},
props:d,observedAttributes:W,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var c=[],K=new Set,f=_.N(ZN4),U=f.next();!U.done;U=f.next())U=U.value,c.push([U,U!=="observers"&&U!=="properties"]),K.add(U);f=_.N(Object.keys(d));for(U=f.next();!U.done;U=f.next())U=U.value,c.push([U,d[U].readOnly]),K.add(U);f=t();U=_.N(Object.keys(Object.getOwnPropertyDescriptors(y.prototype)));for(var l=U.next();!l.done;l=U.next())l=l.value,!bN4(l)||f.has(l)||K.has(l)||(c.push([l,!1]),K.add(l));c.push(["allowedProps",
!0]);return c},
getPropsToForwardBeforeReady:function(c){var K=[];c=_.N(Object.keys(c));for(var f=c.next();!f.done;f=c.next()){f=f.value;var U=t();bN4(f)&&!U.has(f)&&K.push([f,!1])}c=_.N(F.reactiveSchemas.slice(L));for(f=c.next();!f.done;f=c.next())f=f.value,f.type!=="compute"&&f.type!=="computeWithMethod"&&f.type!=="redux"&&f.type!=="signal"||K.push([f.propertyKey,f.type==="signal"?f.readOnly:!0]);return K},
shouldForwardProp:bN4,shouldLog:R6}};
_.Y=function(y,W,V,w){var t,F,I=(F=(t=w)==null?void 0:t.mode)!=null?F:0;w!=null||(w={});var P;(P=w).reactivityMode!=null||(P.reactivityMode=0);I===1&&_.fB("creator_poly_si_disable_list").includes(W)&&(I=2);return I===1?G_u(y,W,V,Object.assign({},w,{useSink:!0}),yQt):G_u(y,W,V,Object.assign({},w,{useSink:I===2}))};
_.MM=function(){return function(y,W,V,w){var t,F,I=(F=(t=w)==null?void 0:t.mode)!=null?F:2;w!=null||(w={});var P;(P=w).reactivityMode!=null||(P.reactivityMode=0);if(I===0)throw Error("dh`"+I);return adt(y,W,V,w,I===1?yQt:void 0)}};
_.qM=function(y){return _.e("creator_poly_si_killswitch")?!1:_.e("force_all_poly_si_batches")&&(y==="poly_si_all_on_test_check"||y==="creator_poly_si_batch_050"?0:y)||document.documentElement.hasAttribute("use-signals")?!0:!y||_.e(y+"_holdback_enabled")&&_.e("kevlar_polysi_holdback")?!1:_.e(y)};
Ur=function(y){return y?y.icon?y.icon.iconType.toLowerCase():y.customThumbnail?"member":"":""};
W74=function(y){if(!y)return"";y=_.N(y);for(var W=y.next();!W.done;W=y.next())if((W=W.value)&&W.liveChatAuthorBadgeRenderer&&(W=Ur(W.liveChatAuthorBadgeRenderer))&&W!=="verified")return W;return""};
VoL=function(y,W){if(!y)return null;var V;return((V=y.find(function(w){return w&&w.liveChatAuthorBadgeRenderer?Ur(w.liveChatAuthorBadgeRenderer)===W:!1}))==null?void 0:V.liveChatAuthorBadgeRenderer)||null};
_.IoG=function(y){var W=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;y=wtG(y);W=wtG(W);var V=toy(y.hex);W=toy(W.hex);var w=W[0]/255;var t=W[1]/255,F=W[2]/255,I=Math.max(w,t,F),P=Math.min(w,t,F),C=0,d=0,L=.5*(I+P);I!=P&&(I==w?C=60*(t-F)/(I-P):I==t?C=60*(F-w)/(I-P)+120:I==F&&(C=60*(w-t)/(I-P)+240),d=0<L&&L<=.5?(I-P)/(2*L):(I-P)/(2-2*L));w=[Math.round(C+360)%360,d,L];V=F7a(V,W);for(y=E6v(y.hex);V<4.5;){y=w[2]>=.5?y.darker((4.5-V)/2):y.brighter((4.5-V)/2);V=y.toString();
t=N_v(V);if(!t.length)throw Error("ae`"+V);V=t;V=F7a(V,W)}return y.hex()};
F7a=function(y,W){y=_.jjn(y);W=_.jjn(W);return(Math.max(y,W)+.05)/(Math.min(y,W)+.05)};
_.uE=function(y){return"#"+("000000"+(y&16777215).toString(16)).slice(-6)};
_.g64=function(y){for(var W=0,V=0;V<y.length;V++)W=y.charCodeAt(V)+((W<<5)-W);y="#";for(V=0;V<3;V++)y+=("00"+(W>>V*8&255).toString(16)).slice(-2);return y};
PHj=function(y){y=(y||"").split(":");y.length===1&&y.unshift("yt-icons");y[1]=y[1].toLowerCase();return y};
zQL=function(y,W){var V=(W=W===void 0?!1:W)?CHv:OR4,w=W?v6L:dtt;y.getIconNames().forEach(function(t){t=W?t:t.substring(t.indexOf(":")+1);y.name==="yt-icons"?L7v.add(t):t.includes("-filled")?V.add(t):w.add(t)})};
SY=function(y,W,V,w){V=V===void 0?!1:V;w=w===void 0?!1:w;var t,F,I;return _.g(function(P){if(P.nextAddress==1)return P.yield(cQv,2);if(w)return P.return(L7v.has(y));t=V?CHv:OR4;F=V?v6L:dtt;return W?(I=y.includes("-filled")?y:y.concat("-filled"),P.return(t.has(I))):P.return(F.has(y))})};
_.o6z=function(y){if(eQj(y))return y;var W=y=y.toLowerCase();(y=hQn.get(y))&&(W=y);return W};
_.D8=function(y){if(eQj(y))return y.toString();var W=K7a.get(y);if(W)return W;W=y.toLowerCase();var V="yt-icons",w=W.replace(/_/g,"-");switch(y){case "MY_CHANNEL":W="account_circle";break;case "ADD_TO_LIBRARY":W="add";break;case "ALERT_WARN_RED":W="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":W="person_music";break;case "BLOCK_USER":W="block";break;case "CAPTIONS":W="closed_caption";break;case "CLOSED_CAPTION":V="av";W="closed-caption";break;case "COLLECTION":V="maps";W="layers";break;case "CONTACT":V=
"icons";W="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":V="ytcp-icons";W=w.split("creator-studio-")[1];break;case "DISMISSAL":W="close";break;case "DO_NOT_DISTURB":W="block";break;case "DOGFOOD":V="icons";W="pets";break;case "DRAFT":W="paper_corner_folded";break;
case "EMPTY_LIKE":W="like_outline";break;case "EXIT_APP":W="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":W=w;break;case "GAMES":V="ytg";W="my-games";break;case "GO_TO_PAGE":W="arrow-forward";break;case "GROUP":V="social";break;case "HIDE":W="not_interested";break;case "INPUT_COMPONENT":V="icons";W="settings-input-component";break;case "KIDS_BLOCK":W="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":V="ytg";W="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":V=
"ytg";W="membership-post-purchase";break;case "MULTIVIEW":W="screen_multi_view";break;case "MY_LOCATION":V="maps";W=w;break;case "NOTIFICATIONS_INBOX":W="NOTIFICATIONS";break;case "NEXT":W="chevron_right";break;case "OFFLINE":W="power-settings-new";break;case "PAUSE":V="miniplayer";break;case "PAYMENT":V="icons";break;case "PHONE_DOWNLOAD":W="phone_download";break;case "PREMIUM_STANDALONE":V="yt-logos";W="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":V="yt-logos";W="premium_standalone_cairo";
break;case "QUESTION_ANSWER":W="question_answer";break;case "REDEEM":V="icons";W="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":W="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":W="library_add";break;case "SCHOOL":V="yt-sys-icons";W="creator_academy";break;case "SETTINGS_LIGHT":W="settings_applications";break;case "SETTINGS_MATERIAL":W="settings";break;case "SEARCH_HISTORY":W="watch_history";break;case "SHOPPING_BAG":W="bag";break;case "SOCIAL":case "PEOPLE":V=
"yt-icons";W="people";break;case "STAFF_PICK":V="ytg";W="spotlight";break;case "START_DVR":W="add";break;case "STOP_DVR":V="av";W="stop";break;case "TAB_LIKED":W="like";break;case "TAB_INBOX":W="mail";break;case "TERMS_OF_SERVICE":V="icons";W="description";break;case "TRENDING":W="fire";break;case "UNBLOCK_USER":W="remove";break;case "UNPLUGGED_DARK_THEME":V="image";W="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":W="live";break;case "UNPLUGGED_SPORTS":V="ytu";W="visibility-off";break;
case "VIDEOS":V="av";W="play-circle-filled";break;case "YOUTUBE":V="yt-logos";W="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":V="yt-logos-ext";W="yt-logo-red-updated";break;case "YOUTUBE_LOGO":V="yt-logos-ext";W="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":V="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":V="shorts";W=w;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":V="yt-sys-icons";W="youtube_improve_tv";break;case "OUTLINE_BAG":V=
"yt-sys-icons";W="bag";break;case "QUEUE_PLAY_LAST":V="yt-sys-icons";W="list_queue_last";break;case "SLASH_CIRCLE_LEFT":W="slash_circle_left";break;case "SPEED_1_POINT_2X":W="1_point_2x";break;case "SPEED_1_POINT_5X":W="1_point_5x";break;case "SPEED_1_POINT_8X":W="1_point_8x";break;case "SPEED_POINT_2X":W="point_2x";break;case "SPEED_POINT_5X":W="point_5x";break;case "SPEED_POINT_8X":W="point_8x";break;case "SPEED_1X":W="1x";break;case "SPEED_2X":W="2x";break;case "TAB_BOOKMARK":W="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":V="yt-sys-icons";W="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":V="yt-sys-icons";W="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":V="yt-sys-icons",W="tic_tac_toe"}W=V+":"+W;K7a.set(y,W);return W};
eQj=function(y){var W;_.e("kevlar_use_wil_icons")?W=!!_.hs().resolve(_.lE).resolveIcon({iconName:y.toString()}):W=!1;return W};
_.kc=function(y,W,V,w){V=V===void 0?{}:V;w=w===void 0?!1:w;V===null&&(V={});var t=_.fB("kevlar_command_handler_command_banlist");t=_.N(t);for(var F=t.next();!F.done;F=t.next())if(F=y?y.hasOwnProperty(F.value):void 0,F)return!1;t=_.h(y.commandMetadata,_.dw);return w&&t!=null&&t.url?!1:!W.disableCommandHandlerOverride&&_.xc.instance?(w=_.xc.instance,V.form||(V.form={element:W}),V.form.element||(V.form.element=W),!V.clickedVisualElement&&W.visualElement&&(V.clickedVisualElement=W.visualElement),w.resolveCommand(y,
V),!0):!1};
ptP=function(y,W){y=sr(y);for(var V=_.N(y.visibilityMonitorKeys||[]),w=V.next();!w.done;w=V.next())W.unobserveByKey(w.value);y.visibilityMonitorKeys=void 0};
mtn=function(y,W){if(_.Xn()){if(_.e("kevlar_vimio_use_shared_monitor"))iRy(y,W.data);else if(!iRy(y,W.data))return;var V=W.data,w=fov(V);if(_.e("enable_client_ve_spec_logging"))ptP(y,W.observer);else{var t=sr(y);t.trackedParams&&t.trackedParams!==w&&ptP(y,W.observer)}t=sr(y);!V||t.data&&t.data===V||(t.data=V);T_R(y,W);t.trackedParams=w}};
T_R=function(y,W){var V=W.observer;if(!V&&_.e("web_skip_missing_vimio_observer")){var w,t;_.rQ(new _.Js("VisibilityObserver is not defined.",y.tagName,y.trackedParams,(w=W.data)==null?void 0:w.trackingParams,(t=W.data)==null?void 0:t.loggingDirectives))}else{var F=W.layer,I=W.visibilityCallback||function(){},P=W.prescanCallback,C=sr(y);
w=[];W.showOption&&w.push(V.observe(y,function(){W.skipLogging&&W.skipLogging()||_.AY().reportShown(C,void 0,F);I(!0)},W.showOption));
W.hideOption&&w.push(V.observe(y,function(){_.AY().reportHidden(C,void 0,F);I(!1)},W.hideOption));
W.prescanOption&&P&&w.push(V.observe(y,function(){P()},W.prescanOption));
C.visibilityMonitorKeys=w}};
iRy=function(y,W){y=sr(y);if(y.visualElement&&!W)return!0;if(!W)return!1;var V=!1;if(_.e("enable_client_ve_spec_logging")){var w,t;V=!!((w=W.loggingDirectives)==null?0:(t=w.clientVeSpec)==null?0:t.uiType)}w=fov(W);if(!w&&!V)return!1;_.e("mweb_component_visibility_logging")&&(y.veContainer||(y.veContainer={}),y.veContainer.trackingParams=w);if(y.trackedParams&&y.trackedParams===w)return!1;var F;if(_.e("enable_client_ve_spec_logging")&&((F=y.visualElement)==null?0:F.isClientVe())){var I;F=(I=y.visualElement)==
null?void 0:I.getAsJspb();var P,C,d,L;if(_.Ka(F,2)===((P=W.loggingDirectives)==null?void 0:(C=P.clientVeSpec)==null?void 0:C.uiType)&&_.Ka(F,3,-1)===((d=W.loggingDirectives)==null?void 0:(L=d.clientVeSpec)==null?void 0:L.elementIndex))return!1}if(_.e("enable_client_ve_spec_logging")){var z,c;!y.visualElement&&((z=W.loggingDirectives)==null?0:(c=z.clientVeSpec)==null?0:c.uiType)&&(P=W.loggingDirectives.clientVeSpec,W=P.uiType,I=P.elementIndex,P=P.clientYoutubeData,y.visualElement=_.Yc(_.BC(),{veType:W,
elementIndex:I,clientYouTubeData:P}))}return!0};
fov=function(y){if(y==null?0:y.rendererContext){var W=_.h(y.rendererContext,_.JY);if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams}return(y==null?0:y.loggingDirectives)?y.loggingDirectives.trackingParams:y==null?void 0:y.trackingParams};
sr=function(y){var W;return(W=y.polymerController)!=null?W:y};
uYn=function(y){_.AY();if(_.wi(RU().JSC$12440_elementShouldLogGesture).bind(RU())(y,4)){Mob(y);var W=q2R(y);Utb.set(y,W)}};
Mob=function(y){Utb.has(y)&&(Utb.get(y).cancel("untrack hover element"),Utb.delete(y))};
q2R=function(y){var W,V=[],w=!1,t=new _.qN(function(F,I){jY(y,"mouseenter",_.wi(function(){var P,C,d;return _.g(function(L){if(L.nextAddress==1)return W=(0,_.cU)(),P=S2G(y),V.push(P),C=DtR(y,function(){w=!0;I(Error("eh"))}),L.yield(P,2);
if(L.nextAddress!=3)return C&&$c(C),d=loj(y),V.push(d),L.yield(d,3);F();_.B7(L)})}))});
t.then(function(){var F=(0,_.cU)()-W;F=Math.round(F);if(!(500>F||6E5<=F)){var I=y.getScreenLayer?y.getScreenLayer():void 0;I=_.Xn(I)||"";var P=xtb(_.AY(),y);_.vE(I,y.visualElement?y.visualElement:_.nD(P),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:F}})}uYn(y)},function(){HC&&(HC(),HC=null);
w&&(Mob(y),uYn(y))});
return t};
S2G=function(y){var W;return(new _.qN(function(V,w){HC=function(){w(Error("fh"))};
W=_.HU.debounce(_.wi(function(){$c(t);V()}),1,100);
var t=_.XZ(y,"mousemove",W)})).thenCatch(function(){var V=_.HU.cancelDebouncedJobMap.get(W);
V&&_.HU.cancelJob(V)})};
loj=function(y){var W;return(new _.qN(function(V,w){HC=function(){w(Error("gh"))};
W=jY(y,"mouseleave",_.wi(function(){V()}))})).thenCatch(function(){$c(W)})};
DtR=function(y,W){return jY(y,"mouseleave",_.wi(W))};
slP=function(y){kTG&&_.aU.cancel(kTG);kTG=_.aU.run(function(){_.h1(y,"yt-visibility-refresh");kTG=0})};
AQv=function(y){y=Number(y);return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
B_R=function(y){if(!y)return!1;if(_.h(y,_.Y2L))return!0;var W;if(y=(W=_.h(y,_.mR))==null?void 0:W.commands)for(W=_.N(y),y=W.next();!y.done;y=W.next())if(_.h(y.value,_.Y2L))return!0;return!1};
JQt=function(y){var W=!0;W=W===void 0?!0:W;if(!y.useSignals&&!y.experimentalPropertiesChanged||_.e("experimental_templating_behavior_nopatch_killswitch")){var V=y._propertiesChanged;y._propertiesChanged=function(w,t,F){W?y.debounceRender():y.doRender();V&&V.call(y,w,t,F)}}};
RQ4=function(y,W){if(y.useSignals||y.experimentalPropertiesChanged)if(_.e("experimental_templating_behavior_nopatch_killswitch"))y.experimentalPropertiesChanged=function(){};
else return;var V=new Set,w=[y].concat(_.GC(y.behaviors));w=_.N(w);for(var t=w.next();!t.done;t=w.next()){t=t.value;for(var F in t.properties)V.has(F)||(y._addPropertyEffect(F,"function",W),V.add(F))}};
jld=function(){var y=Polymer.Element,W=y._prepareTemplate;y._prepareTemplate=function(){W.call(this);var V=this.prototype;if(V.experimentalTemplatingInUse&&V.experimentalTemplatingInUse()&&V.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.ap(Error("hh"));else{V=this.template.content.childNodes;for(var w=V.length-1;w>=0;w--){var t=V[w];t.nodeName!=="STYLE"&&t.nodeName!=="LINK"&&t.nodeName!=="SCRIPT"&&t.nodeName!=="#comment"&&t.remove()}}}};
$tb=function(y){var W=!0;W=W===void 0?!0:W;jld();var V=y.ready;y.ready=function(){this._template=null;V.call(this)};
RQ4(y,W?y.debounceRender:y.doRender)};
HRu=function(y,W,V){if(V===null||V===void 0)return V;var w=Hiz(y.tagName.toLowerCase(),W,function(){throw Error("Xb");});
if(w===null)return V;w=n6v[w];var t;if((t=w.isUnwrappable)==null?0:t.call(w,V)){if(w.unwrap)return w.unwrap(V);throw Error("kh");}return w.filterString?w.filterString(y.tagName,W,String(V)):V};
Xt4=function(y,W,V){var w=W[W.length-1]!=="$",t=HRu(y,W,V);if(w)if(typeof t==="function"&&W.startsWith("reactiveon")&&W===W.toLowerCase()){var F=df;WJL(y,W.slice(8),function(I){bO(F,function(){t(I)})})}else y[W]=t;
else V=t==null?null:String(t),ya(y,W.slice(0,-1),V)};
rc=function(y){ao4.length===0&&requestAnimationFrame(function(){setTimeout(function(){var W=ao4.slice();ao4.length=0;W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;try{V()}catch(w){_.Gb(w)}}})});
ao4.push(y)};
GTL=function(y){if(y){var W=y.component;if(W){var V;W==null||(V=W.events)==null||V.publish("DISCONNECTED");var w;W==null||(w=W.onDisconnected)==null||w.call(W)}var t,F;(t=y.__spec)==null||(F=t.didUnmount)==null||F.call(t);for(W=0;W<y.childNodes.length;W++)GTL(y.childNodes[W])}};
Q3=function(y,W,V){var w=W&&W.key,t=PV;t[0]=y;t[1]=w;t[2]=void 0;for(var F in W)W.hasOwnProperty(F)&&(y=W[F],w=CG,w.push(F),w.push(y));W=PV;a:{if(F=PV[2])for(y=0;y<F.length;y+=2)if(F[y]==="nonce"){F=F[y+1];break a}F=""}F=dTn(W[0],W[1],F);y=Va(F);w=W[2];if(!y.staticsApplied&&(y.staticsApplied=!0,w&&w.length))if((t=y._attrsArr)&&t.length){for(t=0;t<w.length;t+=2)bE[w[t]]=t+1;t=y._attrsArr||(y._attrsArr=yLt(0));for(var I=0,P=0;P<t.length;P+=2){var C=t[P],d=t[P+1],L=bE[C];L?w[L]===d&&delete bE[C]:(t[I]=
C,t[I+1]=d,I+=2)}ZZ(t,I);for(var z in bE)Ekd(F,z,w[bE[z]],Oh),delete bE[z]}else for(z=0;z<w.length;z+=2)Ekd(F,w[z],w[z+1],Oh);KJn(F,y,Oh);ZZ(W,0);V&&V(wV);LJb()};
rQ4=function(y){var W=y.toString().toLowerCase();return function(V,w){Q3(W,V,w)}};
_.Z8=function(y,W,V){V===void 0?delete y[W.name]:y[W.name]=V};
_.y4=function(y){var W={androidIncludeFontPadding:!1},V=0,w=[],t=[],F=[];if(y.simpleText)return W.content=y.simpleText,W;if(y.runs===void 0)return W.content="",W;y=_.N(y.runs);for(var I=y.next();!I.done;I=y.next()){I=I.value;var P=I.text,C=void 0,d=(C=P)==null?void 0:C.length;if(P&&d){w.push(P);if(I.bold||I.italics||I.strikethrough||I.underline||I.textColor!=null&&I.textColor!==0||I.deemphasize){P=t;C=P.push;var L={startIndex:V,length:d};I.bold&&(L.weightLabel="FONT_WEIGHT_MEDIUM");I.italics&&(L.italic=
!0);I.strikethrough&&(L.strikethrough="LINE_STYLE_SINGLE");I.underline&&(L.underline="LINE_STYLE_SINGLE");I.textColor!=null&&I.textColor!==0?document.documentElement.hasAttribute("dark")?L.fontColor=I.darkModeTextColor||I.textColor:L.fontColor=I.textColor:I.deemphasize&&(document.documentElement.hasAttribute("dark")?L.fontColor=parseInt("ff"+bRz("#aaa").substring(1),16):L.fontColor=parseInt("ff"+bRz("#606060").substring(1),16));C.call(P,L)}I.navigationEndpoint&&(P=F,C=P.push,L={startIndex:V,length:d,
onTap:{innertubeCommand:I.navigationEndpoint}},I.loggingDirectives&&_.Z8(L,Qlz,I.loggingDirectives),C.call(P,L));V+=d}}W.content=w.join("");W.styleRuns=t.length?t:void 0;W.commandRuns=F.length?F:void 0;return W};
yVd=function(y){if(y==null||!y.runs)return!0;y=_.N(y.runs);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.bracket||W.errorUnderline||W.deemphasize||_.h(W,Wa)||_.h(W,ZRn))return!1;return!0};
WVu=function(y,W){return function(V){var w=W.unit;if(w!==V)throw Error("nh`"+y+"`"+w+"`"+V);return W}};
V4=function(y){if(!((y==null?0:y.value)&&(y==null?0:y.unit)))return"";switch(y.unit){case "DIMENSION_UNIT_FRACTION":var W="%";break;default:W="px"}y=y.value;W==="%"&&(y*=100);return""+y+W};
VTR=function(y){try{return y()}catch(W){_.rQ(W)}};
_.tl=function(y){var W=_.h(y,_.wL);if(W)return W;if((W=_.h(y,wOy))&&W.commands)return tTz(W.commands);if((W=_.h(y,FV4))&&W.commands)return tTz(W.commands);if((y=_.h(y,E4G))&&y.identifier&&y.command&&(NIj||(NIj=[]),!NIj.includes(y.identifier)))return NIj.push(y.identifier),_.h(y.command,_.wL)};
tTz=function(y){if(y.length!==0){var W=[];y=_.N(y);for(var V=y.next();!V.done;V=y.next())(V=_.tl(V.value))&&W.push(V);return{commandExecutorCommand:{commands:W}}}};
_.EU=function(y){var W=y.defaultTarget,V=y.elementConfig,w=y.elementsCommand,t=y.skipOnClick,F=y.forceNewState,I=y.additionalCommandArgs,P=y.innertubeCommand||_.tl(w);if(P){y={};var C=IXt(P);w=C.navigatingCommand;C=C.href;w&&C?(y.href$=C,g4j(y,w,C,W),_.e("web_atagconfig_pointerdown")&&P$R(y,w),F&&(y["force-new-state$"]=!0)):(y.role$="button",y.href$="javascript:void(0);");_.h(P,C$z)&&(y["aria-haspopup$"]=!0);t||(y.onclick=function(d){var L={};if(OUv(d)){if(I==null?0:I.clickedVisualElement)L={clickedVisualElement:I.clickedVisualElement};
L=Object.assign({},{form:{element:d.target,event:d,createScreenConfig:L}},I);d.preventDefault();_.F2(P,L)}});
return Object.assign({},V,y)}};
v4n=function(y){if(y.length){if(y.length===1)return y[0];var W={};_.Z8(W,_.mR,{commands:y});return W}};
N4=function(y){return y&&y.href$!=="javascript:void(0);"};
IXt=function(y){var W,V=((W=_.h(y,_.mR))==null?void 0:W.commands)||[y];y=_.N(V);for(W=y.next();!W.done;W=y.next()){W=W.value;var w=void 0,t=void 0;V=(t=_.h((w=W)==null?void 0:w.commandMetadata,_.dw))==null?void 0:t.url;_.e("web_remove_web_navigation_endpoint_data")||(w=void 0,V=V||((w=_.h(W,dPn))==null?void 0:w.url));if(V&&V!=="/service_ajax"){if(w=QG(V,LVv))return y=_.G3(w),{navigatingCommand:W,href:y};_.rQ(new _.Js("AttributedString URL could not be sanitized",V))}}return{}};
OUv=function(y){return y.button!==void 0?y.button===0&&!(y.shiftKey||y.altKey||y.metaKey||y.ctrlKey):!(y.shiftKey||y.altKey||y.metaKey||y.ctrlKey)};
g4j=function(y,W,V,w){V=!zJ(V);var t,F,I;if((t=_.h(W,_.sT))!=null&&t.nofollow||(F=_.h(W,_.Iw))!=null&&F.nofollow||(I=_.h(W,_.wS))!=null&&I.nofollow||V)y.rel$="nofollow";var P;W=((P=_.h(W,_.wS))==null?void 0:P.target)==="TARGET_NEW_WINDOW"?"_blank":w===void 0?"":w;y.target$=W};
P$R=function(y,W){W.clickTrackingParams&&(y.params={itct:W.clickTrackingParams});y.onpointerdown=function(V){zen(V)};
y._data=W};
cVu=function(y){(y.loggingUrls||[]).forEach(function(W){Eg(W.baseUrl,W.attributionSrcMode)})};
eeR=function(y){y.currentTarget._data&&cVu(y.currentTarget._data)};
zen=function(y){var W=y.currentTarget;y=VTR(function(){return W.href});
var V=W.params;y&&_.On(y,V||{},8,!0)};
heR=function(y,W){if(W=_.h(W,_.wS))(W==null?void 0:W.target)==="TARGET_NEW_WINDOW"&&(y.target="_blank"),W.nofollow&&(y.rel="nofollow")};
o4L=function(y){y=_.h(y==null?void 0:y.commandMetadata,_.dw);return(y==null?0:y.url)?y.url:null};
_.Id=function(y,W){(y=_.tl(y))&&_.F2(y,W)};
_.F2=function(y,W){vFb(function(V){W?V.resolveCommand(y,W):V.resolveCommand(y)})};
fXP=function(y,W){var V=["yt-core-attributed-string__link"];W!=null&&W.noLinkColor||((W==null?0:W.isOverlay)?V.push("yt-core-attributed-string__link--overlay-call-to-action-color"):V.push("yt-core-attributed-string__link--call-to-action-color"),(W==null?0:W.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color"));V={className:V.join(" "),tabindex$:"0"};var w=y.onTap||y.onLongPress;if(!w)return V;var t=KVj(y);t&&(V["aria-label$"]=t);W=_.EU({elementsCommand:w,elementConfig:V,skipOnClick:!(W==
null||!W.skipOnClick),forceNewState:!0});y.onLongPress&&(w=new pOa(function(){var F=_.tl(y.onLongPress);F&&_.hs().resolve(_.oA).resolveCommand(F)}),W&&iUd(w,W));
return W||V};
KVj=function(y){var W,V;return(W=y.onTapOptions)==null?void 0:(V=W.accessibilityInfo)==null?void 0:V.accessibilityLabel};
TIv=function(y){var W=y;y<=16777215&&(W+=parseInt("ff000000",16));return _.wg(W)};
mPP=function(y){var W=y.isDarkTheme;var V=y.extension;y=y.runColor;var w=void 0;if(V=V==null?void 0:V.colorMap){W=W?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V=_.N(V);for(var t=V.next();!t.done;t=V.next())if(t=t.value,W===t.key){w=t.value;break}}w==null&&y&&(w=y);if(w)return TIv(w)};
gL=function(y){var W=y.config;var V=y.image;var w=y.imageConfig;var t=y.imageWrapperConfig;var F=y.run;var I=y.tag;var P=y.textLength;var C=y.startIndex===void 0?0:y.startIndex;y=y.length;C===void 0&&(C=0);F={run:F,startIndex:C,endIndex:y!==void 0?C+y:P,tag:I};V&&(F.image=V);w&&(F.imageConfig=w);t&&(F.imageWrapperConfig=t);W&&(F.config=W);return F};
qin=function(y,W){var V=[];V.push("yt-core-attributed-string");(W==null?0:W.className)&&V.push(W==null?void 0:W.className);(W==null?0:W.ellipsisTruncate)?V.push("yt-core-attributed-string--ellipsis-truncate"):(W==null?0:W.noWrap)?V.push("yt-core-attributed-string--white-space-no-wrap"):(W==null?0:W.noPreWrap)||V.push("yt-core-attributed-string--white-space-pre-wrap");(W==null?0:W.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color");y.alignment&&V.push(MTn(y.alignment));y.lineBreakMode&&
V.push("yt-core-attributed-string--word-wrapping");return V.join(" ")};
UPy=function(y){if(y.weight)return y.weight;switch(y.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
uFP=function(y){switch(y){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"}};
MTn=function(y){switch(y){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"}};
OU=function(y,W,V){var w=W;y.content&&V&&(V=y.content.indexOf("\n"),V!==-1&&(w=Math.min(W,V)));if(!y.content||y.content.length<=w)W=y;else if(y.attachmentRuns||y.commandRuns||y.decorationRuns||y.styleRuns||y.paragraphStyleRuns){W=Pa(y.content,w);V=w;var t=y.attachmentRuns;if(t){var F=[];t=_.N(t);for(var I=t.next();!I.done;I=t.next())I=Object.assign({},I.value),I.startIndex===void 0||I.startIndex>=V||(I.length||(I.length=0),I.length+I.startIndex>V&&(I.length=V-I.startIndex),F.push(I));V=F}else V=void 0;
F=Siv(w,y.commandRuns);t=w;var P=y.decorationRuns;if(P){I=[];P=_.N(P);for(var C=P.next();!C.done;C=P.next()){C=C.value;var d=_.h(C.textDecorator,C5);if(d&&d.startIndex!==void 0&&!(d.startIndex>=t)){C=Object.assign({},C,{textDecorator:{highlightTextDecorator:Object.assign({},d)}});d=_.h(C.textDecorator,C5);if(!d.length||d.length+d.startIndex>t)d.length=t-d.startIndex;I.push(C)}}t=I}else t=void 0;I=Siv(w,y.styleRuns);if(P=y.paragraphStyleRuns)for(y=[],P=_.N(P),C=P.next();!C.done;C=P.next()){var L=C.value;
C=Object.assign({},L);if(!(C.startIndex===void 0||C.startIndex>=w)){if(!C.length||C.length+C.startIndex>w)C.length=w-C.startIndex;d=[];var z=void 0,c=void 0;if((z=L)==null?0:(c=z.listGroup)==null?0:c.listItems)for(L=_.N(L.listGroup.listItems),z=L.next();!z.done;z=L.next())if(z=Object.assign({},z.value),!(z.startIndex===void 0||z.startIndex>=w)){if(!z.length||z.length+z.startIndex>w)z.length=w-z.startIndex;d.push(z)}d.length>0&&(C.listGroup||(C.listGroup={}),C.listGroup=Object.assign({},C.listGroup,
{listItems:d}));y.push(C)}}else y=void 0;W={content:W,attachmentRuns:V,commandRuns:F,decorationRuns:t,styleRuns:I,paragraphStyleRuns:y}}else W=Object.assign({},y,{content:Pa(y.content,w)});return W};
Siv=function(y,W){if(W){var V=[];W=_.N(W);for(var w=W.next();!w.done;w=W.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=y)){if(!w.length||w.length+w.startIndex>y)w.length=y-w.startIndex;V.push(w)}return V}};
Pa=function(y,W){var V=W,w;if(w=V>0)w=y.charCodeAt(V-1),w=w>=55296&&w<=56319;w&&(V=y.charCodeAt(V),w=V>=56320&&V<=57343);w&&--W;return y.substring(0,W)};
ken=function(y,W,V){V=V===void 0?DPt:V;if(y){var w=_.hs().resolve(dS);w||_.e("mweb_no_observer_killswitch")?mtn(y,{data:W,observer:w,visibilityCallback:V,hideOption:lXu,showOption:xPP,layer:y.layer}):_.rQ(new _.Js("Warning: monitorVisibility called with null observer",y.tagName,W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams))}else _.rQ(new _.Js("Warning: monitorVisibility called with null element",W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams,W==null?void 0:
W.rendererContext))};
jNj=function(y,W){var V=[],w=y.content.length,t,F=(t=_.hs().resolve(_.eX(_.va)))==null?void 0:t();if(y.paragraphStyleRuns){t=_.N(y.paragraphStyleRuns);for(var I=t.next();!I.done;I=t.next()){var P=V.push,C=P.apply;var d=void 0;I=I.value;if((d=I.listGroup)!=null&&d.listItems){d=[];b:switch(I.listGroup.listType){case "LIST_TYPE_BULLET":var L="ul";break b;default:L="span"}d.push(gL({run:I,textLength:w,tag:L,config:{className:"yt-core-attributed-string__list-group"},startIndex:I.startIndex,length:I.length}));
L=_.N(I.listGroup.listItems);for(var z=L.next();!z.done;z=L.next()){z=z.value;b:switch(I.listGroup.listType){case "LIST_TYPE_BULLET":var c="li";break b;default:c="span"}d.push(gL({run:I,textLength:w,tag:c,startIndex:z.startIndex,length:z.length}))}I=d}else I=[];C.call(P,V,_.GC(I))}}if(y.styleRuns&&(W==null||!W.noStyleRuns))for(t=_.N(y.styleRuns),P=t.next();!P.done;P=t.next()){P=P.value;C=mPP({extension:_.h(P.styleRunExtensions,sNy),isDarkTheme:F===void 0?!1:F,runColor:P.fontColor});d=[];C&&d.push("yt-core-attributed-string--link-inherit-color");
P.italic&&d.push("yt-core-attributed-string--italicized");P.underline&&P.strikethrough?d.push("yt-core-attributed-string--underline-strikethrough",uFP(P.underline)):P.underline?d.push("yt-core-attributed-string--underlined",uFP(P.underline)):P.strikethrough&&d.push("yt-core-attributed-string--strikethrough",uFP(P.strikethrough));if(P.baselineOffset){a:switch(P.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":I="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":I=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:I="yt-core-attributed-string--baseline-offset-unknown"}d.push(I)}I=d.join(" ");d=P;L={};if(d.weight||d.weightLabel)L.fontWeight=UPy(d).toString();C&&(L.color=C);V.push(gL({run:P,textLength:w,tag:"span",config:{className:I,style:L},startIndex:P.startIndex,length:P.length}))}if(y.decorationRuns)for(t=_.N(y.decorationRuns),P=t.next();!P.done;P=t.next())P=P.value,C={},P.textDecorator&&(L=P.textDecorator,I=F===void 0?!1:F,z=[],d=
_.h(L,C5),L=_.h(L,AVG),d?(L=z,z=L.concat,c=[],(I=mPP({extension:_.h(d.highlightTextDecoratorExtensions,Yij),isDarkTheme:I,runColor:d.backgroundColor}))&&c.push("background-color: "+I+";"),d.backgroundCornerRadius!==void 0&&c.push("border-radius: "+d.backgroundCornerRadius+"px;"),d.leftPadding!==void 0&&c.push("padding-left: "+d.leftPadding+"px;"),d.rightPadding!==void 0&&c.push("padding-right: "+d.rightPadding+"px;"),d.topPadding!==void 0&&c.push("padding-top: "+d.topPadding+"px;"),d.bottomPadding!==
void 0&&c.push("padding-bottom: "+d.bottomPadding+"px;"),z=z.call(L,c)):L&&(d=z,z=d.concat,I=I?"#2ba640":"#107516",I=L.color?TIv(L.color):I,I=["padding: 2px;","border-top: solid "+I+" 2px;","border-bottom: solid "+I+" 2px;","background: linear-gradient(135deg, "+I+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+I+" 3px, rgba(0, 0, 0, 0) 3px);"],z=z.call(d,I)),I=z.join(" "),C.style$=I,I=P.textDecorator,d=[],L=_.h(I,AVG),_.h(I,C5)?d.push("yt-core-attributed-string--highlight-text-decorator"):
L&&d.push("yt-core-attributed-string--bracket-text-decorator"),I=d.join(" "),C.className=I,C.dir="auto"),I=_.h(P.textDecorator,C5),d=_.h(P.textDecorator,AVG),L=_.h(P.textDecorator,C5),z=_.h(P.textDecorator,AVG),V.push(gL({run:P,textLength:w,tag:"span",config:C,startIndex:(I==null?void 0:I.startIndex)||(d==null?void 0:d.startIndex)||0,length:(L==null?void 0:L.length)||(z==null?void 0:z.length)||0}));if(y.commandRuns&&(W==null||!W.noEndpoints))for(F=_.N(y.commandRuns),t=F.next();!t.done;t=F.next())t=
t.value,P=fXP(t,W),V.push(gL({run:t,textLength:w,tag:"a",config:P,startIndex:t.startIndex,length:t.length}));if(y.attachmentRuns)for(y=_.N(y.attachmentRuns),F=y.next();!F.done;F=y.next()){F=F.value;C=P=void 0;t={className:"yt-core-attributed-string--inline-block-mod"};if((C=F.element)==null?0:C.properties){C=(P=F.element)==null?void 0:P.properties;P=[];C=_.h(C,BIj);if(C==null?0:C.margin)C=C.margin,C.left&&P.push("margin-left: "+V4(C.left)+";"),C.right&&P.push("margin-right: "+V4(C.right)+";"),C.top&&
P.push("margin-top: "+V4(C.top)+";"),C.bottom&&P.push("margin-bottom: "+V4(C.bottom)+";");P=P.length!==0?P.join(" "):void 0;t.style$=P}I=void 0;P={alt:"",preserveHeight:!0,preserveWidth:!0};C=["yt-core-attributed-string__image-element"];if(F.alignment){a:switch(F.alignment){case "ALIGNMENT_BASELINE":d="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":d="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:d=
"yt-core-attributed-string__image-element--image-alignment-bottom"}C.push(d)}if((I=F.element)==null?0:I.properties)I=[],d=_.h(F.element.properties,BIj),(d==null?0:d.height)&&I.push("height: "+V4(d.height)+";"),(d==null?0:d.width)&&I.push("width: "+V4(d.width)+";"),I=I.length!==0?I.join(" "):void 0,P.style$=I,d=void 0,I=((d=_.h(F.element.properties,JVz))==null?void 0:d.label)||"",P.alt=I;P.className=C.join(" ");C=void 0;L=d=void 0;I=((L=F.element)==null?0:L.type)?(d=_.h(F.element.type,Rev))==null?
void 0:d.image:void 0;V.push(gL({run:F,textLength:w,tag:"img",image:I,imageConfig:P,imageWrapperConfig:t,startIndex:F.startIndex,length:(C=F.length)!=null?C:0}))}if(W==null?0:W.headerRuns)for(W=_.N(W.headerRuns),y=W.next();!y.done;y=W.next())if(y=y.value,y.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(y.headerMapping)){a:{switch(y.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":F=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":F="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":F="yt-core-attributed-string--heading-3";break a}F=void 0}V.push(gL({run:y,textLength:w,tag:"span",config:F?{className:F}:void 0,startIndex:y.startIndex,length:y.length}))}return V};
_.dL=function(y){return(y==null?void 0:y.content)!==void 0};
$Pu=function(y){return _.dL(y)?y:_.y4(y)};
n4d=function(y){return y.image!==void 0&&y.imageConfig!==void 0};
HUv=function(y,W){if(W==null?0:W.userInput)for(y=_.N(y),W=y.next();!W.done;W=y.next())if(W=W.value,W.tag!=="a"&&W.tag!=="li"){var V=void 0;(V=W).config||(V.config={});W.config.dir=W.tag==="ul"?_.hs().resolve(_.L5):"auto"}};
XOG=function(y){return function(W){var V=y.run;(V.onTap!==void 0||V.onLongPress!==void 0)&&_.h(V,Qlz)&&ken(W,{loggingDirectives:_.h(V,Qlz)})}};
aXR=function(y){return function(W){for(var V in y)(Oh[V]||Oh[WV["default"]])(W,V,y[V])}};
QNR=function(y,W){GeP(W);var V={data:null,start:0,end:y.length,parts:[]};W=_.N(W);for(var w=W.next();!w.done;w=W.next())w=w.value,rVz(V,w.startIndex,w.endIndex,w);bU4(y,V);return V};
rVz=function(y,W,V,w){for(var t=_.N(y.parts),F=t.next();!F.done;F=t.next()){F=F.value;if(typeof F==="string")throw Error("ph");if(F.start<=W&&V<=F.end){rVz(F,W,V,w);return}}y.parts.push({data:w,parts:[],start:W,end:V})};
bU4=function(y,W){for(var V=W.parts.length;V>=0;V--){var w=W.parts[V],t=W.parts[V-1],F=V===W.parts.length?W.end:w.start;t=V===0?W.start:t.end;F!==t&&W.parts.splice(V,0,y.slice(t,F));w&&bU4(y,w)}};
GeP=function(y){y.sort(function(W,V){if(W.startIndex<V.startIndex)return-1;if(V.startIndex<W.startIndex)return 1;W=W.endIndex-W.startIndex;V=V.endIndex-V.startIndex;return W>V?-1:V>W?1:0})};
_.ZUu=function(y){var W=y.thumbnails;if(W){y={sources:[]};W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w={};w.url=V.url;w.width=V.width;w.height=V.height;y.sources.push(w)}return y}};
yyn=function(y,W,V,w){if(!W)return y.length>=1?y[y.length-1]:null;if(w)for(var t=_.N(y),F=t.next();!F.done;F=t.next()){F=F.value;var I=void 0,P=(I=F.url)==null?void 0:I.indexOf(w);if(P!==void 0&&P>=0)return F}w=_.N(y);for(t=w.next();!t.done;t=w.next())if(t=t.value,t.width&&t.height&&(V&&t.width>=W||!V&&t.height>=W))return t;for(W=y.length-1;W>=0;W--)if(V&&y[W].width||!V&&y[W].height)return y[W];return y[0]};
_.W44=function(y){var W;return(y=(W=y.sources)==null?void 0:W[0])?y.width/y.height:0};
_.VGv=function(y){if(y.sources){y=_.N(y.sources);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=void 0;if((V=W.clientResource)==null?0:V.imageName)return W}}};
wRb=function(y){var W;if((W=y.clientResource)!=null&&W.imageColor)return _.wg(y.clientResource.imageColor)};
_.F4G=function(y,W,V,w,t,F,I){if(!W||W.length===0||W[0].clientResource)return null;if(V&&W[0].url)return W[0].url;w===void 0&&(w=!0);if(w){var P;y=tGd*(t||(y==null?void 0:(P=y.getBoundingClientRect())==null?void 0:P.width)||0)}else{var C;y=tGd*(F||(y==null?void 0:(C=y.getBoundingClientRect())==null?void 0:C.height)||0)}W=yyn(W,y,w,I);return(W==null?0:W.url)?W.url:(W==null?0:W.imageData)?W.imageData:null};
Ead=function(y,W,V){V=V?[V]:[];y.opacity&&V.push("opacity: "+y.opacity+";");W&&y.placeholderColor?(y=_.wg(y.placeholderColor),V.push("background-color: "+y+";")):V.push("background-color: transparent;");return V.join(" ")};
Ntb=function(y,W,V,w,t){var F=["yt-core-image"];W&&F.push(W);V||F.push("yt-core-image--fill-parent-height");w||F.push("yt-core-image--fill-parent-width");switch(y.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":F.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":F.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":F.push("yt-core-image--content-mode-center");break;default:F.push("yt-core-image--content-mode-scale-to-fill")}y.flipForRtlLayout&&
F.push("yt-core-image--flip-rtl");switch(t){case "TOP_START":var I;F.push(((I=document.body)==null?void 0:I.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return F.join(" ")};
gaP=function(y){var W;if(y==null?0:(W=y.clientResource)==null?0:W.imageName){var V;y=(V=y.clientResource)==null?void 0:V.imageName;a:{switch(y){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":V="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":V="yt-logos-ext:yt-logo-updated";break a}V=void 0}return V||Iwn.get(y)||y}};
Opa=function(y){return _.e("mweb_wiz_skip_render")?PY4(y):CYv(y)};
PY4=function(y){return function(W){var V=dTn("wink-root");gV();LJb();sJv(V,_.O(y,W))}};
CYv=function(y){var W=W===void 0?!1:W;return function(V){if(!W||!_.e("mweb_skip_keto_to_c3_if_no_data")||V.data!==void 0){var w=KG(!1);try{var t=V.children;_.e("mweb_render_outside_patch_killswitch")||wV?t?C7(_.O(y,V,t)):C7(_.O(y,V)):_.rQ(new _.Js("ketoToC3 called outside of a patch",{tagName:y.TAG_NAME}))}finally{KG(w)}}}};
vaP=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
L4y=function(y,W){y.onViewportEntered=W;dzv.observe(y)};
zfv=function(){var y={rootMargin:"10%",threshold:.01};_.e("mweb_enable_set_io_root_to_null_safari")?y.root=null:_.e("mweb_enable_set_io_root_to_body_safari")&&(y.root=document.body);return new IntersectionObserver(function(W,V){W.filter(function(w){return w.intersectionRect.height>0}).forEach(function(w){w=w.target;
if(!_.e("mweb_enable_only_update_image_when_connected")||w.isConnected!==!1){var t;(t=w.onViewportEntered)==null||t.call(w);V.unobserve(w)}})},y)};
cyy=function(y,W,V,w,t){function F(){if(w){var P=w.loadedClass,C=w.notifyOnUnloaded;P&&_.zP(y,P);C&&y.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function I(){var P=V(W,y);P&&y.getAttribute("src")!==P&&(_.e("mweb_enable_only_update_image_when_connected")&&y.isConnected===!1||P===y.src||(y.src=P),F())}
t=t===void 0?!0:t;y.removeAttribute("src");F();W&&(t?L4y(y,I):I())};
efv=function(y,W,V){if(!W)return!1;W=V(W,y);V=y.getAttribute("src");return W&&W===V&&y.complete};
hfR=function(y,W){for(var V in W)V==="className"?y.className=W[V]:(Oh[V]||Oh[WV.default])(y,V,W[V])};
oad=function(y,W,V,w){Opa(_.ca)({contentMode:W.contentMode,loadedClass:W.loadedClass,isPreloaded:W.isPreloaded,notifyOnLoaded:W.notifyOnLoaded,notifyOnUnloaded:W.notifyOnUnloaded,preferredThumbnail:W.preferredThumbnail,preserveHeight:W.preserveHeight,preserveWidth:W.preserveWidth,objectPosition:W.objectPosition,targetWidth:W.targetWidth,targetHeight:W.targetHeight,shouldShowPlaceholder:W.shouldShowPlaceholder,useWidth:W.useWidth,isToggled:W.isToggled,alt:W.alt,className:W.className,onerror:W.onerror,
onload:W.onload,style$:W.style$,color:W.color,width:W.width,height:W.height,"aria-hidden$":W["aria-hidden$"],draggable:W.draggable,"data-disabled$":W["data-disabled$"],data:y,callback:V,renderLazy:w===void 0?!0:w,hideOn404:!1})};
pRd=function(y,W,V){V=V===void 0?!1:V;var w=y.sources!==void 0?y:_.ZUu(y);if(w){var t=W.onload;W.onload=function(C){var d=C.target;V&&d.naturalWidth===120||_.el(d,"yt-core-image--loaded");W.notifyOnLoaded&&d.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));t==null||t(C)};
W.targetWidth&&W.preserveWidth&&(W.width=W.targetWidth);W.targetHeight&&W.preserveHeight&&(W.height=W.targetHeight);var F=_.VGv(w),I=F&&gaP(F);if(I)return(y=wRb(F))&&(W.color=y),{type:"icon",iconName:I,config:Object.assign({},W,W.alt?{}:{"aria-hidden$":"true"},{"aria-label$":W.alt,role:"img"})};if(y.sources===void 0){W.alt=y.accessibility&&y.accessibility.accessibilityData&&y.accessibility.accessibilityData.label||W.alt;W.style$=Ead(y,W.shouldShowPlaceholder,W.style$);var P;W.isPreloaded=!((P=_.h(y,
K4v))==null||!P.isPreloaded)}W.contentMode&&!w.contentMode&&(w.contentMode=W.contentMode);W.className=Ntb(w,W.className,W.preserveHeight,W.preserveWidth,W.objectPosition);W.loadedClass="yt-core-image--loaded";return{type:"image",image:w,config:W}}};
_.hl=function(){var y=_.Ve.apply(0,arguments);return _.gS(ipu,function(W){var V=y.map(function(w){return w==null?void 0:w(W)});
return function(){return void V.forEach(function(w){return void(w==null?void 0:w())})}})};
od=function(y,W){var V=W==null?void 0:W.initial;return _.DZ(function(){_.Gt(!0);return V=y(V)},{equals:W==null?void 0:W.isEqual},"rSlKsc")};
fwj=function(y,W){if(y===W)return!0;if(y===void 0||W===void 0)return!1;var V,w,t,F,I,P,C,d;return y.content===W.content&&((V=y.styleRuns)==null?void 0:V.length)===((w=W.styleRuns)==null?void 0:w.length)&&((t=y.commandRuns)==null?void 0:t.length)===((F=W.commandRuns)==null?void 0:F.length)&&((I=y.attachmentRuns)==null?void 0:I.length)===((P=W.attachmentRuns)==null?void 0:P.length)&&((C=y.decorationRuns)==null?void 0:C.length)===((d=W.decorationRuns)==null?void 0:d.length)};
MGL=function(y,W){if(y){var V=$Pu(y);if(V!=null&&V.content)if(_.e("attr_string_reactive"))Opa(Ttv)({text:y,config:W});else{var w=!(W==null||!W.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0);y=w?W==null?void 0:W.ariaLabel:null;w=w?"text":null;Q3("span",{className:qin(V,W),dir$:(W==null?0:W.userInput)?"auto":void 0,"aria-label$":y,role$:w},function(){if(V.styleRuns||V.commandRuns||V.attachmentRuns||V.decorationRuns){var t=jNj(V,W);HUv(t,
W);t=QNR(V.content,t);t=_.N(t.parts);for(var F=t.next();!F.done;F=t.next())mzG(F.value)}else LG(V.content)})}}};
mzG=function(y){typeof y==="string"?LG(y):n4d(y.data)?Q3("span",y.data.imageWrapperConfig,function(){oad(y.data.image,y.data.imageConfig)}):Q3(y.data.tag,y.data.config,function(W){XOG(y.data)(W);
W=_.N(y.parts);for(var V=W.next();!V.done;V=W.next())mzG(V.value)})};
Uzn=function(y){return y.parts.map(qG4)};
qG4=function(y){if(typeof y==="string")return y;y=n4d(y.data)?_.O("span",{el:_.hl(aXR(y.data.imageWrapperConfig))},_.O(_.ca,Object.assign({},{data:y.data.image},y.data.imageConfig))):_.O(y.data.tag,{el:_.hl(XOG(y.data),aXR(y.data.config))},y.parts.map(qG4));return D7(y)};
uPu=function(y,W){return y===W?!0:y===void 0||W===void 0?!1:y.noStyleRuns===W.noStyleRuns&&y.noLinkColor===W.noLinkColor&&y.noEndpoints===W.noEndpoints&&y.headerRuns===W.headerRuns&&y.isOverlay===W.isOverlay&&y.linkInheritColor===W.linkInheritColor&&y.userInput===W.userInput};
SGt=function(y){return function(){var W,V,w,t,F,I,P,C,d,L,z,c,K,f;return{ariaLabel:(W=y.ariaLabel)==null?void 0:W.call(y),className:(V=y.className)==null?void 0:V.call(y),ellipsisTruncate:(w=y.ellipsisTruncate)==null?void 0:w.call(y),isOverlay:(t=y.isOverlay)==null?void 0:t.call(y),linkInheritColor:(F=y.linkInheritColor)==null?void 0:F.call(y),noEndpoints:(I=y.noEndpoints)==null?void 0:I.call(y),noStyleRuns:(P=y.noStyleRuns)==null?void 0:P.call(y),noLinkColor:(C=y.noLinkColor)==null?void 0:C.call(y),
noPreWrap:(d=y.noPreWrap)==null?void 0:d.call(y),noWrap:(L=y.noWrap)==null?void 0:L.call(y),skipOnClick:(z=y.skipOnClick)==null?void 0:z.call(y),stopPropagation:(c=y.stopPropagation)==null?void 0:c.call(y),userInput:(K=y.userInput)==null?void 0:K.call(y),headerRuns:(f=y.headerRuns)==null?void 0:f.call(y)}}};
Dzt=function(y){return y.value===""||y.value==="true"?!0:y.value==="false"?!1:isNaN(Number(y.value))?y.value:Number(y.value)};
K5=function(y,W){y=new lwy(y,W);_.ap(y);throw y;};
xzu=function(y,W,V){var w=jEd(y);y._numRenders=0;try{var t=_.we4(function(){return _.O(W,Object.assign({},V))})}catch(I){var F=function(P){P.args||(P.args=[]);
P.args.push("Error in web component wrapper");P.args.push(y.tagName.toLowerCase());return P};
_.GD(I instanceof Error?F(I):new lwy("Wiz rendering error",y.tagName.toLowerCase()));throw I;}finally{jEd(w)}return t};
_.iF=function(y,W,V){function w(L){var z={};L=_.N(L);for(var c=L.next();!c.done;c=L.next()){c=c.value;var K=void 0,f=void 0,U=void 0,l=_.SK((U=(f=(K=c).getAttribute)==null?void 0:f.call(K,"slot"))!=null?U:"children");if(K=z[l])K.push(c);else if(l in F||l==="children")z[l]=[c]}L=_.N(Object.keys(z));l=L.next();for(c={};!l.done;c={content$jscomp$56:void 0},l=L.next())l=l.value,l!=="children"&&(c.content$jscomp$56=z[l],z[l]=function(x){return function(){return x.content$jscomp$56}}(c));
return z}
V=V===void 0?{}:V;y.componentType!==B1||K5("Components must be marked reactive to be used from web component wrapper.",W);Tb.has(W)&&K5("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",W);var t,F=(t=V.props)!=null?t:{};mM.add(W);var I=kvb();t=function(){var L=I.apply(this,arguments)||this;L.rawProps={};L.queuingRender=!1;L.dispose=function(){};
L.isWebComponentWrapper=!0;L.isReparenting=!1;L.hasRendered=!1;return L};
_.p(t,I);t.prototype.render=function(){this.hasRendered=!0;for(var L=_.N([].concat(_.GC(this.attributes))),z=L.next();!z.done;z=L.next())z=z.value,z.name!=="slot"&&z.name!=="hidden"&&this.removeAttribute(z.name);L=Object.assign({},this.componentProps,this.slotProps);z=_.N(xzu(this,y,L));L=z.next().value;z=z.next().value;!(L[0]instanceof Element)||L.length>1?K5("Wrapped Wiz components must return a single root element.",W):(L=L[0].tagName.toLowerCase(),L!==W&&K5("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(L+" !== '"+W),W),this.dispose=z)};
t.prototype.setUpProps=function(){for(var L=this.rawProps,z=this.attributes,c=_.N(Object.keys(F)),K=c.next();!K.done;K=c.next()){K=K.value;var f=void 0;((f=this)==null?0:f[K])&&this[K]!==s3d&&L[K]===void 0&&(L[K]=this[K],(f=Object.getOwnPropertyDescriptor(this.constructor.prototype,K))&&Object.defineProperty(this,K,f))}c=_.N(z);for(K=c.next();!K.done;K=c.next()){f=K.value;K=_.SK(f.name);var U=K==="class"&&!z.getNamedItem("class-name");if(K in F||U)f=Dzt(f),K!=="class"||L.className?L[K]=f:L.className=
f}z={};for(var l in F)F[l]!==_.p5&&F[l]!==Ayy&&(L[l]instanceof Function&&K5("Function props must be configured as STATIC, not SIGNAL.",W),K=_.N(_.M1(L[l],void 0,"Ri8MSe")),c=K.next().value,K=K.next().value,z[l]=K,L[l]=c);L=_.N([L,z]);this.componentProps=L.next().value;this.setters=L.next().value;this.slotProps=w(this.childNodes)};
t.prototype.connectedCallback=function(){iE===W&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in F&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
t.prototype.disconnectedCallback=function(){if(!this._isInert){var L;a:{if(_.YGP)for(L=this;L;){if(_.Bta.has(L)){L=!0;break a}L=L.parentElement}L=!1}if(L)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){L=_.N([].concat(_.GC(this.attributes)));for(var z=L.next();!z.done;z=L.next()){z=z.value;var c=void 0;z.name==="slot"||z.name==="hidden"&&((c=V.unsafeExternallySettableAttributes)==null?0:c.has("hidden"))||this.removeAttribute(z.name)}}this.innerText="";xFn(this)}}};
t.prototype._setPendingPropertyOrPath=function(){};
t.prototype.notifyPath=function(){};
_.CM.Object.defineProperties(t.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var P=_.N(Object.keys(F)),C=P.next(),d={};!C.done;d={prop$jscomp$104:void 0},C=P.next())d.prop$jscomp$104=C.value,C=void 0,((C=V.legacyPolymer)==null?0:C.forwardHostProps)&&Sbt.has(d.prop$jscomp$104)||Object.defineProperty(t.prototype,d.prop$jscomp$104,{set:function(L){return function(z){var c=this;this._isInert||(this.setters?lO(function(){var K,f;return void((f=(K=c.setters)[L.prop$jscomp$104])==null?void 0:f.call(K,z))}):(this.rawProps[L.prop$jscomp$104]=z,this.queuingRender&&L.prop$jscomp$104===
"data"&&z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(d),
get:Jya.has(d.prop$jscomp$104)?void 0:function(){return s3d}});
customElements.define(W,t)};
_.RfR=function(y,W){return(y=_.f5(y,W))?_.G3(_.ye(y)):null};
_.TP=function(y){if(y=_.f5(y,Number.MAX_VALUE,void 0,"width"))return _.ye(y)};
_.f5=function(y,W,V,w){w=w===void 0?"width":w;if(!y||!y.length)return null;if(_.e("kevlar_tuner_should_always_use_device_pixel_ratio")){var t=window.devicePixelRatio;_.e("kevlar_tuner_should_clamp_device_pixel_ratio")?t=Math.min(t,_.pB("kevlar_tuner_clamp_device_pixel_ratio")):_.e("kevlar_tuner_should_use_thumbnail_factor")&&(t=_.pB("kevlar_tuner_thumbnail_factor"));j3u=t}else j3u||(j3u=window.devicePixelRatio);t=j3u;_.e("kevlar_tuner_should_always_use_device_pixel_ratio")?W*=t:t>1&&(W*=t);if(_.e("kevlar_tuner_min_thumbnail_quality"))return y[0].url||
null;t=y.length;if(_.e("kevlar_tuner_max_thumbnail_quality"))return y[t-1].url||null;if(V)for(var F=0;F<t;F++)if(y[F].url.indexOf(V)>=0)return y[F].url||null;for(V=0;V<t;V++)if(y[V][w]>=W)return y[V].url||null;for(W=t-1;W>0;W--)if(y[W][w])return y[W].url||null;return y[0].url||null};
Hpv=function(){mm.size?setTimeout(function(){M4($zP)},0):naj=0};
$zP=function(){var y=(0,_.cU)(),W=null,V=!1;mm.forEach(function(t){t.loaded=!0;t.loadTime=y;t.pendingPaint=!1;var F=XRL.get(t);F&&F.resolve(y);W=t;V||!t.ftlEligible&&t.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(V=!0)});
var w;((w=W)==null?0:w.markDirty)&&W.markDirty();mm.clear();naj=0;V&&awL(y)};
Gv4=function(y){mm.add(y);y.pendingPaint=!0;naj||(naj=_.q4(_.HU,Hpv))};
ryR=function(y){y.loaded=!1;y.loadTime=Infinity;var W=XRL.get(y);W&&(W.reject(Error("vh")),XRL.delete(y));y.pendingPaint&&(mm.delete(y),y.pendingPaint=!1)};
_.bpb=function(y){var W=y.indexOf(":");return W===-1?{originalName:y}:{originalName:y.substring(0,W),datasyncId:y.substring(W+1)}};
_.Zpd=function(){return _.g(function(y){if(Q3t!==void 0)return y.return(Q3t);Q3t=new Promise(function(W){var V;return _.g(function(w){switch(w.nextAddress){case 1:return _.l7(w,2),w.yield(_.UU.open("test-only"),4);case 4:return w.yield(_.UU.delete("test-only"),5);case 5:_.E6(w,3);break;case 2:if(V=_.YX(w),V instanceof Error&&V.name==="SecurityError")return W(!1),w.return();case 3:W("caches"in window),_.B7(w)}})});
return y.return(Q3t)})};
Vez=function(){return _.g(function(y){if(y.nextAddress==1)return y.yield(_.Zpd(),2);if(!y.yieldResult)return y.return(void 0);ypG||(ypG=new W2z);return y.return(ypG)})};
wxy=function(y){var W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return F.yield(Vez(),2);case 2:W=F.yieldResult;if(!W)throw Error("xh");return F.yield(W.open("yt-player-local-img"),3);case 3:return V=F.yieldResult,F.yield(V.match(y),4);case 4:w=F.yieldResult;if(!w)throw Error("yh");return F.yield(w.blob(),5);case 5:return t=F.yieldResult,F.return(t)}})};
tey=function(y,W){for(var V in y)if(y.hasOwnProperty(V)&&W[V])return V;return null};
F2y=function(y){return"stamp"+y.replace("-","_")+"_"};
EQb=function(y){var W=y.match(/\[\[([\w\.]+)\]\]/);if(W&&W.length>1)return W[1];_.ap(Error("Ah`"+y));return null};
NHR=function(y){return y===void 0?_.W4("REUSE_COMPONENTS",!1):y||!1};
Prv=function(y,W,V){V&&(W.is?(IVz.has(W)&&(y=IVz.get(W),V=y.listener,delete W[y.property],V.type==="element"&&W.removeEventListener(V.eventName,V.handler),IVz.delete(W)),gQz(W)):W.__proto__==HTMLElement.prototype&&(W=new _.Js("Rendererstamper removed a non custom element","Stamper: "+y+" element: "+(W&&W.nodeName)),_.rQ(W)))};
CrG=function(y,W,V,w){var t=W.node?W.node:W;_.i6(V).parentNode===t&&(W.removeChild(V),Prv(y,V,w));if(y=uF.get(V))uF.delete(V),_.HU.cancelJob(y);V.hidden=!1};
OWd=function(y,W,V,w){if(W&&W.children&&(V=W.children[V]))if(_.W4("DEFERRED_DETACH"))for(;V&&!uF.has(V);){var t=y,F=W,I=V,P=w;I.hidden=!0;t=_.Jt(_.HU,CrG.bind(null,t,F,I,P),0);uF.set(I,t);V=V.nextElementSibling}else for(;(I=W.lastElementChild)&&(W.removeChild(I),Prv(y,I,w),I!=V););};
vQR=function(y){var W=_.I0("__slot-el");_.a8(function(){for(var V=_.N(y.slotContent),w=V.next();!w.done;w=V.next())W.value.appendChild(w.value)});
return _.O("__slot-el",{el:W,skip:!0})};
_.Sl=function(y,W,V){V=V===void 0?dLv:V;Tb.add(W);var w;(w=V).propNames!=null||(w.propNames=[]);var t=new Set(V.propNames),F=kvb();w=function(){var d=F.call(this)||this;d.props={};d.isUpdating=!1;d.hasAttached=!1;d.isInert=!1;d.updateQueued=!1;d.initialClasses=[];Rhb(d,W);return d};
_.p(w,F);w.prototype.forwardKebabCaseProp=function(d,L){d=_.SK(d);if(t.has(d)||d==="children")this.props[d]=L};
w.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var d=_.N(this.initialClasses),L=d.next();!L.done;L=d.next())(L=L.value)&&this.classList.add(L);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
w.prototype.handleSlottedContent=function(){for(var d=new Map,L=_.N(this.children),z=L.next();!z.done;z=L.next()){z=z.value;var c=void 0,K=(c=z.getAttribute("slot"))!=null?c:"children";(c=d.get(K))?c.push(z):d.set(K,[z]);if(!z.getAttribute("key")){var f=void 0,U=void 0;z.setAttribute("key",K+"_"+((U=(f=c)==null?void 0:f.length)!=null?U:0))}}d=_.N(d);for(L=d.next();!L.done;L=d.next())z=_.N(L.value),L=z.next().value,z=z.next().value,this.forwardKebabCaseProp(L,_.O(vQR,{slotContent:z}))};
w.prototype.connectedCallback=function(){var d=this;if(!Rhb(this,W)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var L=_.N(this.attributes),z=L.next();!z.done;z=L.next())z=z.value,this.forwardKebabCaseProp(z.name,Dzt(z));this.handleSlottedContent();V.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){d.afterFirstPatch()});
this.hasAttached=!0}};
w.prototype.attributeChangedCallback=function(d,L,z){this.isInert||this.isUpdating||this.isConnected||d!=="class"||this.initialClasses.push.apply(this.initialClasses,_.GC(z.split(" ")))};
w.prototype.disconnectedCallback=function(){oyv(this)};
w.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var d,L;sJv(this,_.O(y,Object.assign({},this.props,{idomKey:(L=(d=this.__incrementalDOMData)==null?void 0:d.key)!=null?L:W})),!0)}catch(c){var z=c instanceof Error?c:new _.Js("Wiz rendering error");z.args||(z.args=[]);z.args.push("Error in deprecated web component wrapper");z.args.push(W.toLowerCase());_.ap(z);throw c;}finally{this.updateQueued=this.isUpdating=!1}}};
w.prototype.enqueueUpdate=function(){var d=this;return _.g(function(L){if(V.synchronous)return d.update(),L.return();if(d.updateQueued)return L.return();d.updateQueued=!0;return L.return(Promise.resolve().then(function(){d.update()}))})};
w.prototype.notifyPath=function(){V.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.CM.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var I=_.N(V.propNames),P=I.next(),C={};!P.done;C={prop$jscomp$106:void 0},P=I.next())C.prop$jscomp$106=P.value,Object.defineProperty(w.prototype,C.prop$jscomp$106,{set:function(d){return function(L){this.isInert||L===this.props[d.prop$jscomp$106]||(this.props[d.prop$jscomp$106]=L,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(C)});
customElements.define(W,w)};
_.L2b=function(y,W){return _.UB(y.entities,"markersEngagementPanelSyncEntity",W)};
zOz=function(y,W){return _.UB(y.entities,"fantasyWinProbabilityEntity",W)};
cpd=function(y,W){return _.UB(y.entities,"fantasyTeamEntity",W)};
eOu=function(y,W){return _.UB(y.entities,"fantasyPlayerEntity",W)};
hOd=function(y,W){return _.UB(y.entities,"booleanEntity",W)};
oQP=function(y,W){return _.UB(y.entities,"qrCodeEntity",W)};
K24=function(y){return _.UB(y.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
pxa=function(){if(DQ)return DQ;if(window.lottie)return DQ=Promise.resolve(window.lottie);var y=_.X1(_.yC("LOTTIE_URL"));return y?DQ=new Promise(function(W,V){var w=document.createElement("script");w.addEventListener("load",function(){W(lottie)});
w.addEventListener("error",function(t){var F="Lottie library failed to load.";t?t.message&&(F+=" Original description: "+t.message,_.bb(t,F)):t=Error(F);_.rQ(t);V(t)});
w.setAttribute("async","");_.zC(w,y);document.head.appendChild(w)}):Promise.reject(Error("Bh"))};
iWL=function(){return DQ?DQ:pxa()};
fVb=function(y){if(y)switch(y){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.e("kevlar_use_wil_icons"))return y=(y=K24(_.dP().getState()))&&y.animationLightUrl&&y.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:y.animationLightUrl,pathDarkTheme:y.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,y?y:lF.get("LIKE")}};
THt=function(y){var W=fVb(y);if(W)return W;switch(y){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return lF.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return lF.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return lF.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return lF.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return lF.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return lF.get("NOTIFICATION_BELL")}};
Me4=function(y,W){if(!y||mLP)W=!1;else{if(y.closest){var V=!!fVb(W);V=_.yC("ID_TOKEN")&&V?!!y.closest("segmented-like-dislike-button-view-model"):!1}else V=!1;if(!V)if(y.closest)if(V=!_.yC("ID_TOKEN"),y=y.closest("ytd-subscription-notification-toggle-button-renderer-next"),V||!y)V=!1;else{var w;V=((w=y.data)==null?void 0:w.targetId)==="notification-bell"&&W!=="EXPAND_MORE"}else V=!1;W=V}return W};
qNy=function(y){var W,V;return _.g(function(w){switch(w.nextAddress){case 1:return _.l7(w,2),w.yield(fetch(y),4);case 4:return W=w.yieldResult,w.yield(W.json(),5);case 5:return w.return(w.yieldResult);case 2:V=_.YX(w),_.rQ(V),_.B7(w)}})};
ULP=function(y,W){var V,w,t;return _.g(function(F){if(F.nextAddress==1)return(V=W?y.pathDarkTheme:y.path)?F.yield(Promise.all([qNy(V),pxa()]),2):F.return();w=F.yieldResult;t=w[0];xS.set(V,t);_.B7(F)})};
_.kS=function(){for(var y=_.Ve.apply(0,arguments),W=!0,V=_.N(y),w=V.next();!w.done;w=V.next())if(typeof w.value!=="string"){W=!1;break}return W?y.join(" ").trim()||void 0:function(){for(var t="",F=_.N(y),I=F.next();!I.done;I=F.next())if(I=I.value,typeof I==="function"&&(I=I()),I)if(typeof I==="string")t+=" "+I;else for(var P in I)if(I.hasOwnProperty(P)){var C=I[P];typeof C==="function"&&(C=C());C&&(t+=" "+P)}t=t.trim()||void 0;return _.Gt(t)}};
SNn=function(y,W,V,w){function t(I,P){if(W.value===P&&y!=null&&y.value){for(;y.value.firstChild;)y.value.removeChild(y.value.firstChild);y.value.classList.add("yt-spec-icon-shape");I(y.value,w)}}
V=_.utP(_.hs().resolve(_.lE),V);if(typeof V==="function")W.value=null,t(V,null);else{var F=new _.qN(V.then,V);W.value=F;F.then(function(I){t(I,F)})}};
lVz=function(y,W){var V=document.createElement("div"),w=_.nG(V,function(){return _.O(_.v,{cond:y,then:function(t){return _.O(DLG,{data:t,options:W})}})});
return[V,w]};
_.sU=function(){for(var y=[],W=_.N(_.Ve.apply(0,arguments)),V=W.next();!V.done;V=W.next())if(V=V.value)if(typeof V==="string")y.push(V);else{V=_.N(Object.entries(V));for(var w=V.next();!w.done;w=V.next()){var t=_.N(w.value);w=t.next().value;(t=t.next().value)&&y.push(w)}}return y.join(" ")};
Apj=function(y){var W=_.I0("animated-rolling-character"),V=rV(),w=PN(y.character)||PN(y.previousCharacter);Byv(function(){if(y.marginMultiplier){var t;(t=V.value)==null||t.cancel();w?(t=y.previousCharacter?Number(y.previousCharacter)+10:y.rollUp?0:30,y.shouldAnimate||(t-=xLd(y,t))):(t=y.rollUp?0:2,y.shouldAnimate||(t-=y.rollUp?-1:1));W.value.style.marginTop="-"+t*y.marginMultiplier+"px";y.shouldAnimate?V.value=kNj(W.value,y,t,w):W.value.style.display=y.character?"":"none"}});
return _.O("animated-rolling-character",{el:W,class:"animated-rolling-character-wiz"},v1(w,function(){for(var t=[],F=1;F<30;F++)t.push(_.O("div",null,F%10));return _.O(_.o8,null,_.O("div",null,"\u00a0"),t,_.O("div",null,"\u00a0"))},function(){return soG(y.character)}))};
soG=function(y){return _.O(_.o8,null,_.O("div",null,"\u00a0"),_.O(_.o8,null,v1(!y||_.gu(y),function(){return _.O("div",null,"\u00a0")},function(){return _.O("div",null,y)})),_.O("div",null,"\u00a0"))};
kNj=function(y,W,V,w){V=new Animation(new KeyframeEffect(y,[{transform:"translateY(0px)"},{transform:"translateY("+(w?xLd(W,V):W.rollUp?-1:1)*W.marginMultiplier+"px)"}],YNy),document.timeline);W.character?(y.style.display="",V.onfinish=null):V.onfinish=function(){y.style.display="none"};
V.play();return V};
xLd=function(y,W){var V=Number(y.character)+10;if(y.previousCharacter)if(y.character){var w=Number(y.character),t=Number(y.previousCharacter);y=y.rollUp?t<w?V:V+10:t<w?V-10:V}else y=y.rollUp?30:0;else y=y.character==="0"?V:y.rollUp?V-10:V+10;return W-y};
_.Al=function(y,W){return function(V){var w={},t;for(t in V){var F=void 0,I=void 0;((F=W)==null?0:(I=F.callbacks)==null?0:I[t])||(w[t]=V[t])}return _.O(Vy4,null,function(){for(var P in w)V[P]=_.Gt(w[P]);V.disableReactiveLogging=!0;return _.O(y,Object.assign({},V))})}};
ROt=function(y,W,V,w,t,F,I){V=new Animation(new KeyframeEffect(y,[{transform:"translateY(0px)"},{transform:"translateY("+(F?BHv(W,V,w,t):w?-1:1)*I+"px)"}],Jp4),document.timeline);W?(y.style.display="",V.onfinish=null):V.onfinish=function(){y.style.display="none"};
V.play();return V};
BHv=function(y,W,V,w){var t=Number(y)+10;W?y?(y=Number(y),W=Number(W),V=V?W<y?t:t+10:W<y?t-10:t):V=V?30:0:V=y==="0"?t:V?t-10:t+10;return w-V};
$LR=function(y){var W=rV(),V=rV();_.Xd(function(){W.value=y.numberText;V.value=y.numberValue},[y.numberText]);
var w=y.fontSizeMultiplier?y.heightPx*y.fontSizeMultiplier:y.heightPx,t=Gyd(function(){if(y.numberText){var I=y.numberText;var P=y.forceRollUp||!V.value||!y.numberValue||V.value<y.numberValue;var C=!!y.shouldAnimate,d=W.value,L=[],z=0,c=0,K=(d?d.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0);d=d?d.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);K<0;){var f=I[c];L.push({character:f,rollUp:P,marginMultiplier:w,shouldAnimate:C});c++;PN(f)&&K++}for(;z<K;)f=d[z],L.push({previousCharacter:f,
rollUp:P,marginMultiplier:w,shouldAnimate:C}),z++,PN(f)||K++;for(;c<I.length;)K=I[c],f=d[z],PN(K)===PN(f)?(c++,z++):PN(K)?(z++,K=void 0):PN(f)&&(c++,f=void 0),L.push({character:K,previousCharacter:f,rollUp:P,marginMultiplier:w,shouldAnimate:C});P=L}else P=[];return P},[y.numberText]),F=y.numberText?["height: "+w+"px;",
"line-height: "+y.heightPx+"px;"].join(" "):"";return _.O("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:F,dir:"ltr","aria-hidden":"true"},t.map(function(I){return _.O(jov,Object.assign({},I))}))};
HWd=function(y){var W;return(W=nQz[y])!=null?W:"EVENT_SPAN_TYPE_UNKNOWN"};
Xxd=function(y){var W=y.nodeName;if(y.id)return W+="#"+y.id;if(y.classList)for(var V=_.N(y.classList),w=V.next();!w.done;w=V.next())W+="."+w.value;y.parentElement&&(W=Xxd(y.parentElement)+" > "+W);return W};
aVb=function(y){return function(W){var V=HWd(W.type);return V==="EVENT_SPAN_TYPE_UNKNOWN"?y(W):pwR("event",{type:V,nodepath:W.target instanceof Element?Xxd(W.target):void 0},function(){return y(W)})}};
_.YS=function(y){y&&hKu("event")&&(y=aVb(y));return DHd(function(W){var V,w=(V=y)==null?void 0:V(W);return typeof w==="boolean"?w:!0})};
Ba=function(y){return function(){return y()?y():void 0}};
GNv=function(y){return new KeyframeEffect(y,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
rpd=function(y){return new KeyframeEffect(y,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Jl=function(y){var W=od(function(V){V=V?mT(V[0]):void 0;return _.M1(y(V),void 0,"AwTxXe")},{isEqual:function(V,w){return mT(V[0])===mT(w[0])}});
return[function(){return W()[0]()},
function(V){return void W()[1](V)}]};
_.Rd=function(y){return function(){var W="",V;for(V in y){for(var w=y[V];typeof w==="function";)w=w();w!==void 0&&w!==null&&(W+="; "+V+": "+w)}return W.length>0?_.Gt(W.slice(2)):_.Gt()}};
bWy=function(y){switch(y){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"}};
W8u=function(y,W,V,w,t,F){var I=Qob(y),P=I.disabled,C=I.iconPosition,d=I.style,L=I.focused,z=function(){return!!f()&&C()==="icon-only"},c=function(){return!!f()&&C()==="icon-only-40"},K=function(){return!!f()&&C()==="icon-with-label"},f=function(){return!!W||!(w==null||!w())};
return{type:function(){return d()==="call-to-action-inverse"?"text":d()==="overlay-dark"&&y().type!=="filled"&&y().type!=="tonal"?"tonal":y().type},
shouldFocus:function(){return(L()||(F==null?void 0:F()))&&!P()},
hasIconLeading:function(){return!!f()&&C()==="leading"},
hasIconTrailing:function(){return!!f()&&C()==="trailing"},
hasIconLeadingTrailing:function(){return!!f()&&!!(V||t!=null&&t())&&C()==="leading-trailing"},
hasIconOnly:z,hasIconOnly40:c,hasIconWithLabel:K,iconButton:function(){return z()||c()||K()},
visiblyDisabled:function(){return(P()?"disabled":y().state)==="disabled"||P()},
overrideSmallSizeIcon:function(){return!y().ignoreIconSizeOverride&&ZWL(y(),f())},
iconToRender:W?W:function(){return _.O(_.jl,{icon:w,size:function(){return $S(y(),!0,y().ignoreIconSizeOverride)},
active:function(){return y().toggled},
iconFilter:function(){return yIu(y())}})},
secondaryIconToRender:V?V:function(){return _.O(_.jl,{icon:t,size:function(){return $S(y(),!0,y().ignoreIconSizeOverride)},
active:function(){return y().toggled},
iconFilter:function(){return yIu(y())}})}}};
Qob=function(y){return{size:function(){return y().size},
style:function(){return y().style},
focused:function(){return y().focused},
disabled:function(){return y().disabled},
onTap:function(W){var V,w;return(w=(V=y()).onTap)==null?void 0:w.call(V,W)},
alignByText:function(){return y().alignByText},
aTagConfig:function(){return y().aTagConfig},
customColors:function(){return y().customColors},
segmentedPosition:function(){return y().segmentedPosition},
toggled:function(){return y().toggled},
toggleable:function(){return y().toggleable},
accessibilityLabel:function(){return y().accessibilityLabel},
onToggle:function(W){var V,w;return(w=(V=y()).onToggle)==null?void 0:w.call(V,W)},
iconPosition:function(){return y().iconPosition},
oneOffCustomTextWrap:function(){return y().oneOffCustomTextWrap},
disableTextEllipsis:function(){return y().disableTextEllipsis},
disableBackdropFilter:function(){return y().disableBackdropFilter},
tooltipText:function(){return y().tooltipText},
ariaHidden:function(){return y().ariaHidden},
tabIndex:function(){return y().tabIndex},
buttonText:function(){return y().buttonText},
formattedButtonText:function(){return y().formattedButtonText},
animatedTextProps:function(){return y().animatedTextProps}}};
V_P=function(y){return y.style==="overlay-dark"?4:y.style==="overlay"?y.type==="filled"?4:3:y.type==="filled"||y.style==="call-to-action-inverse"||y.style==="mono-inverse"?2:1};
ZWL=function(y,W){W=(y.iconPosition==="icon-only"||y.iconPosition==="icon-only-40"||y.iconPosition==="icon-with-label")&&W;return!y.segmentedPosition&&W&&y.size==="S"};
w2P=function(){return!_.e("web_disable_backdrop_filter")};
$S=function(y,W,V){switch(y.size){case "XS":return 16;case "S":return!V&&ZWL(y,W)?24:16;default:return 24}};
t_v=function(y){switch(y){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"}};
F84=function(y){switch(y){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"}};
ENn=function(y){switch(y){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"}};
yIu=function(y){if(y.style==="overlay-dark"&&y.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
NCd=function(y){if(!y)return{};var W=y.color,V=y.backgroundColor;y=y.borderColor;var w="";W&&(w+="color: "+W+";");V&&(w+="background-color: "+V+";");y&&(w+="border-color: "+y+";");return{style:w}};
OYj=function(y,W,V){var w=y.buttonText,t=y.formattedButtonText,F=y.formattedButtonTextLegacy,I=y.animatedTextProps,P=y.style,C=y.size,d=y.focused,L=y.disabled,z=y.onTap,c=y.alignByText,K=y.aTagConfig,f=y.customColors,U=y.segmentedPosition,l=y.toggled,x=y.toggleable,B=y.accessibilityLabel,r=y.onToggle,H=y.iconPosition,a=y.oneOffCustomTextWrap,b=y.disableTextEllipsis,Fv=y.disableBackdropFilter,Py=y.tooltipText,du=y.ariaHidden,mL=y.tabIndex,un=y.ignoreIconSizeOverride,hv=y.state,$P=y.type;P==="call-to-action-inverse"&&
($P="text");P==="overlay-dark"&&$P!=="filled"&&$P!=="tonal"&&($P="tonal");var sz=!!W&&H==="leading",Wz=!!W&&H==="trailing",mf=!!W&&!!V&&H==="leading-trailing",OE=!!W&&H==="icon-only",Qj=!!W&&H==="icon-only-40",Kq=!!W&&H==="icon-with-label",zR=OE||Qj||Kq;L&&(hv="disabled");var l2=hv==="disabled"||L;un=!un&&ZWL(y,!!W);hv={};var lt=(hv["yt-spec-button-shape-next"]=!0,hv[t_v($P)]=!0,hv[F84(P)]=!l2,hv["yt-spec-button-shape-next--disabled"]=!!l2,hv[ENn(C)]=!0,hv["yt-spec-button-shape-next--focused"]=!!d&&
!L,hv["yt-spec-button-shape-next--icon-trailing"]=Wz,hv["yt-spec-button-shape-next--icon-leading"]=sz,hv["yt-spec-button-shape-next--icon-leading-trailing"]=mf,hv["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=mf&&!(w||t),hv["yt-spec-button-shape-next--icon-button"]=OE||Kq,hv["yt-spec-button-shape-next--icon-only-default"]=Qj,hv["yt-spec-button-shape-next--align-by-text"]=!!c,hv["yt-spec-button-shape-next--segmented-start"]=U==="start",hv["yt-spec-button-shape-next--segmented-end"]=U===
"end",hv["yt-spec-button-shape-next--override-small-size-icon"]=un,hv["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!a,hv["yt-spec-button-shape-next--disable-text-ellipsis"]=!!b,hv["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Fv&&w2P(),hv),yu=function(){if(I)Opa(_.InR)(I);else if(F)F(H==="icon-with-label"||a?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(t){var jQ=H==="icon-with-label"||a;MGL(Object.assign({},
t,jQ?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!jQ})}else w&&LG(w)},Na=function(jQ){z==null||z(jQ);
x&&(r==null||r(jQ))},F6=K?gNu:P94,TR=K?"aria-current$":"aria-pressed$",eP=function(){W&&(sz||mf||zR)&&function(){n5({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){W()})}();
(w||t||F||I)&&!zR&&function(){n5({className:"yt-spec-button-shape-next__button-text-content"},function(){yu()})}();
Wz&&function(){n5({className:"yt-spec-button-shape-next__icon"},function(){W()})}();
mf&&function(){n5({className:"yt-spec-button-shape-next__secondary-icon"},function(){V()})}();
L||Opa(_.Ha)({model:{color:V_P(y)}})},hA=function(){var jQ={};
F6(Object.assign({},(jQ.className=_.sU(lt),jQ.onclick=K?void 0:Na,jQ.disabled=L,jQ["aria-disabled$"]=l2,jQ.style=L&&K?"pointer-events:none":void 0,jQ[TR]=x?!!l:void 0,jQ["aria-label$"]=B,jQ.title$=Py!=null?Py:"",jQ["aria-hidden$"]=du,jQ.tabindex$=mL,jQ),K,NCd(f)),function(){eP()})};
Kq?(C={},P=(C["yt-spec-button-shape-with-label"]=!0,C["yt-spec-button-shape-with-label--is-overlay"]=P==="overlay"||P==="overlay-dark",C),C9n({className:_.sU(P)},function(){hA();n5({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},yu)})):hA()};
d7n=function(y,W){if(!df){var V;jpv(function(){return V=yOy(y,W)});
return V}y.parent=_.vNd();return yOy(y,W)};
_.vNd=function(){var y=Ibd(df||void 0,bnP);return NEu(y)?void 0:y};
e_z=function(y){var W=W===void 0?{}:W;y=_.N(_.Jl(y));var V=y.next().value;return[function(w){var t=_.DZ(function(){var P,C,d,L,z={text:(P=V())!=null?P:"",location:(C=W.location)!=null?C:"bottom",offset:(d=W.offset)!=null?d:16,delay:(L=W.delay)!=null?L:500};return Object.assign({},z,{location:z.location})},void 0,"RXFlNe");
_.H1(function(){var P=t();mT(function(){L8P.notify(w,P)})},"hMGl4");
var F=function(){z_d(w,t())},I=function(){cIj()};
w.addEventListener("mouseenter",F);w.addEventListener("focus",F);w.addEventListener("mouseleave",I);w.addEventListener("blur",I);w.addEventListener("tap",I);_.XT(function(){w.removeEventListener("mouseenter",F);w.removeEventListener("mouseleave",I);w.removeEventListener("focus",F);w.removeEventListener("blur",I);w.removeEventListener("tap",I);cIj()})},
y.next().value]};
X2=function(y,W){_.F2(y,Object.assign({},W,{forceClickLogging:!0}))};
h_n=function(y,W,V,w){X2(y,Object.assign({},{form:{element:W,event:V}},w))};
K8z=function(y,W,V,w,t){var F=void 0;return function(I){var P=_.tl(V?y==null?void 0:y.onDisabledTap:y==null?void 0:y.onTap);if(P){var C;F=(C=F)!=null?C:W==null?void 0:W.value;if(P)if(_.e("web_button_vm_click_client_ve_killswitch"))h_n(P,F,I);else{C=oNa(y,P);if(t){h_n(P,t,I,{clickedVisualElement:C,form:{element:t}});return}h_n(P,F,I,{clickedVisualElement:C})}}w&&w(I)}};
oNa=function(y,W){W=W==null?void 0:W.clickTrackingParams;var V,w;if((y=y==null?void 0:(V=y.loggingDirectives)==null?void 0:(w=V.clientVeSpec)==null?void 0:w.uiType)&&!W)return _.ad(y)};
p2j=function(y){switch(y){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"}};
iYy=function(y){switch(y){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"}};
fnj=function(y){switch(y){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"}};
TCu=function(y){switch(y){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"}};
m7R=function(y,W){return _.UB(y.entities,"engagementToolbarStateEntityPayload",W)};
qoP=function(y){(y=_.nD(y))&&_.M_z(y)};
_.M_z=function(y){var W=_.Xn();W&&_.NK(W,y)};
U7L=function(y,W,V){_.ow(y,"yt-open-popup-action",[W,V||y])};
ua4=function(y,W){var V=_.bU(y,"endpoint"),w=_.bU(y,"action");return(V=w?w:V)&&W&&(V=W.navigationEndpointPopupMap[V])&&(y=_.ts(V,y),(V=_.bU(y,"renderer"))&&W.supportedPopups.hasOwnProperty(V))?{openPopupAction:{popupType:W.popupTypeMap[V],popup:y}}:null};
SoL=function(y,W,V,w){if(w){var t;V=V==null?void 0:(t=V.data)==null?void 0:t.contents;(t=V instanceof Array&&V.length?V[0]:V)&&(V=_.bU(t,"renderer"))&&w.supportedPopups.hasOwnProperty(V)&&(W.stopPropagation(),U7L(y,{openPopupAction:{popupType:w.popupTypeMap[V],popup:t}}))}};
x7d=function(y,W,V,w){w=w===void 0?!1:w;var t=D7a(W);if(t){t.href&&E$(t.href);var F=W.button;F=F!==void 0?F===0&&!GP(W):!GP(W);t.data&&F&&lnd(y,t,W,V,w)}};
lnd=function(y,W,V,w,t){t=t===void 0?!1:t;var F=_.pB("pbj_navigate_limit",-1)===0;kxv(W);_.hs().resolve(_.eX(Vp));var I=W.data;if(Object.keys(I).length!==0)if(!_.e("unplugged_web_disable_actions_for_cec_endpoint")&&_.h(I,_.mR))_.e("endpoint_behavior_command_executor_fix_killswitch")||(V.preventDefault(),V.stopPropagation()),_.fg(y,[I],y);else if(w=ua4(I,w))I.loggingUrls&&I.loggingUrls.forEach(function(C){C.baseUrl&&_.Fk(C.baseUrl)}),V.preventDefault(),V.stopPropagation(),U7L(y,w,W);
else{var P=sTG(0,W.data,V);if(y=W.getForm)y=y(),P.tempData=P.tempData||{},P.tempData=Object.assign({},P.tempData,y);y=_.O$(V);if(w=y.find(function(C){return!!C.visualElement}))P.createScreenConfig=P.createScreenConfig||{},P.createScreenConfig.clickedVisualElement=w.visualElement;
if(!F)if(V.preventDefault(),V.stopPropagation(),_.h(I,_.AIb)&&!t&&_.xc.instance)_.xc.instance.resolveCommand(I,P);else if(_.e("kevlar_command_handler_formatted_string")&&!t&&_.xc.instance&&YoR(I))t=y.find(function(C){return!!C.is})||V.target,V={form:Object.assign({},P,{event:V,
element:t,originatingNode:W})},_.xc.instance.resolveCommand(I,V);else{I=_.O$(V);V=[];for(t=0;t<I.length;t++)(F=I[t].is)&&V.push(F);LGt({parents:V.join(","),text:W.innerText},function(){_.h1(W,"yt-navigate",P)})}}};
BCt=function(y){if(y=D7a(y))kxv(y),yjj(y.href)};
D7a=function(y){y=_.O$(y);for(var W,V=0;V<y.length;V++)if(W=y[V],W.tagName==="A"&&W.classList.contains("yt-simple-endpoint")){if(!W.data)break;return W}return null};
GP=function(y){return y.shiftKey||y.altKey||y.metaKey||y.ctrlKey};
JIG=function(y,W){var V={itct:W.clickTrackingParams};_.e("kevlar_client_side_screens")&&(!_.h(W,_.Jx)||_.e("kevlar_exclude_endpoint_killswitch"))&&(V.endpoint=JSON.stringify(W));_.e("enable_unknown_lact_fix_on_html5")&&_.hs().resolve(_.eX(_.rL))&&(V.lact=_.es());brb(V);_.On(y,V)};
kxv=function(y){y.href&&Object.keys(y.data).length!==0&&JIG(y.href,y.data)};
YoR=function(y){for(var W=_.N(R_b),V=W.next();!V.done;V=W.next())if(y[V.value])return!1;return!0};
_.bF=function(y,W){if(W){var V={};jTL.forEach(function(w){w=$7a(W,w,"--yt-lightsource-");Object.assign(V,w)});
nNP.forEach(function(w){w=$7a(W,w,"--yt-basic-");Object.assign(V,w)});
_.qg(y,V)}};
$7a=function(y,W,V){var w={};w[V+_.uu(W)]=y&&y[W]?_.wg(y[W]):"";return w};
_.ZQ=function(y,W,V){Q4[y]||(Q4[y]={});Q4[y][W]=V};
_.y7=function(y){Q4[y]||(Q4[y]={});return Q4[y]};
HYn=function(y){if(!y)return{};var W=y.foregroundTitleColor,V=y.backgroundColor;y=y.borderColor;var w="text";y?w="outline":V&&(w="filled");return{type:w,customColors:{color:W?_.wg(W):void 0,backgroundColor:V?_.wg(V):void 0,borderColor:y?_.wg(y):void 0}}};
bYu=function(y){var W=y.renderer;var V=y.element;var w=y.commandController;var t=y.onTapCallback;var F=y.skipCommandHandling;var I=y.overrides;var P=y.forceIcon;var C=y.forceModernIconButton;var d=y.forceDisabled;var L=y.isSubscribe===void 0?!1:y.isSubscribe;var z=y.isPressed===void 0?!1:y.isPressed;var c=y.useButtonSize===void 0?!1:y.useButtonSize;y=X2u(W);L&&(y.style="mono",y.type="filled");P=!W.icon||!P&&W.text?W.icon?W.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:C?"icon-only":"icon-only-40";P==="icon-only-40"&&(y.type="text");var K;C=Object;L=C.assign;c=ana(W,c);z=!!W.isSelected||!_.e("web_propagate_is_pressed_killswitch")&&!!z;var f=W.isSelected!==void 0;d=d===void 0?W.isDisabled:d;var U=W.text?_.y4(W.text):void 0;var l,x,B,r=((l=W.accessibilityData)==null?void 0:(x=l.accessibilityData)==null?void 0:x.label)||((B=W.accessibility)==null?void 0:B.label);l=r?r:_.OT(W.text);V=Gxd(W,V,w,t,F);w=rIt(W);w!=null&&w.length?(w=_.EU({innertubeCommand:v4n(w),
forceNewState:!0}),w=N4(w)?w:void 0):w=void 0;return L.call(C,{},y,c,{iconPosition:P},I,{focused:!1,toggled:z,toggleable:f,disabled:d,formattedButtonText:U,accessibilityLabel:l,onTap:V,aTagConfig:w},HYn((K=W.colorData)==null?void 0:K.basicColorPaletteData),{oneOffCustomTextWrap:W.oneOffCustomTextWrap})};
Gxd=function(y,W,V,w,t){return function(F){var I=rIt(y);w(I,F);if(!t){I=_.N(I);for(var P=I.next();!P.done;P=I.next())X2(P.value,{form:{element:W,event:F},commandController:V})}}};
rIt=function(y){var W=[];y.command&&W.push(y.command);y.serviceEndpoint&&W.push(y.serviceEndpoint);y.navigationEndpoint&&W.push(y.navigationEndpoint);return W};
ana=function(y,W){if(W)switch(y.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(y.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
X2u=function(y){switch(y.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.W5=function(y){return y!=null&&y.watch?y.watch.isTheaterMode:!1};
_.V7=function(y){return y!=null&&y.watch?y.watch.isWatchFullscreen:!1};
_.wp=function(y){y=_.QTv(y);return _.e("web_watch_enable_single_column_grid_view")?y:!1};
_.QTv=function(y){return y.watch.isWatchNarrowWidth};
_.ZYR=function(y){return y.watch.openEngagementPanels};
_.tn=function(y){return _.DZ(function(){$hv()();return X6b(y)},{debugName:"d8B62c"},"wfRQAb")};
FR=function(y,W){return _.UB(y.entities,"likeStatusEntity",W)};
yFy=function(y,W){return _.UB(y.entities,"likeCountEntity",W)};
_.WYv=function(y,W){return _.UB(y.entities,"stringEntity",W)};
VCP=function(y,W){if(!y)return!1;var V,w=(V=_.h(y,_.q8))==null?void 0:V.signal;if(w&&W.signalEndpointMap)return!!W.signalEndpointMap[w];var t;if((V=(t=_.h(y,_.EP))==null?void 0:t.request)&&W.continuationEndpointMap)return!!W.continuationEndpointMap[V];for(var F in y)if(W.commandEndpointMap[F])return!0;return!1};
wHR=function(y,W){if(W.streamingEndpointMap)for(var V in y)if(W.streamingEndpointMap[V]&&(y=W.streamingEndpointMap[V]))return y()};
tCv=function(y,W){var V,w=(V=_.h(y,_.q8))==null?void 0:V.signal;if(w&&W.signalEndpointMap&&(V=W.signalEndpointMap[w]))return V();var t;if((V=(t=_.h(y,_.EP))==null?void 0:t.request)&&W.continuationEndpointMap&&(t=W.continuationEndpointMap[V]))return t();for(var F in y)if(W.commandEndpointMap[F]&&(y=W.commandEndpointMap[F]))return y()};
FYR=function(y){var W={"Content-Type":"application/json"};_.yC("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=_.yC("EOM_VISITOR_DATA"):_.yC("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=_.yC("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=_.yC("LOGGED_IN",!1);_.yC("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=_.yC("DEBUG_SETTINGS_METADATA"));y!=="cors"&&((y=_.yC("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=y),(y=_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]=
y),(y=_.yC("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=y),(y=_.yC("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=y),_.W4("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(y=_.yC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=y));return W};
EOv=function(y,W){W.watchNextResponse||W.reelItemWatchResponse?W.watchNextResponse?y.content=W.watchNextResponse:y.content=W.reelItemWatchResponse:W.playerResponse?y.player=W.playerResponse:W.reelWatchSequenceResponse&&(y.reelSequence=W.reelWatchSequenceResponse)};
_.NH=function(y){if(!y)return null;for(var W=[],V=0;V<y.textSegments.length;V++){var w=y.textSegments[V];w.text?W.push(w):w.emojiId&&W.push({emoji_id:w.emojiId})}return{text_segments:W}};
Cov=function(y,W,V,w,t,F,I){F=F===void 0?[]:F;var P=new _.IJ;P.endpoint=V;if(!V)return _.GD(new _.Js("handle undefined endpoint",W.tagName)),P;var C=f1L(V);C.length&&(_.fg(y,C,W,w),P.actions=C);V.loggingUrls&&V.loggingUrls.forEach(function(L){L.baseUrl&&Eg(L.baseUrl,L.attributionSrcMode)});
C=!_.e("web_skip_impression_click_killswitch")&&w&&w.impression;if(V.clickTrackingParams&&!Nht(V)&&!IMP(W)&&!C&&(C=_.BC(),!_.gp(C,W))){var d=W.getScreenLayer&&W.getScreenLayer();d?C.clickCommand(V,null,d):C.clickCommand(V,null)}C=!1;for(d=0;d<F.length;d++)if((0,F[d])(W,V,w)){C=!0;break}!C&&gOR(V)&&(P.ajaxPromise=Pov(y,W,V,w,t,I));return P};
IMP=function(y){var W;return(y=(W=y.data)==null?void 0:W.navigationEndpoint)&&!!y.clickTrackingParams};
Nht=function(y){var W=_.h(y,_.q8);if(W&&(W=W.signal)&&OIj.indexOf(W)>=0)return!0;for(var V in y)if(vOP.indexOf(V)>=0)return!0;return!1};
gOR=function(y){var W;if(((W=_.h(y,_.q8))==null?void 0:W.signal)==="CLIENT_SIGNAL")return!1;for(var V in y)if(d3j.indexOf(V)>=0)return!1;y=Object.keys(y);return y.length===1&&y[0]==="loggingUrls"?!1:!0};
pHu=function(y,W,V,w,t,F,I){var P=_.P5.instance;if(P&&_.Cn(P,w))var C=_.OP(P,w,t).then(function(L){return(L==null?0:L.data)?L:{data:L}});
else C=y.requestDataForServiceEndpoint(w,t),_.h(w,LYP)||_.h(w,zWt)||_.h(w,_.cFy)||_.h(w,eWz)||_.rQ(new _.Js("No RequestBuilder for endpoint",w));var d=_.v5();d.promise.thenCatch(function(){var L=_.bU(w,"action")||_.bU(w,"command")||_.bU(w,"endpoint");L&&(L=w[L],L.hasOwnProperty("onFailureAction")?_.fg(W,[L.onFailureAction],V):L.hasOwnProperty("onFailureCommand")&&_.fg(W,L.onFailureCommand,V));C.cancel("Resolver promise rejected")});
C.then(function(L){if(L){var z=L.error;if(z){if(F&&F.onServerError)F.onServerError(w,L);d.reject(new _.Js("Response error",w,z))}else if(L=L.data)if(z=L.error){if(F&&F.onServerError)F.onServerError(w,L);d.reject(new _.Js("Returned error",w,z))}else{hWG(W,V,L,w);oOn(L);if(z=inz(L))for(var c=_.N(z),K=c.next();!K.done;K=c.next()){K=K.value;var f=_.hs().resolve(_.eX(KYn))||dp;if(!_.P5.instance||!f.some(function(l){return!!_.h(w,l)})||_.e("kevlar_response_processor_allowlist_killswitch")){var U=f=void 0;
((U=_.h((f=K)==null?void 0:f.commandMetadata,_.dw))==null?0:U.sendPost)?_.i5(W,[K]):_.fg(W,[K],V)}}(c=_.h(L==null?void 0:L.frameworkUpdates,Ln))&&I&&I(c);if(F&&F.onSuccess)F.onSuccess(w,L);d.resolve(new _.z$(L,z))}}else d.reject(new _.Js("Invalid service endpoint provided",w))},function(L){d.reject(L)});
return d.promise};
oOn=function(y){var W;(y=(W=_.h(y==null?void 0:y.onResponseReceivedCommand,_.iId))==null?void 0:W.continuationItems)&&(y==null?void 0:y.length)===1&&_.h(y[0],fMt)&&_.aw("so_r",void 0,"search_overview_answer")};
Pov=function(y,W,V,w,t,F){var I;return(I=W.getNetworkManager&&W.getNetworkManager()?W.getNetworkManager():_.hs().resolve(_.eX(_.bN)))?pHu(I,y,W,V,w,t,F):_.Gb("No network manager.")};
hWG=function(y,W,V,w){if(V=V.trackingParams||V.loggingDirectives&&V.loggingDirectives.trackingParams){var t;(_.h(w,Thv)||_.h(w,m3z)||_.h(w,MCG))&&w.clickTrackingParams?t=_.nD(w.clickTrackingParams):_.e("web_graft_to_parent_command")&&w.clickTrackingParams&&(t=_.nD(w.clickTrackingParams));var F;w=(F=W.getScreenLayer)==null?void 0:F.call(W);W=_.BC().graftServerVe(V,t,w);_.Kg(y,"yt-store-grafted-ve-action",[W])}};
_.qIz=function(y){var W=new Image;return new _.qN(function(V,w){W.addEventListener("load",function(){V()});
W.addEventListener("error",function(){w()});
W.src=y})};
U3d=function(y){return!!y};
uKv=function(y){return!!y};
SIy=function(y,W,V){var w=y.rowIndex;w!==void 0&&_.Kg(y.hostElement,"yt-section-reactive-dismissal",[w,W,V])};
_.c5=function(y,W,V){y=_.N(y);for(var w=y.next();!w.done;w=y.next()){w=w.value;if(w===W)break;for(var t=_.N(V),F=t.next();!F.done;F=t.next())if(F=F.value,w.tagName===F||!_.e("web_event_button_role_check_killswitch")&&w.role==="button"&&F==="BUTTON")return!0}return!1};
_.ef=function(y,W,V){y=_.N(y);for(var w=y.next();!w.done;w=y.next()){w=w.value;if(w===W)break;for(var t=_.N(V),F=t.next();!F.done;F=t.next())if(w.id===F.value)return!0}return!1};
D3t=function(y){switch(y){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}};
lM4=function(y,W){if(!y&&!W)return"medium";y=Math.max(y||0,W||0);return y>=256?"large":y>=96?"medium":"small"};
x3G=function(y){switch(y){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Kn=function(){var y=_.hs().resolve(_.eX(_.hn));return y?(y=y.getCurrentPage())?_.oJ(y):null:null};
_.pn=function(){var y=_.Kn();if(!y){var W=_.hs().resolve(_.eX(_.hn)),V=W?typeof W:"no page manager";W=W?W.getCurrentPage():null;V=new _.Js("Player is missing when requested.",V,W?W.tagName:"no page");_.ap(V)}return y};
_.oJ=function(y){return y&&y.getPlayer?y.getPlayer():null};
kZj=function(y,W){y={args:{raw_player_response:y}};W&&(y.args=Object.assign({},y.args,W));return y};
set=function(y){if(y.args){if(y.args.raw_player_response)return y.args.raw_player_response;if(y.args.player_response)return JSON.parse(y.args.player_response)}};
_.AFy=function(y,W){var V={url:"/watch?v="+y.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};y.playlistId&&(V.url+="&list="+y.playlistId);y.playerParams&&(V.url+="&pp="+y.playerParams);y={watchEndpoint:y,commandMetadata:{webCommandMetadata:V}};W&&(y.clickTrackingParams=W);return y};
Bhv=function(){return YIt||!!_.ts("yt.player.Application")};
RWu=function(){return JFy||!!document.querySelector("link#player-css")};
$3n=function(){function y(){YIt=!0;jen.resolve()}
var W,V;return _.g(function(w){jen||(jen=new _.UT,Bhv()?y():(W=document.createElement("script"),W.addEventListener("load",y),V=_.na(_.yC("PLAYER_JS_URL")),_.zC(W,V),document.head.appendChild(W)));return w.return(jen.promise)})};
HIL=function(){function y(){JFy=!0;nOb.resolve()}
if(!nOb)if(nOb=new _.UT,RWu())y();else{var W=document.createElement("link");W.id="player-css";W.addEventListener("load",y);var V=_.na(_.yC("PLAYER_CSS_URL"));_.hX(W,V,"stylesheet");document.head.appendChild(W)}return nOb.promise};
XHz=function(){return Bhv()&&RWu()?Promise.resolve([]):Promise.all([$3n(),HIL()])};
aM4=function(y,W,V){var w={args:{}};y&&(w.args.raw_player_response=y);W&&(w.args.raw_watch_next_response=W);V&&(w.args=Object.assign({},w.args,V));return w};
Qea=function(y,W,V){var w=!1;w=w===void 0?!0:w;y=typeof y==="string"?_.i8(document,y):y;var t=GZn+"_"+_.tA(y),F=rFd[t];if(F&&w)return bI4(W,V)?F.api.loadVideoByPlayerVars(W.args||null):F.loadNewVideoConfig(W),F.api;F=new fn(y,t,W,V,void 0);rFd[t]=F;F.addOnDisposeCallback(function(){delete rFd[F.getId()]});
return F.api};
bI4=function(y,W){return W&&W.serializedExperimentFlags?W.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):y&&y.args&&y.args.fflags?y.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
ZIy=function(){var y=new _.UT;y.resolved=!1;var W=y.resolve;y.resolve=function(V){y.resolved=!0;W(V)};
return y};
WzG=function(y){var W={};y5d().install((W.document_disposed={callback:y},W))};
T$=function(y,W){if(!y&&Math.random()<=_.pB("kevlar_unified_player_logging_threshold")){y=Error("Dh`"+(W?W:"Unspecified error"));if(_.e("kevlar_unified_player_throw_errors"))throw y;_.rQ(y)}};
_.VJa=function(){var y=_.ts("ytDebugData.callbacks");y||(y={},_.dE("ytDebugData.callbacks",y));return y};
tJL=function(y,W){var V=_.VJa();if(_.e("web_dd_iu")||wun.includes(y))V[y]=W};
Fzu=function(){return _.g(function(y){return y.return({isLeader:_.siu(_.dP().getState()),c:_.yC("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ETj=function(){var y;_.g(function(W){if(W.nextAddress==1)return tJL("APP_STATE",Fzu),W.yield(_.hs().resolve(_.mG),2);y=W.yieldResult;tJL("PI",function(){return _.g(function(V){return V.return(y.getVideoStats())})});
_.B7(W)})};
NM4=function(y){var W=_.Cg(_.Vm(_.Vj.location.href));y=_.Cg(_.Vm(y));return _.e("kevlar_clear_non_displayable_url_params")?W==MH(y):MH(W)==MH(y)};
MH=function(y){var W=_.IFz(y);y=y.slice(0);var V=["frags"];_.e("kevlar_hide_pp_url_param")&&V.push("pp");_.e("kevlar_hide_time_continue_url_param")&&V.push("time_continue");V=_.N(V);for(var w=V.next();!w.done;w=V.next())w=w.value,y=_.vN(_.Cg(y),w);return _.Cg(y)+(W?"#"+W:"")};
qH=function(y,W){W=Number(W)*1E3;var V=Math.round((0,_.cU)()),w=V.toString();y={innertubeResponse:y,serverDateTimestampMs:w,lastModifiedTimestampMs:w,expireTimestampMs:(V+W).toString()};if(W=_.yC("INNERTUBE_CONTEXT_CLIENT_NAME"))y.clientName=W;return y};
Pcu=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++gTR};
_.Ccv=function(){var y=_.Hf(),W=_.Xn();W&&y&&_.g5(W,[y],!0)};
vTy=function(y){return y&&O0v.some(function(W){return y.includes(W)})};
hNd=function(y){var W=_.h(y,_.wS);if(!W)return!1;var V=W.url,w=W.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!V)return _.ap(Error("Ih")),!1;if(W.target==="TARGET_NEW_WINDOW"){var t={};_.e("resolve_url_parent_tracking_params")&&(!_.di(V)||LB(window.location.href,V))&&(t={endpoint:y,itct:y.clickTrackingParams});brb(t);y=null;try{if(w)return y=_.F3G(V,"_blank",t,void 0,w),dQy(_.hs().resolve(Lza),y,V),!0}catch(c){_.ap(c)}_.On(V,t);W={target:"_blank",noopener:_.e("set_window_noopener_ks")&&
!W.allowOpener};y=window;w=aG(V)?V:_.ye(typeof V.href!="undefined"?V.href:String(V));t=self.crossOriginIsolated!==void 0;var F="strict-origin-when-cross-origin";window.Request&&(F=(new Request("/")).referrerPolicy);var I=W.noreferrer;if(t&&I&&F==="unsafe-url")throw Error("ze");F=I&&!t;I=W.target||V.target;var P=[],C=[],d=!1;for(z in W){var L=W[z];switch(z){case "width":case "height":case "top":case "left":P.push(z+"="+L);break;case "target":break;case "noopener":case "noreferrer":L?C.push(z):(d=!0,
C.push(z+"=false"));break;case "attributionsrc":P.push(z+(L?"="+L:""));break;default:P.push(z+"="+(L?1:0))}}var z=I!==void 0&&!["_blank","_self","_top","_parent",""].includes(I);z=Uz()&&z;zNG&&t&&P.length===0&&C.length>0&&!z&&!d?(C.length===2&&(C=["noreferrer"]),_.P7(y,w,I,C[0]),y=c5y()):(z=P.join(","),_.kP()&&y.navigator&&y.navigator.standalone&&I&&I!="_self"?(z=_.xu("A"),tX(z,w),z.target=I,F&&(z.rel="noreferrer"),((W=W.attributionsrc)||W==="")&&z.setAttribute("attributionsrc",W),W=document.createEvent("MouseEvent"),
W.initMouseEvent("click",!0,!0,y,1),z.dispatchEvent(W),y=c5y()):F?(y=_.P7(y,"",I,z),W=_.G3(w),y&&(y.opener=null,W===""&&(W="javascript:''"),W='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+UP(W)+'">',W=Nl(W),(w=y.document)&&w.write&&(w.write(Ih(W)),w.close()))):((y=_.P7(y,w,I,z))&&W.noopener&&(y.opener=null),y&&W.noreferrer&&(y.opener=null)));dQy(_.hs().resolve(Lza),y,V);return!0}W=_.U1(V);W=vTy(W)||V==="https://studio.youtube.com/";w=!(!_.di(V)||LB(window.location.href,
V));z=V.indexOf("disable_polymer=1")>=0;if(w||z||W)E$(V),$F(),_.Ng(V,void 0,void 0,window.top,eNd);else return _.rQ(new _.Js("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",y)),!1;return!0};
_.puj=function(y,W){W=W===void 0?0:W;if(!(_.h(y,oTj)||_.h(y,KzR)||_.h(y,_.wS)&&_.h(y,_.wS).url))return!1;var V,w=(V=_.h(y,_.wS))==null?void 0:V.url;V=w?{externalLinkData:{url:w}}:null;return _.BC().clickCommand(y,V,W)};
i0G=function(y,W){return _.UB(y.entities,"subscriptionStateEntity",W)};
fFa=function(y,W){return _.UB(y.entities,"subscriptionNotificationStateEntity",W)};
TMR=function(y,W){return _.UB(y.entities,"upcomingEventReminderStateEntity",W)};
mQL=function(y,W){return _.UB(y.entities,"engagementToolbarSurfaceEntityPayload",W)};
MJa=function(y,W){return _.UB(y.entities,"triStateButtonStateEntityPayload",W)};
q5t=function(y,W){return _.UB(y.entities,"commerceCartCheckoutButtonEntity",W)};
_.UQa=function(y,W){return _.UB(y.entities,"playlistLoopStateEntity",W)};
usL=function(y,W){return _.UB(y.entities,"commandEntity",W)};
DQb=function(y,W,V,w,t){t=t===void 0?{}:t;return function(F){var I,P;var C=((I=y.loggingDirectives)==null?0:(P=I.clientVeSpec)==null?0:P.uiType)?_.ad(y.loggingDirectives.clientVeSpec.uiType):void 0;t.clickedVisualElement||(t.clickedVisualElement=C);C=S5P(y,W);V(C,F);C=_.N(C);for(I=C.next();!I.done;I=C.next()){I=I.value;P=w;var d=F,L=t;L.form?L.form.event=d:L.form={element:P,event:d};X2(I,L)}}};
S5P=function(y,W){var V=[];W?(y.toggledCommand&&V.push(y.toggledCommand),y.toggledServiceEndpoint&&V.push(y.toggledServiceEndpoint)):(y.defaultCommand&&V.push(y.defaultCommand),y.defaultServiceEndpoint&&V.push(y.defaultServiceEndpoint),y.defaultNavigationEndpoint&&V.push(y.defaultNavigationEndpoint));return V};
lFj=function(y,W){var V=y.toggledStyle||y.style,w;switch((w=W?V:y.style)==null?void 0:w.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"}}};
_.u8=function(){return _.g(function(y){return y.nextAddress==1?y.yield(_.hs().resolve(_.mG),2):y.return(_.hs().resolve(xQz)())})};
_.Sf=function(){return _.hs().resolve(xQz)()};
_.D1=function(){return GI(function(){return{lottieEl:void 0}})};
klG=function(y,W){return y.startsWith(W.uniqueId)};
snR=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(_.u8(),2);W=w.yieldResult;if((V=W)==null||!V.addEventListener)return l8(),w.return();W.addEventListener("onCueRangeEnter",y);_.B7(w)})};
A5n=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(_.u8(),2);W=w.yieldResult;if((V=W)==null||!V.removeEventListener)return l8(),w.return();W.removeEventListener("onCueRangeEnter",y);_.B7(w)})};
Y5y=function(y){var W,V,w,t,F;_.g(function(I){if(I.nextAddress==1)return I.yield(_.u8(),2);W=I.yieldResult;if((V=W)==null||!V.addCueRange)return l8(),I.return();w=_.N(y.timings);for(t=w.next();!t.done;t=w.next())F=t.value,W.addCueRange(y.uniqueId+"-"+F,F/1E3,(F+100)/1E3);_.B7(I)})};
BMy=function(y){var W,V,w,t,F;_.g(function(I){if(I.nextAddress==1)return I.yield(_.u8(),2);W=I.yieldResult;if((V=W)==null||!V.removeCueRange)return l8(),I.return();w=_.N(y.timings);for(t=w.next();!t.done;t=w.next())F=t.value,W.removeCueRange(y.uniqueId+"-"+F);_.B7(I)})};
J5G=function(){var y,W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(_.u8(),2);y=w.yieldResult;if((W=y)==null||!W.getPlayerState)return l8(),w.return();V=y.getPlayerState();return w.return(V===2)})};
l8=function(){_.rQ(new _.Js("Smartimation player does not exist or is corrupted"))};
RNG=function(){try{var y;return(y=window.CSS)!=null&&y.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(W){return _.rQ(new _.Js("Smartimation CSS.supports threw an error")),!1}};
Gld=function(y,W,V,w,t){var F=y.playlistId?jnu:$Qn;W=W();V=V();t=!!y.videoId&&t()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.YC(W))return nTz({data:y,actionType:F,disabled:t},V);if(y.videoId&&w())return H0v({data:y,actionType:F,disabled:t});switch(W){case "TRANSFER_STATE_UNKNOWN":return H0v({data:y,actionType:F,disabled:t});case "TRANSFER_STATE_FAILED":return y.videoId?Xuj({data:y,actionType:F,disabled:t}):aFG({data:y,actionType:F,disabled:t});case "TRANSFER_STATE_COMPLETE":return aFG({data:y,
actionType:F,disabled:t});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return nTz({data:y,actionType:F,disabled:t},V);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return y.videoId?Xuj({data:y,actionType:F,disabled:t}):H0v({data:y,actionType:F,disabled:t});default:return H0v({data:y,actionType:F,disabled:t})}};
r5n=function(y,W){var V=y.onTapCommand,w=_.tl(V);if(y.videoId&&_.h(w,_.xn))return _.h(w,_.xn).action=W,V;y.playlistId&&_.h(w,_.sP)&&(_.h(w,_.sP).action=W);return V};
H0v=function(y){var W=y.data;var V=y.actionType;y=y.disabled;return{text:b0n,iconType:"OFFLINE_DOWNLOAD",onTap:r5n(W,V.ACTION_ADD),disabled:y}};
nTz=function(y,W){var V=y.data;var w=y.actionType;y=y.disabled;var t="OFFLINE_DOWNLOAD";W>=0&&W<=.1?t="OFFLINE_DOWNLOADING_ZERO":W>.1&&W<=.3?t="OFFLINE_DOWNLOADING_TWENTY":W>.3&&W<=.5?t="OFFLINE_DOWNLOADING_FORTY":W>.5&&W<=.7?t="OFFLINE_DOWNLOADING_SIXTY":W>.7&&W<1?t="OFFLINE_DOWNLOADING_EIGHTY":W===1&&(t="OFFLINE_PIN");return{text:Qnv,iconType:t,onTap:r5n(V,w.ACTION_REMOVE_WITH_PROMPT),disabled:y}};
aFG=function(y){var W=y.data;var V=y.actionType;y=y.disabled;return{text:Z0z,iconType:"OFFLINE_PIN",onTap:r5n(W,V.ACTION_REMOVE_WITH_PROMPT),disabled:y}};
Xuj=function(y){var W=y.data;var V=y.actionType;y=y.disabled;return{text:y9d,iconType:"OFFLINE_DOWNLOAD",onTap:r5n(W,V.ACTION_RETRY),disabled:y}};
t5a=function(y){var W=Wrv;V5v.push(y);wnP||(W(function(){for(var V=_.N(V5v),w=V.next();!w.done;w=V.next())w=w.value,w();V5v.length=0;wnP=!1}),wnP=!0)};
Wrv=function(y){Promise.resolve().then(y)};
An=function(y){y=_.N(G$j(y));var W=y.next().value,V=y.next().value,w=!1;_.a8(function(){return function(){w=!0}});
return[W,function(t){t5a(function(){w&&!_.e("cow_prevent_state_setter_after_cleanup_killswitch")||V(t)})}]};
_.Yn=function(y,W){var V=$hv();return _.DZ(function(){V();return X6b(y,[_.Gt(W)||""])},{debugName:"LUZslf"},"qYSKAc")};
Frb=function(y){var W=_.Yn(_.yY,function(){return y().videoId}),V=_.Yn(_.W9,function(){return y().playlistId});
return function(){return y().videoId?W:y().playlistId?V:_.N(_.M1("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
ELv=function(y){var W=_.Yn(VY,function(){return y().videoId}),V=_.Yn(_.kd4,function(){return y().playlistId});
return function(){return y().videoId?W:y().playlistId?V:_.N(_.M1(0,void 0,"K4tgOc")).next().value}};
NBv=function(y){var W=_.Yn(_.n0n,function(){return y().videoId});
return function(){return y().videoId?W:_.N(_.M1(!1,void 0,"Oaxwcf")).next().value}};
Ima=function(y){var W=_.Yn(Y8P,function(){return y().videoId});
return function(){return y().videoId?W:_.N(_.M1("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
gLy=function(){return{}};
Pm4=function(){var y,W;return(W=(y=_.hs().resolve(_.eX(_.va)))==null?void 0:y())!=null?W:!1};
Ok4=function(y,W){y=y===void 0?Cma:y;switch(W.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},y,{isOpen:W.payload});default:return y}};
dva=function(y,W){y=y===void 0?vLL:y;switch(W.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},y,{isAllowed:W.payload});default:return y}};
ztn=function(y,W){y=y===void 0?Lrt:y;switch(W.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},y,{errorMessage:W.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},y,{title:W.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},y,{privacy:W.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},y,{isDisabled:W.payload});default:return y}};
etP=function(y,W){y=y===void 0?c9b:y;switch(W.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},y,{isOpen:W.payload});default:return y}};
oLR=function(y,W){y=y===void 0?htv:y;switch(W.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},y,{isFullscreen:W.payload});case "SET_NAVIGATION_BUTTON":var V=W.payload.targetId,w=Object.assign({},y.navigationButtons);w[V]=W.payload.button;return Object.assign({},y,{navigationButtons:w});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},y,{topPanelId:W.payload});case "SET_SECONDARY_HEADER":return V=W.payload.panelId,w=Object.assign({},y.secondaryHeader),w[V]=W.payload.secondaryHeader,
Object.assign({},y,{secondaryHeader:w});default:return y}};
fmn=function(){return qB(Object.assign({},{entities:Xw4,voiceSearch:uSd,engagementPanel:oLR,bottomSheet:Ok4,cinematicSetting:dva,shorts:YAt,drawerLayout:etP,createPlaylist:ztn,locationCollection:KrG,reportChannel:pnn,reportForm:iky},Bdd))};
TBn=function(y,W){_.HU.addLowPriorityJob(function(){var V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return _.l7(F,2),F.yield(pxa(),4);case 4:return F.yield(fetch(y),5);case 5:return V=F.yieldResult,F.yield(V.json(),6);case 6:w=F.yieldResult;xS.set(y,w);requestAnimationFrame(function(){W(w)});
_.E6(F,0);break;case 2:t=_.YX(F),_.rQ(t),_.B7(F)}})})};
mvj=function(y){var W={animationConfig:{},listeners:{}},V=function(){y(!0)};
W.listeners.data_failed=V;W.listeners.error=V;W.listeners.data_ready=function(){y(!1)};
return W};
UvP=function(y){var W=y.model;var V=y.subscribed;var w=y.isOverlay;var t=y.element;var F=y.commandController;var I=y.notificationState;if(V){var P,C;var d=(W==null?void 0:(P=W.buttonStyle)==null?void 0:P.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:W==null?void 0:(C=W.unsubscribeButtonContent)==null?void 0:C.buttonText}else{var L;d=W==null?void 0:(L=W.subscribeButtonContent)==null?void 0:L.buttonText}a:{var z;switch(W==null?void 0:(z=W.buttonStyle)==
null?void 0:z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":P="S";break a;default:P="M"}}a:if(w)w="overlay";else switch(W.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":w="overlay";break a;default:w="mono"}a:if(V)var c="tonal";else switch((c=W.buttonStyle)==
null?void 0:c.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":c="tonal";break a;default:c="filled"}return{style:w,type:c,state:W.disableSubscribeButton?"disabled":"active",size:P,focused:y.focused,toggled:V,accessibilityLabel:M5a(W,V,I),buttonText:d,iconPosition:W.disableNotificationBell?"none":"leading-trailing",onTap:qqy(W,V,t,F),disableTextEllipsis:!!y.disableTextEllipsis}};
qqy=function(y,W,V,w){return function(t){if(W){var F;var I=y.disableNotificationBell?_.tl(y==null?void 0:(F=y.unsubscribeButtonContent)==null?void 0:F.onTapCommand):_.tl(y==null?void 0:y.onShowSubscriptionOptions)}else{var P;I=_.tl(y==null?void 0:(P=y.subscribeButtonContent)==null?void 0:P.onTapCommand)}I&&X2(I,{form:{element:V==null?void 0:V.value},commandController:w});t.stopPropagation()}};
M5a=function(y,W,V){if(W){if(y==null?0:y.disableNotificationBell){var w;return y==null?void 0:(w=y.unsubscribeButtonContent)==null?void 0:w.accessibilityText}switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var t;return y==null?void 0:(t=y.bellAccessibilityData)==null?void 0:t.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var F;return y==null?void 0:(F=y.bellAccessibilityData)==null?void 0:F.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var I;return y==null?void 0:(I=
y.bellAccessibilityData)==null?void 0:I.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var P;return y==null?void 0:(P=y.bellAccessibilityData)==null?void 0:P.disabledLabel;default:var C;return y==null?void 0:(C=y.unsubscribeButtonContent)==null?void 0:C.accessibilityText}}else{var d;return y==null?void 0:(d=y.subscribeButtonContent)==null?void 0:d.accessibilityText}};
uCL=function(y){if(y){switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":y="NOTIFICATIONS_OFF";break;default:y="NOTIFICATIONS_NONE"}return y}};
Sqb=function(y,W,V){V.subscribed!==W&&((V=V.key)&&_.dc(_.B5("subscriptionStateEntity",V,{key:V,subscribed:W})),y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.ow(y,"yt-unsubscribe-action"))};
lm4=function(y){y=_.h(_.tl(y),_.Jn);var W,V,w,t;return(t=_.h(y==null?void 0:(W=y.panelLoadingStrategy)==null?void 0:(V=W.inlineContent)==null?void 0:(w=V.sheetViewModel)==null?void 0:w.content,Dvv))==null?void 0:t.listItems};
xv4=function(y,W){if(y.onShowSubscriptionOptions&&W&&(y=lm4(y.onShowSubscriptionOptions),y!=null&&y.length)){var V=uCL(W);y.forEach(function(w){w=_.h(w,_.RJ);var t,F,I,P,C=w==null?void 0:(t=w.leadingImage)==null?void 0:(F=t.sources)==null?void 0:(I=F[0])==null?void 0:(P=I.clientResource)==null?void 0:P.imageName;w&&C&&(w.isSelected=C===V)})}};
kav=function(y,W,V,w){W&&V?y.style.width=V+"px":!W&&w&&(y.style.width=w+"px")};
sWG=function(y,W,V){var w;(w=y.lottieEl)==null||w.goToAndPlay(0);var t;(t=W.lottieEl)==null||t.goToAndPlay(0);_.jf(_.HU,function(){var F;(F=V.lottieEl)==null||F.goToAndPlay(0)},300)};
$n=function(){return _.hs().resolve(_.eX(A9L))||{}};
Yqj=function(y){return typeof y==="function"};
_.nn=function(y){Object.keys(y);var W=function(V,w){var t=W.mapping||y;if(!V)return _.O(_.o8,null);if(Array.isArray(V)&&(V=BBd(t,W,V),Array.isArray(V))){if(!V.length)return _.O(_.o8,null);if(V.length>1){for(var F=!1,I=!1,P=[],C={},d=0;d<V.length;C={data$jscomp$1893:void 0},d++)if(C.data$jscomp$1893=V[d],C.data$jscomp$1893){var L=J9G(C.data$jscomp$1893,t),z=L.mappingEntry;L=L.rendererName;z&&L&&(z&&(!Yqj(z)&&Rtv(z)&&(I=!0),!Yqj(z)&&z.asyncId||(F=!0)),P.push(jWL(C.data$jscomp$1893,z,L,W,w)))}return I&&
!F?_.O(_.o8,null,$vt()):_.O(_.o8,null,P)}V=V[0]}if(!V)return _.O(_.o8,null);V=BBd(t,W,[V])[0];if(!V)return _.O(_.o8,null);F=J9G(V,t);t=F.mappingEntry;F=F.rendererName;return t&&F?_.O(_.o8,null,jWL(V,t,F,W,w)):_.O(_.o8,null)};
W.mapping=y;return W};
_.nLv=function(y){var W=void 0,V;for(V in y)if(y.hasOwnProperty(V)){W=V;break}return W};
BBd=function(y,W,V){var w,t=(w=$n().preProcessOptions)==null?void 0:w.idomOptions;if(!t)return V;$n();return t.preProcessPropsIdom(y,V,W.triggerRerender)};
J9G=function(y,W){return(y=_.nLv(y))?{mappingEntry:W[y],rendererName:y}:{mappingEntry:void 0,rendererName:void 0}};
jWL=function(y,W,V,w,t){if(!W)return _.O(_.o8,null);var F={};t&&t[V]&&(F=Object.assign({},t[V]));y[V]!==void 0&&(F.data=y[V]);if(Yqj(W))return W.debugName||(W.debugName=V),_.O(W,F);W.asyncId&&(w.pendingIdsMap=w.pendingIdsMap||{},w.pendingIdsMap[V]=W.asyncId);return W.templateFn?W.templateFn(F):Rtv(W)?$vt():_.O(_.o8,null)};
Rtv=function(y){var W;return(W=y.showPlaceholder)!=null?W:$n().defaultShowPlaceholder};
$vt=function(){var y=$n().placeholder;return y()};
HkR=function(y){y=_.h(y,_.H5);return(y==null?void 0:y.iconName)&&!(y==null?0:y.title)};
Ga4=function(y,W,V){var w;return _.O(_.o8,null,y==null?void 0:(w=y.actions)==null?void 0:w.map(function(t){return _.O("div",{class:function(){var F={"yt-flexible-actions-view-model-wiz__action":!0};F["yt-flexible-actions-view-model-wiz__action--row-action"]=W;F["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(HkR(t))var I=!0;else if(I=_.h(t,_.aJ),(I==null?0:I.isToggled)&&HkR(I==null?void 0:I.toggledButtonViewModel)||(I==null||!I.isToggled)&&HkR(I==null?void 0:I.defaultButtonViewModel))I=
!0;else{var P;I=((P=_.h(t,XnR))==null?0:P.playlistId)?!0:!1}F=(F["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=I,F["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=V,F);return _.sU(F)}},amu([t],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!W}}))}))};
r9L=function(y){var W=y.layout===1,V,w=((V=y.data)==null?void 0:V.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";V={};w=(V["yt-flexible-actions-view-model-wiz"]=!0,V["yt-flexible-actions-view-model-wiz--inline"]=!W,V["yt-flexible-actions-view-model-wiz--scrollable"]=w,V);var t,F;return _.O("yt-flexible-actions-view-model",{class:_.sU(y.className,w)},(t=y.data)==null?void 0:(F=t.actionsRows)==null?void 0:F.map(function(I){if(W){var P;return _.O("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Ga4(I,W,!((P=y.data)==null||!P.respectActionIntrinsicWidth)))}return Ga4(I,W,!1)}))};
bkv=function(y,W){W=W===void 0?{shouldPersist:!0}:W;return{useUpdatableData:function(V,w){var t=[],F=_.N(_.Jl(function(){var d=V();if(w!=null&&w.length&&t){var L=t.length>0;for(var z=!1,c=0;c<w.length;c++){var K=w[c]();L&&K!==t[c]&&(z=!0);t[c]=K}L=z}else L=!1;if(L)_.G$.remove(C());else if(L=_.G$.get(C()))return L;return d})),I=F.next().value,P=F.next().value,C=_.DZ(function(){return y(V())},void 0,"VFraLb");
_.H1(function(){if(C()!=null){rp.set(C(),[I,P,!1]);var d=C();_.XT(function(){rp.delete(d)})}},"Fdafud");
return[I,function(d){P(d);W.shouldPersist&&_.G$.set(C(),d)}]},
getData:function(V){var w;return(w=rp.get(y(V)))==null?void 0:w[0]()},
updateData:function(V,w){V=y(V);var t=rp.get(V);if(!t)return!1;var F=_.N(t);t=F.next().value;F=F.next().value;w=w(t());F(w);W.shouldPersist&&_.G$.set(V,w);return!0},
useUpdatableDataIdom:function(V,w){var t=y(V),F=_.G$.get(t),I=_.N(An(F!=null?F:V)),P=I.next().value,C=I.next().value,d=rV(F!=null?F:V);_.Xd(function(){if(t!=null)return rp.set(t,[function(){return d.value},
function(L){C(L);d.value=L},
rp.has(t)]),_.HU.addJob(function(){_.b8(_.HU,function(){var L=rp.get(t);L&&(L[2]=!1)},0)},8),function(){var L;
((L=rp.get(t))==null?0:L[2])||rp.delete(t)}},[t]);
_.Xd(function(){P!==V&&(C(V),d.value=V)},w?[].concat(_.GC(w),[t]):[t]);
return[P,C]}}};
QWb=function(y){var W=_.N(_.M1(!0,void 0,"bKtO6d")),V=W.next().value;W.next();return function(){var w=D7(y.children());return _.O(_.v,{cond:V,then:function(){return w},
else:y.fallback})}()};
_.Q7=function(y){var W=ZkG(y),V=W.data,w=W.mapping,t=W.wrapper;W=W.pendingFallback;var F=function(){return ywL(_.Gt(V))},I=function(){var P=F(),C=[];
P=_.N(P);for(var d=P.next();!d.done;d=P.next()){var L=void 0;d=d.value;var z=void 0;for(L in d)if(!(!d).hasOwnProperty(L)){z=L;break}(L=z)&&C.push(L)}return C};
return y.data?_.O(QWb,{fallback:W},function(){return _.O(_.YV,{each:I},function(P,C){var d=t?function(z){return t(function(){return w[P](z,C)},L,C)}:function(z){return w[P](z,C)};
d.debugName||(d.debugName=String(P));if(!w[String(P)])return document.createComment("");d.componentType!==B1&&Wet(String(P));var L=VRj(F,P,C);return _.O(d,{data:L})})}):_.O(_.o8,null)};
ZkG=function(y){var W=y.targetId||wou(y.children);if(!y.data||!W||_.e("mweb_new_replaceables_killswitch"))return Object.assign({},y,{mapping:y.children,wrapper:void 0});var V="stamper-"+tRG++,w=function(){var P;return(P=typeof y.targetId==="function"?y.targetId(V):y.targetId)!=null?P:V};
W=_.N(Fen(function(){var P=ywL(y.data());P.targetId=w;return P})).next().value;
var t=Object.assign({},$n().replaceableMapping,y.children);if(y.replacementWrapper){var F=t.notificationTextRenderer,I=t.notificationMultiActionRenderer;F&&(t.notificationTextRenderer=function(P,C){return y.replacementWrapper(F({data:P.data},C))});
I&&(t.notificationMultiActionRenderer=function(P,C){return y.replacementWrapper(I({data:P.data},C))})}return Object.assign({},y,{data:W,
mapping:t,wrapper:function(P,C,d){return d7n({targetId:w,stamperIndex:d},P)}})};
VRj=function(y,W,V){var w;return _.DZ(function(){var t=y()[V()];if(t)w=t[W];else return _.rQ(new _.Js("Stamper failed to find "+String(W)+" at index "+V()+" of data array of length "+(y().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),w;return t[W]},void 0,"wgRPHd")};
wou=function(y){y=_.N(Object.keys(y));for(var W=y.next();!W.done;W=y.next())if(W=W.value,EMb.includes(W)||Njd.includes(W)||IWt.includes(W))return!0;return!1};
ywL=function(y){return y?Array.isArray(y)?y:[y]:[]};
Wet=function(y){if(_.e("web_enable_renderer_logger")){var W;(W=_.hs().resolve(_.eX(gMn)))!=null&&W.loggingEnabled&&!W.ids.has(y)&&W.ids.add(y)}};
PGn=function(y){return!(y==null||!y.iconName||(y==null?0:y.title))};
CGG=function(y,W,V,w){V&&_.HU.cancelJob(V);V=_.HU.addLowPriorityJob(function(){w(void 0)},5E3);
w(V);W&&y!==(W.likeStatus==="LIKE")&&W.key&&_.dc(_.B5("likeStatusEntity",W.key,{key:W.key,likeStatus:y?"LIKE":"INDIFFERENT",hadUserInteraction:y}))};
_.OPP=function(y,W){return _.UB(y.entities,"accountLinkStatusEntity",W)};
vML=function(y,W){return _.UB(y.entities,"hatsSurveyEntity",W)};
dya=function(y,W){return _.UB(y.entities,"hatsSurveyStateEntity",W)};
Le4=function(y,W){return _.UB(y.entities,"quantityIncrementerEntity",W)};
zvP=function(y){switch(y){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
cwy=function(y){switch(y){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}};
evd=function(y){switch(y){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.oMv=function(y){var W=_.pB("web_generic_client_event_wait_period ",0);W||(W=3E5);var V=hvu.get(y);!_.e("enable_web_client_experiment_event_timeout_killswitch")&&V&&(0,_.cU)()-V<W||(hvu.set(y,(0,_.cU)()),_.Hp("genericClientExperimentEvent",{eventType:y}))};
KeR=function(y){switch(y){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
poa=function(y){if(!y)return"";var W,V=(W=_.hs().resolve(_.eX(_.va)))==null?void 0:W(),w;if(!V&&((w=y.vibrantColorPalette)==null?0:w.iconInactiveColor))return tc(y.vibrantColorPalette.iconInactiveColor,"1");var t;return V&&((t=y.darkColorPalette)==null?0:t.iconInactiveColor)?tc(y.darkColorPalette.iconInactiveColor,"1"):y.color?tc(y.color,"1"):y.sampledThumbnailColor?(y=y.sampledThumbnailColor,"rgba("+y.red+","+y.green+","+y.blue+");"):""};
_.Z1=function(y,W){if(!y.includes("DATE_PLACEHOLDER"))return y;var V=new Date(0);V.setUTCSeconds(W);return y.replace("DATE_PLACEHOLDER",iPL(V))};
fWb=function(y,W,V){return function(w){var t=y.command;t&&(X2(t,{form:{element:V}}),W([t],w))}};
myb=function(y,W,V,w,t){return function(F){var I=TjR(y,W);I&&X2(I,{form:{element:V},commandController:w});t&&F.stopPropagation()}};
TjR=function(y,W){if(y.signInEndpoint&&!_.e("web_subscribe_sign_in_endpoint_killswitch"))return y.signInEndpoint;if(W){if(y.serviceEndpoints)return y.serviceEndpoints[1];if(y.onUnsubscribeEndpoints)return y.onUnsubscribeEndpoints[0]}else{if(y.serviceEndpoints)return y.serviceEndpoints[0];if(y.onSubscribeEndpoints)return y.onSubscribeEndpoints[0]}};
MRd=function(y,W){var V,w,t,F;W=W&&((V=y.unsubscribeAccessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)||((t=y.subscribeAccessibility)==null?void 0:(F=t.accessibilityData)==null?void 0:F.label);return y.longSubscriberCountText?[W,_.OT(y.longSubscriberCountText)].filter(function(I){return I}).join(" "):W};
yS=function(y,W){return W||(y==null?0:y.isChannelDelegate)?"disabled":"active"};
q7G=function(y,W){var V;switch((V=y.style)==null?void 0:V.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:yS(y)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:yS(y)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:yS(y,!0)};case "OVERLAY":return W?{style:"overlay",type:"tonal",state:yS(y)}:{style:"overlay",type:"filled",state:yS(y)};default:return W?{style:"mono",type:"tonal",state:yS(y)}:{style:"mono",type:"filled",state:yS(y)}}};
UyG=function(y){switch(y){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
uAd=function(y){switch(y){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
S7j=function(y,W){var V=y.map(function(w){return w.toString()});
return _.YS(function(w){if(V.includes(w.key)){W&&w.preventDefault();var t;(t=w.currentTarget)==null||t.click()}})};
_.Dyv=function(){return S7j(["Enter"])};
_.lWd=function(){return S7j(["Enter"," "],!0)};
_.We=function(y){if(y.composedPath)return y.composedPath();if(!y.__composedPath){for(var W=[],V=y.target;V;)W.push(V),V=V.parentNode;W.push(window);y.__composedPath=W}return y.__composedPath};
_.VS=function(y,W,V){y=_.N(y);for(var w=y.next();!w.done;w=y.next()){w=w.value;if(w===W)break;for(var t=_.N(V),F=t.next();!F.done;F=t.next())if(F=F.value,w.tagName===F||w.role==="button"&&F==="BUTTON")return!0}return!1};
kLR=function(y,W){var V,w=(V=W.observer)!=null?V:_.hs().resolve(dS);if(y){V=xyR(y);var t=[];W.showOption&&t.push(w.observe(y,function(){W.visibilityCallback(!0,y)},W.showOption));
W.hideOption&&t.push(w.observe(y,function(){W.visibilityCallback(!1,y)},W.hideOption));
W.prescanOption&&W.prescanCallback&&t.push(w.observe(y,function(){W.prescanCallback()},W.prescanOption));
var F;V.visibilityMonitorKeys=((F=V.visibilityMonitorKeys)!=null?F:[]).concat(t)}};
xyR=function(y){var W;return(W=y.polymerController)!=null?W:y};
_.tO=function(y){return!!_.w7(y)};
_.FW=function(y,W,V,w,t){return function(F){var I=_.vNd();_.H1(function(){if(F){_.sMP(F,y(),t);var P=_.Aw4(F,y(),W,V,w,I);_.XT(P)}},"nr377e")}};
_.sMP=function(y,W,V){var w=Y7a(W),t=Bj4(W);W=w&&Jwa;var F=t&&Rvy;(w||t)&&kLR(y,{visibilityCallback:function(I){var P=_.hs().resolve(_.oA);I&&w?P.resolveCommand(w,{form:{element:V?y:void 0},disableClickTracking:!0}):!I&&t&&P.resolveCommand(t,{form:{element:V?y:void 0},disableClickTracking:!0})},
showOption:W,hideOption:F})};
_.Aw4=function(y,W,V,w,t,F){var I=new Map;if(W=_.w7(W)){var P;y=(w==null?void 0:(P=w.onTap)==null?void 0:P.value)||y;V=jMv(W,y,V==null?void 0:V.onTap,t,F);y.addEventListener("click",V);I.set("click",V)}return function(){for(var C=_.N(I),d=C.next();!d.done;d=C.next()){var L=_.N(d.value);d=L.next().value;L=L.next().value;y.removeEventListener(d,L)}}};
_.w7=function(y){var W;return(y=(W=_.h(y,$yL))==null?void 0:W.onTap)&&_.tl(y)};
Y7a=function(y){var W;return(y=(W=_.h(y,$yL))==null?void 0:W.onVisible)&&_.tl(y)};
Bj4=function(y){var W;return(y=(W=_.h(y,$yL))==null?void 0:W.onHidden)&&_.tl(y)};
jMv=function(y,W,V,w,t){var F=function(P){_.hs().resolve(_.oA).resolveCommand(y,P)},I=function(P){w&&_.VS(_.We(P),W,w)||F(P.target?{form:{element:P.target,
sourceData:y,mutationContext:t}}:void 0)};
V&&(I=function(P){V(P,F)});
return I};
nMz=function(y){switch(y){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}};
HPG=function(y){var W=y.numAvatarsInCluster;switch(y.clusterSize){case "small":return W===2?22:18;case "40":return W===2?24:22;default:return W===2?24:20}};
XoG=function(y,W){return function(V){var w=Object.keys(W);_.H1(function(){if(y!=null&&y()){for(var t=_.N(w),F=t.next();!F.done;F=t.next())F=F.value,V.addEventListener(F,W[F]);_.XT(function(){for(var I=_.N(w),P=I.next();!P.done;P=I.next())P=P.value,V.removeEventListener(P,W[P])})}},"bXZGfe")}};
aWu=function(y){switch(HPG(y)){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""}};
GLd=function(y){switch(y){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""}};
rwR=function(y){switch(HPG(y)){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""}};
bPL=function(y){switch(y){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""}};
QM4=function(y){switch(y){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}};
ZPj=function(y){return y==="medium"||y==="48"||y==="large"||y==="extra-large"||y==="extra-extra-large"||y==="giant"};
yhv=function(y){return!!((y==null?0:y.includes(3))||(y==null?0:y.includes(5)))};
Vqb=function(y){return{size:WDR(y.data.avatarImageSize),onTap:y.onTap,decorations:y.decorations||[],badgeText:y.badgeText,accessibilityText:y.accessibilityText,avatarButtonCustomClassName:y.avatarButtonCustomClassName,clusterLayoutConfig:y.clusterLayoutConfig}};
WDR=function(y){switch(y){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"}};
wIt=function(y){switch(y){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}};
tqd=function(y){switch(y){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
FDG=function(y){var W=y.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",V,w=y.avatars&&y.avatars.length>0?(V=_.h(y.avatars[0],_.EZ))==null?void 0:V.avatarImageSize:"AVATAR_SIZE_UNKNOWN";V=wIt(w)||0;if(W){var t,F=(t=y.avatarClusterSize)!=null?t:"AVATAR_SIZE_M";W=wIt(F);var I,P,C=Math.min((P=(I=y.avatars)==null?void 0:I.length)!=null?P:0,4),d;return{avatars:((d=y.avatars)==null?void 0:d.slice(0,4))||[],avatarSizeInPx:V,avatarStackStyle:{width:W+"px",height:W+"px",position:"relative"},avatarStyle:function(z){var c=
HPG({clusterSize:WDR(F),numAvatarsInCluster:C,avatarIndex:z});var K=wIt(F);C===3&&z===2?(K=(K-c)/2,K=(_.yC("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*K):K=void 0;return{position:"absolute",top:C===2&&z===1||C===3&&z===2||C===4&&z>=2?"0":void 0,bottom:C===2&&z===0||C>2&&z<2?"0":void 0,left:C===2&&z===1||C>2&&(z===1||z===3)?"0":void 0,right:C<=3&&z===0||C===4&&(z===0||z===2)?"0":void 0,transform:K?"translateX("+K+"px)":void 0,width:c+"px",height:c+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(z){return{clusterSize:WDR(y.avatarClusterSize),numAvatarsInCluster:C,avatarIndex:z}},
avatarButtonCustomClassName:void 0}}var L;return{avatars:((L=y.avatars)==null?void 0:L.slice())||[],avatarSizeInPx:V,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:tqd(w),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
EDj=function(y,W,V){return function(){X2(y,{form:{element:W},commandController:V})}};
Nvt=function(y){switch(y){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ILa=function(y){switch(y){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
gDn=function(y){var W=y.data;y=y.hidden===void 0?!1:y.hidden;var V={};y={class:_.sU("yt-page-indicator-view-model",(V["yt-page-indicator-view-model__indicator--hidden"]=!W.indicatorCount,V)),hidden:y};if(W.indicatorCount){V=[];for(var w=0;w<W.indicatorCount;w++){var t={};t=_.sU("yt-page-indicator-view-model__indicator",(t["yt-page-indicator-view-model__indicator--selected"]=W.selectedIndex===w,t));V.push(_.O("div",{class:t}))}W=_.O(_.o8,null,V)}else W=_.O(_.o8,null);return _.O("yt-page-indicator-view-model",
y,W)};
Ce4=function(y){y&&(Peb(y)?delete y.inlinePlayerData:"inlinePlaybackEndpoint"in y&&delete y.inlinePlaybackEndpoint)};
OXP=function(y){if("accessibilityText"in y)return y.accessibilityText||"";if("title"in y){var W,V,w;return((W=y.title)==null?void 0:(V=W.accessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)||""}if("accessibility"in y){var t,F;return((t=y.accessibility)==null?void 0:(F=t.accessibilityData)==null?void 0:F.label)||""}return""};
Peb=function(y){return"inlinePlayerData"in y};
NU=function(y){return new vDt(y)};
dqd=function(y){var W=y.data;y=_.YS(function(){var t=_.h(W.onTap,_.wL);t&&_.hs().resolve(_.oA).resolveCommand(t);return!1});
var V={sources:[{url:W.thumbnailUrl,width:120,height:90}]},w=W.rating&&W.ratingA11yLabel&&W.reviewsCount&&W.reviewsCountA11yLabel;return _.O("place-data-view-model",null,W.placeName&&W.placeCategory?_.O("div",{class:"yt-spec-place-data-view-model-shape","on:click":y},_.O(_.ca,{data:V,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.O(_.It,{className:"yt-spec-place-data-view-model-shape__place-link",command:W.onTap},_.O("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:W.placeName},W.placeName)),_.O("div",{class:"yt-spec-place-data-view-model-shape__metadata"},w?_.O("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.O("span",{class:"score",title:W.ratingA11yLabel},W.rating),_.O("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.O(_.jl,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.O("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:W.reviewsCountA11yLabel},W.reviewsCount)):_.O("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.O("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.O("span",{class:"category",title:W.placeCategory},W.placeCategory)))):null)};
LDy=function(y){return function(W){y&&(y.thumbnailElRef=W.thumbnailElRef,y.thumbnail=W.thumbnail,y.thumbnailOverlays=W.thumbnailOverlays,y.thumbnailSize=W.thumbnailSize)}};
zst=function(y){var W;return(W=y.sharedUi)==null?void 0:W.animatedThumbnailEnabled};
chv=function(y){var W;return(W=y.sharedUi)==null?void 0:W.inlinePreviewEnabled};
_.esj=function(y){var W;return(W=y.sharedUi)==null?void 0:W.currentPageSubType};
hsz=function(y){switch(y){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
KDt=function(y){var W=_.N(_.M1(!1,void 0,"RIOonf")),V=W.next().value,w=W.next().value;_.a8(function(){var t=y==null?void 0:y();if(t){var F=_.hs().resolve(_.eX(oDG));if(F){var I={triggeringElement:t,onDwellTriggeredFn:function(){w(!0)},
onDwellEndFn:function(){w(!1)}};
F.registerElement(I);_.XT(function(){_.g7(F,I)})}}});
return V};
pIP=function(y,W,V){V?V(W):_.Id(W,y.target?{form:{element:y.target}}:void 0)};
_.Pe=function(y,W,V){return function(w){_.H1(function(){var t=new Map,F,I=(F=y())==null?void 0:F.onTap;I&&(F=function(P){a:{var C=P.composedPath();C=_.N(C);for(var d=C.next();!d.done;d=C.next()){d=d.value;if(d===w)break;if(d.className.indexOf("HostIsClickableAdComponent")>=0||d.tagName==="A".toString()||d.tagName==="BUTTON".toString()){C=!0;break a}}C=!1}C||pIP(P,I,W)},(V==null?0:V())||_.e("enable_web_home_top_landscape_image_layout_level_click")?(w.addEventListener("tap",F),t.set("tap",F)):(w.addEventListener("click",
F),t.set("click",F)));
_.XT(function(){for(var P=_.N(t),C=P.next();!C.done;C=P.next()){var d=_.N(C.value);C=d.next().value;d=d.next().value;w.removeEventListener(C,d)}})},"NMyqj")}};
iXL=function(y,W){var V,w=(V=y.interaction)==null?void 0:V.onTap;if(y=_.EU({elementsCommand:w,forceNewState:!0,skipOnClick:!0}))return y.onclick=function(t){OUv(t)&&(t.preventDefault(),w&&pIP(t,w,W))},N4(y)?y:void 0};
fLb=function(y){switch(y){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Tvn=function(y){switch(y){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"}};
mqP=function(y){switch(y){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"}};
_.Mqb=function(y){return _.e("rich_grid_enable_dynamic_offset")&&y?Math.max(Math.round((y-_.pB("rich_grid_dynamic_offset_anchor_width",1300))/100*_.pB("rich_grid_dynamic_offset_offset_per_100",10)),_.pB("rich_grid_dynamic_offset_lower_bound",-60)):0};
qMb=function(y,W){switch(W){case 4:return 16;case 1:return y<528?16:y<1024?32:48;case 2:return(y>=528?16:8)/2;case 3:return(y<528?16:y<1024?32:48)+(y>=528?16:8)/2;default:return 0}};
Uqv=function(y){var W=y.originalContainerWidth;var V=y.sizing;var w=y.standardUnit;if(y.isCompactList&&W<528)return 1;switch(V){case "STANDARD":return w;case "COMPACT":return w+1;case "EXTRA_COMPACT":return _.e("web_responsive_extra_compact_2x")?w*2:_.e("web_responsive_current")?w===1?2:w%2===0?w/2*3:w+2:w<4?w*2:Math.ceil(w*3/2);case "MINI":return w>1?w*2:3;default:return w}};
SML=function(y){var W=y.containerWidth;var V=y.peek;var w=y.gutter;var t=y.numItems;y=y.ignoreMaxWidthLimit;W=V?Math.max((W-V-w*t)/t,0):Math.max((W-w*(t-1))/t,0);return y?W:Math.min(W,uij)};
_.Cv=function(y){var W=y.containerWidth;var V=y.hasPeek;var w=y.sizing;var t=y.marginSettings;var F=y.isCompactList;var I=y.enableFullBleedForSingleCol;var P=y.standardUnitMinWidth;w=w||"STANDARD";V=!!V;y=W>=528?16:8;var C=V?W>=528?48:24:0;t=qMb(W,t);var d=Math.max(W-t*2,0);P=_.e("kevlar_disable_min_width_override")?void 0:P;P=Math.min(Math.max(Math.floor((d-C+y)/((P!=null?P:DqR)+_.Mqb(W)+y)),1),6);var L=(I=!!I&&P===1)||P===1&&w!=="STANDARD";V=V||L?d:Math.min(d,(uij+y)*P-y);w=Uqv({originalContainerWidth:W,
sizing:w,standardUnit:P,isCompactList:F});return{itemWidth:SML({containerWidth:V,peek:C,gutter:y,numItems:w,ignoreMaxWidthLimit:L}),gutter:y,maxContainerWidth:V,numItems:w,margin:I?0:t,contentMargin:qMb(W,1),typographyBump:SML({containerWidth:V,peek:C,gutter:y,numItems:P,ignoreMaxWidthLimit:L})>400&&!(F&&W<528),standardUnit:P}};
lLv=function(y){switch(y){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.xqv=function(y){if(y){var W;if((W=y.responsiveContainerConfiguration)==null?0:W.responsiveSize)return lLv(y.responsiveContainerConfiguration.responsiveSize);if(y.layoutSizing)switch(y.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"}}};
kVv=function(y){if(y.fullbleed)return 1;switch(y.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Bvd=function(y,W,V,w,t,F,I,P){a:if(y===4&&w==="LOCKUP_CONTENT_TYPE_SOURCE")var C=1;else switch(y){case 3:C=1;break a;default:C=0}a:switch(y){case 4:F=!!(F&&F<100);break a;default:F=!1}a:switch(y){case 3:case 4:var d=w==="LOCKUP_CONTENT_TYPE_CHANNEL"||w==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:d=!1}a:switch(y){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}return{isOverlay:L,isCard:sHv(w,I),sizing:W!=null?W:"STANDARD",typographyBump:V!=null?V:!1,isTiny:F,isCentered:d,isCollection:Ahj(w),
arrangement:C,addMarginForFullbleed:y===1&&w!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:y===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:YMn(w,t,P),disableRounding:y===5||sHv(w,I)||y===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Ahj(w)?2:0,useLegacyTypography:!(P==null||!P.useLegacyTypography),useRichGridLegacyTypography:!(P==null||!P.useRichGridLegacyTypography)&&!_.e("web_enable_typography_bump"),compactMetadata:C===0&&w==="LOCKUP_CONTENT_TYPE_VIDEO"}};
Ahj=function(y){switch(y){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
sHv=function(y,W){if(W&&y==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(y){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
YMn=function(y,W,V){if(W&&(V==null||!V.alwaysRespectPodcastShowAspectRatio||y!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(y){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}};
Jhu=function(y){switch(y){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"}};
Rsn=function(y){switch(y){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
jHv=function(y){switch(y){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}};
_.OZ=function(y){if(y){var W;return((W=_.hs().resolve(_.eX(_.va)))==null?0:W())?y.darkThemeImage:y.image}};
HXP=function(y,W,V,w,t,F){if(t&&F&&W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:t,height:F};if(!V)return{};t=V.size;V=V.allowFullWidth;if(W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&V)return{fullWidth:!0};if(t===void 0)return{};switch(y){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:t,height:t};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:t,height:1/$q4*t};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:t*
nDj,height:t};default:return(w==null?0:w.height)&&(w==null?0:w.width)?w.width/w.height>1?{maxWidth:t*nDj}:{maxWidth:t}:{maxWidth:t}}};
XIy=function(y){var W;return y&&((W=_.OZ(y.themedImage))!=null?W:y.image)};
aLL=function(y){var W;return y==null?void 0:(W=y.sources)==null?void 0:W[0]};
GVa=function(y){switch(y){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
rhb=function(y){switch(y.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"}}};
bXd=function(y){var W=_.esj(_.vC().getState())||"";return y?y+W:""};
QHv=function(y){switch(y){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
yTP=function(y){var W=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],V=_.N(_.M1(void 0,void 0,"JrqNsb")),w=V.next().value,t=V.next().value,F=_.N(_.M1(void 0,void 0,"rWytse"));V=F.next().value;var I=F.next().value;F=_.N(_.M1(void 0,void 0,"DHRqxe"));var P=F.next().value,C=F.next().value;return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:V,pointerLeaveEvent:P},touchFeedbackOnPointerUp:_.YS(function(d){ZXv(_.We(d),W)||(t(d),I(void 0),C(void 0))}),
touchFeedbackOnPointerDown:_.YS(function(d){y==null||y(d);ZXv(_.We(d),W)||(I(d),t(void 0),C(void 0))}),
touchFeedbackOnPointerLeave:_.YS(function(d){ZXv(_.We(d),W)||(C(d),I(void 0),t(void 0))})}};
ZXv=function(y,W){W=W===void 0?[]:W;W=[].concat(_.GC(W),["BUTTON".toString()]);y=_.N(y);for(var V=y.next();!V.done;V=y.next()){V=V.value;for(var w=_.N(W),t=w.next();!t.done;t=w.next())if(V.tagName===t.value)return!0}return!1};
Wvu=function(y){switch(y){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"}};
Vvd=function(y){return y.scrollHeight-y.offsetHeight>1};
wrL=function(y,W){var V;return OU(y,((V=y.content)==null?void 0:V.length)||0,!W)};
tvv=function(y,W){W=wrL(y,W);var V,w;return(((V=y.content)==null?void 0:V.length)||0)>(((w=W.content)==null?void 0:w.length)||0)};
E7R=function(y,W,V,w,t,F){if(!W||ve){var I;return OU(y,((I=y.content)==null?void 0:I.length)||0,!0)}W=w.value;if(!V.value||!W||!y.content)return y;V=0;w=y.content.length;I=0;Fvn||(Fvn=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var P=Fvn;for(t=t*F*P;V<=w;)F=Math.floor(V+(w-V)/2),P=OU(y,F)||y,W.firstChild&&(W.firstChild.textContent=P.content),W.scrollHeight>t?w=F-1:(I=F,V=F+1);return OU(y,I)};
NbG=function(y,W){var V,w;return(((V=y.content)==null?void 0:V.length)||0)>(((w=W.content)==null?void 0:w.length)||0)};
IKP=function(y){var W=y.isTruncated;var V=y.isAbsoluteButton;var w=y.lineHeight;var t=y.contentRef.value,F=y.placeholderTruncationTextRef.value,I=y.truncationTextRef.value;y=y.appDirection==="rtl";if(t&&F){var P=F.offsetLeft;y&&(P=t.offsetWidth-F.offsetWidth-F.offsetLeft);if(W){W=F.offsetWidth;F=t.offsetWidth;var C=V?F-W-70:P-70;w="linear-gradient(\n      to top, transparent 0%,\n      transparent "+w+"rem,\n      #000 "+w+"rem,\n      #000 100%), linear-gradient(\n      to "+((y?"left":"right")+
",\n      #000 0px,\n      #000 "+C+"px,\n      transparent "+(V?F-W:C+70)+"px)");t.style.setProperty("-webkit-mask-image",w);t.style.setProperty("mask-image",w)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");V?y?(I.style.setProperty("left","0"),I.style.setProperty("right","unset")):(I.style.setProperty("left",""),I.style.setProperty("right","0")):y?(I.style.setProperty("left","unset"),I.style.setProperty("right",P+"px")):(I.style.setProperty("left",P+"px"),
I.style.setProperty("right","unset"))}};
g7n=function(y,W,V,w,t){var F=_.I0("truncated-text-content"),I=_.I0("truncated-text-content"),P=_.I0("button"),C=_.I0("button"),d=_.I0("button"),L=_.hs().resolve(_.L5),z=_.N(An(wrL(y,t))),c=z.next().value,K=z.next().value;z=_.N(An(_.e("enable_truncated_text_max_lines")?NbG(y,c):tvv(y,t)));var f=z.next().value,U=z.next().value,l=rV(null);_.Xd(function(){function x(){if(F.value&&P.value&&d.value)if(_.e("enable_truncated_text_max_lines")){var H=E7R(y,t,F,I,W,V);K(H);w||requestAnimationFrame(function(){if(F.value&&
P.value&&d.value){var a=Vvd(F.value)||NbG(y,H);U(a);IKP({isTruncated:a,isAbsoluteButton:Vvd(F.value),lineHeight:V,contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L})}})}else K(wrL(y,t)),requestAnimationFrame(function(){if(F.value&&P.value&&d.value)if(Vvd(F.value))U(!0),w||IKP({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:V,contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L});else{var a=tvv(y,t);U(a);w||IKP({isTruncated:a,isAbsoluteButton:!1,lineHeight:V,contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L})}})}
var B,r;(B=l.value)==null||(r=B.stop)==null||r.call(B);B=new _.d7(x,17);x();l.value=B},[y.content,
W,V,L,w,t]);_.a8(function(){var x=function(){Fvn=void 0;var r,H;(r=l.value)==null||(H=r.fire)==null||H.call(r)};
if(window.ResizeObserver){var B=new ResizeObserver(x);B.observe(F.value);return function(){var r,H;(r=l.value)==null||(H=r.stop)==null||H.call(r);B.disconnect()}}window.addEventListener("resize",x);
return function(){var r,H;(r=l.value)==null||(H=r.stop)==null||H.call(r);window.removeEventListener("resize",x)}});
return{isTruncated:f,displayText:c,contentRef:F,hiddenRef:I,placeholderTruncationTextRef:P,hiddenTruncationTextRef:C,truncationTextRef:d}};
PRG=function(y){var W=y.text;var V=y.alwaysShowTruncationText;var w=y.truncationText;var t=y.onTextClick;var F=y.maxLines===void 0?2:y.maxLines;var I=y.disableTextMask===void 0?!1:y.disableTextMask;var P=y.textStyle===void 0?"default":y.textStyle;var C=y.accessibilityLabel===void 0?"":y.accessibilityLabel;var d=y.textSize===void 0?"small":y.textSize;var L=y.alwaysTruncateAtMaxLines===void 0?!1:y.alwaysTruncateAtMaxLines;var z=y.expandOnClick===void 0?!1:y.expandOnClick;y=_.N(An(!1));var c=y.next().value,
K=y.next().value;y=_.YS(function(){z&&K(!c);t==null||t()});
a:switch(d){case "medium":var f=2;break a;case "large":f=2.2;break a;default:f=1.8}var U=g7n(W,c?Infinity:F,f,I,L),l=U.isTruncated;W=U.displayText;L=U.contentRef;var x=U.hiddenRef,B=U.placeholderTruncationTextRef,r=U.hiddenTruncationTextRef;U=U.truncationTextRef;var H={};V=_.sU((H["truncated-text-wiz__absolute-button"]=!I,H["truncated-text-wiz__bottom-button"]=I,H["truncated-text-wiz--hidden"]=!(!c&&(V||l)),H));I={};P=_.sU((I["truncated-text-wiz"]=!0,I["truncated-text-wiz--overlay"]=P==="overlay",
I["truncated-text-wiz--medium-text"]=d==="medium",I["truncated-text-wiz--large-text"]=d==="large",I["truncated-text-wiz--primary-text"]=P==="primary-text",I));d={};d=_.sU((d["truncated-text-wiz__truncated-text-content"]=!0,d["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,d));return _.O("truncated-text",{class:P,"on:click":y,style:"line-height: "+f+"rem;"},_.O("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:L,style:c?"":"max-height: "+F*f+"rem;"},
_.O(_.Lv,{text:W}),_.O("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:B,style:"line-height: "+f+"rem;"},_.O(_.Lv,{text:w}))),_.O("truncated-text-content",{class:d,el:x,style:c?"":"max-height: "+F*f+"rem;","aria-hidden":"true"},_.O(_.Lv,{text:W}),_.O("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:r,style:"line-height: "+f+"rem;"},_.O(_.Lv,{text:w}))),_.O("button",{"aria-label":C,class:V,el:U,style:"line-height: "+f+"rem;"},
_.O(_.Lv,{text:w})))};
CRv=function(y){return y.scrollHeight-y.offsetHeight>1};
OQR=function(y,W){var V;return OU(y,((V=y.content)==null?void 0:V.length)||0,!W)};
v74=function(y,W){W=OQR(y,W);var V,w;return(((V=y.content)==null?void 0:V.length)||0)>(((w=W.content)==null?void 0:w.length)||0)};
Lvb=function(y,W,V,w,t,F){if(!W||ve){var I;return OU(y,((I=y.content)==null?void 0:I.length)||0,!0)}W=w.value;if(!V.value||!W||!y.content)return y;V=0;w=y.content.length;I=0;d0G||(d0G=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var P=d0G;for(t=t*F*P;V<=w;)F=Math.floor(V+(w-V)/2),P=OU(y,F)||y,W.firstChild&&(W.firstChild.textContent=P.content),W.scrollHeight>t?w=F-1:(I=F,V=F+1);return OU(y,I)};
zP4=function(y,W){var V,w;return(((V=y.content)==null?void 0:V.length)||0)>(((w=W.content)==null?void 0:w.length)||0)};
cTP=function(y){var W=y.isTruncated;var V=y.isAbsoluteButton;var w=y.lineHeight;var t=y.contentRef.value,F=y.placeholderTruncationTextRef.value,I=y.truncationTextRef.value;y=y.appDirection==="rtl";if(t&&F){var P=F.offsetLeft;y&&(P=t.offsetWidth-F.offsetWidth-F.offsetLeft);if(W){W=F.offsetWidth;F=t.offsetWidth;var C=V?F-W-70:P-70;w="linear-gradient(\n      to top, transparent 0%,\n      transparent "+w+"rem,\n      #000 "+w+"rem,\n      #000 100%), linear-gradient(\n      to "+((y?"left":"right")+
",\n      #000 0px,\n      #000 "+C+"px,\n      transparent "+(V?F-W:C+70)+"px)");t.style.setProperty("-webkit-mask-image",w);t.style.setProperty("mask-image",w)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");V?y?(I.style.setProperty("left","0"),I.style.setProperty("right","unset")):(I.style.setProperty("left",""),I.style.setProperty("right","0")):y?(I.style.setProperty("left","unset"),I.style.setProperty("right",P+"px")):(I.style.setProperty("left",P+"px"),
I.style.setProperty("right","unset"))}};
ePa=function(y,W,V,w,t){var F=_.I0("truncated-text-content"),I=_.I0("truncated-text-content"),P=_.I0("button"),C=_.I0("button"),d=_.I0("button"),L=_.hs().resolve(_.L5),z=_.N(_.Jl(function(){return OQR(y(),t())})),c=z.next().value,K=z.next().value;
z=_.N(_.Jl(function(){return _.e("enable_truncated_text_max_lines")?zP4(y(),c()):v74(y(),t())}));
var f=z.next().value,U=z.next().value,l=null;_.H1(function(){function x(){if(F.value&&P.value&&d.value)if(_.e("enable_truncated_text_max_lines")){var H=Lvb(y(),t(),F,I,W(),V());K(H);w()||requestAnimationFrame(function(){if(F.value&&P.value&&d.value){var a=CRv(F.value)||zP4(y(),H);U(a);cTP({isTruncated:a,isAbsoluteButton:CRv(F.value),lineHeight:V(),contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L})}})}else K(OQR(y(),t())),requestAnimationFrame(function(){if(F.value&&P.value&&
d.value){var a=y();
W();var b=V(),Fv=w(),Py=t();CRv(F.value)?(U(!0),Fv||cTP({isTruncated:!0,isAbsoluteButton:!0,lineHeight:b,contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L})):(a=v74(a,Py),U(a),Fv||cTP({isTruncated:a,isAbsoluteButton:!1,lineHeight:b,contentRef:F,placeholderTruncationTextRef:P,truncationTextRef:d,appDirection:L}))}})}
var B,r;(B=l)==null||(r=B.stop)==null||r.call(B);B=new _.d7(x,17);x();l=B},"EujZId");
_.a8(function(){K(OQR(y(),t()));U(_.e("enable_truncated_text_max_lines")?zP4(y(),c()):v74(y(),t()));var x=function(){d0G=void 0;var r,H;(r=l)==null||(H=r.fire)==null||H.call(r)};
if(window.ResizeObserver){var B=new ResizeObserver(x);B.observe(F.value);_.XT(function(){var r,H;(r=l)==null||(H=r.stop)==null||H.call(r);B.disconnect()})}else window.addEventListener("resize",x),_.XT(function(){var r,H;
(r=l)==null||(H=r.stop)==null||H.call(r);window.removeEventListener("resize",x)})});
return{isTruncated:f,displayText:c,contentRef:F,hiddenRef:I,placeholderTruncationTextRef:P,hiddenTruncationTextRef:C,truncationTextRef:d}};
_.hPj=function(y,W,V,w,t,F){var I=function(d){d.preventDefault()},P=function(){var d=y.value;
if(d)return(d._data=W)?(d.addEventListener("touchstart",zen,{passive:!0}),d.addEventListener("click",eeR),W.clickTrackingParams&&(d.params={itct:W.clickTrackingParams}),heR(d,W),tX(d,o4L(W)||"")):d.addEventListener("click",I),function(){W?(d.removeEventListener("touchstart",zen,{passive:!0}),d.removeEventListener("click",eeR)):d.removeEventListener("click",I)}},C=function(){var d=y.value;
if(d){var L=_.EU({innertubeCommand:W,elementsCommand:V,forceNewState:w,stopPropagation:F});if(L)return d._data=L._data,L["aria-haspopup$"]&&d.setAttribute("aria-haspopup",L["aria-haspopup$"].toString()),L["force-new-state$"]&&d.setAttribute("force-new-state",L["force-new-state$"].toString()),L.href$&&tX(d,L.href$),L.rel$&&(d.rel=L.rel$),L.role$&&d.setAttribute("role",L.role$),L.target$&&(d.target=L.target$),d.params=L.params,L.onclick&&d.addEventListener("click",L.onclick),L.onpointerdown&&d.addEventListener("onpointerdown",
L.onpointerdown),function(){L.onclick&&d.removeEventListener("click",L.onclick);L.onpointerdown&&d.removeEventListener("onpointerdown",L.onpointerdown)}}};
_.Xd(t?C:P,[W,V])};
o7v=function(y){var W=y.children;var V=y.className;var w=y.dir;var t=y.style;var F=y.role;var I=y.ariaSelected;var P=y.ariaLabel;var C=y.ariaHidden;var d=y.ariaLabelledby;var L=y.ariaDescribedby;var z=y.command;var c=y.elementsCommand;var K=y.forceNewState;var f=y.isPlaceholder;var U=y.tabIdentifier;var l=y.target;var x=y.tabIndex;var B=y.useATagConfig;var r=y.stopPropagation;y=_.I0("a");_.hPj(y,z,c,K,B,r);return _.O("a",{el:y,"on:click":_.YS(function(){return r===!1}),
class:V,style:t,dir:w,role:F?F:z?void 0:"group","aria-hidden":C?!0:void 0,"aria-label":P,"aria-labelledby":d,"aria-describedby":L,"aria-selected":I,tabindex:x!==void 0?x:void 0,target:l,"tab-identifier":U,"force-new-state":K?!0:void 0,"is-placeholder":f?!0:void 0},W)};
Kvn=function(y){return{content:y!=null?y:""}};
pr4=function(y){return _.tl(y.onTap)||_.w7(y.rendererContext)};
Tba=function(y){var W=y.data;y={class:y.className};a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var V="yt-video-attribute-view-model--vertical";break a;default:V="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var w="yt-video-attribute-view-model--image-small";break a;default:w="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var t="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":t="yt-video-attribute-view-model--image-avatar";break a;default:t=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var F="yt-video-attribute-view-model--metadata-header";break a;default:F=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var I="yt-video-attribute-view-model--container-card";break a;default:I=""}V=["yt-video-attribute-view-model",V,w,t,F,I,pr4(W)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var P="";else w=W.lightColorPalette,t=W.darkColorPalette,F=((P=_.hs().resolve(_.eX(_.va)))==null?0:P())&&t?t:w,P=(P=F==null?void 0:F.section2Color)?_.wg(P):"";return _.O("yt-video-attribute-view-model",y,_.O("div",{class:V,style:_.Rd({"background-color":P})},pr4(W)||!_.e("web_video_attribute_view_model_a11y_fix")?_.O(o7v,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:pr4(W),
role:"group",ariaLabel:W.title,forceNewState:!0},W.heroText||W.image?_.O(iQP,{data:W}):null,_.O(fKa,{data:W,sizeSmall:W.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.O("div",{class:"yt-video-attribute-view-model__content-container"},W.heroText||W.image?_.O(iQP,{data:W}):null,_.O(fKa,{data:W,sizeSmall:W.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
m0b=function(y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:y.overflowMenuA11yLabel,onTap:function(W){W.preventDefault();W.stopPropagation();if(y.overflowMenuOnTap){var V=_.EU({elementsCommand:y.overflowMenuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(W)}}}};
iQP=function(y){y=y.data;var W,V=((W=_.hs().resolve(_.eX(_.va)))==null?0:W())&&y.darkThemeImage?y.darkThemeImage:y.image;W=m0b(y);return _.O("div",{class:"yt-video-attribute-view-model__hero-section"},V?_.O(_.ca,{data:V,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):y.heroText?_.O("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.O("span",{class:"yt-video-attribute-view-model__hero-text"},y.heroText)):null,y.overflowMenuOnTap?
_.O("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.O(zr,{data:W,iconName:"MORE_VERT"})):null)};
fKa=function(y){var W=y.data;y=y.sizeSmall;var V=W.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",w=pr4(W);w=_.EU({innertubeCommand:w});w=N4(w);var t={};y={class:_.sU("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=y,t)),role:w?"link":"group"};w=_.O("h1",{class:"yt-video-attribute-view-model__title"},W.title);V=W.subtitle?_.O("h4",{class:"yt-video-attribute-view-model__subtitle"},V?_.O(MvL,{text:Kvn(W.subtitle),truncationText:Kvn(W.subtitleTruncationText),
maxLines:2}):_.O("span",null,W.subtitle)):null;if(W.secondarySubtitle){t=W.secondarySubtitle;if(t!=null&&t.attachmentRuns){for(var F=[],I=_.N(t.attachmentRuns),P=I.next();!P.done;P=I.next())P=P.value,P.element&&F.push(Object.assign({},P,{element:Object.assign({},P.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));t=Object.assign({},t,{attachmentRuns:F})}t=_.O("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.O(_.Lv,{text:t}))}else t=null;return _.O("div",y,w,V,t,W.buttonViewModel?qCu(W.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
U0y=function(y){return{content:y!=null?y:""}};
u3n=function(y){return _.tl(y.onTap)||_.w7(y.rendererContext)};
SC4=function(y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:y.overflowMenuA11yLabel,onTap:function(W){W.preventDefault();W.stopPropagation();if(y.overflowMenuOnTap){var V=_.EU({elementsCommand:y.overflowMenuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(W)}}}};
_.ce=function(y,W,V,w,t){w=w===void 0?{}:w;if(!t||Math.random()<5E-4){W=W||null;V=V||null;y=y instanceof Error?y:new _.Js(y);if(y.args)for(var F=_.N(y.args),I=F.next();!I.done;I=F.next())I=I.value,I instanceof Object&&(w=Object.assign({},I,w));w.category="H5 Ads Control Flow";W&&(w.slot=W?"slot:  "+W.slotType:"");V&&(w.layout=V?"layout:  "+V.layoutType:"",w.layoutId=V.layoutId);t&&(w.known_error_aggressively_sampled=!0);y.args=[w];_.rQ(y)}};
_.D0u=function(y,W){_.ow(y,"yt-open-popup-action",[_.zw(W),y])};
_.ey=function(y,W){_.D0u(y,_.CO(W))};
x0R=function(y){if(!y)return"";if(lKu[y])return lKu[y];hO||(hO=_.xu("A"));hO.href!==y&&tX(hO,y);var W=hO.pathname;lKu[y]=W.startsWith("/")?W:"/"+W;return lKu[y]};
k9v=function(){var y=x0R(window.location.href);if(y==="/")return"home";if(y.startsWith("/results"))return"search";if(y.startsWith("/watch"))return"watch";if(y.startsWith("/shorts"))return"shorts";if(y.startsWith("/hashtag"))return"hashtag";if(y.startsWith("/create_channel"))return"create_channel";if(y.startsWith("/@")||y.startsWith("/user/")||y.startsWith("/channel/"))return"channel";if(y.startsWith("/experiments"))return"experiments";if(y.startsWith("/sponsor_channel"))return"sponsorship";if(y.startsWith("/select_site"))return"settings";
if(y.startsWith("/locate"))return"locate";if(y.startsWith("/redeem"))return"redeem";if(y.startsWith("/musicpremium")||y.startsWith("/premium")||y.startsWith("/red"))return"premium";if(y.startsWith("/paid_memberships"))return"paid_memberships";if(y.startsWith("/oops"))return"oops";if(y.startsWith("/clip"))return"clip";var W;return(ot==null?void 0:(W=ot.response)==null?void 0:W.page)==="404"?"404":y.startsWith("/feed/history")?"history":y.startsWith("/feed/library")?"library":y.startsWith("/feed/subscriptions")?
"subscriptions":y.startsWith("/feed/trending")?"trending":y.startsWith("/feed/news_destination")?"news":y.startsWith("/playlist")?"playlist":y.startsWith("/minor_moment")?"minor_moment":y.startsWith("/playable/")||y.match("^/playables/(?!saved).")?"mini_app":y.startsWith("/playables")?"playables":y.startsWith("/create/live/join")?"open_in_app":y.startsWith("/feed/explore")?"explore":"browse"};
_.Bbv=function(){var y=ot==null?void 0:ot.response,W=y==null?void 0:y.endpoint;if(!W)return(y==null?void 0:y.page)==="watch"?"watch":k9v();var V;y=(V=_.h(W==null?void 0:W.commandMetadata,_.dw))==null?void 0:V.webPageType;V=!1;if(y&&!srP.includes(y))switch(y){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 w;return((w=_.h(W==null?void 0:W.commandMetadata,_.dw))==null?0:w.url)&&x0R(_.h(W.commandMetadata,_.dw).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var t;return(W=(t=_.h(W,_.sT))==null?void 0:t.browseId)?ATy[W]||"browse":"browse";default:V=!0}if(_.h(W,_.Kv)||_.h(W,YCz))return"sponsorship";t=x0R(window.location.href);if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/create_channel"))return"create_channel";
if(_.h(W,_.wS)&&t.startsWith("/shorts"))return"shorts";if(_.h(W,_.wS)&&t.startsWith("/watch"))return"watch";V&&(W=new _.Js("Unsupported mWeb page type",{pathname:t,webPageType:y}),_.ap(W));return"browse"};
pv=function(y,W,V,w){return y&&W?y!==V||W!==w?(_.ce(Error("Qh"),void 0,void 0,{"stored-slot":y,"stored-layout":W,"latest-slot":V,"latest-layout":w}),!1):!0:!1};
JTn=function(y,W,V){return y({targetId:W},function(w){return V.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},w,{header:V.continuationItems?V.continuationItems[0]:void 0}):Object.assign({},w,{contents:V.continuationItems?V.continuationItems:[]})})};
RPv=function(y,W,V,w){if(W=W.trackingParams){var t,F=(t=V.getScreenLayer)==null?void 0:t.call(V);V=_.Xn(F);t=_.Hf(F);if(V&&t){var I=_.nD(W);_.e("combine_ve_grafts")?y.graftServerVe(W,t,F):_.Fr(V,t,I);w==null||w(I)}}};
$0G=function(y){var W;return((W=jrP.get(y))==null?void 0:W.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
XrR=function(y,W){var V={type:W.slotType,controlFlowManagerLayer:n7L.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(V.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=W.slotPhysicalPosition);if(y){V.debugData={slotId:W.slotId};if(y=W.slotEntryTrigger)V.debugData.slotEntryTriggerData=HQz(y);y=W.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];y=_.N(y);for(var w=y.next();!w.done;w=y.next())V.debugData.fulfillmentTriggerData.push(HQz(w.value));
W=W.slotExpirationTriggers;V.debugData.expirationTriggerData=[];W=_.N(W);for(y=W.next();!y.done;y=W.next())V.debugData.expirationTriggerData.push(HQz(y.value))}return V};
HQz=function(y,W){var V={type:y.triggerType};W!=null&&(V.category=W);y.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=y.triggeringSlotId);y.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=y.triggeringLayoutId);return V};
aK4=function(y,W,V,w){W={opportunityType:W};y&&(w||V)&&(w=_.rU(w||[],function(t){return XrR(y,t)}),W.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},w.length>0?{slots:w}:{}));
return W};
G9z=function(y){return i0(y.opportunityAdapterMap).concat(i0(y.triggerAdapterMap)).concat(i0(y.fulfillmentAdapterFactoryMap)).concat(i0(y.slotAdapterFactoryMap)).concat(i0(y.layoutRenderingAdapterFactoryMap))};
i0=function(y){var W=[];y=_.N(y.values());for(var V=y.next();!V.done;V=y.next())V=V.value,V.isAdsControlFlowEventListener&&W.push(V);return W};
Tr=function(y){var W=y.slotId,V=y.slotType,w=y.slotPhysicalPosition;return W===void 0?new fv("Cannot construct a slot due to the missing id.",{adSlotMetadata:y}):V===void 0?new fv("Cannot construct a slot due to the missing type.",{adSlotMetadata:y}):w===void 0?new fv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:y}):{slotId:W,slotType:V,slotPhysicalPosition:w,managerLayer:"external",adSlotLoggingData:y.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new rTj}};
bQa=function(y){var W=y.layoutId,V=y.layoutType;return W===void 0?new mH("Cannot construct a layout due to the missing id.",{adLayoutMetadata:y}):V===void 0?new mH("Cannot construct a layout due to the missing type.",{adLayoutMetadata:y}):{layoutId:W,layoutType:V,managerLayer:"external",adLayoutLoggingData:y.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new rTj,interactionLoggingAdsClientData:{}}};
Qrv=function(y){if(y.querySelector("img")){var W=y.querySelector("img");W.addEventListener("error",function(){wxy(W.src).then(function(V){(V=_.W7(V).toString())?W.src=V:W.removeAttribute("src")}).catch(function(){W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
qU=function(y,W){if(W&&(ZQd(W.viewableCommand)||ZQd(W.endOfSessionCommand))){var V=yaj(W==null?void 0:W.viewableCommand);W=yaj(W==null?void 0:W.endOfSessionCommand);if(!MU){var w=_.pB("custom_active_view_tos_timeout_ms");MU=w>0&&w!==36E5?new W5t(VzL(),w):new W5t(VzL())}wAa(MU,y);tzd(MU,y,V,W)}};
UZ=function(y){MU&&wAa(MU,y)};
VzL=function(){var y=_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(y==null?void 0:y.length)===2?y[1]:null};
ZQd=function(y){y=_.tl(y);return!(y==null||!y.loggingUrls)&&y.loggingUrls.length>0};
yaj=function(y){if(!y)return[];var W=[],V,w;((w=(V=_.tl(y))==null?void 0:V.loggingUrls)!=null?w:[]).forEach(function(t){t.baseUrl&&W.push(t.baseUrl)});
return W};
F5v=function(y){if(_.e("stop_av_measurement_on_detach"))return function(){UZ(y)}};
Emn=function(y){return function(){_.e("stop_av_measurement_on_detach")&&UZ(y)}};
N8y=function(y){if(_.e("stop_av_measurement_on_detach"))return function(){UZ(y)}};
I$z=function(y){return y.shorts.isDesktopSmallWidth};
_.gmP=function(y){return y.shorts.isShortsActive};
_.Psb=function(y){return y.shorts.isWatchWhileMode};
_.u0=function(y){return y.shorts.isFullscreen};
_.Sy=function(y){return y.shorts.isShortsPipActive};
OTG=function(y){var W,V;if(y=(W=_.h(y.reelsAdCardButtoned,CsR))==null?void 0:(V=W.animatedRenderingConfig)==null?void 0:V.easeOutSeconds)return y+"s"};
dbL=function(y,W,V){return _.g(function(w){return w.return(new Promise(function(t){var F=new Image;F.onload=function(){t(new vmv(y,W,V,F.naturalWidth,F.naturalHeight))};
F.src=V.toString()}))})};
L5L=function(y,W){return Math.round(y/1E-5)===Math.round(W/1E-5)};
z2b=function(y,W){return Math.round(y/1E-5)===Math.round(W/1E-5)};
cad=function(y,W){return y.year===W.year&&y.month===W.month&&y.day===W.day};
e2n=function(y,W){return y.year!==W.year?y.year<W.year:y.month!==W.month?y.month<W.month:y.day<W.day};
omb=function(y){return y.day===h2L(y.year,y.month)?y.month===11?{year:y.year+1,month:0,day:1}:{year:y.year,month:y.month+1,day:1}:{year:y.year,month:y.month,day:y.day+1}};
K54=function(){var y=new Date,W={year:y.getFullYear(),month:y.getMonth(),day:y.getDate()};return{start:W,end:{year:y.getFullYear()+2,month:y.getMonth(),day:y.getDate()},selectedDate:omb(W)}};
pAd=function(y){return(new gP(2)).format(new Date(y.year,y.month,y.day))};
iTn=function(y){return{year:y.getFullYear(),month:y.getMonth(),day:y.getDate()}};
f$u=function(y,W){y=(y+(Number(W.utcOffsetSec)+(new Date(y*1E3)).getTimezoneOffset()*60))*1E3;W=iTn(new Date(y));return{date:W,secondsSinceMidnight:Math.floor((y-(new Date(W.year,W.month,W.day)).getTime())/1E3)}};
T8v=function(y,W){W=W.months.findIndex(function(V){return V.year===y.year&&V.month===y.month});
return W>=0?W:void 0};
mbb=function(y){if(!y)return!1;try{if(y.host&&y.host.tagName==="YT-FORMATTED-STRING"&&y.host.id==="contenteditable-textarea"||y.nodeType===Node.ELEMENT_NODE&&y.tagName==="YTD-COMMENTBOX")return!0}catch(W){return!1}return mbb(y.parentNode)};
D6=function(y){return y?!(y.tagName!=="A"||!y.href||!y.classList.contains("yt-simple-endpoint")):!1};
Mzv=function(y){return y?y.tagName==="IMG"&&y.classList.contains("emoji"):!1};
qW4=function(y,W,V){if(!y)return null;var w=D6(y);if(w&&V)return W=y.pathname.substring(y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(w&&!V)return document.createTextNode("");if(Mzv(y))return V=y.alt,y=y.dataset.emojiId,!y&&W&&(W=_.l0(W,V))&&W.isCustomEmoji&&(y=W.emojiId),y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+y+">"):document.createTextNode(V);w=y.cloneNode(!1);for(var t=0;t<y.childNodes.length;++t){var F=qW4(y.childNodes[t],W,V);F&&w.appendChild(F)}return w};
x9=function(y){return y?D6(y)?y:x9(y.lastChild):null};
UbL=function(y){return y?D6(y)?y:UbL(y.firstChild):null};
uzn=function(y){if(!y)return null;for(var W=y.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=x9(W))?y=W:y=(y=y.parentNode)?x9(y.previousElementSibling):null;return y};
SWv=function(y){if(!y)return null;for(var W=y.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=UbL(W))?W:SWv(y.parentNode)};
Dbj=function(y){var W=_.k9(),V=W.JSC$11221_getStartNode();if(!mbb(V.parentNode))return null;W=W.JSC$11221_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var w=_.WM(V,D6);if(w){if(y&&W===0||!y&&W===V.length)return w}else{if(y&&W===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.sZ(V.nextElementSibling,"display")==="block"?null:UbL(V.nextElementSibling);if(!y&&W===0)return V?x9(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(y){if(0<=W&&W<V.childNodes.length)return UbL(V.childNodes[W])}else if(0<
W&&W<=V.childNodes.length)return x9(V.childNodes[W-1]);return null};
l$4=function(y,W,V){if(!y)return null;if(y.nodeType===Node.TEXT_NODE)if(V){var w=uzn(y);if(w&&!/^\s+\S/.test(y.wholeText.substr(0,W)))return w}else if((w=SWv(y))&&!/\S\s+/.test(y.wholeText.substr(W,y.wholeText.length)))return w;return y.nodeType===Node.ELEMENT_NODE?V?uzn(y.childNodes[W]):SWv(y.childNodes[W]):l$4(y.parentNode,W,V)};
xbj=function(y){if(y.hasChildNodes())switch(y.tagName){case "DIV":case "A":case "SPAN":var W="";for(y=y.firstChild;y;y=y.nextSibling)W+=xbj(y);return W;default:return""}else switch(y.nodeType){case 3:return y.textContent;default:return""}};
AO=function(y,W){return y.year===W.year&&y.month===W.month&&y.day===W.day};
Y9=function(y,W){return y.year!==W.year?y.year<W.year:y.month!==W.month?y.month<W.month:y.day<W.day};
kzv=function(y){return{year:y.getFullYear(),month:y.getMonth(),day:y.getDate()}};
sq4=function(y){var W=ySv;W=W===void 0?ySv:W;W(new Date(y.year,y.month,y.day))};
Be=function(y){return kzv(new Date(Number(y.seconds)*1E3))};
AaP=function(y){return y.year!==void 0&&y.month!==void 0&&y.day!==void 0};
YWR=function(y){return y.start!==void 0&&y.end!==void 0};
B8a=function(y){return YWR(y)?y.start:y};
Jav=function(y){return YWR(y)?y.end:void 0};
jqy=function(y,W){for(var V=[],w=new Date(y.start.year,y.start.month);w.getFullYear()<y.end.year||w.getFullYear()===y.end.year&&w.getMonth()<=y.end.month;){var t=V,F=t.push,I=w.getFullYear(),P=w.getMonth(),C=y,d=W,L=void 0,z=[],c=Object.freeze({extraCssClass:"invisible"}),K=new Date(I,P),f=kzv(K);K=K.getDay();for(var U=kzv(new Date);f.month===P;){K!==R2z&&L||(L=Array.from({length:7}).fill(c),z.push(L));var l={date:{year:I,month:P,day:f.day},extraCssClass:"",debugClass:""};l.extraCssClass=d(l.date,
f,U,C).trim();L[(K-R2z+7)%7]=l;f=f.day===h2L(f.year,f.month)?f.month===11?{year:f.year+1,month:0,day:1}:{year:f.year,month:f.month+1,day:1}:{year:f.year,month:f.month,day:f.day+1};K=(K+1)%7}F.call(t,{weeks:z,monthLabel:JO.SHORTMONTHS[P]+" "+I,year:I,month:P,monthLabelExtraCssClass:z[0][2]===c?"shift-down-label":""});w.setMonth(w.getMonth()+1)}return V};
$by=function(y,W){W=W.months.findIndex(function(V){return V.year===y.year&&V.month===y.month});
return W>=0?W:void 0};
HTy=function(y,W){a:{var V=V===void 0?[2,3]:V;V=_.N(V);for(var w=V.next();!w.done;w=V.next()){var t=new Date;if((new nmv(w.value)).parse(W,t,{validate:!0})){t.setHours(0,0,0,0);W=t;break a}}W=null}if(!W)return{isValid:!1,value:void 0};W=kzv(W);V=y.end;return Y9(W,y.start)||Y9(V,W)?{isValid:!1,value:void 0}:{isValid:!0,value:W}};
bTz=function(y){var W=XAb;W=W===void 0?a$a:W;var V=y.columnsToShow||[],w=Gzv(y.columnDimensions,y.columnsToShow,y.leftFloatingColumns,W);return V.map(function(t,F){var I=y.columns[t];if(I===void 0)throw Error("Wh");var P=w?w[F]:"";var C=y.getCustomTooltip?y.getCustomTooltip(t,I.headerTooltipParagraphs):I.headerTooltipParagraphs;var d=ra4(y,t);return{type:t,index:F,style:P,classes:d,headerName:I.headerName||"",headerIcon:I.headerIcon,headerTooltipParagraphs:C||[],headerTooltipHelpContext:I.headerTooltipHelpContext,
sortOrders:I.sortOrders||[],selectionState:I.isSelectionCheckbox?y.selectionState:void 0}})};
ra4=function(y,W){var V=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],w=y.columns[W];if(w===void 0)return"";var t=V.includes("DEFAULTS")&&w.cssClass?[w.cssClass]:[];if(V.includes("SORTING")){w.sortOrders&&w.sortOrders.length&&t.push("sortable");if(y.sorting&&y.sorting.columnType===W)a:switch(y.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var F="column-sorted";break a;default:F=""}else F="";F&&t.push(F)}V.includes("FLOATING")&&(W=y.columnsToShow.indexOf(W),y.leftFloatingColumns&&W<y.leftFloatingColumns&&
t.push("floating-column"),y.leftFloatingColumns&&W===y.leftFloatingColumns-1&&t.push("last-floating-column"));V.includes("RIGHT_ALIGN")&&w.rightAlignHeader&&t.push("right-align");return t.filter(function(I){return I}).join(" ")};
Gzv=function(y,W,V,w){V=V===void 0?0:V;w=w===void 0?a$a:w;if(y){var t=[],F=0;Qqb(y,W,w).forEach(function(I,P){var C="min-width:"+I.minWidth+"px;padding-left:"+I.paddingLeft+"px;padding-right:"+I.paddingRight+"px;flex:"+I.flexGrow+" 0 "+I.minWidth+"px;";I.maxWidth!==Infinity&&(C=[C,"max-width:"+I.maxWidth+"px;"].join(""));F>0&&P<V&&(C=[C,"left:"+F+"px;"].join(""));t.push(C);F+=I.minWidth+I.paddingLeft+I.paddingRight});
return t}};
Qqb=function(y,W,V){V=V===void 0?a$a:V;return W.map(function(w,t){w=y&&y[w]||{};var F=t===0?V.paddingLeftFirstColumn:V.padding;w.paddingLeft!==void 0&&(F=w.paddingLeft);t=t===W.length-1?V.paddingRightLastColumn:V.padding;w.paddingRight!==void 0&&(t=w.paddingRight);return{paddingLeft:F,paddingRight:t,minWidth:w.minWidth!==void 0?w.minWidth:V.minWidth,maxWidth:w.maxWidth!==void 0?w.maxWidth:V.maxWidth,flexGrow:w.flexGrow!==void 0?w.flexGrow:V.flexGrow}})};
ZT4=function(y){var W=y.reduce(function(w,t){var F=t.columnId,I={};t.headerText&&(I.headerName=_.OT(t.headerText));t.rightAlignHeader&&(I.rightAlignHeader=t.rightAlignHeader);var P;if((P=t.headerIcon)==null?0:P.iconType)I.headerIcon=_.D8(t.headerIcon.iconType);w[F]=I;return w},{}),V=y.filter(function(w){return!w.hideColumn}).map(function(w){return w.columnId});
y=y.filter(function(w){return!!w.dimensions}).reduce(function(w,t){w[t.columnId]=t.dimensions;
return w},{});
return{columns:W,columnsToShow:V,columnDimensions:y}};
_.y2G=function(y){return y?y.simpleText?y.simpleText:y.runs?y.runs.map(function(W){return W.text}).join(""):"":""};
Fny=function(y){var W=y.data;var V=y.onTap;var w=y.isSelected;var t=y.onFocusIn;if(!W)return{};y=Wnz(W);w===void 0&&(w=W==null?void 0:W.isSelected);var F;return{text:VSv(W,y),startIcon:(F=W.icon)==null?void 0:F.iconType,state:w?0:2,type:0,onTap:wkd(W,V),accessibilityLabel:tSP(W,y),onFocusIn:function(){return t==null?void 0:t()}}};
VSv=function(y,W){if(!W)return y.text?_.y2G(y.text):void 0};
wkd=function(y,W){return function(V){W==null||W(V,y)}};
Wnz=function(y){y=y.style&&y.style.styleType;return!ve&&y==="STYLE_EXPLORE_LAUNCHER_CHIP"};
tSP=function(y,W){if(W){var V,w,t;return(t=(V=y.accessibilityData)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)!=null?t:VSv(y,!1)}};
Rt=function(y){return{signalAction:{signal:y}}};
Ilj=function(){return _.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?EHv:_.NGz};
gHd=function(y,W){y=y===void 0?"SOFT_RELOAD_PAGE":y;W=W===void 0?49504:W;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.oB(_.u5("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:W}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:y}}]}}}};
PBL=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.oB(_.u5("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Ilj()}};
CBL=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Ilj()}};
O_u=function(y,W){var V=_.oB(_.u5("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),w=_.oB(_.u5("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),t={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.oB(_.u5("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};t.serviceEndpoint=y?y:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Rt("SOFT_RELOAD_PAGE")]}};return{title:V,bodyText:w,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:t},
style:{value:W!=null?W:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
dju=function(y){y=y===void 0?{}:y;return{title:_.oB(y.localizedZeroStateTitleText===void 0?"":y.localizedZeroStateTitleText),bodyText:_.oB(y.localizedZeroStateMessage===void 0?"":y.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.oB(y.localizedZeroStateButtonText===void 0?"":y.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[vHG]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
zXv=function(y){y=y===void 0?{}:y;return{title:_.oB(y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText),titleLength:19,subtitle:_.oB(y.localizedOptInMessage===void 0?"":y.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.oB(_.u5("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:_.oB(_.u5("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:[Lna]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
hXz=function(y,W){var V=W=W===void 0?{}:W;W=V.offlineTitleText===void 0?"":V.offlineTitleText;var w=V.offlineDescriptionText===void 0?"":V.offlineDescriptionText,t=V.formattedSupplementalText,F=V.actionButtonText===void 0?"":V.actionButtonText,I=V.titleText===void 0?"":V.titleText;V=V.descriptionText===void 0?"":V.descriptionText;var P={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.oB(F),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};y||(I=W,V=w,P={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.oB(F),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.oB(I),titleLength:I.length,overrideTitleMaxFontSize:30,subtitle:_.oB(V),supplementalText:t,primaryButton:{buttonRenderer:P},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[c24]},darkTileImage:{thumbnails:[eXy]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.pkv=function(y,W,V,w,t,F,I,P,C,d,L){t=t===void 0?!1:t;F=F===void 0?!1:F;I=I===void 0?0:I;P=P===void 0?-Infinity:P;C=C===void 0?!1:C;d=d===void 0?!1:d;L=L===void 0?!1:L;var z=[],c=_.oB(_.u5("SMART_DOWNLOADS",void 0,"Smart downloads")),K=_.oB(oHy(I,P,y.length));P=I=void 0;d?I={statementBannerRenderer:hXz(L,w)}:t?y.length>0?P=Knd(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.e("kevlar_manual_downloads_above"),c,K):C?P={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===
void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedPromptMessage===void 0?"":V.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.u5("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.u5("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:_.dxa}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:F&&(P={backgroundPromoRenderer:{bodyText:_.oB(_.u5("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"}}}):
F&&(P={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedOptInMessage===void 0?"":V.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.u5("TURN_ON",void 0,"Turn on"),accessibilityText:_.u5("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}}}}}});V=_.oB(_.u5("YOUR_DOWNLOADS",void 0,"Your downloads"));w=void 0;W.length>0?(w=void 0,_.e("kevlar_display_downloads_numbers")&&(w=_.oB(_.SM("VIDEO_COUNT",W.length))),w=Knd(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,V,w)):t||y.length||
d||(w={backgroundPromoRenderer:{bodyText:_.oB(_.u5("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}}}});I?z.push({richSectionRenderer:{content:I}}):P&&!_.e("kevlar_manual_downloads_above")&&z.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
w&&z.push({richSectionRenderer:{content:w,loggingDirectives:{clientVeSpec:{uiType:51721}}}});P&&_.e("kevlar_manual_downloads_above")&&z.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(W.length>0||t&&y.length>0&&!d)&&z.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.oB(_.u5("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:z}};
_.flj=function(y){return i_G(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.TGv=function(y){return i_G(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
i_G=function(y,W){var V=[];y=Knd(y,W,!0);V.push({richSectionRenderer:{content:y}});return{contents:V}};
Knd=function(y,W,V,w,t){V=V===void 0?!1:V;var F="RESPONSIVE_SIZE_STANDARD";_.e("kevlar_modern_downloads_compact")?F="RESPONSIVE_SIZE_COMPACT":_.e("kevlar_modern_downloads_extra_compact")&&(F="RESPONSIVE_SIZE_EXTRA_COMPACT");y={isExpanded:V,contents:jy(y),entitySelectorType:W,responsiveContainerConfiguration:{responsiveSize:F}};w&&(y.title=w);t&&(y.subtitle=t);V||(_.e("kevlar_smart_downloads_show_more_button")?(y.showMoreButton={buttonRenderer:{accessibility:{label:_.u5("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.oB(_.u5("SHOW_MORE",void 0,"Show more"))}},y.showLessButton={buttonRenderer:{accessibility:{label:_.u5("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.oB(_.u5("SHOW_LESS",void 0,"Show less"))}}):(y.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.u5("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}}}},y.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.u5("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}}}},y.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.u5("VIEW_ALL",void 0,"View all"),accessibilityText:_.u5("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:eE("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:y}};
jy=function(y){var W=[];y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,b$R(V)){var w=W,t=w.push;var F=void 0;if(V==null?0:(F=V.videoEntity)==null?0:F.videoId){F=wP(_.dP().getState(),V.videoEntity.videoId);var I=_.dP().getState();var P=_.qK(V.videoEntity.videoId,"mainVideoEntity");I=!!_.$C(I.entities)[P];I={videoId:V.videoEntity.videoId,title:K2(V.videoEntity.title),shortBylineText:K2(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:I&&_.e("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:MxL(V.videoEntity.videoId,F,V.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.u5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};V.videoEntity.lengthSeconds&&(I.thumbnailOverlays=hYy(V.videoEntity.lengthSeconds,F));I.isWatched=F>0;_.e("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.u5("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},I.badges=void 0);V=I}else V={};t.call(w,{richItemRenderer:{content:{videoRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rry(V)){w=W;t=w.push;var C=P=F=void 0,d=void 0,L=void 0,z=void 0,c=void 0,K=void 0,f=void 0,U=void 0,l=void 0,x=void 0;I=V.mainPlaylistEntity.playlistId;var B=V==null?void 0:(x=V.mainPlaylistEntity)==null?void 0:(l=x.thumbnailStyleData)==null?void 0:(U=l[0])==null?void 0:(f=U.value)==null?void 0:(K=f.collageThumbnail)==
null?void 0:K.coverThumbnail;if(I&&B){K=qJP(I);!_.e("enable_offline_playlist_page")&&(V==null?0:(c=V.mainPlaylistEntity)==null?0:c.videos)&&(c=V==null?void 0:(z=V.mainPlaylistEntity)==null?void 0:(L=z.videos)==null?void 0:L[0],L=_.T4(c).entityId,L=JSON.parse(L).videoId,L!==void 0&&(z=wP(_.dP().getState(),L),K=_.hz(L,I,void 0,void 0,z)));L=[];if(V==null?0:(d=V.mainPlaylistEntity)==null?0:(C=d.videos)==null?0:C.length)L=[Z3v(),Object.assign({},(P=QiP(V==null?void 0:V.mainPlaylistEntity.videos.length))!=
null?P:{})];V={playlistId:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:B}},navigationEndpoint:K,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:L,title:K2(V.mainPlaylistEntity.title),shortBylineText:K2(V==null?void 0:(F=V.channelEntity)==null?void 0:F.title),badges:[{metadataBadgeRenderer:{label:_.u5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.e("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:mjd,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:I,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.u5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},V.badges=void 0)}else V=void 0;t.call(w,{richItemRenderer:{content:{playlistRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return W};
oHy=function(y,W,V){y=y?MSb(y):"";W!==void 0&&isFinite(W)?W===0?W=_.u5("UPDATING",void 0,"Updating..."):(W=eYa(new Date(W),new Date),W=_.u5("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var w="";y&&W&&(w=" \u2022 ");if(V&&_.e("kevlar_display_downloads_numbers")){V=_.SM("VIDEO_COUNT",V);if(y||W)w=" \u2022 ";return V+w+y+w+W}return y+w+W};
quj=function(y){return RIb(y.entities).length};
_.Ujz=function(y,W){var V=lLv(y.responsiveSize),w;y=!((w=y.responsiveMap)==null||!w.some(function(t){return t.containerSize==="CONTAINER_SIZE_NARROW"&&t.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:W,sizing:V,enableFullBleedForSingleCol:!1,isCompactList:V==="COMPACT"&&y}};
uwb=function(y,W){return _.UB(y.entities,"votingEntity",W)};
Sun=function(y){if(y){var W;return((W=_.hs().resolve(_.eX(_.va)))==null?0:W())?y.darkTheme:y.lightTheme}};
DjP=function(y,W){if(y.simpleText)return Object.assign({},y,{simpleText:Pa(y.simpleText,W)});if(!y.runs)return y;for(var V=Object.assign({},y,{runs:[]}),w=0,t=_.N(y.runs),F=t.next();!F.done;F=t.next())if(F=F.value,F.text)if(w+F.text.length<=W)V.runs.push(F),w+=F.text.length;else return V.runs.push(Object.assign({},F,{text:Pa(F.text,W-w)})),V;return y};
llu=function(y,W){return _.UB(y.entities,"chipBarStateEntity",W)};
xjj=function(y,W){return _.UB(y.entities,"chipEntity",W)};
sKv=function(y,W,V,w){return function(){var t=kBv.has(y.displayType)&&y.selected,F=t&&y.deselectCommand?y.deselectCommand:y.tapCommand;!F||t&&w||_.Id(F,{form:{element:W==null?void 0:W.value}});V==null||V()}};
A2u=function(y){switch(y){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Yuv=function(y,W){return{triggeringElement:y,onDwellTriggeredFn:function(){var V={triggeringElement:y,loadVideoPreviewEventData:W},w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:V}))},
onDwellEndFn:function(){var V=document.querySelector(".video-preview");V&&V.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
BGb=function(y,W){var V=_.hs().resolve(_.eX(oDG)),w=function(){var t=W();return V&&t?Yuv(y.value,t):null};
_.H1(function(){var t=w();V&&t&&Promise.resolve().then(function(){V.registerElement(t)});
_.XT(function(){V&&t&&Promise.resolve().then(function(){_.g7(V,t)})})},"csPUge")};
RXu=function(y){var W=y.dataset.resizeObserverId;if(W)return W;W=""+J2z++;return y.dataset.resizeObserverId=W};
jKt=function(y,W){var V=RXu(y);$9.has(V)||$9.set(V,new Set);$9.get(V).add(W);nv.has(V)&&W(Object.assign({},{target:y},nv.get(V)))};
$jy=function(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=RXu(W.target),w=Object.assign({},{target:W.target},nv.get(V));if(w!=null&&w.contentRect?w.contentRect.width!==W.contentRect.width||w.contentRect.height!==W.contentRect.height:1)for(nv.set(V,{borderBoxSize:W.borderBoxSize,contentBoxSize:W.contentBoxSize,contentRect:W.contentRect,devicePixelContentBoxSize:W.devicePixelContentBoxSize}),V=_.N($9.get(V)||[]),w=V.next();!w.done;w=V.next())w=w.value,w(W)}};
H_4=function(){return He?He:He=new nHn($jy)};
XkG=function(y,W){var V=RXu(y);$9.has(V)&&($9.get(V).delete(W),$9.get(V).size===0&&($9.delete(V),nv.delete(V),He.unobserve(y),delete y.dataset.resizeObserverId));$9.size===0&&He&&(He.disconnect(),He=void 0)};
GBG=function(y,W){var V=_.hs().resolve(dS);return aln.map(function(w){return V.observe(y,W,w)})};
r2n=function(y){var W=_.hs().resolve(dS);y.forEach(function(V){W.unobserveByKey(V)})};
_.Z_R=function(y,W){var V=Object.assign({},b_R,W);W=_.N(L6b());var w=W.next().value,t=W.next().value,F=function(I){var P=I.contentRect.height;if((I=I.contentRect.width)||P||V.canHaveZeroSize)w.width()===I&&w.height()===P||t(w,{height:P,width:I})};
_.a8(function(){var I=y instanceof HTMLElement?y:y.value,P=QKn(F,V.throttleMs),C=[];V.useVisibilityObserver&&(C=GBG(I,function(d,L){requestAnimationFrame(function(){L==="visible"?(jKt(I,P),H_4().observe(I)):XkG(I,P)})}));
C.length||(jKt(I,P),H_4().observe(I));_.XT(function(){C.length&&(r2n(C),C.length=0);XkG(I,P)})});
return w};
WEa=function(y){var W=y.data;var V=y.callback;var w=y.enableSingleChipSelection;var t=y.disableChipsScrollAnimation;var F=_.gS("div"),I=rV(!1),P=rV(0);y={};y=_.N(An(W.autoselectedChipIndex!=null?(y[W.autoselectedChipIndex]=!0,y):{}));var C=y.next().value,d=y.next().value,L=function(){var Py=F.value;return Py==null||Py.scrollLeft-1<=0},z=function(){var Py=F.value;
return Py==null?!1:Py.scrollLeft+1>=(Py==null?NaN:Py.scrollWidth)-(Py==null?NaN:Py.clientWidth)};
y=_.N(An(L()));var c=y.next().value,K=y.next().value;y=_.N(An(z()));var f=y.next().value,U=y.next().value;y=W.isHorizontallyScrollable;var l=function(Py){F.value!=null&&(_.yC("HTML_DIR")==="rtl"&&(Py=-Py),F.value.scrollBy({left:Py,behavior:t?"instant":"smooth"}))},x=function(){l(-320)},B=function(){l(320)},r=_.YS(function(Py){I.value=!0;
P.value=Py.clientX}),H=_.YS(function(Py){if(I.value){Py=Py.clientX;
var du=Py-P.value;P.value=Py;var mL;(mL=F.value)==null||mL.scrollBy({left:-du})}}),a=_.YS(function(){var Py=L(),du=z();
Py!==c&&K(Py);du!==f&&U(du)});
vl("pointerup",function(){I.value&&(I.value=!1)});
var b={},Fv={};return _.O("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},v1(W.title,function(){return _.O("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.O("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},W.title),yKR(W.overflowButton))}),_.O("div",{class:"ytChipsShelfViewModelChipsShelfContent"},v1(W.previousButton!=null,function(){var Py={};
return _.O("div",{class:_.sU("ytChipsShelfViewModelLeftArrowContainer",(Py.ytChipsShelfViewModelLeftArrowContainerIsHidden=c,Py))},yKR(W.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:x}}))}),_.O("div",{el:F,
"on:pointerdown":r,"on:pointermove":H,"on:scroll":a,class:_.sU("ytChipsShelfViewModelChipsScrollContainer",(b.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!y,b))},_.O("div",{class:_.sU("ytChipsShelfViewModelChipsContainer",(Fv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!y,Fv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!y&&!1,Fv)),role:"tablist"},(W.contents||[]).map(function(Py,du){return _.O("div",{class:"ytChipsShelfViewModelChipWrapper"},
yKR(Py,{chipViewModel:{callback:function(mL,un){if(w){var hv={};d((hv[du]=un,hv))}else hv={},d(Object.assign({},C,(hv[du]=un,hv)));V==null||V(mL,un,du)},
disableDeselection:w,selected:!!C[du]}}))}))),v1(W.nextButton!=null,function(){var Py={};
return _.O("div",{class:_.sU("ytChipsShelfViewModelRightArrowContainer",(Py.ytChipsShelfViewModelRightArrowContainerIsHidden=f,Py))},yKR(W.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:B}}))})))};
wJn=function(y,W,V,w,t){y=W?y.switchOffCommand:y.switchOnCommand;if(w&&t)Vkz(y,V,t);else{var F,I;(F=_.EU({elementsCommand:y}))==null||(I=F.onclick)==null||I.call(F,V)}};
Vkz=function(y,W,V){y=_.EU({elementsCommand:y,additionalCommandArgs:{commandController:{onSuccess:function(){V(!1)},
onServerError:function(){V(!1)}}}});
if(y==null?0:y.onclick)y.onclick(W),V(!0)};
FEy=function(y){if(y)return _.h(y,tkt)};
PXz=function(y,W,V){if(W)return[E3d];switch(y){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[XW];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return V?[XW]:[Nlv,XW];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ijv,XW];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[g34,XW];default:return[E3d]}};
CXv=function(y,W,V,w){return PXz(y,W,w).map(function(t){var F=t.text,I=t.iconType,P=t.videoAction;t=t.playlistAction;F=F?{content:F}:void 0;I=I&&{sources:[{clientResource:{imageName:I}}]};var C=(0,_.Gc.unsafeClone)(V);if(C){var d=_.h(C,_.xn),L=_.h(C,_.sP);d&&P?d.action=P:L&&t&&(L.action=t)}return{title:F,leadingImage:I,rendererContext:C&&{commandContext:{onTap:{innertubeCommand:C}}}}})};
OLd=function(y){y=_.w7(y.rendererContext);var W;return(W=_.h(y,_.sP))==null?void 0:W.playlistId};
v3v=function(y){var W;return(W=y.listItems)==null?void 0:W.some(function(V){var w;return _.tO((w=_.h(V,_.RJ))==null?void 0:w.rendererContext)})};
LEu=function(y){var W;return(W=y.listItems)==null?void 0:W.some(function(V){V=_.h(V,_.RJ);return!!_.h(V==null?void 0:V.leadingAccessory,dpj)})};
eqt=function(y){var W=y.element;var V=y.veType;var w=y.storedVisualElement===void 0?null:y.storedVisualElement;var t=y.elementIndex===void 0?0:y.elementIndex;y=y.clientYouTubeData;var F=_.Xn();F!==zqz&&(cKb.clear(),zqz=F);if(W.visualElement&&cKb.has(W.visualElement))return null;if(w&&cKb.has(w))return W.visualElement=w,null;V=_.Yc(_.BC(),{veType:V,elementIndex:t,clientYouTubeData:y});if(!V)return null;W.visualElement=V;cKb.add(V);return V};
_.at=function(y,W,V,w){V=V===void 0?null:V;w=w===void 0?DPt:w;var t=t===void 0?null:t;rc(function(){if(W){V instanceof Function&&(V=V());var F=eqt({element:W,veType:y,storedVisualElement:V,clientYouTubeData:void 0});F&&(ken(W,t),w(F))}})};
Gr=function(y,W){if(y){switch(W){case 0:y=y.primaryTitleColor;break;case 1:y=y.secondaryTitleColor;break;case 2:y=y.surgeColor;break;case 3:y=y.section2Color;break;case 4:y=y.section3Color;break;default:return}if(y)return _.V2(y)}};
hqv=function(y){return y?_.wg(y):""};
o3G=function(y){return(y==null?void 0:y.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
KEv=function(y,W){var V;return"linear-gradient(to bottom, "+((V=W==null?void 0:W.map(function(w){var t=y?w.darkThemeColor:w.lightThemeColor;return t?_.wg(t)+" "+((w==null?void 0:w.startLocation)||0)*100+"%":"transparent"}))==null?void 0:V.join(", "))+")"};
pJG=function(y,W,V,w,t){if(!((w==null?0:w.height)&&(w==null?0:w.width)))return{size:0};var F=w.width;w=w.height;if(t)return W==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&F>w?{size:312/nDj}:W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(V!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||y!==1&&y!==2||W!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&W!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&W!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(W==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||w===F)switch(y){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||w>F)switch(y){case 1:case 3:return{size:240*$q4};default:return{size:360*$q4}}switch(y){case 1:case 2:return{size:1/nDj*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.iLn=function(y){if(!("matchMedia"in window))return _.FU(Error("Xh")),function(){return!1};
var W=window.matchMedia(y);y=_.N(_.M1(W.matches,void 0,"jLJc8e"));var V=y.next().value,w=y.next().value,t=function(F){w(F.matches)};
W.addEventListener?(W.addEventListener("change",t),_.XT(function(){W.removeEventListener("change",t)})):W.addListener&&(W.addListener(t),_.XT(function(){W.removeListener(t)}));
return V};
fjv=function(y){return y==="IMAGE_BANNER_STYLE_INSET"||y==="IMAGE_BANNER_STYLE_UNKNOWN"};
Tlv=function(){if(!("matchMedia"in window))return _.FU(Error("Xh")),function(){return 0};
var y=GI(function(){return window.matchMedia("(max-width: 527.9px)")}),W=GI(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),V=GI(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),w=GI(function(){return window.matchMedia("(min-width: 1024px)")}),t=_.N(_.M1(y.matches,void 0,"og9kEc")),F=t.next().value,I=t.next().value;
t=_.N(_.M1(W.matches,void 0,"ybDWCb"));var P=t.next().value,C=t.next().value;t=_.N(_.M1(V.matches,void 0,"o0Gfh"));var d=t.next().value,L=t.next().value;t=_.N(_.M1(w.matches,void 0,"yqUUgd"));var z=t.next().value,c=t.next().value,K=GI(function(){return function(x){I(x.matches)}}),f=GI(function(){return function(x){C(x.matches)}}),U=GI(function(){return function(x){L(x.matches)}}),l=GI(function(){return function(x){c(x.matches)}});
_.a8(function(){y.addEventListener?(y.addEventListener("change",K),W.addEventListener("change",f),V.addEventListener("change",U),w.addEventListener("change",l)):y.addListener&&(y.addListener(K),W.addListener(f),V.addListener(U),w.addListener(l));_.XT(function(){y.removeEventListener?(y.removeEventListener("change",K),W.removeEventListener("change",f),V.removeEventListener("change",U),w.removeEventListener("change",l)):y.removeListener&&(y.removeListener(K),W.removeListener(f),V.removeListener(U),
w.removeListener(l))})});
return function(){return F()?1:P()?2:d()?3:z()?4:0}};
mpj=function(y){var W=0;y=_.N([y.title,y.metadata,y.actions,y.description,y.attribution]);for(var V=y.next();!V.done;V=y.next())V.value&&W++;return W};
Mkb=function(y){return y===1||y===2?1:0};
Upy=function(y){var W,V=((W=_.hs().resolve(_.eX(_.va)))==null?0:W())&&y.data.darkThemeImage?y.data.darkThemeImage:y.data.image;W=_.O("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.O("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},V?_.O(_.ca,{data:V,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),qYL(y.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));V=_.O(_.Lv,{text:y.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var w=y.data;if(w.bodyText){var t=[];w=_.N(w.bodyText);for(var F=w.next();!F.done;F=w.next())t.push(_.O(_.Lv,{text:F.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else t=_.O(_.o8,null);return _.O("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},W,V,t,qYL(y.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.O(_.Lv,{text:y.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.O(_.Lv,{text:y.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
SYz=function(y){y=(new upP).parse(y);return(new mN).render(y).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(W){var V=W.split(":").map(Number),w=0,t=0;if(V.length===3)V=_.N(V),w=V.next().value,t=V.next().value,V=V.next().value;else if(V.length===2)V=_.N(V),t=V.next().value,V=V.next().value;else if(V.length===1)V=_.N(V).next().value;else throw Error("Yh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(w*3600+t*60+V)+'" role="button">'+W+"</span>"})};
DpG=function(y){y=_.N(y.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var W=y.next(),V={};!W.done;V={clickHandler$jscomp$4:void 0},W=y.next()){W=W.value;V.clickHandler$jscomp$4=function(t){t=Number(t.target.getAttribute("data-time"));if(isNaN(t))throw Error("Zh");var F;(F=_.Sf())==null||F.seekTo(t,!0)};
var w=function(t){return function(F){F.key!=="Enter"&&F.key!=="Space"||(0,t.clickHandler$jscomp$4)(F)}}(V);
W.setAttribute("tabindex","0");W.removeEventListener("click",V.clickHandler$jscomp$4);W.removeEventListener("keydown",w);W.addEventListener("click",V.clickHandler$jscomp$4);W.addEventListener("keydown",w)}};
ljv=function(){return _.O("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.O(r7,{percentWidth:100}),_.O(r7,{animationDelay:200}),_.O(r7,{animationDelay:400}),_.O(r7,{animationDelay:600}),_.O(r7,{animationDelay:800,percentWidth:60}),_.O("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.O(r7,{percentWidth:100}),_.O(r7,{animationDelay:200}),_.O(r7,{animationDelay:400}),_.O(r7,{animationDelay:600,percentWidth:50}))};
r7=function(y){return _.O("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(y.percentWidth===void 0?100:y.percentWidth)+"%"},_.O("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(y.animationDelay===void 0?0:y.animationDelay)+"ms"}))};
xpz=function(){var y=_.N(_.M1(function(){return""},void 0,"v2wS5e")),W=y.next().value;
return[function(){return W()()},
y.next().value]};
kun=function(y,W){y=y?MSb(y):"";W!==void 0&&isFinite(W)?W===0?W=_.u5("UPDATING",void 0,"Updating..."):(W=eYa(new Date(W),new Date),W=_.u5("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var V="";y&&W&&(V=" \u2022 ");return _.oB(y+V+W)};
YYu=function(y,W,V,w,t,F){W=W===void 0?0:W;var I=sQb[W],P=I.title,C=I.iconType,d=I.topButtonRenderer,L=I.sectionClientVE;I=I.videoClientVE;var z;if(W!==1||y.length){V=[];y=_.N(y);for(w=y.next();!w.done;w=y.next()){var c=w.value;if(b$R(c))V.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:c.videoEntity.videoId,title:K2(c.videoEntity.title),shortBylineText:K2(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.u5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:I}}}}}});else if(rry(c)){w=V;var K=w.push;var f=void 0,U=void 0,l=void 0,x=void 0,B=void 0,r=void 0,H=void 0,a=void 0,b=c.mainPlaylistEntity.playlistId,Fv=c==null?void 0:(a=c.mainPlaylistEntity)==null?void 0:(H=a.thumbnailStyleData)==null?void 0:(r=H[0])==null?void 0:(B=r.value)==null?void 0:(x=B.collageThumbnail)==null?void 0:x.coverThumbnail;x=qJP(b);if(!_.e("enable_offline_playlist_page")&&
(c==null?0:(l=c.mainPlaylistEntity)==null?0:l.videos)){b:{l=c==null?void 0:(U=c.mainPlaylistEntity)==null?void 0:U.videos;U=_.dP().getState().entities;if(l!=null&&l.length&&U)for(l=_.N(l),B=l.next();!B.done;B=l.next())if(B=_.T4(B.value).entityId,(B=JSON.parse(B).videoId)&&B1P(U,B)==="TRANSFER_STATE_COMPLETE"){U=B;break b}U=""}U!==void 0&&(x=wP(_.dP().getState(),U),x=_.hz(U,b,void 0,void 0,x))}U=ugb(_.u5("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),qJP(b));c=b&&Fv&&U?{playlistId:b,navigationEndpoint:x,
viewPlaylistText:U,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Fv}},title:K2(c.mainPlaylistEntity.title),shortBylineText:K2(c==null?void 0:(f=c.channelEntity)==null?void 0:f.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:AKu,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:b,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.u5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:I}}}:
void 0;K.call(w,{gridPlaylistRenderer:c})}}I={gridRenderer:{items:V}};W===1&&(z=kun(t,F))}else if(w){var Py=_.oB((K=V==null?void 0:V.localizedPromptMessage)!=null?K:"");I={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.oB(_.u5("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.dxa}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.oB(_.u5("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};z=kun(t,F)}else Py=_.oB(_.u5("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
I={};return{contents:[{shelfRenderer:{title:P,titleAnnotation:z,icon:{iconType:C},subtitle:Py,content:I,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:d}]}}}}],loggingDirectives:{clientVeSpec:{uiType:L}}}};
Blt=function(y,W,V,w,t,F,I,P,C,d,L){V=V===void 0?{}:V;w=w===void 0?{}:w;t=t===void 0?!1:t;F=F===void 0?!1:F;I=I===void 0?!1:I;P=P===void 0?!1:P;C=C===void 0?!1:C;d=d===void 0?0:d;L=L===void 0?-Infinity:L;if(!(W.length||y.length||t||P))return F?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:dju(V)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.oB(_.u5("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var z=[];y.length&&z.push(YYu(y,0));P?z.push({contents:[{statementBannerRenderer:hXz(C,w)}]}):t?z.push(YYu(W,1,V,I,d,L)):F&&z.push({contents:[{statementBannerRenderer:zXv(V)}]});(t&&W.length||y.length)&&z.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.oB(_.u5("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return z.map(function(c){return{itemSectionRenderer:c}})};
b0=function(y,W){if(typeof y!=="object")return null;y=_.N(Object.entries(y));for(var V=y.next();!V.done;V=y.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;if(V===W)return V;if(w=b0(w,W))return V+"."+w}return null};
QS=function(y){var W=y.content;return(y=y.styleRuns)&&W?{runs:y.map(function(V){var w={text:W.slice(V.startIndex,V.startIndex+V.length)};V.fontColor&&(w.textColor=V.fontColor);return w})}:{simpleText:W}};
jQG=function(y,W,V,w){var t=JKj;w&&(y.quantity=w);if(!y.quantity||!y.maxQuantity)return{};w=y.minusButton;var F=y.plusButton,I,P,C,d;return{value:y.quantity,maxValue:y.maxQuantity,onChangeCallback:function(L){t(y,L)},
minusLabel:(I=_.h(w,RqP))==null?void 0:I.label,minimumReachedLabel:(P=_.h(w,RqP))==null?void 0:P.limitReachedLabel,plusLabel:(C=_.h(F,RqP))==null?void 0:C.label,maximumReachedLabel:(d=_.h(F,RqP))==null?void 0:d.limitReachedLabel,disabled:W,onRemoveCommand:V}};
JKj=function(y,W){var V=y.quantityIncrementerEntityKey;if(V){var w={};w.quantity=W;_.dc(_.Z6("quantityIncrementerEntity",V,w));y.onChangeCommand&&_.Id(y.onChangeCommand)}};
HLz=function(y,W){(y=$pn(y))&&(W?n3P.push({command:y,sourceData:{},commandContext:void 0}):_.hs().resolve(_.oA).resolveCommand(y))};
$pn=function(y){return _.h(y,_.wL)};
XJv=function(){var y=window.performance.timeOrigin+window.performance.now(),W=(new _.yW).setSeconds(y/1E9);return _.d3(W,2,_.fe(y%1E9),0)};
Wm=function(y,W){var V=_.h(_.h(y,_.wL),ajb);V&&(W&&(V.serializedAdditionalMetadata=_.Gj(W)),HLz(y,!0))};
Guy=function(y){switch(y){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"}};
rKu=function(){return!!_.yC("ID_TOKEN")};
ZLu=function(y){return y instanceof Error&&y.cause instanceof bLL&&y.cause.rpcErrorCode!==void 0?!QQv.includes(y.cause.rpcErrorCode):!0};
Wcu=function(){return _.O1(yev,{authuser:""+(_.yC("SESSION_INDEX")||0)})};
VW=function(y,W,V,w){V=V===void 0?"MINI_APP_SDK_API_UNSPECIFIED":V;w=w===void 0?"":w;var t=new _.Js;V={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:w,sdkApi:V};y instanceof Error&&(t.message=y.message,t.name=y.name,y.cause instanceof bLL&&y.cause.rpcErrorCode!==void 0&&(V.rpcErrorCode=y.cause.rpcErrorCode));var F;(F=W.onError)==null||F.call(W,{loggingError:t,metadata:V})};
wTn=function(y,W,V,w){switch(y){case "MINI_APP_SOURCE_GAMESNACKS":return new wx(W,V,w);default:return new V8L(W,V,w)}};
t8v=function(y){switch(y){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"}};
FcG=function(y){switch(y){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"}};
Ezv=function(y){switch(y){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"}};
NNz=function(){return Math.floor(Math.random()*4)+1};
Icv=function(y,W,V,w){y=_.N(Object.entries(y));for(var t=y.next(),F={};!t.done;F={message$jscomp$989:void 0},t=y.next()){var I=_.N(t.value);t=I.next().value;I=I.next().value;F.message$jscomp$989=I;W.push(setTimeout(function(P){return function(){w(!1);V(P.message$jscomp$989.text)}}(F),F.message$jscomp$989.delayMs));
Number(t)>0&&W.push(setTimeout(function(){w(!0)},F.message$jscomp$989.delayMs-400))}};
gzb=function(y,W){var V=V===void 0?DPt:V;_.e("mweb_fix_monitor_visibility_after_render")?y&&rc(function(){ken(y,W,V)}):rc(function(){ken(y,W,V)})};
OZj=function(y){var W=y.data;var V=y.uniqueId;y=y.overrides;var w,t=((w=W.timedAnimationData)==null?void 0:w.animationTiming)||[];return _.O("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.O(PZv,{settings:{uniqueId:V,timings:t,experimentEnabled:t.length>0,enabled:t.length>0}},CZv(W.buttonRenderer,{buttonRenderer:{buttonOverrides:y}})))};
zo4=function(y){vzn||(vzn=dAv(new _.F4(1,void 0,void 0,Lcd),0));var W=vzn.format(Math.floor(y));W=_.tx==="be"||_.tx==="bg"||_.tx==="es"||_.tx==="et"||_.tx==="hu"||_.tx==="ka"||_.tx==="lv"||_.tx==="pl"||_.tx==="pt-PT"||_.tx==="sq"?W.replace(new RegExp("^(\\d)"+Lcd.GROUP_SEP.replace(".","\\.")+"(\\d+("+Lcd.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):W;return y>=1E3&&y<=9999&&W[1]==="."&&(_.tx==="sl"||_.tx==="it")?W.replace(".",""):W};
ceG=function(y,W){Q3("ytd-button-renderer",{data:y,className:W?W.className:"",overrides:W==null?void 0:W.buttonOverrides},gV)};
ozb=function(y,W,V,w){if(y)return w=w||y.likeStatus,W?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="LIKE",isDisabled:!y.likesAllowed,defaultIcon:{iconType:V},defaultText:w==="LIKE"?y.likeCountWithUnlikeText:y.likeCountText,toggledText:w==="LIKE"?y.likeCountText:y.likeCountWithLikeText,defaultNavigationEndpoint:eot(y,"LIKE"),defaultServiceEndpoint:hoG(y,"LIKE"),toggledServiceEndpoint:hoG(y,"INDIFFERENT"),defaultTooltip:_.OT(y.likeCountTooltipText),toggledTooltip:_.OT(y.likeCountTooltipText),
targetId:y.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="DISLIKE",isDisabled:!y.likesAllowed,defaultIcon:{iconType:V},defaultText:w==="DISLIKE"?y.dislikeCountWithUndislikeText:y.dislikeCountText,toggledText:w==="DISLIKE"?y.dislikeCountText:y.dislikeCountWithDislikeText,defaultNavigationEndpoint:eot(y,"DISLIKE"),defaultServiceEndpoint:hoG(y,"DISLIKE"),toggledServiceEndpoint:hoG(y,"INDIFFERENT"),defaultTooltip:_.OT(y.dislikeCountTooltipText),
toggledTooltip:_.OT(y.dislikeCountTooltipText)}};
eot=function(y,W){if(W==="LIKE")return y.likeCommand;if(W==="DISLIKE")return y.dislikeNavigationEndpoint};
hoG=function(y,W){var V;return(V=y.serviceEndpoints)==null?void 0:V.find(function(w){var t;return((t=_.h(w,_.tD))==null?void 0:t.status)===W})};
_.iZn=function(y,W,V){return window.spf&&!_.e("web_disable_spfjs_client")?Kcv(y,W,V):pTv(y,W)};
Kcv=function(y,W,V){var w=null,t=(new _.qN(function(F,I){var P={};if(W){P.method=W.method;var C=W.postParams||{};U8y(y,W)&&(C[_.yC("XSRF_FIELD_NAME")]=_.yC("XSRF_TOKEN"));P.postData=_.SX(C);W.type&&(P.type=W.type);C=W.headers}P.headers=igd(y,C);_.e("debug_forward_web_query_parameters")&&(y=_.MMu(y,window.location.search));P.experimental_headers=P.headers;P.onError=function(d){d.err&&d.xhr&&(d.err.params={url:d.xhr.responseURL,response:d.xhr.responseText.substr(0,64)});I(d.err)};
P.onPartDone=function(d){V&&V.call(null,d.part)};
P.onDone=function(d){var L=fcd(d.response,"xsrf_token");LB(window.location.href,y)&&L&&_.Z7("XSRF_TOKEN",L);if(L=fcd(d.response,"service_worker_killswitch"))_.Z7("SERVICE_WORKER_KILLSWITCH",L),gqy();F(d.response)};
w=spf.request(y,P)})).then(TNR);
t.thenCatch(function(F){var I=F instanceof _.Fu,P=F&&F.hasOwnProperty("params")&&F.params.response?F.params.response:"";F instanceof Error&&(P?I?dHj(F):P===')]}\'\n{"reload":"now"}'?dHj(F):(mAL(F,y,P),M8z(F,P)?_.rQ(F):_.ap(F)):dHj(F));w&&w.abort()});
return t};
TNR=function(y){if(y.type==="multipart"){var W=y.timing;y=y.parts.reduce(function(V,w){Object.assign(V,w);return V},{});
y.timing=y.timing||{};Object.assign(y.timing,W);y.type="reduced"}return y};
pTv=function(y,W){W=W===void 0?{}:W;var V=null,w=new _.qN(function(t,F){W.onFinish=function(I){if(I.readyState===XMLHttpRequest.DONE)if(I.status===200){if(I.responseType!=="json"){var P=I.response;P.substring(0,5)===")]}'\n"&&(P=P.substring(5));try{var C=JSON.parse(P)}catch(d){C=d}}else C=I.response;C instanceof Error?F(C):(P=fcd(C,"xsrf_token"),LB(window.location.href,y)&&P&&_.Z7("XSRF_TOKEN",P),I=I.responseURL,window.performance&&window.performance.getEntriesByName?(P=window.performance.getEntriesByName(I).pop())?
I={responseStart:(0,_.cU)()-(P.responseEnd-P.responseStart)}:(Math.random()<.01&&(P=Error("ki"),P.params=I,_.rQ(P)),I={responseStart:-1}):I={responseStart:0},C.timing=C.timing||{},Object.assign(C.timing,I),t(C))}else F(Error("ji`"+I.status))};
(V=_.uC(y,W))||F(Error("ji`"+V.status))});
w.thenCatch(function(t){t instanceof Error&&(mAL(t,y),M8z(t)&&(t.level="WARNING"))});
_.e("cancel_pending_navs")&&w.thenCatch(function(){V.abort()});
return w};
fcd=function(y,W){var V=y[W],w=y.parts;y.type==="multipart"&&w&&(V=(y=w.find(function(t){return W in t}))&&y[W]);
return V};
mAL=function(y,W,V){var w=y.message||"";W={original:w,url:W};if(V)if(w=w.match(/position:?\s*(\d+)/)){w=w&&Number(w[1])?Number(w[1]):0;var t=Math.max(w-25,0);W.position=w;W.response=V.substring(t,w+25)}else W.response=V.substring(0,50);_.bb(y,W);try{y.message="JSON parse error"}catch(F){}};
M8z=function(y,W){y=y.message||"";y=!!(y.indexOf("<")>=0||y.indexOf("end of ")>=0||y.indexOf("Unterminated string")>=0||y.indexOf("Unexpected EOF"));if(!y&&W)for(var V=W.length,w=!1,t=0;t<V;t++)if(w&&W[t]==="\\")t++;else if(W[t]==='"')w=!w;else if(W[t]==="<"&&!w){y=!0;break}return y};
qa4=function(){return document.documentElement.hasAttribute("dark")};
_.UAv=function(y,W){if(y!=="GFEEDBACK"&&y!=="GUIDED_HELP")_.VC(Error("li`"+y));else{var V=_.hs().resolve(_.eX(_.hn));if(V&&(V=V.getCurrentPage())&&V.getServiceTrackingParams&&(V=V.getServiceTrackingParams()))for(var w=0,t;t=V[w++];)if(t.service===y){if(y=t.params)for(V=0;w=y[V++];)W[w.key]=w.value;break}}};
_.u5d=function(y){var W=_.Kn();W&&(W=W.getPlayer())&&(W.pauseVideo(),y.playback_id=W.getVideoData().cpn,y.eid=W.getVideoData().eventId,Object.assign(y,W.getFeedbackProductData()))};
Sab=function(){var y={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.yC("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(y.enableAnonymousFeedback=!0);_.yC("SESSION_INDEX")&&(y.authuser=String(_.yC("SESSION_INDEX")));_.e("enable_pageid_for_feedback")&&_.yC("DELEGATED_SESSION_ID")&&(y.pageId=String(_.yC("DELEGATED_SESSION_ID")));return y};
_.Ep=function(y){_.e("enable_ypc_spinners")&&_.ow(y,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},y])};
_.NE=function(y){_.e("enable_ypc_spinners")&&_.ow(y,"yt-close-popup-action",["yt-loading-renderer"])};
DAt=function(y){return new Promise(function(W,V){_.F2({verifyCommand:{recaptchaToken:y.recaptchaResponse}},{commandController:{onSuccess:function(w,t){t||V("ChallengeService did not return a response.");var F;W({challengeCompleted:(F=t.verified)!=null?F:!1})},
onServerError:function(w,t){V(t)}}})})};
lcu=function(y,W,V,w){W({recaptchaResponse:w}).then(function(t){t.challengeCompleted?_.As()?(V(3),_.hs().resolve(_.oA).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:y}})):V(2):V(4)},function(){V(4)})};
k1v=function(y,W,V){_.ym(_.Tc(xAv,_.yC("HL")),function(){var w;(w=window.grecaptcha)==null||w.ready(function(){var t=window.grecaptcha;t?(V(t.render(y,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:lcu.bind(null,y,DAt,W)})),W(1)):W(4)})})};
s9R=function(y,W){return function(){switch(W()){case 0:return y().captchaLoadingMessage;case 1:return y().challengeReason;case 3:return y().captchaSuccessfulMessage;case 2:return y().captchaCookieSetFailureMessage;case 4:return y().captchaFailedMessage;default:return y().challengeReason}}()};
_.ID=function(){if(!Aed){var y=document.querySelector("#player.skeleton");y&&(_.ku(y),Aed=!0)}};
_.BNG=function(){return Ya4=g5v()};
j9R=function(){return _.g(function(y){return Jet!==void 0?y.return():y.yield(RoL(),0)})};
RoL=function(){return _.g(function(y){if(y.nextAddress==1)return y.yield(Cft(),2);Ya4=y.yieldResult;Jet=_.HU.addLowPriorityJob(RoL,5E3);_.B7(y)})};
G1L=function(y){var W=W===void 0?$Ad:W;var V,w,t=(V=y.responseContext)==null?void 0:(w=V.mainAppWebResponseContext)==null?void 0:w.trackingParam;if(!t){W.increment("MISSING");var F,I,P,C,d,L;_.rQ(new _.Js("282054944_a",{yAu:!!((F=y.responseContext)==null?0:(I=F.mainAppWebResponseContext)==null?0:I.loggedOut),uWY:((P=y.responseContext)==null?void 0:P.mainAppWebResponseContext)===void 0,kDs:y.responseContext===void 0,cp:(C=y.playabilityStatus)==null?void 0:C.contextParams,qj3:(((d=y.streamingData)==
null?void 0:d.formats)||[]).length>0,dOF:(((L=y.streamingData)==null?void 0:L.adaptiveFormats)||[]).length>0,os:!!y.offlineState,cotn:y.cotn}));return 2}V="";try{V=nzG(t)}catch(K){return W.increment("C_ERROR"),_.ap(K),2}try{var z=_.HZv(V);var c=XTP(z)}catch(K){return W.increment("P_ERROR"),_.ap(K),2}c=_.eA(c,acR,1,_.hG());t=[];c=_.N(c);for(z=c.next();!z.done;z=c.next())w=z.value,z=w.getPath(),V=(0,_.Gc.getValueByKeys)(y,z.split(".")),V=String(V===void 0||V===null?"":V),w=w.getValue()||"",F=/[+\-\/_]/g,
V.replace(F,"")!==w.replace(F,"")&&(W.increment("MISMATCH"),_.e("ab_mis_log_err")&&(V=new _.Js("282054944_p",{tsD:z,g:String(V),e:String(w)}),_.ap(V)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(z)||(z.match(/enforcementMessageViewModel/i)?t.push(3):t.push(2)));if(t.length>0)return Math.max.apply(Math,_.GC(t));W.increment("SUCCESS");return 1};
Q9G=function(y){var W=new gx;if(y.interpreterJavascript){var V=_.EAR(y.interpreterJavascript);V=nRd(V).toString();var w=new reL;_.jD(w,6,V);_.sx(W,1,w,nq)}else y.interpreterUrl&&(V=_.X1(y.interpreterUrl),V=_.$R(V).toString(),w=new _.bZz,_.jD(w,4,V),_.sx(W,2,w,nq));y.interpreterHash&&_.Pm(W,3,y.interpreterHash,nq);y.program&&_.Pm(W,4,y.program,nq);y.globalName&&_.Pm(W,5,y.globalName,nq);y.clientExperimentsStateBlob&&_.Pm(W,7,y.clientExperimentsStateBlob,nq);return W};
CV=function(y){var W={};y=_.N(y.split("&"));for(var V=y.next();!V.done;V=y.next())V=V.value.split("="),V.length===2&&(W[V[0]]=V[1]);return W};
ZZu=function(y){return Number(y.t)||7200};
vVP=function(){if(_.e("bg_st_hr"))return"havuokmhhs-0";var y,W=((y=performance)==null?void 0:y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)};
yHu=function(){return new Promise(function(y){var W=window.top;W.ntpevasrs!==void 0?y(new Op(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(V){y(new Op(V))}))})};
WAG=function(y){var W=y.qYH.bind(y);_.dE("yt.aba.att",W);y=y.idy.bind(y);_.dE("yt.aba.att2",y)};
wFy=function(y){switch(_.U1(y.input)){case _.LO(VpR):var W={};return W.encryptedVideoId=y.innerTubeRequest.externalVideoId,W}return{}};
EbP=function(y){switch(_.U1(y.input)){case _.LO(VpR):if(_.e("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.LO(tpG):if(_.e("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.LO(dx):if(_.e("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&y.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.LO(FAz):var W,V;if(_.e("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((V=_.h((W=y.config)==null?void 0:W.command,Thv))==null?0:V.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.IzG=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.engagementBar))return NAP(y.playlistVideoRenderer.engagementBar);if(_.h(y,LV)){var V;if(y=(V=_.h(y,LV))==null?void 0:V.engagementBar)return NAP(y)}return""};
NAP=function(y){if(!y)return"";y=_.h(y,_.gb4);if(y==null||!y.actions)return"";y=_.N(y.actions);for(y=y.next();!y.done;y=y.next()){y=_.h(y.value,_.PDa);var W=void 0;if((W=y)==null||!W.itemId)break;return y.itemId}return""};
_.CDu=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.videoId))return y.playlistVideoRenderer.videoId;if(_.h(y,LV)){var V,w;if(y=(V=_.h(y,LV))==null?void 0:(w=V.playlistItemData)==null?void 0:w.videoId)return y}return""};
_.OSz=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.voteCount))return y.playlistVideoRenderer.voteCount;if(_.h(y,LV)){var V,w;if(y=(V=_.h(y,LV))==null?void 0:(w=V.playlistItemData)==null?void 0:w.voteCount)return y}return 0};
_.zS=function(y,W){return _.UB(y.entities,"flowStateEntity",W)};
dsj=function(y,W,V,w){var t=void 0;y=_.N(y[W.iconName]||[]);for(var F=y.next();!F.done;F=y.next()){F=F.value;var I=W.iconSize;var P=W.iconStyle;I=!I||I===F[2];var C=vbv[F[0]];w&&w!==F[1]||!I||P&&P!==C?P=!1:t?(P=vbv[F[0]],P=!!W.iconStyle||P==="youtube_outline",I=t.version<=F[1],P=(!!W.iconSize||F[2]===24)&&P&&I):P=!0;P&&(t={name:W.iconName,style:vbv[F[0]],size:F[2],version:F[1],allowMirroring:!!F[3],url:V(W.iconName,F)})}return t};
LAy=function(y,W,V,w){return y+(""+vbv[V[0]]+((w===void 0?0:w)?"_experimental":"")+"/"+W+"/v"+V[1]+"/")+(V[2]+"px.svg")};
zVa=function(y){return _.yC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":y};
cHj=function(y,W){return LAy("https://fonts.gstatic.com/s/i/",y,W)};
eV4=function(y,W){return LAy("https://fonts.gstatic.com/s/i/",y,W,!0)};
hVR=function(y,W){return LAy("https://www.gstatic.com/youtube/img/icons/web/",y,W)};
KAa=function(y){var W=y.enabled;var V=y.itemPlaybackModel;var w=y.thumbnailElRef;var t=y.containerElRef;var F=y.options;var I;_.H1(function(){var P=t==null?void 0:t.value;var C,d=(C=w())==null?void 0:C.value;C=V();var L=F();if(W&&C&&P&&d&&(L==null?0:L.thumbnail)){var z={data:C,hostElement:P},c,K,f=_.e("web_explore_hub_on_hover")||_.e("web_client_explore_hub_on_hover")?[].concat(_.GC((c=L.thumbnailOverlays)!=null?c:[]),_.GC((K=C.overlays)!=null?K:[])):L.thumbnailOverlays||[],U,l;P={mediaRenderer:z,
lockupElement:P,thumbnailElement:d,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.tl((U=C.inlinePlayerData)==null?void 0:U.onVisible),navigationEndpoint:_.tl((l=C.inlinePlayerData)==null?void 0:l.onSelect),thumbnail:L.thumbnail,thumbnailOverlays:f,accessibilityText:L.accessibilityText||""},thumbnailSize:L.thumbnailSize,enableRounding:L.enableRounding}}}else P=void 0;if(U=P){var x;(x=I)==null||cm(x);I=NU(U);var B,r;((B=V())==null?0:(r=B.inlinePlayerData)==null?0:r.forceImpAutoplay)&&
obn(I)}},"B33dEc");
_.XT(function(){var P;(P=I)==null||cm(P)})};
pFv=function(y){y=atob(y);for(var W=[],V=0;V<y.length;V++)W.push(y.charCodeAt(V));return new Blob([new Uint8Array(W)],{type:"image/png"})};
fzR=function(y,W,V,w){w=w===void 0?"INSERTION_POSITION_UNSPECIFIED":w;return y({targetId:W},function(t){var F,I=(F=t.contents)!=null?F:[];F=V!=null?V:[];var P=iSv(I);switch(w){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},t,{contents:[].concat(_.GC(I.slice(0,P)),_.GC(F),_.GC(I.slice(P+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},t,{contents:[].concat(_.GC(F),_.GC(I))});case "INSERTION_POSITION_LAST":return Object.assign({},t,{contents:[].concat(_.GC(I),_.GC(F))});
default:return t}})};
msy=function(y,W,V,w,t){t=t===void 0?"RELATIVE_INSERTION_POSITION_AFTER":t;return y({targetId:W},function(F){var I,P=(I=F.contents)!=null?I:[];I=TAt(P,V);if(I<0)return F;I=t==="RELATIVE_INSERTION_POSITION_BEFORE"?I:I+1;return Object.assign({},F,{contents:[].concat(_.GC(P.slice(0,I)),_.GC(w),_.GC(P.slice(I)))})})};
iSv=function(y){var W=y.findIndex(function(V){return _.h(V,_.e3)});
return W>=0?W:y.length};
TAt=function(y,W){return y.findIndex(function(V){a:{V=_.N(Object.values(V));for(var w=V.next();!w.done;w=V.next())if((w=w.value)&&w.targetId){V=w.targetId;break a}V=""}return V===W})};
qwd=function(y,W,V){return y({targetId:W},function(w){var t,F=(t=w.contents)!=null?t:[];return Object.assign({},w,{contents:MpR(F,V)})})};
MpR=function(y,W){return y.filter(function(V){var w=W.includes;a:{V=_.N(Object.values(V));for(var t=V.next();!t.done;t=V.next())if((t=t.value)&&t.targetId){V=t.targetId;break a}V=""}return!w.call(W,V||"")})};
_.UsL=function(y,W){return{engagementPanelSectionListRenderer:{panelIdentifier:y,identifier:W,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.Swv=function(y){var W,V=(W=y.getOption("captions","tracklist",{includeAsr:!0}))!=null?W:[];return V=u8G(V,y)};
Dsj=function(y){return y.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
u8G=function(y,W){W=Dsj(W);if(W==null||!W.length)return y;var V=W.filter(function(I){return I});
W=y.filter(function(I){return I.languageCode.startsWith("en")});
V=_.N(V);for(var w=V.next();!w.done;w=V.next())if(w=w.value,W.length){var t=W[0],F=Object.assign({},t);t.languageCode!==w.languageCode&&(F.displayName=t.languageName+" >> "+w.languageName,F.translationLanguage=w,y.push(F))}return y};
lzG=function(y,W,V){y=_.Swv(y);if(y.length)return V?y.find(function(w){if(typeof(w==null?void 0:w.translationLanguage)==="object"){var t;return((t=w.translationLanguage)==null?void 0:t.languageCode)===W}return!1}):y==null?void 0:y.find(function(w){return w.languageCode===W})};
xsv=function(y){return y.getOption("captions","tracklist",{includeAsr:!0})};
kUv=function(y){return y.getOption("captions","tracklist",{includeAsr:!0})};
sFb=function(y){var W=kUv(y);if(W==null?0:W.length)return W;y.loadModule("captions");return kUv(y)};
AHL=function(y){var W=y.getOption("captions","track");if(W)return W;y.loadModule("captions");return y.getOption("captions","track")};
BA4=function(y){var W=sFb(y);if(W!=null&&W.length){var V=AHL(y),w;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.u5("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(V==null?0:V.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.GC(W.map(function(t){return{listItemViewModel:{title:{content:t.displayName},
isSelected:t.displayName===(V==null?void 0:V.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:t.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.u5("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!V.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!V.translationLanguage&&{selectionText:{content:(V==null?void 0:(w=V.translationLanguage)==null?void 0:w.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ywa(y)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Ywa=function(y){var W=Dsj(y);if(W==null||!W.length)throw Error("Ji");var V=AHL(y);y=W.filter(function(w){return!w.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.GC(y.map(function(w){var t;return{listItemViewModel:{title:{content:w.languageName},isSelected:w.languageName===(V==null?void 0:(t=V.translationLanguage)==null?void 0:t.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:w.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
$sR=function(y){return new Promise(function(W,V){if(y===void 0)_.ap(Error("Ni"),"ERROR"),V(Error("Ni"));else{V=new _.JHu;var w=_.RVL();V=V.init();var t=_.jFb(_.yC("YPC_MB_URL"),!0);Promise.all([V,t]).then(function(){var F=payments.business.integration.ClientTokenFactory.createClientToken(y,w);W(F)})}})};
XFd=function(y,W,V,w,t,F,I){var P=_.v5();V=V.replace(/-/g,"+").replace(/_/g,"/");var C=_.l5().get("hl"),d=_.hD(_.C6),L=W==null?void 0:W.element;L&&_.Ep(L);nbn(W,!0);_.HSR(d,V,P.resolve,function(){L&&_.NE(L)},function(z){L&&_.NE(L);
P.reject(z)},C,w?function(z){w&&_.OP(y,w,{backend_analytics:z})}:void 0,P.resolve,t,F,I);
return P.promise};
nbn=function(y,W){!(y=y==null?void 0:y.element)||y.tagName!=="YT-BUTTON-RENDERER"&&y.tagName!=="YTD-BUTTON-RENDERER"||(y.disabled=W)};
azR=function(){var y=_.u5("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.oB(y),actionButton:{buttonRenderer:CBL()}}},popupType:"TOAST"}};
GUt=function(){var y=_.u5("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.oB(y),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
rHv=function(y){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:y}]}}};
oD=function(y,W,V,w){var t;return _.g(function(F){if(F.nextAddress==1)return _.l7(F,2),F.yield(y,4);if(F.nextAddress!=2)return(t=_.Jz(W.getState().entities).length>0)?F.return({title:_.oB(_.u5("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.oB(_.u5("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:PBL()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
F.return(O_u(V,w));_.YX(F);return F.return(O_u(V,w))})};
bSL=function(y,W){return W?W==="PPSV"||jxL(y,W):!1};
QFz=function(y){y.responseContext||(y.responseContext={});y.responseContext.maxAgeSeconds=0;return y};
pV=function(y){var W;return _.g(function(V){return V.nextAddress==1?V.yield(ZSG(y,"service:topbar:fallback"),2):(W=V.yieldResult)&&_.KV(W)?V.return(QFz(_.KV(W))):V.return()})};
yuv=function(y){var W;return _.g(function(V){return V.nextAddress==1?V.yield(ZSG(y,"service:downloads_settings:fallback"),2):(W=V.yieldResult)&&_.KV(W)?V.return(W):V.return()})};
ZSG=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return y?w.yield(y.get(W),2):w.return();V=w.yieldResult;return!V||!_.KV(V)||!isNaN(Number(V.data.expireTimestampMs))&&V.isExpired()?w.return():w.return(V)})};
Wpn=function(y){var W=_.hs().resolve(ma).getState().entities;return y.playlistId?bSL(W,y.playlistId):!1};
V2n=function(y,W){var V;if(W==null?0:(V=W.requestTemplate)==null?0:V.panelId)y.panelId=W.requestTemplate.panelId;var w;if(W==null?0:(w=W.requestTemplate)==null?0:w.params)y.params=W.requestTemplate.params};
t2v=function(){if(w$G)return w$G();var y=!_.e("idb_response_store_auth_killswitch"),W={};w$G=zp("yt-it-response-store",{objectStores:(W.ResponseStore={addedAtVersion:1},W),shared:!y,upgrade:function(V,w){w(1)&&(V=VT(V,"ResponseStore",{keyPath:["key","clientName"]}),wQ(V,"byExpiration","expireTimestampMs"),wQ(V,"byInterface","clientName"))},
version:1});return w$G()};
Fpv=function(y){return _.IV(t2v(),y)};
Nnv=function(y,W){var V;return _.g(function(w){return w.nextAddress==1?w.yield(_.LA(),2):(V=w.yieldResult)?w.return(new E8G(y,W,V)):w.return()})};
I_z=function(y){var W=Object.keys(y)[0];if(W)return y.screenExit&&(W=W+";"+y.screenExit.screen),W};
g84=function(y){var W=new Map;y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,V!=null&&(W.has(V.taskType)||W.set(V.taskType,[]),W.get(V.taskType).push(V));return W};
P3t=function(y){return!isNaN(y)&&y>0};
C3u=function(y){y=[].concat(_.GC(y)).sort(function(V,w){return V-w});
var W=Math.floor(y.length/2);return y.length%2?y[W]:(y[W-1]+y[W])/2};
dZt=function(y,W){y=y===void 0?Z5R:y;W=W===void 0?{}:W;_.dE("yt.logging.errors.log",_.ap);b5d();Ofd(tfa(),W);window.onerror=y;v8y=QdL;window.addEventListener("unhandledrejection",function(V){if(V.reason instanceof Error){var w=V.reason;_.bb(w,{source:"unhandledrejection"});w.name==="AbortError"&&(w.level="WARNING")}QdL(V.reason);V.preventDefault()})};
_.Lpj=function(y){return y.a11y.ephemeralAction||null};
_.zav=function(y){var W,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py,du,mL,un,hv,$P,sz,Wz,mf,OE,Qj,Kq,zR,l2,lt,yu,Na;return _.g(function(F6){if(F6.nextAddress==1)return F6.yield(_.kC(y,{mode:"readonly",enableRetries:!0},function(TR){return sB(TR,"playbackData").then(function(eP){var hA=eP.map(function(Pz){return Pz.transfer}).filter(function(Pz){return!!Pz}),jQ=eP.map(function(Pz){return Pz.offlineVideoPolicy}).filter(function(Pz){return!!Pz}),Fy=eP.filter(function(Pz){return!!Pz.key}).map(function(Pz){return _.qK(_.T4(Pz.key).entityId,
"downloadStatusEntity")});
hA=sB(TR,"transfer",hA);jQ=sB(TR,"offlineVideoPolicy",jQ);Fy=sB(TR,"downloadStatusEntity",Fy);var Wd=hA.then(function(Pz){Pz=Pz.reduce(function(b2,vd){(vd==null?0:vd.offlineVideoStreams)&&b2.push.apply(b2,_.GC(vd.offlineVideoStreams));return b2},[]).filter(function(b2){return!!b2});
return sB(TR,"offlineVideoStreams",Pz)});
return Vi.all([hA,jQ,Wd,Fy]).then(function(Pz){var b2=_.N(Pz);Pz=b2.next().value;var vd=b2.next().value;var Mr=b2.next().value;b2=b2.next().value;return[eP,Pz,vd,Mr,b2]})})}),2);
if(F6.nextAddress!=3)return W=F6.yieldResult,F6.yield(_.kC(y,{mode:"readonly",enableRetries:!0},function(TR){return sB(TR,"mainDownloadsListEntity").then(function(eP){var hA,jQ;return(jQ=(hA=eP[0])==null?void 0:hA.downloads)!=null?jQ:[]})}),3);
V=F6.yieldResult;w=_.N(W);t=w.next().value;F=w.next().value;I=w.next().value;P=w.next().value;C=w.next().value;d=t;L=F;z=I;c=P;K=C;f={};U={};l={};x={};B={};r=[];H=_.N(L);for(a=H.next();!a.done;a=H.next())(b=a.value)&&(f[b.key]=b);Fv=_.N(z);for(Py=Fv.next();!Py.done;Py=Fv.next())(du=Py.value)&&(U[du.key]=du);mL=_.N(K);for(un=mL.next();!un.done;un=mL.next())(hv=un.value)&&(l[hv.key]=hv);$P=_.N(c);for(sz=$P.next();!sz.done;sz=$P.next())(Wz=sz.value)&&(x[Wz.key]=Wz);mf=_.N(V);for(OE=mf.next();!OE.done;OE=
mf.next())Qj=OE.value,Kq=void 0,B[(Kq=Qj.videoItem)!=null?Kq:""]=!0,Qj.videoItem&&(l2=zR=void 0,lt=(l2=(zR=_.T4(Qj.videoItem))==null?void 0:zR.entityId)!=null?l2:"",r.push({externalVideoId:lt}));yu=d.filter(function(TR){if(!TR||!TR.key||!TR.offlineVideoPolicy)return!1;TR=_.T4(TR.key).entityId;TR=_.qK(TR,"downloadStatusEntity");var eP;return!(TR&&((eP=l[TR])==null?void 0:eP.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Na=yu.map(function(TR){var eP=f[TR.transfer],hA=[];if(eP==null?0:eP.offlineVideoStreams)for(var jQ=_.N(eP.offlineVideoStreams),Fy=jQ.next();!Fy.done;Fy=jQ.next())(Fy=x[Fy.value])&&hA.push(Fy);jQ=U[TR.offlineVideoPolicy];Fy=B;var Wd=TR==null?void 0:TR.playerResponseTimestamp,Pz=_.T4(jQ.key).entityId;TR=_.qK(Pz,"mainVideoEntity");if(jQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var b2="OFFLINE_VIDEO_STATE_DISABLED";jQ.expirationTimestamp&&Number(jQ.expirationTimestamp)<Date.now()/1E3&&(b2="OFFLINE_VIDEO_STATE_EXPIRED")}else if(jQ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")b2="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(eP==null?void 0:eP.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":b2="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":b2="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":b2="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":b2="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":b2="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":b2="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:b2="OFFLINE_VIDEO_STATE_UNKNOWN"}if(b2==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(eP==null?void 0:eP.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":b2="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":b2="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":b2=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Pz={id:Pz,videoState:b2};if(eP==null?0:eP.cotn)Pz.cotn=eP.cotn;if(eP==null?0:eP.maximumDownloadQuality)Pz.selectedVideoQuality=eP==null?void 0:eP.maximumDownloadQuality;if(eP==null?0:eP.lastProgressTimeMs)Pz.lastProgressTimeMs=eP.lastProgressTimeMs;Wd&&(Pz.playerResponseSavedTimeMs=String(Number(Wd)*1E3));eP=String;Wd=0;hA=_.N(hA);for(b2=hA.next();!b2.done;b2=hA.next())if(b2=b2.value,b2.streamsProgress){b2=_.N(b2.streamsProgress);for(var vd=b2.next();!vd.done;vd=
b2.next()){var Mr=void 0;Wd+=Number((Mr=vd.value.numBytesDownloaded)!=null?Mr:0)}}Pz.downloadedBytes=eP(Wd);Pz.selectedOfflineMode=Fy[TR]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";jQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Pz.offlinePlaybackDisabledReason=jQ.offlinePlaybackDisabledReason);return Pz});
return F6.return({offlineVideos:Na,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:r}}})})};
cun=function(){var y;return _.g(function(W){return W.nextAddress==1?W.yield(_.DH(),2):(y=W.yieldResult)?W.return(_.zav(y)):W.return({state:"PES Unavailable"})})};
o8n=function(){var y,W,V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(_.DH(),2);if(t.nextAddress!=3)return(y=t.yieldResult)?t.yield(ea4(y),3):t.return({state:"PES Unavailable"});W=t.yieldResult;V={};w=W.reduce(function(F,I){F[I.key]=I;return F},V);
return t.return(haz(w))})};
haz=function(y){for(var W={},V=[],w=_.N(Object.keys(y)),t=w.next();!t.done;t=w.next()){var F=t.value;t=y[F];var I=void 0;if(((I=t)==null?void 0:I.entityType)==="mainVideoEntity"){delete y[F];var P=t.data;t={};if(P){var C=void 0;I=(C=P.videoId)!=null?C:"vid-"+F;F=y;t.video=P;delete t.video.formattedDescription;delete t.video.thumbnail;P.owner&&(C=F[P.owner],C==null?0:C.data)&&(delete F[C.key],t.video.owner=C.data,delete t.video.owner.avatar);if(P=P.downloadState)if(C=F[P],C==null?0:C.data)if(delete F[P],
P=C.data.playbackData)if(C=F[P],C!=null&&C.data){delete F[P];P=C.data;delete P.playerResponseJson;t.playbackData=P;if(P.transfer&&(C=F[P.transfer],C==null?0:C.data)){delete F[C.key];var d=C.data;t.transfer=d;C=[];d=_.N(d.offlineVideoStreams||[]);for(var L=d.next();!L.done;L=d.next())if(L=F[L.value])delete F[L.key],C.push(L.data);C&&(t.streams=C)}(P=P.offlineVideoPolicy)&&(P=F[P])&&P.data&&(delete F[P.key],t.offlineVideoPolicy=P.data)}W[I]=t}}else t&&t.entityType==="offlineOrchestrationActionWrapperEntity"&&
t.data&&(delete y[t.key],I=t.data,F=void 0,V.push({id:I.rootActionId,type:((F=I.actionProto)==null?void 0:F.actionType)||"",entity:t}))}W.wrapperEntities=V;Object.keys(y).length>0&&(W.unknownKeys=y);return W};
Kpv=function(){var y,W,V,w,t,F,I,P,C;return _.g(function(d){if(d.nextAddress==1)return y=!!(new _.Zb("")).expiringStorage_,w=!!((W=_.Vj.crypto)==null?0:(V=W.subtle)==null?0:V.importKey),t=!!_.Vj.BroadcastChannel,F=!!_.Vj.navigator.locks,d.yield(UKn(),2);I=d.yieldResult;P=y&&w&&t&&F&&I;C={isSupported:P};if(P)return d.return(C);C.missingBrowserFeatures=[];I||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");y||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
w||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");t||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");F||C.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return d.return(C)})};
p$4=function(){var y;return!((y=ME?ME:null)==null||!y.window)};
_.f_n=function(y){if(_.S4()&&_.Cna("Chromium")>=120){var W=_.ifR().mediaSession;try{W.setActionHandler("enterpictureinpicture",function(){y()})}catch(V){}}};
Tna=function(y){for(var W=[],V=_.N(document.styleSheets),w=V.next(),t={};!w.done;t={node$jscomp$731:void 0},w=V.next())t.node$jscomp$731=w.value.ownerNode,t.node$jscomp$731&&(t.node$jscomp$731 instanceof HTMLStyleElement||t.node$jscomp$731 instanceof HTMLLinkElement)&&W.push(new Promise(function(F){return function(I){var P=F.node$jscomp$731.cloneNode(!0);P.onload=function(){I()};
P.onerror=function(){_.rQ(Error("pj"));I()};
y.document.head.appendChild(P)}}(t)));
return Promise.all(W)};
kHu=function(y){var W=[_.ij(mZG),_.ij(M2L),_.ij(qdR)];UZR(window.document.documentElement,y.document.documentElement,[_.ij(uGG),_.ij(Sdu),_.ij(DZR),_.ij(l_y),_.ij(xZj)]);UZR(window.document.body,y.document.body,W)};
UZR=function(y,W,V){y=_.N(y.attributes);for(var w=y.next();!w.done;w=y.next())if(w=w.value)try{_.em(V,W,w.name,w.value)}catch(t){}};
AuL=function(y,W){y=new _.qE(y.document.documentElement);y.start(sOb,W);return y};
Ydz=function(y){var W=y.document.documentElement;W.addEventListener("click",function(V){x7d(W,V)});
W.addEventListener("touchstart",function(V){BCt(V)});
W.addEventListener("mousedown",function(V){BCt(V)})};
Jun=function(y,W,V,w){w=w===void 0?!1:w;W=new BnP(W||y,V||y);return{x:y.x+((w===void 0?0:w)?W.lengthX*-1:W.lengthX)*.2,y:y.y+((w===void 0?0:w)?W.lengthY*-1:W.lengthY)*.2}};
RaL=function(y){if(!y)return!1;var W=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",V,w,t,F=(t=(V=y.errorScreen)==null?void 0:V.playerLegacyDesktopYpcTrailerRenderer)!=null?t:(w=y.errorScreen)==null?void 0:w.ypcTrailerRenderer;return!!W||!!F};
_.jOv=function(y,W){if(!y)return!1;var V,w=(V=y.errorScreen)==null?void 0:V.playerLegacyDesktopYpcOfferRenderer,t;W=!!(W==null?0:(t=W.playerOverlayRenderer)==null?0:t.gatedActionsOverlayRenderer);return!!RaL(y)||!!w||!!W};
Hfn=function(y){return $Zb(y,0,"gclid",y.search(n8P))>=0||$Zb(y,0,"gad_source",y.search(n8P))>=0};
X$P=function(y){var W=[],V=0;return{clear:function(){V=W.length=0},
push:function(w){W[V]=w;V=(V+1)%y},
iterate:function(){return function t(){var F,I,P,C;return _.Up(t,function(d){switch(d.nextAddress){case 1:_.sc(d,2),F=W.length,I=0;case 4:if(!(I<F)){d.jumpTo(2);break}P=V+I;C=_.uw;return d.yield(W[P%F],7);case 7:C(d.yieldResult);I++;d.jumpTo(4);break;case 2:_.kX(d),_.AX(d,0)}})}()}}};
GHd=function(){var y=a_j,W=cC.bufferSize;y||(y=[]);y=y.map(HWd);var V=new Set(y),w=X$P(W);return{flush:function(){var t=Array.from(w.iterate());w.clear();t=t.map(function(F){return{name:F.name,timestamp:F.startTime,attributes:F.attributes}});
return JSON.stringify(t)},
onSpanStart:function(t){t.name==="event"&&V.has(t.attributes.type)||w.push(t)}}};
rua=function(){var y=GHd(),W=y.flush;ofL({onSpanStart:y.onSpanStart});gny.subscribe("handleError",function(V){try{V.params.breadcrumbs=W()}catch(w){_.ap(w,"WARNING")}})};
bfn=function(y,W,V){var w=y.endTime;if(w==null)throw Error("rj");var t=y.name,F={};w-=y.startTime;var I=y.startTime;F={webTracing:(F[t]=y.attributes,F)};V=_.wi(knu)(t,w,I,F,V,W);if(y.children)for(y=_.N(y.children),t=y.next();!t.done;t=y.next())bfn(t.value,W,V)};
Zfz=function(){for(var y={},W=_.N(cC.enabledSpansArray),V=W.next();!V.done;V=W.next())y[V.value]=!0;if(cC.exportToCsi||cC.exportBreadcrumbs)y={enabledSpans:y},z4={sessionId:y.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:y.enabledSpans};cC.exportBreadcrumbs&&rua();cC.exportToCsi&&ofL(QOn)};
y6y=function(y){return new Promise(function(W){window.setTimeout(W,y)})};
Wtu=function(y){var W={bicf:function(F){y.zvu=F},
blc:function(){return y.getLatestChallengeResponse()},
bcr:function(F){y.cfL.push(F)}},V=window.top;
V.ntpevasrs=W;if(V.ntpqfbel!==void 0)for(var w=_.N(V.ntpqfbel),t=w.next();!t.done;t=w.next())t=t.value,t(W);V.ntpqfbel=void 0};
VuG=function(y){return _.g(function(W){if(W.nextAddress==1)return _.l7(W,2),W.yield(y.zT4(),4);if(W.nextAddress!=2)return _.E6(W,0);_.YX(W);_.B7(W)})};
wiP=function(y){var W,V;(W=y.ytcsi)==null||(V=W.tick)==null||V.call(W,"pot_ist")};
tut=function(y){if(y instanceof Error){var W=_.ts("yt.logging.errors.log");W&&W(y,"WARNING")}};
Ftv=function(y){try{var W=JSON.parse(y);if(W.bgChallenge)return W}catch(V){}};
NqR=function(){var y=window,W={networkStatusManagerPromise:_.hs().resolve(new OgP(_.NN)),initialChallengeSli:_.e("wpo_att_sli")?new _.hEL("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};y=y===void 0?window:y;var V=y.ytAtR,w;W==null||(w=W.initialChallengeSli)==null||_.S3(w);if(V){if(V=Ftv(V)){var t;W==null||(t=W.initialChallengeSli)==null||_.DE(t,"SUCCESS");Elv(V,W)}y.ytAtR=void 0}else y.ytAtRC=function(F){if(F=Ftv(F)){var I;W==null||(I=W.initialChallengeSli)==null||
_.DE(I,"SUCCESS");Elv(F,W);y.ytAtRC=void 0}}};
PLu=function(){if(Ivv)return Ivv;try{var y=_.xu("IFRAME");_.g$(y,_.Tc(glv));y.sandbox.add("allow-same-origin");y.style.display="none";document.body.appendChild(y);return Ivv=y}catch(W){y=new _.Js("Failed to create sandbox iframe"),_.ap(y)}};
CLa=function(y){var W,V;return(V=y==null?void 0:(W=y.contentWindow)==null?void 0:W.fetch)!=null?V:window.fetch};
OEu=function(y){var W,V;return(V=y==null?void 0:(W=y.contentWindow)==null?void 0:W.JSON.parse)!=null?V:JSON.parse};
vlu=function(y){var W,V;return(V=y==null?void 0:(W=y.contentWindow)==null?void 0:W.Request)!=null?V:window.Request};
dmv=function(y){var W,V;return(V=y==null?void 0:(W=y.contentWindow)==null?void 0:W.TextDecoder)!=null?V:window.TextDecoder};
Ltz=function(){return function(y,W){_.yC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[y]=W}};
zun=function(){return function(y,W){var V={};V[y]=W;y=_.wi(_.lGz)(V);Object.keys(y).length>0&&_.HN(y)}};
huz=function(){if(KMz()==="hidden")var y="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else KMz()==="visible"&&(y="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",c6y=null);y&&euP(y)};
euP=function(y){if(y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(olz===y)return;olz=y}var W=9E4+Math.random()*2E3;if(y!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.es()>W)&&KMz()==="visible"){W=-1;c6y&&(W=Math.round((0,_.cU)()-c6y));var V=String;var w=_.ts("_fact",window);w=w==null||w==-1?-1:Math.max(Date.now()-w,0);_.Hp("foregroundHeartbeat",{firstActivityMs:V(w),clientDocumentNonce:WFL,index:String(Ktn),lastEventDeltaMs:String(W),trigger:y});
_.dE("_fact",-1,window);Ktn++;c6y=(0,_.cU)()}};
_.piy=function(){try{return!!self.sessionStorage}catch(y){return!1}};
iER=function(){var y=navigator;return new Promise(function(W,V){var w;(w=y.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?y.webkitTemporaryStorage.queryUsageAndQuota(function(t,F){W({usage:t,quota:F})},function(t){V(t)}):V(Error("zj"))})};
fvv=function(y,W){var V={errorSeverity:W.errorSeverity.toString(),wizFeatureFlags:Object.entries(W.featureFlags).join("\n")};rlP(W,V);W=W.errorSeverity;W===3?_.ap(y,"ERROR",void 0,void 0,void 0,V):W===2&&_.ap(y,"WARNING",void 0,void 0,void 0,V);_.e("cow_if_errors_in_popup")&&W===3&&y.message.indexOf("<If>")!==-1&&window.alert(y.message)};
Tqy=function(y,W){var V=L2.get(y)||{layerNode:W};V.layerNode=W;eKb(y,V);y.getScreenLayer=function(){return lw(V.layerNode)}};
mm4=function(y){var W;y=y.parentNode;for(var V;y&&((W=L2.get(y))==null||!W.isRenderer)&&!((V=y.polymerController)!=null?V:y).isRenderer_;)y=y.parentNode||y.host;if(W=y)return L2.get(W)};
MuR=function(y){if(y){L2.delete(y);var W=_.hs().resolve(dS);ptP(y,W)}};
Umn=function(y,W,V){if(V===void 0?0:V){if(V=y.getAttribute("client-ve-type"),W.data&&!W.disableReactiveLogging||V)_.rf(function(){qDL(y,_.Gt(W.data))}),_.XT(function(){return void MuR(y)})}else typeof W.data!=="function"&&qDL(y,W.data)};
qDL=function(y,W){uLP++;SDL(y,W)&&_.HU.addJob(function(){_.b8(_.HU,function(){if(SDL(y,W)&&y.ownerDocument.documentElement===document.documentElement&&y){var V;if(y.getAttribute("layer")){var w=V=Number(y.getAttribute("layer")),t=L2.get(y);t?t.layerNode.layer=w:Tqy(y,new DmR(w));(w=mm4(y))&&(t=L2.get(y))!=null&&(t.layerNode.parent=w.layerNode)}else if(V=L2.get(y))V=lw(V.layerNode);else{V=lw;w=new DmR;if(t=mm4(y))w.parent=t.layerNode;Tqy(y,w);V=V(w)}V!=null||(V=0);w=y.getAttribute("client-ve-type");
t=Number(w);var F=!1;w=!1;var I=L2.get(y),P;if((P=I)&&!(P=I[lvz]!==W)&&(P=t)){var C;P=((C=L2.get(y))==null?void 0:C.clientVeType)===void 0}P&&(I[lvz]=W,F=w=I.isRenderer=!0);L2.has(y)&&(L2.get(y).clientVeType=t);y.visualElement&&(w=!0);if(_.e("wiz_next_ld_fix_client_ve_spec")){var d;C=((d=_.h(W==null?void 0:W.rendererContext,_.JY))==null?void 0:d.loggingDirectives)||(W==null?void 0:W.loggingDirectives)}else C=W==null?void 0:W.loggingDirectives;C&&C.clientVeSpec&&(d=xmP(_.AY(),y),d=_.kOa(_.BC(),C,d||
void 0,V))&&(y.visualElement=d);!y.visualElement&&t&&F&&(y.veType=t,d=void 0,_.e("wiz_next_client_ve_parent_fix")&&(d=xmP(_.AY(),y)),d=_.Yc(_.BC(),y,d,V),y.visualElement=d);w&&(d=_.hs().resolve(dS),mtn(y,{data:W,observer:d,layer:V,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
SDL=function(y,W){return(W==null?0:W.trackingParams)||(W==null?0:W.loggingDirectives)||_.h(W==null?void 0:W.rendererContext,_.JY)||y.getAttribute("client-ve-type")?!0:!1};
sCv=function(y,W,V){y.componentType!==B1&&V instanceof HTMLElement&&W&&!_.e("cow_logging_in_component_wrapper")&&Umn(V,W,!0)};
jCv=function(){if(!A6j){A6j=!0;var y=Object.assign({},{enableLazyTsx:_.e("mweb_enable_wiz_lazy_tsx")||_.e("kevlar_enable_wiz_lazy_tsx")||_.e("creator_enable_wiz_lazy_tsx")||YDy,flushRenderEffectsDuringRender:!0},{handleError:fvv,enableComponentStacksInErrorMessages:!1});Object.assign(eH,y);vyb=Bqu;J6u();eDG=nZv;LNR=HNy;_.e("ytwiz_enable_debug_component_props")&&(y=document.body.firstElementChild,window.ng||y.__ngContext__||(y.__ngContext__={},y.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
Rud))}};
J6u=function(){_.e("cow_logging_in_component_wrapper")?(yEP=function(y,W){W instanceof HTMLElement&&Umn(W,y,!0)},VKu=function(){}):(yEP=function(){},VKu=sCv)};
$mt=function(y,W,V){W=W===void 0?{}:W;var w,t=(w=_.h(y.commandMetadata,_.dw))==null?void 0:w.url;w=W.form||{};!V||w.element||w.skipDefaultElement||(W.form=W.form||{},W.form.element=V);if(t&&t!=="/service_ajax")return{type:0,command:y,form:W.form};if(_.e("kevlar_service_command_check")){if(_.Cn(_.hs().resolve(_.QY),y))return Object.assign({},{type:1,command:y},W)}else{var F;if((F=_.h(y.commandMetadata,_.dw))==null?0:F.apiUrl)return Object.assign({},{type:1,command:y},W)}return{type:2,command:y,form:W.form}};
nlt=function(y){if(y.form){var W=y.form,V=Object.assign({},W);W=W.element;V=(delete V.element,V);if(W)return[_.i5(W,[y.command,V,y.commandController])]}return[]};
HEj=function(y){if(y.form){var W=y.form,V=Object.assign({},W);W=W.element;V=(delete V.element,V);W&&_.fg(W,[y.command],W,V)}};
avy=function(y,W,V){var w=new Xiv(y,W),t=new xU(y,W,V);y={"/youtubei/v1/browse":new kU(y,W,V),"/youtubei/v1/player":w,"/youtubei/v1/navigation/resolve_url":new sp,"/youtubei/v1/next":t,"/youtubei/v1/guide":new AD(V),"/youtubei/v1/search":new YU(y,W,V),"/youtubei/v1/reel/reel_item_watch":new Bm(y,W,V),"/youtubei/v1/get_watch":new JD(w,t)};y["/youtubei/v1/account/account_menu"]=new RD;y["/youtubei/v1/notification/get_notification_menu"]=new j3;return y};
nV=function(){var y=_.hs().resolve($U);return Promise.resolve(GOG(y,_.Vj.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
r6z=function(y){return y&&(y=_.Hm(_.IFz(y)))?(new URLSearchParams(y)).get("service"):null};
GS=function(y,W){_.q4(_.Xu(),function(){_.aw("adl")});
_.hs().resolve(bEt)(W);y=y.root;y.loadData&&y.loadData(W);(W==null?0:W.response)?_.DE(psu(),"SUCCESS"):_.rQ(new _.Js("Lifecycle: No response in data",_.W4("IS_SHELL_LOAD"),W?W.page:"NO_PAGE",W?W.endpoint:"NO_ENDPOINT"));y.polymerController.$["page-manager"].lazyPrepareCriticalPages((W==null?void 0:W.page)||"",W.endpoint);var V,w;((w=_.h(W==null?void 0:(V=W.endpoint)==null?void 0:V.commandMetadata,_.dw))==null?0:w.webPageType)&&_.dP().dispatch(_.aD(_.h(W.endpoint.commandMetadata,_.dw).webPageType))};
QCa=function(){var y,W;return _.g(function(V){switch(V.nextAddress){case 1:y=window;if(!y.getDataPromise){V.jumpTo(2);break}_.l7(V,3);return V.yield(y.getDataPromise(),5);case 5:return V.return(V.yieldResult);case 3:return _.YX(V),V.yield(nV(),6);case 6:return V.return(V.yieldResult);case 2:if(y.getInitialData)return W=y.getInitialData(),y.getInitialData=void 0,V.return(W);throw Error("Bj`"+_.Vj.location.href);}})};
yN4=function(){_.Z7("CSI_SERVICE_NAME","youtube");_.HN({loadType:"cold"});_.e("kevlar_log_lcp")&&ZEt(function(y){_.aw("lcp",y.value)})};
WWu=function(){var y=_.to(document.location.href,"enable");y&&y.indexOf("scraper")>-1&&_.Z7("ADD_SCRAPER_ATTRIBUTES",!0)};
Exv=function(y){var W=y.root;y=[Van,wcR,_.rx];_.e("web_feedback_endpoint_autolog_allowlist_killswitch")&&y.push(_.bw,taR);FWy(function(V,w){return $mt(V,w,W)},function(V){if(!V.command)return[];
var w;((w=V.form)==null?0:w.element)?V.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},V.form,{endpoint:V.command})})):W.handleNavigate(V);return[]},y);
_.hs().addProvider({provide:_.oA,useValue:_.xc.instance})};
IDv=function(){var y={},W={},V;for(V in Nrv){var w=_.N(_.M1(Nrv[V],void 0,"NBH2te"));y[V]=w.next().value;W[V]=w.next().value}return[y,function(t){for(var F in t){var I=void 0;(I=W[F])==null||I(t[F])}}]};
_.C1y=function(y,W){var V=!1;V=V===void 0?!1:V;var w=_.Gc.getValueByKeys(y,"contents","twoColumnWatchNextResults","results","results","contents"),t=_.Gc.getValueByKeys(y,"contents","twoColumnWatchNextResults","playlist","playlist")||null;V&&(t=null);var F=V=null;if(t)V=_.Gc.getValueByKeys(t,"titleText"),F=_.Gc.unsafeClone(_.Gc.getValueByKeys(t,"longBylineText")),w="",F&&(w=_.OT(F)),F=_.CO(w);else if(w){w=_.N(w);for(var I=w.next();!I.done;I=w.next())I=I.value,I.videoPrimaryInfoRenderer&&(V=_.Gc.getValueByKeys.apply(_.Gc,
[I].concat(_.GC(gxd)))),I.videoSecondaryInfoRenderer&&(F=_.Gc.getValueByKeys.apply(_.Gc,[I].concat(_.GC(P1n))))}else _.FU(Error("Gj"));var P;y.currentVideoEndpoint?P=y.currentVideoEndpoint:_.FU(Error("Hj"));var C;W&&(C=_.Gc.getValueByKeys(W,"playabilityStatus","miniplayer","miniplayerRenderer"));y={miniplayerTitle:V,miniplayerSubtitle:F,watchEndpoint:P,playlistData:t};C&&(y.miniplayerRenderer=C);return y};
OxG=function(y){if(y)return _.y4(y)};
_.vxn=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
d6u=function(y){return y.videoDuration?y.numTaps>1&&y.tapDirection!==0?_.QW(y.draggedTime/y.videoDuration,0,1):_.QW((y.playedTime||0)/y.videoDuration,0,1):0};
LWP=function(y){return y.videoDuration?y.isDragging||y.numTaps>1&&y.tapDirection!==0?_.QW(y.draggedTime/y.videoDuration,0,1):_.QW((y.playedTime||0)/y.videoDuration,0,1):0};
cNG=function(y){var W,V,w;return _.h(y==null?void 0:(W=y.markersMap)==null?void 0:(V=W.find(function(t){return t.key==="HEATSEEKER"}))==null?void 0:(w=V.value)==null?void 0:w.heatmap,zBd)};
eBd=function(y){var W,V;return(V=(W=cNG(y))==null?void 0:W.heatMarkersDecorations)!=null?V:[]};
hBL=function(y){if(_.e("mweb_supported_chapters_killswitch"))return!0;var W;return!!(y==null?0:(W=y.markersMap)==null?0:W.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))};
_.oxv=function(y){var W=Object,V=W.assign,w;y={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(w=y==null?void 0:y.getPlayerState())!=null?w:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return V.call(W,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},y,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
KW4=function(y){return function(W){var V=y(),w,t=(w=V.playerApi)==null?void 0:w.getPlayerState();W&&W!==V.playerState&&(W===1||W===2)&&V.setState({playerState:t})}};
ixu=function(y){return function(W){var V=y(),w=V.playerApi;w&&(W==null?void 0:W.type)==="newdata"&&(pcu&&(clearTimeout(pcu),pcu=void 0),_.e("web_shorts_use_progress_state_for_gapless")?(W=w==null?void 0:w.getProgressState(W==null?void 0:W.playertype),W=W.seekableEnd-W.seekableStart):W=w==null?void 0:w.getDuration(W==null?void 0:W.playertype),V.setState({playedTime:0,videoDuration:W}))}};
fDz=function(y){return function(W){var V=y(),w=V.playerApi;if(w){var t=w.getPresentingPlayerType();_.e("web_shorts_use_progress_state_for_gapless")?(w=w.getProgressState(t),w=w.seekableEnd-w.seekableStart):w=w.getDuration(t);V.setState({playedTime:W,videoDuration:w})}}};
m6z=function(y){_.at(112394,y,function(){return Trz},function(W){Trz=W})};
U6R=function(y,W){if(!y)return[];var V,w,t;y=((V=y.markersMap)==null?void 0:(w=V.find(function(F){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(F.key)}))==null?void 0:(t=w.value)==null?void 0:t.chapters)||[];
!Maz(y)||(W==null?0:W.ignoreStub)||(y=[qlv()].concat(_.GC(y)));return y};
qlv=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Maz=function(y){if(y.length===0)return!1;var W;return((W=_.h(y[0],ZE))==null?void 0:W.timeRangeStartMillis)!==0};
yH=function(y){return y?y.timeRangeStartMillis||0:0};
Slb=function(y,W){if(y.isDragging&&W)return y=umd(y,W),y===-1?qlv():U6R(W)[y]};
umd=function(y,W){return y.isDragging&&W?U6R(W,{ignoreStub:!0}).findIndex(function(V,w,t){V=D6n(y);return lDn(V,t,w).scrubberHovering}):-1};
D6n=function(y){return Object.assign({},y,{videoDuration:y.videoDuration*1E3,playedTime:y.playedTime*1E3,draggedTime:y.draggedTime*1E3})};
lDn=function(y,W,V){var w=yH(_.h(W[V],ZE));W=yH(_.h(W[V+1],ZE))||y.videoDuration;V=y.isDragging;var t;if(t=y.isDragging)t=y.draggedTime,t=t!==null&&t>=w&&t<W;var F=y.playedTime;return F!==null&&F>=w&&F<W?{videoPosition:"active",isScrubbing:V,scrubberHovering:t}:y.playedTime<w?{videoPosition:"pending",isScrubbing:V,scrubberHovering:t}:{videoPosition:"seen",isScrubbing:V,scrubberHovering:t}};
x6z=function(y,W){return y.videoPosition==="seen"||(W===void 0?0:W)>0};
kKn=function(y,W,V){W=y/W.storyboardInterval;var w=U6R(V);if(!w.length)return-W*72;V=0;w=_.N(w);for(var t=w.next();!t.done;t=w.next())if(yH(_.h(t.value,ZE))/1E3<y)V++;else break;return-(W*72)-V*56};
sZn=function(y){return y?y.width/y.columns:0};
ANR=function(y){return y.isHovering?y.hoveredTime:y.draggedTime};
Ylz=function(y,W){y=y.draggedTime*1E3;return y>=W.visibleTimeRangeStartMillis&&y<=W.visibleTimeRangeEndMillis};
_.Brv=function(y){if(y===void 0||Number.isNaN(y))return"--:--";var W=Math.abs(Math.floor(y)),V=Math.floor(W/86400),w=Math.floor(W%86400/3600),t=Math.floor(W%3600/60);W=Math.floor(W%60);var F="";V>0&&(F+=V+":",w<10&&(F+="0"));if(V>0||w>0)F+=w+":",t<10&&(F+="0");F+=t+":";W<10&&(F+="0");F+=W;return y>=0?F:"-"+F};
JNn=function(y,W){return function(){var V=ANR(y());var w=W();var t=y().playerApi;if(t&&t.getNumberOfStoryboardLevels()!==0){var F=t.getStoryboardFrameIndex(V,1);F!==-1?w=t.getStoryboardFrame(F,1):(V=t.getStoryboardFrameIndex(V,0),t=t.getStoryboardFrame(V,0),w&&t&&(t.height*=3,t.width*=3),w=t)}else w=null;if(!w)return null;W()&&(w.width=90*w.columns,w.height=160*w.rows);return w}};
_.WX=function(y){if(!y||y.getVideoData)return y};
RBG=function(){var y;return{playerApi:(y=_.Sf())!=null?y:void 0}};
jZj=function(y){var W;_.g(function(V){if(V.nextAddress==1)return V.yield(_.u8(),2);if(W=V.yieldResult)W.unMute(!0),W.setVolume(y,!0);_.B7(V)})};
$6v=function(y,W){y&&(y.value=""+W,y.style.setProperty("--gradient-percent",W+"%"))};
nxa=function(y){var W;return(W=y==null?void 0:y.value)!=null?W:0};
Hxu=function(){var y;_.g(function(W){if(W.nextAddress==1)return W.yield(_.u8(),2);y=W.yieldResult;if(!y)return W.return();y.isMuted()?y.unMute(!0):y.mute(!0);_.B7(W)})};
Xcb=function(y){var W=_.hs().resolve(_.VH).getPlayerElement();W&&y&&(y===1?W.pause():W.play())};
aD4=function(y){_.Kg(y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
GKd=function(y){_.Kg(y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
bxL=function(y){return _.nG(y.document.body,function(){return _.O(rNn,null)})};
QZv=function(){var y=window.performance.getEntriesByType("navigation");return y?y.map(function(W){return W.type}).includes("reload"):!1};
EBR=function(){wK(wK(wK(wK(wK(wK(wK(_.hs().resolve(_.td),_.Zxj),_.y7v),_.Wkd),_.Vga),_.w0G),_.tgv),_.Fkj)};
NTd=function(y,W){W=W===void 0?!1:W;var V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return W||!_.e("kevlar_shorts_seedless_retry_initial_load")||(V=window,w=!(!V.getDataPromise&&!V.getInitialData),w)?I.yield(QCa(),2):(setTimeout(NTd.bind(window,y,!0),1E3),I.return());if(I.nextAddress!=3)return t=I.yieldResult,I.yield(I5P(t),3);F=I.yieldResult;GS(y,F);_.B7(I)})};
I5P=function(y){var W;if((W=y.response)==null||!W.replacementEndpoint)return _.T2(y);W=_.hs().resolve($U);y=y.response;_.h(y.replacementEndpoint,_.Jx)&&y.sequenceContinuation&&(_.h(y.replacementEndpoint,_.Jx).sequenceParams=y.sequenceContinuation);return F_(W,y.replacementEndpoint,{},_.Vj.location.href,"shorts",function(){},function(){return!1})};
PlG=function(y){var W=_.hs().resolve(gBu);y.playerResponse&&W.handleResponse(y.playerResponse);y.response&&W.handleResponse(y.response)};
Clt=function(y){var W=_.dP(),V,w=_.h((V=y.response)==null?void 0:V.frameworkUpdates,Ln),t;V=_.h((t=y.playerResponse)==null?void 0:t.frameworkUpdates,Ln);var F;y=_.h((F=y.reelWatchSequenceResponse)==null?void 0:F.frameworkUpdates,Ln);w&&_.xC(w,W);V&&_.xC(V,W);y&&_.xC(y,W)};
O4R=function(y){var W;_.e("enable_redirect_linking_for_desktop_web_client")&&((W=window.location.hash)==null?0:W.includes("redirect_state"))&&y.url&&(y.url=y.url.toString()+window.location.hash)};
LkR=function(y){var W=_.hs(),V=W.resolve($U);W=W.resolve(_.vBP);y.endpoint&&(V=dXb(V,y.endpoint),V.content&&y.response&&_.EX(W,y.response,V.content),V.player&&y.playerResponse&&_.EX(W,y.playerResponse,V.player),V.reelSequence&&y.reelWatchSequenceResponse&&_.EX(W,y.reelWatchSequenceResponse,V.reelSequence))};
NW=function(y,W){_.e("web_service_params_response_processor")&&PlG(W);Clt(W);var V;(W==null?0:W.url)&&((V=window.location.hash)==null?0:V.includes("redirect_state"))&&(O4R(W),(V=r6z(W.url))&&_.ow(y.root,"yt-initialize-third-party",[V,W]));LkR(W);V=_.hs();var w=V.resolve(zJG);W.playerResponse&&V.resolve(c7u).handleResponse(W.playerResponse);if(W.playerResponse){V=void 0;if(_.e("ab_v_vid_sig")&&W.endpoint){var t,F=(t=_.h(W.endpoint,_.Iw))!=null?t:_.h(W.endpoint,_.Jx);F&&(V=F.videoId)}eJv(w,W.playerResponse,
V)}W.playerResponse&&AC4(W.playerResponse)&&_.e("web_enable_ab_rsp_cl")?j9R().then(function(){hJd(w,W.playerResponse);GS(y,W)}):GS(y,W)};
Kkv=function(y){if(y=y.root.data){var W=_.hs().resolve(oBu);y.endpoint&&(y.response&&W.handleResponse(y.response,void 0,document.querySelector("ytd-app")),y.playerResponse&&W.handleResponse(y.playerResponse),y.reelWatchSequenceResponse&&W.handleResponse(y.reelWatchSequenceResponse))}};
p0G=function(y){var W,V,w,t,F,I;return _.g(function(P){switch(P.nextAddress){case 1:W=window;if(!W.getDataPromise){P.jumpTo(2);break}_.l7(P,3);return P.yield(W.getDataPromise(),5);case 5:V=P.yieldResult;NW(y,V);_.E6(P,4);break;case 3:return _.YX(P),P.yield(nV(),6);case 6:w=P.yieldResult,GS(y,w);case 4:return P.return();case 2:if(!_.e("sw_nav_preload_pbj")){P.jumpTo(7);break}W.fetchInitialData=function(){var C;return _.g(function(d){if(d.nextAddress==1)return d.yield(nV(),2);C=d.yieldResult;GS(y,C);
_.B7(d)})};
if(W.getInitialData){W.loadInitialData=function(C){NW(y,C)};
t=W.getInitialData();W.getInitialData=void 0;NW(y,t);P.jumpTo(8);break}W.fetchInitialData=void 0;return P.yield(nV(),9);case 9:F=P.yieldResult,GS(y,F);case 8:return P.return();case 7:W.getInitialData?(I=W.getInitialData(),W.getInitialData=void 0,NW(y,I)):W.loadInitialData=function(C){NW(y,C)},_.B7(P)}})};
i44=function(y){var W=0;return function(){return W<y.length?{done:!1,value:y[W++]}:{done:!0}}};
f5n=typeof Object.defineProperties=="function"?Object.defineProperty:function(y,W,V){if(y==Array.prototype||y==Object.prototype)return y;y[W]=V.value;return y};
TTu=function(y){y=["object"==typeof globalThis&&globalThis,y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W<y.length;++W){var V=y[W];if(V&&V.Math==Math)return V}throw Error("a");};
_.CM=TTu(this);IX=function(y,W){if(W)a:{var V=_.CM;y=y.split(".");for(var w=0;w<y.length-1;w++){var t=y[w];if(!(t in V))break a;V=V[t]}y=y[y.length-1];w=V[y];W=W(w);W!=w&&W!=null&&f5n(V,y,{configurable:!0,writable:!0,value:W})}};
IX("Symbol",function(y){if(y)return y;var W=function(F,I){this.$jscomp$symbol$id_=F;f5n(this,"description",{configurable:!0,writable:!0,value:I})};
W.prototype.toString=function(){return this.$jscomp$symbol$id_};
var V="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",w=0,t=function(F){if(this instanceof t)throw new TypeError("b");return new W(V+(F||"")+"_"+w++,F)};
return t});
IX("Symbol.iterator",function(y){if(y)return y;y=Symbol("c");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),V=0;V<W.length;V++){var w=_.CM[W[V]];typeof w==="function"&&typeof w.prototype[y]!="function"&&f5n(w.prototype,y,{configurable:!0,writable:!0,value:function(){return mXG(i44(this))}})}return y});
IX("Symbol.asyncIterator",function(y){return y?y:Symbol("d")});
var mXG=function(y){y={next:y};y[Symbol.iterator]=function(){return this};
return y},Mgb=typeof Object.create=="function"?Object.create:function(y){var W=function(){};
W.prototype=y;return new W},qOa=function(){function y(){function V(){}
new V;Reflect.construct(V,[],function(){});
return new V instanceof V}
if(typeof Reflect!="undefined"&&Reflect.construct){if(y())return Reflect.construct;var W=Reflect.construct;return function(V,w,t){V=W(V,w);t&&Reflect.setPrototypeOf(V,t.prototype);return V}}return function(V,w,t){t===void 0&&(t=V);
t=Mgb(t.prototype||Object.prototype);return Function.prototype.apply.call(V,t,w)||t}}(),UXy;
if(typeof Object.setPrototypeOf=="function")UXy=Object.setPrototypeOf;else{var uOP;a:{var SOP={a:!0},DXP={};try{DXP.__proto__=SOP;uOP=DXP.a;break a}catch(y){}uOP=!1}UXy=uOP?function(y,W){y.__proto__=W;if(y.__proto__!==W)throw new TypeError("e`"+y);return y}:null}gK=UXy;
_.p=function(y,W){y.prototype=Mgb(W.prototype);y.prototype.constructor=y;if(gK)gK(y,W);else for(var V in W)if(V!="prototype")if(Object.defineProperties){var w=Object.getOwnPropertyDescriptor(W,V);w&&Object.defineProperty(y,V,w)}else y[V]=W[V];y.superClass_=W.prototype};
_.N=function(y){var W=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(W)return W.call(y);if(typeof y.length=="number")return{next:i44(y)};throw Error("f`"+String(y));};
Cb=function(y){for(var W,V=[];!(W=y.next()).done;)V.push(W.value);return V};
_.GC=function(y){return y instanceof Array?y:Cb(_.N(y))};
_.CF=function(y){return PX(y,y)};
PX=function(y,W){y.raw=W;Object.freeze&&(Object.freeze(y),Object.freeze(W));return y};
OX=function(y,W){return Object.prototype.hasOwnProperty.call(y,W)};
l54=typeof Object.assign=="function"?Object.assign:function(y,W){for(var V=1;V<arguments.length;V++){var w=arguments[V];if(w)for(var t in w)OX(w,t)&&(y[t]=w[t])}return y};
IX("Object.assign",function(y){return y||l54});
var vX=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},xXR=function(y){if(y.isRunning_)throw new TypeError("h");
y.isRunning_=!0};
vX.prototype.JSC$8652_next_=function(y){this.yieldResult=y};
var kgG=function(y,W){y.abruptCompletion_={exception:W,isException:!0};y.nextAddress=y.catchAddress_||y.finallyAddress_};
vX.prototype.return=function(y){this.abruptCompletion_={return:y};this.nextAddress=this.finallyAddress_};
vX.prototype.yield=function(y,W){this.nextAddress=W;return{value:y}};
vX.prototype.jumpTo=function(y){this.nextAddress=y};
_.B7=function(y){y.nextAddress=0};
_.l7=function(y,W,V){y.catchAddress_=W;V!=void 0&&(y.finallyAddress_=V)};
_.sc=function(y,W){y.catchAddress_=0;y.finallyAddress_=W||0};
_.E6=function(y,W,V){y.nextAddress=W;y.catchAddress_=V||0};
_.YX=function(y,W){y.catchAddress_=W||0;W=y.abruptCompletion_.exception;y.abruptCompletion_=null;return W};
_.kX=function(y,W,V,w){w?y.finallyContexts_[w]=y.abruptCompletion_:y.finallyContexts_=[y.abruptCompletion_];y.catchAddress_=W||0;y.finallyAddress_=V||0};
_.AX=function(y,W,V){V=y.finallyContexts_.splice(V||0)[0];(V=y.abruptCompletion_=y.abruptCompletion_||V)?V.isException?y.nextAddress=y.catchAddress_||y.finallyAddress_:V.jumpTo!=void 0&&y.finallyAddress_<V.jumpTo?(y.nextAddress=V.jumpTo,y.abruptCompletion_=null):y.nextAddress=y.finallyAddress_:y.nextAddress=W};
skz=function(y){this.JSC$8657_context_=new vX;this.program_=y};
YOn=function(y,W){xXR(y.JSC$8657_context_);var V=y.JSC$8657_context_.yieldAllIterator_;if(V)return A7n(y,"return"in V?V["return"]:function(w){return{value:w,done:!0}},W,y.JSC$8657_context_.return);
y.JSC$8657_context_.return(W);return dK(y)};
A7n=function(y,W,V,w){try{var t=W.call(y.JSC$8657_context_.yieldAllIterator_,V);if(!(t instanceof Object))throw new TypeError("g`"+t);if(!t.done)return y.JSC$8657_context_.isRunning_=!1,t;var F=t.value}catch(I){return y.JSC$8657_context_.yieldAllIterator_=null,kgG(y.JSC$8657_context_,I),dK(y)}y.JSC$8657_context_.yieldAllIterator_=null;w.call(y.JSC$8657_context_,F);return dK(y)};
dK=function(y){for(;y.JSC$8657_context_.nextAddress;)try{var W=y.program_(y.JSC$8657_context_);if(W)return y.JSC$8657_context_.isRunning_=!1,{value:W.value,done:!1}}catch(V){y.JSC$8657_context_.yieldResult=void 0,kgG(y.JSC$8657_context_,V)}y.JSC$8657_context_.isRunning_=!1;if(y.JSC$8657_context_.abruptCompletion_){W=y.JSC$8657_context_.abruptCompletion_;y.JSC$8657_context_.abruptCompletion_=null;if(W.isException)throw W.exception;return{value:W.return,done:!0}}return{value:void 0,done:!0}};
BTd=function(y){this.next=function(W){xXR(y.JSC$8657_context_);y.JSC$8657_context_.yieldAllIterator_?W=A7n(y,y.JSC$8657_context_.yieldAllIterator_.next,W,y.JSC$8657_context_.JSC$8652_next_):(y.JSC$8657_context_.JSC$8652_next_(W),W=dK(y));return W};
this.throw=function(W){xXR(y.JSC$8657_context_);y.JSC$8657_context_.yieldAllIterator_?W=A7n(y,y.JSC$8657_context_.yieldAllIterator_["throw"],W,y.JSC$8657_context_.JSC$8652_next_):(kgG(y.JSC$8657_context_,W),W=dK(y));return W};
this.return=function(W){return YOn(y,W)};
this[Symbol.iterator]=function(){return this}};
_.Up=function(y,W){W=new BTd(new skz(W));gK&&y.prototype&&gK(W,y.prototype);return W};
J7a=function(y){function W(w){return y.next(w)}
function V(w){return y.throw(w)}
return new Promise(function(w,t){function F(I){I.done?w(I.value):Promise.resolve(I.value).then(W,V).then(F,t)}
F(y.next())})};
_.g=function(y){return J7a(new BTd(new skz(y)))};
_.xX=function(y){var W=y[Symbol.asyncIterator];return W!==void 0?W.call(y):new RJR(_.N(y))};
RJR=function(y){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return y};
this.next=function(W){return Promise.resolve(y.next(W))};
this["throw"]=function(W){return new Promise(function(V,w){var t=y["throw"];t!==void 0?V(t.call(y,W)):(V=y["return"],V!==void 0&&V.call(y),w(new TypeError("i")))})};
y["return"]!==void 0&&(this["return"]=function(W){return Promise.resolve(y["return"](W))})};
_.Ve=function(){for(var y=Number(this),W=[],V=y;V<arguments.length;V++)W[V-y]=arguments[V];return W};
_.uw=function(y){return y};
IX("globalThis",function(y){return y||_.CM});
IX("Reflect",function(y){return y?y:{}});
IX("Reflect.construct",function(){return qOa});
IX("Reflect.setPrototypeOf",function(y){return y?y:gK?function(W,V){try{return gK(W,V),!0}catch(w){return!1}}:null});
IX("Promise",function(y){function W(){this.batch_=null}
function V(I){return I instanceof t?I:new t(function(P){P(I)})}
if(y&&(typeof _.CM.PromiseRejectionEvent!=="undefined"||!_.CM.Promise||_.CM.Promise.toString().indexOf("[native code]")===-1))return y;W.prototype.asyncExecute=function(I){if(this.batch_==null){this.batch_=[];var P=this;this.asyncExecuteFunction(function(){P.executeBatch_()})}this.batch_.push(I)};
var w=_.CM.setTimeout;W.prototype.asyncExecuteFunction=function(I){w(I,0)};
W.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var I=this.batch_;this.batch_=[];for(var P=0;P<I.length;++P){var C=I[P];I[P]=null;try{C()}catch(d){this.asyncThrow_(d)}}}this.batch_=null};
W.prototype.asyncThrow_=function(I){this.asyncExecuteFunction(function(){throw I;})};
var t=function(I){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var P=this.createResolveAndReject_();try{I(P.resolve,P.reject)}catch(C){P.reject(C)}};
t.prototype.createResolveAndReject_=function(){function I(d){return function(L){C||(C=!0,d.call(P,L))}}
var P=this,C=!1;return{resolve:I(this.resolveTo_),reject:I(this.JSC$8685_reject_)}};
t.prototype.resolveTo_=function(I){if(I===this)this.JSC$8685_reject_(new TypeError("m"));else if(I instanceof t)this.settleSameAsPromise_(I);else{a:switch(typeof I){case "object":var P=I!=null;break a;case "function":P=!0;break a;default:P=!1}P?this.resolveToNonPromiseObj_(I):this.fulfill_(I)}};
t.prototype.resolveToNonPromiseObj_=function(I){var P=void 0;try{P=I.then}catch(C){this.JSC$8685_reject_(C);return}typeof P=="function"?this.settleSameAsThenable_(P,I):this.fulfill_(I)};
t.prototype.JSC$8685_reject_=function(I){this.settle_(2,I)};
t.prototype.fulfill_=function(I){this.settle_(1,I)};
t.prototype.settle_=function(I,P){if(this.state_!=0)throw Error("n`"+I+"`"+P+"`"+this.state_);this.state_=I;this.result_=P;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
t.prototype.scheduleUnhandledRejectionCheck_=function(){var I=this;w(function(){if(I.notifyUnhandledRejection_()){var P=_.CM.console;typeof P!=="undefined"&&P.error(I.result_)}},1)};
t.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var I=_.CM.CustomEvent,P=_.CM.Event,C=_.CM.dispatchEvent;if(typeof C==="undefined")return!0;typeof I==="function"?I=new I("unhandledrejection",{cancelable:!0}):typeof P==="function"?I=new P("unhandledrejection",{cancelable:!0}):(I=_.CM.document.createEvent("CustomEvent"),I.initCustomEvent("unhandledrejection",!1,!0,I));I.promise=this;I.reason=this.result_;return C(I)};
t.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var I=0;I<this.onSettledCallbacks_.length;++I)F.asyncExecute(this.onSettledCallbacks_[I]);this.onSettledCallbacks_=null}};
var F=new W;t.prototype.settleSameAsPromise_=function(I){var P=this.createResolveAndReject_();I.callWhenSettled_(P.resolve,P.reject)};
t.prototype.settleSameAsThenable_=function(I,P){var C=this.createResolveAndReject_();try{I.call(P,C.resolve,C.reject)}catch(d){C.reject(d)}};
t.prototype.then=function(I,P){function C(c,K){return typeof c=="function"?function(f){try{d(c(f))}catch(U){L(U)}}:K}
var d,L,z=new t(function(c,K){d=c;L=K});
this.callWhenSettled_(C(I,d),C(P,L));return z};
t.prototype.catch=function(I){return this.then(void 0,I)};
t.prototype.callWhenSettled_=function(I,P){function C(){switch(d.state_){case 1:I(d.result_);break;case 2:P(d.result_);break;default:throw Error("o`"+d.state_);}}
var d=this;this.onSettledCallbacks_==null?F.asyncExecute(C):this.onSettledCallbacks_.push(C);this.isRejectionHandled_=!0};
t.resolve=V;t.reject=function(I){return new t(function(P,C){C(I)})};
t.race=function(I){return new t(function(P,C){for(var d=_.N(I),L=d.next();!L.done;L=d.next())V(L.value).callWhenSettled_(P,C)})};
t.all=function(I){var P=_.N(I),C=P.next();return C.done?V([]):new t(function(d,L){function z(f){return function(U){c[f]=U;K--;K==0&&d(c)}}
var c=[],K=0;do c.push(void 0),K++,V(C.value).callWhenSettled_(z(c.length-1),L),C=P.next();while(!C.done)})};
return t});
var LF=function(y,W,V){if(y==null)throw new TypeError("p`"+V);if(W instanceof RegExp)throw new TypeError("q`"+V);return y+""};
IX("String.prototype.startsWith",function(y){return y?y:function(W,V){var w=LF(this,W,"startsWith"),t=w.length,F=W.length;V=Math.max(0,Math.min(V|0,w.length));for(var I=0;I<F&&V<t;)if(w[V++]!=W[I++])return!1;return I>=F}});
IX("Object.setPrototypeOf",function(y){return y||gK});
IX("Symbol.dispose",function(y){return y?y:Symbol("r")});
IX("SuppressedError",function(y){function W(V,w,t){if(!(this instanceof W))return new W(V,w,t);t=Error(t);"stack"in t&&(this.stack=t.stack);this.message=t.message;this.error=V;this.suppressed=w}
if(y)return y;_.p(W,Error);W.prototype.name="SuppressedError";return W});
var jkv=function(y,W,V){y instanceof String&&(y=String(y));for(var w=y.length,t=0;t<w;t++){var F=y[t];if(W.call(V,F,t,y))return{i:t,v:F}}return{i:-1,v:void 0}};
IX("Array.prototype.find",function(y){return y?y:function(W,V){return jkv(this,W,V).v}});
IX("WeakMap",function(y){function W(){}
function V(C){var d=typeof C;return d==="object"&&C!==null||d==="function"}
function w(C){if(!OX(C,F)){var d=new W;f5n(C,F,{value:d})}}
function t(C){var d=Object[C];d&&(Object[C]=function(L){if(L instanceof W)return L;Object.isExtensible(L)&&w(L);return d(L)})}
if(function(){if(!y||!Object.seal)return!1;try{var C=Object.seal({}),d=Object.seal({}),L=new y([[C,2],[d,3]]);if(L.get(C)!=2||L.get(d)!=3)return!1;L.delete(C);L.set(d,4);return!L.has(C)&&L.get(d)==4}catch(z){return!1}}())return y;
var F="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var I=0,P=function(C){this.JSC$8692_id_=(I+=Math.random()+1).toString();if(C){C=_.N(C);for(var d;!(d=C.next()).done;)d=d.value,this.set(d[0],d[1])}};
P.prototype.set=function(C,d){if(!V(C))throw Error("s");w(C);if(!OX(C,F))throw Error("t`"+C);C[F][this.JSC$8692_id_]=d;return this};
P.prototype.get=function(C){return V(C)&&OX(C,F)?C[F][this.JSC$8692_id_]:void 0};
P.prototype.has=function(C){return V(C)&&OX(C,F)&&OX(C[F],this.JSC$8692_id_)};
P.prototype.delete=function(C){return V(C)&&OX(C,F)&&OX(C[F],this.JSC$8692_id_)?delete C[F][this.JSC$8692_id_]:!1};
return P});
IX("Map",function(y){if(function(){if(!y||typeof y!="function"||!y.prototype.entries||typeof Object.seal!="function")return!1;try{var P=Object.seal({x:4}),C=new y(_.N([[P,"s"]]));if(C.get(P)!="s"||C.size!=1||C.get({x:4})||C.set({x:4},"t")!=C||C.size!=2)return!1;var d=C.entries(),L=d.next();if(L.done||L.value[0]!=P||L.value[1]!="s")return!1;L=d.next();return L.done||L.value[0].x!=4||L.value[1]!="t"||!d.next().done?!1:!0}catch(z){return!1}}())return y;
var W=new WeakMap,V=function(P){this[0]={};this[1]=F();this.size=0;if(P){P=_.N(P);for(var C;!(C=P.next()).done;)C=C.value,this.set(C[0],C[1])}};
V.prototype.set=function(P,C){P=P===0?0:P;var d=w(this,P);d.list||(d.list=this[0][d.id]=[]);d.entry?d.entry.value=C:(d.entry={next:this[1],previous:this[1].previous,head:this[1],key:P,value:C},d.list.push(d.entry),this[1].previous.next=d.entry,this[1].previous=d.entry,this.size++);return this};
V.prototype.delete=function(P){P=w(this,P);return P.entry&&P.list?(P.list.splice(P.index,1),P.list.length||delete this[0][P.id],P.entry.previous.next=P.entry.next,P.entry.next.previous=P.entry.previous,P.entry.head=null,this.size--,!0):!1};
V.prototype.clear=function(){this[0]={};this[1]=this[1].previous=F();this.size=0};
V.prototype.has=function(P){return!!w(this,P).entry};
V.prototype.get=function(P){return(P=w(this,P).entry)&&P.value};
V.prototype.entries=function(){return t(this,function(P){return[P.key,P.value]})};
V.prototype.keys=function(){return t(this,function(P){return P.key})};
V.prototype.values=function(){return t(this,function(P){return P.value})};
V.prototype.forEach=function(P,C){for(var d=this.entries(),L;!(L=d.next()).done;)L=L.value,P.call(C,L[1],L[0],this)};
V.prototype[Symbol.iterator]=V.prototype.entries;var w=function(P,C){var d=C&&typeof C;d=="object"||d=="function"?W.has(C)?d=W.get(C):(d=""+ ++I,W.set(C,d)):d="p_"+C;var L=P[0][d];if(L&&OX(P[0],d))for(P=0;P<L.length;P++){var z=L[P];if(C!==C&&z.key!==z.key||C===z.key)return{id:d,list:L,index:P,entry:z}}return{id:d,list:L,index:-1,entry:void 0}},t=function(P,C){var d=P[1];
return mXG(function(){if(d){for(;d.head!=P[1];)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:C(d)};d=null}return{done:!0,value:void 0}})},F=function(){var P={};
return P.previous=P.next=P.head=P},I=0;
return V});
IX("Set",function(y){if(function(){if(!y||typeof y!="function"||!y.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),w=new y(_.N([V]));if(!w.has(V)||w.size!=1||w.add(V)!=w||w.size!=1||w.add({x:4})!=w||w.size!=2)return!1;var t=w.entries(),F=t.next();if(F.done||F.value[0]!=V||F.value[1]!=V)return!1;F=t.next();return F.done||F.value[0]==V||F.value[0].x!=4||F.value[1]!=F.value[0]?!1:t.next().done}catch(I){return!1}}())return y;
var W=function(V){this.JSC$8706_map_=new Map;if(V){V=_.N(V);for(var w;!(w=V.next()).done;)this.add(w.value)}this.size=this.JSC$8706_map_.size};
W.prototype.add=function(V){V=V===0?0:V;this.JSC$8706_map_.set(V,V);this.size=this.JSC$8706_map_.size;return this};
W.prototype.delete=function(V){V=this.JSC$8706_map_.delete(V);this.size=this.JSC$8706_map_.size;return V};
W.prototype.clear=function(){this.JSC$8706_map_.clear();this.size=0};
W.prototype.has=function(V){return this.JSC$8706_map_.has(V)};
W.prototype.entries=function(){return this.JSC$8706_map_.entries()};
W.prototype.values=function(){return this.JSC$8706_map_.values()};
W.prototype.keys=W.prototype.values;W.prototype[Symbol.iterator]=W.prototype.values;W.prototype.forEach=function(V,w){var t=this;this.JSC$8706_map_.forEach(function(F){return V.call(w,F,F,t)})};
return W});
IX("Math.log2",function(y){return y?y:function(W){return Math.log(W)/Math.LN2}});
IX("Object.values",function(y){return y?y:function(W){var V=[],w;for(w in W)OX(W,w)&&V.push(W[w]);return V}});
IX("Object.is",function(y){return y?y:function(W,V){return W===V?W!==0||1/W===1/V:W!==W&&V!==V}});
IX("Array.prototype.includes",function(y){return y?y:function(W,V){var w=this;w instanceof String&&(w=String(w));var t=w.length;V=V||0;for(V<0&&(V=Math.max(V+t,0));V<t;V++){var F=w[V];if(F===W||Object.is(F,W))return!0}return!1}});
IX("String.prototype.includes",function(y){return y?y:function(W,V){return LF(this,W,"includes").indexOf(W,V||0)!==-1}});
IX("Array.from",function(y){return y?y:function(W,V,w){V=V!=null?V:function(P){return P};
var t=[],F=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof F=="function"){W=F.call(W);for(var I=0;!(F=W.next()).done;)t.push(V.call(w,F.value,I++))}else for(F=W.length,I=0;I<F;I++)t.push(V.call(w,W[I],I));return t}});
IX("Object.entries",function(y){return y?y:function(W){var V=[],w;for(w in W)OX(W,w)&&V.push([w,W[w]]);return V}});
IX("Number.isFinite",function(y){return y?y:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}});
IX("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
IX("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
IX("Number.isInteger",function(y){return y?y:function(W){return Number.isFinite(W)?W===Math.floor(W):!1}});
IX("Number.isSafeInteger",function(y){return y?y:function(W){return Number.isInteger(W)&&Math.abs(W)<=Number.MAX_SAFE_INTEGER}});
IX("String.prototype.endsWith",function(y){return y?y:function(W,V){var w=LF(this,W,"endsWith");V===void 0&&(V=w.length);V=Math.max(0,Math.min(V|0,w.length));for(var t=W.length;t>0&&V>0;)if(w[--V]!=W[--t])return!1;return t<=0}});
var $Xt=function(y,W){y instanceof String&&(y+="");var V=0,w=!1,t={next:function(){if(!w&&V<y.length){var F=V++;return{value:W(F,y[F]),done:!1}}w=!0;return{done:!0,value:void 0}}};
t[Symbol.iterator]=function(){return t};
return t};
IX("Array.prototype.entries",function(y){return y?y:function(){return $Xt(this,function(W,V){return[W,V]})}});
IX("Math.trunc",function(y){return y?y:function(W){W=Number(W);if(isNaN(W)||W===Infinity||W===-Infinity||W===0)return W;var V=Math.floor(Math.abs(W));return W<0?-V:V}});
IX("Number.isNaN",function(y){return y?y:function(W){return typeof W==="number"&&isNaN(W)}});
IX("Array.prototype.keys",function(y){return y?y:function(){return $Xt(this,function(W){return W})}});
IX("Array.prototype.values",function(y){return y?y:function(){return $Xt(this,function(W,V){return V})}});
IX("Array.prototype.fill",function(y){return y?y:function(W,V,w){var t=this.length||0;V<0&&(V=Math.max(0,t+V));if(w==null||w>t)w=t;w=Number(w);w<0&&(w=Math.max(0,t+w));for(V=Number(V||0);V<w;V++)this[V]=W;return this}});
var zW=function(y){return y?y:Array.prototype.fill};
IX("Int8Array.prototype.fill",zW);IX("Uint8Array.prototype.fill",zW);IX("Uint8ClampedArray.prototype.fill",zW);IX("Int16Array.prototype.fill",zW);IX("Uint16Array.prototype.fill",zW);IX("Int32Array.prototype.fill",zW);IX("Uint32Array.prototype.fill",zW);IX("Float32Array.prototype.fill",zW);IX("Float64Array.prototype.fill",zW);
IX("Object.fromEntries",function(y){return y?y:function(W){var V={};if(!(Symbol.iterator in W))throw new TypeError("u`"+W);W=W[Symbol.iterator].call(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;if(Object(w)!==w)throw new TypeError("v");V[w[0]]=w[1]}return V}});
IX("String.prototype.replaceAll",function(y){return y?y:function(W,V){if(W instanceof RegExp&&!W.global)throw new TypeError("w");return W instanceof RegExp?this.replace(W,V):this.replace(new RegExp(String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),V)}});
IX("Object.getOwnPropertySymbols",function(y){return y?y:function(){return[]}});
IX("String.prototype.repeat",function(y){return y?y:function(W){var V=LF(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("x");W|=0;for(var w="";W;)if(W&1&&(w+=V),W>>>=1)V+=V;return w}});
IX("Array.prototype.findIndex",function(y){return y?y:function(W,V){return jkv(this,W,V).i}});
IX("Array.prototype.flatMap",function(y){return y?y:function(W,V){var w=[];Array.prototype.forEach.call(this,function(t,F){t=W.call(V,t,F,this);Array.isArray(t)?w.push.apply(w,t):w.push(t)});
return w}});
IX("String.prototype.codePointAt",function(y){return y?y:function(W){var V=LF(this,null,"codePointAt"),w=V.length;W=Number(W)||0;if(W>=0&&W<w){W|=0;var t=V.charCodeAt(W);if(t<55296||t>56319||W+1===w)return t;W=V.charCodeAt(W+1);return W<56320||W>57343?t:(t-55296)*1024+W+9216}}});
IX("String.fromCodePoint",function(y){return y?y:function(W){for(var V="",w=0;w<arguments.length;w++){var t=Number(arguments[w]);if(t<0||t>1114111||t!==Math.floor(t))throw new RangeError("y`"+t);t<=65535?V+=String.fromCharCode(t):(t-=65536,V+=String.fromCharCode(t>>>10&1023|55296),V+=String.fromCharCode(t&1023|56320))}return V}});
IX("String.prototype.trimLeft",function(y){function W(){return this.replace(/^[\s\xa0]+/,"")}
return y||W});
IX("String.prototype.trimStart",function(y){return y||String.prototype.trimLeft});
IX("String.prototype.padStart",function(y){return y?y:function(W,V){var w=LF(this,null,"padStart");W-=w.length;V=V!==void 0?String(V):" ";return(W>0&&V?V.repeat(Math.ceil(W/V.length)).substring(0,W):"")+w}});
IX("Promise.prototype.finally",function(y){return y?y:function(W){return this.then(function(V){return Promise.resolve(W()).then(function(){return V})},function(V){return Promise.resolve(W()).then(function(){throw V;
})})}});
IX("Math.imul",function(y){return y?y:function(W,V){W=Number(W);V=Number(V);var w=W&65535,t=V&65535;return w*t+((W>>>16&65535)*t+w*(V>>>16&65535)<<16>>>0)|0}});
IX("Object.hasOwn",function(y){return y?y:function(W,V){return Object.prototype.hasOwnProperty.call(W,V)}});
IX("Math.sign",function(y){return y?y:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}});
IX("Array.prototype.flat",function(y){return y?y:function(W){W=W===void 0?1:W;var V=[];Array.prototype.forEach.call(this,function(w){Array.isArray(w)&&W>0?(w=Array.prototype.flat.call(w,W-1),V.push.apply(V,w)):V.push(w)});
return V}});
IX("String.raw",function(y){return y?y:function(W,V){if(W==null)throw new TypeError("z");for(var w=W.raw,t=w.length,F="",I=0;I<t;++I)F+=w[I],I+1<t&&I+1<arguments.length&&(F+=String(arguments[I+1]));return F}});
IX("Reflect.ownKeys",function(y){return y?y:function(W){var V=[],w=Object.getOwnPropertyNames(W);W=Object.getOwnPropertySymbols(W);for(var t=0;t<w.length;t++)(w[t].substring(0,14)=="jscomp_symbol_"?W:V).push(w[t]);return V.concat(W)}});
IX("Object.getOwnPropertyDescriptors",function(y){return y?y:function(W){for(var V={},w=Reflect.ownKeys(W),t=0;t<w.length;t++)V[w[t]]=Object.getOwnPropertyDescriptor(W,w[t]);return V}});
IX("WeakSet",function(y){if(function(){if(!y||!Object.seal)return!1;try{var V=Object.seal({}),w=Object.seal({}),t=new y([V]);if(!t.has(V)||t.has(w))return!1;t.delete(V);t.add(w);return!t.has(V)&&t.has(w)}catch(F){return!1}}())return y;
var W=function(V){this.JSC$8713_map_=new WeakMap;if(V){V=_.N(V);for(var w;!(w=V.next()).done;)this.add(w.value)}};
W.prototype.add=function(V){this.JSC$8713_map_.set(V,!0);return this};
W.prototype.has=function(V){return this.JSC$8713_map_.has(V)};
W.prototype.delete=function(V){return this.JSC$8713_map_.delete(V)};
return W});
IX("Promise.allSettled",function(y){function W(w){return{status:"fulfilled",value:w}}
function V(w){return{status:"rejected",reason:w}}
return y?y:function(w){var t=this;w=Array.from(w,function(F){return t.resolve(F).then(W,V)});
return t.all(w)}});
IX("Number.parseInt",function(y){return y||parseInt});
_._DumpException=window._DumpException||function(y){throw y;};
window._DumpException=_._DumpException;var nBR,cX,e6,hd,H4d,X0d,a5u,Ggb,Xj,r7v;nBR=nBR||{};_.Vj=this||self;_.dE=function(y,W,V){y=y.split(".");V=V||_.Vj;for(var w;y.length&&(w=y.shift());)y.length||W===void 0?V[w]&&V[w]!==Object.prototype[w]?V=V[w]:V=V[w]={}:V[w]=W};
cX=function(y){var W=_.ts("WIZ_global_data.oxN3nb");y=W&&W[y];return y!=null?y:!1};
e6=_.Vj._F_toggles_default_kevlar_base||[];hd=function(){};
hd.get=function(){return null};
_.ts=function(y,W){y=y.split(".");W=W||_.Vj;for(var V=0;V<y.length;V++)if(W=W[y[V]],W==null)return null;return W};
_.oX=function(y){y.instance_=void 0;y.getInstance=function(){return y.instance_?y.instance_:y.instance_=new y}};
_.Le=function(y){var W=typeof y;return W!="object"?W:y?Array.isArray(y)?"array":W:"null"};
_.bn=function(y){var W=_.Le(y);return W=="array"||W=="object"&&typeof y.length=="number"};
_.VK=function(y){var W=typeof y;return W=="object"&&y!=null||W=="function"};
_.tA=function(y){return Object.prototype.hasOwnProperty.call(y,H4d)&&y[H4d]||(y[H4d]=++X0d)};
H4d="closure_uid_"+(Math.random()*1E9>>>0);X0d=0;a5u=function(y,W,V){return y.call.apply(y.bind,arguments)};
Ggb=function(y,W,V){if(!y)throw Error();if(arguments.length>2){var w=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(t,w);return y.apply(W,t)}}return function(){return y.apply(W,arguments)}};
_.jA=function(y,W,V){_.jA=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?a5u:Ggb;return _.jA.apply(null,arguments)};
_.D2=function(y,W){var V=Array.prototype.slice.call(arguments,1);return function(){var w=V.slice();w.push.apply(w,arguments);return y.apply(this,w)}};
_.KF=function(){return Date.now()};
Xj=function(y){return y};
_.pF=function(y,W){function V(){}
V.prototype=W.prototype;y.superClass_=W.prototype;y.prototype=new V;y.prototype.constructor=y;y.base=function(w,t,F){for(var I=Array(arguments.length-2),P=2;P<arguments.length;P++)I[P-2]=arguments[P];return W.prototype[t].apply(w,I)}};
r7v=function(y){return y};var b4d,QkG;_.J=function(y,W,V,w){var t=arguments.length,F=t<3?W:w===null?w=Object.getOwnPropertyDescriptor(W,V):w,I;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")F=Reflect.decorate(y,W,V,w);else for(var P=y.length-1;P>=0;P--)if(I=y[P])F=(t<3?I(F):t>3?I(W,V,F):I(W,V))||F;t>3&&F&&Object.defineProperty(W,V,F)};
_.R=function(y,W){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(y,W)};
b4d=function(y,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("A");if(V===void 0){if(!Symbol.dispose)throw new TypeError("C");var V=W[Symbol.dispose]}if(typeof V!=="function")throw new TypeError("D");y.stack.push({value:W,dispose:V,async:!1})}return W};
QkG=function(y){function W(F){y.error=y.hasError?new SuppressedError(F,y.error,"An error was suppressed during disposal."):F;y.hasError=!0}
function V(){for(;w=y.stack.pop();)try{if(!w.async&&t===1)return t=0,y.stack.push(w),Promise.resolve().then(V);if(w.dispose){var F=w.dispose.call(w.value);if(w.async)return t|=2,Promise.resolve(F).then(V,function(I){W(I);return V()})}else t|=1}catch(I){W(I)}if(t===1)return y.hasError?Promise.reject(y.error):Promise.resolve();
if(y.hasError)throw y.error;}
var w,t=0;V()};_.pF(_.yj,Error);_.yj.prototype.name="CustomError";var Z4n;var yid=void 0,WQt,VOu=typeof TextDecoder!=="undefined",wyv,V4a=typeof String.prototype.isWellFormed==="function",WLu=typeof TextEncoder!=="undefined";var wjb;_.JG=function(y){for(var W=[],V=0,w=0;w<y.length;w++){var t=y.charCodeAt(w);t<128?W[V++]=t:(t<2048?W[V++]=t>>6|192:((t&64512)==55296&&w+1<y.length&&(y.charCodeAt(w+1)&64512)==56320?(t=65536+((t&1023)<<10)+(y.charCodeAt(++w)&1023),W[V++]=t>>18|240,W[V++]=t>>12&63|128):W[V++]=t>>12|224,W[V++]=t>>6&63|128),W[V++]=t&63|128)}return W};
wjb=function(y){for(var W=[],V=0,w=0;V<y.length;){var t=y[V++];if(t<128)W[w++]=String.fromCharCode(t);else if(t>191&&t<224){var F=y[V++];W[w++]=String.fromCharCode((t&31)<<6|F&63)}else if(t>239&&t<365){F=y[V++];var I=y[V++],P=y[V++];t=((t&7)<<18|(F&63)<<12|(I&63)<<6|P&63)-65536;W[w++]=String.fromCharCode(55296+(t>>10));W[w++]=String.fromCharCode(56320+(t&1023))}else F=y[V++],I=y[V++],W[w++]=String.fromCharCode((t&15)<<12|(F&63)<<6|I&63)}return W.join("")};var vy=String.prototype.trim?function(y){return y.trim()}:function(y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(y)[1]},tOy=/&/g,FQG=/</g,Ejy=/>/g,N2L=/"/g,IhL=/'/g,gjt=/\x00/g,PMj=/[\x00&<>"']/;var iP=!!(e6[0]>>15&1),CMn=!!(e6[0]>>16&1),O1v=!!(e6[0]&8),vjz=!!(e6[0]&2),den=!!(e6[0]&4),LQP=!!(e6[0]&16),zcb=!!(e6[0]&128);var e4=iP?CMn:cX(610401301),ci4=iP?O1v:cX(772657768),ecj=iP?vjz:cX(513659523),hcG=iP?den:cX(568333945),zNG=iP?LQP:cX(1331761403),yma=iP?zcb:cX(748402147);var oR,ojz=_.Vj.navigator;oR=ojz?ojz.userAgentData||null:null;var gQ;_.RR=function(y,W){return Array.prototype.indexOf.call(y,W,void 0)};
_.IA=function(y,W,V){Array.prototype.forEach.call(y,W,V)};
_.fF=function(y,W,V){return Array.prototype.filter.call(y,W,V)};
_.rU=function(y,W,V){return Array.prototype.map.call(y,W,V)};
gQ=function(y,W,V){return Array.prototype.some.call(y,W,V)};
_.JWa=function(y,W,V){return Array.prototype.every.call(y,W,V)};var TW=function(y){TW[" "](y);return y};
TW[" "]=function(){};
var Han=function(y,W){try{return TW(y[W]),!0}catch(V){}return!1},V14=function(y,W,V,w){w=w?w(W):W;
return Object.prototype.hasOwnProperty.call(y,w)?y[w]:y[w]=V(W)};var KQP,O6,pjy,i1v,T2u,me4,B6v,MOa,qku,Uej,ve,Skd,DeG,sIb,Aiu,YkL;_.ifR=function(){return _.Vj.navigator||null};
KQP=qa();_.mU=EPR();O6=fd("Edge");pjy=O6||_.mU;_.MW=fd("Gecko")&&!(_.Oz(_.cy(),"WebKit")&&!fd("Edge"))&&!(fd("Trident")||fd("MSIE"))&&!fd("Edge");_.qW=_.Oz(_.cy(),"WebKit")&&!fd("Edge");i1v=_.qW&&fd("Mobile");_.fhy=_.dad();T2u=_.LLP();me4=(xP()?oR.platform==="Linux":fd("Linux"))||_.zbu();B6v=_.Odt();MOa=vPj();qku=fd("iPad");Uej=fd("iPod");_.ucR=_.kP();ve=_.Oz(_.cy(),"KaiOS");Skd=function(){var y=_.Vj.document;return y?y.documentMode:void 0};
a:{var lhu="",xeu=function(){var y=_.cy();if(_.MW)return/rv:([^\);]+)(\)|;)/.exec(y);if(O6)return/Edge\/([\d\.]+)/.exec(y);if(_.mU)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(y);if(_.qW)return/WebKit\/(\S+)/.exec(y);if(KQP)return/(?:Version)[ \/]?(\S+)/.exec(y)}();
xeu&&(lhu=xeu?xeu[1]:"");if(_.mU){var kou=Skd();if(kou!=null&&kou>parseFloat(lhu)){DeG=String(kou);break a}}DeG=lhu}sIb=DeG;Aiu={};_.UX=function(y){return V14(Aiu,y,function(){return _.Ld(sIb,y)>=0})};
if(_.Vj.document&&_.mU){var B2j=Skd();YkL=B2j?B2j:parseInt(sIb,10)||void 0}else YkL=void 0;_.Jiy=YkL;var N5R,IHv,Rcv;_.uP=Uz();N5R=vPj()||fd("iPod");IHv=fd("iPad");Rcv=_.Ita();_.S6=_.S4();_.yi=_.Dt()&&!_.kP();var jIj,DT,fSt,$Cv,njt,$e4;jIj={};DT=null;fSt=_.MW||_.qW||typeof _.Vj.btoa=="function";_.Gj=function(y,W){W===void 0&&(W=0);$e4();W=jIj[W];for(var V=Array(Math.floor(y.length/3)),w=W[64]||"",t=0,F=0;t<y.length-2;t+=3){var I=y[t],P=y[t+1],C=y[t+2],d=W[I>>2];I=W[(I&3)<<4|P>>4];P=W[(P&15)<<2|C>>6];C=W[C&63];V[F++]=d+I+P+C}d=0;C=w;switch(y.length-t){case 2:d=y[t+1],C=W[(d&15)<<2]||w;case 1:y=y[t],V[F]=W[y>>2]+W[(y&3)<<4|d>>4]+C+w}return V.join("")};
$Cv=function(y){var W="";njt(y,function(V){W+=String.fromCharCode(V)});
return W};
_.HZv=function(y){var W=[];njt(y,function(V){W.push(V)});
return W};
_.Cq=function(y){var W=y.length,V=W*3/4;V%3?V=Math.floor(V):_.Cd("=.",y[W-1])&&(V=_.Cd("=.",y[W-2])?V-2:V-1);var w=new Uint8Array(V),t=0;njt(y,function(F){w[t++]=F});
return t!==V?w.subarray(0,t):w};
njt=function(y,W){function V(C){for(;w<y.length;){var d=y.charAt(w++),L=DT[d];if(L!=null)return L;if(!_.gu(d))throw Error("H`"+d);}return C}
$e4();for(var w=0;;){var t=V(-1),F=V(0),I=V(64),P=V(64);if(P===64&&t===-1)break;W(t<<2|F>>4);I!=64&&(W(F<<4&240|I>>2),P!=64&&W(I<<6&192|P))}};
$e4=function(){if(!DT){DT={};for(var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var w=y.concat(W[V].split(""));jIj[V]=w;for(var t=0;t<w.length;t++){var F=w[t];DT[F]===void 0&&(DT[F]=t)}}}};var kGv=typeof Uint8Array!=="undefined",ma4=!_.mU&&typeof btoa==="function",M4L=/[-_.]/g,fty={"-":"+",_:"/",".":"="},Bz={};var YJ,Xjn;YJ=function(y,W){if(W!==Bz)throw Error("J");this.JSC$8743_value_=y;if(y!=null&&y.length===0)throw Error("I");};
_.JA=function(){return H1R||(H1R=new YJ(null,Bz))};
Xjn=function(y){return new Uint8Array(pdz(y)||0)};
YJ.prototype.isEmpty=function(){return this.JSC$8743_value_==null};
YJ.prototype.sizeBytes=function(){var y=pdz(this);return y?y.length:0};
var pdz=function(y){if(Bz!==Bz)throw Error("J");var W=y.JSC$8743_value_;W==null||kGv&&W!=null&&W instanceof Uint8Array||(typeof W==="string"?W=qzv(W):(_.Le(W),W=null));return W==null?W:y.JSC$8743_value_=W},H1R;var uvb=void 0;var qr=typeof Symbol==="function"&&typeof Symbol()==="symbol",ahP=fq("jas",void 0,!0),oJ4=fq(void 0,"0di"),Lu=fq(void 0,"1oa"),av=fq(void 0,Symbol()),kRL=fq(void 0,"0ub"),AAL=fq(void 0,"0ubs"),Vh4=fq(void 0,"0ubsb"),VP4=fq(void 0,"0actk"),Rv=fq("m_m","messagePrototypeMarker",!0),aIy=fq(void 0,"vps"),Dry=fq();var Dau,Szb,N5,Gob;Dau={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Szb=Object.defineProperties;_.UE=qr?ahP:"internalArrayState";Gob=[];DI(Gob,7);N5=Object.freeze(Gob);var jP={},sE={},riG=function(y,W,V){this.iterable=y;this.mapper=W;this.thisArg=V};
riG.prototype.next=function(){var y=this.iterable.next();y.done||(y.value=this.mapper.call(this.thisArg,y.value));return y};
riG.prototype[Symbol.iterator]=function(){return this};
var b1G=Object.freeze({}),nq={};_.QIL=X6(function(y){return y!==null&&y!==void 0});var Jvy=X6(function(y){return typeof y==="number"}),Buj=X6(function(y){return typeof y==="string"}),Rbn=X6(function(y){return typeof y==="boolean"}),Z1j=X6(function(y){return y!=null&&typeof y==="object"&&typeof y.then==="function"}),UOv=X6(function(y){return typeof y==="function"}),ho=X6(function(y){return!!y&&(typeof y==="object"||typeof y==="function")});var as=typeof _.Vj.BigInt==="function"&&typeof _.Vj.BigInt(0)==="bigint";var drb=X6(function(y){return as?y>=yJL&&y<=Wyj:y[0]==="-"?jRy(y,VrL):jRy(y,wbL)}),VrL=Number.MIN_SAFE_INTEGER.toString(),yJL=as?BigInt(Number.MIN_SAFE_INTEGER):void 0,wbL=Number.MAX_SAFE_INTEGER.toString(),Wyj=as?BigInt(Number.MAX_SAFE_INTEGER):void 0;var trR=typeof Uint8Array.prototype.slice==="function",ZI=0,Vu=0,Fha;var U3,xE,zj,kE,bdj;U3=typeof BigInt==="function"?BigInt.asIntN:void 0;_.s3=typeof BigInt==="function"?BigInt.asUintN:void 0;xE=Number.isSafeInteger;zj=Number.isFinite;kE=Math.trunc;bdj=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var GRR={};var Urz={},Fyv=function(){try{var y=function(){return qOa(Map,[],this.constructor)};
_.p(y,Map);TW(new y);return!1}catch(W){return!0}}(),lP=function(){this.JSC$8763_map_=new Map};
_.E=lP.prototype;_.E.get=function(y){return this.JSC$8763_map_.get(y)};
_.E.set=function(y,W){this.JSC$8763_map_.set(y,W);this.size=this.JSC$8763_map_.size;return this};
_.E.delete=function(y){y=this.JSC$8763_map_.delete(y);this.size=this.JSC$8763_map_.size;return y};
_.E.clear=function(){this.JSC$8763_map_.clear();this.size=this.JSC$8763_map_.size};
_.E.has=function(y){return this.JSC$8763_map_.has(y)};
_.E.entries=function(){return this.JSC$8763_map_.entries()};
_.E.keys=function(){return this.JSC$8763_map_.keys()};
_.E.values=function(){return this.JSC$8763_map_.values()};
_.E.forEach=function(y,W){return this.JSC$8763_map_.forEach(y,W)};
lP.prototype[Symbol.iterator]=function(){return this.entries()};
var rW=function(){if(Fyv)return Object.setPrototypeOf(lP.prototype,Map.prototype),Object.defineProperties(lP.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),lP;var y=function(){return qOa(Map,[],this.constructor)};
_.p(y,Map);return y}(),$E=function(y,W,V,w){V=V===void 0?fId:V;
w=w===void 0?fId:w;var t=rW.call(this)||this;t.arrayState=y[_.UE]|0;t.valueCtor=W;t.keyToApi=V;t.valueToApi=t.valueCtor?mrj:w;for(var F=0;F<y.length;F++){var I=y[F],P=V(I[0],!1,!0),C=I[1];W?C===void 0&&(C=null):C=w(I[1],!1,!0,void 0,void 0,t.arrayState);rW.prototype.set.call(t,P,C)}return t};
_.p($E,rW);var EvR=function(y){if(y.arrayState&2)throw Error("N");};
_.E=$E.prototype;_.E.clear=function(){EvR(this);rW.prototype.clear.call(this)};
_.E.delete=function(y){EvR(this);return rW.prototype.delete.call(this,this.keyToApi(y,!0,!1))};
_.E.entries=function(){if(this.valueCtor){var y=rW.prototype.keys.call(this);y=new riG(y,MQz,this)}else y=rW.prototype.entries.call(this);return y};
_.E.values=function(){if(this.valueCtor){var y=rW.prototype.keys.call(this);y=new riG(y,$E.prototype.get,this)}else y=rW.prototype.values.call(this);return y};
_.E.forEach=function(y,W){this.valueCtor?rW.prototype.forEach.call(this,function(V,w,t){y.call(W,t.get(w),w,t)}):rW.prototype.forEach.call(this,y,W)};
_.E.set=function(y,W){EvR(this);y=this.keyToApi(y,!0,!1);return y==null?this:W==null?(rW.prototype.delete.call(this,y),this):rW.prototype.set.call(this,y,this.valueToApi(W,!0,!0,this.valueCtor,!1,this.arrayState))};
_.E.has=function(y){return rW.prototype.has.call(this,this.keyToApi(y,!1,!1))};
_.E.get=function(y){y=this.keyToApi(y,!1,!1);var W=rW.prototype.get.call(this,y);if(W!==void 0){var V=this.valueCtor;return V?(V=this.valueToApi(W,!1,!0,V,this.callToMutableOnAccess,this.arrayState),V!==W&&rW.prototype.set.call(this,y,V),V):W}};
$E.prototype[Symbol.iterator]=function(){return this.entries()};
$E.prototype.toJSON=void 0;var qEn;var Ri4=function(){},Bmj=function(y,W){for(var V in y)!isNaN(V)&&W(y,+V,y[V])},jsy=function(y){var W=new Ri4;
Bmj(y,function(V,w,t){W[w]=Iv(t)});
W.reviveUnknownFields=y.reviveUnknownFields;return W},lIG={reviveIntoImmutable:!0};var JAz;var rAG,bq4;var NsG,Ox,Ug,xI,Iyz,RX,DY,gvz,PAb,HX,CAG,X_,bP,QH;NsG=_.rm(0);_.xe={};_.ke=function(y,W,V,w,t){W=Ox(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W,V,t);if(W!==null||w&&y.noLegacyNull!==sE)return W};
Ox=function(y,W,V,w){if(W===-1)return null;var t=W+(V?0:-1),F=y.length-1;if(!(F<1+(V?0:-1))){if(t>=F){var I=y[F];if(I!=null&&typeof I==="object"&&I.constructor===Object){V=I[W];var P=!0}else if(t===F)V=I;else return}else V=y[t];if(w&&V!=null){w=w(V);if(w==null)return w;if(!Object.is(w,V))return P?I[W]=w:y[t]=w,w}return V}};
_.KA=function(y,W,V,w){WZ(y);var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t_(t,t[_.UE]|0,W,V,w);return y};
_.sX=function(y,W,V){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cmG(y,y[_.UE]|0,W,V)!==void 0};
_.Ad=function(y,W,V,w){var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cmG(t,t[_.UE]|0,W,xI(y,w,V))!==void 0};
_.hG=function(y){return y===b1G?2:4};
_.Ye=function(y,W){y=_.ke(y,W,void 0,void 0,Ctj);return y==null?_.JA():y};
Ug=function(y,W,V,w){WZ(y);var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=t[_.UE]|0;if(w==null){var I=dun(t);if(LCz(I,t,F,V)===W)I.set(V,0);else return y}else F=z4z(t,F,V,W);t_(t,F,W,w);return y};
_.BX=function(y,W,V,w){var t=y[_.UE]|0,F=Hz(t);t=z4z(y,t,V,W,F);t_(y,t,W,w,F)};
xI=function(y,W,V){return _.Jd(y,W)===V?V:-1};
_.Jd=function(y,W){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return LCz(dun(y),y,void 0,W,void 0)};
Iyz=function(y,W,V){var w=y[_.UE]|0,t=Hz(w),F=Ox(y,V,t);if(F!=null&&F[Rv]===jP){if(!AA(F))return yG(F),F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var I=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(F)&&(I=F);if(I){var P=I[_.UE]|0;P&2&&(I=Zq(I,P))}I=ZqL(I,W,!0);I!==F&&t_(y,w,V,I,t);return I};
_.Da=function(y,W,V,w){var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=t[_.UE]|0;W=cmG(t,F,W,V,w);if(W==null)return W;F=t[_.UE]|0;if(!AA(y,F)){var I=Tmu(W);I!==W&&(yG(y)&&(t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=t[_.UE]|0),W=I,F=t_(t,F,V,W,w),w3(t,F))}return W};
_.eA=function(y,W,V,w){var t=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return e4z(y,t,t[_.UE]|0,W,V,w,!1,!0)};
_.sx=function(y,W,V,w){V=h4j(V);_.KA(y,W,V,w);V&&!AA(V)&&w3(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return y};
_.A_=function(y,W,V,w){w=h4j(w);Ug(y,W,V,w);w&&!AA(w)&&w3(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return y};
RX=function(y,W,V){WZ(y);var w=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=w[_.UE]|0;if(V==null)return t_(w,t,W),y;for(var F=V===N5?7:V[_.UE]|0,I=F,P=Cu(F),C=P||Object.isFrozen(V),d=!0,L=!0,z=0;z<V.length;z++){var c=V[z];P||(c=AA(c),d&&(d=!c),L&&(L=c))}P||(F=d?13:5,F=L?F&-4097:F|4096);C&&F===I||(V=Iv(V),I=0,F=IG(F,t));F!==I&&DI(V,F);t=t_(w,t,W,V);2&F||!(4096&F||16&F)||w3(w,t);return y};
DY=function(y,W,V,w){KCt(y,W,V,w);return y};
gvz=function(y,W,V){KCt(y,W,j6,void 0,V,1,!0);return y};
_.$e=function(y,W,V){y=_.ke(y,W,void 0,V);W=typeof y;y=y==null?y:W==="bigint"?_.rm((0,_.s3)(64,y)):_.cd(y)?W==="string"?_.vJR(y):_.C2t(y):void 0;return y};
_.nF=function(y,W){var V=V===void 0?!1:V;var w;return(w=_.rvv(_.ke(y,W)))!=null?w:V};
_.Ka=function(y,W,V){V=V===void 0?0:V;var w;return(w=_.mC(_.ke(y,W)))!=null?w:V};
PAb=function(y,W){var V=V===void 0?0:V;y=_.Zdu(_.ke(y,W));return y!=null?y:V};
HX=function(y,W,V){V=V===void 0?NsG:V;var w;return(w=_.cA4(_.ke(y,W)))!=null?w:V};
CAG=function(y){var W=W===void 0?NsG:W;var V;return(V=_.$e(y,23))!=null?V:W};
X_=function(y,W){var V=V===void 0?0:V;var w;return(w=_.ke(y,W,void 0,void 0,_.atd))!=null?w:V};
_.aX=function(y,W,V,w){V=V===void 0?"":V;var t;return(t=_.Jm(_.ke(y,W,w)))!=null?t:V};
_.rK=function(y,W){var V=V===void 0?0:V;var w;return(w=_.pe(_.ke(y,W)))!=null?w:V};
bP=function(y,W){var V=V===void 0?"0":V;y=ziR(_.ke(y,W),!0);return y!=null?y:V};
QH=function(y,W,V){return _.aX(y,xI(y,V,W))};
_.ZT=function(y,W,V,w){return _.Da(y,W,xI(y,w,V),void 0)};
_.lz=function(y,W){return _.Jm(_.ke(y,W,void 0,_.xe))};
_.Tk=function(y,W,V){return _.KA(y,W,GGn(V))};
_.jK=function(y,W,V){return _.d3(y,W,GGn(V),!1)};
_.y_=function(y,W,V){return _.KA(y,W,_.fe(V))};
_.sg=function(y,W,V){return _.KA(y,W,Dq(V))};
_.jD=function(y,W,V){return _.KA(y,W,Bd(V))};
_.Pm=function(y,W,V,w){return _.d3(y,W,Bd(V),"",w)};
_.oV=function(y,W,V){return _.KA(y,W,V==null?V:_.hm(V))};
_.W8=function(y,W,V){return _.d3(y,W,V==null?V:_.hm(V),0)};var z3=function(y,W,V){this.buffer=y;if(V&&!W)throw Error();this.JSC$8775_isImmutable=W};var OCb=function(y,W,V,w){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8778_start_=0;this.init(y,W,V,w)},V_,dSd,Lyv,cJy,nEz,vvv;
_.E=OCb.prototype;_.E.init=function(y,W,V,w){var t=w===void 0?{}:w;w=t.aliasBytesFields===void 0?!1:t.aliasBytesFields;t=t.treatNewDataAsImmutable===void 0?!1:t.treatNewDataAsImmutable;this.aliasBytesFields=w;this.treatNewDataAsImmutable=t;y&&(y=iea(y,this.treatNewDataAsImmutable),this.bytes_=y.buffer,this.bytesAreImmutable_=y.JSC$8775_isImmutable,this.JSC$8778_start_=W||0,this.end_=V!==void 0?this.JSC$8778_start_+V:this.bytes_.length,this.cursor_=this.JSC$8778_start_)};
_.E.free=function(){this.clear();vvv.length<100&&vvv.push(this)};
_.E.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8778_start_=0;this.aliasBytesFields=!1};
_.E.reset=function(){this.cursor_=this.JSC$8778_start_};
_.E.atEnd=function(){return this.cursor_==this.end_};
_.w4=function(y,W){var V=0,w=0,t=0,F=y.bytes_,I=y.cursor_;do{var P=F[I++];V|=(P&127)<<t;t+=7}while(t<32&&P&128);t>32&&(w|=(P&127)>>4);for(t=3;t<32&&P&128;t+=7)P=F[I++],w|=(P&127)<<t;V_(y,I);if(P<128)return W(V>>>0,w>>>0);throw Error("$");};
V_=function(y,W){y.cursor_=W;if(W>y.end_)throw Error("aa`"+W+"`"+y.end_);};
_.t$=function(y){var W=y.bytes_,V=y.cursor_,w=W[V++],t=w&127;if(w&128&&(w=W[V++],t|=(w&127)<<7,w&128&&(w=W[V++],t|=(w&127)<<14,w&128&&(w=W[V++],t|=(w&127)<<21,w&128&&(w=W[V++],t|=w<<28,w&128&&W[V++]&128&&W[V++]&128&&W[V++]&128&&W[V++]&128&&W[V++]&128)))))throw Error("$");V_(y,V);return t};
_.Fh=function(y){var W=y.bytes_,V=y.cursor_,w=W[V],t=W[V+1],F=W[V+2];W=W[V+3];V_(y,y.cursor_+4);return(w<<0|t<<8|F<<16|W<<24)>>>0};
dSd=function(y){var W=_.Fh(y);y=_.Fh(y);return Hdn(W,y)};
Lyv=function(y){var W=_.Fh(y),V=_.Fh(y);y=(V>>31)*2+1;var w=V>>>20&2047;W=4294967296*(V&1048575)+W;return w==2047?W?NaN:y*Infinity:w==0?y*4.9E-324*W:y*Math.pow(2,w-1075)*(W+4503599627370496)};
_.zHv=function(y){for(var W=0,V=y.cursor_,w=V+10,t=y.bytes_;V<w;){var F=t[V++];W|=F;if((F&128)===0)return V_(y,V),!!(W&127)}throw Error("$");};
cJy=function(y,W){if(W<0)throw Error("ba`"+W);var V=y.cursor_,w=V+W;if(w>y.end_)throw Error("aa`"+(y.end_-V)+"`"+W);y.cursor_=w;return V};
nEz=function(y,W){if(W==0)return _.JA();var V=cJy(y,W);y.aliasBytesFields&&y.bytesAreImmutable_?V=y.bytes_.subarray(V,V+W):(y=y.bytes_,W=V+W,V=V===W?new Uint8Array(0):trR?y.slice(V,W):new Uint8Array(y.subarray(V,W)));return V.length==0?_.JA():new YJ(V,Bz)};
vvv=[];var hHL=function(y,W,V,w){if(vvv.length){var t=vvv.pop();t.init(y,W,V,w);y=t}else y=new OCb(y,W,V,w);this.decoder_=y;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;eHv(this,w)},eHv=function(y,W){W=W===void 0?{}:W;
y.discardUnknownFields=W.discardUnknownFields===void 0?!1:W.discardUnknownFields},aqP=function(y,W,V,w){if(ovd.length){var t=ovd.pop();
eHv(t,w);t.decoder_.init(y,W,V,w);return t}return new hHL(y,W,V,w)},R4a,$uv,Kyu,ovd;
hHL.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ovd.length<100&&ovd.push(this)};
hHL.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
R4a=function(y){if(y.decoder_.atEnd())return!1;y.fieldCursor_=y.decoder_.cursor_;var W=_.t$(y.decoder_)>>>0,V=W>>>3;W&=7;if(!(W>=0&&W<=5))throw Error("W`"+W+"`"+y.fieldCursor_);if(V<1)throw Error("X`"+V+"`"+y.fieldCursor_);y.nextField_=V;y.nextWireType_=W;return!0};
$uv=function(y){switch(y.nextWireType_){case 0:y.nextWireType_!=0?$uv(y):_.zHv(y.decoder_);break;case 1:y=y.decoder_;V_(y,y.cursor_+8);break;case 2:if(y.nextWireType_!=2)$uv(y);else{var W=_.t$(y.decoder_)>>>0;y=y.decoder_;V_(y,y.cursor_+W)}break;case 5:y=y.decoder_;V_(y,y.cursor_+4);break;case 3:W=y.nextField_;do{if(!R4a(y))throw Error("Y");if(y.nextWireType_==4){if(y.nextField_!=W)throw Error("Z");break}$uv(y)}while(1);break;default:throw Error("W`"+y.nextWireType_+"`"+y.fieldCursor_);}};
Kyu=function(y,W,V){var w=y.decoder_.end_,t=_.t$(y.decoder_)>>>0,F=y.decoder_.cursor_+t,I=F-w;I<=0&&(y.decoder_.end_=F,V(W,y,void 0,void 0,void 0),I=F-y.decoder_.cursor_);if(I)throw Error("V`"+t+"`"+(t-I));y.decoder_.cursor_=F;y.decoder_.end_=w};
_.pbb=function(y){var W=_.t$(y.decoder_)>>>0;y=y.decoder_;var V=cJy(y,W);y=y.bytes_;if(VOu){var w=y,t;(t=WQt)||(t=WQt=new TextDecoder("utf-8",{fatal:!0}));W=V+W;w=V===0&&W===w.length?w:w.subarray(V,W);try{var F=t.decode(w)}catch(d){if(yid===void 0){try{t.decode(new Uint8Array([128]))}catch(L){}try{t.decode(new Uint8Array([97])),yid=!0}catch(L){yid=!1}}!yid&&(WQt=void 0);throw d;}}else{F=V;W=F+W;V=[];for(var I=null,P,C;F<W;)P=y[F++],P<128?V.push(P):P<224?F>=W?Wy():(C=y[F++],P<194||(C&192)!==128?(F--,
Wy()):V.push((P&31)<<6|C&63)):P<240?F>=W-1?Wy():(C=y[F++],(C&192)!==128||P===224&&C<160||P===237&&C>=160||((t=y[F++])&192)!==128?(F--,Wy()):V.push((P&15)<<12|(C&63)<<6|t&63)):P<=244?F>=W-2?Wy():(C=y[F++],(C&192)!==128||(P<<28)+(C-144)>>30!==0||((t=y[F++])&192)!==128||((w=y[F++])&192)!==128?(F--,Wy()):(P=(P&7)<<18|(C&63)<<12|(t&63)<<6|w&63,P-=65536,V.push((P>>10&1023)+55296,(P&1023)+56320))):Wy(),V.length>=8192&&(I=yvL(I,V),V.length=0);F=yvL(I,V)}return F};
_.iCu=function(y){var W=_.t$(y.decoder_)>>>0;return nEz(y.decoder_,W)};
_.fy4=function(y,W,V){var w=_.t$(y.decoder_)>>>0;for(w=y.decoder_.cursor_+w;y.decoder_.cursor_<w;)V.push(W(y.decoder_))};
ovd=[];var Tsd=function(y,W){this.JSC$8785_lo=y>>>0;this.JSC$8785_hi=W>>>0},Mra=function(y){if(!y)return mSa||(mSa=new Tsd(0,0));
if(!/^\d+$/.test(y))return null;Nu(y);return new Tsd(ZI,Vu)},mSa,gRG=function(y,W){this.JSC$8787_lo=y>>>0;
this.JSC$8787_hi=W>>>0},N3R=function(y){if(!y)return qLz||(qLz=new gRG(0,0));
if(!/^-?\d+$/.test(y))return null;Nu(y);return new gRG(ZI,Vu)},qLz;var Ev=function(){this.JSC$8789_buffer_=[]},If4,USv;
Ev.prototype.length=function(){return this.JSC$8789_buffer_.length};
Ev.prototype.end=function(){var y=this.JSC$8789_buffer_;this.JSC$8789_buffer_=[];return y};
If4=function(y,W,V){for(;V>0||W>127;)y.JSC$8789_buffer_.push(W&127|128),W=(W>>>7|V<<25)>>>0,V>>>=7;y.JSC$8789_buffer_.push(W)};
USv=function(y,W){for(;W>127;)y.JSC$8789_buffer_.push(W&127|128),W>>>=7;y.JSC$8789_buffer_.push(W)};
_.P_v=function(y,W){if(W>=0)USv(y,W);else{for(var V=0;V<9;V++)y.JSC$8789_buffer_.push(W&127|128),W>>=7;y.JSC$8789_buffer_.push(1)}};
Ev.prototype.writeUint8=function(y){this.JSC$8789_buffer_.push(y>>>0&255)};
_.Ux=function(y,W){y.JSC$8789_buffer_.push(W>>>0&255);y.JSC$8789_buffer_.push(W>>>8&255);y.JSC$8789_buffer_.push(W>>>16&255);y.JSC$8789_buffer_.push(W>>>24&255)};
Ev.prototype.writeInt8=function(y){this.JSC$8789_buffer_.push(y>>>0&255)};var uEz,T3,Ouu,Lhd;uEz=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ev};
T3=function(y,W){W.length!==0&&(y.blocks_.push(W),y.totalLength_+=W.length)};
_.MPz=function(y,W){_.q5(y,W,2);W=y.encoder_.end();T3(y,W);W.push(y.totalLength_);return W};
_.q3y=function(y,W){var V=W.pop();for(V=y.totalLength_+y.encoder_.length()-V;V>127;)W.push(V&127|128),V>>>=7,y.totalLength_++;W.push(V);y.totalLength_++};
_.q5=function(y,W,V){USv(y.encoder_,W*8+V)};
Ouu=function(y,W,V){if(V!=null){switch(typeof V){case "string":Mra(V)}_.q5(y,W,1);switch(typeof V){case "number":y=y.encoder_;$au(V);_.Ux(y,ZI);_.Ux(y,Vu);break;case "bigint":V=BigInt.asUintN(64,V);V=new Tsd(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));y=y.encoder_;W=V.JSC$8785_hi;_.Ux(y,V.JSC$8785_lo);_.Ux(y,W);break;default:V=Mra(V),y=y.encoder_,W=V.JSC$8785_hi,_.Ux(y,V.JSC$8785_lo),_.Ux(y,W)}}};
Lhd=function(y,W,V){_.q5(y,W,2);USv(y.encoder_,V.length);T3(y,y.encoder_.end());T3(y,V)};var fqz,lyP,xS4,AJv,YLj;fqz=cZ();_.SLj=cZ();_.DSa=cZ();lyP=cZ();xS4=cZ();_.ksa=cZ();_.N_=cZ();_.smn=cZ();AJv=cZ();YLj=cZ();_.Bsd=cZ();_.JJt=cZ();_.fu=function(y,W,V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,W,V)};
_.fu.prototype.toJSON=function(){return bt(this)};
_.fu.prototype.serialize=function(y){return JSON.stringify(bt(this,y))};
var iuG=function(y,W){if(W==null||W=="")return new y;W=JSON.parse(W);if(!Array.isArray(W))throw Error("ca");return new y(xav(W))};
_.fu.prototype.getExtension=function(y){ssR(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y.fieldIndex);xrd(this,y.fieldIndex);return y.ctor?y.isRepeated?y.getExtensionFn(this,y.ctor,y.fieldIndex,_.hG(),y.JSC$8800_hasMessageId):y.getExtensionFn(this,y.ctor,y.fieldIndex,y.JSC$8800_hasMessageId):y.isRepeated?y.getExtensionFn(this,y.fieldIndex,_.hG(),y.JSC$8800_hasMessageId):y.getExtensionFn(this,y.fieldIndex,y.defaultValue,y.JSC$8800_hasMessageId)};
_.fu.prototype.clone=function(){var y=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=y[_.UE]|0;return NWv(this,y,W)?EEy(this,y,!0):new this.constructor(Zq(y,W,!1))};
_.fu.prototype[Rv]=jP;_.fu.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var h_=function(y,W,V){this.$$binaryReaderFn=y;this.$$binaryWriterFn=W;y=Xj(fqz);this.$$isMsg=!!y&&V===y||!1},lqd=TWP(function(y,W,V,w,t){if(y.nextWireType_!==2)return!1;
Kyu(y,Iyz(W,w,V),t);return!0},Uuv),xua=TWP(function(y,W,V,w,t){if(y.nextWireType_!==2)return!1;
Kyu(y,Iyz(W,w,V),t);return!0},Uuv),rmb=Symbol(),Amd=Symbol(),Jmn=Symbol(),Zez=Symbol(),He4=Symbol(),ujn,S3t;var oRd,RHv,jmv,$SR,nvP,HCP,Xbv,ayy,Gs4,rJG,bCa,ZCz,yML,V7L,wL4;oRd=function(y,W){var V=new uEz;y_u(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V,pu(rmb,Gjt,beu,W));T3(V,V.encoder_.end());y=new Uint8Array(V.totalLength_);W=V.blocks_;for(var w=W.length,t=0,F=0;F<w;F++){var I=W[F];y.set(I,t);t+=I.length}V.blocks_=[y];return y};
RHv=_.mh(function(y,W,V){if(y.nextWireType_!==1)return!1;_.M5(W,V,Lyv(y.decoder_));return!0},ERL,YLj);
jmv=_.mh(function(y,W,V,w){if(y.nextWireType_!==1)return!1;_.BX(W,V,w,Lyv(y.decoder_));return!0},ERL,YLj);
$SR=_.mh(function(y,W,V,w){if(y.nextWireType_!==5)return!1;var t=_.Fh(y.decoder_);y=(t>>31)*2+1;var F=t>>>23&255;t&=8388607;_.BX(W,V,w,F==255?t?NaN:y*Infinity:F==0?y*1.401298464324817E-45*t:y*Math.pow(2,F-150)*(t+8388608));return!0},function(y,W,V){W=_.atd(W);
W!=null&&(_.q5(y,V,5),y=y.encoder_,V=Fha||(Fha=new DataView(new ArrayBuffer(8))),V.setFloat32(0,+W,!0),Vu=0,ZI=V.getUint32(0,!0),_.Ux(y,ZI))},AJv);
_.I1=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;_.M5(W,V,_.w4(y.decoder_,Fj));return!0},_.u_,_.N_);
nvP=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;y=_.w4(y.decoder_,Fj);_.M5(W,V,y===0?void 0:y);return!0},_.u_,_.N_);
HCP=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.w4(y.decoder_,Fj));return!0},_.u_,_.N_);
_.g4=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;_.M5(W,V,_.t$(y.decoder_));return!0},C_t,lyP);
Xbv=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;y=_.t$(y.decoder_);_.M5(W,V,y===0?void 0:y);return!0},C_t,lyP);
ayy=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.t$(y.decoder_));return!0},C_t,lyP);
Gs4=_.mh(function(y,W,V){if(y.nextWireType_!==1)return!1;_.M5(W,V,dSd(y.decoder_));return!0},_.vRz,_.smn);
rJG=_.thb(function(y,W,V){if(y.nextWireType_!==1&&y.nextWireType_!==2)return!1;W=_.vEv(W,W[_.UE]|0,V);y.nextWireType_==2?_.fy4(y,dSd,W):W.push(dSd(y.decoder_));return!0},function(y,W,V){W=_.wZR(hiu,W,!1);
if(W!=null)for(var w=0;w<W.length;w++)Ouu(y,V,W[w])},_.smn);
_.P8=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;_.M5(W,V,_.zHv(y.decoder_));return!0},_.d5z,_.SLj);
bCa=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.zHv(y.decoder_));return!0},_.d5z,_.SLj);
_.Cl=_.mh(function(y,W,V){if(y.nextWireType_!==2)return!1;_.M5(W,V,_.pbb(y));return!0},_.z1d,_.DSa);
_.Qmb=_.mh(function(y,W,V,w){if(y.nextWireType_!==2)return!1;_.BX(W,V,w,_.pbb(y));return!0},_.z1d,_.DSa);
ZCz=_.thb(function(y,W,V){if(y.nextWireType_!==2)return!1;y=_.pbb(y);_.vEv(W,W[_.UE]|0,V).push(y);return!0},function(y,W,V){W=_.wZR(_.Jm,W,!0);
if(W!=null)for(var w=0;w<W.length;w++){var t=y,F=V,I=W[w];I!=null&&Lhd(t,F,t4b(I))}},_.DSa);
yML=void 0;yML=yML===void 0?fqz:yML;_.Ov=new h_(function(y,W,V,w,t){if(y.nextWireType_!==2)return!1;w=ZqL(void 0,w,!0);_.vEv(W,W[_.UE]|0,V).push(w);Kyu(y,w,t);return!0},function(y,W,V,w,t){if(Array.isArray(W))for(var F=0;F<W.length;F++)c_y(y,W[F],V,w,t)},yML);
_.d4=TWP(function(y,W,V,w,t,F){if(y.nextWireType_!==2)return!1;var I=W[_.UE]|0;z4z(W,I,F,V,Hz(I));W=Iyz(W,w,V);Kyu(y,W,t);return!0},c_y);
_.W0t=_.mh(function(y,W,V){if(y.nextWireType_!==2)return!1;_.M5(W,V,_.iCu(y));return!0},_.e1R,_.Bsd);
V7L=_.mh(function(y,W,V,w){if(y.nextWireType_!==2)return!1;_.BX(W,V,w,_.iCu(y));return!0},_.e1R,_.Bsd);
wL4=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.t$(y.decoder_)>>>0);return!0},function(y,W,V){W=_.Zdu(W);
W!=null&&W!=null&&(_.q5(y,V,0),USv(y.encoder_,W))},xS4);
_.z7=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;_.M5(W,V,_.t$(y.decoder_));return!0},_.h1n,_.JJt);var Eiy=function(){var y=t7L,W=F0b;this.fieldIndex=175237375;this.ctor=W;this.isRepeated=0;this.getExtensionFn=_.Da;this.defaultValue=void 0;this.JSC$8800_hasMessageId=y.messageId!=null?nq:void 0};
Eiy.prototype.register=function(){TW(this)};var NYP=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(NYP,_.fu);var IJ4=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(IJ4,_.fu);var m5j=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(m5j,_.fu);var gid=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(gid,_.fu);var PSP=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(PSP,_.fu);var CSj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(CSj,_.fu);var Oyy=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Oyy,_.fu);Oyy.prototype.getData=function(){return _.Ye(this,2)};var viu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(viu,_.fu);var d9d=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(d9d,_.fu);d9d.prototype.getStyle=function(){return _.Da(this,NYP,1)};var kR=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(kR,_.fu);kR.prototype.getPayloadCase=function(){return _.Jd(this,BZ)};
kR.prototype.getStyle=function(){return _.ZT(this,d9d,6,BZ)};
var L0v=function(){var y=new kR,W=new PSP;return _.A_(y,7,BZ,W)},zZj=function(){var y=new kR,W=new CSj;
return _.A_(y,8,BZ,W)},BZ=[1,
2,3,4,5,6,7,8];var cMt=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(cMt,_.fu);var eZd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(eZd,_.fu);var hZu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(hZu,_.fu);var oin=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(oin,_.fu);var K0u=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(K0u,_.fu);var pLj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(pLj,_.fu);var iya=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(iya,_.fu);var fJ4=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(fJ4,_.fu);fJ4.prototype.getData=function(){return _.Ye(this,2)};var TYv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(TYv,_.fu);var T3v=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(T3v,_.fu);T3v.prototype.getPayloadCase=function(){return _.Jd(this,c8)};
var c8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ed=function(y,W){y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=W===void 0?2:W};
_.p(ed,Error);var m9n=Promise;var M7d=function(y){this.channelPromise=y};
M7d.prototype.send=function(y,W,V){this.channelPromise.then(function(w){w.send(y,W,V)})};var qs4=function(y,W){this.data=y;this.channel=W};
qs4.prototype.reply=function(y,W,V){this.channel.send(y,W,V)};var U9L=function(y){this.JSC$8866_port_=y};
U9L.prototype.send=function(y,W,V){V=V===void 0?[]:V;var w=new MessageChannel;uxR(w.port1,W);this.JSC$8866_port_.postMessage(y,[w.port2].concat(V))};
var Ssy=function(y,W){uxR(y,W);return new U9L(y)},uxR=function(y,W){W&&(y.onmessage=function(V){W(new qs4(V.data,Ssy(V.ports[0])))})};var D9z=function(y){this.verifier_=y};
D9z.prototype.verify=function(y){return this.verifier_(y)};
var lJP=function(y){var W=Object.create(null);(typeof y==="string"?[y]:y).forEach(function(V){if(V==="null")throw Error("ea");W[V]=!0});
return function(V){return W[V]===!0}};_.x9j=function(){if(!_.Vj.addEventListener||!Object.defineProperty)return!1;var y=!1,W=Object.defineProperty({},"passive",{get:function(){y=!0}});
try{var V=function(){};
_.Vj.addEventListener("test",V,W);_.Vj.removeEventListener("test",V,W)}catch(w){}return y}();var kMb;_.h$=function(y){var W=y.destination;var V=y.iframe;var w=y.origin;var t=y.channelName===void 0?"ZNWN1d":y.channelName;var F=y.onMessage===void 0?void 0:y.onMessage;y=y.onEstablished===void 0?void 0:y.onEstablished;return kMb({destination:W,getSource:function(){return V.contentWindow},
originVerifier:w instanceof D9z?w:typeof w==="function"?new D9z(w):new D9z(lJP(w)),channelName:t,onMessage:F,onEstablished:y})};
kMb=function(y){var W=y.destination;var V=y.getSource;var w=y.originVerifier;var t=y.token===void 0?void 0:y.token;var F=y.channelName;var I=y.onMessage===void 0?void 0:y.onMessage;var P=y.onEstablished===void 0?void 0:y.onEstablished;return new M7d(new m9n(function(C,d){var L=function(z){z.source&&z.source===V()&&w.verify(z.origin)&&(z.data.n||z.data)===F&&(W.removeEventListener("message",L,!1),t&&z.data.t!==t?d(Error("fa`"+F+"`"+t+"`"+z.data.t)):(C(Ssy(z.ports[0],I)),P&&P(z)))};
W.addEventListener("message",L,!1)}))};var s$P=function(y){try{y()}catch(W){wu(W)}};var Ysb=function(y){var W=this;var V=y.getMessageType;var w=y.onUnregisteredMessage===void 0?function(){}:y.onUnregisteredMessage;
var t=y.onBeforeRegisteredMessage===void 0?function(){}:y.onBeforeRegisteredMessage;
y=y.onAfterRegisteredMessage===void 0?function(){}:y.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=V;this.onUnregisteredMessage_=w;this.onBeforeRegisteredMessage_=t;this.onAfterRegisteredMessage_=y;this.onMessage=function(F){return AMn(W,F)}};
Ysb.prototype.register=function(y,W){this.registry_.set(y,W);return this};
var AMn=function(y,W){var V=y.getMessageType_(W.data),w=y.registry_.get(V);w?(s$P(function(){return y.onBeforeRegisteredMessage_(W,V)}),s$P(function(){return w(W)}),s$P(function(){return y.onAfterRegisteredMessage_(W,V)})):s$P(function(){return y.onUnregisteredMessage_(W,V)})};var BYa=function(y){this.JSC$8883_channel_=y},RZv,j$n;
BYa.prototype.send=function(y,W,V){this.JSC$8883_channel_.send(bt(y),W,V)};
_.JMP=function(y,W){return function(V){var w=new y(V.data);return W(new qs4(w,V.channel))}};
RZv=function(y){return function(W){return y(new qs4(W.data,new BYa(W.channel)))}};
j$n=function(y,W){return RZv(_.JMP(y,W))};var $9j=function(y,W,V,w){this.registry=y;this.delegate=W;this.receiveMessageConstructor=V;this.createInitMessage=w;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},ff4=function(y){var W=new Ysb({getMessageType:y.getPayloadCase});
return new $9j(W,new BYa(_.h$({iframe:y.child,destination:window,origin:y.origin,channelName:y.channelName,onMessage:j$n(y.receiveMessageConstructor,W.onMessage)})),y.receiveMessageConstructor,y.createInitMessage)},nid=function(y,W){y.createInitMessage=W};
$9j.prototype.send=function(y){if(!this.initialised)throw new ed("Attempted to send a message before initialisation.");this.delegate.send(y)};
var Hy4=function(y,W){return _.g(function(V){if(!y.initialised)throw new ed("Attempted to send a message before initialisation.");return V.return(new Promise(function(w){y.delegate.send(W,j$n(y.receiveMessageConstructor,w))}))})};
$9j.prototype.init=function(){var y=this;return _.g(function(W){if(y.initialised)throw new ed("Attempted to initialise twice. The SDK can only be initialised once.");if(y.createInitMessage!==void 0){var V=y.delegate,w=V.send,t=y.createInitMessage;var F=new IJ4;var I=[].concat(_.GC(y.features));F=_.vZ(F,1,I,_.hm);w.call(V,t.call(y,F))}y.initialised=!0;_.B7(W)})};
var o1=function(y,W){if(y.initialised)throw new ed('Attempted to set up API "'+W+'" after initialisation. All APIs must be set up before initialising the SDK.');y.features.add(W);return y.registry};
_.CM.Object.defineProperties($9j.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var XLL=function(y){this.channel=y;this.registered=!1};
XLL.prototype.update=function(y){if(this.channel.isInitialised){if(!this.registered)throw new ed("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var W=new kR;var V=new gid;V=_.Tk(V,1,y);W=_.A_(W,2,BZ,V);this.channel.send(W)}else this.register();this.JSC$8897_audioEnabled=y};
XLL.prototype.register=function(){o1(this.channel,1);this.registered=!0};
XLL.prototype.isAudioEnabled=function(){return this.JSC$8897_audioEnabled};var aJz=function(y){this.channel=y};
_.E=aJz.prototype;_.E.onFirstFrameReady=function(y){o1(this.channel,2).register(11,function(W){W=_.ZT(W.data,cMt,11,c8);if(!W)throw new ed("Unexpectedly nonexistent GameFirstFrameReadyEvent");y(_.aX(W,1))})};
_.E.onReady=function(y){o1(this.channel,2).register(4,function(W){W=_.ZT(W.data,hZu,4,c8);if(!W)throw new ed("Unexpectedly nonexistent GameReadyEvent");y(_.aX(W,1))})};
_.E.onLevelComplete=function(y){o1(this.channel,2).register(5,function(W){W=_.ZT(W.data,oin,5,c8);if(!W)throw new ed("Unexpectedly nonexistent LevelCompleteEvent");y(_.aX(W,1),_.Ka(W,2))})};
_.E.onGameOver=function(y){o1(this.channel,2).register(6,function(W){W=_.ZT(W.data,eZd,6,c8);if(!W)throw new ed("Unexpectedly nonexistent GameOverEvent");y(_.aX(W,1))})};
_.E.pause=function(){var y=this;if(!this.channel.isInitialised)return o1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ed("Using unregistered Game Feature: pause.");var W=L0v();return new Promise(function(V){return _.g(function(w){if(w.nextAddress==1)return w.yield(Hy4(y.channel,W),2);V();_.B7(w)})})};
_.E.resume=function(){var y=this;if(!this.channel.isInitialised)return o1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ed("Using unregistered Game Feature: resume.");var W=zZj();return new Promise(function(V){return _.g(function(w){if(w.nextAddress==1)return w.yield(Hy4(y.channel,W),2);V();_.B7(w)})})};var GMd=function(y){this.channel=y};
GMd.prototype.onReady=function(y){o1(this.channel,5).register(8,function(W){if(!_.ZT(W.data,K0u,8,c8))throw new ed("Unexpectedly nonexistent PageReadyEvent");y()})};var rMt=function(y){this.channel=y};
rMt.prototype.onChange=function(y){o1(this.channel,3).register(7,function(W){W=_.ZT(W.data,pLj,7,c8);if(!W)throw new ed("Unexpectedly nonexistent ScoreEvent");y(_.aX(W,1),_.Ka(W,2))})};var byy={load:function(){throw new ed("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new ed("Storage used, but storage.onSave() listener not set!");}},Q$P=function(y){this.channel=y;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ZyL=function(y){o1(y.channel,4).register(2,byy.load).register(3,byy.save);
y.initialSetupDone=!0};
Q$P.prototype.onLoad=function(y){this.initialSetupDone||ZyL(this);this.loadRegistered||(this.loadRegistered=!0,o1(this.channel,4).register(2,function(W){var V,w,t;return _.g(function(F){if(F.nextAddress==1){V=_.ZT(W.data,iya,2,c8);if(!V)throw new ed("Unexpectedly nonexistent StorageLoad");w=_.aX(V,1);return F.yield(y(w),2)}t=F.yieldResult;var I=W.reply,P=new kR;var C=new Oyy;C=_.jD(C,1,w);C=_.KA(C,2,_.Rs(t,!1));P=_.A_(P,3,BZ,C);I.call(W,P);_.B7(F)})}))};
Q$P.prototype.onSave=function(y){this.initialSetupDone||ZyL(this);this.saveRegistered||(this.saveRegistered=!0,o1(this.channel,4).register(3,function(W){var V,w,t;return _.g(function(F){if(F.nextAddress==1){V=_.ZT(W.data,fJ4,3,c8);if(!V)throw new ed("Unexpectedly nonexistent StorageSave");w=_.aX(V,1);t=Xjn(V.getData());return F.yield(y(w,t),2)}var I=W.reply,P=new kR;var C=new viu;C=_.jD(C,1,w);P=_.A_(P,4,BZ,C);I.call(W,P);_.B7(F)})}))};var yvf=function(y){this.channel=y};
yvf.prototype.update=function(y){if(!this.channel.features.has(6))throw new ed("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var W=new kR,V=new d9d;y=_.sx(V,1,y);W=_.A_(W,6,BZ,y);this.channel.send(W)};
yvf.prototype.register=function(){o1(this.channel,6)};var WLm=function(y){this.channel=y;this.userActivityLoggingIntervalMs=0};
WLm.prototype.onUserActivity=function(y,W){this.userActivityLoggingIntervalMs=W;o1(this.channel,7).register(9,function(V){if(!_.ZT(V.data,TYv,9,c8))throw new ed("Unexpectedly nonexistent ClickEvent");y()})};var V4r=function(y){var W=this;this.channel=y;this.init=this.channel.init.bind(this.channel);this.page=new GMd(this.channel);this.game=new aJz(this.channel);this.audio=new XLL(this.channel);this.score=new rMt(this.channel);this.storage=new Q$P(this.channel);this.style=new yvf(this.channel);this.userActivity=new WLm(this.channel);nid(this.channel,function(V){var w=new m5j;V=_.sx(w,1,V);V=_.y_(V,3,W.userActivity.userActivityLoggingIntervalMs);w=W.audio.isAudioEnabled();w!==void 0&&_.Tk(V,2,w);w=new kR;
return _.A_(w,5,BZ,V)})};var wy6=function(){this.timedFunctionContext=0};
wy6.prototype.timeExecution=function(y,W){var V=this;return function(){var w=_.Ve.apply(0,arguments);V.timedFunctionContext=y;return W.apply(null,_.GC(w))}};var t4i=function(){var y={};this.priorityTasks=(y[3]=[],y[2]=[],y[1]=[],y);this.isFlushing=!1},kY=function(y,W,V){var w=FLQ(y,V);
y.priorityTasks[V].push(W);w&&y.priorityTasks[V].length===1&&y.flush()},FLQ=function(y,W){return Object.keys(y.priorityTasks).map(function(V){return Number(V)}).filter(function(V){return!isNaN(V)&&V>W}).every(function(V){return y.priorityTasks[V].length===0})};
t4i.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(y){return y.length>0});)EPs(this,3),EPs(this,2),EPs(this,1)}catch(y){throw Object.values(this.priorityTasks).forEach(function(W){return void W.splice(0,W.length)}),y;
}finally{this.isFlushing=!1}}};
var EPs=function(y,W){for(;FLQ(y,W)&&y.priorityTasks[W].length>0;)y.priorityTasks[W][0](),y.priorityTasks[W].shift()};
_.CM.Object.defineProperties(t4i.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(y){return y.length>0})}}});var lfP={};var Nus=globalThis.trustedTypes,qxv=Nus,uMy;var RG=function(y){this.privateDoNotAccessOrElseWrappedResourceUrl=y};
RG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Itr,gP2,PnI,Cnr,OdI,vPK,daq,LLJ;Itr=_.CF([""]);gP2=PX(["\x00"],["\\0"]);PnI=PX(["\n"],["\\n"]);Cnr=PX(["\x00"],["\\u0000"]);OdI=_.CF([""]);vPK=PX(["\x00"],["\\0"]);daq=PX(["\n"],["\\n"]);LLJ=PX(["\x00"],["\\u0000"]);_.zbm=D54(function(y){return y(Itr)})||D54(function(y){return y(gP2)})||D54(function(y){return y(PnI)})||D54(function(y){return y(Cnr)});
_.cv6=_.nu(OdI)&&_.nu(vPK)&&_.nu(daq)&&_.nu(LLJ);var Zf;_.HZ=function(y,W){this.privateDoNotAccessOrElseWrappedUrl=W};
_.HZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ebm=XM("about:blank");Zf=XM("about:invalid#zClosurez");var x5u=function(y){this.isValid=y},hbK=new x5u(function(y){return/^[^:]*([/?#]|$)/.test(y)}),oPK=r3("data"),KLz=r3("http"),pyq=r3("https"),idq=r3("ftp"),ftz=r3("mailto"),TuI=r3("intent"),maQ=r3("vnd.youtube"),sGv=[oPK,
KLz,pyq,ftz,idq,hbK],Yxu=J_(function(){return typeof URL==="function"}),M4f=["data:",
"http:","https:","mailto:","ftp:"],J_P=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ec=function(y){this.privateDoNotAccessOrElseWrappedHtml=y};
Ec.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var ZBj=J_(function(){return new Ec(Nus?Nus.emptyHTML:"")});var qz6={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"},jGy=function(y,W){var V=Error.call(this,y+" cannot be used with intent "+qz6[W]);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.type=y;this.intent=W;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.p(jGy,Error);_.Oc=function(y){this.privateDoNotAccessOrElseWrappedScript=y};
_.Oc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var XZn=function(y){this.privateDoNotAccessOrElseWrappedAttributePrefix=y};
XZn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var afd="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var w5L=function(y){var W=_.ts("window.location.href");y==null&&(y='Unknown Error of type "null/undefined"');if(typeof y==="string")return{message:y,name:"Unknown error",lineNumber:"Not available",fileName:W,stack:"Not available"};var V=!1;try{var w=y.lineNumber||y.line||"Not available"}catch(I){w="Not available",V=!0}try{var t=y.fileName||y.filename||y.sourceURL||_.Vj.$googDebugFname||W}catch(I){t="Not available",V=!0}W=Ua6(y);if(!(!V&&y.lineNumber&&y.fileName&&y.stack&&y.message&&y.name)){V=y.message;
if(V==null){if(y.constructor&&y.constructor instanceof Function){if(y.constructor.name)V=y.constructor.name;else if(V=y.constructor,Kl[V])V=Kl[V];else{V=String(V);if(!Kl[V]){var F=/function\s+([^\(]+)/m.exec(V);Kl[V]=F?F[1]:"[Anonymous]"}V=Kl[V]}V='Unknown Error of type "'+V+'"'}else V="Unknown Error of unknown type";typeof y.toString==="function"&&Object.prototype.toString!==y.toString&&(V+=": "+y.toString())}return{message:V,name:y.name||"UnknownError",lineNumber:w,fileName:t,stack:W||"Not available"}}return{message:y.message,
name:y.name,lineNumber:y.lineNumber,fileName:y.fileName,stack:W}},Ua6=function(y,W){W||(W={});
W[uvi(y)]=!0;var V=y.stack||"",w=y.cause;w&&!W[uvi(w)]&&(V+="\nCaused by: ",w.stack&&w.stack.indexOf(w.toString())==0||(V+=typeof w==="string"?w:w.message+"\n"),V+=Ua6(w,W));y=y.errors;if(Array.isArray(y)){w=1;var t;for(t=0;t<y.length&&!(w>4);t++)W[uvi(y[t])]||(V+="\nInner error "+w++ +": ",y[t].stack&&y[t].stack.indexOf(y[t].toString())==0||(V+=typeof y[t]==="string"?y[t]:y[t].message+"\n"),V+=Ua6(y[t],W));t<y.length&&(V+="\n... "+(y.length-t)+" more inner errors")}return V},uvi=function(y){var W=
"";
typeof y.toString==="function"&&(W=""+y);return W+y.stack},Kl={};var Szi,c4,UP,ltR,xaA,Dam,FT,WN,sRQ;Szi=function(y,W){for(var V=y.split("%s"),w="",t=Array.prototype.slice.call(arguments,1);t.length&&V.length>1;)w+=V.shift()+t.shift();return w+V.join("%s")};
_.E1=function(y){return encodeURIComponent(String(y))};
c4=function(y){return decodeURIComponent(y.replace(/\+/g," "))};
UP=function(y){PMj.test(y)&&(y.indexOf("&")!=-1&&(y=y.replace(tOy,"&amp;")),y.indexOf("<")!=-1&&(y=y.replace(FQG,"&lt;")),y.indexOf(">")!=-1&&(y=y.replace(Ejy,"&gt;")),y.indexOf('"')!=-1&&(y=y.replace(N2L,"&quot;")),y.indexOf("'")!=-1&&(y=y.replace(IhL,"&#39;")),y.indexOf("\x00")!=-1&&(y=y.replace(gjt,"&#0;")));return y};
ltR=function(y){var W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var V=_.Vj.document.createElement("div");return y.replace(Dam,function(w,t){var F=W[w];if(F)return F;t.charAt(0)=="#"&&(t=Number("0"+t.slice(1)),isNaN(t)||(F=String.fromCharCode(t)));F||(_.c7(V,Nl(w+" ")),F=V.firstChild.nodeValue.slice(0,-1));return W[w]=F})};
xaA=function(y){return y.replace(/&([^;]+);/g,function(W,V){switch(V){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return V.charAt(0)!="#"||(V=Number("0"+V.slice(1)),isNaN(V))?W:String.fromCharCode(V)}})};
Dam=/&([^;\s<&]+);?/g;_.TDt=function(y){return String(y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.kG6=String.prototype.repeat?function(y,W){return y.repeat(W)}:function(y,W){return Array(W+1).join(y)};
_.pl=function(y,W){if(!Number.isFinite(y))return String(y);y=String(y);var V=y.indexOf(".");V===-1&&(V=y.length);var w=y[0]==="-"?"-":"";w&&(y=y.substring(1));return w+(0,_.kG6)("0",Math.max(0,W-V))+y};
FT=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.KF()).toString(36)};
WN=function(y){for(var W=0,V=0;V<y.length;++V)W=31*W+y.charCodeAt(V)>>>0;return W};
_.SK=function(y){return String(y).replace(/\-([a-z])/g,function(W,V){return V.toUpperCase()})};
_.uu=function(y){return String(y).replace(/([A-Z])/g,"-$1").toLowerCase()};
sRQ=function(y){return y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,V,w){return V+w.toUpperCase()})};var AvK=function(){this.names=new Map};
AvK.prototype.getName=function(y){var W=this.names.get(y);if(W)return W;var V;W=(V=y.description)!=null?V:FT();this.names.set(y,W);return W};var Yzr=function(y){var W=Error.call(this,y?y.length+" errors occurred during unsubscription:\n"+y.map(function(V,w){return w+1+") "+V.toString()}).join("\n  "):"");
this.message=W.message;"stack"in W&&(this.stack=W.stack);this.errors=y;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.p(Yzr,Error);var pJ=function(y){this.initialTeardown=y;this.closed=!1;this._teardowns=this._parentage=null};
_.E=pJ.prototype;
_.E.unsubscribe=function(){if(!this.closed){this.closed=!0;var y=this._parentage;if(Array.isArray(y))for(var W=_.N(y),V=W.next();!V.done;V=W.next())V.value.remove(this);else y==null||y.remove(this);W=this.initialTeardown;if(KJ(W))try{W()}catch(F){var w=F instanceof Yzr?F.errors:[F]}var t=this._teardowns;if(t)for(this._teardowns=null,W=_.N(t),V=W.next();!V.done;V=W.next()){V=V.value;try{KJ(V)?V():V.unsubscribe()}catch(F){V=void 0,w=(V=w)!=null?V:[],F instanceof Yzr?w=[].concat(_.GC(w),_.GC(F.errors)):
w.push(F)}}if(w)throw new Yzr(w);}};
_.E.add=function(y){if(y&&y!==this)if(this.closed)KJ(y)?y():y.unsubscribe();else{if(y instanceof pJ){if(y.closed||y._hasParent(this))return;y._addParent(this)}var W;(this._teardowns=(W=this._teardowns)!=null?W:[]).push(y)}};
_.E._hasParent=function(y){var W=this._parentage;return W===y||Array.isArray(W)&&W.includes(y)};
_.E._addParent=function(y){var W=this._parentage;this._parentage=Array.isArray(W)?(W.push(y),W):W?[W,y]:y};
_.E._removeParent=function(y){var W=this._parentage;W===y?this._parentage=null:Array.isArray(W)&&QGy(W,y)};
_.E.remove=function(y){var W=this._teardowns;W&&QGy(W,y);y instanceof pJ&&y._removeParent(this)};
var BuK=new pJ;BuK.closed=!0;pJ.JSC$8993_EMPTY=BuK;var yXb=function(){setTimeout.apply(null,_.GC(_.Ve.apply(0,arguments)))};var iQ=function(y){pJ.call(this);this.JSC$8998_isStopped=!1;this.destination=y instanceof iQ?y:new fl(!y||KJ(y)?{next:y!=null?y:void 0}:y);Zud(y)&&y.add(this)};
_.p(iQ,pJ);iQ.JSC$8993_EMPTY=pJ.JSC$8993_EMPTY;iQ.create=function(y,W,V){return new T7(y,W,V)};
_.E=iQ.prototype;_.E.next=function(y){this.JSC$8998_isStopped||this._next(y)};
_.E.error=function(y){this.JSC$8998_isStopped||(this.JSC$8998_isStopped=!0,this._error(y))};
_.E.complete=function(){this.JSC$8998_isStopped||(this.JSC$8998_isStopped=!0,this._complete())};
_.E.unsubscribe=function(){this.closed||(this.JSC$8998_isStopped=!0,pJ.prototype.unsubscribe.call(this))};
_.E._next=function(y){this.destination.next(y)};
_.E._error=function(y){this.destination.error(y);this.unsubscribe()};
_.E._complete=function(){this.destination.complete();this.unsubscribe()};
var fl=function(y){this.partialObserver=y};
fl.prototype.next=function(y){var W=this.partialObserver;if(W.next)try{W.next(y)}catch(V){fJ(V)}};
fl.prototype.error=function(y){var W=this.partialObserver;if(W.error)try{W.error(y)}catch(V){fJ(V)}else fJ(y)};
fl.prototype.complete=function(){var y=this.partialObserver;if(y.complete)try{y.complete()}catch(W){fJ(W)}};
var T7=function(y,W,V){iQ.call(this);var w;KJ(y)||!y?w={next:y!=null?y:void 0,error:W!=null?W:void 0,complete:V!=null?V:void 0}:w=y;this.destination=new fl(w)};
_.p(T7,iQ);T7.JSC$8993_EMPTY=iQ.JSC$8993_EMPTY;T7.create=iQ.create;var u7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Uc=function(y){y&&(this._subscribe=y)};
_.E=Uc.prototype;_.E.lift=function(y){var W=new Uc;W.source=this;W.operator=y;return W};
_.E.subscribe=function(y,W,V){y=y&&y instanceof iQ||y&&KJ(y.next)&&KJ(y.error)&&KJ(y.complete)&&Zud(y)?y:new T7(y,W,V);W=this.operator;V=this.source;y.add(W?W.call(y,V):V?this._subscribe(y):this._trySubscribe(y));return y};
_.E._trySubscribe=function(y){try{return this._subscribe(y)}catch(W){y.error(W)}};
_.E.forEach=function(y,W){var V=this;W=Vmd(W);return new W(function(w,t){var F=V.subscribe(function(I){try{y(I)}catch(P){t(P),F==null||F.unsubscribe()}},t,w)})};
_.E._subscribe=function(y){var W;return(W=this.source)==null?void 0:W.subscribe(y)};
Uc.prototype[u7]=function(){return this};
Uc.prototype.pipe=function(){var y=_.Ve.apply(0,arguments);return y.length?WXv(y)(this):this};
Uc.create=function(y){return new Uc(y)};var Jvz=function(){var y=Error.call(this,"object unsubscribed");this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.p(Jvz,Error);var SD=function(){this.observers=[];this.hasError=this.JSC$9014_isStopped=this.closed=!1;this.thrownError=null};
_.p(SD,Uc);_.E=SD.prototype;_.E.lift=function(y){var W=new mq(this,this);W.operator=y;return W};
_.E._throwIfClosed=function(){if(this.closed)throw new Jvz;};
_.E.next=function(y){this._throwIfClosed();if(!this.JSC$9014_isStopped){var W=this.observers.slice();W=_.N(W);for(var V=W.next();!V.done;V=W.next())V.value.next(y)}};
_.E.error=function(y){this._throwIfClosed();if(!this.JSC$9014_isStopped){this.hasError=this.JSC$9014_isStopped=!0;this.thrownError=y;for(var W=this.observers;W.length;)W.shift().error(y)}};
_.E.complete=function(){this._throwIfClosed();if(!this.JSC$9014_isStopped){this.JSC$9014_isStopped=!0;for(var y=this.observers;y.length;)y.shift().complete()}};
_.E.unsubscribe=function(){this.JSC$9014_isStopped=this.closed=!0;this.observers=null};
_.E._trySubscribe=function(y){this._throwIfClosed();return Uc.prototype._trySubscribe.call(this,y)};
_.E._subscribe=function(y){this._throwIfClosed();this._checkFinalizedStatuses(y);return this._innerSubscribe(y)};
_.E._innerSubscribe=function(y){var W=this,V=this.JSC$9014_isStopped,w=this.observers;return this.hasError||V?pJ.JSC$8993_EMPTY:(w.push(y),new pJ(function(){return QGy(W.observers,y)}))};
_.E._checkFinalizedStatuses=function(y){var W=this.thrownError,V=this.JSC$9014_isStopped;this.hasError?y.error(W):V&&y.complete()};
SD.create=function(y,W){return new mq(y,W)};
var mq=function(y,W){SD.call(this);this.destination=y;this.source=W};
_.p(mq,SD);mq.create=SD.create;mq.prototype.next=function(y){var W,V;(W=this.destination)==null||(V=W.next)==null||V.call(W,y)};
mq.prototype.error=function(y){var W,V;(W=this.destination)==null||(V=W.error)==null||V.call(W,y)};
mq.prototype.complete=function(){var y,W;(y=this.destination)==null||(W=y.complete)==null||W.call(y)};
mq.prototype._subscribe=function(y){var W,V;return(V=(W=this.source)==null?void 0:W.subscribe(y))!=null?V:pJ.JSC$8993_EMPTY};var Fo=function(y){SD.call(this);this._value=y};
_.p(Fo,SD);Fo.create=SD.create;Fo.prototype._subscribe=function(y){var W=SD.prototype._subscribe.call(this,y);!W.closed&&y.next(this._value);return W};
Fo.prototype.getValue=function(){var y=this.thrownError,W=this._value;if(this.hasError)throw y;this._throwIfClosed();return W};
Fo.prototype.next=function(y){SD.prototype.next.call(this,this._value=y)};
_.CM.Object.defineProperties(Fo.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var yL=new Uc(function(y){return y.complete()});var EXv=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var C7b=function(y){return y&&typeof y.length==="number"&&typeof y!=="function"};var Rb2={now:function(){return(Rb2.delegate||Date).now()},
delegate:void 0};var c3=function(y,W,V){y=y===void 0?Infinity:y;W=W===void 0?Infinity:W;V=V===void 0?Rb2:V;SD.call(this);this.bufferSize=y;this.windowTime=W;this.timestampProvider=V;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=W===Infinity;this.bufferSize=Math.max(1,y);this.windowTime=Math.max(1,W)};
_.p(c3,SD);c3.create=SD.create;c3.prototype.next=function(y){var W=this.buffer,V=this.infiniteTimeWindow,w=this.timestampProvider,t=this.windowTime;this.JSC$9014_isStopped||(W.push(y),!V&&W.push(w.now()+t));jRz(this);SD.prototype.next.call(this,y)};
c3.prototype._subscribe=function(y){this._throwIfClosed();jRz(this);for(var W=this._innerSubscribe(y),V=this.infiniteTimeWindow,w=this.buffer.slice(),t=0;t<w.length&&!y.closed;t+=V?1:2)y.next(w[t]);this._checkFinalizedStatuses(y);return W};
var jRz=function(y){var W=y.bufferSize,V=y.timestampProvider,w=y.buffer;y=y.infiniteTimeWindow;var t=(y?1:2)*W;W<Infinity&&t<w.length&&w.splice(0,w.length-t);if(!y){W=V.now();V=0;for(y=1;y<w.length&&w[y]<=W;y+=2)V=y;V&&w.splice(0,V+1)}};var nPQ=function(y,W){W=W===void 0?$am:W;this.schedulerActionCtor=y;this.now=W};
nPQ.prototype.schedule=function(y,W,V){W=W===void 0?0:W;return(new this.schedulerActionCtor(this,y)).schedule(V,W)};
var $am=Rb2.now;var w3a=function(){var y=Error.call(this,"no elements in sequence");this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.p(w3a,Error);var H7=function(y,W,V,w,t){iQ.call(this,y);this.onUnsubscribe=t;W&&(this._next=function(F){try{W(F)}catch(I){this.destination.error(I)}});
V&&(this._error=function(F){try{V(F)}catch(I){this.destination.error(I)}this.unsubscribe()});
w&&(this._complete=function(){try{w()}catch(F){this.destination.error(F)}this.unsubscribe()})};
_.p(H7,iQ);H7.JSC$8993_EMPTY=iQ.JSC$8993_EMPTY;H7.create=iQ.create;H7.prototype.unsubscribe=function(){var y;this.closed||(y=this.onUnsubscribe)!=null&&y.call(this);iQ.prototype.unsubscribe.call(this)};var v3=function(y,W){this.source=y;this.subjectFactory=W;this._subject=null;this._refCount=0;this._connection=null};
_.p(v3,Uc);v3.create=Uc.create;v3.prototype._subscribe=function(y){return Hd2(this).subscribe(y)};
var Hd2=function(y){var W=y._subject;if(!W||W.JSC$9014_isStopped)y._subject=y.subjectFactory();return y._subject};
v3.prototype._teardown=function(){this._refCount=0;var y=this._connection;this._subject=this._connection=null;y==null||y.unsubscribe()};
v3.prototype.connect=function(){var y=this,W=this._connection;if(!W){W=this._connection=new pJ;var V=Hd2(this);W.add(this.source.subscribe(new H7(V,void 0,function(w){y._teardown();V.error(w)},function(){y._teardown();
V.complete()},function(){return y._teardown()})));
W.closed&&(this._connection=null,W=pJ.JSC$8993_EMPTY)}return W};var iJR=Array.isArray;var T$G=Array.isArray,XyQ=Object,mla=XyQ.getPrototypeOf,MmR=XyQ.prototype,qc4=XyQ.keys;var b7=function(y,W,V){iQ.call(this,y);this._next=W;this.shouldComplete=V};
_.p(b7,iQ);b7.JSC$8993_EMPTY=iQ.JSC$8993_EMPTY;b7.create=iQ.create;b7.prototype._complete=function(){this.shouldComplete()?iQ.prototype._complete.call(this):this.unsubscribe()};var AXn=["addListener","removeListener"],shy=["addEventListener","removeEventListener"],B$n=["on","off"];var M_=function(){pJ.call(this)};
_.p(M_,pJ);M_.JSC$8993_EMPTY=pJ.JSC$8993_EMPTY;M_.prototype.schedule=function(){return this};var atq=function(y,W){return setInterval.apply(null,[y,W].concat(_.GC(_.Ve.apply(2,arguments))))};var q_=function(y,W){pJ.call(this);this.scheduler=y;this.work=W;this.pending=!1};
_.p(q_,M_);q_.JSC$8993_EMPTY=M_.JSC$8993_EMPTY;q_.prototype.schedule=function(y,W){W=W===void 0?0:W;if(this.closed)return this;this.state=y;y=this.id;var V=this.scheduler;y!=null&&(this.id=GG2(this,y,W));this.pending=!0;this.delay=W;this.id=this.id||this.requestAsyncId(V,this.id,W);return this};
q_.prototype.requestAsyncId=function(y,W,V){V=V===void 0?0:V;return atq(y.flush.bind(y,this),V)};
var GG2=function(y,W,V){V=V===void 0?0:V;if(V!=null&&y.delay===V&&y.pending===!1)return W;clearInterval(W)};
q_.prototype.execute=function(y,W){if(this.closed)return Error("pa");this.pending=!1;if(y=this._execute(y,W))return y;this.pending===!1&&this.id!=null&&(this.id=GG2(this,this.id,null))};
q_.prototype._execute=function(y){var W=!1;try{this.work(y)}catch(w){W=!0;var V=!!w&&w||Error(w)}if(W)return this.unsubscribe(),V};
q_.prototype.unsubscribe=function(){if(!this.closed){var y=this.id,W=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;QGy(W,this);y!=null&&(this.id=GG2(this,y,null));this.delay=null;M_.prototype.unsubscribe.call(this)}};var rv6=function(y,W){W=W===void 0?$am:W;nPQ.call(this,y,W);this.actions=[];this.active=!1;this.scheduled=void 0};
_.p(rv6,nPQ);rv6.prototype.flush=function(y){var W=this.actions;if(this.active)W.push(y);else{var V;this.active=!0;do if(V=y.execute(y.state,y.delay))break;while(y=W.shift());this.active=!1;if(V){for(;y=W.shift();)y.unsubscribe();throw V;}}};var H3=new Uc(i7);var JXL=Array.isArray;var Uv=function(y,W){q_.call(this,y,W);this.scheduler=y;this.work=W};
_.p(Uv,q_);Uv.JSC$8993_EMPTY=q_.JSC$8993_EMPTY;Uv.prototype.schedule=function(y,W){W=W===void 0?0:W;if(W>0)return q_.prototype.schedule.call(this,y,W);this.delay=W;this.state=y;this.scheduler.flush(this);return this};
Uv.prototype.execute=function(y,W){return W>0||this.closed?q_.prototype.execute.call(this,y,W):this._execute(y,W)};
Uv.prototype.requestAsyncId=function(y,W,V){V=V===void 0?0:V;return V!=null&&V>0||V==null&&this.delay>0?q_.prototype.requestAsyncId.call(this,y,W,V):y.flush(this)};var bdK=function(){rv6.apply(this,arguments)};
_.p(bdK,rv6);var KXy=new bdK(Uv);var QRi=function(){this.performanceMonitor=new wy6;this.queue=new t4i;this.internalSymbol=Symbol();this.debugNames=new AvK};
QRi.prototype.getOnBackgrounded=function(){return H3};
_.CM.Object.defineProperties(QRi.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var uQ=function(y,W){W=Error.call(this,W?y+": "+W:String(y));this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=y;this.__proto__=uQ.prototype;this.name=String(y)};
_.p(uQ,Error);var X0=function(y){uQ.call(this,1E3,'sfr:"'+y+'"');this.measurementStrategyFailureReason=y;this.__proto__=X0.prototype};
_.p(X0,uQ);var aS=function(){uQ.call(this,1003);this.__proto__=aS.prototype};
_.p(aS,uQ);var Sd=function(){uQ.call(this,1009);this.__proto__=Sd.prototype};
_.p(Sd,uQ);var Zdm=function(){uQ.call(this,1011);this.__proto__=Zdm.prototype};
_.p(Zdm,uQ);var yAI=function(){uQ.call(this,1007);this.__proto__=aS.prototype};
_.p(yAI,uQ);var $Y=function(y){uQ.call(this,1004,String(y));this.inputObservableIndex=y;this.__proto__=$Y.prototype};
_.p($Y,uQ);var L1G=function(y){uQ.call(this,1010,y);this.__proto__=zpv.prototype};
_.p(L1G,uQ);var zpv=function(y){uQ.call(this,1005,y);this.__proto__=zpv.prototype};
_.p(zpv,uQ);var Wff=function(y){var W=_.Ve.apply(1,arguments),V=this;this.orderedFactories=[];this.orderedFactories.push(y);W.forEach(function(w){V.orderedFactories.push(w)})};
Wff.prototype.isSupported=function(y){return this.orderedFactories.some(function(W){return W.isSupported(y)})};
Wff.prototype.makeBeacon=function(y,W){for(var V=0;V<this.orderedFactories.length;V++)if(this.orderedFactories[V].isSupported(W))return this.orderedFactories[V].makeBeacon(y,W);throw new Sd;};var FTd=Symbol("qa"),VQz=Symbol("ra"),F0=function(y,W){this.value=y;this.timeline=W},wU=function(y,W){if(W.timeline!==y.timeline)throw new yAI;
return y.value-W.value};
_.E=F0.prototype;_.E.equals=function(y){return wU(this,y)===0};
_.E.maximum=function(y){if(y.timeline!==this.timeline)throw new yAI;return this.value>=y.value?this:y};
_.E.round=function(){return new F0(Math.round(this.value),this.timeline)};
_.E.add=function(y){return new F0(this.value+y,this.timeline)};
_.E.toString=function(){return String(this.value)};var Dx=function(y,W){this.context=y;this.JSC$9120_pinger=W};
Dx.prototype.isSupported=function(y){return this.JSC$9120_pinger.isSupported(y)};
Dx.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Sd;return new lQ(this.context,this.JSC$9120_pinger,W!=null?W:void 0,y)};
var lQ=function(y,W,V,w){var t=this;this.JSC$9126_pinger=W;this.properties=V;this.url=w;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var F;this.method=(F=V==null?void 0:V.beaconMethod)!=null?F:"GET";this.backgroundedSubscription=y.getOnBackgrounded().subscribe(function(){t.sendNow()})};
lQ.prototype.deactivate=function(){this.internalIsPending=!1};
lQ.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9126_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var y,W;this.JSC$9126_pinger.pingWithHeadersAndBody((y=this.properties)!=null?y:{},this.customHeaders,(W=this.body)!=null?W:"",this.url)}else this.JSC$9126_pinger.ping(this.url);this.internalIsPending=!1}catch(V){}else this.internalIsPending=!1};
lQ.prototype.setHeader=function(y,W){this.customHeaders.set(y,W)};
_.CM.Object.defineProperties(lQ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var tQA=function(){for(var y=_.N(_.Ve.apply(0,arguments)),W=y.next();!W.done;W=y.next())if(W=W.value,W.available()){this.timeProvider=W;return}this.timeProvider=new wzm};
_.E=tQA.prototype;_.E.available=function(){return this.timeProvider.available()};
_.E.now=function(){return this.timeProvider.now()};
_.E.setTimeout=function(y,W){return this.timeProvider.setTimeout(y,W)};
_.E.clearTimeout=function(y){this.timeProvider.clearTimeout(y)};
_.E.interval=function(y,W){var V=this.intervalObservable(y).subscribe(W);return function(){return void V.unsubscribe()}};
_.E.intervalObservable=function(y){return this.timeProvider.intervalObservable(y)};
_.CM.Object.defineProperties(tQA.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var wzm=function(){this.timeline=Symbol()};
_.E=wzm.prototype;_.E.available=function(){return!1};
_.E.now=function(){return new F0(0,this.timeline)};
_.E.setTimeout=function(){return 0};
_.E.clearTimeout=function(){};
_.E.interval=function(){return function(){}};
_.E.intervalObservable=function(){return H3};var xW=function(y,W){this.intrinsicFunctionNamespace=y;this.performanceMonitor=W};
_.E=xW.prototype;_.E.setTimeout=function(y,W){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,y),W)};
_.E.clearTimeout=function(y){this.intrinsicFunctionNamespace.clearTimeout(y)};
_.E.interval=function(y,W){var V=this.intervalObservable(y).subscribe(W);return function(){return void V.unsubscribe()}};
_.E.intervalObservable=function(y){var W=this;return new Uc(function(V){var w=0,t=W.intrinsicFunctionNamespace.setInterval(function(){V.next(w++)},y);
return function(){W.intrinsicFunctionNamespace.clearInterval(t)}})};
_.E.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Ffs=function(y,W){xW.call(this,y,W);this.timeline=VQz};
_.p(Ffs,xW);Ffs.prototype.now=function(){return new F0(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Ffs.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&xW.prototype.available.call(this)};var EJi=function(y,W){xW.call(this,y,W);this.timeline=FTd};
_.p(EJi,xW);EJi.prototype.now=function(){return new F0(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
EJi.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&xW.prototype.available.call(this)};var IIR=function(y){this.context=y;if(Nmq===void 0)a:{var W,V,w=(W=y.global)==null?void 0:(V=W.document)==null?void 0:V.createElement("meta");if(w)try{w.httpEquiv="origin-trial";w.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";y.global.document.head.append(w);Nmq=w;break a}catch(t){}Nmq=void 0}},
Nmq;
IIR.prototype.isSupported=function(y){return bJj(this.context)!==void 0&&!(y==null||!y.endOfSession)&&!kW(this.context)&&!(y==null?0:y.attributionEnabled)&&!(y==null?0:y.customHeaders)&&!(y==null?0:y.customBody)};
IIR.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Sd;return new sv(this.context,y,W)};
var sv=function(y,W,V){this.context=y;this.properties=V;this.JSC$9153_urlWithoutToken=W;var w;this.beaconMethod=(w=V==null?void 0:V.beaconMethod)!=null?w:"GET";y=bJj(this.context);if(y===void 0)throw Error();this.fetchLater=y;gJI(this,P2q(this))},gJI=function(y,W){y.beaconResult&&y.beaconResult.activated||(y.beaconAbort=new AbortController,y.beaconResult=y.fetchLater(W,{method:y.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:y.beaconAbort.signal,activateAfter:96E4}))},P2q=function(y){y=y.JSC$9153_urlWithoutToken;
return(y.slice(-1)[0]==="&"?y:y+"&")+"flapi=1"};
sv.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
sv.prototype.sendNow=function(){};
sv.prototype.setHeader=function(){};
_.CM.Object.defineProperties(sv.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9153_urlWithoutToken},
set:function(y){this.JSC$9153_urlWithoutToken=y;y=P2q(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);gJI(this,y)}},
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 C2I=function(y){this.context=y};
C2I.prototype.isSupported=function(){return!kW(this.context)&&!!this.context.global.fetch};
C2I.prototype.ping=function(){var y=this;return W3.apply(null,_.GC(_.Ve.apply(0,arguments).map(function(W){return DB(y.context.global.fetch(W,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(ah(function(V){return V.status===200}))}))).pipe(tDb(function(W){return W}),EYt())};
C2I.prototype.pingWithHeadersAndBody=function(y,W,V){for(var w=_.Ve.apply(3,arguments),t=this,F=new Headers,I=_.N(W.entries()),P=I.next();!P.done;P=I.next()){var C=_.N(P.value);P=C.next().value;C=C.next().value;F.set(P,C)}var d,L=(d=y.keepAlive)!=null?d:!1;W3.apply(null,_.GC(w.map(function(z){return DB(t.context.global.fetch(z,Object.assign({},{method:String(y.beaconMethod),cache:"no-cache"},L?{keepalive:!0}:{},{mode:"no-cors",headers:F,body:V}))).pipe(ah(function(c){return c.status===200}))}))).pipe(tDb(function(z){return z}),
EYt())};var Oq2,QKn;_.A$=function(){};
_.Jv=function(y){return y};
Oq2=function(y){var W=W||0;return function(){return y.apply(this,Array.prototype.slice.call(arguments,0,W))}};
_.YW=function(y){var W=!1,V;return function(){W||(V=y(),W=!0);return V}};
_.B8=function(y,W){var V=0;return function(w){_.Vj.clearTimeout(V);var t=arguments;V=_.Vj.setTimeout(function(){y.apply(void 0,t)},W)}};
QKn=function(y,W){var V=0,w=!1,t=[],F=function(){V=0;w&&(w=!1,I())},I=function(){V=_.Vj.setTimeout(F,W);
var P=t;t=[];y.apply(void 0,P)};
return function(P){t=arguments;V?w=!0:I()}};var dri=function(){return e4&&oR?oR.mobile:!vJs()&&(fd("iPod")||fd("iPhone")||fd("Android")||fd("IEMobile"))},vJs=function(){return e4&&oR?!oR.mobile&&(fd("iPad")||fd("Android")||fd("Silk")):fd("iPad")||fd("Android")&&!fd("Mobile")||fd("Silk")};var Lf2;_.Gc={};Lf2="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Gc.add=function(y,W,V){if(y!==null&&W in y)throw Error("ta`"+W);y[W]=V};
_.Gc.clear=function(y){for(var W in y)delete y[W]};
_.Gc.clone=function(y){var W={},V;for(V in y)W[V]=y[V];return W};
_.Gc.contains=function(y,W){return Pj4(y,W)};
_.Gc.containsKey=function(y,W){return y!==null&&W in y};
_.Gc.containsValue=Pj4;_.Gc.create=vYj;_.Gc.createImmutableView=function(y){var W=y;Object.isFrozen&&!Object.isFrozen(y)&&(W=Object.create(y),Object.freeze(W));return W};
_.Gc.createSet=dGd;_.Gc.equals=function(y,W){for(var V in y)if(!(V in W)||y[V]!==W[V])return!1;for(var w in W)if(!(w in y))return!1;return!0};
_.Gc.every=function(y,W,V){for(var w in y)if(!W.call(V,y[w],w,y))return!1;return!0};
_.Gc.extend=function(y,W){for(var V,w,t=1;t<arguments.length;t++){w=arguments[t];for(V in w)y[V]=w[V];for(var F=0;F<Lf2.length;F++)V=Lf2[F],Object.prototype.hasOwnProperty.call(w,V)&&(y[V]=w[V])}};
_.Gc.filter=function(y,W,V){var w={},t;for(t in y)W.call(V,y[t],t,y)&&(w[t]=y[t]);return w};
_.Gc.findKey=CjP;_.Gc.findValue=function(y,W,V){return(W=CjP(y,W,V))&&y[W]};
_.Gc.forEach=function(y,W,V){for(var w in y)W.call(V,y[w],w,y)};
_.Gc.get=function(y,W,V){return y!==null&&W in y?y[W]:V};
_.Gc.getAllPropertyNames=function(y,W,V){if(!y)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return gYy(y);for(var w={};y&&(y!==Object.prototype||W)&&(y!==Function.prototype||V);){for(var t=Object.getOwnPropertyNames(y),F=0;F<t.length;F++)w[t[F]]=!0;y=Object.getPrototypeOf(y)}return gYy(w)};
_.Gc.getAnyKey=function(y){for(var W in y)return W};
_.Gc.getAnyValue=function(y){for(var W in y)return y[W]};
_.Gc.getCount=function(y){var W=0,V;for(V in y)W++;return W};
_.Gc.getKeys=gYy;_.Gc.getSuperClass=function(y){return(y=Object.getPrototypeOf(y.prototype))&&y.constructor};
_.Gc.getValueByKeys=function(y,W){var V=_.bn(W),w=V?W:arguments;for(V=V?0:1;V<w.length;V++){if(y==null)return;y=y[w[V]]}return y};
_.Gc.getValues=function(y){var W=[],V=0,w;for(w in y)W[V++]=y[w];return W};
_.Gc.isEmpty=function(y){for(var W in y)return!1;return!0};
_.Gc.isImmutableView=function(y){return!!Object.isFrozen&&Object.isFrozen(y)};
_.Gc.map=function(y,W,V){var w={},t;for(t in y)w[t]=W.call(V,y[t],t,y);return w};
_.Gc.remove=function(y,W){var V;(V=W in y)&&delete y[W];return V};
_.Gc.set=function(y,W,V){y[W]=V};
_.Gc.setIfUndefined=function(y,W,V){return W in y?y[W]:y[W]=V};
_.Gc.setWithReturnValueIfNotSet=function(y,W,V){if(W in y)return y[W];V=V();return y[W]=V};
_.Gc.some=function(y,W,V){for(var w in y)if(W.call(V,y[w],w,y))return!0;return!1};
_.Gc.transpose=function(y){var W={},V;for(V in y)W[y[V]]=V;return W};
_.Gc.unsafeClone=Ozv;var J$=function(y,W,V,w,t){this.allowedElements=y;this.elementPolicies=W;this.allowedGlobalAttributes=V;this.globalAttributePolicies=w;this.globallyAllowedAttributePrefixes=t},zis=function(y,W,V){V=y.elementPolicies.get(V);
return(V==null?0:V.has(W))?V.get(W):y.allowedGlobalAttributes.has(W)?{policyAction:1}:(V=y.globalAttributePolicies.get(W))?V:y.globallyAllowedAttributePrefixes&&[].concat(_.GC(y.globallyAllowedAttributePrefixes)).some(function(w){return W.indexOf(w)===0})?{policyAction:1}:{policyAction:0}};var cAQ="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(" "),
eiq=[["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}]])]],him="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(" "),
oJQ=[["dir",{policyAction:3,conditions:J_(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:J_(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:J_(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:J_(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Kfi=new J$(new Set(cAQ),new Map(eiq),new Set(him),new Map(oJQ)),pz6=new J$(new Set(cAQ.concat(["BUTTON",
"INPUT"])),new Map(eiq),new Set(J_(function(){return him.concat(["class","id","name"])})),new Map(J_(function(){return oJQ.concat([["style",
{policyAction:1}]])})));var iqq,fIq,mrK;iqq=function(y,W,V,w,t){this.JSC$9213_sanitizerTable=y;this.styleElementSanitizer=W;this.styleAttributeSanitizer=V;this.JSC$9213_resourceUrlPolicy=w;this.JSC$9213_navigationUrlPolicy=t;this.changes=[]};
_.Tmm=function(y,W){var V=document.implementation.createHTMLDocument("");y=fIq(y,W,V);V=V.body;V.appendChild(y);V=(new XMLSerializer).serializeToString(V);V=V.slice(V.indexOf(">")+1,V.lastIndexOf("</"));return Nl(V)};
fIq=function(y,W,V){W=zCz(W,V);W=document.createTreeWalker(W,5,function(P){if(P.nodeType===3)P=1;else if(eC4(P))if(P=cUG(P),P===null)P=2;else{var C=y.JSC$9213_sanitizerTable;P=P!=="FORM"&&(C.allowedElements.has(P)||C.elementPolicies.has(P))?1:2}else P=2;return P});
for(var w=W.nextNode(),t=V.createDocumentFragment(),F=t;w!==null;){var I=void 0;if(w.nodeType===3)y.styleElementSanitizer&&F.nodeName==="STYLE"?(w=y.styleElementSanitizer(w.data),I=y.createTextNode(w)):I=y.createTextNode(w.data);else if(eC4(w))I=mrK(y,w,V);else throw Error("ga");F.appendChild(I);if(w=W.firstChild())F=I;else for(;!(w=W.nextSibling())&&(w=W.parentNode());)F=F.parentNode}return t};
iqq.prototype.createTextNode=function(y){return document.createTextNode(y)};
mrK=function(y,W,V){var w,t=cUG(W);V=V.createElement(t);W=W.attributes;for(var F=_.N(W),I=F.next();!I.done;I=F.next()){var P=I.value;I=P.name;P=P.value;var C=zis(y.JSC$9213_sanitizerTable,I,t);a:{if(w=C.conditions){w=_.N(w);for(var d=w.next();!d.done;d=w.next()){var L=_.N(d.value);d=L.next().value;L=L.next().value;var z=void 0;if((d=(z=W.getNamedItem(d))==null?void 0:z.value)&&!L.has(d)){w=!1;break a}}}w=!0}if(w)switch(C.policyAction){case 1:fz(V,I,P);break;case 2:throw Error();case 3:fz(V,I,P.toLowerCase());
break;case 4:y.styleAttributeSanitizer?(P=y.styleAttributeSanitizer(P),fz(V,I,P)):fz(V,I,P);break;case 5:y.JSC$9213_resourceUrlPolicy?(C={type:2,attributeName:I,elementName:t},P=Lbz(P),(P=y.JSC$9213_resourceUrlPolicy(P,C))&&fz(V,I,P.toString())):fz(V,I,P);break;case 6:if(y.JSC$9213_resourceUrlPolicy){C={type:2,attributeName:I,elementName:t};w=[];P=_.N(P.split(","));for(d=P.next();!d.done;d=P.next())L=_.N(d.value.trim().split(/\s+/,2)),d=L.next().value,L=L.next().value,w.push({url:d,descriptor:L});
P={parts:[]};w=_.N(w);for(d=w.next();!d.done;d=w.next())d=d.value,L=Lbz(d.url),(L=y.JSC$9213_resourceUrlPolicy(L,C))&&P.parts.push({url:L.toString(),descriptor:d.descriptor});fz(V,I,hCn(P))}else fz(V,I,P);break;case 7:C=P;if(y.JSC$9213_navigationUrlPolicy){C={type:2,attributeName:I,elementName:t};P=Lbz(P);P=y.JSC$9213_navigationUrlPolicy(P,C);if(P===null)break;C=P.toString()}P=C;C=_.B3n(P);C=C!==void 0&&M4f.indexOf(C.toLowerCase())!==-1?P:"about:invalid#zClosurez";fz(V,I,C)}}return V};
_.MQE=J_(function(){return new iqq(Kfi)});
_.qE2=J_(function(){return new iqq(pz6)});var UrE=function(){this.calledBuild=!1;this.JSC$9225_sanitizerTable=Kfi},u6f=function(){UrE.apply(this,arguments)};
_.p(u6f,UrE);u6f.prototype.build=function(){if(this.calledBuild)throw Error("va");this.calledBuild=!0;return new iqq(this.JSC$9225_sanitizerTable,void 0,void 0,this.JSC$9225_resourceUrlPolicy,this.JSC$9225_navigationUrlPolicy)};var SEE=/[^#]*/;var Jot=function(y){try{return!!y&&y.location.href!=null&&Han(y,"foo")}catch(W){return!1}},lIR=function(y){var W=Drz;
if(W)for(var V in W)Object.prototype.hasOwnProperty.call(W,V)&&y(W[V],V,W)},xrq=function(){var y=[];
lIR(function(W){y.push(W)});
return y},Drz={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"},kRf=_.YW(function(){return xrq()}),AAf=function(){var y=sss("IFRAME"),
W={};
_.IA(kRf(),function(V){y.sandbox&&y.sandbox.supports&&y.sandbox.supports(V)&&(W[V]=!0)});
return W},sss=function(y,W){W=W===void 0?document:W;
return W.createElement(String(y).toLowerCase())};var R1;_.QW=function(y,W,V){return Math.min(Math.max(y,W),V)};
R1=function(y,W,V){return y+V*(W-y)};_.bj=function(y,W){this.x=y!==void 0?y:0;this.y=W!==void 0?W:0};
_.E=_.bj.prototype;_.E.clone=function(){return new _.bj(this.x,this.y)};
_.E.equals=function(y){return y instanceof _.bj&&(this==y?!0:this&&y?this.x==y.x&&this.y==y.y:!1)};
_.E.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.E.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.E.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.E.translate=function(y,W){y instanceof _.bj?(this.x+=y.x,this.y+=y.y):(this.x+=Number(y),typeof W==="number"&&(this.y+=W));return this};
_.E.scale=function(y,W){this.x*=y;this.y*=typeof W==="number"?W:y;return this};_.YY=function(y,W){this.width=y;this.height=W};
_.E=_.YY.prototype;_.E.clone=function(){return new _.YY(this.width,this.height)};
_.E.area=function(){return this.width*this.height};
_.E.aspectRatio=function(){return this.width/this.height};
_.E.isEmpty=function(){return!this.area()};
_.E.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.E.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.E.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.E.scale=function(y,W){this.width*=y;this.height*=typeof W==="number"?W:y;return this};var QT=function(y,W){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=y===EnP&&W||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=YEK};
QT.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var BmK=function(y){return y instanceof QT&&y.constructor===QT&&y.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===YEK?y.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},YEK={},EnP={};
new QT(EnP,"");var RS,sf,$W,JAE,$ri,jsz,QL,Hq6,aIz,Xz6,a1,GRs,VPQ,WCI,ymr,wdI,tPQ,FCr,EEz,f8R,NW6,gEE,Ptf,IqK,jd;RS=function(y){return y?new jd(_.ZS(y)):Z4n||(Z4n=new jd)};
_.i8=function(y,W){return typeof W==="string"?y.getElementById(W):W};
sf=function(y,W){return(W||document).getElementsByTagName(String(y))};
_.RiQ=function(y){return JAE("yt-formatted-string","paper-input-input",y)};
$W=function(y,W,V,w){y=w||y;return(W=W&&W!="*"?String(W).toUpperCase():"")||V?y.querySelectorAll(W+(V?"."+V:"")):y.getElementsByTagName("*")};
JAE=function(y,W,V){var w=document,t=y&&y!="*"?String(y).toUpperCase():"";return t||W?(V||w).querySelector(t+(W?"."+W:"")):$W(w,y,W,V)[0]||null};
$ri=function(y,W){_.Gc.forEach(W,function(V,w){w=="style"?y.style.cssText=V:w=="class"?y.className=V:w=="for"?y.htmlFor=V:jsz.hasOwnProperty(w)?y.setAttribute(jsz[w],V):_.tv(w,"aria-")||_.tv(w,"data-")?y.setAttribute(w,V):y[w]=V})};
jsz={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"};_.B3=function(y){y=(y||window).document;y=y.compatMode=="CSS1Compat"?y.documentElement:y.body;return new _.YY(y.clientWidth,y.clientHeight)};
_.nJA=function(y){var W=_.nl(y);y=y.defaultView;return new _.bj(y.pageXOffset||W.scrollLeft,y.pageYOffset||W.scrollTop)};
_.nl=function(y){return y.scrollingElement?y.scrollingElement:_.qW||y.compatMode!="CSS1Compat"?y.body||y.documentElement:y.documentElement};
QL=function(y){return y?y.defaultView:window};
_.H8=function(y,W,V){return Hq6(document,arguments)};
Hq6=function(y,W){var V=W[1],w=Xz6(y,String(W[0]));V&&(typeof V==="string"?w.className=V:Array.isArray(V)?w.className=V.join(" "):$ri(w,V));W.length>2&&aIz(y,w,W,2);return w};
aIz=function(y,W,V,w){function t(P){P&&W.appendChild(typeof P==="string"?y.createTextNode(P):P)}
for(;w<V.length;w++){var F=V[w];if(!_.bn(F)||_.VK(F)&&F.nodeType>0)t(F);else{a:{if(F&&typeof F.length=="number"){if(_.VK(F)){var I=typeof F.item=="function"||typeof F.item=="string";break a}if(typeof F==="function"){I=typeof F.item=="function";break a}}I=!1}_.IA(I?_.ru(F):F,t)}}};
_.xu=function(y){return Xz6(document,y)};
Xz6=function(y,W){W=String(W);y.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return y.createElement(W)};
_.Xh=function(){return document.createTextNode("\n")};
a1=function(y){if(y.nodeType!=1)return!1;switch(y.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};
GRs=function(y,W){aIz(_.ZS(y),y,arguments,1)};
_.G7=function(y){for(var W;W=y.firstChild;)y.removeChild(W)};
_.r4=function(y,W){W.parentNode&&W.parentNode.insertBefore(y,W)};
_.bQ=function(y,W){W.parentNode&&W.parentNode.insertBefore(y,W.nextSibling)};
_.ku=function(y){return y&&y.parentNode?y.parentNode.removeChild(y):null};
_.rAR=function(y,W){var V=W.parentNode;V&&V.replaceChild(y,W)};
_.bqQ=function(y){var W,V=y.parentNode;if(V&&V.nodeType!=11)if(y.removeNode)y.removeNode(!1);else{for(;W=y.firstChild;)V.insertBefore(W,y);_.ku(y)}};
_.Q_=function(y){return y.children!=void 0?y.children:Array.prototype.filter.call(y.childNodes,function(W){return W.nodeType==1})};
_.Zqf=function(y){return y.nextElementSibling!==void 0?y.nextElementSibling:_.Qsf(y.nextSibling,!0)};
_.Qsf=function(y,W){for(;y&&y.nodeType!=1;)y=W?y.nextSibling:y.previousSibling;return y};
_.Og=function(y){return _.VK(y)&&y.nodeType==1};
_.wf=function(y,W){if(!y||!W)return!1;if(y.contains&&W.nodeType==1)return y==W||y.contains(W);if(typeof y.compareDocumentPosition!="undefined")return y==W||!!(y.compareDocumentPosition(W)&16);for(;W&&y!=W;)W=W.parentNode;return W==y};
VPQ=function(y,W){if(y==W)return 0;if(y.compareDocumentPosition)return y.compareDocumentPosition(W)&2?1:-1;if("sourceIndex"in y||y.parentNode&&"sourceIndex"in y.parentNode){var V=y.nodeType==1,w=W.nodeType==1;if(V&&w)return y.sourceIndex-W.sourceIndex;var t=y.parentNode,F=W.parentNode;return t==F?ymr(y,W):!V&&_.wf(t,W)?-1*WCI(y,W):!w&&_.wf(F,y)?WCI(W,y):(V?y.sourceIndex:t.sourceIndex)-(w?W.sourceIndex:F.sourceIndex)}w=_.ZS(y);V=w.createRange();V.selectNode(y);V.collapse(!0);y=w.createRange();y.selectNode(W);
y.collapse(!0);return V.compareBoundaryPoints(_.Vj.Range.START_TO_END,y)};
WCI=function(y,W){var V=y.parentNode;if(V==W)return-1;for(;W.parentNode!=V;)W=W.parentNode;return ymr(W,y)};
ymr=function(y,W){for(;W=W.previousSibling;)if(W==y)return-1;return 1};
wdI=function(y){var W,V=arguments.length;if(!V)return null;if(V==1)return arguments[0];var w=[],t=Infinity;for(W=0;W<V;W++){for(var F=[],I=arguments[W];I;)F.unshift(I),I=I.parentNode;w.push(F);t=Math.min(t,F.length)}F=null;for(W=0;W<t;W++){I=w[0][W];for(var P=1;P<V;P++)if(I!=w[P][W])return F;F=I}return F};
_.ZS=function(y){return y.nodeType==9?y:y.ownerDocument||y.document};
tPQ=function(y){return y.contentDocument||y.contentWindow.document};
_.Zx=function(y,W){if("textContent"in y)y.textContent=W;else if(y.nodeType==3)y.data=String(W);else if(y.firstChild&&y.firstChild.nodeType==3){for(;y.lastChild!=y.firstChild;)y.removeChild(y.lastChild);y.firstChild.data=String(W)}else _.G7(y),y.appendChild(_.ZS(y).createTextNode(String(W)))};
FCr={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};EEz={IMG:" ",BR:"\n"};f8R=function(y){var W;y.tagName=="A"&&y.hasAttribute("href")||y.tagName=="INPUT"||y.tagName=="TEXTAREA"||y.tagName=="SELECT"||y.tagName=="BUTTON"?W=!y.disabled&&(!y.hasAttribute("tabindex")||NW6(y)):W=y.hasAttribute("tabindex")&&NW6(y);return W};
NW6=function(y){y=y.tabIndex;return typeof y==="number"&&y>=0&&y<32768};
gEE=function(y){var W=[];IqK(y,W,!0);y=W.join("");y=y.replace(/ \xAD /g," ").replace(/\xAD/g,"");y=y.replace(/\u200B/g,"");y=y.replace(/ +/g," ");y!=" "&&(y=y.replace(/^\s*/,""));return y};
Ptf=function(y){var W=[];IqK(y,W,!1);return W.join("")};
IqK=function(y,W,V){if(!(y.nodeName in FCr))if(y.nodeType==3)V?W.push(String(y.nodeValue).replace(/(\r\n|\r|\n)/g,"")):W.push(y.nodeValue);else if(y.nodeName in EEz)W.push(EEz[y.nodeName]);else for(y=y.firstChild;y;)IqK(y,W,V),y=y.nextSibling};
_.CtK=function(y,W,V){if(!W&&!V)return null;var w=W?String(W).toUpperCase():null;return _.WM(y,function(t){return(!w||t.nodeName==w)&&(!V||typeof t.className==="string"&&_.j4(t.className.split(/\s+/),V))},!0)};
_.WM=function(y,W,V){y&&!V&&(y=y.parentNode);for(V=0;y;){if(W(y))return y;y=y.parentNode;V++}return null};
jd=function(y){this.JSC$9250_document_=y||_.Vj.document||document};
_.E=jd.prototype;_.E.getElement=function(y){return _.i8(this.JSC$9250_document_,y)};
_.E.$=jd.prototype.getElement;_.E.getElementsByTagName=function(y,W){return(W||this.JSC$9250_document_).getElementsByTagName(String(y))};
_.E.getElementsByTagNameAndClass=function(y,W,V){return $W(this.JSC$9250_document_,y,W,V)};
_.E.$$=jd.prototype.getElementsByTagNameAndClass;_.E.setProperties=$ri;_.E.JSC$9252_createDom=function(y,W,V){return Hq6(this.JSC$9250_document_,arguments)};
_.E.createElement=function(y){return Xz6(this.JSC$9250_document_,y)};
_.E.createTextNode=function(y){return this.JSC$9250_document_.createTextNode(String(y))};
_.E.getWindow=function(){return this.JSC$9250_document_.defaultView};
var JU=function(y){return _.nJA(y.JSC$9250_document_)};
_.E=jd.prototype;_.E.appendChild=function(y,W){y.appendChild(W)};
_.E.append=GRs;_.E.canHaveChildren=a1;_.E.removeNode=_.ku;_.E.getChildren=_.Q_;_.E.contains=_.wf;_.E=uj.prototype;_.E.getWidth=function(){return this.right-this.left};
_.E.getHeight=function(){return this.bottom-this.top};
_.E.clone=function(){return new uj(this.top,this.right,this.bottom,this.left)};
_.E.contains=function(y){return this&&y?y instanceof uj?y.left>=this.left&&y.right<=this.right&&y.top>=this.top&&y.bottom<=this.bottom:y.x>=this.left&&y.x<=this.right&&y.y>=this.top&&y.y<=this.bottom:!1};
_.E.expand=function(y,W,V,w){_.VK(y)?(this.top-=y.top,this.right+=y.right,this.bottom+=y.bottom,this.left-=y.left):(this.top-=y,this.right+=Number(W),this.bottom+=Number(V),this.left-=Number(w));return this};
_.E.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};
_.E.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};
_.E.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};
_.E.translate=function(y,W){y instanceof _.bj?(this.left+=y.x,this.right+=y.x,this.top+=y.y,this.bottom+=y.y):(this.left+=y,this.right+=y,typeof W==="number"&&(this.top+=W,this.bottom+=W));return this};
_.E.scale=function(y,W){W=typeof W==="number"?W:y;this.left*=y;this.right*=y;this.top*=W;this.bottom*=W;return this};var yl=function(y,W,V,w){this.left=y;this.top=W;this.width=V;this.height=w};
_.E=yl.prototype;_.E.clone=function(){return new yl(this.left,this.top,this.width,this.height)};
_.E.boundingRect=function(y){var W=Math.max(this.left+this.width,y.left+y.width),V=Math.max(this.top+this.height,y.top+y.height);this.left=Math.min(this.left,y.left);this.top=Math.min(this.top,y.top);this.width=W-this.left;this.height=V-this.top};
_.E.contains=function(y){return y instanceof _.bj?y.x>=this.left&&y.x<=this.left+this.width&&y.y>=this.top&&y.y<=this.top+this.height:this.left<=y.left&&this.left+this.width>=y.left+y.width&&this.top<=y.top&&this.top+this.height>=y.top+y.height};
_.E.distance=function(y){var W=y.x<this.left?this.left-y.x:Math.max(y.x-(this.left+this.width),0);y=y.y<this.top?this.top-y.y:Math.max(y.y-(this.top+this.height),0);return Math.sqrt(W*W+y*y)};
_.E.getSize=function(){return new _.YY(this.width,this.height)};
_.E.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};
_.E.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};
_.E.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};
_.E.translate=function(y,W){y instanceof _.bj?(this.left+=y.x,this.top+=y.y):(this.left+=y,typeof W==="number"&&(this.top+=W));return this};
_.E.scale=function(y,W){W=typeof W==="number"?W:y;this.left*=y;this.width*=y;this.top*=W;this.height*=W;return this};var vE6,wD,XMv,Vl,cmR,z4E,e4E,z3d,h4K,KCI;_.Wg=function(y,W,V){if(typeof W==="string")(W=_.Oer(y,W))&&(y.style[W]=V);else for(var w in W){V=y;var t=W[w],F=_.Oer(V,w);F&&(V.style[F]=t)}};
vE6={};_.Oer=function(y,W){var V=vE6[W];if(!V){var w=_.SK(W);V=w;y.style[w]===void 0&&(w=(_.qW?"Webkit":_.MW?"Moz":null)+sRQ(w),y.style[w]!==void 0&&(V=w));vE6[W]=V}return V};
_.sZ=function(y,W){var V=_.ZS(y);return V.defaultView&&V.defaultView.getComputedStyle&&(y=V.defaultView.getComputedStyle(y,null))?y[W]||y.getPropertyValue(W)||"":""};
_.V6=function(y,W){return _.sZ(y,W)||(y.currentStyle?y.currentStyle[W]:null)||y.style&&y.style[W]};
_.du2=function(y){return _.V6(y,"position")};
wD=function(y,W,V){if(W instanceof _.bj){var w=W.x;W=W.y}else w=W,W=V;y.style.left=Vl(w,!1);y.style.top=Vl(W,!1)};
XMv=function(y){try{return y.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}};
_.yc=function(y){var W=_.ZS(y),V=new _.bj(0,0);if(y==(W?_.ZS(W):document).documentElement)return V;y=XMv(y);W=JU(RS(W));V.x=y.left+W.x;V.y=y.top+W.y;return V};
_.LCE=function(y,W,V){if(W instanceof _.YY)V=W.height,W=W.width;else if(V==void 0)throw Error("wa");y.style.width=Vl(W,!0);y.style.height=Vl(V,!0)};
Vl=function(y,W){typeof y=="number"&&(y=(W?Math.round(y):y)+"px");return y};
cmR=function(y){return z4E(y)};
z4E=function(y){var W=e4E;if(_.V6(y,"display")!="none")return W(y);var V=y.style,w=V.display,t=V.visibility,F=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";y=W(y);V.display=w;V.position=F;V.visibility=t;return y};
e4E=function(y){var W=y.offsetWidth,V=y.offsetHeight,w=_.qW&&!W&&!V;return(W===void 0||w)&&y.getBoundingClientRect?(y=XMv(y),new _.YY(y.right-y.left,y.bottom-y.top)):new _.YY(W,V)};
z3d=function(y){var W=_.yc(y);y=z4E(y);return new yl(W.x,W.y,y.width,y.height)};
h4K=function(y,W){y=y.style;"opacity"in y?y.opacity=W:"MozOpacity"in y?y.MozOpacity=W:"filter"in y&&(y.filter=W===""?"":"alpha(opacity="+Number(W)*100+")")};
_.gf=function(y,W){y.style.display=W?"":"none"};
_.oEA=function(y){return"rtl"==_.V6(y,"direction")};
KCI=function(y){var W=_.sZ(y,"marginLeft"),V=_.sZ(y,"marginRight"),w=_.sZ(y,"marginTop");y=_.sZ(y,"marginBottom");return new uj(parseFloat(w),parseFloat(V),parseFloat(y),parseFloat(W))};
_.pdE=function(y){var W=_.sZ(y,"borderLeftWidth"),V=_.sZ(y,"borderRightWidth"),w=_.sZ(y,"borderTopWidth");y=_.sZ(y,"borderBottomWidth");return new uj(parseFloat(w),parseFloat(V),parseFloat(y),parseFloat(W))};var tP=function(y){this.context=y};
tP.prototype.isSupported=function(y){return(y==null?0:y.attributionEnabled)||(y==null?void 0:y.beaconMethod)==="POST"||(y==null?0:y.customHeaders)||(y==null?0:y.customBody)||(y==null?0:y.keepAlive)?!1:!kW(this.context)};
tP.prototype.ping=function(){var y=this;return Rh(_.Ve.apply(0,arguments).map(function(W){try{var V=y.context.global,w=!1;w=w===void 0?!1:w;V.google_image_requests||(V.google_image_requests=[]);var t=sss("IMG",V.document);w&&(t.attributionSrc="");t.src=W;V.google_image_requests.push(t);return!0}catch(F){return!1}}).every(function(W){return W}))};
tP.prototype.pingWithHeadersAndBody=function(y,W,V){this.ping.apply(this,_.GC(_.Ve.apply(3,arguments)))};var ier=function(y){this.context=y};
ier.prototype.isSupported=function(y){return fqE&&!kW(this.context)&&Kbz(this.context)!==void 0&&!(y==null?0:y.attributionEnabled)&&(y==null?void 0:y.beaconMethod)!=="POST"&&!(y==null?0:y.customHeaders)&&!(y==null?0:y.customBody)};
ier.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Sd;return new Fl(this.context,y)};
var fqE=!1,Fl=function(y,W){this.context=y;this.JSC$9271_urlWithoutToken=W;y=Kbz(this.context);if(y===void 0)throw Error();this.wrappedBeacon=new y(TWJ(this),{})},TWJ=function(y){y=y.JSC$9271_urlWithoutToken;
return(y.slice(-1)[0]==="&"?y:y+"&")+"pbapi=1"};
Fl.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Fl.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Fl.prototype.setHeader=function(){};
_.CM.Object.defineProperties(Fl.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9271_urlWithoutToken},
set:function(y){this.JSC$9271_urlWithoutToken=y;this.wrappedBeacon.setURL(TWJ(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(y){if(y!=="GET")throw new Sd;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var mus=function(y){this.context=y};
mus.prototype.isSupported=function(y){if((y==null?0:y.attributionEnabled)||(y==null?void 0:y.beaconMethod)==="GET"||(y==null?0:y.customHeaders)||(y==null?0:y.customBody)||(y==null?0:y.keepAlive))return!1;var W;return!kW(this.context)&&((W=this.context.global.navigator)==null?void 0:W.sendBeacon)!==void 0};
mus.prototype.ping=function(){var y=this;return Rh(_.Ve.apply(0,arguments).map(function(W){var V;return(V=y.context.global.navigator)==null?void 0:V.sendBeacon(W)}).every(function(W){return W}))};
mus.prototype.pingWithHeadersAndBody=function(y,W,V){this.ping.apply(this,_.GC(_.Ve.apply(3,arguments)))};var s9=function(y){this.value=y},Ca=function(y,W){return Rh(y.value).pipe(xY(W))},vM=new s9(!1),EVG=new s9(!0);var Vc=function(y){this.value=y;this.releasedSubject=new SD};
Vc.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.CM.Object.defineProperties(Vc.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9284_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var xGj=["FRAME","IMG","IFRAME"],q9t=/^[01](px)?$/,lSv=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},DGL=function(){var y=new lSv;
y.crossDomainLoadedDefault=!0;y.pendingImagesBlockLoad=!0;return y};var MPE=function(y,W){var V=RC4(y);if(V)if(V.onCreativeLoad)V.onCreativeLoad(W);else{var w=W?[W]:[],t=function(F){for(var I=0;I<w.length;++I)try{w[I](1,F)}catch(P){}w={push:function(P){P(1,F)}}};
V.onCreativeLoad=function(F){w.push(F)};
V.setAttribute("data-creative-load-listener","");V.addEventListener("creativeLoad",function(F){t(F.detail)});
_.Vj.addEventListener("message",function(F){JUb(V,t,F)})}};var EH=function(y,W){var V=this;this.global=y;this.parentContext=W;this.JSC$9295_onVisibilityChange=this.document?W3(Rh(!0),ZB(this.document,"visibilitychange")).pipe(E9(this.parentContext.performanceMonitor,748),ah(function(){return V.getVisibilityState()}),Cz()):Rh("visible");
this.document?ZB(this.document,"DOMContentLoaded").pipe(E9(this.parentContext.performanceMonitor,739),P3(1)):Rh(mGy("DOMContentLoaded"))},Fdy=function(y){return y.document!==null&&y.document.visibilityState!==void 0};
EH.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
EH.prototype.querySelector=function(y){return this.document?this.document.querySelector(y):null};
EH.prototype.querySelectorAll=function(y){return this.document?_.ru(this.document.querySelectorAll(y)):[]};
EH.prototype.elementFromPoint=function(y,W){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;y=this.document.elementFromPoint(y,W);return y===null?null:new Vc(y)};
var aZn=function(y,W,V){V=V===void 0?!1:V;if(W.ref===void 0||!y.document)return Rh(W).pipe(E9(y.parentContext.performanceMonitor,749));var w=new c3(1),t=function(){w.next(W)};
V||MPE(W.ref,t);kcv(W.ref,t);return w.pipe(E9(y.parentContext.performanceMonitor,749),P3(1))};
_.CM.Object.defineProperties(EH.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Han(this.global,"document")?this.global.document||null:null}}});var jSy=_.CF(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),$Gt=_.CF(["./reach_worklet.js"]),nYR=_.CF(["./reach_worklet.js"]),q3z=_.CF(["./reach_worklet.html"]),Uu6=_.CF(["./reach_worklet.js"]),uj2=_.CF(["./reach_worklet.js"]);_.Tc(q3z);_.Tc(Uu6);_.Tc(uj2);var Ef={left:0,top:0,width:0,height:0};var S3I,Du6,lqq,xur,LB,svJ,Amq,Y3s,$Zb,n8P,R4r,jvi;S3I=function(y,W,V,w,t,F,I){var P="";y&&(P+=y+":");V&&(P+="//",W&&(P+=W+"@"),P+=V,w&&(P+=":"+w));t&&(P+=t);F&&(P+="?"+F);I&&(P+="#"+I);return P};
Du6=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.v4=function(y){return y.match(Du6)};
_.Hm=function(y,W){return y?W?decodeURI(y):decodeURIComponent(y):y};
lqq=function(y){y=_.v4(y)[1]||null;!y&&_.Vj.self&&_.Vj.self.location&&(y=_.Vj.self.location.protocol.slice(0,-1));return y?y.toLowerCase():""};
_.di=function(y){return _.Hm(_.v4(y)[3]||null,!0)};
_.U1=function(y){return _.Hm(_.v4(y)[5]||null,!0)};
_.IFz=function(y){var W=y.indexOf("#");return W<0?null:y.slice(W+1)};
xur=function(y){y=_.v4(y);return S3I(y[1],y[2],y[3],y[4])};
_.kji=function(y){y=_.v4(y);return S3I(y[1],null,y[3],y[4])};
_.Vm=function(y){y=_.v4(y);return S3I(null,null,null,null,y[5],y[6],y[7])};
_.Cg=function(y){var W=y.indexOf("#");return W<0?y:y.slice(0,W)};
LB=function(y,W){y=_.v4(y);W=_.v4(W);return y[3]==W[3]&&y[1]==W[1]&&y[4]==W[4]};
svJ=function(y,W){if(y){y=y.split("&");for(var V=0;V<y.length;V++){var w=y[V].indexOf("="),t=null;if(w>=0){var F=y[V].substring(0,w);t=y[V].substring(w+1)}else F=y[V];W(F,t?c4(t):"")}}};
Amq=function(y){var W=y.indexOf("#");W<0&&(W=y.length);var V=y.indexOf("?");if(V<0||V>W){V=W;var w=""}else w=y.substring(V+1,W);return[y.slice(0,V),w,y.slice(W)]};
Y3s=function(y,W){return W?y?y+"&"+W:W:y};
_.BWK=function(y,W){if(!W)return y;y=Amq(y);y[1]=Y3s(y[1],W);return y[0]+(y[1]?"?"+y[1]:"")+y[2]};
_.Jm2=function(y,W,V){if(Array.isArray(W))for(var w=0;w<W.length;w++)_.Jm2(y,String(W[w]),V);else W!=null&&V.push(y+(W===""?"":"="+_.E1(W)))};
_.SX=function(y){var W=[],V;for(V in y)_.Jm2(V,y[V],W);return W.join("&")};
_.O1=function(y,W){W=_.SX(W);return _.BWK(y,W)};
_.NI=function(y,W,V){V=V!=null?"="+_.E1(V):"";return _.BWK(y,W+V)};
$Zb=function(y,W,V,w){for(var t=V.length;(W=y.indexOf(V,W))>=0&&W<w;){var F=y.charCodeAt(W-1);if(F==38||F==63)if(F=y.charCodeAt(W+t),!F||F==61||F==38||F==35)return W;W+=t+1}return-1};
n8P=/#|$/;_.to=function(y,W){var V=y.search(n8P),w=$Zb(y,0,W,V);if(w<0)return null;var t=y.indexOf("&",w);if(t<0||t>V)t=V;w+=W.length+1;return c4(y.slice(w,t!==-1?t:0))};
R4r=/[?&]($|#)/;_.vN=function(y,W){for(var V=y.search(n8P),w=0,t,F=[];(t=$Zb(y,w,W,V))>=0;)F.push(y.substring(w,t)),w=Math.min(y.indexOf("&",t)+1||V,V);F.push(y.slice(w));return F.join("").replace(R4r,"$1")};
_.ZY=function(y,W,V){return _.NI(_.vN(y,W),W,V)};
jvi=function(y){var W=Amq(window.location.href),V=W[1],w=[];V&&V.split("&").forEach(function(t){var F=t.indexOf("=");F=F>=0?t.slice(0,F):t;y.hasOwnProperty(F)||w.push(t)});
W[1]=Y3s(w.join("&"),_.SX(y));return W[0]+(W[1]?"?"+W[1]:"")+W[2]};var Czy=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Czy,_.fu);Czy.prototype.getVersion=function(){return _.aX(this,2)};var PzL=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(PzL,_.fu);var tAR=function(y,W){return _.jD(y,2,W)},guR=function(y,W){return _.jD(y,3,W)};
PzL.prototype.getModel=function(){return _.aX(this,4)};
var Eud=function(y,W){return _.jD(y,4,W)},wML=function(y,W){return _.jD(y,5,W)},IaP=function(y,W){return _.jD(y,9,W)},VAL=function(y,W){return RX(y,10,W)},W1v=function(y,W){return _.Tk(y,11,W)},F1z=function(y,W){return _.jD(y,1,W)},NJv=function(y,W){return _.Tk(y,7,W)};var Zza="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Of=function(y,W,V,w){y=y===void 0?window:y;W=W===void 0?null:W;V=V===void 0?new wy6:V;w=w===void 0?Hzv():w;QRi.call(this);var t=this;this.global=y;this.debugChannel=W;this.performanceMonitor=V;this.onPageHide=kCn(function(){return ZB(t.global,"pagehide")}).pipe(E9(this.performanceMonitor,941));
this.onLoad=kCn(function(){return ZB(t.global,"load")}).pipe(E9(this.performanceMonitor,738),P3(1));
this.onResize=kCn(function(){return ZB(t.global,"resize")}).pipe(E9(this.performanceMonitor,741));
this.onMessage=kCn(function(){return ZB(t.global,"message")}).pipe(E9(this.performanceMonitor,740));
this.document=new EH(this.global,this);this.timeProvider=new tQA(new EJi(this.intrinsicFunctionNamespace,this.performanceMonitor),new Ffs(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Wff(new IIR(this),new ier(this),new Dx(this,new C2I(this)),new Dx(this,new mus(this)),new Dx(this,new tP(this)))};
_.p(Of,QRi);var kW=function(y){var W=y.global;return!!y.global.HTMLFencedFrameElement&&!!W.fence&&typeof W.fence.reportEvent==="function"};
_.E=Of.prototype;_.E.reportFencedFrameEvent=function(y){kW(this)&&this.global.fence.reportEvent(y)};
_.E.getOnBackgrounded=function(){return this.onPageHide.pipe(E9(this.performanceMonitor,942),xY(this.queue),ah(function(){}))};
_.E.postMessage=function(y,W,V){V=V===void 0?[]:V;this.global.postMessage(y,W,V)};
_.E.getWidth=function(){return Jot(this.global)?this.global.width:0};
_.E.getHeight=function(){return Jot(this.global)?this.global.height:0};
_.E.isMobile=function(){return vJs()||dri()};
var wJ=function(y,W){try{var V=rUn(W,y.global,y.isMobile());return{left:V.left,top:V.top,width:V.getWidth(),height:V.getHeight()}}catch(w){return Ef}};
Of.prototype.validate=function(){var y=this.beaconFactory.isSupported()||kW(this);return this.global&&this.timeProvider.available()&&y};
var izL=function(y){return(y=vub(y.global))?DB(y):null};
_.CM.Object.defineProperties(Of.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(y){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Jot(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}}});_.$u6=!_.mU&&!_.Dt();var NVt=function(y){return y};var gVv=function(y){return y.pipe(VL(function(W){var V=W.endOfSessionReason;var w;return((w=W.viewable)==null?void 0:w.extrapolateToNow().value)||V!=void 0}),P3(1),IS())};var ouP=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},K14=function(y){var W=y.sequenceNumber.toString(10).padStart(2,"0");
W=""+y.startTime+W;y.sequenceNumber<99&&y.sequenceNumber++;return W};var t0L=ql(pz(function(y){return y.endOfSessionReason===void 0}),ah(function(y){return Object.assign({},y,{timestamps:nz(y)})}),VL(function(y){var W=y.viewable;
y=y.timestamps;var V;return(V=W==null?void 0:W.extrapolateUsingTimestampMap(y).value)!=null?V:!1}),ah(function(y){var W=y.beaconFactory;
var V=y.timestampedExposureHistory;var w=y.timeOnScreen;var t=y.binaryContext;y=y.timestamps;if(W===void 0||V===void 0||w===void 0||t===void 0)return!1;if(w.extrapolateUsingTimestampMap(y).value.every(function(F){return F>=0}))return!0;
V=V.map(function(F){return F.timestamp+":"+F.value}).join(",");
w=pMn({bin:t,tos:w},y);W.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+w+("&eh="+V)).sendNow();return!0}),pz(function(y){return!y}),IS());var fav=function(y){return{id:y.pingId,mcvt:y.maxConsecutiveViewTime,p:y.creativePosition,asp:y.adSpeedPosition,tm:y.totalMeasurementTime,tu:y.totalUnviewedTime,mtos:y.maxTimeOnScreen,tos:y.timeOnScreen,v:y.binaryVersion,bin:y.binaryContext,avms:y.measurementStrategy,bs:y.browserSize,mc:y.maximumExposure,"if":y.crossDomainIframeState,vu:y.delayedImpressionJsState,app:y.inApp,mse:y.mraidError,mtop:y.mraidSituation,itpl:y.injectedTemplateId,adk:y.adKey,exk:y.awbidKey,rs:y.requestSource,la:y.isLargeAd,
cr:y.isContentRecommendationAd,uach:y.userAgentClientHints,vs:y.viewState,r:y.reasonCode,pay:y.hasCpmavUrl,co:y.clientPingOrderCounter,rst:y.adRenderStartTime,rpt:y.adRenderPeriodTime,isd:y.initialScrollDepth,lsd:y.loadedScrollDepth,context:y.errorContext,msg:y.errorMessage,stack:y.errorStack,name:y.errorName,ec:y.hasElementChanged,sfr:y.strategyFailureReasons,met:y.creativeSearchResult,wmsd:y.webMeasurementStartDiagnostic,pv:y.pageVisible,epv:y.eosPageVisible,pbe:y.inStatefulBeaconExperiment,fle:y.inFetchLaterBeaconExperiment,
vae:y.inViewableAttributionExperiment,spb:y.supportsPendingBeacon,sfl:y.supportsFetchLater,ffslot:y.isFencedFrameSlotTurtlex,reach:y.sharedStorageReachMode,io2:y.v2VisibilityBitVector,rxdbg:y.rxDebugger,omida:y.omidAppId,omidp:y.omidPartner,omidpv:y.omidPartnerVersion,omidor:y.omidOcclusionReasons,omidv:y.omidVersion,omids:y.omidSessionType,omidam:y.omidAccessMode,omidct:y.omidCreativeType,omidia:y.omidInApp,omiddc:y.omidDeviceCategory,omidlat:y.omidLastActivity,omiddit:y.omidDeviceIdleTime,qid:y.errorEscapedQueryId}};var I7P=function(y){var W=[];return y.pipe(ah(function(V){var w=V.beaconFactory,t=V.fetchBeaconFactory,F=V.timeOnScreen,I=V.timeOnScreenUrlPrefixes,P=V.payloadMapper,C=V.timeOnScreenPingId,d=V.timeOnScreenReason,L=V.urlSerializer,z=V.viewable,c=V.hasImpressionFired,K=V.inStatefulBeaconExperiment,f=V.supportsPendingBeacon,U=V.supportsFetchLater,l=V.turtlexReportEventData;if(!V.geometryMeasurable||!c||V.maxTimeOnScreen===void 0||F===void 0||I===void 0||P===void 0||C===void 0||L===void 0||w===void 0)return!1;
if(V.isTurtlex){if(d===void 0)return!1;I=V.reportFencedFrameEvent;if(!I)return!1;I({eventType:"active-view-time-on-screen",eventData:l!=null?l:"",destination:["buyer"]});return!0}if(!(K||U||d))return!1;l=nz(V);var x;z=(x=z==null?void 0:z.extrapolateUsingTimestampMap(l).value)!=null?x:!1;x=L(Object.assign({},V,{pingId:C,viewState:z?4:3,reasonCode:d!=null?d:"u",payloadMapper:P,urlPrefixes:I}),l);if(K){for(;W.length>I.length;)V=void 0,(V=W.shift())==null||V.deactivate();x.forEach(function(r,H){H>=W.length?
W.push(w.makeBeacon(r)):W[H].url=r});
return f&&t&&d!==void 0?(x.forEach(function(r){t.makeBeacon(r).sendNow()}),!0):d!==void 0}if(f&&t&&d!==void 0)return x.forEach(function(r){t.makeBeacon(r).sendNow()}),!0;
if(U&&t){for(;W.length>I.length;)f=void 0,(f=W.shift())==null||f.deactivate();var B=L(Object.assign({},V,{pingId:C,viewState:z?4:3,reasonCode:d!=null?d:"u",payloadMapper:P,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),l)[0];x.forEach(function(r,H){H>=W.length?W.push(w.makeBeacon(B,{endOfSession:!0})):W[H].url=B});
return d!==void 0?(x.forEach(function(r){t.makeBeacon(r).sendNow()}),!0):d!==void 0}return d!==void 0?(x.forEach(function(r){w.makeBeacon(r).sendNow()}),!0):!1}),pz(function(V){return!V}),IS())};var PUv=ql(VL(function(y){return y.immediateUrlPrefixes!==void 0&&y.payloadMapper!==void 0&&y.urlSerializer!==void 0&&y.inferredPingId!==void 0&&y.beaconFactory!==void 0}),VL(function(y){return DRy(y)!==null}),uoy(function(y){return y.activeViewUnmeasurableEvent},function(y){return y.emit}),ah(function(y){if(y.isTurtlex){var W=y.reportFencedFrameEvent;
if(W){var V;W({eventType:"active-view-unmeasurable",eventData:(V=y.turtlexReportEventData)!=null?V:"",destination:["buyer"]})}}else{V=void 0;var w=DRy(y);if(w==="x"){var t,F=(t=y.geometricMeasurementErrors)!=null?t:y.contextValidationErrors;F&&(W=F.stack,V=F.message)}y.urlSerializer(Object.assign({},y,{urlPrefixes:y.immediateUrlPrefixes,payloadMapper:y.payloadMapper,pingId:y.inferredPingId,viewState:2,reasonCode:w,errorMessage:V,errorStack:W}),nz(y)).forEach(function(I){y.beaconFactory.makeBeacon(I).sendNow()})}}),
P3(1),IS());var laL=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var wVy=ql(VL(function(y){return y.payloadMapper!==void 0&&y.immediateUrlPrefixes!==void 0&&y.urlSerializer!==void 0&&y.inferredPingId!==void 0&&y.beaconFactory!==void 0}),ah(function(y){return Object.assign({},y,{timestamps:nz(y)})}),VL(function(y){var W=y.viewable;
var V=y.hasImpressionFired;y=y.timestamps;var w;return!!V&&((w=W==null?void 0:W.extrapolateUsingTimestampMap(y).value)!=null?w:!1)}),uoy(function(y){return y.activeViewViewableEvent},function(y){return y.emit}),ah(function(y){var W=y.beaconFactory,V=y.turtlexReportEventData;
if(y.isTurtlex){var w=y.reportFencedFrameEvent;if(!w)return!1;w({eventType:"active-view-viewable",eventData:V!=null?V:"",destination:["buyer"]});return!0}V=y.urlSerializer(Object.assign({},y,{urlPrefixes:y.immediateUrlPrefixes,payloadMapper:y.payloadMapper,pingId:y.inferredPingId,viewState:4,reasonCode:"v"}),y.timestamps);(w=y.cpmavUrls)&&w.length>0&&y.viewUrlSerializer&&y.viewUrlSerializer(w,y).forEach(function(t){W.makeBeacon(t).sendNow()});
(w=y.viewableRelayUrls)&&w.length>0&&y.viewUrlSerializer&&y.viewUrlSerializer(w,y).forEach(function(t){W.makeBeacon(t).sendNow()});
V.forEach(function(t){W.makeBeacon(t,{attributionEnabled:y.isViewableAttributionEnabled}).sendNow()});
return!0}),pz(function(y){return!y}),IS());var TfR=ah(function(y){return[y.value.topWindowViewportExternalGeometry.width,y.value.topWindowViewportExternalGeometry.height]});var tG=function(y,W){this.callback=y;this.options=W;this.intersectionObserverV2=this.intersectionObserverV1=null},Nfv=function(y,W){W?y.intersectionObserverV2||(W=Object.assign({},y.options,{delay:100,
trackVisibility:!0}),y.intersectionObserverV2=new IntersectionObserver(y.callback,W)):y.intersectionObserverV1||(y.intersectionObserverV1=new IntersectionObserver(y.callback,y.options))},nEE=function(y,W){y=W?y.intersectionObserverV2:y.intersectionObserverV1;
if(!y)throw new Zdm;return y};
tG.prototype.observe=function(y,W){nEE(this,y).observe(W)};
tG.prototype.unobserve=function(y,W){nEE(this,y).unobserve(W)};
tG.prototype.disconnect=function(y){nEE(this,y).disconnect()};
tG.prototype.takeRecords=function(y){return nEE(this,y).takeRecords()};var Gka={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Ef,topWindowViewportExternalGeometry:Ef,measurementRequests:new SD,elementGeometrySourceName:"ns",elementGeometry:Ef,intersectionGeometry:Ef,viewportLocalAppOffset:{x:0,y:0}};var d1P=NR(ql(ah(function(y){var W;return(W=y.exposureOverride)!=null?W:gdd(y)}),ah(function(y){return isFinite(y)?y:0}))),KTa=NR(ql(ah(function(y){var W;
return(W=y.exposureOverride)!=null?W:gdd(y)}),ah(function(y){return isFinite(y)?y:-1})));var Iy=function(y,W){this.a=y;this.b=W;if(y.clock.timeline!==W.clock.timeline)throw Error();};
Iy.prototype.equivalentTo=function(y){return y instanceof Iy?this.a.equivalentTo(y.a)&&this.b.equivalentTo(y.b):!1};
Iy.prototype.extrapolateToTime=function(y){var W=this.a.extrapolateToTime(y).value,V=this.b.extrapolateToTime(y).value;return{timestamp:y,value:[W,V]}};
_.CM.Object.defineProperties(Iy.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 y=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),W=this.a.lastMeasurement.timestamp.equals(y)?this.a.lastMeasurement.value:this.a.extrapolateToTime(y).value,V=this.b.lastMeasurement.timestamp.equals(y)?this.b.lastMeasurement.value:this.b.extrapolateToTime(y).value;return{timestamp:y,value:[W,V]}}}});var gD=function(y,W){this.input=y;this.mapFunction=W;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
gD.prototype.equivalentTo=function(y){return y instanceof gD?this.input.equivalentTo(y.input)&&this.mapFunction===y.mapFunction:!1};
gD.prototype.extrapolateToTime=function(y){y=this.input.extrapolateToTime(y);return{timestamp:y.timestamp,value:this.mapFunction(y.value)}};
_.CM.Object.defineProperties(gD.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Pg=function(){};
Pg.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Pg.prototype.extrapolateUsingTimestampMap=function(y){var W=this.clock.timeline,V,w=(V=y.get(W))!=null?V:this.clock.now();y.set(W,w);return this.extrapolateToTime(w)};
Pg.prototype.map=function(y){return new HeQ(this,y)};
Pg.prototype.joinWith=function(y){return new XdJ(this,y)};
var XdJ=function(){Iy.apply(this,arguments);this.map=Pg.prototype.map;this.joinWith=Pg.prototype.joinWith;this.extrapolateToNow=Pg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Pg.prototype.extrapolateUsingTimestampMap};
_.p(XdJ,Iy);var HeQ=function(){gD.apply(this,arguments);this.map=Pg.prototype.map;this.joinWith=Pg.prototype.joinWith;this.extrapolateToNow=Pg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Pg.prototype.extrapolateUsingTimestampMap};
_.p(HeQ,gD);var gJ=function(y,W){this.lastMeasurement=W;this.extrapolateToNow=Pg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Pg.prototype.extrapolateUsingTimestampMap;this.map=Pg.prototype.map;this.joinWith=Pg.prototype.joinWith;this.clock=y};
gJ.prototype.equivalentTo=function(y){return y.active};
gJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.CM.Object.defineProperties(gJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var fZG=ah(function(y){if(y.value.viewportGeometrySourceName==="omid"){if(y.value.elementGeometrySourceName==="nio")return"omio";if(y.value.elementGeometrySourceName==="geo")return"omgeo"}return y.value.elementGeometrySourceName==="geo"||y.value.elementGeometrySourceName==="nio"?y.value.viewportGeometrySourceName:y.value.elementGeometrySourceName});var COj=ql(VL(function(y){return!isNaN(y)}),hU(function(y,W){return isNaN(y)?W:Math.min(y,W)},NaN),Cz());var LTG=NR(ql(ah(function(y){return y.intersectionGeometry.width*y.intersectionGeometry.height/(y.exposedViewportLocalGeometry.width*y.exposedViewportLocalGeometry.height)}),ah(function(y){return isFinite(y)?Math.min(1,y):0})));var ib4=ql(NR(ah(function(y){y=y.exposureOverride?y.elementGeometry.width*y.elementGeometry.height*y.exposureOverride/(y.topWindowViewportExternalGeometry.width*y.topWindowViewportExternalGeometry.height):y.intersectionGeometry.width*y.intersectionGeometry.height/(y.topWindowViewportExternalGeometry.width*y.topWindowViewportExternalGeometry.height);return isFinite(y)?y:0})));var qyj=function(y,W){var V=this;this.timeProvider=y;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=W.pipe(Cz()).subscribe(function(w){uTv(V);V.measurementRequestObserver=w})},Syu=function(y,W){uTv(y);
y.lastMeasurementRequest=y.timeProvider.setTimeout(function(){var V;return void((V=y.measurementRequestObserver)==null?void 0:V.next())},W)},uTv=function(y){y.lastMeasurementRequest!==null&&y.timeProvider.clearTimeout(y.lastMeasurementRequest);
y.lastMeasurementRequest=null};
qyj.prototype.dispose=function(){uTv(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var aqJ=function(){};var ybz=function(y,W){this.context=y;this.strategies=W};
_.p(ybz,aqJ);ybz.prototype.buildGeometrySource=function(y,W){var V=this.strategies.map(function(F){return F.buildGeometrySource(y,W)}),w=sfP(V.map(function(F){return F.geometrySource})),t=w.capturedErrors.pipe(GjI());
return{geometrySource:w.chain.pipe(xY(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:t,strategyErrors:w.capturedErrors}].concat(_.GC(V.map(function(F){return F.additionalOutputs}))))}};
var GjI=function(){return hU(function(y,W){W instanceof X0?y.push(W.measurementStrategyFailureReason):y.push(-1);return y},[])};var V04=function(y,W){this.context=y;this.poller=W};
_.p(V04,aqJ);V04.prototype.buildGeometrySource=function(y,W){var V=Aod(BfP(this.context,this.poller),rGP(this.context,W.requestSource));return{geometrySource:kt4(y.measurableCreative.pipe(V),W.inApp),additionalOutputs:{}}};var Wdv=function(y,W,V){V=V===void 0?VHn(y,W):V;this.context=y;this.intersectionObserverStrategy=V};
_.p(Wdv,aqJ);Wdv.prototype.buildGeometrySource=function(y,W){var V=this.intersectionObserverStrategy(W.useV2);return{geometrySource:kt4(y.measurableCreative.pipe(V,w1L(this.context)),W.inApp),additionalOutputs:{}}};var rmi=function(y,W,V){var w=w===void 0?Symbol():w;this.element=y;this.immediateUrls=W;this.timeOnScreenUrls=V;this.symbol=w};var MHy=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),HbL=Object.freeze([1,.75,MHy.exposureThreshold,MHy.largeAdExposureThreshold,0]);var W5t=function(y,W){W=W===void 0?36E5:W;var V=V===void 0?!0:V;this.creatives=new SD;this.elementsToUnregister=new SD;this.elementMap=new Map;var w=new Of(window,null);w.beaconFactory=new Dx(w,new tP(w));Zbv(w,this.creatives,this.elementsToUnregister,y,W,V).subscribe()},tzd=function(y,W,V,w){if(!y.elementMap.has(W)){var t=new Vc(W);
y.elementMap.set(W,t);y.creatives.next(new rmi(t,V,w))}},wAa=function(y,W){y.elementsToUnregister.next(W);
var V=y.elementMap.get(W);V!==void 0&&(V.release(),y.elementMap.delete(W))};var yYt=function(y){var W=y.url;y=y.uaDataValues;this.JSC$9400_url_=W;this.uaDataValues_=y;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var V=/[?&]([^&=]+)=([^&]*)/g;y=V.exec(W);)this.urlParamValues_[y[1]]=y[2]},WMy=function(y){y=y.uaDataValues_;
if(!y)return"";var W=dJ("uap",y.platform)+dJ("uapv",y.platformVersion)+dJ("uafv",y.uaFullVersion)+dJ("uaa",y.architecture)+dJ("uam",y.model)+dJ("uab",y.bitness);y.fullVersionList&&(W+="&uafvl="+encodeURIComponent(y.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+";"+encodeURIComponent(V.version)}).join("|")));
y.wow64!=null&&(W+="&uaw="+Number(y.wow64));return W.slice(1)};var bem=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(bem,_.fu);bem.prototype.getId=function(){return _.aX(this,1)};var Cw=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Cw,_.fu);Cw.prototype.getSeconds=function(){return HX(this,1)};
Cw.prototype.setSeconds=function(y){return _.d3(this,1,Dq(y),"0")};_.yW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(_.yW,_.fu);_.yW.prototype.getSeconds=function(){return HX(this,1)};
_.yW.prototype.setSeconds=function(y){return _.d3(this,1,Dq(y),"0")};
_.QvA=function(y){var W=Number(bP(y,1));y=_.Ka(y,2);return new Date(W*1E3+y/1E6)};var OH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(OH,_.fu);OH.prototype.getUrl=function(){return _.aX(this,1)};
OH.prototype.setUrl=function(y){return _.Pm(this,1,y)};
OH.prototype.getHeight=function(){return _.Ka(this,2)};
OH.prototype.getWidth=function(){return _.Ka(this,3)};var vg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(vg,_.fu);vg.prototype.getAspectRatio=function(){return X_(this,1)};
vg.prototype.setAspectRatio=function(y){return _.d3(this,1,_.O3(y),0)};
vg.prototype.getDuration=function(){return _.Da(this,Cw,2)};var ZeE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ZeE,_.fu);var y_m=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(y_m,_.fu);var Whz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Whz,_.fu);var VhQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(VhQ,_.fu);var wZs=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(wZs,_.fu);var thi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(thi,_.fu);var Fhr=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Fhr,_.fu);var ERf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ERf,_.fu);var N3s=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(N3s,_.fu);var dD=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(dD,_.fu);var Lw=[2,4,5,6,7];var IfQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(IfQ,_.fu);var j6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(j6,_.fu);_.E=j6.prototype;_.E.getId=function(){return _.Da(this,bem,1)};
_.E.getName=function(){return _.aX(this,2)};
_.E.setDescription=function(y){return _.Pm(this,3,y)};
_.E.getUrl=function(){return _.aX(this,8)};
_.E.setUrl=function(y){return _.Pm(this,8,y)};
var z0=function(y){return _.eA(y,OH,10,_.hG())};
j6.prototype.getOwner=function(y){var W=_.PZ(this,40,_.Jm,3,!0);$J(W,y);return W[y]};
j6.prototype.getVersion=function(){return HX(this,45)};
var cg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(cg,_.fu);_.gRR=[0,nvP,Xbv];_.P_A=[0,nvP,Xbv];var C_I=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(C_I,_.fu);var eI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(eI,_.fu);eI.prototype.getStatus=function(){return _.rK(this,1)};
eI.prototype.removeItem=function(y){return gvz(this,2,y)};var Oum=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Oum,_.fu);Oum.prototype.getName=function(){return _.aX(this,8)};var hP=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(hP,_.fu);hP.prototype.getCommand=function(){return _.rK(this,1)};
hP.prototype.getSource=function(){return _.Da(this,Oum,2)};
hP.prototype.setVisible=function(y){return _.jK(this,5,y)};
hP.prototype.removeItem=function(y){return gvz(this,7,y)};var vRE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(vRE,_.fu);vRE.prototype.getCommand=function(){return _.rK(this,1)};
vRE.prototype.removeItem=function(y){return gvz(this,4,y)};
var d5E=_.l_(vRE);var oy=function(y,W,V){V=V===void 0?Error():V;var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=y;W+=":";V instanceof Error?(this.message=W+V.message,this.stack=V.stack||""):(this.message=W+String(V),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(oy,Error);_.Ru=function(){this.JSC$9458_disposed_=this.JSC$9458_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Ru.prototype.JSC$9458_disposed_=!1;_.Ru.prototype.isDisposed=function(){return this.JSC$9458_disposed_};
_.Ru.prototype.dispose=function(){this.JSC$9458_disposed_||(this.JSC$9458_disposed_=!0,this.disposeInternal())};
_.Ru.prototype[Symbol.dispose]=function(){this.dispose()};
_.Uf=function(y,W){y.addOnDisposeCallback(_.D2(_.La,W))};
_.Ru.prototype.addOnDisposeCallback=function(y,W){this.JSC$9458_disposed_?W!==void 0?y.call(W):y():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),W&&(y=y.bind(W)),this.onDisposeCallbacks_.push(y))};
_.Ru.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Kw=function(y){_.Ru.call(this);this.wpc=y};
_.p(Kw,_.Ru);Kw.prototype.zT4=function(){return this.wpc.f()};
Kw.prototype.lF4=function(y){return this.wpc.c(y)};
Kw.prototype.ls=function(y){return this.wpc.m(Ldn(y))};
Kw.prototype.oyl=function(y){return this.wpc.mws(Ldn(y))};
var cM=function(y){_.Ru.call(this);var W=this;this.vm=y;this.m8y="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.k1u=void 0;this.xsl=this.vm.p;this.irO=this.wWH.bind(this);this.addOnDisposeCallback(function(){return void Lhq(W)})};
_.p(cM,_.Ru);var z1q=function(y){var W;return _.g(function(V){if(V.nextAddress==1){if(!y.vm.wpc)throw new oy(30,"NWA");return y.v6H?V.return(y.v6H):V.yield(y.vm.wpc(),2)}W=V.yieldResult;y.v6H=new Kw(W);return V.return(y.v6H)})};
cM.prototype.snapshot=function(y){return this.vm.s(Object.assign({},y.nC&&{c:y.nC},y.wqD&&{s:y.wqD},y.hBa!==void 0&&{p:y.hBa}))};
cM.prototype.wWH=function(y){this.vm.e(y)};
cM.prototype.fym=function(y,W){return this.vm.c(y,W,!1)};
var Lhq=function(y){y.k1u!==void 0&&(y.m8y.forEach(function(W){var V;(V=y.k1u)==null||V.removeEventListener(W,y.irO)}),y.k1u=void 0)};
cM.prototype.iGH=function(){return this.vm.l()};var c_z,pw=function(){_.Ru.apply(this,arguments);this.u3L=1;this[c_z]=this.dispose};
_.p(pw,_.Ru);pw.prototype.share=function(){if(this.isDisposed())throw Error("xa");this.u3L++;return this};
pw.prototype.dispose=function(){--this.u3L||_.Ru.prototype.dispose.call(this)};
c_z=Symbol.dispose;var e1s=function(y){this.vSy=y;y.addNewEventMetric("/client_streamz/bg/frs",_.fa("mk"))};
e1s.prototype.record=function(y,W){this.vSy.record("/client_streamz/bg/frs",y,W)};
var h12=function(y){this.hJy=y;y.addNewEventMetric("/client_streamz/bg/wrl",_.fa("mn"),iz("ac"),iz("sc"),_.fa("rk"),_.fa("mk"))};
h12.prototype.record=function(y,W,V,w,t,F){this.hJy.record("/client_streamz/bg/wrl",y,W,V,w,t,F)};
var oRq=function(y){this.y76=y;y.addNewCounter("/client_streamz/bg/ec",_.fa("en"),_.fa("mk"))};
oRq.prototype.increment=function(y,W){this.y76.JSC$9712_incrementCounter("/client_streamz/bg/ec",y,W)};
var KhJ=function(y){this.bpT=y;y.addNewEventMetric("/client_streamz/bg/el",_.fa("en"),_.fa("mk"))};
KhJ.prototype.record=function(y,W,V){this.bpT.record("/client_streamz/bg/el",y,W,V)};
var pZE=function(y){this.fBO=y;y.addNewCounter("/client_streamz/bg/cec",iz("ec"),_.fa("mk"))};
pZE.prototype.increment=function(y,W){this.fBO.JSC$9712_incrementCounter("/client_streamz/bg/cec",y,W)};
var iuR=function(y){this.c7q=y;y.addNewCounter("/client_streamz/bg/po/csc",iz("cs"),_.fa("mk"))};
iuR.prototype.increment=function(y,W){this.c7q.JSC$9712_incrementCounter("/client_streamz/bg/po/csc",y,W)};
var ffQ=function(y){this.uoP=y;y.addNewCounter("/client_streamz/bg/po/ctav",_.fa("av"),_.fa("mk"))};
ffQ.prototype.increment=function(y,W){this.uoP.JSC$9712_incrementCounter("/client_streamz/bg/po/ctav",y,W)};
var T36=function(y){this.zJ3=y;y.addNewCounter("/client_streamz/bg/po/cwsc",_.fa("su"),_.fa("mk"))};
T36.prototype.increment=function(y,W){this.zJ3.JSC$9712_incrementCounter("/client_streamz/bg/po/cwsc",y,W)};var $Vb=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p($Vb,_.fu);var j8P=function(y,W){return _.vZ(y,3,W,QRb)};var m5K=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(m5K,_.fu);var Mhs=[1,2,3];var qx6=[0,Mhs,_.Qmb,ayy,bCa];var U5z=[0,_.Ov,[0,RHv,_.I1]];var uMz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(uMz,_.fu);var Sxr=[1,2,3];var D5Q=[0,Sxr,HCP,jmv,_.d4,U5z];var lfJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lfJ,_.fu);var x5m=[0,_.Ov,qx6,D5Q];var k3m=[0,_.Cl];var sGA=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(sGA,_.fu);var A_m=[0,_.Cl,-1,_.P8];var Yxm=[0,_.Cl,-1,_.g4,_.P8];var B32=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(B32,_.fu);var J_J=[1,2,3];var R1z=[0,J_J,_.d4,A_m,_.d4,Yxm,_.d4,k3m];var jGz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(jGz,_.fu);jGz.prototype.JSC$9532_serializeBinary=KhP([0,_.Cl,R1z,ZCz,_.Ov,x5m,Gs4,rJG]);var $5m=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p($5m,_.fu);var XZ2=function(y){var W=new jGz;W=_.jD(W,1,y.JSC$9648_metricName);var V=nRq(y);W=_.vZ(W,3,V,_.YE);V=[];for(var w=[],t=_.N(y.cellMap.keys()),F=t.next();!F.done;F=t.next())w.push(F.value.split(","));for(t=0;t<w.length;t++){F=w[t];for(var I=y.cellType,P=y.getCells(F)||[],C=[],d=0;d<P.length;d++){var L=P[d],z=L&&L.cellValue;L=new uMz;switch(I){case 3:z=Number(z);Number.isFinite(z)&&Ug(L,1,Sxr,Dq(z));break;case 2:Ug(L,2,Sxr,_.O3(Number(z)))}C.push(L)}I=C;for(P=0;P<I.length;P++){C=I[P];d=new lfJ;C=_.sx(d,
2,C);d=[];L=HuR(y);for(z=0;z<L.length;z++){var c=L[z],K=F[z],f=new m5K;switch(c){case 3:Ug(f,1,Mhs,Bd(String(K)));break;case 2:c=Number(K);Number.isFinite(c)&&Ug(f,2,Mhs,_.fe(c));break;case 1:Ug(f,3,Mhs,GGn(K==="true"))}d.push(f)}RX(C,1,d);V.push(C)}}RX(W,4,V);return W};var afq=function(y){if(!y)return"";if(/^about:(?:blank|srcdoc)$/.test(y))return window.origin||"";y.indexOf("blob:")===0&&(y=y.substring(5));y=y.split("#")[0].split("?")[0];y=y.toLowerCase();y.indexOf("//")==0&&(y=window.location.protocol+y);/^[\w\-]*:\/\//.test(y)||(y=window.location.href);var W=y.substring(y.indexOf("://")+3),V=W.indexOf("/");V!=-1&&(W=W.substring(0,V));V=y.substring(0,y.indexOf("://"));if(!V)throw Error("ya`"+y);if(V!=="http"&&V!=="https"&&V!=="chrome-extension"&&V!=="moz-extension"&&
V!=="file"&&V!=="android-app"&&V!=="chrome-search"&&V!=="chrome-untrusted"&&V!=="chrome"&&V!=="app"&&V!=="devtools")throw Error("za`"+V);y="";var w=W.indexOf(":");if(w!=-1){var t=W.substring(w+1);W=W.substring(0,w);if(V==="http"&&t!=="80"||V==="https"&&t!=="443")y=":"+t}return V+"://"+W+y};var r_K=function(y,W,V){var w=String(_.Vj.location.href);return w&&y&&W?[W,G3s(afq(w),y,V||null)].join(" "):null},G3s=function(y,W,V){var w=[],t=[];
if((Array.isArray(V)?2:1)==1)return t=[W,y],_.IA(w,function(P){t.push(P)}),buK(t.join(" "));
var F=[],I=[];_.IA(V,function(P){I.push(P.key);F.push(P.value)});
V=Math.floor((new Date).getTime()/1E3);t=F.length==0?[V,W,y]:[F.join(":"),V,W,y];_.IA(w,function(P){t.push(P)});
y=buK(t.join(" "));y=[V,y];I.length==0||y.push(I.join(""));return y.join("_")},buK=function(y){var W=iGj();
W.update(y);return W.digestString().toLowerCase()};var iW=function(y){this.JSC$9543_document_=y||{cookie:""}},QGz;
_.E=iW.prototype;_.E.isEnabled=function(){if(!_.Vj.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};
_.E.set=function(y,W,V){var w=!1;if(typeof V==="object"){var t=V.sameSite;w=V.secure||!1;var F=V.domain||void 0;var I=V.path||void 0;var P=V.maxAge}if(/[;=\s]/.test(y))throw Error("Aa`"+y);if(/[;\r\n]/.test(W))throw Error("Ba`"+W);P===void 0&&(P=-1);V=F?";domain="+F:"";I=I?";path="+I:"";w=w?";secure":"";P=P<0?"":P==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+P*1E3)).toUTCString();this.JSC$9543_document_.cookie=y+"="+W+V+I+P+w+(t!=null?";samesite="+t:"")};
_.E.get=function(y,W){for(var V=y+"=",w=(this.JSC$9543_document_.cookie||"").split(";"),t=0,F;t<w.length;t++){F=vy(w[t]);if(F.lastIndexOf(V,0)==0)return F.slice(V.length);if(F==y)return""}return W};
_.E.remove=function(y,W,V){var w=this.containsKey(y);this.set(y,"",{maxAge:0,path:W,domain:V});return w};
_.E.getKeys=function(){return QGz(this).keys};
_.E.getValues=function(){return QGz(this).values};
_.E.isEmpty=function(){return!this.JSC$9543_document_.cookie};
_.E.getCount=function(){return this.JSC$9543_document_.cookie?(this.JSC$9543_document_.cookie||"").split(";").length:0};
_.E.containsKey=function(y){return this.get(y)!==void 0};
_.E.containsValue=function(y){for(var W=QGz(this).values,V=0;V<W.length;V++)if(W[V]==y)return!0;return!1};
_.E.clear=function(){for(var y=QGz(this).keys,W=y.length-1;W>=0;W--)this.remove(y[W])};
QGz=function(y){y=(y.JSC$9543_document_.cookie||"").split(";");for(var W=[],V=[],w,t,F=0;F<y.length;F++)t=vy(y[F]),w=t.indexOf("="),w==-1?(W.push(""),V.push(t)):(W.push(t.substring(0,w)),V.push(t.substring(w+1)));return{keys:W,values:V}};
_.k_=new iW(typeof document=="undefined"?null:document);var YKj,Zuq;YKj=function(){var y=_.Vj.__SAPISID||_.Vj.__APISID||_.Vj.__3PSAPISID||_.Vj.__1PSAPISID||_.Vj.__OVERRIDE_SID;if(y)return!0;typeof document!=="undefined"&&(y=new iW(document),y=y.get("SAPISID")||y.get("APISID")||y.get("__Secure-3PAPISID")||y.get("__Secure-1PAPISID"));return!!y};
Zuq=function(y,W,V,w){(y=_.Vj[y])||typeof document==="undefined"||(y=(new iW(document)).get(W));return y?r_K(y,V,w):null};
_.UgP=function(y){var W=afq(_.Vj==null?void 0:_.Vj.location.href),V=[];if(YKj()){W=W.indexOf("https:")==0||W.indexOf("chrome-extension:")==0||W.indexOf("chrome-untrusted://new-tab-page")==0||W.indexOf("moz-extension:")==0;var w=W?_.Vj.__SAPISID:_.Vj.__APISID;w||typeof document==="undefined"||(w=new iW(document),w=w.get(W?"SAPISID":"APISID")||w.get("__Secure-3PAPISID"));(w=w?r_K(w,W?"SAPISIDHASH":"APISIDHASH",y):null)&&V.push(w);W&&((W=Zuq("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",y))&&V.push(W),
(y=Zuq("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",y))&&V.push(y))}return V.length==0?null:V.join(" ")};var yXi=function(){this.minSize=1024};
yXi.prototype.compress=function(y){var W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return W=new CompressionStream("gzip"),V=(new Response(W.readable)).arrayBuffer(),w=W.writable.getWriter(),F.yield(w.write((new TextEncoder).encode(y)),2);case 2:return F.yield(w.close(),3);case 3:return t=Uint8Array,F.yield(V,4);case 4:return F.return(new t(F.yieldResult))}})};
yXi.prototype.isSupported=function(y){return y<this.minSize?!1:typeof CompressionStream!=="undefined"};var WX6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(WX6,_.fu);var fw=function(y,W){this.intervalMs=y;this.callback=W;this.enabled=!1;this.nowFn=function(){return _.KF()};
this.lastTimeMs=this.nowFn()};
fw.prototype.setInterval=function(y){this.intervalMs=y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
fw.prototype.start=function(){var y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){y.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
fw.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
fw.prototype.tick=function(){var y=this;if(this.enabled){var W=Math.max(this.nowFn()-this.lastTimeMs,0);W<this.intervalMs*.8?this.timer=setTimeout(function(){y.tick()},this.intervalMs-W):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Vmq=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Vmq,_.fu);var w7m=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(w7m,_.fu);var tmi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(tmi,_.fu);tmi.prototype.getTransmissionType=function(){return _.rK(this,1)};var M0t=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(M0t,_.fu);M0t.prototype.getVersion=function(){return _.aX(this,2)};var T0=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(T0,_.fu);var mVL=function(y){RX(qFa,1,y)};
T0.prototype.getModel=function(){return _.aX(this,6)};
var FXJ=_.l_(T0);var EX6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(EX6,_.fu);var f7n=["platform","platformVersion","architecture","model","uaFullVersion"],qFa=new T0,TVv=null;var m$=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(m$,_.fu);var N$E=function(y){return _.oV(y,1,1)};var IBr=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,4)};
_.p(IBr,_.fu);_.MI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,36)};
_.p(_.MI,_.fu);_.MI.prototype.getExperimentIds=function(){return _.Da(this,WX6,16)};var gXQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,19)};
_.p(gXQ,_.fu);gXQ.prototype.setLogSource=function(y){return _.oV(this,2,y)};
gXQ.prototype.setScheduler=function(y){return _.oV(this,10,y)};var C7i=function(y,W){this.isServiceWorkerScope=W=W===void 0?!1:W;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new gXQ;Number.isInteger(y)&&this.logRequest.setLogSource(y);W||(this.locale=document.documentElement.getAttribute("lang"));P7E(this,new m$)};
C7i.prototype.setLogSource=function(y){this.logRequest.setLogSource(y);return this};
var P7E=function(y,W){_.sx(y.logRequest,1,W);_.rK(W,1)||N$E(W);y.isServiceWorkerScope||(W=qI(y),_.aX(W,5)||_.jD(W,5,y.locale));y.uach&&(W=qI(y),_.Da(W,T0,9)||_.sx(W,9,y.uach))},OJJ=function(y,W){y.transmissionType=W},vXK=function(y){var W=W===void 0?f7n:W;
var V=y.isServiceWorkerScope?void 0:QL();V?UVR(V,W).then(function(w){y.uach=FXJ(w!=null?w:"[]");w=qI(y);_.sx(w,9,y.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},qI=function(y){var W=_.Da(y.logRequest,m$,1);
W||(W=new m$,P7E(y,W));y=W;W=_.Da(y,EX6,11);W||(W=new EX6,_.sx(y,11,W));return W};
C7i.prototype.build=function(y,W,V,w,t,F){W=W===void 0?0:W;V=V===void 0?0:V;w=w===void 0?null:w;t=t===void 0?0:t;F=F===void 0?0:F;if(!this.isServiceWorkerScope){var I=qI(this);var P=new tmi;P=_.oV(P,1,this.transmissionType);P=_.Tk(P,2,this.isFinal);V=_.y_(P,3,V>0?V:void 0);V=_.y_(V,4,t>0?t:void 0);V=_.y_(V,5,F>0?F:void 0);t=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=t[_.UE]|0;V=AA(V,F)?V:NWv(V,t,F)?EEy(V,t):new V.constructor(Zq(t,F,!0));_.sx(I,10,V)}I=this.logRequest.clone();V=Date.now().toString();
I=_.KA(I,4,Dq(V));y=y.slice();y=RX(I,3,y);w&&(I=new Vmq,w=_.y_(I,13,w),I=new w7m,w=_.sx(I,2,w),I=new IBr,w=_.sx(I,1,w),w=_.oV(w,2,9),_.sx(y,18,w));W&&_.sg(y,14,W);return y};m1.prototype.currBackoffCount_=0;m1.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
m1.prototype.getValue=function(){return this.currValue_};
var dlz=function(y){y.currBaseValue_=Math.min(y.maxValue_,y.currBaseValue_*y.backoffFactor_);y.currValue_=Math.min(y.maxValue_,y.currBaseValue_+(y.randomFactor_?Math.round(y.randomFactor_*(Math.random()-.5)*2*y.currBaseValue_):0));y.currBackoffCount_++};var t7L=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,8)};
_.p(t7L,_.fu);var LXm=_.l_(t7L);var F0b=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(F0b,_.fu);var UH;UH=new Eiy;var uW=function(y){_.Ru.call(this);var W=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9621_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$9621_sendBeaconApiEnabled=!1;this.logSource=y.logSource;this.getAuthHeaderValue=
y.getAuthHeaderValue||function(){};
this.logRequestBuilder=new C7i(y.logSource,y.isServiceWorkerScope);this.network=y.network||null;this.productID=y.productID||null;this.bufferSize=1E3;this.clearcutUrl=y.urlOverride||null;this.sessionIndex=y.sessionIndex||null;this.disableAutomaticFlush=y.disableAutomaticFlush||!1;this.withCredentials=!y.disableWithCredentials;this.isServiceWorkerScope=y.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!QL()&&!!QL().navigator&&QL().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(z8J())).searchParams&&!!(new URL(z8J())).searchParams.set;var V=N$E(new m$);P7E(this.logRequestBuilder,V);this.flushBackoff=new m1(1E4,3E5,.1);y=cXs(this,y.backgroundJobDeferrer);this.JSC$9621_flushTimer=new fw(this.flushBackoff.getValue(),y);this.backupTimer=new fw(6E5,y);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){e8E(W);
var w;(w=W.metalogService)==null||w.flush()}}),document.addEventListener("pagehide",function(){e8E(W);
var w;(w=W.metalogService)==null||w.flush()}))};
_.p(uW,_.Ru);var cXs=function(y,W){return y.isBrowserSupported?W?function(){W().then(function(){y.flush()})}:function(){y.flush()}:function(){}};
uW.prototype.disposeInternal=function(){e8E(this);this.JSC$9621_flushTimer.stop();this.backupTimer.stop();_.Ru.prototype.disposeInternal.call(this)};
var h8i=function(y){y.clearcutUrl||(y.clearcutUrl=z8J());try{return(new URL(y.clearcutUrl)).toString()}catch(W){return(new URL(y.clearcutUrl,QL().location.origin)).toString()}};
uW.prototype.dispatch=function(y){if(y instanceof _.MI)this.log(y);else try{var W=new _.MI,V=y.serialize();var w=_.jD(W,8,V);this.log(w)}catch(t){SI(this,4,1)}};
var SI=function(y,W,V){y.metalogService&&y.metalogService.increment(W,V)};
uW.prototype.log=function(y){SI(this,2,1);if(this.isBrowserSupported){y=y.clone();var W=this.sequencePosition++;y=_.sg(y,21,W);this.componentId&&_.jD(y,26,this.componentId);W=y;if(ziR(_.ke(W,1))==null){var V=Date.now();V=Number.isFinite(V)?V.toString():"0";_.KA(W,1,Dq(V))}_.Lfn(_.ke(W,15))!=null||_.sg(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),_.sx(W,16,V));SI(this,1,1);W=this.pendingEvents.length-this.bufferSize+1;W>0&&(this.pendingEvents.splice(0,W),
this.numLogsDroppedSinceLastFlush+=W,SI(this,3,W));this.pendingEvents.push(y);this.disableAutomaticFlush||this.JSC$9621_flushTimer.enabled||this.JSC$9621_flushTimer.start()}};
uW.prototype.flush=function(y,W){var V=this;if(this.pendingEvents.length===0)y&&y();else if(this.JSC$9621_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,oX6(this);else{var w=Date.now();if(this.noFlushUntilMs>w&&this.startWaitingMs<w)W&&W("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?OJJ(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var t=this.pendingEvents.length,
F=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),I=this.getAuthHeaderValue();if(I&&this.lastFailedAuth===I)W&&W("stale-auth-token");else{this.pendingEvents=[];this.JSC$9621_flushTimer.enabled&&this.JSC$9621_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;w=F.serialize();var P;this.JSC$9621_compressor&&this.JSC$9621_compressor.isSupported(w.length)&&
(P=this.JSC$9621_compressor.compress(w));var C=KXz(this,w,I),d=function(c){V.flushBackoff.reset();V.JSC$9621_flushTimer.setInterval(V.flushBackoff.getValue());if(c){var K=null;try{var f=JSON.stringify(JSON.parse(c.replace(")]}'\n","")));K=LXm(f)}catch(U){}K&&(c=Number(HX(K,1,_.rm("-1"))),c>0&&(V.startWaitingMs=Date.now(),V.noFlushUntilMs=V.startWaitingMs+c),ssR(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,UH.fieldIndex),xrd(K,UH.fieldIndex),K=UH.ctor?UH.getExtensionFn(K,UH.ctor,UH.fieldIndex,
UH.JSC$8800_hasMessageId):UH.getExtensionFn(K,UH.fieldIndex,null,UH.JSC$8800_hasMessageId),K=K===null?void 0:K)&&(K=_.Ka(K,1,-1),K!==-1&&(V.flushBackoff=new m1(K<1?1:K,3E5,.1),V.JSC$9621_flushTimer.setInterval(V.flushBackoff.getValue())))}y&&y();V.numRetriesSinceLastSuccessfulFlush=0},L=function(c,K){var f=_.eA(F,_.MI,3,_.hG());
var U=Number(HX(F,14));dlz(V.flushBackoff);V.JSC$9621_flushTimer.setInterval(V.flushBackoff.getValue());c===401&&I&&(V.lastFailedAuth=I);U&&(V.numLogsDroppedSinceLastFlush+=U);K===void 0&&(K=V.isRetryable(c));K&&(V.pendingEvents=f.concat(V.pendingEvents),V.disableAutomaticFlush||V.JSC$9621_flushTimer.enabled||V.JSC$9621_flushTimer.start());SI(V,7,1);W&&W("net-send-failed",c);++V.numRetriesSinceLastSuccessfulFlush},z=function(){V.network&&V.network.send(C,d,L)};
P?P.then(function(c){SI(V,5,t);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=c;C.bodyType=2;z()},function(){SI(V,6,t);
z()}):z()}}}};
var KXz=function(y,W,V){V=V===void 0?null:V;var w=w===void 0?y.withCredentials:w;var t={},F=new URL(h8i(y));V&&(t.Authorization=V);y.sessionIndex&&(t["X-Goog-AuthUser"]=y.sessionIndex,F.searchParams.set("authuser",y.sessionIndex));y.pageId&&(Object.defineProperty(t,"X-Goog-PageId",{value:y.pageId}),F.searchParams.set("pageId",y.pageId));return{url:F.toString(),body:W,bodyType:1,requestHeaders:t,requestType:"POST",withCredentials:w,timeoutMillis:y.timeoutMillis}},e8E=function(y){y.logRequestBuilder.isFinal=
!0;
y.flush();y.logRequestBuilder.isFinal=!1},oX6=function(y){p7J(y,function(W,V){W=new URL(W);
W.searchParams.set("format","json");var w=!1;try{w=QL().navigator.sendBeacon(W.toString(),V.serialize())}catch(t){}w||(y.isSendBeaconSupported=!1);return w})},p7J=function(y,W){if(y.pendingEvents.length!==0){var V=new URL(h8i(y));
V.searchParams.delete("format");var w=y.getAuthHeaderValue();w&&V.searchParams.set("auth",w);V.searchParams.set("authuser",y.sessionIndex||"0");for(w=0;w<10&&y.pendingEvents.length;++w){var t=y.pendingEvents.slice(0,32),F=y.logRequestBuilder.build(t,y.numLogsDroppedSinceLastFlush,y.numRetriesSinceLastSuccessfulFlush,y.productID,y.persistedLogRecoveredCount,y.persistedLogExpiredCount);if(!W(V.toString(),F)){++y.numRetriesSinceLastSuccessfulFlush;break}y.numLogsDroppedSinceLastFlush=0;y.numRetriesSinceLastSuccessfulFlush=
0;y.persistedLogRecoveredCount=0;y.persistedLogExpiredCount=0;y.pendingEvents=y.pendingEvents.slice(t.length)}y.JSC$9621_flushTimer.enabled&&y.JSC$9621_flushTimer.stop()}};
uW.prototype.isRetryable=function(y){return 500<=y&&y<600||y===401||y===0};
var z8J=function(){return"https://play.google.com/log?format=json&hasfast=true"};var iJs=function(){this.abortSupported=typeof AbortController!=="undefined"};
iJs.prototype.send=function(y,W,V){var w=this,t,F,I,P,C,d,L,z,c,K;return _.g(function(f){switch(f.nextAddress){case 1:return F=(t=w.abortSupported?new AbortController:void 0)?setTimeout(function(){t.abort()},y.timeoutMillis):void 0,_.l7(f,2,3),I=Object.assign({},{method:y.requestType,
headers:Object.assign({},y.requestHeaders)},y.body&&{body:y.body},y.withCredentials&&{credentials:"include"},{signal:y.timeoutMillis&&t?t.signal:null}),f.yield(fetch(y.url,I),5);case 5:P=f.yieldResult;if(P.status!==200){(C=V)==null||C(P.status);f.jumpTo(3);break}if((d=W)==null){f.jumpTo(7);break}return f.yield(P.text(),8);case 8:d(f.yieldResult);case 7:case 3:_.kX(f);clearTimeout(F);_.AX(f,0);break;case 2:L=_.YX(f);switch((z=L)==null?void 0:z.name){case "AbortError":(c=V)==null||c(408);break;default:(K=
V)==null||K(400)}f.jumpTo(3)}})};
iJs.prototype.getTransmissionType=function(){return 4};_.qR=function(y,W){W=W===void 0?"0":W;_.Ru.call(this);this.logSource=y;this.sessionIndex=W;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9639_clearExperimentIds=this.productID=null;this.JSC$9639_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.p(_.qR,_.Ru);var BV4=function(y,W){y.buildLabel=W;return y},YF4=function(y,W){y.network=W;
return y},Rnv=function(y,W){y.JSC$9639_clearExperimentIds=W},AbL=function(y){y.JSC$9639_sendBeaconApiEnabled=!0;
return y};
_.qR.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.qR.prototype.build=function(){this.network||(this.network=new iJs);var y=new uW({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.UgP,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Uf(this,y);if(this.buildLabel){var W=this.buildLabel,V=
qI(y.logRequestBuilder);_.jD(V,7,W)}y.JSC$9621_compressor=new yXi;this.componentId&&(y.componentId=this.componentId);this.productID&&(y.productID=this.productID);this.pageId&&(y.pageId=this.pageId);this.JSC$9639_clearExperimentIds&&((V=this.JSC$9639_clearExperimentIds)?(y.experimentIds||(y.experimentIds=new WX6),W=y.experimentIds,V=V.serialize(),_.jD(W,4,V)):y.experimentIds&&_.KA(y.experimentIds,4));this.JSC$9639_sendBeaconApiEnabled&&(y.JSC$9621_sendBeaconApiEnabled=y.isSendBeaconSupported);vXK(y.logRequestBuilder);
this.bufferSize&&(y.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(y);return y};var nVu=function(y,W,V,w,t,F,I){y=y===void 0?-1:y;W=W===void 0?"":W;V=V===void 0?"":V;w=w===void 0?!1:w;t=t===void 0?"":t;_.Ru.call(this);this.logSource=y;this.componentId=W;F?W=F:(y=new _.qR(y,"0"),y.componentId=W,_.Uf(this,y),V!==""&&(y.destinationUrl=V),w&&(y.serviceWorkerScopeEnabled=!0),t&&BV4(y,t),I&&YF4(y,I),W=y.build());this.JSC$9643_transport=W};
_.p(nVu,_.Ru);nVu.prototype.flush=function(y){y=y||[];if(y.length){for(var W=new $5m,V=[],w=0;w<y.length;w++){var t=y[w],F=XZ2(t);V.push(F);t.clear()}RX(W,1,V);this.JSC$9643_transport.dispatch(W);this.JSC$9643_transport.flush()}};var fBQ=function(y){this.cellValue=y};var DC=function(y,W,V){this.JSC$9648_metricName=y;this.cellType=W;this.fields=V||[];this.cellMap=new Map},HuR=function(y){return y.fields.map(function(W){return W.fieldType})},nRq=function(y){return y.fields.map(function(W){return W.fieldName})};
_.E=DC.prototype;_.E.addCell=function(y){var W=_.Ve.apply(1,arguments),V=this.getCells(W);V?V.push(new fBQ(y)):this.JSC$9648_setCell(y,W)};
_.E.JSC$9648_setCell=function(y){var W=this.JSC$9648_getKey(_.Ve.apply(1,arguments));this.cellMap.set(W,[new fBQ(y)])};
_.E.getCells=function(){var y=this.JSC$9648_getKey(_.Ve.apply(0,arguments));return this.cellMap.has(y)?this.cellMap.get(y):void 0};
_.E.getCell=function(){var y=this.getCells(_.Ve.apply(0,arguments));return y&&y.length?y[0]:void 0};
_.E.clear=function(){this.cellMap.clear()};
_.E.JSC$9648_getKey=function(){var y=_.Ve.apply(0,arguments);return y?y.join(","):"key"};var T$R=function(y,W){DC.call(this,y,3,W)};
_.p(T$R,DC);T$R.prototype.JSC$9651_incrementCounterBy=function(y){var W=_.Ve.apply(1,arguments),V=0,w=this.getCell(W);w&&(V=w.cellValue);this.JSC$9648_setCell(V+y,W)};var mlr=function(y,W){DC.call(this,y,2,W)};
_.p(mlr,DC);mlr.prototype.record=function(y){this.addCell(y,_.Ve.apply(1,arguments))};_.lW=function(y){this.id=y};
_.lW.prototype.toString=function(){return this.id};_.xs=function(y,W){this.type=y instanceof _.lW?String(y):y;this.currentTarget=this.target=W;this.defaultPrevented=this.propagationStopped_=!1};
_.xs.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.xs.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ks=function(y,W){_.xs.call(this,y?y.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;y&&this.init(y,W)};
_.pF(_.ks,_.xs);
_.ks.prototype.init=function(y,W){var V=this.type=y.type,w=y.changedTouches&&y.changedTouches.length?y.changedTouches[0]:null;this.target=y.target||y.srcElement;this.currentTarget=W;W=y.relatedTarget;W||(V=="mouseover"?W=y.fromElement:V=="mouseout"&&(W=y.toElement));this.relatedTarget=W;w?(this.clientX=w.clientX!==void 0?w.clientX:w.pageX,this.clientY=w.clientY!==void 0?w.clientY:w.pageY,this.screenX=w.screenX||0,this.screenY=w.screenY||0):(this.offsetX=_.qW||y.offsetX!==void 0?y.offsetX:y.layerX,
this.offsetY=_.qW||y.offsetY!==void 0?y.offsetY:y.layerY,this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0);this.button=y.button;this.keyCode=y.keyCode||0;this.key=y.key||"";this.charCode=y.charCode||(V=="keypress"?y.keyCode:0);this.ctrlKey=y.ctrlKey;this.altKey=y.altKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.pointerId=y.pointerId||0;this.pointerType=y.pointerType;this.state=y.state;
this.timeStamp=y.timeStamp;this.event_=y;y.defaultPrevented&&_.ks.superClass_.preventDefault.call(this)};
_.ks.prototype.stopPropagation=function(){_.ks.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ks.prototype.preventDefault=function(){_.ks.superClass_.preventDefault.call(this);var y=this.event_;y.preventDefault?y.preventDefault():y.returnValue=!1};var Mms="closure_listenable_"+(Math.random()*1E6|0),sH=function(y){return!(!y||!y[Mms])};var qcQ=0;var Uls=function(y,W,V,w,t){this.listener=y;this.proxy=null;this.src=W;this.type=V;this.capture=!!w;this.handler=t;this.key=++qcQ;this.removed=this.callOnce=!1},uyr=function(y){y.removed=!0;
y.listener=null;y.proxy=null;y.src=null;y.handler=null};MR.prototype.add=function(y,W,V,w,t){var F=y.toString();y=this.listeners[F];y||(y=this.listeners[F]=[],this.typeCount_++);var I=Scq(y,W,w,t);I>-1?(W=y[I],V||(W.callOnce=!1)):(W=new Uls(W,this.src,F,!!w,t),W.callOnce=V,y.push(W));return W};
MR.prototype.remove=function(y,W,V,w){y=y.toString();if(!(y in this.listeners))return!1;var t=this.listeners[y];W=Scq(t,W,V,w);return W>-1?(uyr(t[W]),_.aR(t,W),t.length==0&&(delete this.listeners[y],this.typeCount_--),!0):!1};
var DlQ=function(y,W){var V=W.type;if(!(V in y.listeners))return!1;var w=_.GG(y.listeners[V],W);w&&(uyr(W),y.listeners[V].length==0&&(delete y.listeners[V],y.typeCount_--));return w};
MR.prototype.removeAll=function(y){y=y&&y.toString();var W=0,V;for(V in this.listeners)if(!y||V==y){for(var w=this.listeners[V],t=0;t<w.length;t++)++W,uyr(w[t]);delete this.listeners[V];this.typeCount_--}return W};
MR.prototype.getListener=function(y,W,V,w){y=this.listeners[y.toString()];var t=-1;y&&(t=Scq(y,W,V,w));return t>-1?y[t]:null};
MR.prototype.hasListener=function(y,W){var V=y!==void 0,w=V?y.toString():"",t=W!==void 0;return _.Gc.some(this.listeners,function(F){for(var I=0;I<F.length;++I)if(!(V&&F[I].type!=w||t&&F[I].capture!=W))return!0;return!1})};
var Scq=function(y,W,V,w){for(var t=0;t<y.length;++t){var F=y[t];if(!F.removed&&F.listener==W&&F.capture==!!V&&F.handler==w)return t}return-1};var lBm,xli,kC2,AX2,YcI,jY,$c,R8s,B$2,JXf,AP,jhi,shz;lBm="closure_lm_"+(Math.random()*1E6|0);xli={};kC2=0;_.XZ=function(y,W,V,w,t){if(w&&w.once)return jY(y,W,V,w,t);if(Array.isArray(W)){for(var F=0;F<W.length;F++)_.XZ(y,W[F],V,w,t);return null}V=shz(V);return sH(y)?y.listen(W,V,_.VK(w)?!!w.capture:!!w,t):AX2(y,W,V,!1,w,t)};
AX2=function(y,W,V,w,t,F){if(!W)throw Error("Da");var I=_.VK(t)?!!t.capture:!!t,P=AP(y);P||(y[lBm]=P=new MR(y));V=P.add(W,V,w,I,F);if(V.proxy)return V;w=YcI();V.proxy=w;w.src=y;w.listener=V;if(y.addEventListener)_.x9j||(t=I),t===void 0&&(t=!1),y.addEventListener(W.toString(),w,t);else if(y.attachEvent)y.attachEvent(B$2(W.toString()),w);else if(y.addListener&&y.removeListener)y.addListener(w);else throw Error("Ea");kC2++;return V};
YcI=function(){var y=JXf,W=function(V){return y.call(W.src,W.listener,V)};
return W};
jY=function(y,W,V,w,t){if(Array.isArray(W)){for(var F=0;F<W.length;F++)jY(y,W[F],V,w,t);return null}V=shz(V);return sH(y)?y.listenOnce(W,V,_.VK(w)?!!w.capture:!!w,t):AX2(y,W,V,!0,w,t)};
_.Ys=function(y,W,V,w,t){if(Array.isArray(W))for(var F=0;F<W.length;F++)_.Ys(y,W[F],V,w,t);else w=_.VK(w)?!!w.capture:!!w,V=shz(V),sH(y)?y.unlisten(W,V,w,t):y&&(y=AP(y))&&(W=y.getListener(W,V,w,t))&&$c(W)};
$c=function(y){if(typeof y==="number"||!y||y.removed)return!1;var W=y.src;if(sH(W))return DlQ(W.eventTargetListeners_,y);var V=y.type,w=y.proxy;W.removeEventListener?W.removeEventListener(V,w,y.capture):W.detachEvent?W.detachEvent(B$2(V),w):W.addListener&&W.removeListener&&W.removeListener(w);kC2--;(V=AP(W))?(DlQ(V,y),V.typeCount_==0&&(V.src=null,W[lBm]=null)):uyr(y);return!0};
R8s=function(y,W,V,w,t){V=shz(V);w=!!w;return sH(y)?y.getListener(W,V,w,t):y?(y=AP(y))?y.getListener(W,V,w,t):null:null};
B$2=function(y){return y in xli?xli[y]:xli[y]="on"+y};
JXf=function(y,W){if(y.removed)y=!0;else{W=new _.ks(W,this);var V=y.listener,w=y.handler||y.src;y.callOnce&&$c(y);y=V.call(w,W)}return y};
AP=function(y){y=y[lBm];return y instanceof MR?y:null};
jhi="__closure_events_fn_"+(Math.random()*1E9>>>0);shz=function(y){if(typeof y==="function")return y;y[jhi]||(y[jhi]=function(W){return y.handleEvent(W)});
return y[jhi]};_.Bg=function(){_.Ru.call(this);this.eventTargetListeners_=new MR(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.pF(_.Bg,_.Ru);_.Bg.prototype[Mms]=!0;_.E=_.Bg.prototype;_.E.setParentEventTarget=function(y){this.parentEventTarget_=y};
_.E.addEventListener=function(y,W,V,w){_.XZ(this,y,W,V,w)};
_.E.removeEventListener=function(y,W,V,w){_.Ys(this,y,W,V,w)};
_.E.dispatchEvent=function(y){var W,V=this.parentEventTarget_;if(V)for(W=[];V;V=V.parentEventTarget_)W.push(V);V=this.actualEventTarget_;var w=y.type||y;if(typeof y==="string")y=new _.xs(y,V);else if(y instanceof _.xs)y.target=y.target||V;else{var t=y;y=new _.xs(w,V);_.Gc.extend(y,t)}t=!0;var F;if(W)for(F=W.length-1;!y.propagationStopped_&&F>=0;F--){var I=y.currentTarget=W[F];t=$lK(I,w,!0,y)&&t}y.propagationStopped_||(I=y.currentTarget=V,t=$lK(I,w,!0,y)&&t,y.propagationStopped_||(t=$lK(I,w,!1,y)&&
t));if(W)for(F=0;!y.propagationStopped_&&F<W.length;F++)I=y.currentTarget=W[F],t=$lK(I,w,!1,y)&&t;return t};
_.E.disposeInternal=function(){_.Bg.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.E.listen=function(y,W,V,w){return this.eventTargetListeners_.add(String(y),W,!1,V,w)};
_.E.listenOnce=function(y,W,V,w){return this.eventTargetListeners_.add(String(y),W,!0,V,w)};
_.E.unlisten=function(y,W,V,w){return this.eventTargetListeners_.remove(String(y),W,V,w)};
_.E.removeAllListeners=function(y){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(y):0};
var $lK=function(y,W,V,w){W=y.eventTargetListeners_.listeners[String(W)];if(!W)return!0;W=W.concat();for(var t=!0,F=0;F<W.length;++F){var I=W[F];if(I&&!I.removed&&I.capture==V){var P=I.listener,C=I.handler||I.src;I.callOnce&&DlQ(y.eventTargetListeners_,I);t=P.call(C,w)!==!1&&t}}return t&&!w.defaultPrevented};
_.Bg.prototype.getListener=function(y,W,V,w){return this.eventTargetListeners_.getListener(String(y),W,V,w)};
_.Bg.prototype.hasListener=function(y,W){return this.eventTargetListeners_.hasListener(y!==void 0?String(y):void 0,W)};var JP=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(y){return y&&AsyncContext.Snapshot.wrap(y)}:function(y){return y};var nXs=function(y,W){this.create_=y;this.reset_=W;this.occupants_=0;this.JSC$9683_head_=null};
nXs.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var y=this.JSC$9683_head_;this.JSC$9683_head_=y.next;y.next=null}else y=this.create_();return y};
nXs.prototype.put=function(y){this.reset_(y);this.occupants_<100&&(this.occupants_++,y.next=this.JSC$9683_head_,this.JSC$9683_head_=y)};var HJz=function(){this.workTail_=this.workHead_=null};
HJz.prototype.add=function(y,W){var V=SFt.get();V.set(y,W);this.workTail_?this.workTail_.next=V:this.workHead_=V;this.workTail_=V};
HJz.prototype.remove=function(){var y=null;this.workHead_&&(y=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),y.next=null);return y};
var SFt=new nXs(function(){return new X7f},function(y){return y.reset()}),X7f=function(){this.next=this.scope=this.fn=null};
X7f.prototype.set=function(y,W){this.fn=y;this.scope=W;this.next=null};
X7f.prototype.reset=function(){this.next=this.scope=this.fn=null};var aBf,DVa,udy,GCJ;DVa=!1;udy=new HJz;_.Ry=function(y,W){aBf||GCJ();DVa||(aBf(),DVa=!0);udy.add(y,W)};
GCJ=function(){var y=Promise.resolve(void 0);aBf=function(){y.then(l7u)}};var rXs=function(y){y.prototype.$goog_Thenable=!0},bJK=function(y){if(!y)return!1;
try{return!!y.$goog_Thenable}catch(W){return!1}};var QhE,ZJr,yUR,VDi,w3r,tDi,ISJ,CjJ,LbE,vYK,v8y;_.qN=function(y,W){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(y!=_.A$)try{var V=this;y.call(W,function(w){V.resolve_(2,w)},function(w){V.resolve_(3,w)})}catch(w){this.resolve_(3,w)}};
QhE=function(){this.next=this.context=this.JSC$9694_onRejected=this.JSC$9694_onFulfilled=this.child=null;this.always=!1};
QhE.prototype.reset=function(){this.context=this.JSC$9694_onRejected=this.JSC$9694_onFulfilled=this.child=null;this.always=!1};
ZJr=new nXs(function(){return new QhE},function(y){y.reset()});
yUR=function(y,W,V){var w=ZJr.get();w.JSC$9694_onFulfilled=y;w.JSC$9694_onRejected=W;w.context=V;return w};
_.T2=function(y){if(y instanceof _.qN)return y;var W=new _.qN(_.A$);W.resolve_(2,y);return W};
_.Gb=function(y){return new _.qN(function(W,V){V(y)})};
VDi=function(y,W,V){Wbi(y,W,V,null)||_.Ry(_.D2(W,y))};
_.jI=function(y){return new _.qN(function(W,V){var w=y.length,t=[];if(w)for(var F=function(d,L){w--;t[d]=L;w==0&&W(t)},I=function(d){V(d)},P,C=0;C<y.length;C++)P=y[C],VDi(P,_.D2(F,C),I);
else W(t)})};
w3r=function(y){return new _.qN(function(W){var V=y.length,w=[];if(V)for(var t=function(P,C,d){V--;w[P]=C?{fulfilled:!0,value:d}:{fulfilled:!1,reason:d};V==0&&W(w)},F,I=0;I<y.length;I++)F=y[I],VDi(F,_.D2(t,I,!0),_.D2(t,I,!1));
else W(w)})};
tDi=function(y){return new _.qN(function(W,V){var w=y.length,t=[];if(w)for(var F=function(d){W(d)},I=function(d,L){w--;
t[d]=L;w==0&&V(t)},P,C=0;C<y.length;C++)P=y[C],VDi(P,F,_.D2(I,C));
else W(void 0)})};
_.v5=function(){var y,W,V=new _.qN(function(w,t){y=w;W=t});
return new FbR(V,y,W)};
_.qN.prototype.then=function(y,W,V){return EYI(this,JP(typeof y==="function"?y:null),JP(typeof W==="function"?W:null),V)};
rXs(_.qN);ISJ=function(y,W,V,w){NUQ(y,yUR(W||_.A$,V||null,w))};
_.$s=function(y,W){W=JP(W);W=yUR(W,W);W.always=!0;NUQ(y,W);return y};
_.qN.prototype.finally=function(y){var W=this;y=JP(y);return new Promise(function(V,w){ISJ(W,function(t){y();V(t)},function(t){y();
w(t)})})};
_.qN.prototype.thenCatch=function(y,W){return EYI(this,null,JP(y),W)};
_.qN.prototype.catch=_.qN.prototype.thenCatch;_.qN.prototype.cancel=function(y){if(this.state_==0){var W=new _.Fu(y);_.Ry(function(){gYz(this,W)},this)}};
var gYz=function(y,W){if(y.state_==0)if(y.parent_){var V=y.parent_;if(V.callbackEntries_){for(var w=0,t=null,F=null,I=V.callbackEntries_;I&&(I.always||(w++,I.child==y&&(t=I),!(t&&w>1)));I=I.next)t||(F=I);t&&(V.state_==0&&w==1?gYz(V,W):(F?(w=F,w.next==V.callbackEntriesTail_&&(V.callbackEntriesTail_=w),w.next=w.next.next):PjQ(V),CjJ(V,t,3,W)))}y.parent_=null}else y.resolve_(3,W)},NUQ=function(y,W){y.callbackEntries_||y.state_!=2&&y.state_!=3||OzA(y);
y.callbackEntriesTail_?y.callbackEntriesTail_.next=W:y.callbackEntries_=W;y.callbackEntriesTail_=W},EYI=function(y,W,V,w){var t=yUR(null,null,null);
t.child=new _.qN(function(F,I){t.JSC$9694_onFulfilled=W?function(P){try{var C=W.call(w,P);F(C)}catch(d){I(d)}}:F;
t.JSC$9694_onRejected=V?function(P){try{var C=V.call(w,P);C===void 0&&P instanceof _.Fu?I(P):F(C)}catch(d){I(d)}}:I});
t.child.parent_=y;NUQ(y,t);return t.child};
_.qN.prototype.unblockAndFulfill_=function(y){this.state_=0;this.resolve_(2,y)};
_.qN.prototype.unblockAndReject_=function(y){this.state_=0;this.resolve_(3,y)};
_.qN.prototype.resolve_=function(y,W){this.state_==0&&(this===W&&(y=3,W=new TypeError("Fa")),this.state_=1,Wbi(W,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=W,this.state_=y,this.parent_=null,OzA(this),y!=3||W instanceof _.Fu||vYK(this,W)))};
var Wbi=function(y,W,V,w){if(y instanceof _.qN)return ISJ(y,W,V,w),!0;if(bJK(y))return y.then(W,V,w),!0;if(_.VK(y))try{var t=y.then;if(typeof t==="function")return dGq(y,t,W,V,w),!0}catch(F){return V.call(w,F),!0}return!1},dGq=function(y,W,V,w,t){var F=!1,I=function(C){F||(F=!0,V.call(t,C))},P=function(C){F||(F=!0,w.call(t,C))};
try{W.call(y,I,P)}catch(C){P(C)}},OzA=function(y){y.executing_||(y.executing_=!0,_.Ry(y.executeCallbacks_,y))},PjQ=function(y){var W=null;
y.callbackEntries_&&(W=y.callbackEntries_,y.callbackEntries_=W.next,W.next=null);y.callbackEntries_||(y.callbackEntriesTail_=null);return W};
_.qN.prototype.executeCallbacks_=function(){for(var y;y=PjQ(this);)CjJ(this,y,this.state_,this.result_);this.executing_=!1};
CjJ=function(y,W,V,w){if(V==3&&W.JSC$9694_onRejected&&!W.always)for(;y&&y.hadUnhandledRejection_;y=y.parent_)y.hadUnhandledRejection_=!1;if(W.child)W.child.parent_=null,LbE(W,V,w);else try{W.always?W.JSC$9694_onFulfilled.call(W.context):LbE(W,V,w)}catch(t){v8y.call(null,t)}ZJr.put(W)};
LbE=function(y,W,V){W==2?y.JSC$9694_onFulfilled.call(y.context,V):y.JSC$9694_onRejected&&y.JSC$9694_onRejected.call(y.context,V)};
vYK=function(y,W){y.hadUnhandledRejection_=!0;_.Ry(function(){y.hadUnhandledRejection_&&v8y.call(null,W)})};
v8y=wu;_.Fu=function(y){_.yj.call(this,y)};
_.pF(_.Fu,_.yj);_.Fu.prototype.name="cancel";var FbR=function(y,W,V){this.promise=y;this.resolve=W;this.reject=V};var nw;_.cf=function(y,W){_.Bg.call(this);this.JSC$9706_interval_=y||1;this.timerObject_=W||_.Vj;this.boundTick_=(0,_.jA)(this.tick_,this);this.last_=_.KF()};
_.pF(_.cf,_.Bg);_.E=_.cf.prototype;_.E.enabled=!1;_.E.JSC$9708_timer_=null;_.E.setInterval=function(y){this.JSC$9706_interval_=y;this.JSC$9708_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9708_timer_&&this.stop()};
_.E.tick_=function(){if(this.enabled){var y=_.KF()-this.last_;y>0&&y<this.JSC$9706_interval_*.8?this.JSC$9708_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9706_interval_-y):(this.JSC$9708_timer_&&(this.timerObject_.clearTimeout(this.JSC$9708_timer_),this.JSC$9708_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.E.start=function(){this.enabled=!0;this.JSC$9708_timer_||(this.JSC$9708_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9706_interval_),this.last_=_.KF())};
_.E.stop=function(){this.enabled=!1;this.JSC$9708_timer_&&(this.timerObject_.clearTimeout(this.JSC$9708_timer_),this.JSC$9708_timer_=null)};
_.E.disposeInternal=function(){_.cf.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
nw=function(y,W,V){if(typeof y==="function")V&&(y=(0,_.jA)(y,V));else if(y&&typeof y.handleEvent=="function")y=(0,_.jA)(y.handleEvent,y);else throw Error("Ga");return Number(W)>2147483647?-1:_.Vj.setTimeout(y,W||0)};
_.zCE=function(y){var W=null;return(new _.qN(function(V,w){W=nw(function(){V(void 0)},y);
W==-1&&w(Error("Ha"))})).thenCatch(function(V){_.Vj.clearTimeout(W);
throw V;})};var uz=function(y){_.Ru.call(this);this.streamzLogger=y;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9712_flushTimer=new _.cf(this.flushInterval);this.JSC$9712_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Uf(this,this.JSC$9712_flushTimer)};
_.p(uz,_.Ru);uz.prototype.sendIsolatedPayload=function(y){this.shouldSendIsolatedPayload=y;this.invocationLimit=1};
var cUR=function(y){y.JSC$9712_flushTimer.enabled||y.JSC$9712_flushTimer.start();y.invocationCount++;y.invocationCount>=y.invocationLimit&&y.snapshotAndFlush()};
uz.prototype.snapshotAndFlush=function(){var y=this.metricMap.values();y=[].concat(_.GC(y)).filter(function(W){return W.cellMap.size});
y.length&&this.streamzLogger.flush(y,this.shouldSendIsolatedPayload);eCQ(y);this.invocationCount=0;this.JSC$9712_flushTimer.enabled&&this.JSC$9712_flushTimer.stop()};
uz.prototype.addNewCounter=function(y){var W=_.Ve.apply(1,arguments);this.metricMap.has(y)||this.metricMap.set(y,new T$R(y,W))};
uz.prototype.addNewEventMetric=function(y){var W=_.Ve.apply(1,arguments);this.metricMap.has(y)||this.metricMap.set(y,new mlr(y,W))};
var hC2=function(y,W){return y.disabledMetrics.has(W)?void 0:y.metricMap.get(W)};
uz.prototype.JSC$9712_incrementCounter=function(y){this.JSC$9712_incrementCounterBy(y,1,_.Ve.apply(1,arguments))};
uz.prototype.JSC$9712_incrementCounterBy=function(y,W){var V=_.Ve.apply(2,arguments),w=hC2(this,y);w&&w instanceof T$R&&(w.JSC$9651_incrementCounterBy(W,V),cUR(this))};
uz.prototype.record=function(y,W){var V=_.Ve.apply(2,arguments),w=hC2(this,y);w&&w instanceof mlr&&(w.record(W,V),cUR(this))};
var eCQ=function(y){for(var W=0;W<y.length;W++)y[W].clear()};_.Hg=function(y,W,V){V=V===void 0?{}:V;W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=y;this.metadata=V;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.Hg,Error);_.Hg.prototype.toString=function(){var y="RpcError("+(kId(this.code)||String(this.code))+")";this.message&&(y+=": "+this.message);return y};_.oYi=_.Vj.JSON.parse;_.Xl=_.Vj.JSON.stringify;_.R2=_.Vj.JSON.parse;_.KbE=function(y){switch(y){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 p3i=function(y){switch(y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var izf,fSI=function(){};
_.pF(fSI,_.s8u);fSI.prototype.createInstance=function(){return new XMLHttpRequest};
izf=new fSI;_.ay=function(y){_.Bg.call(this);this.headers=new Map;this.JSC$9721_xmlHttpFactory_=y||null;this.JSC$9721_active_=!1;this.JSC$9721_xhr_=null;this.JSC$9721_lastUri_="";this.JSC$9721_lastErrorCode_=0;this.JSC$9721_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9721_timeoutId_=null;this.responseType_="";this.JSC$9721_withCredentials_=!1};
_.pF(_.ay,_.Bg);var TUQ=/^https?$/i,mGz=["POST","PUT"],MDK=[],$Yj=function(y,W,V,w,t,F,I){var P=new _.ay;MDK.push(P);W&&P.listen("complete",W);P.listenOnce("ready",P.cleanupSend_);F&&(P.timeoutInterval_=Math.max(0,F));I&&(P.JSC$9721_withCredentials_=I);P.send(y,V,w,t)};
_.ay.prototype.cleanupSend_=function(){this.dispose();_.GG(MDK,this)};
_.ay.prototype.send=function(y,W,V,w){if(this.JSC$9721_xhr_)throw Error("Ia`"+this.JSC$9721_lastUri_+"`"+y);W=W?W.toUpperCase():"GET";this.JSC$9721_lastUri_=y;this.JSC$9721_lastError_="";this.JSC$9721_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9721_active_=!0;this.JSC$9721_xhr_=this.createXhr();this.JSC$9721_xhr_.onreadystatechange=JP((0,_.jA)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9721_xhr_.open(W,String(y),!0),this.inOpen_=!1}catch(I){q9I(this,I);return}y=V||"";V=new Map(this.headers);
if(w)if(Object.getPrototypeOf(w)===Object.prototype)for(var t in w)V.set(t,w[t]);else if(typeof w.keys==="function"&&typeof w.get==="function"){t=_.N(w.keys());for(var F=t.next();!F.done;F=t.next())F=F.value,V.set(F,w.get(F))}else throw Error("Ja`"+String(w));w=Array.from(V.keys()).find(function(I){return"content-type"==I.toLowerCase()});
t=_.Vj.FormData&&y instanceof _.Vj.FormData;!_.j4(mGz,W)||w||t||V.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");W=_.N(V);for(w=W.next();!w.done;w=W.next())V=_.N(w.value),w=V.next().value,V=V.next().value,this.JSC$9721_xhr_.setRequestHeader(w,V);this.responseType_&&(this.JSC$9721_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9721_xhr_&&this.JSC$9721_xhr_.withCredentials!==this.JSC$9721_withCredentials_&&(this.JSC$9721_xhr_.withCredentials=this.JSC$9721_withCredentials_);
try{this.JSC$9721_timeoutId_&&(clearTimeout(this.JSC$9721_timeoutId_),this.JSC$9721_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9721_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9721_xhr_.send(y),this.inSend_=!1}catch(I){q9I(this,I)}};
_.ay.prototype.createXhr=function(){return this.JSC$9721_xmlHttpFactory_?this.JSC$9721_xmlHttpFactory_.createInstance():izf.createInstance()};
_.ay.prototype.timeout_=function(){typeof nBR!="undefined"&&this.JSC$9721_xhr_&&(this.JSC$9721_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9721_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var q9I=function(y,W){y.JSC$9721_active_=!1;y.JSC$9721_xhr_&&(y.inAbort_=!0,y.JSC$9721_xhr_.abort(),y.inAbort_=!1);y.JSC$9721_lastError_=W;y.JSC$9721_lastErrorCode_=5;UGs(y);u0q(y)},UGs=function(y){y.errorDispatched_||(y.errorDispatched_=!0,y.dispatchEvent("complete"),y.dispatchEvent("error"))};
_.ay.prototype.abort=function(y){this.JSC$9721_xhr_&&this.JSC$9721_active_&&(this.JSC$9721_active_=!1,this.inAbort_=!0,this.JSC$9721_xhr_.abort(),this.inAbort_=!1,this.JSC$9721_lastErrorCode_=y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),u0q(this))};
_.ay.prototype.disposeInternal=function(){this.JSC$9721_xhr_&&(this.JSC$9721_active_&&(this.JSC$9721_active_=!1,this.inAbort_=!0,this.JSC$9721_xhr_.abort(),this.inAbort_=!1),u0q(this,!0));_.ay.superClass_.disposeInternal.call(this)};
_.ay.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)S9R(this);else this.onReadyStateChangeEntryPoint_()};
_.ay.prototype.onReadyStateChangeEntryPoint_=function(){S9R(this)};
var S9R=function(y){if(y.JSC$9721_active_&&typeof nBR!="undefined")if(y.inSend_&&_.G0(y)==4)setTimeout(y.onReadyStateChange_.bind(y),0);else if(y.dispatchEvent("readystatechange"),y.isComplete()){y.JSC$9721_active_=!1;try{if(y.isSuccess())y.dispatchEvent("complete"),y.dispatchEvent("success");else{y.JSC$9721_lastErrorCode_=6;try{var W=_.G0(y)>2?y.JSC$9721_xhr_.statusText:""}catch(V){W=""}y.JSC$9721_lastError_=W+" ["+y.getStatus()+"]";UGs(y)}}finally{u0q(y)}}},u0q=function(y,W){if(y.JSC$9721_xhr_){y.JSC$9721_timeoutId_&&
(clearTimeout(y.JSC$9721_timeoutId_),y.JSC$9721_timeoutId_=null);
var V=y.JSC$9721_xhr_;y.JSC$9721_xhr_=null;W||y.dispatchEvent("ready");try{V.onreadystatechange=null}catch(w){}}};
_.ay.prototype.isActive=function(){return!!this.JSC$9721_xhr_};
_.ay.prototype.isComplete=function(){return _.G0(this)==4};
_.ay.prototype.isSuccess=function(){var y=this.getStatus(),W;if(!(W=p3i(y))){if(y=y===0)y=lqq(String(this.JSC$9721_lastUri_)),y=!TUQ.test(y);W=y}return W};
_.G0=function(y){return y.JSC$9721_xhr_?y.JSC$9721_xhr_.readyState:0};
_.E=_.ay.prototype;_.E.getStatus=function(){try{return _.G0(this)>2?this.JSC$9721_xhr_.status:-1}catch(y){return-1}};
_.E.getResponseText=function(){try{return this.JSC$9721_xhr_?this.JSC$9721_xhr_.responseText:""}catch(y){return""}};
_.E.getResponse=function(){try{if(!this.JSC$9721_xhr_)return null;if("response"in this.JSC$9721_xhr_)return this.JSC$9721_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9721_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9721_xhr_)return this.JSC$9721_xhr_.mozResponseArrayBuffer}return null}catch(y){return null}};
_.E.getAllResponseHeaders=function(){return this.JSC$9721_xhr_&&_.G0(this)>=2?this.JSC$9721_xhr_.getAllResponseHeaders()||"":""};
_.E.getLastError=function(){return typeof this.JSC$9721_lastError_==="string"?this.JSC$9721_lastError_:String(this.JSC$9721_lastError_)};var Jbn=function(){};
Jbn.prototype.send=function(y,W,V){W=W===void 0?function(){}:W;
V=V===void 0?function(){}:V;
$Yj(y.url,function(w){w=w.target;w.isSuccess()?W(w.getResponseText()):V(w.getStatus())},y.requestType,y.body,y.requestHeaders,y.timeoutMillis,y.withCredentials)};
Jbn.prototype.getTransmissionType=function(){return 1};var DGf=function(y,W){this.oS9=y;this.event=W;this.startTime=SA()},XVt;
DGf.prototype.done=function(){this.oS9.ka(this.event,SA()-this.startTime)};
var rD=function(){pw.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.p(rD,pw);_.bW=function(y,W,V){var w=SA();W=W();y.ka(V,SA()-w);return W};
XVt=function(){rD.apply(this,arguments)};
_.p(XVt,rD);_.E=XVt.prototype;_.E.p6R=function(){};
_.E.nF=function(){};
_.E.ka=function(){};
_.E.logError=function(){};
_.E.yf=function(){};
_.E.rND=function(){};
_.E.loH=function(){};
_.E.tiH=function(){};
var lSA=function(y){rD.call(this);var W=this;this.cD=y;this.TEST_ONLY={bP3:function(){return W.cD},
getExperimentIds:function(){return W.cD.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void W.cD.dispose()})};
_.p(lSA,rD);_.E=lSA.prototype;_.E.update=function(y){this.cD.dispose();this.cD=y};
_.E.nF=function(y){this.cD.nF(y)};
_.E.ka=function(y,W){this.cD.ka(y,W)};
_.E.logError=function(y){this.cD.logError(y)};
_.E.yf=function(){this.cD.yf()};
_.E.rND=function(y){this.cD.rND(y)};
_.E.loH=function(y){this.cD.loH(y)};
_.E.tiH=function(y){this.cD.tiH(y)};
_.E.p6R=function(y){this.cD.p6R(y)};
var xGK=function(y,W){_.Ru.call(this);var V=this;this.callback=y;this.zIx=W;this.ko7=-W;this.addOnDisposeCallback(function(){return void clearTimeout(V.timer)})};
_.p(xGK,_.Ru);var kc6=function(y){if(y.timer===void 0){var W=Math.max(0,y.ko7+y.zIx-SA());y.timer=setTimeout(function(){try{y.callback()}finally{y.ko7=SA(),y.timer=void 0}},W)}},sSE=function(y,W){rD.call(this);
this.metrics=y;this.xT=W};
_.p(sSE,rD);_.E=sSE.prototype;_.E.p6R=function(y){this.metrics.tU3.record(y,this.xT)};
_.E.nF=function(y){this.metrics.eventCount.increment(y,this.xT)};
_.E.ka=function(y,W){this.metrics.gAx.record(W,y,this.xT)};
_.E.logError=function(y){this.metrics.errorCount.increment(y,this.xT)};
_.E.rND=function(y){this.metrics.kbk.increment(y,this.xT)};
_.E.loH=function(y){this.metrics.olW.increment(y,this.xT)};
_.E.tiH=function(y){this.metrics.zOt.increment(y,this.xT)};
var GIR=function(y,W){W=W===void 0?[]:W;var V={xT:y.xT||"_",aVR:y.aVR||[],t2G:y.t2G|0,destinationUrl:y.destinationUrl,disableClearcutCredentialBinding:y.disableClearcutCredentialBinding,yHC:y.yHC||function(){},
wLm:y.wLm||function(F,I){return HGd(F,I,V.yHC,V.destinationUrl,V.disableClearcutCredentialBinding)}},w=V.wLm("50",V.aVR.concat(W));
sSE.call(this,{tU3:new e1s(w),errorCount:new pZE(w),eventCount:new oRq(w),gAx:new KhJ(w),lC3:new h12(w),kbk:new iuR(w),olW:new ffQ(w),zOt:new T36(w)},V.xT);var t=this;this.TEST_ONLY={getExperimentIds:function(){return t.options.aVR.concat(t.rCc).sort(function(F,I){return F-I})}};
this.options=V;this.service=w;this.mz3=!y.wLm;this.flushDebouncer=new xGK(function(){return void t.service.snapshotAndFlush()},V.t2G);
this.addOnDisposeCallback(function(){t.flushDebouncer.dispose();t.mz3&&t.service.dispose()});
(this.rCc=W.slice()).sort(_.Is)};
_.p(GIR,sSE);GIR.prototype.yf=function(){kc6(this.flushDebouncer)};var reL=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(reL,_.fu);_.bZz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(_.bZz,_.fu);var gx=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,0,gx.messageId)};
_.p(gx,_.fu);var AUJ=_.pZz(gx);gx.messageId="bfkj";var a7d=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(a7d,_.fu);var hn4=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(hn4,_.fu);var Y9f=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Y9f,_.fu);var BUm=_.l_(Y9f);_.UT=function(){var y=this;this.promise=new Promise(function(W,V){y.resolve=W;y.reject=V})};_.Ql=function(y){_.Ru.call(this);var W=this;this.nub=Math.floor(Math.random()*200);this.zlC=new Y9f;if("challenge"in y&&AUJ(y.challenge)){var V=_.aX(y.challenge,4,void 0,nq);var w=_.aX(y.challenge,5,void 0,nq);_.aX(y.challenge,7,void 0,nq)&&(this.zlC=BUm(_.aX(y.challenge,7,void 0,nq)))}else V=y.program,w=y.globalName;this.addOnDisposeCallback(function(){var f,U,l;return _.g(function(x){if(x.nextAddress==1)return x.yield(W.zwR,2);f=x.yieldResult;U=f.ccL;(l=U)==null||l();_.B7(x)})});
this.yM=rba(y.szH||{},this.zlC);_.Uf(this,this.yM);var t=new _.UT;this.zwR=t.promise;this.yM.nF("t");var F=this.yM.share(),I=new DGf(F,"t"),P=function(f,U,l,x){if(!W.yM.isDisposed()){var B="k";U?B="h":l&&(B="u");B!=="k"?x!==0&&(W.yM.nF(B),W.yM.ka(B,f)):W.nub<=0?(W.yM.nF(B),W.yM.ka(B,f),W.nub=Math.floor(Math.random()*200)):W.nub--}},C=function(f,U,l,x){Promise.resolve().then(function(){I.done();
F.yf();F.dispose();t.resolve({stL:f,ccL:U,xs3:l,fVT:x})})};
if(!_.Vj[w])throw this.yM.logError(25),Error("Ka");if(!_.Vj[w].a)throw this.yM.logError(26),Error("La");try{var d=_.Vj[w].a;w=[];for(var L=[],z=oVP(this.zlC),c=0;c<z.length;c++)w.push(z[c]),L.push(1);var K=KdP(this.zlC);for(z=0;z<K.length;z++)w.push(K[z]),L.push(2);this.qvH=_.N(d(V,C,!0,y.jKv,P,[w,L],_.aX(this.zlC,5))).next().value;this.xsl=t.promise.then(function(){})}catch(f){throw this.yM.logError(28),f;
}};
_.p(_.Ql,_.Ru);_.Ql.prototype.snapshot=function(y){if(this.isDisposed())throw Error("Ma");this.yM.nF("n");var W=this.yM.share();return this.zwR.then(function(V){var w=V.stL;return new Promise(function(t){var F=new DGf(W,"n");w(function(I){F.done();W.p6R(I.length);W.yf();W.dispose();t(I)},[y.nC,
y.wqD,y.zlq,y.hBa])})})};
_.Ql.prototype.wWH=function(y){this.zwR.then(function(W){var V;(V=W.xs3)==null||V(y)})};
_.Ql.prototype.fym=function(y,W){return this.zwR.then(function(V){var w;return(w=V.fVT)==null?void 0:w(y,W,!1)})};
_.Ql.prototype.iGH=function(){return this.yM.share()};var JUi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(JUi,_.fu);var s0u=_.pZz(JUi);var RCQ=function(){this.promises={};this.eCa=null},jSz=function(){RCQ.instance||(RCQ.instance=new RCQ);
return RCQ.instance},nYs=function(y,W){return $GI(y,_.Da(W,reL,1,nq),_.Da(W,_.bZz,2,nq),_.aX(W,3,void 0,nq))},$GI=function(y,W,V,w){if(!W&&!V)return Promise.resolve();
if(!w)return Wjy(W,V);var t;(t=y.promises)[w]||(t[w]=new Promise(function(F,I){Wjy(W,V).then(function(){y.eCa=w;F()},function(P){delete y.promises[w];
I(P)})}));
return y.promises[w]};var HzA=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(HzA,_.fu);var X3f=function(y,W){return _.Pm(y,1,W)},aSi=function(y,W){return _.Pm(y,2,W)};var ZC=function(y){_.Ru.call(this);var W=this;this.options=y;this.gVl=new _.UT;this.xsl=this.gVl.promise;this.blk=new _.UT;this.ngG=1;this.oTH=new _.UT;this.bCD=[];this.woC=y.woC||function(){};
this.bT0=new lSA(rba(y.szH||{}));Gcs(this,y.jG,y.naE,y.a9Y,y.tRP,Object.assign({},rU2,y.yiO||{}));this.addOnDisposeCallback(function(){return void bzq(W)})};
_.p(ZC,_.Ru);ZC.prototype.snapshot=function(y){var W=this;return _.g(function(V){switch(V.nextAddress){case 1:if(W.isDisposed())throw Error("Ma");if(W.f7||W.jw4){V.jumpTo(2);break}return V.yield(W.blk.promise,2);case 2:if(!W.f7){V.jumpTo(4);break}return V.yield(W.f7.snapshot(y),5);case 5:return V.return(V.yieldResult);case 4:throw W.jw4;}})};
var QS2=function(y){var W;return _.g(function(V){if(y.isDisposed())throw Error("Ma");(W=y.eo)!=null&&(W.endTimeMs=0,W.resolver(1));return V.yield(y.oTH.promise,0)})},bzq=function(y){y.jw4=Error("Oa");
y.blk.resolve();pVb(y.gVl.promise);y.gVl.reject(Error("Oa"));y.bT0.dispose();Promise.all(y.bCD).then(function(){var V;return _.g(function(w){(V=y.f7)==null||V.dispose();y.f7=void 0;_.B7(w)})});
y.bCD=[];var W;(W=y.eo)!=null&&(W.endTimeMs=0,W.resolver(1));pVb(y.oTH.promise);y.oTH.reject(Error("Oa"))};
ZC.prototype.wWH=function(y){var W,V;(W=this.f7)==null||(V=W.wWH)==null||V.call(W,y)};
ZC.prototype.fym=function(y,W){var V,w,t;return(t=(V=this.f7)==null?void 0:(w=V.fym)==null?void 0:w.call(V,y,W))!=null?t:Promise.resolve()};
var Zzr=function(y,W){var V=y.woC;y.woC=function(){V();W()}},yGs=function(y,W){y.isDisposed()||(y.f7=W,y.bT0.update(W.iGH()),y.blk.resolve(),y.gVl.resolve(void 0),y.woC())};
ZC.prototype.handleError=function(y){if(!this.isDisposed()){this.jw4=y;this.blk.resolve();var W,V;(V=(W=this.options).nz3)==null||V.call(W,y)}};
var W1A=function(y,W){W&&(Promise.all(y.bCD).then(function(){return void W.dispose()}),y.bCD=[])},yx=function(y,W){y.ngG=W;
var V,w;(w=(V=y.options).rC3)==null||w.call(V,W)},VAf=function(y){y.isDisposed()||(y.oTH.resolve(),y.oTH=new _.UT)},Gcs=function(y,W,V,w,t,F){w=w===void 0?jSz():w;
t=t===void 0?Promise.resolve(void 0):t;var I,P,C,d,L,z,c,K,f,U,l,x;_.g(function(B){switch(B.nextAddress){case 1:return B.yield(0,3);case 3:P=null;if(!I){B.jumpTo(6);break}yx(y,7);_.l7(B,7);return B.yield(AG(I.snapshot({}),F.x1O,function(){return Promise.resolve("E:CTO")}),9);
case 9:P=B.yieldResult;_.E6(B,6);break;case 7:_.YX(B),P="E:UCE";case 6:C=void 0,d=I?F.pox:F.nRy,L=new m1(d,F.miv,F.aJW,F.eiy),z=1;case 10:if(!(z<=F.maxAttempts)){B.jumpTo(12);break}if(z===1){B.jumpTo(13);break}yx(y,0);y.eo=new wMf(L.getValue(),F.spO,F.m3W);return B.yield(y.eo.promise,14);case 14:c=B.yieldResult,y.eo=void 0,c===1?(z=1,L.reset()):dlz(L);case 13:_.l7(B,15);K=void 0;if(V){K=V;B.jumpTo(17);break}yx(y,5);f=w.eCa;return B.yield(AG(tAs(W,f,P),F.nAL,function(){return Promise.reject(Error("Pa"))}),
18);
case 18:K=B.yieldResult;case 17:return yx(y,3),B.yield(AG(nYs(w,K),F.bTW,function(){return Promise.reject(Error("Qa"))}),19);
case 19:return yx(y,8),B.yield(t,20);case 20:return U=new _.Ql({challenge:K,szH:y.options.szH,jKv:y.options.jKv}),B.yield(AG(U.xsl,F.icY,function(){return Promise.reject(Error("Ra"))}),21);
case 21:C=U;B.jumpTo(12);break;case 15:l=_.YX(B),y.handleError(l),VAf(y);case 11:z++;B.jumpTo(10);break;case 12:if(y.isDisposed()){B.jumpTo(5);break}C&&(V=void 0,W1A(y,I),I=C,yGs(y,C),VAf(y));yx(y,2);y.eo=new wMf(F.zDP,F.spO,F.m3W);return B.yield(y.eo.promise,22);case 22:y.eo=void 0;if(y.isDisposed()){B.jumpTo(5);break}B.jumpTo(3);break;case 5:(x=I)==null||x.dispose(),_.B7(B)}})};
ZC.prototype.iGH=function(){return this.bT0.share()};
var rU2={zDP:432E5,spO:3E5,m3W:10,x1O:1E4,nAL:3E4,bTW:3E4,icY:6E4,nRy:1E3,pox:6E4,miv:6E5,aJW:.25,eiy:2,maxAttempts:10},wMf=function(y,W,V){var w=this;this.endTimeMs=Date.now()+y;this.promise=new Promise(function(F){w.resolver=F});
var t=function(){var F=w.endTimeMs-Date.now();F<=V?w.resolver(0):setTimeout(t,Math.min(F,W))};
t()};var F1E,tX4=(F1E=Math.imul)!=null?F1E:function(y,W){return y*W|0},Yu=[196,
200,224,18],WY=function(y,W,V){V=V===void 0?[]:V;this.maxItems=y;this.yS=W===void 0?0:W;this.yk=V},Euq=function(y){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!W)return new WY(y);var V=W.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new WY(y);W=V.slice(1);W.length===1&&W[0]===""&&(W=[]);V=Number(V[0]);return isNaN(V)||V<0||V>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new WY(y)):new WY(y,V,W)};
WY.prototype.serialize=function(){return String(this.yS)+","+this.yk.join()};
WY.prototype.insert=function(y,W){var V=void 0;if(this.yk[this.yS]!==y){var w=this.yk.indexOf(y);w!==-1?(this.yk.splice(w,1),w<this.yS&&this.yS--,this.yk.splice(this.yS,0,y)):(V=this.yk[this.yS],this.yk[this.yS]=y)}this.yS=(this.yS+1)%this.maxItems;y=VXP("iU5q-!O9@$",this.serialize());V&&y&&W(V);return y};
var NJA=function(y,W){this.nZl=W;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(w){V=!1}V&&(this.index=Euq(y))},IaJ=function(y,W,V,w,t){var F=y.index?_.bW(y.nZl,function(){return TiP(y.index,iBL(W),V,w,t)},"W"):"u";
y.nZl.tiH(F)},gus=function(y,W,V){var w=_.N(y.index?_.bW(y.nZl,function(){return mOd(iBL(W),V)},"R"):["u"]),t=w.next().value;
w=w.next().value;y.nZl.loH(t);return w};var Pzf={toString:function(y){var W=[],V=0;y-=-2147483648;W[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(y%52);for(y=Math.floor(y/52);y>0;)W[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(y%62),y=Math.floor(y/62);return W.join("")}};var vui=function(y){y=Czz(y);for(var W=2654435769,V=2654435769,w=314159265,t=y.length,F=t,I=0,P=function(){W-=V;W-=w;W^=w>>>13;V-=w;V-=W;V^=W<<8;w-=W;w-=V;w^=V>>>13;W-=V;W-=w;W^=w>>>12;V-=w;V-=W;V^=W<<16;w-=W;w-=V;w^=V>>>5;W-=V;W-=w;W^=w>>>3;V-=w;V-=W;V^=W<<10;w-=W;w-=V;w^=V>>>15};F>=12;F-=12,I+=12)W+=Oaq(y,I),V+=Oaq(y,I+4),w+=Oaq(y,I+8),P();
w+=t;switch(F){case 11:w+=y[I+10]<<24;case 10:w+=y[I+9]<<16;case 9:w+=y[I+8]<<8;case 8:V+=y[I+7]<<24;case 7:V+=y[I+6]<<16;case 6:V+=y[I+5]<<8;case 5:V+=y[I+4];case 4:W+=y[I+3]<<24;case 3:W+=y[I+2]<<16;case 2:W+=y[I+1]<<8;case 1:W+=y[I]}P();return Pzf.toString(w)},Czz=function(y){for(var W=[],V=0;V<y.length;V++)W.push(y.charCodeAt(V));
return W},Oaq=function(y,W){return y[W]+(y[W+1]<<8)+(y[W+2]<<16)+(y[W+3]<<24)};var dRK,Vx=function(y){_.Ru.call(this);this.k0=y;this.rXL=new _.UT;this[dRK]=this.dispose};
_.p(Vx,_.Ru);var L1R=function(y,W){var V=setTimeout(function(){y.rXL.resolve()},W);
y.addOnDisposeCallback(function(){return void clearTimeout(V)})};
Vx.prototype.oyl=function(y,W){var V=this.ls(y);W==null||W(V);return _.bW(this.k0,function(){return _.Gj(V,2)},this.iLD)};
var zpA=function(y,W,V,w){return _.bW(y.k0,function(){return V?y.oyl(W,w):y.ls(W,w)},y.lik)};
dRK=Symbol.dispose;var cGi=function(y,W,V,w){Vx.call(this,y);this.snV=W;this.lCO=V;this.lik="m";this.iLD="x";this.ogU=0;L1R(this,w)};
_.p(cGi,Vx);cGi.prototype.ls=function(y,W){var V=this;this.k0.nF(this.lik);++this.ogU>=this.lCO&&this.rXL.resolve();var w=y();y=_.bW(this.k0,function(){return V.snV(w)},"C");
if(y===void 0)throw new oy(17,"YNJ:Undefined");if(!(y instanceof Uint8Array))throw new oy(18,"ODM:Invalid");W==null||W(y);return y};
var epz=function(y,W,V){Vx.call(this,y);this.jfW=W;this.lik="f";this.iLD="z";L1R(this,V)};
_.p(epz,Vx);epz.prototype.ls=function(){return this.jfW};
var hpf=function(y,W,V){Vx.call(this,y);this.k96=W;this.lik="w";this.iLD="z";L1R(this,V)};
_.p(hpf,Vx);hpf.prototype.ls=function(){var y=this;return _.bW(this.k0,function(){return _.Cq(y.k96)},"d")};
hpf.prototype.oyl=function(){return this.k96};
var ouJ=function(y,W){Vx.call(this,y);this.error=W;this.lik="e";this.iLD="y"};
_.p(ouJ,Vx);var K1Q=function(y,W){var V=(W(y.error.message)+":"+W(y.error.stack)).substring(0,2048);W=V.length+1;V=MXL(V);var w=new Uint8Array(4+V.length);w.set([42,W&127|128,W>>7,y.error.code]);w.set(V,4);return w};
ouJ.prototype.ls=function(){if(this.b5J)return this.b5J;this.b5J=K1Q(this,function(y){return"_"+vui(y)});
return K1Q(this,function(y){return y})};
var pM2=function(y,W,V){Vx.call(this,y);this.qMT=W;this.clientState=V;this.lik="S";this.iLD="q"};
_.p(pM2,Vx);pM2.prototype.ls=function(){var y=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],V=W.concat([this.qMT&255,this.clientState],[y>>24&255,y>>16&255,y>>8&255,y&255]);y=new Uint8Array(2+V.length);y[0]=34;y[1]=V.length;y.set(V,2);V=y.subarray(2);for(var w=W=W.length;w<V.length;++w)V[w]^=V[w%W];this.k0.rND(this.clientState);return y};var iam={aNP:3E4,rcX:2E4},wF=function(y){_.Ru.call(this);var W=this;this.c6k=new _.UT;this.lUC=0;this.eG=void 0;this.state=2;this.vm=y.vm;this.jG=y.jG;this.yiO=Object.assign({},iam,y.yiO||{});this.ev=y.vm.iGH();var V;this.onError=(V=y.onError)!=null?V:function(){};
this.kq8=y.kq8||!1;if(faA(y)){var w=this.vm;this.yeu=function(){return QS2(w).catch(function(I){I=W.reportError(new oy(W.cW?20:32,"TRG:Disposed",I));W.eG=I;var P;(P=W.cW)==null||P.dispose();W.cW=void 0;W.c6k.reject(I)})};
Zzr(w,function(){return void TJR(W)});
w.ngG===2&&TJR(this)}else this.yeu=y.kh3,TJR(this);var t=this.ev.share();t.nF("o");var F=new DGf(t,"o");this.c6k.promise.then(function(){F.done();t.yf();t.dispose()},function(){return void t.dispose()});
this.addOnDisposeCallback(function(){W.cW?(W.cW.dispose(),W.cW=void 0):W.eG?W.ev.yf():(W.eG=W.reportError(new oy(32,"TNP:Disposed")),W.ev.yf(),W.c6k.reject(W.eG))});
_.Uf(this,this.ev)};
_.p(wF,_.Ru);wF.prototype.zT4=function(){return this.c6k.promise};
var mRm=function(y,W){if(!(W instanceof oy))if(W instanceof _.Hg){var V=Error(W.toString());V.stack=W.stack;W=new oy(11,"EBH:Error",V)}else W=new oy(12,"BSO:Unknown",W);return y.reportError(W)},TJR=function(y){var W,V,w,t,F,I,P,C,d,L,z,c,K,f,U;
return _.g(function(l){switch(l.nextAddress){case 1:W=void 0;y.lUC++;V=new _.UT;y.vm instanceof ZC&&y.vm.bCD.push(V.promise);if(!y.kq8){l.jumpTo(2);break}w=new _.UT;setTimeout(function(){return void w.resolve()});
return l.yield(w.promise,2);case 2:return t=y.ev.share(),_.l7(l,4,5),y.state=5,F={},I=[],l.yield(AG(y.vm.snapshot({nC:F,zlq:I}),y.yiO.rcX,function(){return Promise.reject(new oy(15,"MDA:Timeout"))}),7);
case 7:P=l.yieldResult;if(y.isDisposed())throw new oy(y.cW?20:32,"MDA:Disposed");C=I[0];y.state=6;return l.yield(AG(MAi(y.jG,P),y.yiO.aNP,function(){return Promise.reject(new oy(10,"BWB:Timeout"))}),8);
case 8:d=l.yieldResult;if(y.isDisposed())throw new oy(y.cW?20:32,"BWB:Disposed");y.state=7;W=_.bW(t,function(){var B=qff(y,d,V,C);B.rXL.promise.then(function(){return void y.yeu()});
return B},"i");
case 5:_.kX(l);t.dispose();_.AX(l,6);break;case 4:L=_.YX(l);(z=W)==null||z.dispose();if(!y.eG){c=mRm(y,L);V.resolve();var x;if(x=y.vm instanceof ZC&&y.lUC<2)a:if(L instanceof oy)x=L.code!==32&&L.code!==20&&L.code!==10;else{if(L instanceof _.Hg)switch(L.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return K=(1+Math.random()*.25)*(y.cW?6E4:1E3),f=setTimeout(function(){return void y.yeu()},K),y.addOnDisposeCallback(function(){return void clearTimeout(f)}),l.return();
y.eG=c}t.logError(y.cW?13:14);y.c6k.reject(y.eG);return l.return();case 6:y.state=8,y.lUC=0,(U=y.cW)==null||U.dispose(),y.cW=W,y.c6k.resolve(),_.B7(l)}})},qff=function(y,W,V,w){var t=PAb(W,2)*1E3;
if(t<=0)throw new oy(31,"TTM:Invalid");if(_.aX(W,4))return new hpf(y.ev,_.aX(W,4),t);if(!PAb(W,3))return new epz(y.ev,Xjn(_.Ye(W,1)),t);if(!w)throw new oy(4,"PMD:Undefined");w=w(Xjn(_.Ye(W,1)));if(!(w instanceof Function))throw new oy(16,"APF:Failed");y.w1c=Math.floor((Date.now()+t)/1E3);y=new cGi(y.ev,w,PAb(W,3),t);y.addOnDisposeCallback(function(){return void V.resolve()});
return y};
wF.prototype.ls=function(y){return URz(this,Object.assign({},y),!1)};
wF.prototype.oyl=function(y){return URz(this,Object.assign({},y),!0)};
wF.prototype.lF4=function(y){if(y>150)return!1;try{return this.cache=new NJA(y,this.ev),!0}catch(W){return this.reportError(new oy(22,"GBJ:init",W)),!1}};
wF.prototype.reportError=function(y){this.ev.logError(y.code);this.onError(y);return y};
var uoz=function(y,W){W=W instanceof oy?W:new oy(5,"TVD:error",W);return y.reportError(W)},URz=function(y,W,V){try{if(y.isDisposed())throw new oy(21,"BNT:disposed");
if(!y.cW&&y.eG)throw y.eG;var w,t;return(t=(w=SfK(y,W,V))!=null?w:DRz(y,W,V))!=null?t:laf(y,W,V)}catch(F){if(!W.xt8)throw uoz(y,F);return xRf(y,V,F)}},SfK=function(y,W,V){var w;
return(w=y.cW)==null?void 0:zpA(w,function(){return kkE(y,W)},V,function(t){var F;
if(y.cW instanceof cGi&&((F=W.kO)==null?0:F.yaE))try{var I;(I=y.cache)==null||IaJ(I,kkE(y,W),t,W.kO.d4l,y.w1c-120)}catch(P){y.reportError(new oy(24,"ELX:write",P))}})},DRz=function(y,W,V){var w;
if((w=W.kO)!=null&&w.gRz)try{var t,F=(t=y.cache)==null?void 0:gus(t,kkE(y,W),W.kO.d4l);return F?V?_.bW(y.ev,function(){return _.Gj(F,2)},"a"):F:void 0}catch(I){y.reportError(new oy(23,"RXO:read",I))}},laf=function(y,W,V){var w={stack:[],
error:void 0,hasError:!1};try{if(!W.a8u)throw new oy(29,"SDF:notready");return zpA(b4d(w,new pM2(y.ev,0,y.state)),function(){return kkE(y,W)},V)}catch(t){w.error=t,w.hasError=!0}finally{QkG(w)}},xRf=function(y,W,V){var w={stack:[],
error:void 0,hasError:!1};try{var t=uoz(y,V);return zpA(b4d(w,new ouJ(y.ev,t)),function(){return[]},W)}catch(F){w.error=F,w.hasError=!0}finally{QkG(w)}},kkE=function(y,W){return W.knC?W.knC:W.nC?_.bW(y.ev,function(){return W.knC=MXL(W.nC)},"c"):[]},faA=function(y){return X6(function(W){if(!ho(W))return!1;
for(var V=_.N(Object.entries(y)),w=V.next();!w.done;w=V.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;if(!(w in W)){if(t.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!t(W[w]))return!1}return!0})}({vm:function(y){return X6(function(W){return W instanceof y})}(ZC)},"");var sus=function(){var y=_.Tw();this.JSC$9841_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",pa("cookie_enabled"),pa("cookie_3p_enabled"),_.fa("browser"))};
sus.prototype.increment=function(y,W,V){this.JSC$9841_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",y,W,V)};
var Vwb=function(){var y=_.Tw();this.JSC$9865_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",iz("tick"),pa("from_st_cookie"))};
Vwb.prototype.increment=function(y,W){this.JSC$9865_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",y,W)};
var AG6=function(){var y=_.Tw();this.JSC$9871_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.fa("status"))};
AG6.prototype.increment=function(y){this.JSC$9871_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",y)};
var YfA=function(){var y=_.Tw();this.JSC$9874_streamzService=y;y.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.fa("stage"),pa("is_using_ytd_player"),pa("has_expandable_tiles"))};
YfA.prototype.increment=function(y,W,V){this.JSC$9874_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",y,W,V)};
var BJq=function(){var y=_.Tw();this.JSC$9877_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/response_signature",_.fa("check_status"))};
BJq.prototype.increment=function(y){this.JSC$9877_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/web/response_signature",y)};
var JG2=function(){var y=_.Tw();this.JSC$9880_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.fa("sig"),iz("de"))};
JG2.prototype.increment=function(y,W){this.JSC$9880_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/web/e_sig_log",y,W)};
var RpQ=function(){var y=_.Tw();this.JSC$9883_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.fa("sig"),iz("de"))};
RpQ.prototype.increment=function(y,W){this.JSC$9883_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/web/e_sig_en",y,W)};
_.juf=function(){var y=_.Tw();this.JSC$9886_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.fa("action"))};
_.juf.prototype.increment=function(y){this.JSC$9886_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/web/enforcement_intent",y)};var t0=window;var $RA=(new Date).getTime();_.Gc.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Gc.createSet("action","cite","data","formaction","href","manifest","poster","src");var nuI=function(y){this.servicePromise_=y;y.then((0,_.jA)(function(){},this),function(){},this)},Ha2=function(y,W,V){y.servicePromise_.then(function(w){var t=w[W];
if(!t)throw Error("Sa`"+W);return t.apply(w,V)})},Gkr=function(y,W,V){for(var w=Array(arguments.length-2),t=2;t<arguments.length;t++)w[t-2]=arguments[t];
t=XMA(y,W).then(function(F){return F.apply(null,w)},function(F){F=Error("Ta`"+W+"`"+y,{cause:F});
delete aa2[W];return _.Gb(F)});
return new nuI(t)},aa2={},XMA=function(y,W){var V=aa2[W];
if(V)return V;V=(V=_.ts(W))?_.T2(V):(new _.qN(function(w,t){var F=(new jd(document)).createElement("SCRIPT");F.async=!0;_.zC(F,_.jh(BmK(y)));F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||w()};
F.onerror=function(I){t(Error("Ua`"+W+"`"+y,{cause:I}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(F)})).then(function(){var w=_.ts(W);
if(!w)throw Error("Va`"+W+"`"+y);return w});
return aa2[W]=V};var rGJ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},QuK=function(){var y=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=q14(function(){return _.g(function(W){if(W.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?W.return(Promise.resolve()):W.yield(baf(y),2);y.rsaForList.length>
0&&document.addEventListener("click",y.requestAccessForHelpPanel);_.B7(W)})});
this.requestAccessForHelpPanel=function(){if(!(y.rsaForPromises.length>0)){for(var W=_.N(y.rsaForList),V=W.next();!V.done;V=W.next()){V=V.value;try{y.rsaForPromises.push(document.requestStorageAccessFor(V))}catch(w){}}Promise.all(y.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){y.reset()})}}};
QuK.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var baf=function(y){var W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:W=_.N(Object.values(rGJ)),V=W.next();case 2:if(V.done){F.jumpTo(0);break}w=V.value;_.l7(F,5);return F.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:w}),7);case 7:t=F.yieldResult;t.state!=="granted"&&y.rsaForList.push(w);_.E6(F,3);break;case 5:_.YX(F);F.jumpTo(0);break;case 3:V=W.next(),F.jumpTo(2)}})};(new QuK).initialize();var Zam=function(y){this.JSC$9900_loader_=y};
Zam.prototype.startHelp=function(y){Ha2(this.JSC$9900_loader_,"startHelp",arguments)};
Zam.prototype.JSC$9902_loadChatSupport=function(y){Ha2(this.JSC$9900_loader_,"loadChatSupport",arguments)};
var WT6=function(y,W){W=W||{};y=Gkr(yoq,"help.service.Lazy.create",y,{apiKey:W.apiKey||W.apiKey,asxUiUri:W.asxUiUri||W.asxUiUri,environment:W.environment||W.environment,flow:W.flow||W.flow,frdProductData:W.frdProductData||W.frdProductData,frdProductDataSerializedJspb:W.frdProductDataSerializedJspb||W.frdProductDataSerializedJspb,helpCenterPath:W.helpCenterPath||W.helpCenterPath,locale:W.locale||W.locale||"en-US".replace(/-/g,"_"),nonce:W.nonce||W.nonce,productData:W.productData||W.productData,receiverUri:W.receiverUri||
W.receiverUri,renderApiUri:W.renderApiUri||W.renderApiUri,theme:W.theme||W.theme,window:W.window||W.window});return new Zam(y)},yoq=new QT(EnP,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var VH2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(VH2,_.fu);var w1f=_.l_(VH2);_.tH6=new function(y,W,V,w){this.configType=y;this.flagName=V;this.defaultValue=w;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 EdA=function(){this.retriever=_.hs().resolve(FTq)};uUa(Node);uUa(Element);var NfA=uUa(HTMLElement);uUa(SVGElement);var IZR,gdq,NY,POq;IZR=function(y){return typeof y.className=="string"?y.className:y.getAttribute&&y.getAttribute("class")||""};
gdq=function(y){return y.classList?y.classList:IZR(y).match(/\S+/g)||[]};
_.FJ=function(y,W){typeof y.className=="string"?y.className=W:y.setAttribute&&y.setAttribute("class",W)};
_.EQ=function(y,W){return y.classList?y.classList.contains(W):_.j4(gdq(y),W)};
_.el=function(y,W){if(y.classList)y.classList.add(W);else if(!_.EQ(y,W)){var V=IZR(y);_.FJ(y,V+(V.length>0?" "+W:W))}};
NY=function(y,W){if(y.classList)Array.prototype.forEach.call(W,function(t){_.el(y,t)});
else{var V={};Array.prototype.forEach.call(gdq(y),function(t){V[t]=!0});
Array.prototype.forEach.call(W,function(t){V[t]=!0});
W="";for(var w in V)W+=W.length>0?" "+w:w;_.FJ(y,W)}};
_.zP=function(y,W){y.classList?y.classList.remove(W):_.EQ(y,W)&&_.FJ(y,Array.prototype.filter.call(gdq(y),function(V){return V!=W}).join(" "))};
POq=function(y,W){y.classList?Array.prototype.forEach.call(W,function(V){_.zP(y,V)}):_.FJ(y,Array.prototype.filter.call(gdq(y),function(V){return!_.j4(W,V)}).join(" "))};var COK=function(y){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=y.document},d1J=function(y,W){ObI(y);
var V=document.createElement("div"),w;(w=W.parentNode)==null||w.insertBefore(V,W);V.tabIndex=0;V.id="fc-focus-trap-pre-div";V=document.createElement("div");var t;(t=W.parentNode)==null||t.insertBefore(V,W.nextSibling);V.tabIndex=0;V.id="fc-focus-trap-post-div";var F=vdR(y,W),I=vdR(y,W,!0);F&&I&&(y.focusChangeHandler=function(){var P=y.document.activeElement;if(P)if(_.wf(W,P))y.previouslyFocusedElement=P;else if(P===y.document.activeElement)switch(y.previouslyFocusedElement){case F:I.focus();y.previouslyFocusedElement=
I;break;default:F.focus(),y.previouslyFocusedElement=F}},y.document.addEventListener("focus",y.focusChangeHandler,!0),y.document.addEventListener("focusin",y.focusChangeHandler))},ObI=function(y){y.focusChangeHandler&&(document.removeEventListener("focus",y.focusChangeHandler,!0),document.removeEventListener("focusin",y.focusChangeHandler),y.focusChangeHandler=null);
var W;(W=document.getElementById("fc-focus-trap-pre-div"))==null||W.remove();var V;(V=document.getElementById("fc-focus-trap-post-div"))==null||V.remove()},LTR=function(y,W,V,w,t){V=V===void 0?!0:V;
var F;t=(F=t===void 0?null:t)!=null?F:vdR(y,W,w===void 0?!1:w);t!==null&&(t.focus(),V&&d1J(y,W))};
COK.prototype.disableButton=function(y,W){W=W===void 0?null:W;y.disabled=!0;W&&_.el(y,W)};
var vdR=function(y,W,V){V=V===void 0?!1:V;if(f8R(W)&&!V)return W;var w=V?[].slice.call(W.children,0).reverse():W.children;w=_.N(w);for(var t=w.next();!t.done;t=w.next())if(t=t.value,NfA(t)&&(t=vdR(y,t,V)))return t;return f8R(W)&&V?W:null};var zwi=function(y){this.originalBodyOverflow="";this.JSC$9926_domHelper=RS(y)};
zwi.prototype.enableScrolling=function(){this.JSC$9926_domHelper.JSC$9250_document_.body.style.overflow=this.originalBodyOverflow};_.pF(_.$u,_.Ru);_.E=_.$u.prototype;_.E.JSC$9929_id_=0;_.E.disposeInternal=function(){_.$u.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9927_listener_;delete this.handler_};
_.E.start=function(y){this.stop();this.JSC$9929_id_=nw(this.callback_,y!==void 0?y:this.JSC$9927_interval_)};
_.E.stop=function(){this.isActive()&&_.Vj.clearTimeout(this.JSC$9929_id_);this.JSC$9929_id_=0};
_.E.fire=function(){this.stop();this.JSC$9929_doAction_()};
_.E.isActive=function(){return this.JSC$9929_id_!=0};
_.E.JSC$9929_doAction_=function(){this.JSC$9929_id_=0;this.JSC$9927_listener_&&this.JSC$9927_listener_.call(this.handler_)};_.eK=function(y){_.Ru.call(this);this.handler_=y;this.JSC$9930_keys_={}};
_.pF(_.eK,_.Ru);var coz=[];_.eK.prototype.listen=function(y,W,V,w){Array.isArray(W)||(W&&(coz[0]=W.toString()),W=coz);for(var t=0;t<W.length;t++){var F=_.XZ(y,W[t],V||this.handleEvent,w||!1,this.handler_||this);if(!F)break;this.JSC$9930_keys_[F.key]=F}return this};
_.eK.prototype.listenOnce=function(y,W,V,w){return ewq(this,y,W,V,w)};
var ewq=function(y,W,V,w,t,F){if(Array.isArray(V))for(var I=0;I<V.length;I++)ewq(y,W,V[I],w,t,F);else{W=jY(W,V,w||y.handleEvent,t,F||y.handler_||y);if(!W)return y;y.JSC$9930_keys_[W.key]=W}return y};
_.eK.prototype.unlisten=function(y,W,V,w,t){if(Array.isArray(W))for(var F=0;F<W.length;F++)this.unlisten(y,W[F],V,w,t);else if(y=R8s(y,W,V||this.handleEvent,_.VK(w)?!!w.capture:!!w,t||this.handler_||this))$c(y),delete this.JSC$9930_keys_[y.key];return this};
_.eK.prototype.removeAll=function(){_.Gc.forEach(this.JSC$9930_keys_,function(y,W){this.JSC$9930_keys_.hasOwnProperty(W)&&$c(y)},this);
this.JSC$9930_keys_={}};
_.eK.prototype.disposeInternal=function(){_.eK.superClass_.disposeInternal.call(this);this.removeAll()};
_.eK.prototype.handleEvent=function(){throw Error("Wa");};var IP=function(){_.Ru.call(this);this.services_={}};
_.pF(IP,_.Ru);IP.prototype.connect=function(y){y&&y()};
IP.prototype.isConnected=function(){return!0};
IP.prototype.registerService=function(y,W,V){this.services_[y]={callback:W,objectPayload:!!V}};
IP.prototype.getService=function(y,W){var V=this.services_[y];return V?V:this.defaultService_?{callback:_.D2(this.defaultService_,y),objectPayload:_.VK(W)}:null};
var hwE=function(y,W){if(W&&typeof y==="string")try{return JSON.parse(y)}catch(V){return null}else if(!W&&typeof y!=="string")return(0,_.Xl)(y);return y};
IP.prototype.disposeInternal=function(){IP.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 gF=function(y,W){this.sequence_=[];this.onCancelFunction_=y;this.defaultScope_=W||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};
gF.prototype.cancel=function(y){if(this.fired_)this.result_ instanceof gF&&this.result_.cancel();else{if(this.parent_){var W=this.parent_;delete this.parent_;y?W.cancel(y):(W.branches_--,W.branches_<=0&&W.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new PY(this))}};
gF.prototype.continue_=function(y,W){this.blocked_=!1;odz(this,y,W)};
var odz=function(y,W,V){y.fired_=!0;y.result_=V;y.hadError_=!W;KTr(y)},ibQ=function(y){if(y.fired_){if(!y.silentlyCanceled_)throw new p1r(y);
y.silentlyCanceled_=!1}};
gF.prototype.callback=function(y){ibQ(this);odz(this,!0,y)};
gF.prototype.errback=function(y){ibQ(this);odz(this,!1,y)};
var fZR=function(y,W,V){CH(y,W,null,V)};
gF.prototype.finally=function(y){var W=this;return Tfs(new Promise(function(V,w){CH(W,function(t){y();V(t)},function(t){y();
w(t)})}))};
var CH=function(y,W,V,w){var t=y.fired_;t||(W===V?W=V=JP(W):(W=JP(W),V=JP(V)));y.sequence_.push([W,V,w]);t&&KTr(y)};
gF.prototype.then=function(y,W,V){var w,t,F=new _.qN(function(I,P){t=I;w=P});
CH(this,t,function(I){I instanceof PY?F.cancel():w(I);return m1Q},this);
return F.then(y,W,V)};
rXs(gF);var MHz=function(y,W){W instanceof gF?fZR(y,(0,_.jA)(W.branch,W)):fZR(y,function(){return W})};
gF.prototype.branch=function(y){var W=new gF;CH(this,W.callback,W.errback,W);y&&(W.parent_=this,this.branches_++);return W};
gF.prototype.isError=function(y){return y instanceof Error};
var qyK=function(y){return gQ(y.sequence_,function(W){return typeof W[1]==="function"})},m1Q={},KTr=function(y){if(y.unhandledErrorId_&&y.fired_&&qyK(y)){var W=y.unhandledErrorId_,V=U1r[W];
V&&(_.Vj.clearTimeout(V.JSC$9947_id_),delete U1r[W]);y.unhandledErrorId_=0}y.parent_&&(y.parent_.branches_--,delete y.parent_);W=y.result_;for(var w=V=!1;y.sequence_.length&&!y.blocked_;){var t=y.sequence_.shift(),F=t[0],I=t[1];t=t[2];if(F=y.hadError_?I:F)try{var P=F.call(t||y.defaultScope_,W);P===m1Q&&(P=void 0);P!==void 0&&(y.hadError_=y.hadError_&&(P==W||y.isError(P)),y.result_=W=P);if(bJK(W)||typeof _.Vj.Promise==="function"&&W instanceof _.Vj.Promise)w=!0,y.blocked_=!0}catch(C){W=C,y.hadError_=
!0,qyK(y)||(V=!0)}}y.result_=W;w&&(P=(0,_.jA)(y.continue_,y,!0),w=(0,_.jA)(y.continue_,y,!1),W instanceof gF?(CH(W,P,w),W.blocking_=!0):W.then(P,w));V&&(W=new uTA(W),U1r[W.JSC$9947_id_]=W,y.unhandledErrorId_=W.JSC$9947_id_)},Tfs=function(y){var W=new gF;
y.then(function(V){W.callback(V)},function(V){W.errback(V)});
return W},p1r=function(){_.yj.call(this)};
_.pF(p1r,_.yj);p1r.prototype.message="Deferred has already fired";p1r.prototype.name="AlreadyCalledError";var PY=function(){_.yj.call(this)};
_.pF(PY,_.yj);PY.prototype.message="Deferred was canceled";PY.prototype.name="CanceledError";var uTA=function(y){this.JSC$9947_id_=_.Vj.setTimeout((0,_.jA)(this.throwError,this),0);this.JSC$9947_error_=y};
uTA.prototype.throwError=function(){delete U1r[this.JSC$9947_id_];throw this.JSC$9947_error_;};
var U1r={};var Sym={1:"NativeMessagingTransport"},D1q=["pu","lru","pru","lpu","ppu"],x1Q=function(){for(var y=10,W=lZA,V=W.length,w="";y-- >0;)w+=W.charAt(Math.floor(Math.random()*V));return w},lZA="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var OQ=function(y){_.Ru.call(this);this.JSC$9950_domHelper_=y||RS()};
_.pF(OQ,_.Ru);OQ.prototype.transportType=0;OQ.prototype.getWindow=function(){return this.JSC$9950_domHelper_.getWindow()};
OQ.prototype.getName=function(){return Sym[String(this.transportType)]||""};var vY=function(y,W,V,w,t){OQ.call(this,V);this.JSC$9953_channel_=y;this.protocolVersion_=t||2;this.peerHostname_=W||"*";this.JSC$9953_eventHandler_=new _.eK(this);this.maybeAttemptToConnectTimer_=new _.cf(100,this.getWindow());this.oneSidedHandshake_=!!w;this.setupAckReceived_=new gF;this.setupAckSent_=new gF;this.JSC$9953_connected_=new gF;this.endpointId_=x1Q();this.peerEndpointId_=null;this.oneSidedHandshake_?ktQ(this.JSC$9953_channel_)==1?MHz(this.JSC$9953_connected_,this.setupAckReceived_):
MHz(this.JSC$9953_connected_,this.setupAckSent_):(MHz(this.JSC$9953_connected_,this.setupAckReceived_),this.protocolVersion_==2&&MHz(this.JSC$9953_connected_,this.setupAckSent_));fZR(this.JSC$9953_connected_,this.notifyConnected_,this);this.JSC$9953_connected_.callback(!0);this.JSC$9953_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.pF(vY,OQ);vY.prototype.peerProtocolVersion_=null;vY.prototype.initialized_=!1;vY.prototype.transportType=1;var sfJ={};vY.prototype.sendTimerId_=0;
var BfJ=function(y){var W=y.event_.data;if(typeof W!=="string")return!1;var V=W.indexOf("|"),w=W.indexOf(":");if(V==-1||w==-1)return!1;var t=W.substring(0,V);V=W.substring(V+1,w);W=W.substring(w+1);if(w=dF[t])return w.xpcDeliver(V,W,y.event_.origin),!0;w=Aoq(W)[0];for(var F in dF){var I=dF[F];if(ktQ(I)==1&&!I.isConnected()&&V=="tp"&&(w=="SETUP"||w=="SETUP_NTPV2")&&Yyr(I,y.event_.origin))return delete dF[I.name],I.name=t,dF[t]=I,I.xpcDeliver(V,W),!0}return!1},JoI=function(y){y.protocolVersion_!=2||
y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=2||y.send("tp","SETUP_NTPV2,"+y.endpointId_);
y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=1||y.send("tp","SETUP")},Rwr=function(y,W){if(y.protocolVersion_!=2||y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=2||W!=2){if(y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=1||W!=1)return;
y.send("tp","SETUP_ACK")}else y.send("tp","SETUP_ACK_NTPV2");y.setupAckSent_.fired_||y.setupAckSent_.callback(!0)},jfE=function(y,W){W>y.peerProtocolVersion_&&(y.peerProtocolVersion_=W);
y.peerProtocolVersion_==1&&(y.setupAckSent_.fired_||y.oneSidedHandshake_||y.setupAckSent_.callback(!0),y.peerEndpointId_=null)};
_.E=vY.prototype;_.E.connect=function(){var y=this.getWindow(),W=_.tA(y),V=sfJ[W];typeof V!=="number"&&(V=0);V==0&&_.XZ(y.postMessage?y:y.document,"message",BfJ,!1,vY);sfJ[W]=V+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.E.maybeAttemptToConnect_=function(){var y=ktQ(this.JSC$9953_channel_)==0;this.oneSidedHandshake_&&y||this.JSC$9953_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),JoI(this))};
_.E.send=function(y,W){var V=this.JSC$9953_channel_.peerWindowObject_;V&&(this.send=function(w,t){var F=this,I=this.JSC$9953_channel_.name;this.sendTimerId_=nw(function(){F.sendTimerId_=0;try{var P=V.postMessage?V:V.document;P.postMessage&&P.postMessage(I+"|"+w+":"+t,F.peerHostname_)}catch(C){}},0)},this.send(y,W))};
_.E.notifyConnected_=function(){var y=this.JSC$9953_channel_,W=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;y.isConnected()||y.connectionDelay_&&y.connectionDelay_.isActive()||(y.state_=2,_.La(y.connectionDelay_),W!==void 0?(y.connectionDelay_=new _.$u(y.connectCb_,W),y.connectionDelay_.start()):(y.connectionDelay_=null,y.connectCb_()))};
_.E.disposeInternal=function(){if(this.initialized_){var y=this.getWindow(),W=_.tA(y),V=sfJ[W];sfJ[W]=V-1;V==1&&_.Ys(y.postMessage?y:y.document,"message",BfJ,!1,vY)}this.sendTimerId_&&(_.Vj.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.La(this.JSC$9953_eventHandler_);delete this.JSC$9953_eventHandler_;_.La(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9953_connected_.cancel();delete this.JSC$9953_connected_;delete this.send;vY.superClass_.disposeInternal.call(this)};
var Aoq=function(y){y=y.split(",");y[1]=y[1]||null;return y};var ndi;_.LH=function(y){if(y.getValues&&typeof y.getValues=="function")return y.getValues();if(typeof Map!=="undefined"&&y instanceof Map||typeof Set!=="undefined"&&y instanceof Set)return Array.from(y.values());if(typeof y==="string")return y.split("");if(_.bn(y)){for(var W=[],V=y.length,w=0;w<V;w++)W.push(y[w]);return W}return _.Gc.getValues(y)};
_.$1s=function(y){if(y.getKeys&&typeof y.getKeys=="function")return y.getKeys();if(!y.getValues||typeof y.getValues!="function"){if(typeof Map!=="undefined"&&y instanceof Map)return Array.from(y.keys());if(!(typeof Set!=="undefined"&&y instanceof Set)){if(_.bn(y)||typeof y==="string"){var W=[];y=y.length;for(var V=0;V<y;V++)W.push(V);return W}return _.Gc.getKeys(y)}}};
ndi=function(y,W,V){if(y.forEach&&typeof y.forEach=="function")y.forEach(W,V);else if(_.bn(y)||typeof y==="string")Array.prototype.forEach.call(y,W,V);else for(var w=_.$1s(y),t=_.LH(y),F=t.length,I=0;I<F;I++)W.call(V,t[I],w&&w[I],y)};var Etj,iK,TF,QfI,Hbf,aZ2,X1r,bbz,Gtr;
_.gw=function(y,W){this.JSC$9958_domain_=this.userInfo_=this.scheme_="";this.JSC$9958_port_=null;this.fragment_=this.JSC$9958_path_="";this.JSC$9958_ignoreCase_=!1;var V;y instanceof _.gw?(this.JSC$9958_ignoreCase_=W!==void 0?W:y.JSC$9958_ignoreCase_,_.zF(this,y.scheme_),this.userInfo_=y.userInfo_,_.cY(this,y.JSC$9958_domain_),_.eb(this,y.JSC$9958_port_),_.oP(this,y.getPath()),_.KH(this,y.JSC$9958_queryData_.clone()),_.pH(this,y.fragment_)):y&&(V=_.v4(String(y)))?(this.JSC$9958_ignoreCase_=!!W,_.zF(this,
V[1]||"",!0),this.userInfo_=iK(V[2]||""),_.cY(this,V[3]||"",!0),_.eb(this,V[4]),_.oP(this,V[5]||"",!0),_.KH(this,V[6]||"",!0),_.pH(this,V[7]||"",!0)):(this.JSC$9958_ignoreCase_=!!W,this.JSC$9958_queryData_=new _.fH(null,this.JSC$9958_ignoreCase_))};
_.gw.prototype.toString=function(){var y=[],W=this.scheme_;W&&y.push(TF(W,Hbf,!0),":");var V=this.JSC$9958_domain_;if(V||W=="file")y.push("//"),(W=this.userInfo_)&&y.push(TF(W,Hbf,!0),"@"),y.push(_.E1(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.JSC$9958_port_,V!=null&&y.push(":",String(V));if(V=this.getPath())this.JSC$9958_domain_&&V.charAt(0)!="/"&&y.push("/"),y.push(TF(V,V.charAt(0)=="/"?X1r:aZ2,!0));(V=this.JSC$9958_queryData_.toString())&&y.push("?",V);(V=this.fragment_)&&y.push("#",TF(V,
Gtr));return y.join("")};
_.gw.prototype.resolve=function(y){var W=this.clone(),V=!!y.scheme_;V?_.zF(W,y.scheme_):V=!!y.userInfo_;V?W.userInfo_=y.userInfo_:V=!!y.JSC$9958_domain_;V?_.cY(W,y.JSC$9958_domain_):V=y.JSC$9958_port_!=null;var w=y.getPath();if(V)_.eb(W,y.JSC$9958_port_);else if(V=!!y.JSC$9958_path_){if(w.charAt(0)!="/")if(this.JSC$9958_domain_&&!this.JSC$9958_path_)w="/"+w;else{var t=W.getPath().lastIndexOf("/");t!=-1&&(w=W.getPath().slice(0,t+1)+w)}t=w;if(t==".."||t==".")w="";else if(_.Cd(t,"./")||_.Cd(t,"/.")){w=
_.tv(t,"/");t=t.split("/");for(var F=[],I=0;I<t.length;){var P=t[I++];P=="."?w&&I==t.length&&F.push(""):P==".."?((F.length>1||F.length==1&&F[0]!="")&&F.pop(),w&&I==t.length&&F.push("")):(F.push(P),w=!0)}w=F.join("/")}else w=t}V?_.oP(W,w):V=y.JSC$9958_queryData_.toString()!=="";V?_.KH(W,y.JSC$9958_queryData_.clone()):V=!!y.fragment_;V&&_.pH(W,y.fragment_);return W};
_.gw.prototype.clone=function(){return new _.gw(this)};
_.zF=function(y,W,V){y.scheme_=V?iK(W,!0):W;y.scheme_&&(y.scheme_=y.scheme_.replace(/:$/,""));return y};
_.cY=function(y,W,V){y.JSC$9958_domain_=V?iK(W,!0):W;return y};
_.eb=function(y,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Xa`"+W);y.JSC$9958_port_=W}else y.JSC$9958_port_=null;return y};
_.gw.prototype.getPath=function(){return this.JSC$9958_path_};
_.oP=function(y,W,V){y.JSC$9958_path_=V?iK(W,!0):W;return y};
_.KH=function(y,W,V){W instanceof _.fH?(y.JSC$9958_queryData_=W,rom(y.JSC$9958_queryData_,y.JSC$9958_ignoreCase_)):(V||(W=TF(W,bbz)),y.JSC$9958_queryData_=new _.fH(W,y.JSC$9958_ignoreCase_));return y};
_.If=function(y,W,V){y.JSC$9958_queryData_.set(W,V);return y};
_.N1=function(y,W){return y.JSC$9958_queryData_.get(W)};
_.pH=function(y,W,V){y.fragment_=V?iK(W):W;return y};
_.mx=function(y){_.If(y,"zx",FT());return y};
_.Ey=function(y,W){return y instanceof _.gw?y.clone():new _.gw(y,W)};
Etj=function(y,W){y instanceof _.gw||(y=_.Ey(y));W instanceof _.gw||(W=_.Ey(W));return y.resolve(W)};
iK=function(y,W){return y?W?decodeURI(y.replace(/%25/g,"%2525")):decodeURIComponent(y):""};
TF=function(y,W,V){return typeof y==="string"?(y=encodeURI(y).replace(W,QfI),V&&(y=y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y):null};
QfI=function(y){y=y.charCodeAt(0);return"%"+(y>>4&15).toString(16)+(y&15).toString(16)};
Hbf=/[#\/\?@]/g;aZ2=/[#\?:]/g;X1r=/[#\?]/g;bbz=/[#\?@]/g;Gtr=/#/g;_.fH=function(y,W){this.count_=this.keyMap_=null;this.encodedQuery_=y||null;this.JSC$9959_ignoreCase_=!!W};
_.MY=function(y){y.keyMap_||(y.keyMap_=new Map,y.count_=0,y.encodedQuery_&&svJ(y.encodedQuery_,function(W,V){y.add(c4(W),V)}))};
_.E=_.fH.prototype;_.E.getCount=function(){_.MY(this);return this.count_};
_.E.add=function(y,W){_.MY(this);this.encodedQuery_=null;y=qY(this,y);var V=this.keyMap_.get(y);V||this.keyMap_.set(y,V=[]);V.push(W);this.count_+=1;return this};
_.E.remove=function(y){_.MY(this);y=qY(this,y);return this.keyMap_.has(y)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(y).length,this.keyMap_.delete(y)):!1};
_.E.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.E.isEmpty=function(){_.MY(this);return this.count_==0};
_.E.containsKey=function(y){_.MY(this);y=qY(this,y);return this.keyMap_.has(y)};
_.E.containsValue=function(y){var W=this.getValues();return _.j4(W,y)};
_.E.forEach=function(y,W){_.MY(this);this.keyMap_.forEach(function(V,w){V.forEach(function(t){y.call(W,t,w,this)},this)},this)};
_.E.getKeys=function(){_.MY(this);for(var y=Array.from(this.keyMap_.values()),W=Array.from(this.keyMap_.keys()),V=[],w=0;w<W.length;w++)for(var t=y[w],F=0;F<t.length;F++)V.push(W[w]);return V};
_.E.getValues=function(y){_.MY(this);var W=[];if(typeof y==="string")this.containsKey(y)&&(W=W.concat(this.keyMap_.get(qY(this,y))));else{y=Array.from(this.keyMap_.values());for(var V=0;V<y.length;V++)W=W.concat(y[V])}return W};
_.E.set=function(y,W){_.MY(this);this.encodedQuery_=null;y=qY(this,y);this.containsKey(y)&&(this.count_-=this.keyMap_.get(y).length);this.keyMap_.set(y,[W]);this.count_+=1;return this};
_.E.get=function(y,W){if(!y)return W;y=this.getValues(y);return y.length>0?String(y[0]):W};
_.Zb6=function(y,W,V){y.remove(W);V.length>0&&(y.encodedQuery_=null,y.keyMap_.set(qY(y,W),_.ru(V)),y.count_+=V.length)};
_.fH.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var y=[],W=Array.from(this.keyMap_.keys()),V=0;V<W.length;V++){var w=W[V],t=_.E1(w);w=this.getValues(w);for(var F=0;F<w.length;F++){var I=t;w[F]!==""&&(I+="="+_.E1(w[F]));y.push(I)}}return this.encodedQuery_=y.join("&")};
_.fH.prototype.clone=function(){var y=new _.fH;y.encodedQuery_=this.encodedQuery_;this.keyMap_&&(y.keyMap_=new Map(this.keyMap_),y.count_=this.count_);return y};
var qY=function(y,W){W=String(W);y.JSC$9959_ignoreCase_&&(W=W.toLowerCase());return W},rom=function(y,W){W&&!y.JSC$9959_ignoreCase_&&(_.MY(y),y.encodedQuery_=null,y.keyMap_.forEach(function(V,w){var t=w.toLowerCase();
w!=t&&(this.remove(w),_.Zb6(this,t,V))},y));
y.JSC$9959_ignoreCase_=W};
_.fH.prototype.extend=function(y){for(var W=0;W<arguments.length;W++)ndi(arguments[W],function(V,w){this.add(w,V)},this)};var UQ=function(y,W){IP.call(this);for(var V=0,w;w=D1q[V];V++)if(w in y&&!/^https?:\/\//.test(y[w]))throw Error("Za`"+y[w]+"`"+w);this.cfg_=y;this.name=this.cfg_.cn||x1Q();this.JSC$9954_domHelper_=W||RS();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.eK(this);y.lpu=y.lpu||xur(this.JSC$9954_domHelper_.getWindow().location.href)+"/robots.txt";y.ppu=y.ppu||xur(y.pu||"")+"/robots.txt";dF[this.name]=this;R8s(window,"unload",ybE)||jY(window,"unload",ybE)};
_.pF(UQ,IP);var WdA=RegExp("^%*tp$"),V0Q=RegExp("^%+tp$");_.E=UQ.prototype;_.E.connectionDelay_=null;_.E.peerWindowDeferred_=null;_.E.transport_=null;_.E.state_=1;_.E.isConnected=function(){return this.state_==2};
_.E.peerWindowObject_=null;_.E.iframeElement_=null;_.E.connect=function(y){this.connectCb_=y||_.A$;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?fZR(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.E.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9954_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var y=this.iframeElement_.contentWindow;y||(y=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=y}if(!this.peerWindowObject_){if(window==window.top)throw Error("ab");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$9954_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new vY(this,this.cfg_.ph,this.JSC$9954_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("$a");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.E.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.La(this.transport_);this.connectCb_=this.transport_=null;_.La(this.connectionDelay_);this.connectionDelay_=null};
_.E.send=function(y,W){if(this.isConnected()){try{var V=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(t){V=!1}if(V){_.VK(W)&&(W=(0,_.Xl)(W));V=this.transport_;var w=V.send;WdA.test(y)&&(y="%"+y);y=y.replace(/[%:|]/g,encodeURIComponent);w.call(V,y,W)}else this.close()}};
_.E.xpcDeliver=function(y,W,V){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.jA)(this.xpcDeliver,this,y,W,V));else if(Yyr(this,V)&&!this.isDisposed()&&this.state_!=3)if(y&&y!="tp")this.isConnected()&&(y=y.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),y=V0Q.test(y)?y.substring(1):y,y=this.getService(y,W))&&(W=hwE(W,y.objectPayload),W!=null&&y.callback(W));else switch(y=this.transport_,V=Aoq(W),W=V[1],V[0]){case "SETUP_ACK":jfE(y,1);y.setupAckReceived_.fired_||y.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":y.protocolVersion_==2&&(jfE(y,2),y.setupAckReceived_.fired_||y.setupAckReceived_.callback(!0));break;case "SETUP":jfE(y,1);Rwr(y,1);break;case "SETUP_NTPV2":y.protocolVersion_==2&&(V=y.peerProtocolVersion_,jfE(y,2),Rwr(y,2),V!=1&&y.peerEndpointId_==null||y.peerEndpointId_==W||JoI(y),y.peerEndpointId_=W)}};
var ktQ=function(y){var W=y.cfg_.role;return typeof W==="number"?W:window.parent==y.peerWindowObject_?1:0},Yyr=function(y,W){var V=y.cfg_.ph;
return _.gu(W==null?"":String(W))||_.gu(V==null?"":String(V))||W==y.cfg_.ph};
UQ.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete dF[this.name];_.La(this.peerLoadHandler_);delete this.peerLoadHandler_;UQ.superClass_.disposeInternal.call(this)};
var ybE=function(){for(var y in dF)_.La(dF[y])},dF={};var t0f=function(y,W){this.JSC$9968_win=y;this.allowAdsHttpEndpoint=W;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9968_domHelper=RS(y);this.scrollManager=new zwi(y);this.accessibilityManager=new COK(y);wVz(this)},wVz=function(y){var W=function(){y.allowAdsPopup&&y.allowAdsPopup.style.setProperty("display","none","important");
y.wallElement.style.setProperty("display","","important");ObI(y.accessibilityManager);LTR(y.accessibilityManager,y.wallElement.querySelector(".fc-dialog-container"),!1,!1,y.wallElement.querySelector(".fc-button-whitelist"));y.scrollManager.enableScrolling()};
y.allowAdsPopup=y.JSC$9968_domHelper.JSC$9252_createDom("DIV",{"class":"fc-whitelist-root"});y.allowAdsPopup.style.setProperty("display","none","important");y.JSC$9968_domHelper.appendChild(y.JSC$9968_domHelper.JSC$9250_document_.body,y.allowAdsPopup);var V=y.JSC$9968_domHelper.JSC$9252_createDom("DIV",{"class":"fc-dialog-overlay"});y.JSC$9968_domHelper.appendChild(y.allowAdsPopup,V);var w=y.JSC$9968_domHelper.JSC$9252_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:W});y.JSC$9968_domHelper.appendChild(y.allowAdsPopup,
w);V=y.JSC$9968_domHelper.JSC$9252_createDom("IFRAME");V.className="fc-whitelist-dialog";V.frameBorder="0";V.id="fc-whitelist-iframe";V.tabIndex="0";_.g$(V,y.allowAdsHttpEndpoint);y.JSC$9968_domHelper.appendChild(w,V);w={};w.pu=_.$R(y.allowAdsHttpEndpoint).toString();w.tp=1;w.cn="fc-whitelist-channel";w.ifrid=V.id;w.osh=!0;y.allowAdsCrossPageChannel=new UQ(w);y.allowAdsCrossPageChannel.registerService("close",W);y.allowAdsCrossPageChannel.registerService("refresh",function(){y.JSC$9968_win.location.reload()});
y.allowAdsCrossPageChannel.registerService("resize",function(t){if(t){var F=y.allowAdsPopup.querySelector(".fc-whitelist-dialog");t.width&&F.style.setProperty("width",t.width,"important");t.height&&F.style.setProperty("height",t.height,"important")}},!0);
y.allowAdsCrossPageChannel.connect()};
t0f.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9968_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var uK=window,Sb=document,Fdz=uK.location,EVR=function(){},NVI=/\[native code\]/,De=function(y,W,V){return y[W]=y[W]||V},I7J=function(y){y=y.sort();
for(var W=[],V=void 0,w=0;w<y.length;w++){var t=y[w];t!=V&&W.push(t);V=t}return W},lK=function(){var y;
if((y=Object.create)&&NVI.test(y))y=y(null);else{y={};for(var W in y)y[W]=void 0}return y},xG=De(uK,"gapi",{});var kG={};kG=De(uK,"___jsl",lK());De(kG,"I",0);De(kG,"hel",10);var gV6=function(){var y=Fdz.href;if(kG.dpo)var W=kG.h;else{W=kG.h;var V=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),w=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(y=y&&(V.exec(y)||w.exec(y)))try{W=decodeURIComponent(y[2])}catch(t){}}return W},PUA=function(y){var W=De(kG,"PQ",[]);
kG.PQ=[];var V=W.length;if(V===0)y();else for(var w=0,t=function(){++w===V&&y()},F=0;F<V;F++)W[F](t)},CUJ=function(y){return De(De(kG,"H",lK()),y,lK())};var sQ=function(y){this.JSC$9970_obj_=y};
sQ.prototype.value=function(){return this.JSC$9970_obj_};
sQ.prototype.getWidth=function(){return this.JSC$9970_obj_.width};
sQ.prototype.getHeight=function(){return this.JSC$9970_obj_.height};
sQ.prototype.getStyle=function(){return this.JSC$9970_obj_.style};var OG2=function(y){this.JSC$9973_obj_=y||{}};
_.E=OG2.prototype;_.E.value=function(){return this.JSC$9973_obj_};
_.E.setUrl=function(y){this.JSC$9973_obj_.url=y;return this};
_.E.getUrl=function(){return this.JSC$9973_obj_.url};
_.E.getStyle=function(){return this.JSC$9973_obj_.style};
_.E.getId=function(){return this.JSC$9973_obj_.id};
_.E.getContext=function(){return this.JSC$9973_obj_.context};
var vVJ=function(y){y.JSC$9973_obj_.attributes=y.JSC$9973_obj_.attributes||{};return new sQ(y.JSC$9973_obj_.attributes)};var dVf=function(){OG2.apply(this,arguments)};
_.p(dVf,OG2);var Ld2=De(kG,"perf",lK());De(Ld2,"g",lK());var znq=De(Ld2,"i",lK());De(Ld2,"r",[]);lK();lK();var enA=function(y,W,V){W&&W.length>0&&(W=cbz(W),V&&V.length>0&&(W+="___"+cbz(V)),W.length>28&&(W=W.substr(0,28)+(W.length-28)),V=W,W=De(znq,"_p",lK()),De(W,V,lK())[y]=(new Date).getTime(),W=Ld2.r,typeof W==="function"?W(y,"_p",V):W.push([y,"_p",V]))},cbz=function(y){return y.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var hnQ=lK(),oVJ=[],A0=function(y){throw Error("bb`"+y);};
oVJ.push(["jsl",function(y){for(var W in y)if(Object.prototype.hasOwnProperty.call(y,W)){var V=y[W];typeof V=="object"?kG[W]=De(kG,W,[]).concat(V):De(kG,W,V)}if(W=y.u)y=De(kG,"us",[]),y.push(W),(W=/^https:(.*)$/.exec(W))&&y.push("http:"+W[1])}]);
var KdJ=/^(\/[a-zA-Z0-9_\-]+)+$/,pVi=[/\/amp\//,/\/amp$/,/^\/amp$/],iGK=/^[a-zA-Z0-9\-_\.,!]+$/,f72=/^gapi\.loaded_[0-9]+$/,TV6=/^[a-zA-Z0-9,._-]+$/,UVs=function(y,W,V,w,t){var F=y.split(";"),I=F.shift(),P=hnQ[I],C=null;P?C=P(F,W,V,w):A0("no hint processor for: "+I);C||A0("failed to generate load url");W=C;V=W.match(mVf);(w=W.match(M0I))&&w.length===1&&qFr.test(W)&&V&&V.length===1||A0("failed sanity: "+y);try{y="?";if(t&&t.length>0){Nr(t);var d=t.join(",");C=C+"?le="+d;y="&"}if(kG.rol){var L=kG.ol;
L&&L.length&&(C=""+C+y+"ol="+L.length)}}catch(z){}return C},DVr=function(y,W,V,w){y=udz(y);
f72.test(V)||A0("invalid_callback");W=SFI(W);w=w&&w.length?SFI(w):null;var t=function(F){return encodeURIComponent(F).replace(/%2C/g,",")};
return[encodeURIComponent(y.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",t(y.version),"/m=",t(W),w?"/exm="+t(w):"","/rt=j/sv=1/d=1/ed=1",y.activeMods?"/am="+t(y.activeMods):"",y.resourceSig?"/rs="+t(y.resourceSig):"",y.zcms?"/t="+t(y.zcms):"","/cb=",t(V)].join("")},udz=function(y){y.charAt(0)!=="/"&&A0("relative path");
for(var W=y.substring(1).split("/"),V=[];W.length;){y=W.shift();if(!y.length||y.indexOf(".")==0)A0("empty/relative directory");else if(y.indexOf("=")>0){W.unshift(y);break}V.push(y)}y={};for(var w=0,t=W.length;w<t;++w){var F=W[w].split("="),I=decodeURIComponent(F[0]),P=decodeURIComponent(F[1]);F.length==2&&I&&P&&(y[I]=y[I]||P)}W="/"+V.join("/");KdJ.test(W)||A0("invalid_prefix");V=0;for(w=pVi.length;V<w;++V)pVi[V].test(W)&&A0("invalid_prefix");V=l7m(y,"k",!0);w=l7m(y,"am");t=l7m(y,"rs");y=l7m(y,"t");
return{pathPrefix:W,version:V,activeMods:w,resourceSig:t,zcms:y}},SFI=function(y){for(var W=[],V=0,w=y.length;V<w;++V){var t=y[V].replace(/\./g,"_").replace(/-/g,"_");
TV6.test(t)&&W.push(t)}return W.join(",")},l7m=function(y,W,V){y=y[W];
!y&&V&&A0("missing: "+W);if(y){if(iGK.test(y))return y;A0("invalid: "+W)}return null},qFr=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,M0I=/\/cb=/g,mVf=/\/\//g;
hnQ.m=function(y,W,V,w){(y=y[0])||A0("missing_hint");return"https://apis.google.com"+DVr(y,W,V,w)};
var xVA=decodeURI("%73cript"),kIq=/^[-+_0-9\/A-Za-z]+={0,2}$/,s8m=function(y,W){for(var V=[],w=0;w<y.length;++w){var t=y[w],F;if(F=t){a:{for(F=0;F<W.length;F++)if(W[F]===t)break a;F=-1}F=F<0}F&&V.push(t)}return V},Abf=function(){var y=kG.nonce;
return y!==void 0?y&&y===String(y)&&y.match(kIq)?y:kG.nonce=null:Sb.querySelector?(y=Sb.querySelector("script[nonce]"))?(y=y.nonce||y.getAttribute("nonce")||"",y&&y===String(y)&&y.match(kIq)?kG.nonce=y:kG.nonce=null):null:null},Jb2=function(y){if(Sb.readyState!="loading")YFQ(y);
else{var W=Abf(),V="";W!==null&&(V=' nonce="'+W+'"');y="<"+xVA+' src="'+encodeURI(y)+'"'+V+"></"+xVA+">";Sb.write(BVQ?BVQ.createHTML(y):y)}},YFQ=function(y){var W=Sb.createElement(xVA);
W.setAttribute("src",BVQ?BVQ.createScriptURL(y):y);y=Abf();y!==null&&W.setAttribute("nonce",y);W.async="true";(y=Sb.getElementsByTagName(xVA)[0])?y.parentNode.insertBefore(W,y):(Sb.head||Sb.body||Sb.documentElement).appendChild(W)},j8J=function(y,W,V){RnA(function(){var w=W===gV6()?De(xG,"_",lK()):lK();
w=De(CUJ(W),"_",w);y(w)},V)},yqt=function(y,W){var V=W||{};
typeof W=="function"&&(V={},V.callback=W);var w=(W=V)&&W._c;if(w)for(var t=0;t<oVJ.length;t++){var F=oVJ[t][0],I=oVJ[t][1];I&&Object.prototype.hasOwnProperty.call(w,F)&&I(w[F],y,W)}W=[];y?W=y.split(":"):V.features&&(W=V.features);if(!(y=V.h)&&(y=gV6(),!y))throw Error("cb");$Vi(W||[],V,y)},$Vi=function(y,W,V){y=I7J(y)||[];
var w=W.callback,t=W.config,F=W.timeout,I=W.ontimeout,P=W.onerror,C=void 0;typeof P=="function"&&(C=P);var d=null,L=!1;if(F&&!I||!F&&I)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";P=De(CUJ(V),"r",[]).sort();var z=De(CUJ(V),"L",[]).sort(),c=kG.le||[],K=[].concat(P),f=function(r,H){if(L)return 0;uK.clearTimeout(d);z.push.apply(z,U);var a=((xG||{}).config||{}).update;a?a(t):t&&De(kG,"cu",[]).push(t);if(H){enA("me0",r,K);try{j8J(H,V,C)}finally{enA("me1",r,K)}}return 1};
F>0&&(d=uK.setTimeout(function(){L=!0;I()},F));
var U=s8m(y,z);if(U.length){U=s8m(y,P);var l=De(kG,"CP",[]),x=l.length;l[x]=function(r){if(!r)return 0;enA("ml1",U,K);var H=function(b){l[x]=null;f(U,r)&&PUA(function(){w&&w();b()})},a=function(){var b=l[x+1];
b&&b()};
x>0&&l[x-1]?l[x]=function(){H(a)}:H(a)};
if(U.length){var B="loaded_"+kG.I++;xG[B]=function(r){l[x](r);xG[B]=null};
y=UVs(V,U,"gapi."+B,P,c);P.push.apply(P,U);enA("ml0",U,K);W.sync||uK.___gapisync?Jb2(y):YFQ(y)}else l[x](EVR)}else f(U)&&w&&w()},nVm;
var HGq=null,XVI=_.Vj.trustedTypes;if(XVI&&XVI.createPolicy){try{HGq=XVI.createPolicy("goog#gapi",{createHTML:r7v,createScript:r7v,createScriptURL:r7v})}catch(y){_.Vj.console&&_.Vj.console.error(y.message)}nVm=HGq}else nVm=HGq;var BVQ=nVm,RnA=function(y,W){if(kG.hee&&kG.hel>0)try{return y()}catch(V){W&&W(V),kG.hel--,yqt("debug_error",function(){try{window.___jsl.hefn(V)}catch(w){throw V;}})}else try{return y()}catch(V){throw W&&W(V),V;
}},a7q=xG.load;
a7q&&De(kG,"ol",[]).push(a7q);xG.load=function(y,W){return RnA(function(){return yqt(y,W)})};var kJa;var rbr=function(y,W){var V=V||[];this.serviceId_=y;this.moduleId_=W||null;this.dependencies_=[];GIs(this,V)};
rbr.prototype.toString=function(){return this.serviceId_};
rbr.prototype.getModuleId=function(){return this.moduleId_};
var GIs=function(y,W){var V=!1;V=V===void 0?!1:V;y.dependencies_=y.dependencies_.concat(W);if(V){if(!y.moduleId_)throw Error("db`"+y.serviceId_);W.map(function(w){return w.getModuleId()}).forEach(function(w){sAt(function(t){t.addExtraEdge(y.moduleId_,w)})})}};var RDj=new rbr("MpJwZc","MpJwZc");var $Bv=new _.lW("a"),j2y=function(y,W,V){_.xs.call(this,y,W);this.node=W;this.kind=V};
_.p(j2y,_.xs);var bGs=function(){this.JSC$9986_keys_={};this.urlPrefix_="";this.JSC$9986_queryData_={}};
bGs.prototype.toString=function(){var y=this.urlPrefix_+Q82(this),W=_.SX(this.JSC$9986_queryData_),V="";W!=""&&(V="?"+W);return y+V};
var ZGz=function(y){y=YG(y,"md");return!!y&&y!=="0"},Q82=function(y){var W=[],V=(0,_.jA)(function(w){this.JSC$9986_keys_[w]!==void 0&&W.push(w+"="+this.JSC$9986_keys_[w])},y);
ZGz(y)?(V("md"),V("k"),V("ck"),V("am"),V("rs"),V("gssmodulesetproto"),V("slk"),V("dti")):(V("sdch"),V("k"),V("ck"),V("am"),V("rt"),"d"in y.JSC$9986_keys_||BY(y,"d","0"),V("d"),V("exm"),V("excm"),(y.JSC$9986_keys_.excm||y.JSC$9986_keys_.exm)&&W.push("ed=1"),V("im"),V("dg"),V("sm"),YG(y,"br")!="1"&&YG(y,"br")!="0"||V("br"),V("br-d"),YG(y,"rb")=="1"&&V("rb"),YG(y,"zs")!=="0"&&V("zs"),ys2(y)!==""&&V("wt"),V("gssmodulesetproto"),V("ujg"),V("sp"),V("rs"),V("cb"),V("ee"),V("slk"),V("dti"),V("m"));return W.join("/")},
YG=function(y,W){return y.JSC$9986_keys_[W]?y.JSC$9986_keys_[W]:null},BY=function(y,W,V){V?y.JSC$9986_keys_[W]=V:delete y.JSC$9986_keys_[W]},Wjz=function(y,W){y.urlPrefix_=W},VXJ=function(y,W){W&&W.length>0?(W.sort(),BY(y,"exm",W.join(","))):BY(y,"exm",null)},w4m=function(y,W){W&&W.length>0?(W.sort(),BY(y,"excm",W.join(","))):BY(y,"excm",null)},tXQ=function(y){return(y=YG(y,"m"))?y.split(","):[]},ys2=function(y){switch(YG(y,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},FjK=function(y,W){var V=Object.keys(W).filter(function(w){return!!Object.keys(W[w]).length}).map(function(w){var t=Object.keys(W[w]);
t.length>1&&t.sort();return w+":"+t.join(",")});
V.sort();BY(y,"ee",V.join(";"))},q6n=function(y){var W=YG(y,"ee");
if(!W)return{};y={};W=_.N(W.split(";"));for(var V=W.next();!V.done;V=W.next()){var w=_.N(V.value.split(":"));V=w.next().value;w=w.next().value;y[V]={};w=_.N(w.split(","));for(var t=w.next();!t.done;t=w.next())y[V][t.value]=!0}return y},E_Q=function(y){delete y.JSC$9986_keys_.m;
delete y.JSC$9986_keys_.exm;delete y.JSC$9986_keys_.ed};
bGs.prototype.clone=function(){var y=new bGs;y.JSC$9986_keys_=Object.assign({},this.JSC$9986_keys_);y.urlPrefix_=this.urlPrefix_;y.JSC$9986_queryData_=Object.assign({},this.JSC$9986_queryData_);return y};
var Uku=function(y,W){W=W===void 0?!0:W;var V=Nif(y),w=new bGs,t=_.v4(V)[5];_.Gc.forEach(I3m,function(I){var P=t.match("/"+I+"=([^/]+)");P&&BY(w,I,P[1])});
var F="";F=y.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Wjz(w,y.substr(0,y.indexOf(F)+F.length));if(!W)return w;(y=_.v4(V)[6]||null)&&svJ(y,function(I,P){w.JSC$9986_queryData_[I]=P});
return w},TEP=function(y){y=_.U1(Nif(y));
return y===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(y)?/\/k=/.test(y):!1},Nif=function(y){return y.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?y.substr(65):y},I3m={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"},g_6=RegExp("^loaded_(g|h)?[_\\d]+$");_.J0=function(y){this.JSC$9998_id_=y;this.opts={}};
_.J0.prototype.JSC$10000_setLabel=function(y){this.label_=y||void 0;return this};
_.J0.prototype.addUploadMetadata=function(y,W){var V=this.opts.data||{};V[y]=W;this.opts.data=V;return this};
var PCJ=function(y){var W=_.Gc.filter(y.opts,function(V){return V!==null});
W=_.Gc.isEmpty(W)?null:W;y=[y.JSC$9998_id_,y.label_,W];W=ebu(y);return y=y.slice(0,W+1)};
_.J0.prototype.toString=function(){var y=PCJ(this);return"("+_.rU(y,function(W){return JSON.stringify(W)}).join(",")+")"};
_.J0.prototype.getId=function(){return this.JSC$9998_id_};
_.J0.prototype.getOptions=function(){return _.Gc.clone(this.opts)};var RP=function(){_.J0.call(this,"image-search")};
_.p(RP,_.J0);RP.prototype.setSize=function(y){this.opts.imgsz=y;return this};
RP.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
RP.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};var jb=function(){_.J0.call(this,"maps")};
_.p(jb,_.J0);jb.prototype.setZoom=function(y){this.opts.zoom=y;return this};
jb.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
jb.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};_.$G=function(){_.J0.call(this,"photos")};
_.p(_.$G,_.J0);_.$G.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
_.$G.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};var nH=function(){_.J0.call(this,"url")};
_.p(nH,_.J0);var CCi=function(){var y=new nH;y.opts.type="video";y.opts.site="youtube.com";return y};
nH.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
nH.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};var HY=function(){_.J0.call(this,"video-search")};
_.p(HY,_.J0);var OBi=function(){var y=new HY;y.opts.site="youtube.com";return y};
HY.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
HY.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};var v_I=function(){_.J0.call(this,"web")};
_.p(v_I,_.J0);v_I.prototype.JSC$10000_setLabel=function(y){_.J0.prototype.JSC$10000_setLabel.call(this,y);return this};
v_I.prototype.addUploadMetadata=function(y,W){_.J0.prototype.addUploadMetadata.call(this,y,W);return this};var XJ=function(){this.items_=[];this.opts={}},dOK=function(y){switch(y){case "image-search":return new RP;
case "maps":return new jb;case "photos":return new _.$G;case "url":return new nH;case "video-search":return new HY;case "web":return new v_I}return new _.J0(y)};
XJ.prototype.addView=function(y){this.items_.push(typeof y==="string"?dOK(y):y);return this};
var LjQ=function(y){return"("+_.rU(y.items_,function(W){return W.toString()}).join(",")+")"};
XJ.prototype.toString=function(){return LjQ(this)};
XJ.prototype.getViews=function(y,W){W=W===void 0?[]:W;for(var V=this.items_,w=0;w<V.length;w++){var t=V[w];t instanceof XJ?t.getViews(y,W):t.getId()==y&&W.push(t)}return W};
XJ.prototype.getOptions=function(){return _.Gc.clone(this.opts)};var y6=function(y){this.basePickerUrl_=y||"https://docs.google.com/picker";this.nav_=new XJ};
y6.prototype.nav_=null;y6.prototype.addView=function(y){this.nav_.addView(y);return this};
y6.prototype.getBaseUrl=function(){return this.basePickerUrl_};
y6.prototype.getViews=function(y){return this.nav_.getViews(y)};
_.zLz=function(y,W){y.callback_=W;return y};var csm=new Map;csm.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");csm.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");csm.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var eL6=new Set;eL6.add("application/vnd.google-apps.kix");eL6.add("application/vnd.google-apps.ritz");eL6.add("application/vnd.google-apps.punch");var uUr=function(y,W,V){var w=V&&_.aX(V,1);V=hLz(V);var t=y[0].getId();switch(_.rK(t,2)){case 13:return o_6(y,W,w,V);case 3:return Kjr(y,W,w,V);case 10:return p4A(y,W,w,V);case 27:return p4A(y,W,w,V);case 12:return iBf(y,W);case 2:return f3E(y,W,w,V);case 5:return TiJ(y,W,w,V);case 9:return mOq(y,W,w,V);case 6:return MXf(y,W,w,V);case 25:return q1Q(y,W,w,V);case 1:return _.sX(y[0],ZeE,26)?UOA(y,W,w,V):p4A(y,W,w,V);default:return{}}},MXf=function(y,W,V,w){y=y.map(function(t){return{id:t.getId().getId(),
serviceId:"youtube",name:t.getName(),description:_.aX(t,3),type:aP(t),lastEditedUtc:_.QvA(_.Da(t,_.yW,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:_.aX(t,13),thumbnails:GF(z0(t))}});
return{action:W,docs:y,viewToken:w,view:V||"youtube",v2Translated:!0}},f3E=function(y,W,V,w){var t=y.map(function(F){var I=F.getId().getId(),P=_.aX(F,7),C=F.getName(),d=aP(F),L=_.QvA(_.Da(F,_.yW,12)).getTime(),z=F.getUrl(),c=Number(CAG(F)),K=_.aX(F,3),f=_.aX(F,11),U=GF(z0(F));
var l=_.Da(F,cg,21);l=_.nF(l,1);var x=_.Da(F,cg,21);x=_.aX(x,10);var B=_.aX(F,13);var r=_.Da(F,cg,21);r=_.nF(r,9);var H=_.Da(F,cg,21);H=_.aX(H,11);I={id:I,serviceId:"docs",mimeType:P,name:C,type:d,lastEditedUtc:L,url:z,sizeBytes:c,description:K,iconUrl:f,thumbnails:U,isShared:l,downloadUrl:x,embedUrl:B,copyable:r,resourceKey:H};P=_.Da(F,cg,21);_.nF(P,12)&&(I.uploadState="success",I.isNew=!0);P=_.Da(F,cg,21);_.sX(P,vg,3)&&(F=_.Da(F,cg,21),F=_.Da(F,vg,3),_.sX(F,Cw,2)&&(P=Qc(F.getDuration().getSeconds()),
C=F.getDuration(),C=_.Ka(C,2),I.duration=P+C/1E9),I.aspectRatio=F.getAspectRatio());return I});
return{action:W,docs:t,viewToken:w,view:V||"all",extraUserInputs:S1i(y),v2Translated:!0}},TiJ=function(y,W,V,w){y=y.map(function(t){var F=_.Da(t,IfQ,15);
F=_.Da(F,OH,1);DY(t,10,OH,F);return{id:t.getId().getId(),serviceId:"web",mimeType:_.aX(t,7),name:t.getName(),type:aP(t),url:t.getUrl(),description:_.aX(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(t))}});
return{action:W,docs:y,viewToken:w,view:V||"image-search",v2Translated:!0}},mOq=function(y,W,V,w){y=y.map(function(t){return{serviceId:"url",
name:z0(t)[0].getUrl().split("/").pop(),type:aP(t),mimeType:_.aX(t,7),url:t.getUrl(),description:_.aX(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(t))}});
return{action:W,docs:y,viewToken:w,view:V||"url",v2Translated:!0}},UOA=function(y,W,V,w){y=y.map(function(t){return{id:t.getId().getId(),
serviceId:"picasa",name:t.getName(),type:aP(t),description:_.aX(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(t))}});
return{action:W,docs:y,viewToken:w,view:V||"webcam",v2Translated:!0}},p4A=function(y,W,V,w){return{action:W,
docs:y.map(DOr),viewToken:w,view:l3J(V||"upload",y),extraUserInputs:S1i(y),v2Translated:!0}},l3J=function(y,W){return W.some(function(V){var w;
return((w=_.Da(V,dD,30))==null?void 0:_.rK(w,3))===9})?y+"/gmailphotos":y},Kjr=function(y,W,V,w){var t=y.map(function(F){var I={id:F.getId().getId(),
serviceId:"picasa",mimeType:_.aX(F,7),name:F.getName(),type:aP(F),lastEditedUtc:_.QvA(_.Da(F,_.yW,12)).getTime(),url:F.getUrl(),sizeBytes:Number(CAG(F)),description:_.aX(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(F)),mediaKey:F.getId().getId(),parentId:_.aX(F,4)},P,C=(P=_.Da(F,VhQ,18))==null?void 0:_.Da(P,Whz,3);C&&(I.latitude=X_(C,1),I.longitude=X_(C,2));var d;F=(d=_.Da(F,VhQ,18))==null?void 0:HX(d,6);d=F!=null?Qc(F):void 0;d&&(I.version=
d);return I});
return{action:W,docs:t,viewToken:w,view:V||"photos",extraUserInputs:S1i(y),v2Translated:!0}},o_6=function(y,W,V,w){y=y.map(function(t){return{id:t.getId().getId(),
serviceId:"et",name:z0(t)[0].getUrl().split("/").pop(),description:_.aX(t,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(t),"etjpg")}});
return{action:W,docs:y,viewToken:w,view:V||"et",v2Translated:!0}},q1Q=function(y,W,V,w){y=y.map(function(t){var F=t.getId().getId(),I=w["2"];
return{id:F,serviceId:I.type!=="gmail_themes"&&I.parent==="6226252643674576769"?"picasa":"static_themes",name:t.getName(),mimeType:_.aX(t,7),type:aP(t),description:_.aX(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:t.getUrl(),thumbnails:GF(z0(t))}});
return{action:W,docs:y,viewToken:w,view:V||"photos",v2Translated:!0}},iBf=function(y,W){y=y.map(function(V){var w=_.Da(V,y_m,27);
w=_.PZ(w,1,_.Jm,_.hG())[0];return{id:V.getId().getId(),serviceId:"contacts",mimeType:_.aX(V,7),name:V.getName(),description:_.aX(V,3),url:"mailto:"+w,thumbnail:[{url:_.aX(V,11)}],email:w}});
return{action:W,docs:y,view:"contacts",v2Translated:!0}},hLz=function(y){if(!y)return{};
var W=_.aX(y,3);W=W&&JSON.parse(W)||{};return{0:_.aX(y,1),1:_.aX(y,2),2:W}},GF=function(y,W){W=W===void 0?"":W;
if(!y.length)return null;W=="etjpg"&&(y=y.filter(function(V){return V.getUrl().includes("w1200-h300")}));
return y.map(function(V){return{url:V.getUrl(),height:V.getHeight(),width:V.getWidth(),type:W}})},S1i=function(y){return{isAttachment:y.some(function(W){return _.nF(W,31)})}},DOr=function(y){var W,V={id:(W=y.getId())==null?void 0:W.getId(),
serviceId:xOA(y),mimeType:_.aX(y,7),name:y.getName(),type:aP(y),sizeBytes:Number(CAG(y)),description:_.aX(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:GF(z0(y)),isNew:!0};if(W=_.Da(y,dD,30)){V.dataUrl=_.aX(W,1)||null;a:{var w=_.Da(y,dD,30);switch(_.rK(w,3)){case 9:w=_.ZT(w,ERf,2,Lw);w={remoteRefs:w&&_.aX(w,1)};break a;case 10:case 15:w=_.ZT(w,Fhr,4,Lw);var t=z0(y);w={photo_id:w&&_.aX(w,1),media_key:y.getId().getId(),media_type:_.rK(y,6)===1?1:2,image_url:t&&
t[0].getUrl(),width:t&&String(t[0].getWidth()),height:t&&String(t[0].getHeight())};break a}w=null}V.uploadMetadata=w;V.uploadId=_.aX(W,9)||null;V.uploadState=kJr(W)||null}(w=W&&_.ZT(W,Fhr,4,Lw))&&(V.id=_.aX(w,1));(w=W&&_.ZT(W,N3s,5,Lw))&&(V.contentId=_.aX(w,1));(w=W&&_.ZT(W,wZs,7,Lw))&&(V.contentId=_.aX(w,1));(w=W&&_.ZT(W,thi,6,Lw))&&(V.contentId=_.aX(w,1));(W==null?void 0:_.rK(W,3))===1&&(V.mediaKey=y.getId().getId());return V},xOA=function(y){var W;
switch(((W=_.Da(y,dD,30))==null?void 0:_.rK(W,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},aP=function(y){switch(_.rK(y,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 _.aX(y,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},kJr=function(y){switch(y==null?void 0:_.rK(y,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 Bim,sAI,AsQ,Y1Q;_.JsK=function(y,W){var V=W||{};W=V.document||document;var w=_.$R(y).toString(),t=(new jd(W)).createElement("SCRIPT"),F={script_:t,timeout_:void 0},I=new gF(sAI,F),P=null,C=V.timeout!=null?V.timeout:5E3;C>0&&(P=window.setTimeout(function(){AsQ(t,!0);I.errback(new Y1Q(1,"Timeout reached for loading script "+w))},C),F.timeout_=P);
t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||(AsQ(t,V.cleanupWhenDone||!1,P),I.callback(null))};
t.onerror=function(){AsQ(t,!0,P);I.errback(new Y1Q(0,"Error while loading script "+w))};
F=V.attributes||{};_.Gc.extend(F,{type:"text/javascript",charset:"UTF-8"});$ri(t,F);_.zC(t,y);Bim(W).appendChild(t);return I};
Bim=function(y){var W=sf("HEAD",y);return W&&W.length!==0?W[0]:y.documentElement};
sAI=function(){if(this&&this.script_){var y=this.script_;y&&y.tagName=="SCRIPT"&&AsQ(y,!0,this.timeout_)}};
AsQ=function(y,W,V){V!=null&&_.Vj.clearTimeout(V);y.onload=function(){};
y.onerror=function(){};
y.onreadystatechange=function(){};
W&&window.setTimeout(function(){_.ku(y)},0)};
Y1Q=function(y,W){var V="Jsloader error (code #"+y+")";W&&(V+=": "+W);_.yj.call(this,V);this.code=y};
_.pF(Y1Q,_.yj);var RLq=_.CF(["https://apis.google.com/js/api.js"]),jAf=_.Tc(RLq),X4z=function(y,W){var V=!1,w=$Oz(y,W).then(function(F){V=!0;return F}),t=_.zCE(5E3).then(function(){return V?$Oz(y,W):n_K(W).then(function(F){return HBE(F,y)})});
return tDi([w,t])},$Oz=function(y,W){return a3E(W).then(function(V){return HBE(V,y)})},HBE=function(y,W){var V=_.tv(W,"gapi.")?W.slice(5):W;
return y[V]?_.T2(y[V]):new _.qN(function(w,t){var F=nw(function(){t(Error("fb"))},3E4);
y.load(W,{callback:function(){_.Vj.clearTimeout(F);w(y[V])},
onerror:function(I){_.Vj.clearTimeout(F);t(I)}})})},a3E=function(y){return y.gapi&&y.gapi.load?_.T2(y.gapi):n_K(y)},n_K=function(y){return _.JsK(jAf,{document:y.document}).then(function(){return y.gapi})},GJr=function(){};
GJr.prototype.load=function(y,W){W=W===void 0?window:W;var V=Date.now();return X4z(y,W).then(function(w){var t=Date.now();return{library:w,loadStartMs:V,loadEndMs:t}},function(w){throw w instanceof Error?w:Error(String(w));
})};var GJa=function(){_.Ru.call(this);this.gapiLoader_=new GJr;this.origin_=null;this.gapiPickerIframeResolver_=_.v5();this.gapiIframesResolver_=_.v5();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.p(GJa,_.Ru);var rsE=function(y,W){var V=_.ts("gapi.iframes",W);return V?(y=Date.now(),_.T2({library:V,loadStartMs:y,loadEndMs:y})):y.gapiLoader_.load("gapi.iframes",W)},bB2=function(y,W,V,w,t,F){var I=!1;
I=I===void 0?!1:I;rsE(y,QL(W.ownerDocument)).then(function(P){var C=P.library;y.gapiIframesResolver_.resolve(C);P=y.gapiPickerIframeResolver_;var d=P.resolve,L=I;L=L===void 0?!1:L;var z={};z["host-message-handler"]=V;y.hostMessageHandlerInternal_=z;var c=_.Ey(w);c=_.Ey(c);c=_.eb(_.cY(_.zF(new _.gw,c.scheme_),c.JSC$9958_domain_),c.JSC$9958_port_).toString();y.origin_=c;c=(new dVf).setUrl(w);c.JSC$9973_obj_.where=W;c.JSC$9973_obj_.allowPost=L;c.JSC$9973_obj_.messageHandlers=z;L=_.ts("makeWhiteListIframesFilter",
C)([y.origin_]);c.JSC$9973_obj_.messageHandlersFilter=L;t!=null&&(c.JSC$9973_obj_.id=t);F!=null&&(c.JSC$9973_obj_.rpctoken=F);L=vVJ(c);L.JSC$9970_obj_.style={display:"block","min-width":"100%",width:"1px"};L.JSC$9970_obj_.height="100%";vVJ(c).value().allow="camera 'src' "+y.origin_;C=C.getContext().openChild(c.value());d.call(P,C)},function(P){y.gapiIframesResolver_.reject(P);
y.gapiPickerIframeResolver_.reject(P)});
return y.gapiPickerIframeResolver_.promise},QAQ=function(y,W){return _.jI([y.gapiIframesResolver_.promise,
y.gapiPickerIframeResolver_.promise]).then(function(V){var w=_.N(V);V=w.next().value;return(w=w.next().value)?w.send("picker-message-handler",W,void 0,_.ts("makeWhiteListIframesFilter",V)([y.origin_])):_.Gb(Error("gb"))})};
GJa.prototype.disposeInternal=function(){ZBK(this);_.Ru.prototype.disposeInternal.call(this)};
var ZBK=function(y){y.gapiPickerIframeResolver_.promise.then(function(W){W&&(W.unregister("host-message-handler"),delete y.hostMessageHandlerInternal_["host-message-handler"])})};var yfq=function(){this.JSC$10060_nextId=0};var V1Q=function(y,W){switch(y.action){case "select-contacts":y=W9z(y.contacts);break;case "visibility":y=y.visible;var V=new hP;y=_.W8(V,1,7).setVisible(y);V={};V["iframe-command"]=y.serialize();y=V;break;default:y=null}return y?QAQ(W,y):_.T2()},W9z=function(y){if(!y||y.length==0)return null;
var W=new hP;_.W8(W,1,11);var V=new yfq;y.forEach(function(w){if(w.email){var t=new j6;t=_.Pm(t,2,w.name?w.name:w.email);var F=new y_m;w=_.oEv(F,1,_.YE,w.email,_.Jm);w=_.sx(t,27,w);t=new bem;F=":"+(V.JSC$10060_nextId++).toString(36);t=_.Pm(t,1,F);t=_.W8(t,2,12);w=_.sx(w,1,t)}else w=null;w&&DY(W,7,j6,w)});
y={};y["iframe-command"]=W.serialize();return y};_.wUi=function(){if(T2u){var y=/Windows NT ([0-9.]+)/;return(y=y.exec(_.cy()))?y[1]:"0"}return _.fhy?(y=/1[0|1][_.][0-9_.]+/,(y=y.exec(_.cy()))?y[0].replace(/_/g,"."):"10"):B6v?(y=/Android\s+([^\);]+)(\)|;)/,(y=y.exec(_.cy()))?y[1]:""):MOa||qku||Uej?(y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(y=y.exec(_.cy()))?y[1].replace(/_/g,"."):""):""}();var rF;rF=function(y){return(y=y.exec(_.cy()))?y[1]:""};
_.t1Q=function(){if(_.uP)return rF(/Firefox\/([0-9.]+)/);if(_.mU||O6||KQP)return sIb;if(_.S6){if(_.kP()||_.dad()){var y=rF(/CriOS\/([0-9.]+)/);if(y)return y}return rF(/Chrome\/([0-9.]+)/)}if(_.yi&&!_.kP())return rF(/Version\/([0-9.]+)/);if(N5R||IHv){if(y=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.cy()))return y[1]+"."+y[2]}else if(Rcv)return(y=rF(/Android\s+([0-9.]+)/))?y:rF(/Version\/([0-9.]+)/);return""}();var F9Q=function(){};
_.oX(F9Q);F9Q.prototype.nextId_=0;_.bK=function(y){return":"+(y.nextId_++).toString(36)};var Qx=function(y){_.Bg.call(this);this.JSC$10068_dom_=y||RS();this.JSC$10068_id_=null;this.inDocument_=!1;this.JSC$10068_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.pF(Qx,_.Bg);Qx.prototype.idGenerator_=F9Q.getInstance();Qx.prototype.getId=function(){return this.JSC$10068_id_||(this.JSC$10068_id_=_.bK(this.idGenerator_))};
Qx.prototype.getElement=function(){return this.JSC$10068_element_};
var Ze=function(y){y.googUiComponentHandler_||(y.googUiComponentHandler_=new _.eK(y));return y.googUiComponentHandler_},E2Q=function(y,W){if(y==W)throw Error("hb");
var V;if(V=W&&y.parent_&&y.JSC$10068_id_){V=y.parent_;var w=y.JSC$10068_id_;V=V.childIndex_&&w?_.Gc.get(V.childIndex_,w)||null:null}if(V&&y.parent_!=W)throw Error("hb");y.parent_=W;Qx.superClass_.setParentEventTarget.call(y,W)};
Qx.prototype.setParentEventTarget=function(y){if(this.parent_&&this.parent_!=y)throw Error("ib");Qx.superClass_.setParentEventTarget.call(this,y)};
Qx.prototype.JSC$10070_createDom=function(){this.JSC$10068_element_=this.JSC$10068_dom_.createElement("DIV")};
Qx.prototype.render=function(y){NEm(this,y)};
var NEm=function(y,W,V){if(y.inDocument_)throw Error("jb");y.JSC$10068_element_||y.JSC$10070_createDom();W?W.insertBefore(y.JSC$10068_element_,V||null):y.JSC$10068_dom_.JSC$9250_document_.body.appendChild(y.JSC$10068_element_);y.parent_&&!y.parent_.inDocument_||y.enterDocument()};
_.E=Qx.prototype;_.E.decorate=function(y){if(this.inDocument_)throw Error("jb");if(y&&this.canDecorate(y)){this.wasDecorated_=!0;var W=_.ZS(y);this.JSC$10068_dom_&&this.JSC$10068_dom_.JSC$9250_document_==W||(this.JSC$10068_dom_=RS(y));this.decorateInternal(y);this.enterDocument()}else throw Error("kb");};
_.E.canDecorate=function(){return!0};
_.E.decorateInternal=function(y){this.JSC$10068_element_=y};
_.E.enterDocument=function(){this.inDocument_=!0;Ibq(this,function(y){!y.inDocument_&&y.getElement()&&y.enterDocument()})};
_.E.exitDocument=function(){Ibq(this,function(y){y.inDocument_&&y.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.E.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Ibq(this,function(y){y.dispose()});
!this.wasDecorated_&&this.JSC$10068_element_&&_.ku(this.JSC$10068_element_);this.parent_=this.model_=this.JSC$10068_element_=this.childIndex_=this.children_=null;Qx.superClass_.disposeInternal.call(this)};
_.E.getModel=function(){return this.model_};
_.E.addChild=function(y,W){var V=this.children_?this.children_.length:0;if(y.inDocument_&&(W||!this.inDocument_))throw Error("jb");if(V<0||V>(this.children_?this.children_.length:0))throw Error("lb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);y.parent_==this?(_.Gc.set(this.childIndex_,y.getId(),y),_.GG(this.children_,y)):_.Gc.add(this.childIndex_,y.getId(),y);E2Q(y,this);_.oPj(this.children_,V,0,y);y.inDocument_&&this.inDocument_&&y.parent_==this?(W=this.getContentElement(),
(W.childNodes[V]||null)!=y.getElement()&&(y.getElement().parentElement==W&&W.removeChild(y.getElement()),V=W.childNodes[V]||null,W.insertBefore(y.getElement(),V))):W?(this.JSC$10068_element_||this.JSC$10070_createDom(),V=this.children_?this.children_[V+1]||null:null,NEm(y,this.getContentElement(),V?V.JSC$10068_element_:null)):this.inDocument_&&!y.inDocument_&&y.JSC$10068_element_&&y.JSC$10068_element_.parentNode&&y.JSC$10068_element_.parentNode.nodeType==1&&y.enterDocument()};
_.E.getContentElement=function(){return this.JSC$10068_element_};
var Ibq=function(y,W){y.children_&&y.children_.forEach(W,void 0)};
Qx.prototype.removeChild=function(y,W){if(y){var V=typeof y==="string"?y:y.getId();y=this.childIndex_&&V?_.Gc.get(this.childIndex_,V)||null:null;V&&y&&(_.Gc.remove(this.childIndex_,V),_.GG(this.children_,y),W&&(y.exitDocument(),y.JSC$10068_element_&&_.ku(y.JSC$10068_element_)),E2Q(y,null))}if(!y)throw Error("mb");return y};_.pF(Biu,Y14);_.pF(Jsj,Y14);var g2K;_.Gc.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var PhK=function(y,W){W?y.setAttribute("role",W):y.removeAttribute("role")},yy=function(y,W,V){Array.isArray(V)&&(V=V.join(" "));
var w="aria-"+W;V===""||V==void 0?(g2K||(V={},g2K=(V.atomic=!1,V.autocomplete="none",V.dropeffect="none",V.haspopup=!1,V.live="off",V.multiline=!1,V.multiselectable=!1,V.orientation="vertical",V.readonly=!1,V.relevant="additions text",V.required=!1,V.sort="none",V.busy=!1,V.disabled=!1,V.hidden=!1,V.invalid="false",V)),V=g2K,W in V?y.setAttribute(w,V[W]):y.removeAttribute(w)):y.setAttribute(w,V)};var ChI;_.Ws=function(y,W,V){_.Bg.call(this);this.target=y;this.handle=W||y;this.limits=V||new yl(NaN,NaN,NaN,NaN);this.JSC$10073_document_=_.ZS(y);this.JSC$10073_eventHandler_=new _.eK(this);_.Uf(this,this.JSC$10073_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;_.XZ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ChI};
_.pF(_.Ws,_.Bg);ChI=_.Vj.document&&_.Vj.document.documentElement&&!!_.Vj.document.documentElement.setCapture&&!!_.Vj.document.releaseCapture;_.OAK=function(y,W){y.hysteresisDistanceSquared_=Math.pow(W,2)};
_.E=_.Ws.prototype;_.E.setEnabled=function(y){this.enabled_=y};
_.E.disposeInternal=function(){_.Ws.superClass_.disposeInternal.call(this);_.Ys(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10073_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10073_document_.releaseCapture();this.handle=this.target=null};
_.E.startDrag=function(y){var W=y.type=="mousedown";if(!this.enabled_||this.dragging_||W&&(y.event_.button!=0||_.fhy&&y.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Vy("start",this,y.clientX,y.clientY,y)))this.dragging_=!0,W&&y.preventDefault();else return;else W&&y.preventDefault();W=this.JSC$10073_document_;var V=W.documentElement,w=!this.useSetCapture_;this.JSC$10073_eventHandler_.listen(W,["touchmove","mousemove"],this.handleMove_,
{capture:w,passive:!1});this.JSC$10073_eventHandler_.listen(W,["touchend","mouseup"],this.endDrag,w);this.useSetCapture_?(V.setCapture(!1),this.JSC$10073_eventHandler_.listen(V,"losecapture",this.endDrag)):this.JSC$10073_eventHandler_.listen(QL(W),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10073_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,w);this.clientX=this.startX=y.clientX;this.clientY=this.startY=y.clientY;this.screenX=y.screenX;this.screenY=y.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=JU(RS(this.JSC$10073_document_))}};
_.E.endDrag=function(y,W){this.JSC$10073_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10073_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Vy("end",this,y.clientX,y.clientY,y,v2s(this,this.deltaX),dkq(this,this.deltaY),W||y.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.E.handleMove_=function(y){if(this.enabled_){var W=y.clientX-this.clientX,V=y.clientY-this.clientY;this.clientX=y.clientX;this.clientY=y.clientY;this.screenX=y.screenX;this.screenY=y.screenY;if(!this.dragging_){var w=this.startX-this.clientX,t=this.startY-this.clientY;if(w*w+t*t>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Vy("start",this,y.clientX,y.clientY,y)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(y);return}}V=L92(this,W,V);W=V.x;V=V.y;this.dragging_&&this.dispatchEvent(new Vy("beforedrag",
this,y.clientX,y.clientY,y,W,V))&&(zyI(this,y,W,V),y.preventDefault())}};
var L92=function(y,W,V){var w=JU(RS(y.JSC$10073_document_));W+=w.x-y.pageScroll.x;V+=w.y-y.pageScroll.y;y.pageScroll=w;y.deltaX+=W;y.deltaY+=V;return new _.bj(v2s(y,y.deltaX),dkq(y,y.deltaY))};
_.Ws.prototype.onScroll_=function(y){var W=L92(this,0,0);y.clientX=this.clientX;y.clientY=this.clientY;zyI(this,y,W.x,W.y)};
var zyI=function(y,W,V,w){y.target.style.left=V+"px";y.target.style.top=w+"px";y.dispatchEvent(new Vy("drag",y,W.clientX,W.clientY,W,V,w))},v2s=function(y,W){var V=y.limits;
y=isNaN(V.left)?null:V.left;V=isNaN(V.width)?0:V.width;return Math.min(y!=null?y+V:Infinity,Math.max(y!=null?y:-Infinity,W))},dkq=function(y,W){var V=y.limits;
y=isNaN(V.top)?null:V.top;V=isNaN(V.height)?0:V.height;return Math.min(y!=null?y+V:Infinity,Math.max(y!=null?y:-Infinity,W))};
_.Ws.prototype.isDragging=function(){return this.dragging_};
var Vy=function(y,W,V,w,t,F,I){_.xs.call(this,y);this.clientX=V;this.clientY=w;this.browserEvent=t;this.left=F!==void 0?F:W.deltaX;this.top=I!==void 0?I:W.deltaY};
_.pF(Vy,_.xs);var w6=function(y){this.JSC$10080_map_=new Map;var W=arguments.length;if(W>1){if(W%2)throw Error("sa");for(var V=0;V<W;V+=2)this.set(arguments[V],arguments[V+1])}else y&&this.addAll(y)};
_.E=w6.prototype;_.E.getCount=function(){return this.JSC$10080_map_.size};
_.E.getValues=function(){return Array.from(this.JSC$10080_map_.values())};
_.E.getKeys=function(){return Array.from(this.JSC$10080_map_.keys())};
_.E.containsKey=function(y){return this.JSC$10080_map_.has(y)};
_.E.containsValue=function(y){return this.getValues().some(function(W){return W==y})};
_.E.equals=function(y,W){var V=this;W=W===void 0?function(w,t){return w===t}:W;
return this===y?!0:this.JSC$10080_map_.size!=y.getCount()?!1:this.getKeys().every(function(w){return W(V.JSC$10080_map_.get(w),y.get(w))})};
_.E.isEmpty=function(){return this.JSC$10080_map_.size==0};
_.E.clear=function(){this.JSC$10080_map_.clear()};
_.E.remove=function(y){return this.JSC$10080_map_.delete(y)};
_.E.get=function(y,W){return this.JSC$10080_map_.has(y)?this.JSC$10080_map_.get(y):W};
_.E.set=function(y,W){this.JSC$10080_map_.set(y,W);return this};
_.E.addAll=function(y){if(y instanceof w6){y=_.N(y.JSC$10080_map_);for(var W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;this.JSC$10080_map_.set(W,V)}}else if(y)for(y=_.N(Object.entries(y)),W=y.next();!W.done;W=y.next())V=_.N(W.value),W=V.next().value,V=V.next().value,this.JSC$10080_map_.set(W,V)};
_.E.forEach=function(y,W){var V=this;W=W===void 0?this:W;this.JSC$10080_map_.forEach(function(w,t){return y.call(W,w,t,V)})};
_.E.clone=function(){return new w6(this)};(function(){for(var y=["ms","moz","webkit","o"],W,V=0;W=y[V]&&!_.Vj.requestAnimationFrame;++V)_.Vj.requestAnimationFrame=_.Vj[W+"RequestAnimationFrame"],_.Vj.cancelAnimationFrame=_.Vj[W+"CancelAnimationFrame"]||_.Vj[W+"CancelRequestAnimationFrame"];if(!_.Vj.requestAnimationFrame){var w=0;_.Vj.requestAnimationFrame=function(t){var F=(new Date).getTime(),I=Math.max(0,16-(F-w));w=F+I;return _.Vj.setTimeout(function(){t(F+I)},I)};
_.Vj.cancelAnimationFrame||(_.Vj.cancelAnimationFrame=function(t){clearTimeout(t)})}})();
var cfs=[[],[]],eyK=0,hyA=!1,o2K=0,pUK=function(y,W){var V=o2K++,w={measureTask:{id:V,fn:y.measure,context:W},mutateTask:{id:V,fn:y.mutate,context:W},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(w.args||(w.args=[]),w.args.length=0,w.args.push.apply(w.args,arguments),w.args.push(w.state)):w.args&&w.args.length!=0?(w.args[0]=w.state,w.args.length=1):w.args=[w.state];w.isScheduled||(w.isScheduled=!0,cfs[eyK].push(w));hyA||(hyA=!0,window.requestAnimationFrame(K9m))}},K9m=
function(){hyA=!1;
var y=cfs[eyK],W=y.length;eyK=(eyK+1)%2;for(var V,w=0;w<W;++w){V=y[w];var t=V.measureTask;V.isScheduled=!1;t.fn&&t.fn.apply(t.context,V.args)}for(w=0;w<W;++w)V=y[w],t=V.mutateTask,V.isScheduled=!1,t.fn&&t.fn.apply(t.context,V.args),V.state={};y.length=0};var iAE=_.CF(["about:blank"]),fbE=_.CF(["javascript:undefined"]),TEJ=_.Tc(iAE);_.$R(TEJ);var mk6=_.Tc(fbE);_.$R(mk6);var tR=function(y){_.Bg.call(this);this.JSC$10086_element_=y;this.listenKeyIn_=_.XZ(this.JSC$10086_element_,"focus",this,!0);this.listenKeyOut_=_.XZ(this.JSC$10086_element_,"blur",this,!0)};
_.pF(tR,_.Bg);tR.prototype.handleEvent=function(y){var W=new _.ks(y.event_);W.type=y.type=="focusin"||y.type=="focus"?"focusin":"focusout";this.dispatchEvent(W)};
tR.prototype.disposeInternal=function(){tR.superClass_.disposeInternal.call(this);$c(this.listenKeyIn_);$c(this.listenKeyOut_);delete this.JSC$10086_element_};var M1R=function(y,W){this.JSC$10089_element_=y;this.JSC$10089_dom_=W};var Fb=function(y,W){Qx.call(this,W);this.useIframeMask_=!!y;this.lastFocus_=null;this.resizeBackgroundTask_=pUK({mutate:this.resizeBackground_},this);pUK({mutate:this.updateModalAndBackground_},this)};
_.pF(Fb,Qx);_.E=Fb.prototype;_.E.focusHandler_=null;_.E.visible_=!1;_.E.bgEl_=null;_.E.bgIframeEl_=null;_.E.tabCatcherElement_=null;_.E.backwardTabWrapInProgress_=!1;_.E.getCssClass=function(){return"goog-modalpopup"};
_.E.getBackgroundElement=function(){return this.bgEl_};
_.E.JSC$10070_createDom=function(){Fb.superClass_.JSC$10070_createDom.call(this);var y=this.getElement(),W=vy(this.getCssClass()).split(" ");NY(y,W);y.tabIndex=0;_.gf(y,!1);q62(this);Ukm(this)};
var q62=function(y){if(y.useIframeMask_&&!y.bgIframeEl_){var W=y.JSC$10068_dom_.JSC$9252_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.g$(W,TEJ);y.bgIframeEl_=W;y.bgIframeEl_.className=y.getCssClass()+"-bg";_.gf(y.bgIframeEl_,!1);h4K(y.bgIframeEl_,0)}y.bgEl_||(y.bgEl_=y.JSC$10068_dom_.JSC$9252_createDom("DIV",y.getCssClass()+"-bg"),_.gf(y.bgEl_,!1))},Ukm=function(y){y.tabCatcherElement_||(y.tabCatcherElement_=y.JSC$10068_dom_.createElement("SPAN"),_.gf(y.tabCatcherElement_,
!1),y.tabCatcherElement_.tabIndex=0,y.tabCatcherElement_.style.position="absolute")};
_.E=Fb.prototype;_.E.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.E.canDecorate=function(y){return!!y&&y.tagName=="DIV"};
_.E.decorateInternal=function(y){Fb.superClass_.decorateInternal.call(this,y);y=vy(this.getCssClass()).split(" ");NY(this.getElement(),y);q62(this);Ukm(this);this.getElement().tabIndex=0;_.gf(this.getElement(),!1)};
_.E.enterDocument=function(){this.bgIframeEl_&&_.r4(this.bgIframeEl_,this.getElement());_.r4(this.bgEl_,this.getElement());Fb.superClass_.enterDocument.call(this);_.bQ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new tR(this.JSC$10068_dom_.JSC$9250_document_);Ze(this).listen(this.focusHandler_,"focusin",this.onFocus);u1m(this,!1)};
_.E.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.La(this.focusHandler_);Fb.superClass_.exitDocument.call(this);_.ku(this.bgIframeEl_);_.ku(this.bgEl_);_.ku(this.tabCatcherElement_)};
_.E.setVisible=function(y){if(y!=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_&&u1m(this,y),y){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10068_dom_.JSC$9250_document_.activeElement}catch(t){}this.updateModalAndBackground_();Ze(this).listen(this.JSC$10068_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10068_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);S6Q(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)jY(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Ze(this).unlisten(this.JSC$10068_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10068_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)jY(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var W=this.JSC$10068_dom_,V=W.JSC$9250_document_.body,w=W.JSC$9250_document_.activeElement||V;if(!this.lastFocus_||this.lastFocus_==V){this.lastFocus_=null;break a}(w==V||W.contains(this.getElement(),w))&&this.lastFocus_.focus()}catch(t){}this.lastFocus_=
null}}};
var u1m=function(y,W){y.modalAriaVisibilityHelper_||(y.modalAriaVisibilityHelper_=new M1R(y.JSC$10068_element_,y.JSC$10068_dom_));y=y.modalAriaVisibilityHelper_;if(W){y.hiddenElements_||(y.hiddenElements_=[]);W=y.JSC$10089_dom_.getChildren(y.JSC$10089_dom_.JSC$9250_document_.body);for(var V=0;V<W.length;V++){var w=W[V],t;if(t=w!=y.JSC$10089_element_)t=w.getAttribute("aria-hidden"),t=!(t==null||t==void 0?0:String(t));t&&(yy(w,"hidden",!0),y.hiddenElements_.push(w))}}else if(y.hiddenElements_){for(W=
0;W<y.hiddenElements_.length;W++)y.hiddenElements_[W].removeAttribute("aria-hidden");y.hiddenElements_=null}};
Fb.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var S6Q=function(y,W){y.bgIframeEl_&&_.gf(y.bgIframeEl_,W);y.bgEl_&&_.gf(y.bgEl_,W);_.gf(y.getElement(),W);_.gf(y.tabCatcherElement_,W)};
_.E=Fb.prototype;_.E.onShow=function(){this.dispatchEvent("show")};
_.E.onHide=function(){S6Q(this,!1);this.dispatchEvent("hide")};
_.E.isVisible=function(){return this.visible_};
_.E.focus=function(){this.focusElement_()};
_.E.resizeBackground_=function(){this.bgIframeEl_&&_.gf(this.bgIframeEl_,!1);this.bgEl_&&_.gf(this.bgEl_,!1);var y=this.JSC$10068_dom_.JSC$9250_document_;var W=_.B3(QL(this.JSC$10068_dom_.JSC$9250_document_)||window);var V=Math.max(W.width,Math.max(y.body.scrollWidth,y.documentElement.scrollWidth));y=Math.max(W.height,Math.max(y.body.scrollHeight,y.documentElement.scrollHeight));this.bgIframeEl_&&(_.gf(this.bgIframeEl_,!0),_.LCE(this.bgIframeEl_,V,y));this.bgEl_&&(_.gf(this.bgEl_,!0),_.LCE(this.bgEl_,
V,y))};
_.E.reposition=function(){var y;if(_.du2(this.getElement())=="fixed")var W=y=0;else W=JU(this.JSC$10068_dom_),y=W.x,W=W.y;var V=cmR(this.getElement());var w=_.B3(QL(this.JSC$10068_dom_.JSC$9250_document_)||window);y=Math.max(y+w.width/2-V.width/2,0);W=Math.max(W+w.height/2-V.height/2,0);wD(this.getElement(),y,W);wD(this.tabCatcherElement_,y,W)};
_.E.onFocus=function(y){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():y.target==this.tabCatcherElement_&&nw(this.focusElement_,0,this)};
_.E.focusElement_=function(){try{this.getElement().focus()}catch(y){}};
_.E.disposeInternal=function(){_.La(this.popupShowTransition_);this.popupShowTransition_=null;_.La(this.popupHideTransition_);this.popupHideTransition_=null;_.La(this.bgShowTransition_);this.bgShowTransition_=null;_.La(this.bgHideTransition_);this.bgHideTransition_=null;Fb.superClass_.disposeInternal.call(this)};var Za=function(y,W,V){Fb.call(this,W,V);this.JSC$10099_class_=y||"modal-dialog";this.buttons_=(new EK).addButton(Dkz,!0).addButton(lbf,!1,!0)};
_.pF(Za,Fb);_.E=Za.prototype;_.E.escapeToCancel_=!0;_.E.hasTitleCloseButton_=!0;_.E.modal_=!0;_.E.draggable_=!0;_.E.backgroundElementOpacity_=.5;_.E.title_="";_.E.JSC$10101_dragger_=null;_.E.JSC$10101_disposeOnHide_=!1;_.E.titleEl_=null;_.E.titleTextEl_=null;_.E.titleTextId_=null;_.E.titleCloseEl_=null;_.E.contentEl_=null;_.E.buttonEl_=null;_.E.getCssClass=function(){return this.JSC$10099_class_};
_.E.setTitle=function(y){this.title_=y;this.titleTextEl_&&_.Zx(this.titleTextEl_,y)};
_.E.getTitle=function(){return this.title_};
_.E.getContent=function(){return""};
_.E.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var xkq=function(y){y.getElement()||y.render();return y.getElement()};
Za.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Za.superClass_.getBackgroundElement.call(this)};
var kpr=function(y,W){y.backgroundElementOpacity_=W;y.getElement()&&(W=y.getBackgroundElement())&&h4K(W,y.backgroundElementOpacity_)};
Za.prototype.setDraggable=function(y){this.draggable_=y;sVz(this,y&&this.inDocument_)};
Za.prototype.JSC$10101_handleDrag=function(){};
var sVz=function(y,W){var V=vy(y.JSC$10099_class_+"-title-draggable").split(" ");y.getElement()&&(W?NY(y.titleEl_,V):POq(y.titleEl_,V));W&&!y.JSC$10101_dragger_?(W=new _.Ws(y.getElement(),y.titleEl_),y.JSC$10101_dragger_=W,NY(y.titleEl_,V),_.XZ(y.JSC$10101_dragger_,"start",y.setDraggerLimits_,!1,y),_.XZ(y.JSC$10101_dragger_,"drag",y.JSC$10101_handleDrag,!1,y)):!W&&y.JSC$10101_dragger_&&(y.JSC$10101_dragger_.dispose(),y.JSC$10101_dragger_=null)};
_.E=Za.prototype;
_.E.JSC$10070_createDom=function(){Za.superClass_.JSC$10070_createDom.call(this);var y=this.getElement(),W=this.JSC$10068_dom_;this.titleTextId_=this.getId();var V=this.getId()+".contentEl";this.titleEl_=W.JSC$9252_createDom("DIV",this.JSC$10099_class_+"-title",this.titleTextEl_=W.JSC$9252_createDom("SPAN",{className:this.JSC$10099_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=W.JSC$9252_createDom("SPAN",this.JSC$10099_class_+"-title-close"));GRs(y,this.titleEl_,this.contentEl_=
W.JSC$9252_createDom("DIV",{className:this.JSC$10099_class_+"-content",id:V}),this.buttonEl_=W.JSC$9252_createDom("DIV",this.JSC$10099_class_+"-buttons"));PhK(this.titleTextEl_,"heading");PhK(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;yy(this.titleCloseEl_,"label","Close");PhK(y,"dialog");yy(y,"labelledby",this.titleTextId_||"");_.gf(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(y=this.buttons_,y.JSC$10102_element_=this.buttonEl_,y.render());_.gf(this.buttonEl_,!!this.buttons_);
kpr(this,this.backgroundElementOpacity_)};
_.E.decorateInternal=function(y){Za.superClass_.decorateInternal.call(this,y);y=this.getElement();var W=this.JSC$10099_class_+"-content";this.contentEl_=$W(document,null,W,y)[0];this.contentEl_||(this.contentEl_=this.JSC$10068_dom_.JSC$9252_createDom("DIV",W),y.appendChild(this.contentEl_));W=this.JSC$10099_class_+"-title";var V=this.JSC$10099_class_+"-title-text",w=this.JSC$10099_class_+"-title-close";(this.titleEl_=$W(document,null,W,y)[0])?(this.titleTextEl_=$W(document,null,V,this.titleEl_)[0],
this.titleCloseEl_=$W(document,null,w,this.titleEl_)[0]):(this.titleEl_=this.JSC$10068_dom_.JSC$9252_createDom("DIV",W),y.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=gEE(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.H8("SPAN",{className:V,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;yy(y,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10068_dom_.JSC$9252_createDom("SPAN",w),this.titleEl_.appendChild(this.titleCloseEl_));_.gf(this.titleCloseEl_,this.hasTitleCloseButton_);W=this.JSC$10099_class_+"-buttons";(this.buttonEl_=$W(document,null,W,y)[0])?(this.buttons_=new EK(this.JSC$10068_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10068_dom_.JSC$9252_createDom("DIV",W),y.appendChild(this.buttonEl_),this.buttons_&&(y=this.buttons_,y.JSC$10102_element_=this.buttonEl_,y.render()),_.gf(this.buttonEl_,
!!this.buttons_));kpr(this,this.backgroundElementOpacity_)};
_.E.enterDocument=function(){Za.superClass_.enterDocument.call(this);Ze(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Ze(this).listen(this.buttonEl_,"click",this.onButtonClick_);sVz(this,this.draggable_);Ze(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var y=this.getElement();PhK(y,"dialog");this.titleTextEl_.id!==""&&yy(y,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){y=this.JSC$10068_dom_;
var W=this.getBackgroundElement();y.removeNode(this.bgIframeEl_);y.removeNode(W)}this.isVisible()&&u1m(this,!1)}};
_.E.exitDocument=function(){this.isVisible()&&this.setVisible(!1);sVz(this,!1);Za.superClass_.exitDocument.call(this)};
_.E.setVisible=function(y){y!=this.isVisible()&&(this.inDocument_||this.render(),Za.superClass_.setVisible.call(this,y))};
_.E.onShow=function(){Za.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.E.onHide=function(){Za.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10101_disposeOnHide_&&this.dispose()};
_.E.setDraggerLimits_=function(){var y=this.JSC$10068_dom_.JSC$9250_document_,W=_.B3(QL(y)||window),V=Math.max(y.body.scrollWidth,W.width);y=Math.max(y.body.scrollHeight,W.height);var w=cmR(this.getElement());_.du2(this.getElement())=="fixed"?this.JSC$10101_dragger_.limits=new yl(0,0,Math.max(0,W.width-w.width),Math.max(0,W.height-w.height)):this.JSC$10101_dragger_.limits=new yl(0,0,V-w.width,y-w.height)};
_.E.onTitleCloseClick_=function(){Aff(this)};
var Aff=function(y){if(y.hasTitleCloseButton_){var W=y.buttons_,V=W&&W.cancelButton_;V?(W=W.get(V),y.dispatchEvent(new Nc(V,W))&&y.setVisible(!1)):y.setVisible(!1)}},Y6J=function(y){y.hasTitleCloseButton_=!1;
y.titleCloseEl_&&_.gf(y.titleCloseEl_,y.hasTitleCloseButton_)};
Za.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Za.superClass_.disposeInternal.call(this)};
Za.prototype.onButtonClick_=function(y){a:{for(y=y.target;y!=null&&y!=this.buttonEl_;){if(y.tagName=="BUTTON")break a;y=y.parentNode}y=null}if(y&&!y.disabled){y=y.name;var W=this.buttons_.get(y);this.dispatchEvent(new Nc(y,W))&&this.setVisible(!1)}};
Za.prototype.onKey_=function(y){var W=!1,V=!1,w=this.buttons_,t=y.target;if(y.type=="keydown")if(this.escapeToCancel_&&y.keyCode==27){var F=w&&w.cancelButton_;t=t.tagName=="SELECT"&&!t.disabled;F&&!t?(V=!0,W=w.get(F),W=this.dispatchEvent(new Nc(F,W))):t||(W=!0)}else{if(y.keyCode==9&&y.shiftKey&&t==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(L){}nw(this.resetBackwardTabWrap_,0,this)}}else if(y.keyCode==13){if(t.tagName=="BUTTON"&&!t.disabled)F=t.name;
else if(t==this.titleCloseEl_)Aff(this);else if(w){var I=w.defaultButton_,P;if(P=I)a:{P=sf("BUTTON",w.JSC$10102_element_);for(var C,d=0;C=P[d];d++)if(C.name==I||C.id==I){P=C;break a}P=null}t=(t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="A")&&!t.disabled;!P||P.disabled||t||(F=I)}F&&w&&(V=!0,W=this.dispatchEvent(new Nc(F,String(w.get(F)))))}else t!=this.titleCloseEl_||y.keyCode!=32&&y.key!=" "||Aff(this);if(W||V)y.stopPropagation(),y.preventDefault();W&&this.setVisible(!1)};
var Nc=function(y,W){this.type="dialogselect";this.key=y;this.caption=W};
_.pF(Nc,_.xs);var EK=function(y){w6.call(this);y||RS();this.cancelButton_=this.JSC$10102_element_=this.defaultButton_=null};
_.pF(EK,w6);_.E=EK.prototype;_.E.clear=function(){w6.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.E.set=function(y,W,V,w){w6.prototype.set.call(this,y,W);V&&(this.defaultButton_=y);w&&(this.cancelButton_=y);return this};
_.E.addButton=function(y,W,V){return this.set(y.key,y.caption,W,V)};
_.E.render=function(){if(this.JSC$10102_element_){_.c7(this.JSC$10102_element_,ZBj);var y=RS(this.JSC$10102_element_);this.forEach(function(W,V){W=y.JSC$9252_createDom("BUTTON",{name:V},W);V==this.defaultButton_&&(W.className="goog-buttonset-default");this.JSC$10102_element_.appendChild(W)},this)}};
_.E.decorate=function(y){if(y&&y.nodeType==1){this.JSC$10102_element_=y;y=sf("BUTTON",this.JSC$10102_element_);for(var W,V,w,t=0;W=y[t];t++)if(V=W.name||W.id,w=gEE(W)||W.value,V){var F=t==0;this.set(V,w,F,W.name=="cancel");F&&_.el(W,"goog-buttonset-default")}}};
_.E.getElement=function(){return this.JSC$10102_element_};
var Dkz={key:"ok",caption:"OK"},lbf={key:"cancel",caption:"Cancel"},BER={key:"yes",caption:"Yes"},JfR={key:"no",caption:"No"},RyA={key:"save",caption:"Save"},jVI={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new EK).addButton(Dkz,!0,!0),(new EK).addButton(Dkz,!0).addButton(lbf,!1,!0),(new EK).addButton(BER,!0).addButton(JfR,!1,!0),(new EK).addButton(BER).addButton(JfR,!0).addButton(lbf,!1,!0),(new EK).addButton(jVI).addButton(RyA).addButton(lbf,!0,!0));_.pF(RLd,Za);_.pF(jAL,y6);var $kR=_.CF(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),n2E=_.CF(["//apis.google.com/js/rpc.js"]),QA4=_.Tc($kR),bBn=_.Tc(n2E),n_j=null;var W1=function(y,W){_.Bg.call(this);this.JSC$10111_element_=y;y=_.Og(this.JSC$10111_element_)?this.JSC$10111_element_:this.JSC$10111_element_?this.JSC$10111_element_.body:null;this.isRtl_=!!y&&_.oEA(y);this.listenKey_=_.XZ(this.JSC$10111_element_,_.MW?"DOMMouseScroll":"mousewheel",this,W)};
_.pF(W1,_.Bg);W1.prototype.handleEvent=function(y){var W=0,V=0,w=y.event_;w.type=="mousewheel"?(y=HAq(-w.wheelDelta),w.wheelDeltaX!==void 0?(W=HAq(-w.wheelDeltaX),V=HAq(-w.wheelDeltaY)):V=y):(y=w.detail,y>100?y=3:y<-100&&(y=-3),w.axis!==void 0&&w.axis===w.HORIZONTAL_AXIS?W=y:V=y);typeof this.maxDeltaX_==="number"&&(W=_.QW(W,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(V=_.QW(V,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(W=-W);W=new XUf(y,w,W,V);this.dispatchEvent(W)};
var HAq=function(y){return _.qW&&(_.fhy||me4)&&y%40!=0?y:y/40};
W1.prototype.disposeInternal=function(){W1.superClass_.disposeInternal.call(this);$c(this.listenKey_);this.listenKey_=null};
var XUf=function(y,W,V,w){_.ks.call(this,W);this.type="mousewheel";this.detail=y;this.deltaX=V;this.deltaY=w};
_.pF(XUf,_.ks);_.hD=function(y){var W="instance_";if(y.instance_&&y.hasOwnProperty(W))return y.instance_;W=new y;return y.instance_=W};var rsz;var abf=_.CF(["https://about:blank"]),GpR=_.CF(['javascript:""']),rf2=_.CF(["about:blank"]);_.pF(P1,RLd);_.E=P1.prototype;_.E.JSC$10119_url_="";_.E.JSC$10119_iframe_=null;_.E.iframeLoaded_=!1;_.E.loadedFired_=!1;_.E.callback_=function(){};
_.E.enterDocument=function(){P1.superClass_.enterDocument.call(this);a3z(this.getBackgroundElement(),Ze(this))};
_.E.render=function(y){var W=this;P1.superClass_.render.call(this,y);this.useGapi_?rsE(this.iframeManager_,window).then(function(){return bAs(W)}).then(null,function(){W.callback_({action:"error"})}):QV6(this)};
var bAs=function(y){var W=y.JSC$10068_dom_.JSC$9252_createDom("div",["picker-dialog-content","picker-frame"]);_.gf(W,!1);y.getContentElement().appendChild(W);return bB2(y.iframeManager_,W,function(V){var w=d5E(V["iframe-command"]);switch(w.getCommand()){case 1:V=y.callback_;w=_.Da(w,eI,2);var t="";switch(w.getStatus()){case 2:t="cancel";break;case 1:t="picked";break;case 3:t="error"}var F=_.eA(w,j6,2,_.hG(b1G));w=F.length===0?{action:t}:uUr(F,t,_.Da(w,C_I,7));V.call(y,w);y.setVisible(!1);break;case 4:Y6J(y);
y.callback_({action:"loaded"});break;case 7:case 8:V=y.callback_;a:{t=w.getCommand();F=_.Da(w,eI,2);switch(t){case 7:t="uploadScheduled";break;case 8:t="uploadStateChange";break;default:w={};break a}w=_.eA(F,j6,2,_.hG(b1G));if(w.length===0)w={action:t};else{var I=_.Da(F,C_I,7);F=I&&_.aX(I,1);I=hLz(I);w=p4A(w,t,F,I)}}V.call(y,w)}},y.JSC$10119_url_,y.targetId_,y.rpcToken_).then(function(V){y.JSC$10119_iframe_=V.getIframeEl();
ZA6(y);_.gf(y.JSC$10119_iframe_.parentElement,!0);_.el(y.getElement(),"picker-dialog");yt6(y);return V})},QV6=function(y){y.JSC$10119_iframe_=y.JSC$10068_dom_.JSC$9252_createDom("IFRAME",{id:y.targetId_,
name:y.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.g$(y.JSC$10119_iframe_,W6q(y));_.el(y.getElement(),"picker-dialog");y.getContentElement().appendChild(y.JSC$10119_iframe_);Ze(y).listen(y.JSC$10119_iframe_,"load",function(){return void ZA6(y)});
y.JSC$10119_iframe_.src=y.JSC$10119_url_;yt6(y)},wpI=function(y){Vss(y,(0,_.jA)(function(W){W.setAuthToken(this.targetId_,this.rpcToken_)},y))},yt6=function(y){var W=_.N1(_.Ey(y.JSC$10119_url_),"title");
W&&y.setTitle(W)},W6q=function(y){return _.Cna("Internet Explorer")>=7&&_.tv(y.JSC$10119_url_,"https")?_.Tc(abf):_.mU?_.Tc(GpR):_.Tc(rf2)},ZA6=function(y){wpI(y);
y.iframeLoaded_=!0;y.JSC$10119_iframe_.tabIndex=0;y.isVisible()&&y.focus()};
P1.prototype.handleKeydown_=function(y){y.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),y.stopPropagation(),y.preventDefault())};
var Vss=function(y,W){var V=y.JSC$10117_gadgetsDomHelper_;HBz(function(){W(V.getWindow().gadgets.rpc)},V)};
P1.prototype.setUrl=function(y){y=_.If(new _.gw(y),"rpcService",this.targetId_);_.If(y,"rpctoken",this.rpcToken_);_.pH(y,"rpctoken="+this.rpcToken_);_.zF(y,"https");this.JSC$10119_url_=y.toString();this.JSC$10119_iframe_&&(this.JSC$10119_iframe_.src=this.JSC$10119_url_)};
var tsi=function(y,W){y.callback_=W;Vss(y,(0,_.jA)(function(V){V.register(this.targetId_,(0,_.jA)(this.handlePickerAction_,this))},y))};
P1.prototype.handlePickerAction_=function(y){var W=y.action;W=="loaded"&&(this.loadedFired_=!0,F66(this,new Jsj(this.isVisible())),EIE(this),Y6J(this),Ze(this).unlisten(this.JSC$10068_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10119_iframe_.tabIndex=0);W!="picked"&&W!="cancel"||this.setVisible(!1);this.callback_(y)};
var EIE=function(y){y.JSC$10119_appId_&&F66(y,new Biu(y.JSC$10119_appId_,window.location.protocol+"//"+window.location.host))};
P1.prototype.setRelayUrl=function(y){Vss(this,(0,_.jA)(function(W){W.setRelayUrl(this.targetId_,y)},this))};
var F66=function(y,W){y.useGapi_&&V1Q(W,y.iframeManager_).then(null,function(){y.callback_({action:"error"})});
Vss(y,(0,_.jA)(function(V){V.call(this.targetId_,"picker",null,W)},y))};
P1.prototype.resizePicker_=function(){var y=QL(this.JSC$10068_dom_.JSC$9250_document_)||window;if(_.N1(_.Ey(this.JSC$10119_url_),"ignoreLimits")=="true")y=new _.YY(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.N1(_.Ey(this.JSC$10119_url_),"shadeDialog")=="true"){var W=xkq(this);W=KCI(W);var V=_.B3(y);y=V.width-80;V=V.height-40;W&&(y-=W.left?W.left:0,y-=W.right?W.right:0,V-=W.top?W.top:0,V-=W.bottom?W.bottom:0);y=new _.YY(y>0?y:0,V>0?V:0)}else(W=this.preferredDialogWidth_)?(W=Math.max(320,
Math.min(1051,W)),(V=this.preferredDialogHeight_)||(V=_.B3(y).height*.85),V=Math.max(480,Math.min(650,V))):(W=_.B3(y),V=W.width*.618,V=V<W.height?Math.round(Math.max(480,Math.min(650,V*.85))):Math.round(Math.max(480,Math.min(650,W.height*.85))),W=Math.round(V/.618)),y=_.B3(y),W=Math.min(W,Math.max(y.width,320)),V=Math.min(V,Math.max(y.height,480)),y=new _.YY(W,V);_.LCE(this.getContentElement(),y);this.reposition()};
P1.prototype.reposition=function(){if(_.N1(_.Ey(this.JSC$10119_url_),"shadeDialog")=="true"){var y=cmR(this.getElement()),W=_.B3(this.JSC$10068_dom_.getWindow());y=Math.floor(W.width/2-y.width/2);W=xkq(this);if(W=KCI(W)){var V=W.left?W.left:0;V+=W.right?W.right:0;y=Math.floor(y-V/2)}y=y>0?y:0;W=JU(this.JSC$10068_dom_).y;wD(this.getElement(),y,W)}else P1.superClass_.reposition.call(this)};
P1.prototype.setVisible=function(y){if(y!=this.isVisible()&&this.autoSizeDialog_){var W=this.JSC$10068_dom_.getWindow();y?(this.resizePicker_(),Ze(this).listen(W,"resize",this.resizePicker_),this.iframeLoaded_||Ze(this).listen(W,"keydown",this.handleKeydown_)):(Ze(this).unlisten(W,"resize",this.resizePicker_),this.iframeLoaded_||Ze(this).unlisten(W,"keydown",this.handleKeydown_))}P1.superClass_.setVisible.call(this,y);F66(this,new Jsj(y))};
P1.prototype.focus=function(){P1.superClass_.focus.call(this);if(this.JSC$10119_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10119_iframe_.focus()}catch(y){}};var rP=function(y,W){W=W===void 0?P1:W;y6.call(this,y);this.pickerConstructor=W;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(y=window.location.origin)||(y=window.location.protocol+"//"+window.location.host);y&&this.urlParamMap_.set("origin",y);this.postProcessors_=[]};
_.p(rP,jAL);rP.prototype.JSC$10124_disposeOnHide_=!1;
rP.prototype.build=function(){this.JSC$10025_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10025_appId_);this.getRelayUrl()||this.setRelayUrl(_.oP(_.pH(_.KH(_.Ey(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("nb");var y=new this.pickerConstructor(NQA(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);y.JSC$10101_disposeOnHide_=this.JSC$10124_disposeOnHide_;
y.JSC$10119_appId_=this.JSC$10025_appId_;y.loadedFired_&&EIE(y);tsi(y,this.callback_);return y};
var IYA=function(y){y.urlParamMap_.set("multiselectEnabled","true");return y};
_.E=rP.prototype;_.E.getHeight=function(){return this.dialogHeight_};
_.E.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.E.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.E.getTitle=function(){return this.urlParamMap_.get("title")};
_.E.getWidth=function(){return this.dialogWidth_};
var gIJ=function(y){y.JSC$10124_disposeOnHide_=void 0;return y};
rP.prototype.setRelayUrl=function(y){this.urlParamMap_.set("parent",y);return this};
var PbQ=function(y,W){y.urlParamMap_.set("selectButtonLabel",W);return y};
rP.prototype.setSize=function(y,W){this.dialogWidth_=y;this.dialogHeight_=W;return this};
rP.prototype.setTitle=function(y){this.urlParamMap_.set("title",y);return this};
var NQA=function(y){y.postProcessors_.length&&y.urlParamMap_.set("pp",JSON.stringify(y.postProcessors_));y.urlParamMap_.set("nav",LjQ(y.nav_));var W=new _.gw(y.getBaseUrl());y.urlParamMap_.forEach(function(V,w){_.If(W,w,V)});
return W};var vIR=function(y,W){y.name!==void 0?(this.name=y.name,this.code=Cbq[y.name]):(this.code=y=y.code,this.name=Oi2(y));_.yj.call(this,Szi("%s %s",this.name,W))};
_.pF(vIR,_.yj);var Oi2=function(y){var W=_.Gc.findKey(Cbq,function(V){return y==V});
if(W===void 0)throw Error("pb`"+y);return W},Ig={},Cbq=(Ig.AbortError=3,Ig.EncodingError=5,Ig.InvalidModificationError=9,Ig.InvalidStateError=7,Ig.NotFoundError=1,Ig.NotReadableError=4,Ig.NoModificationAllowedError=6,Ig.PathExistsError=12,Ig.QuotaExceededError=10,Ig.SecurityError=2,Ig.SyntaxError=8,Ig.TypeMismatchError=11,Ig);var dN6=function(y,W){_.xs.call(this,y.type,W);this.event_=y};
_.pF(dN6,_.xs);var L6i=function(y,W,V){V===void 0&&(V=y.size);return y.slice?y.slice(W,V):null};var W9y=new WeakMap,yfd=function(y,W){y=[y];for(var V=W.length-1;V>=0;--V)y.push(typeof W[V],W[V]);return y.join("\v")};_.wUb(function(){if(!_.Vj.Blob)return!1;var y=new Uint8Array(100);try{var W=new Blob([y])}catch(V){return!1}return W.size!=100?!1:!0});
var z96=_.wUb(function(){if(!_.Vj.Blob)return!1;var y=new Uint8Array(100);try{var W=new Blob([y])}catch(V){return!1}return L6i(W,0,1)===null?!1:!0});_.Vj.U3bHHf!=null||(_.Vj.U3bHHf=0);_.Vj.U3bHHf++;var t14={};var df=void 0;var E24=Symbol("yb");var o2j=zt("WizInjectionContext_Dispatcher");var hb=Symbol("zb");var S0=function(){this.afterRenderCallbacks=null},xBv=Symbol("Ab"),Ab=function(y){this.props=y;
this.__unmounted=!1};
Ab.prototype.didPatch=function(){};
Ab.prototype.didMount=function(){};
Ab.prototype.didUnmount=function(){};
Ab.prototype.didUpdate=function(){};var L9n=zt("WizInjectionContext_RootElement");var cfR=zt("WizInjectionContext_AppContext"),zyt=zt("WizInjectionContext_ModelRootElement"),eyj=zt("WizInjectionContext_RendererData"),hyv=zt("WizInjectionContext_InjectingConstructor"),dkd=zt("WizInjectionContext_AsyncDeps"),K9u={};var M1G=!1;var S64={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:ecj,enableLazyTsx:hcG,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:ci4,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var eH=Object.assign({},{attributes:{},handleError:function(y){throw y;}},S64);var ctz=Symbol("Eb"),xd=Symbol("Fb"),iin=Symbol("Gb"),K6v=Symbol("Hb"),ukv=X6(function(y){return ho(y)&&ctz in y});var Y6P=Symbol("Ib"),g6={},sVy=(g6[Y6P]=!0,g6.debugName="[component]",g6.getComponentStack=function(){for(var y=[],W=this;W;)BEG(W)&&y.push(W.debugName),W=W.parent;return y},g6.registerSignal=function(){},g6.registerEffect=function(){},g6);var of=null,pb=!1,HAd=1,Tt=Symbol("Jb"),SH={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Ps=Symbol("Kb"),Co=Symbol("Lb"),fb=Symbol("Mb"),ytv=Object.assign({},SH,{value:Ps,dirty:!0,error:null,equal:JfG,kind:"computed",producerMustRecompute:function(y){return y.value===Ps||y.value===Co},
producerRecomputeValue:function(y){if(y.value===Co)throw Error("ga");var W=y.value;y.value=Co;var V=bAR(y),w=!1;try{var t=y.computation();Kb(null);w=W!==Ps&&W!==fb&&t!==fb&&y.equal(W,t)}catch(F){t=fb,y.error=F}finally{QVv(y,V)}w?y.value=W:(y.value=t,y.version++)}});var tsb=function(){throw Error();};var EIz=null,VsR=Object.assign({},SH,{equal:JfG,value:void 0,kind:"signal"});Object.assign({},SH,{value:Ps,dirty:!0,error:null,equal:JfG,kind:"linkedSignal",producerMustRecompute:function(y){return y.value===Ps||y.value===Co},
producerRecomputeValue:function(y){if(y.value===Co)throw Error("ga");var W=y.value;y.value=Co;var V=bAR(y);try{var w=y.source();var t=y.computation(w,W===Ps||W===fb?void 0:{source:y.sourceValue,value:W});y.sourceValue=w}catch(F){t=fb,y.error=F}finally{QVv(y,V)}W!==Ps&&t!==fb&&y.equal(W,t)?y.value=W:(y.value=t,y.version++)}});Object.assign({},SH,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(y){y.schedule!==null&&y.schedule(y.ref)},
hasRun:!1,cleanupFn:function(){}});var IYv=Symbol("Nb"),q1=Symbol("Ob");var Uy=Array.isArray;var cty;var e9q={},h9P=z9v(Object.assign({},{consumerAllowSignalWrites:!0},e9q)),lU=z9v(Object.assign({},{consumerAllowSignalWrites:!0},e9q));var kd=0,sy=!1,OK=function(){this.queue=new Set};
OK.prototype.remove=function(y){this.queue.delete(y)};
OK.prototype.clear=function(){this.queue.clear()};
var h9J=function(){OK.apply(this,arguments)};
_.p(h9J,OK);h9J.prototype.schedule=function(y){this.queue.add(y)};
h9J.prototype.flush=function(){if(this.queue.size){sy=!0;try{for(var y=_.N(this.queue),W=y.next();!W.done;W=y.next()){var V=W.value;this.queue.delete(V);try{V.run()}catch(w){oI2(w)}}}finally{sy=!1}}};
var K66=new h9J,vs=function(){OK.apply(this,arguments)};
_.p(vs,OK);var ppf=function(){vs.apply(this,arguments)};
_.p(ppf,vs);ppf.prototype.schedule=function(y){y.hasRun?this.queue.add(y):y.run()};
ppf.prototype.flush=function(){if(this.queue.size)if(eH.flushRenderEffectsDuringRender){var y=this.queue;this.queue=new Set;SgP(y)}else SgP(this.queue)};
var oIn=new ppf,ii2=function(){vs.apply(this,arguments)};
_.p(ii2,vs);ii2.prototype.schedule=function(y){var W=this;return _.g(function(V){if(V.nextAddress==1)return y.hasRun?V.jumpTo(2):V.yield(Promise.resolve(),3);if(V.nextAddress!=2)return y.run(),V.return();W.queue.add(y);_.B7(V)})};
ii2.prototype.flush=function(){var y=this;return _.g(function(W){if(W.nextAddress==1)return y.queue.size?W.yield(Promise.resolve(),2):W.return();SgP(y.queue);_.B7(W)})};
var fYv=new ii2,fY6=function(){vs.apply(this,arguments)};
_.p(fY6,vs);fY6.prototype.schedule=function(y){this.queue.add(y)};
fY6.prototype.flush=function(){this.queue.size&&SgP(this.queue)};
var ppL=new fY6,qgz=[oIn,K66,ppL,fYv],TQi=[oIn,ppL,fYv],mNu=[];EIz=function(){UNv();for(var y=_.N(mNu),W=y.next();!W.done;W=y.next())W=W.value,W()};
var oI2=wu;var B1=Symbol("Tb");var Yd=null,xNd,kDa=null,sp4;var d6={},mNm=Object.assign({},SH,(d6[ctz]=!0,d6.effectType=xd,d6.isResettableContext=!0,d6.hasRun=!1,d6.effectFn=null,d6.consumerIsAlwaysLive=!0,d6.consumerAllowSignalWrites=!0,d6.consumerMarkedDirty=TQb,d6.kind="effect",d6.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(pb)throw Error("Ub");this.dirty=!1;if(!this.hasRun||XUL(this)){this.hasRun=!0;v2R(this);var y=_.Lb(this),W=bAR(this);lbL("effectRun",this.debugName);try{nb(this.effectFn,this.componentStack,this)}catch(V){throw eH.enableContextBasedComponentStacks&&
$d(V),V;}finally{xkd("effectRun",this.debugName),QVv(this,W),_.Lb(y)}}}},d6.componentStack=void 0,d6.debugName="[effect]",d6[Symbol.dispose]=function(){Ryv(this);
if(iO(this))for(var y=0;y<this.producerNode.length;y++)jVt(this.producerNode[y],this.producerIndexOfThis[y]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);y=_.N(TQi);for(var W=y.next();!W.done;W=y.next())W.value.remove(this);OAj(this)},d6));var BQz=Object.assign({},mNm,{effectType:iin});var Jtj=Symbol("Vb");var R9d=Object.assign({},mNm,{effectType:xd});var pla=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 nI4={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},$Nj=
{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}]}},cPG={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},aYn=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Xpv={"*":{async:1,dir:0,loading:2,target:3}};var Mss=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Lo={},rt4=(Lo[1]=null,Lo[2]=function(y,W){return W instanceof Ec?Ih(W):Zf.toString()},Lo[3]=function(y,W){return aG(W)?_.G3(W):Mss.test(String(W))?String(W):Zf.toString()},Lo[4]=function(y,W){return W instanceof RG?_.$R(W):Zf.toString()},Lo[5]=function(y,W){return String(W)},Lo[7]=null,Lo[8]=null,Lo[10]=null,Lo);var Bpd=Symbol("Yb");var MSb=function(y){var W=qgE,V=y,w="",t="",F=1;y<0&&(y=-y);if(y===Infinity)y=(Infinity*Math.sign(V)).toString();else{for(var I=0;I<UN6.length;I++){var P=UN6[I];F=W[P];if(y>=F||F<=1&&y>.1*F){w=P;break}}w?(w+="B",t=" "):F=1;y=Math.round(V/F*10)/10+t+w}return y},UN6="Y Z E P T G M K  m u n".split(" "),qgE={"":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};_.uk6=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 TI={};RegExp.prototype.hasOwnProperty("sticky");var fRP=function(y){y=String(y);for(var W=function(w,t,F){for(var I=Math.min(t.length-F,w.length),P=0;P<I;P++){var C=t[F+P];if(w[P]!==("A"<=C&&C<="Z"?C.toLowerCase():C))return!1}return!0},V=0;(V=y.indexOf("<",V))!=-1;){if(W("\x3c/script",y,V)||W("\x3c!--",y,V))return"zSoyz";
V+=1}return y};var WV={default:"__default"};var ViG=Object.prototype.hasOwnProperty;Zin.prototype=Object.create(null);var Oh=FJz();var OF=null;var zmu=function(y){this.created=[];this.deleted=[];this.node=y};var cLa=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var y=this,W=y;y;)W=y,y=y.parentNode;return W};var NSb=function(y,W){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=y;this.key=W;this.text=void 0};var Fd=null,EF=null,wV=null,I8=null,O7t=[],C4z=gkb,PV=[],CG=[],YPb=function(y){return emL(function(W,V,w){wV=EF=W;EF=null;V(w);P4b(null);EF=wV;wV=wV.parentNode;return W},y)}(),Anj=function(y){return emL(function(W,V,w){var t={nextSibling:W};
EF=t;V(w);wV&&P4b(W.nextSibling);return t===EF?null:EF},y)}();var vV=[],okP=0;var dV=new Zin;var bE=new Zin;var SgJ=FJz(),Mia=SgJ[WV.default],mTR=SgJ.style,i7R=["focusin","focusout"],uDn="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var vyb=function(){},VKu=function(){},eDG=function(){},LNR=function(){};var e0=Symbol("ec");var kYj,xTu=lRR;var qV=Symbol("fc");var c8L=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(" ")),
zDy=new Set(["a","font","script","style","title"]);var MV={setUp:GYt,tearDown:GYt,log:GYt,logNodeRange:GYt,graft:function(y,W){W()}};var xV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var kV=null,sF=function(y,W){Ab.call(this,y);var V=this;this.functionComponent=W;this.hooks=[];this.hookCounter=0;this.disposeEffects=af(function(w){V.effectContext=w;_.XT(function(){EyP(V,V.el)})},eH.alwaysTrackContexts||!!df)};
_.p(sF,Ab);sF.prototype.render=function(y){var W=kV;kV=this;this.hookCounter=0;var V=Kb(lU),w=_.Lb(this.effectContext);try{return lbL("render",this.componentName),this.functionComponent(y)}finally{xkd("render",this.componentName),_.Lb(w),Kb(V),kV=W}};
_.CM.Object.defineProperties(sF.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return DNt(this.functionComponent)}}});var hDt=Symbol("tc"),Cuz=function(y,W,V){this.afterRenderCallbacks=null;this.kind=y;this.props=W;this.children=V};
_.p(Cuz,S0);Cuz.prototype.render=function(){var y=PuR(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var W=_.N(this.afterRenderCallbacks),V=W.next();!V.done;V=W.next())V=V.value,y=V(y);return y};
Cuz.prototype.getChildren=function(){return this.children};var KNd=[];tsb=function(y){throw Error("xb`"+y.debugName);};
(function(){var y=OF;OF=function(W){y==null||y(W);pfR(W)}})();var DNI=new WeakMap,lY6=0;var xNq=void 0,kDr={},spQ=new WeakMap,Rud={getComponent:function(y){if(y.hasAttribute("ng-version"))return kDr;if(!y.__wizComponent)return null;y=y.__wizComponent;spQ.set(y.propsAndState,y);return y.propsAndState},
getDirectiveMetadata:function(y){if(y===kDr)return{framework:"wiz",name:"<Root>",props:{}};y=spQ.get(y);if(!y)throw Error("uc");return{framework:"wiz",name:y.name,props:Object.fromEntries(Object.keys(y.props).map(function(W){return[W,W]}))}},
"\u0275setProfiler":function(y){var W;(W=xNq)==null||W();xNq=MsR(function(){y(2)})},
getInjector:function(y){return y.__wizComponent},
"\u0275getSignalGraph":function(y){var W;y=(W=y.effects)!=null?W:[];var V=iMn(y),w=Array.from(V.keys());W=[];y=[];for(var t=new Map,F=0;F<w.length;F++)t.set(w[F],F);V=_.N(V.entries());for(w=V.next();!w.done;w=V.next()){F=_.N(w.value);w=F.next().value;var I=F.next().value;F=w;w=t.get(F);var P=DNI.get(F);P||(P=lY6.toString(),DNI.set(F,P),lY6++);var C=void 0,d=(C=F.debugName)!=null?C:"";C=d.startsWith("[signal]")?d:d.replace(/@.+/,"");F.kind==="computed"?W.push({label:C,value:F.value,kind:F.kind,epoch:F.version,
debuggableFn:F.computation,id:P}):F.kind==="signal"?W.push({label:C,value:F.value,kind:F.kind,epoch:F.version,id:P}):F.kind==="effect"?(d=void 0,W.push({label:C,kind:F.kind,epoch:F.version,debuggableFn:(d=F.effectFn)!=null?d:void 0,id:P})):W.push({label:C,kind:F.kind,epoch:F.version,id:P});F=_.N(I);for(I=F.next();!I.done;I=F.next())y.push({consumer:w,producer:t.get(I.value)})}return{nodes:W,edges:y}},
isSignal:function(y){return typeof y==="function"&&y[Tt]!==void 0}};Object.assign({},mNm,{effectType:xd,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var y=this.elementRef;var W;y.element!=null||(y.element=(W=y.document.getElementById(y.value))!=null?W:void 0);y=y.element;for(W=this.attributes;W;){var V=W.signal();V!==W.prevValue&&(W.prevValue=V,pla.has(W.name)?ya(y,W.name,V?"":null):ya(y,W.name,V));W=W.next}}});Object.assign({},mNm,{effectType:xd,hasRun:!0});_.v.debugName="RlDudd";var fAd={nonNullableCondIsNull:function(){return Error("Ac")}};var un4=function(){this.map=new Map};
un4.prototype.push=function(y,W){var V=this.map;V.has(y)&&(this.multi||(this.multi=new Map),this.multi.set(W,V.get(y)));V.set(y,W)};
un4.prototype.pop=function(y){var W=this.map,V=W.get(y),w;V!==void 0&&((w=this.multi)==null?0:w.has(V))?(W.set(y,this.multi.get(V)),this.multi.delete(V)):W.delete(y);return V};_.YV.debugName="nsTGHd";_.BV.debugName="tbhMcf";_.j0.debugName="zyMFzb";_.$V.debugName="vI1rtf";_.s2z={OUT_OF_ORDER_HOOK_CALL:function(y){return Error("Bc`"+y)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("Cc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("Dc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("Ec")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(y,W){return Error("Fc`"+((W===void 0?0:W)?"IDOM":"Reactive")+"`"+y)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(y,W){return Error("Gc`"+y+"`"+W)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(y){return Error("Hc`"+y)},
USE_ELEMENT_NOT_ASSIGNED:function(y){return Error("Ic`"+String(y))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(y){return Error("Jc`"+String(y))}};kYj=OMj;var nyz=Symbol("Kc");tKb({beforeRender:function(y){var W=_.Lb(y.effectContext);try{var V;((V=y.__syncEffects)==null?0:V.length)&&XfL(y.__syncEffects)}finally{_.Lb(W)}},
didPatch:function(y){var W=_.Lb(y.effectContext);try{var V;((V=y.__syncEffects)==null?0:V.length)&&XfL(y.__syncEffects)}finally{_.Lb(W)}},
didUnmount:function(y){var W;((W=y.hooks)==null?0:W.length)&&y.hooks.forEach(HMd)}});var Ati,YgK,BQE;Ati=_.Vj.window;_.Qa=(Ati==null?void 0:(YgK=Ati.yt)==null?void 0:YgK.config_)||(Ati==null?void 0:(BQE=Ati.ytcfg)==null?void 0:BQE.data_)||{};_.dE("yt.config_",_.Qa);var JtK={},bMu=[];_.Js=function(y){var W=_.Ve.apply(1,arguments);var V=Error.call(this,y);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.args=[].concat(_.GC(W));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.Js,Error);var Zov=function(y,W,V){this.actionName=y;this.optionalAction=W===void 0?!1:W;this.args=V===void 0?null:V;this.returnValue=[]};_.zf=function(y){this.name=y};_.Wl=new _.zf("signalAction");var I2y=/^[\w.]*$/,VMn={q:!0,search_query:!0},WRn=String(y1v);var cs;cs=Symbol("Lc");_.e9=function(y){this.name=y};
_.e9.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var gFt=function(y){this.key=y},OgP=function(y){this.deferredKey=y},C5u=function(){var y=this;
this.providers=new Map;this.JSC$10381_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(y.providers)}}};
C5u.prototype.addProvider=function(y){this.providers.set(y.provide,y);var W=this.JSC$10381_deferred.get(y.provide);if(W)try{W.resolver(this.resolve(y.provide))}catch(V){W.rejector(V)}};
C5u.prototype.resolve=function(y){return y instanceof OgP?R9q(this,y):y instanceof gFt?jpA(this,y.key,[],!0):jpA(this,y,[])};
var R9q=function(y,W){W=W.deferredKey;if(y.JSC$10381_deferred.has(W))return y.JSC$10381_deferred.get(W).promise;var V={};V.promise=new Promise(function(w,t){V.resolver=w;V.rejector=t});
y.JSC$10381_deferred.set(W,V);return V.promise},jpA=function(y,W,V,w){w=w===void 0?!1:w;
if(V.indexOf(W)>-1)throw Error("Mc`"+W);if(y.cachedValues.has(W))return y.cachedValues.get(W);if(!y.providers.has(W)){if(w)return;throw Error("Nc`"+W);}w=y.providers.get(W);V.push(W);if(w.useValue!==void 0)var t=w.useValue;else if(w.useFactory)t=w[cs]?$NK(y,w[cs],V):[],t=w.useFactory.apply(w,_.GC(t));else if(w.useClass){t=w.useClass;var F=t[cs]?$NK(y,t[cs],V):[];t=new (Function.prototype.bind.apply(t,[null].concat(_.GC(F))))}else throw Error("Oc`"+W);V.pop();w.skipCache||y.cachedValues.set(W,t);return t},
$NK=function(y,W,V){return W?W.map(function(w){return w instanceof gFt?jpA(y,w.key,V,!0):jpA(y,w,V)}):[]};var P5n;var Vp=new _.e9("ENDPOINT_HANDLER_TOKEN");_.wS=new _.zf("urlEndpoint");var nIQ=function(){this.data=[];this.cachedPackedInt52=-1};
nIQ.prototype.set=function(y,W){W=W===void 0?!0:W;0<=y&&y<52&&Number.isInteger(y)&&this.data[y]!==W&&(this.data[y]=W,this.cachedPackedInt52=-1)};
nIQ.prototype.get=function(y){return!!this.data[y]};
var HiE=function(y){y.cachedPackedInt52===-1&&(y.cachedPackedInt52=y.data.reduce(function(W,V,w){return W+(V?Math.pow(2,w):0)},0));
return y.cachedPackedInt52};var m8d=function(y){var W=Xp6;y=y===void 0?_.ts("yt.ads.biscotti.lastId_")||"":y;var V=Object,w=V.assign,t={};t.dt=$RA;t.flash="0";a:{try{var F=W.JSC$10386_win_.top.location.href}catch(Fv){F=2;break a}F=F?F===W.doc_.location.href?0:1:2}t=(t.frm=F,t);try{t.u_tz=-(new Date).getTimezoneOffset();try{var I=t0.history.length}catch(Fv){I=0}t.u_his=I;var P;t.u_h=(P=t0.screen)==null?void 0:P.height;var C;t.u_w=(C=t0.screen)==null?void 0:C.width;var d;t.u_ah=(d=t0.screen)==null?void 0:d.availHeight;var L;t.u_aw=
(L=t0.screen)==null?void 0:L.availWidth;var z;t.u_cd=(z=t0.screen)==null?void 0:z.colorDepth}catch(Fv){}I=W.JSC$10386_win_;try{var c=I.screenX;var K=I.screenY}catch(Fv){}try{var f=I.outerWidth;var U=I.outerHeight}catch(Fv){}try{var l=I.innerWidth;var x=I.innerHeight}catch(Fv){}try{var B=I.screenLeft;var r=I.screenTop}catch(Fv){}try{l=I.innerWidth,x=I.innerHeight}catch(Fv){}try{var H=I.screen.availWidth;var a=I.screen.availTop}catch(Fv){}c=[B,r,c,K,H,a,f,U,l,x];K=GcR(!1,W.JSC$10386_win_.top);f={};
var b=b===void 0?_.Vj:b;U=new nIQ;"SVGElement"in b&&"createElementNS"in b.document&&U.set(0);l=AAf();l["allow-top-navigation-by-user-activation"]&&U.set(1);l["allow-popups-to-escape-sandbox"]&&U.set(2);b.crypto&&b.crypto.subtle&&U.set(3);"TextDecoder"in b&&"TextEncoder"in b&&U.set(4);b=HiE(U);W=(f.bc=b,f.bih=K.height,f.biw=K.width,f.brdim=c.join(),f.vis=Rwa(W.doc_),f.wgl=!!t0.WebGLRenderingContext,f);V=w.call(V,t,W);V.ca_type="image";y&&(V.bid=y);return V},Xp6=new function(){var y=window.document;
this.JSC$10386_win_=window;this.doc_=y};
_.dE("yt.ads_.signals_.getAdSignalsString",function(y){return wNP(m8d(y))});_.KF();navigator.userAgent.indexOf(" (CrKey ");var c1R="XMLHttpRequest"in _.Vj?function(){return new XMLHttpRequest}:null;var aY2="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),GDR=[].concat(_.GC(aY2),["client_dev_set_cookie"]);var Twa={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"},oFy="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(_.GC(aY2)),k2z=!1,pNd=_.MMu,D8P=f2j;var FGn=[{messageFn:function(y){return"Cannot read property '"+y.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(y){return"Cannot call '"+y.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(y){return y.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var rtQ={messageWeights:[],callbackWeights:[{callback:BwR,weight:500},{callback:J1y,weight:500}]};var biQ=function(){this.callbackWeights=[];this.messageWeights=[]},QpQ,tfa=function(){if(!QpQ){var y=QpQ=new biQ;
y.messageWeights.length=0;y.callbackWeights.length=0;Ofd(y,rtQ)}return QpQ},Ofd=function(y,W){W.messageWeights&&y.messageWeights.push.apply(y.messageWeights,W.messageWeights);
W.callbackWeights&&y.callbackWeights.push.apply(y.callbackWeights,W.callbackWeights)};_.pF(_.D3,_.Ru);_.D3.prototype.subscribe=function(y,W,V){var w=this.topics_[y];w||(w=this.topics_[y]=[]);var t=this.JSC$10410_key_;this.subscriptions_[t]=y;this.subscriptions_[t+1]=W;this.subscriptions_[t+2]=V;this.JSC$10410_key_=t+3;w.push(t);return t};
var Zi2=function(y){var W=gny,V=!1,w=W.subscribe("handleError",function(t){V||(V=!0,this.unsubscribeByKey(w),y.apply(void 0,arguments))},W)};
_.D3.prototype.unsubscribe=function(y,W,V){if(y=this.topics_[y]){var w=this.subscriptions_;if(y=y.find(function(t){return w[t+1]==W&&w[t+2]==V}))return this.unsubscribeByKey(y)}return!1};
_.D3.prototype.unsubscribeByKey=function(y){var W=this.subscriptions_[y];if(W){var V=this.topics_[W];this.publishDepth_!=0?(this.pendingKeys_.push(y),this.subscriptions_[y+1]=function(){}):(V&&_.GG(V,y),delete this.subscriptions_[y],delete this.subscriptions_[y+1],delete this.subscriptions_[y+2])}return!!W};
_.D3.prototype.publish=function(y,W){var V=this.topics_[y];if(V){var w=Array(arguments.length-1),t=arguments.length,F;for(F=1;F<t;F++)w[F-1]=arguments[F];if(this.async_)for(F=0;F<V.length;F++)t=V[F],yLI(this.subscriptions_[t+1],this.subscriptions_[t+2],w);else{this.publishDepth_++;try{for(F=0,t=V.length;F<t&&!this.isDisposed();F++){var I=V[F];this.subscriptions_[I+1].apply(this.subscriptions_[I+2],w)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;V=this.pendingKeys_.pop();)this.unsubscribeByKey(V)}}return F!=
0}return!1};
var yLI=function(y,W,V){_.Ry(function(){y.apply(W,V)})};
_.D3.prototype.clear=function(y){if(y){var W=this.topics_[y];W&&(W.forEach(this.unsubscribeByKey,this),delete this.topics_[y])}else this.subscriptions_.length=0,this.topics_={}};
_.D3.prototype.getCount=function(y){if(y){var W=this.topics_[y];return W?W.length:0}y=0;for(W in this.topics_)y+=this.getCount(W);return y};
_.D3.prototype.disposeInternal=function(){_.D3.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var gny=new _.D3;var pA=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(pA,_.fu);pA.prototype.getColdHashData=function(){return _.aX(this,3)};
pA.prototype.getHotHashData=function(){return _.aX(this,5)};
pA.prototype.setHotHashData=function(y){return _.jD(this,5,y)};var WSR=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(WSR,_.fu);var qUn=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(qUn,_.fu);_.E=qUn.prototype;_.E.getDeviceId=function(){return _.aX(this,6)};
_.E.getExperimentIds=function(y){var W=_.PZ(this,9,_.mC,3,!0);$J(W,y);return W[y]};
_.E.getPlayerType=function(){return _.rK(this,36)};
_.E.setHomeGroupInfo=function(y){return _.sx(this,81,y)};
_.E.clearLocationPlayabilityToken=function(){return _.KA(this,89)};var Ss=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Ss,_.fu);Ss.prototype.setKey=function(y){return _.jD(this,1,y)};
Ss.prototype.getValue=function(){return QH(this,2,u2y)};
var u2y=[2,3,4,5,6];var WJf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(WJf,_.fu);WJf.prototype.setTrackingParams=function(y){return _.KA(this,1,_.Rs(y,!1))};var U4n=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(U4n,_.fu);var tWz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(tWz,_.fu);tWz.prototype.getExperimentIds=function(y){var W=_.PZ(this,5,_.Zdu,3,!0);$J(W,y);return W[y]};var kI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(kI,_.fu);kI.prototype.getToken=function(){return _.lz(this,2)};
kI.prototype.setToken=function(y){return _.jD(this,2,y)};var lb=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lb,_.fu);lb.prototype.setSafetyMode=function(y){return _.oV(this,5,y)};var ub=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ub,_.fu);ub.prototype.setClient=function(y){return _.sx(this,1,y)};var w9j={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 VWn;_.ac=function(){var y=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Vj.addEventListener("beforeinstallprompt",function(W){W.preventDefault();y.deferredInstallPrompt=W});
_.Vj.addEventListener("appinstalled",function(){y.appInstalledEventFired=!0},{once:!0})};
VWn=function(){if(!_.Vj.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Vj.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Vj.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Vj.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Vj.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(y){return"WEB_DISPLAY_MODE_UNKNOWN"}};var NPP=function(){this.syncHeaders=!0},IPP=function(y){var W={},V=[];
"USER_SESSION_ID"in _.Qa&&V.push({key:"u",value:_.yC("USER_SESSION_ID")});if(V=_.UgP(V))W.Authorization=V,V=y=y==null?void 0:y.sessionIndex,V===void 0&&(V=Number(_.yC("SESSION_INDEX",0)),V=isNaN(V)?0:V),_.e("voice_search_auth_header_removal")||(W["X-Goog-AuthUser"]=V.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Qa||(W["X-Origin"]=window.location.origin),y===void 0&&"DELEGATED_SESSION_ID"in _.Qa&&(W["X-Goog-PageId"]=_.yC("DELEGATED_SESSION_ID"));return W};var ViR={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var hR=_.ts("ytglobal.prefsUserPrefsPrefs_")||{},wli;_.dE("ytglobal.prefsUserPrefsPrefs_",hR);_.og=function(){this.cookieName=_.yC("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.yC("ALT_PREF_COOKIE_DOMAIN","youtube.com");var y=_.k_.get(this.cookieName,void 0);y&&this.parse(y)};
_.l5=function(){wli||(wli=new _.og);return wli};
_.og.prototype.get=function(y,W){tif(y);FJE(y);y=hR[y]!==void 0?hR[y].toString():null;return y!=null?y:W?W:""};
_.og.prototype.set=function(y,W){tif(y);FJE(y);if(W==null)throw Error("Rc");hR[y]=W.toString()};
_.og.prototype.getFlag=function(y){return!!((Ekq("f"+(Math.floor(y/31)+1))||0)&1<<y%31)};
_.xF=function(y,W,V){y="f"+(Math.floor(W/31)+1);W=1<<W%31;var w=Ekq(y)||0;w=V?w|W:w&~W;w===0?delete hR[y]:(V=w.toString(16),hR[y]=V.toString())};
_.og.prototype.remove=function(y){tif(y);FJE(y);delete hR[y]};
_.og.prototype.save=function(){var y=!0;_.e("web_secure_pref_cookie_killswitch")&&(y=!1);_.s1(this.cookieName,this.dump(),63072E3,this.cookieDomain,y)};
_.og.prototype.clear=function(){_.Gc.clear(hR)};
_.og.prototype.dump=function(){var y=[],W;for(W in hR)hR.hasOwnProperty(W)&&y.push(W+"="+encodeURIComponent(String(hR[W])));return y.join("&")};
var FJE=function(y){if(/^f([1-9][0-9]*)$/.test(y))throw Error("Sc`"+y);},tif=function(y){if(!/^\w+$/.test(y))throw Error("Tc`"+y);
},Ekq=function(y){y=hR[y]!==void 0?hR[y].toString():null;
return y!=null&&/^[A-Fa-f0-9]+$/.test(y)?parseInt(y,16):null};
_.og.prototype.parse=function(y){y=decodeURIComponent(y).split("&");for(var W=0;W<y.length;W++){var V=y[W].split("="),w=V[0];(V=V[1])&&(hR[w]=V.toString())}};var r1u={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"},FSP={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},E1j={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},Qwa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var M4;_.Ko=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Jt=function(y,W,V){return y.addJob(W,0,V)};
_.Ko.prototype.addLowPriorityJob=function(y,W){return this.addJob(y,1,W)};
_.jf=function(y,W,V){return y.addJob(W,2,V)};
_.b8=function(y,W,V){return y.addJob(W,3,V)};
_.q4=function(y,W,V){return y.addJob(W,4,V)};
M4=function(y){var W=_.ts("yt.scheduler.instance.addImmediateJob");W?W(y):y()};
_.Ko.prototype.debounce=function(y,W,V){var w=this,t=0,F=function(){t&&w.cancelJob(t);t=w.addJob(y,W,V);w.cancelDebouncedJobMap.set(F,t)};
return F};
_.Ko.prototype.cancelThrottle=function(y){(y=this.cancelThrottledJobMap.get(y))&&y()};var po=function(){_.Ko.apply(this,arguments)};
_.p(po,_.Ko);_.Xu=function(){po.instance||(po.instance=new po);return po.instance};
po.prototype.addJob=function(y,W,V){V!==void 0&&Number.isNaN(Number(V))&&(V=void 0);var w=_.ts("yt.scheduler.instance.addJob");return w?w(y,W,V):V===void 0?(y(),NaN):_.mj(y,V||0)};
po.prototype.cancelJob=function(y){if(y===void 0||!Number.isNaN(Number(y))){var W=_.ts("yt.scheduler.instance.cancelJob");W?W(y):_.qO(y)}};
po.prototype.start=function(){var y=_.ts("yt.scheduler.instance.start");y&&y()};
po.prototype.pause=function(){var y=_.ts("yt.scheduler.instance.pause");y&&y()};
_.HU=_.Xu();_.RA.prototype.set=function(y,W){W===void 0?this.mechanism.remove(y):this.mechanism.set(y,(0,_.Xl)(W))};
_.RA.prototype.get=function(y){try{var W=this.mechanism.get(y)}catch(V){return}if(W!==null)try{return JSON.parse(W)}catch(V){throw"Storage: Invalid value was encountered";}};
_.RA.prototype.remove=function(y){this.mechanism.remove(y)};var iy=function(y){this.mechanism=y};
_.pF(iy,_.RA);var NSi=function(y){this.data=y},IRI=function(y){return y===void 0||y instanceof NSi?y:new NSi(y)};
iy.prototype.set=function(y,W){iy.superClass_.set.call(this,y,IRI(W))};
iy.prototype.getWrapper=function(y){y=iy.superClass_.get.call(this,y);if(y===void 0||y instanceof Object)return y;throw"Storage: Invalid value was encountered";};
iy.prototype.get=function(y){if(y=this.getWrapper(y)){if(y=y.data,y===void 0)throw"Storage: Invalid value was encountered";}else y=void 0;return y};_.pF(jX,iy);_.gki=function(y){var W=y.creation;y=y.expiration;return!!y&&y<_.KF()||!!W&&W>_.KF()};
jX.prototype.set=function(y,W,V){if(W=IRI(W)){if(V){if(V<_.KF()){jX.prototype.remove.call(this,y);return}W.expiration=V}W.creation=_.KF()}jX.superClass_.set.call(this,y,W)};
jX.prototype.getWrapper=function(y,W){var V=jX.superClass_.getWrapper.call(this,y);if(V)if(!W&&_.gki(V))jX.prototype.remove.call(this,y);else return V};var fo=function(){};
fo.prototype.next=function(){return Tf};
var Tf={done:!0,value:void 0},mF=function(y){return{value:y,done:!1}};
fo.prototype.__iterator__=function(){return this};
_.P4i=function(y){if(y instanceof fo)return y;if(typeof y.__iterator__=="function")return y.__iterator__(!1);if(_.bn(y)){var W=0,V=new fo;V.next=function(){for(;;){if(W>=y.length)return Tf;if(W in y)return mF(y[W++]);W++}};
return V}throw Error("Uc");};var C4E=function(y){if(y instanceof Mc||y instanceof qc||y instanceof UK)return y;if(typeof y.next=="function")return new Mc(function(){return y});
if(typeof y[Symbol.iterator]=="function")return new Mc(function(){return y[Symbol.iterator]()});
if(typeof y.__iterator__=="function")return new Mc(function(){return y.__iterator__()});
throw Error("Vc");},Mc=function(y){this.func_=y};
Mc.prototype.__iterator__=function(){return new qc(this.func_())};
Mc.prototype[Symbol.iterator]=function(){return new UK(this.func_())};
Mc.prototype.toEs6=function(){return new UK(this.func_())};
var qc=function(y){this.JSC$10494_iter_=y};
_.p(qc,fo);qc.prototype.next=function(){return this.JSC$10494_iter_.next()};
qc.prototype[Symbol.iterator]=function(){return new UK(this.JSC$10494_iter_)};
qc.prototype.toEs6=function(){return new UK(this.JSC$10494_iter_)};
var UK=function(y){Mc.call(this,function(){return y});
this.JSC$10497_iter_=y};
_.p(UK,Mc);UK.prototype.next=function(){return this.JSC$10497_iter_.next()};var O7I=function(){};var uy=function(){};
_.pF(uy,O7I);uy.prototype.getCount=function(){for(var y=0,W=_.N(this),V=W.next();!V.done;V=W.next())y++;return y};
uy.prototype[Symbol.iterator]=function(){return C4E(this.__iterator__(!0)).toEs6()};
uy.prototype.clear=function(){var y=Array.from(this);y=_.N(y);for(var W=y.next();!W.done;W=y.next())this.remove(W.value)};_.pF($_,uy);_.E=$_.prototype;_.E.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var y=this.storage_;if(y)try{y.setItem("__sak","1");y.removeItem("__sak");var W=!0}catch(V){W=V instanceof DOMException&&(V.name==="QuotaExceededError"||V.code===22||V.code===1014||V.name==="NS_ERROR_DOM_QUOTA_REACHED")&&y&&y.length!==0}else W=!1;this.cachedIsStorageAvailable_=W}return this.cachedIsStorageAvailable_};
_.E.set=function(y,W){S9(this);try{this.storage_.setItem(y,W)}catch(V){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.E.get=function(y){S9(this);y=this.storage_.getItem(y);if(typeof y!=="string"&&y!==null)throw"Storage mechanism: Invalid value was encountered";return y};
_.E.remove=function(y){S9(this);this.storage_.removeItem(y)};
_.E.getCount=function(){S9(this);return this.storage_.length};
_.E.__iterator__=function(y){S9(this);var W=0,V=this.storage_,w=new fo;w.next=function(){if(W>=V.length)return Tf;var t=V.key(W++);if(y)return mF(t);t=V.getItem(t);if(typeof t!=="string")throw"Storage mechanism: Invalid value was encountered";return mF(t)};
return w};
_.E.clear=function(){S9(this);this.storage_.clear()};
_.E.key=function(y){S9(this);return this.storage_.key(y)};
var S9=function(y){if(y.storage_==null)throw Error("Wc");y.isAvailable()||wu(Error("Wc"))};_.pF(yzG,$_);_.pF(W_R,$_);_.pF(nB,uy);nB.prototype.set=function(y,W){this.mechanism_.set(this.JSC$10512_prefix_+y,W)};
nB.prototype.get=function(y){return this.mechanism_.get(this.JSC$10512_prefix_+y)};
nB.prototype.remove=function(y){this.mechanism_.remove(this.JSC$10512_prefix_+y)};
nB.prototype.__iterator__=function(y){var W=this.mechanism_[Symbol.iterator](),V=this,w=new fo;w.next=function(){var t=W.next();if(t.done)return t;for(t=t.value;t.slice(0,V.JSC$10512_prefix_.length)!=V.JSC$10512_prefix_;){t=W.next();if(t.done)return t;t=t.value}return mF(y?t.slice(V.JSC$10512_prefix_.length):V.mechanism_.get(t))};
return w};_.Zb=function(y){this.expiringStorage_=(y=_.VEP(y))?new jX(y):null;this.JSC$10516_domain_=document.domain||window.location.hostname};
_.Zb.prototype.set=function(y,W,V,w){V=V||31104E3;this.remove(y);if(this.expiringStorage_)try{this.expiringStorage_.set(y,W,Date.now()+V*1E3);return}catch(F){}var t="";if(w)try{t=escape((0,_.Xl)(W))}catch(F){return}else t=escape(W);_.s1(y,t,V,this.JSC$10516_domain_)};
_.Zb.prototype.get=function(y,W){var V=void 0,w=!this.expiringStorage_;if(!w)try{V=this.expiringStorage_.get(y)}catch(t){w=!0}if(w&&(V=_.k_.get(y,void 0))&&(V=unescape(V),W))try{V=JSON.parse(V)}catch(t){this.remove(y),V=void 0}return V};
_.Zb.prototype.remove=function(y){this.expiringStorage_&&this.expiringStorage_.remove(y);_.XNv(y,"/",this.JSC$10516_domain_)};
_.Zb.prototype.getCreationTime=function(y){return this.expiringStorage_&&(y=(this.expiringStorage_.getWrapper(y)||{}).creation,typeof y==="number")?y:null};var tEn=function(){var y;return function(){y||(y=new _.Zb("ytidb"));return y}}();var ECn;_.XU=[];ECn=!1;var T5j=N5R||IHv;var Dg={},vkE=(Dg.AUTH_INVALID="No user identifier specified.",Dg.EXPLICIT_ABORT="Transaction was explicitly aborted.",Dg.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Dg.MISSING_INDEX="Index not created.",Dg.MISSING_OBJECT_STORES="Object stores not created.",Dg.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Dg.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Dg.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Dg.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Dg.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Dg.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Dg.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Dg),ly={},dT2=(ly.AUTH_INVALID="ERROR",ly.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",ly.EXPLICIT_ABORT="IGNORED",
ly.IDB_NOT_SUPPORTED="ERROR",ly.MISSING_INDEX="WARNING",ly.MISSING_OBJECT_STORES="ERROR",ly.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",ly.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",ly.QUOTA_EXCEEDED="WARNING",ly.QUOTA_MAYBE_EXCEEDED="WARNING",ly.UNKNOWN_ABORT="WARNING",ly.INCOMPATIBLE_DB_VERSION="WARNING",ly),x$={},LJi=(x$.AUTH_INVALID=!1,x$.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,x$.EXPLICIT_ABORT=!1,x$.IDB_NOT_SUPPORTED=!1,x$.MISSING_INDEX=!1,x$.MISSING_OBJECT_STORES=!1,x$.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,x$.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,x$.QUOTA_EXCEEDED=!1,x$.QUOTA_MAYBE_EXCEEDED=!0,x$.UNKNOWN_ABORT=!0,x$.INCOMPATIBLE_DB_VERSION=!1,x$),Z3=function(y,W,V,w,t){W=W===void 0?{}:W;V=V===void 0?vkE[y]:V;w=w===void 0?dT2[y]:w;t=t===void 0?LJi[y]:t;_.Js.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:y},W));this.type=y;this.message=V;this.level=w;this.retryable=t;Object.setPrototypeOf(this,Z3.prototype)};
_.p(Z3,_.Js);var zmm=function(y,W){Z3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:y},vkE.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,zmm.prototype)};
_.p(zmm,Z3);var Pgn=function(y,W){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=y;this.objectStore=W;Object.setPrototypeOf(this,Pgn.prototype)};
_.p(Pgn,Error);var Cgd=["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 wE=function(y){this.executor=y},Vi=function(y){var W=this;
this.state={status:"PENDING"};this.JSC$10544_onFulfilled=[];this.JSC$10544_onRejected=[];y=y.executor;var V=function(t){if(W.state.status==="PENDING"){W.state={status:"FULFILLED",value:t};t=_.N(W.JSC$10544_onFulfilled);for(var F=t.next();!F.done;F=t.next())F=F.value,F()}},w=function(t){if(W.state.status==="PENDING"){W.state={status:"REJECTED",
reason:t};t=_.N(W.JSC$10544_onRejected);for(var F=t.next();!F.done;F=t.next())F=F.value,F()}};
try{y(V,w)}catch(t){w(t)}};
Vi.all=function(y){return new Vi(new wE(function(W,V){var w=[],t=y.length;t===0&&W(w);for(var F={i$jscomp$468:0};F.i$jscomp$468<y.length;F={i$jscomp$468:F.i$jscomp$468},++F.i$jscomp$468)Vi.resolve(y[F.i$jscomp$468]).then(function(I){return function(P){w[I.i$jscomp$468]=P;t--;t===0&&W(w)}}(F)).catch(function(I){V(I)})}))};
Vi.resolve=function(y){return new Vi(new wE(function(W,V){y instanceof Vi?y.then(W,V):W(y)}))};
Vi.reject=function(y){return new Vi(new wE(function(W,V){V(y)}))};
Vi.prototype.then=function(y,W){var V=this,w=y!=null?y:dKG,t=W!=null?W:vCL;return new Vi(new wE(function(F,I){V.state.status==="PENDING"?(V.JSC$10544_onFulfilled.push(function(){cLr(V,V,w,F,I)}),V.JSC$10544_onRejected.push(function(){emf(V,V,t,F,I)})):V.state.status==="FULFILLED"?cLr(V,V,w,F,I):V.state.status==="REJECTED"&&emf(V,V,t,F,I)}))};
Vi.prototype.catch=function(y){return this.then(void 0,y)};
var cLr=function(y,W,V,w,t){try{if(y.state.status!=="FULFILLED")throw Error("Zc");var F=V(y.state.value);F instanceof Vi?hmf(y,W,F,w,t):w(F)}catch(I){t(I)}},emf=function(y,W,V,w,t){try{if(y.state.status!=="REJECTED")throw Error("$c");
var F=V(y.state.reason);F instanceof Vi?hmf(y,W,F,w,t):w(F)}catch(I){t(I)}},hmf=function(y,W,V,w,t){W===V?t(new TypeError("ad")):V.then(function(F){F instanceof Vi?hmf(y,W,F,w,t):w(F)},function(F){t(F)})};var k$;k$=window;_.cU=k$.ytcsi&&k$.ytcsi.now?k$.ytcsi.now:k$.performance&&k$.performance.timing&&k$.performance.now&&k$.performance.timing.navigationStart?function(){return k$.performance.timing.navigationStart+k$.performance.now()}:function(){return(new Date).getTime()};var F1=function(y,W){this.JSC$10556_wrapped=y;this.options=W;this.transactionCount=0;this.startedMs=Math.round((0,_.cU)());this.hasUnknownAbortedTransaction=!1},plr,i7s,Y$,mTs;
F1.prototype.add=function(y,W,V){return _.gE(this,[y],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(y).add(W,V)})};
F1.prototype.clear=function(y){return _.gE(this,[y],{mode:"readwrite",enableRetries:!0},function(W){return W.objectStore(y).clear()})};
F1.prototype.close=function(){this.JSC$10556_wrapped.close();var y;((y=this.options)==null?0:y.closed)&&this.options.closed()};
F1.prototype.count=function(y,W){return _.gE(this,[y],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(y).count(W)})};
var VT=function(y,W,V){y=y.JSC$10556_wrapped.createObjectStore(W,V);return new sK(y)};
F1.prototype.delete=function(y,W){return _.gE(this,[y],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore(y).delete(W)})};
var okJ=function(y,W){return _.gE(y,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore("ResponseStore").index("byInterface").delete(W)})};
F1.prototype.get=function(y,W){return _.gE(this,[y],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(y).get(W)})};
F1.prototype.getAll=function(y,W,V){return _.gE(this,[y],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(y).getAll(W,V)})};
F1.prototype.put=function(y,W,V){return _.gE(this,[y],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(y).put(W,V)})};
F1.prototype.objectStoreNames=function(){return Array.from(this.JSC$10556_wrapped.objectStoreNames)};
_.gE=function(y,W,V,w){var t,F,I,P,C,d,L,z,c,K,f,U;return _.g(function(l){switch(l.nextAddress){case 1:var x={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?x.mode=V:Object.assign(x,V);t=x;y.transactionCount++;F=t.enableRetries?3:1;I=0;case 2:if(P){l.jumpTo(4);break}I++;C=Math.round((0,_.cU)());_.l7(l,5);d=y.JSC$10556_wrapped.transaction(W,t.mode);x=l.yield;var B=new e5R(d);B=KJ2(B,w);return x.call(l,B,7);case 7:return L=l.yieldResult,z=Math.round((0,_.cU)()),
plr(y,C,z,I,void 0,W.join(),t),l.return(L);case 5:c=_.YX(l);K=Math.round((0,_.cU)());f=O2d(c,y.JSC$10556_wrapped.name,W.join(),y.JSC$10556_wrapped.version);if((U=f instanceof Z3&&!f.retryable)||I>=F)plr(y,C,K,I,f,W.join(),t),P=f;l.jumpTo(2);break;case 4:return l.return(Promise.reject(P))}})};
plr=function(y,W,V,w,t,F,I){W=V-W;t?(t instanceof Z3&&(t.type==="QUOTA_EXCEEDED"||t.type==="QUOTA_MAYBE_EXCEEDED")&&GJ("QUOTA_EXCEEDED",{dbName:bC(y.JSC$10556_wrapped.name),objectStoreNames:F,transactionCount:y.transactionCount,transactionMode:I.mode}),t instanceof Z3&&t.type==="UNKNOWN_ABORT"&&(V-=y.startedMs,V<0&&V>=2147483648&&(V=0),GJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:F,transactionDuration:W,transactionCount:y.transactionCount,dbDuration:V}),y.hasUnknownAbortedTransaction=!0),
i7s(y,!1,w,F,W,I.tag),_.aA(t)):i7s(y,!0,w,F,W,I.tag)};
i7s=function(y,W,V,w,t,F){GJ("TRANSACTION_ENDED",{objectStoreNames:w,connectionHasUnknownAbortedTransaction:y.hasUnknownAbortedTransaction,duration:t,isSuccessful:W,tryCount:V,tag:F===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":F})};
F1.prototype.getVersion=function(){return this.JSC$10556_wrapped.version};
F1.prototype.getName=function(){return this.JSC$10556_wrapped.name};
var sK=function(y){this.JSC$10570_wrapped=y};
sK.prototype.add=function(y,W){return tf(this.JSC$10570_wrapped.add(y,W))};
sK.prototype.autoIncrement=function(){return this.JSC$10570_wrapped.autoIncrement};
sK.prototype.clear=function(){return tf(this.JSC$10570_wrapped.clear()).then(function(){})};
var wQ=function(y,W,V){y.JSC$10570_wrapped.createIndex(W,V,{unique:!1})};
sK.prototype.count=function(y){return tf(this.JSC$10570_wrapped.count(y))};
var fRJ=function(y,W){return CA(y,{query:W},function(V){return V.delete().then(function(){return V.continue()})}).then(function(){})};
sK.prototype.delete=function(y){return y instanceof IDBKeyRange?fRJ(this,y):tf(this.JSC$10570_wrapped.delete(y))};
sK.prototype.get=function(y){return tf(this.JSC$10570_wrapped.get(y))};
sK.prototype.getAll=function(y,W){return"getAll"in IDBObjectStore.prototype?tf(this.JSC$10570_wrapped.getAll(y,W)):TSE(this,y,W)};
var TSE=function(y,W,V){var w=[];return CA(y,{query:W},function(t){if(!(V!==void 0&&w.length>=V))return w.push(t.getValue()),t.continue()}).then(function(){return w})};
sK.prototype.index=function(y){try{return new AR(this.JSC$10570_wrapped.index(y))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new Pgn(y,this.JSC$10570_wrapped.name);throw W;}};
sK.prototype.getName=function(){return this.JSC$10570_wrapped.name};
sK.prototype.keyPath=function(){return this.JSC$10570_wrapped.keyPath};
sK.prototype.put=function(y,W){return tf(this.JSC$10570_wrapped.put(y,W))};
var CA=function(y,W,V){y=y.JSC$10570_wrapped.openCursor(W.query,W.direction);return mTs(y).then(function(w){return czn(w,V)})},e5R=function(y){var W=this;
this.JSC$10578_wrapped=y;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(V,w){W.JSC$10578_wrapped.addEventListener("complete",function(){V()});
W.JSC$10578_wrapped.addEventListener("error",function(t){t.currentTarget===t.target&&w(W.JSC$10578_wrapped.error)});
W.JSC$10578_wrapped.addEventListener("abort",function(){var t=W.JSC$10578_wrapped.error;if(t)w(t);else if(!W.aborted){t=Z3;for(var F=W.JSC$10578_wrapped.objectStoreNames,I=[],P=0;P<F.length;P++){var C=F.item(P);if(C===null)throw Error("bd");I.push(C)}t=new t("UNKNOWN_ABORT",{objectStoreNames:I.join(),dbName:W.JSC$10578_wrapped.db.name,mode:W.JSC$10578_wrapped.mode});w(t)}})})},KJ2=function(y,W){var V=new Promise(function(w,t){try{W(y).then(function(F){w(F)}).catch(t)}catch(F){t(F),y.abort()}});
return Promise.all([V,y.done]).then(function(w){return _.N(w).next().value})};
e5R.prototype.abort=function(){this.JSC$10578_wrapped.abort();this.aborted=!0;throw new Z3("EXPLICIT_ABORT");};
e5R.prototype.objectStore=function(y){y=this.JSC$10578_wrapped.objectStore(y);var W=this.objectStoreCache.get(y);W||(W=new sK(y),this.objectStoreCache.set(y,W));return W};
var AR=function(y){this.JSC$10580_wrapped=y};
AR.prototype.count=function(y){return tf(this.JSC$10580_wrapped.count(y))};
AR.prototype.delete=function(y){return _.e1(this,{query:y},function(W){return W.delete().then(function(){return W.continue()})})};
AR.prototype.get=function(y){return tf(this.JSC$10580_wrapped.get(y))};
AR.prototype.getAll=function(y,W){return"getAll"in IDBIndex.prototype?tf(this.JSC$10580_wrapped.getAll(y,W)):Mir(this,y,W)};
var Mir=function(y,W,V){var w=[];return _.e1(y,{query:W},function(t){if(!(V!==void 0&&w.length>=V))return w.push(t.getValue()),t.continue()}).then(function(){return w})};
AR.prototype.keyPath=function(){return this.JSC$10580_wrapped.keyPath};
AR.prototype.unique=function(){return this.JSC$10580_wrapped.unique};
_.e1=function(y,W,V){y=y.JSC$10580_wrapped.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return mTs(y).then(function(w){return czn(w,V)})};
Y$=function(y,W){this.request=y;this.cursor=W};
mTs=function(y){return tf(y).then(function(W){return W?new Y$(y,W):null})};
Y$.prototype.continue=function(y){this.cursor.continue(y);return mTs(this.request)};
Y$.prototype.delete=function(){return tf(this.cursor.delete()).then(function(){})};
Y$.prototype.getValue=function(){return this.cursor.value};
Y$.prototype.update=function(y){return tf(this.cursor.update(y))};var Bs=function(y,W){this.name=y;this.options=W;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},qhf;
Bs.prototype.openDb=function(y,W,V){V=V===void 0?{}:V;return oCP(y,W,V)};
Bs.prototype.delete=function(y){y=y===void 0?{}:y;return _.Nk(this.name,y)};
qhf=function(y,W){return new Z3("INCOMPATIBLE_DB_VERSION",{dbName:y.name,oldVersion:y.options.version,newVersion:W})};
_.IV=function(y,W){if(!W)throw WU("openWithToken",bC(y.name));return y.open()};
Bs.prototype.open=function(){var y=this;if(!this.isCompatible)throw qhf(this);if(this.connectionPromise)return this.connectionPromise;var W,V=function(){y.connectionPromise===W&&(y.connectionPromise=void 0)},w={blocking:function(F){F.close()},
closed:V,terminated:V,upgrade:this.options.upgrade},t=function(){var F,I,P,C,d,L,z,c,K,f;return _.g(function(U){switch(U.nextAddress){case 1:return I=(F=Error().stack)!=null?F:"",_.l7(U,2),U.yield(y.openDb(y.name,y.options.version,w),4);case 4:for(var l=P=U.yieldResult,x=y.options,B=[],r=_.N(Object.keys(x.objectStores)),H=r.next();!H.done;H=r.next()){H=H.value;var a=x.objectStores[H],b=a.removedAtVersion===void 0?Number.MAX_VALUE:a.removedAtVersion;!(l.JSC$10556_wrapped.version>=a.addedAtVersion)||
l.JSC$10556_wrapped.version>=b||l.JSC$10556_wrapped.objectStoreNames.contains(H)||B.push(H)}C=B;if(C.length===0){U.jumpTo(5);break}d=Object.keys(y.options.objectStores);L=P.objectStoreNames();if(y.timesReopenedToFixMissingObjectStore<_.pB("ytidb_reopen_db_retries",0))return y.timesReopenedToFixMissingObjectStore++,P.close(),_.aA(new Z3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:d,foundObjectStores:L})),U.return(t());if(!(y.timesDeletedToFixMissingObjectStore<_.pB("ytidb_remake_db_retries",
1))){U.jumpTo(6);break}y.timesDeletedToFixMissingObjectStore++;return U.yield(y.delete(),7);case 7:return _.aA(new Z3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:d,foundObjectStores:L})),U.return(t());case 6:throw new zmm(L,d);case 5:return U.return(P);case 2:z=_.YX(U);if(z instanceof DOMException?z.name!=="VersionError":"DOMError"in self&&z instanceof DOMError?z.name!=="VersionError":!(z instanceof Object&&"message"in z)||z.message!=="An attempt was made to open a database using a lower version than the existing version."){U.jumpTo(8);
break}return U.yield(y.openDb(y.name,void 0,Object.assign({},w,{upgrade:void 0})),9);case 9:c=U.yieldResult;K=c.getVersion();if(y.options.version!==void 0&&K>y.options.version+1)throw c.close(),y.isCompatible=!1,qhf(y,K);return U.return(c);case 8:throw V(),z instanceof Error&&!_.e("ytidb_async_stack_killswitch")&&(z.stack=z.stack+"\n"+I.substring(I.indexOf("\n")+1)),O2d(z,y.name,"",(f=y.options.version)!=null?f:-1);}})};
return this.connectionPromise=W=t()};var K_P=new Bs("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(y,W){W(1)&&VT(y,"databases",{keyPath:"actualName"})}});var qBv,mKb=new function(){}(new function(){});new _.UT;var UTE=function(y,W){Bs.call(this,y,W);this.options=W;ri(y)};
_.p(UTE,Bs);var YBa=function(y,W){var V;return function(){V||(V=new UTE(y,W));return V}};
UTE.prototype.openDb=function(y,W,V){V=V===void 0?{}:V;return(this.options.shared?lHv:DKj)(y,W,Object.assign({},V))};
UTE.prototype.delete=function(y){y=y===void 0?{}:y;return(this.options.shared?AzL:xKt)(this.name,y)};var uD2={},B5L=zp("ytGcfConfig",{objectStores:(uD2.coldConfigStore={addedAtVersion:1},uD2.hotConfigStore={addedAtVersion:1},uD2),shared:!1,upgrade:function(y,W){W(1)&&(wQ(VT(y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),wQ(VT(y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var ShQ=function(){_.Ru.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var y=_.ts("yt.gcf.config.hotUpdateCallbacks");y?(this.localHotConfigJobQueue=[].concat(_.GC(y)),this.sharedHotConfigJobQueue=y):(this.sharedHotConfigJobQueue=[],_.dE("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.p(ShQ,_.Ru);ShQ.prototype.disposeInternal=function(){for(var y=_.N(this.localHotConfigJobQueue),W=y.next();!W.done;W=y.next()){var V=this.sharedHotConfigJobQueue;W=V.indexOf(W.value);W>=0&&V.splice(W,1)}this.localHotConfigJobQueue.length=0;_.Ru.prototype.disposeInternal.call(this)};var Rp=function(){var y=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new ShQ;this.TEST_ONLY={initializeConfigDb:function(){y.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return y.coldGlobalConfigGroup},
setHotConfigGroup:function(W){DTJ(y,W)},
setHotHashData:function(W){y.setHotHashData(W)},
setColdConfigGroup:function(W){lRs(y,W)},
getColdHashData:function(){return y.coldHashData},
getHotHashData:function(){return y.hotHashData},
getHotConfigGroup:function(){return y.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return xTm()},
getExportedHotConfigGroup:function(){return JR()},
getExportedColdHashData:function(){return _.ts("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ts("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){kYK(y)},
resetInstance:function(){y.setHotHashData(void 0);s0m(y);delete Rp.instance},
setDebounceTimer:function(W){y.debounceTimer=W},
getDebounceTimer:function(){return y.debounceTimer}}},ALs=function(){if(!Rp.instance){var y=new Rp;
Rp.instance=y}return Rp.instance},JLE=function(y){var W;
_.g(function(V){if(V.nextAddress==1)return _.e("start_client_gcf")||_.e("delete_gcf_config_db")?_.e("start_client_gcf")?V.yield(_.LA(),3):V.jumpTo(2):V.return();V.nextAddress!=2&&((W=V.yieldResult)&&_.B4()&&!_.e("delete_gcf_config_db")?(y.isConfigDbInitialized=!0,kYK(y)):(Yhr(y),BSI(y)));return _.e("delete_gcf_config_db")?V.yield(H2u(),0):V.jumpTo(0)})},XaL=function(){var y;
return(y=JR())!=null?y:_.yC("RAW_HOT_CONFIG_GROUP")},RmK=function(y){var W,V,w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:if(y.hotGlobalConfigGroup)return P.return(JR());if(!y.isConfigDbInitialized)return W=WU("getHotConfig IDB not initialized"),_.FU(W),P.return(Promise.reject(W));V=vU();w=_.yC("TIME_CREATED_MS");if(!V){t=WU("getHotConfig token error");_.FU(t);P.jumpTo(2);break}return P.yield(nCz(V),3);case 3:if((F=P.yieldResult)&&F.timestamp>w)return DTJ(y,F.config),y.setHotHashData(F.hashData),P.return(JR());case 2:BSI(y);if(!(V&&y.hotGlobalConfigGroup&&y.hotHashData)){P.jumpTo(4);
break}return P.yield(R5j(y.hotGlobalConfigGroup,y.hotHashData,V,w),4);case 4:return y.hotGlobalConfigGroup?P.return(JR()):(I=new _.Js("Config not available in ytConfig"),_.FU(I),P.return(Promise.reject(I)))}})},$TR=function(y){var W,V,w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:if(y.coldGlobalConfigGroup)return P.return(xTm());if(!y.isConfigDbInitialized)return W=WU("getColdConfig IDB not initialized"),_.FU(W),P.return(Promise.reject(W));V=vU();w=_.yC("TIME_CREATED_MS");if(!V){t=WU("getColdConfig");_.FU(t);P.jumpTo(2);break}return P.yield($KP(V),3);case 3:if((F=P.yieldResult)&&F.timestamp>w)return lRs(y,F.config),j02(y,F.configData),s0m(y,F.hashData),P.return(xTm());case 2:Yhr(y);if(!(V&&y.coldGlobalConfigGroup&&y.coldHashData&&
y.configData)){P.jumpTo(4);break}return P.yield(jBv(y.coldGlobalConfigGroup,y.coldHashData,y.configData,V,w),4);case 4:return y.coldGlobalConfigGroup?P.return(xTm()):(I=new _.Js("Config not available in ytConfig"),_.FU(I),P.return(Promise.reject(I)))}})},kYK=function(y){if(!y.hotGlobalConfigGroup||!y.coldGlobalConfigGroup){if(!vU()){var W=WU("scheduleGetConfigs");
_.FU(W)}y.initJob||(y.initJob=_.HU.addLowPriorityJob(function(){return _.g(function(V){switch(V.nextAddress){case 1:return _.l7(V,2),V.yield(RmK(y),4);case 4:_.E6(V,3);break;case 2:_.YX(V);case 3:return _.l7(V,5),V.yield($TR(y),7);case 7:_.E6(V,6);break;case 5:_.YX(V);case 6:y.initJob&&(y.initJob=0),_.B7(V)}})},100))}},RAL=function(y,W,V){var w,t,F;
return _.g(function(I){switch(I.nextAddress){case 1:if(!_.e("start_client_gcf")){I.jumpTo(0);break}V&&DTJ(y,V);y.setHotHashData(W);w=vU();if(!w){I.jumpTo(3);break}if(V){I.jumpTo(4);break}return I.yield(nCz(w),5);case 5:t=I.yieldResult,V=(F=t)==null?void 0:F.config;case 4:return I.yield(R5j(V,W,w),3);case 3:if(V)for(var P=V,C=_.N(y.configUpdateService.sharedHotConfigJobQueue),d=C.next();!d.done;d=C.next())d=d.value,d(P);_.B7(I)}})},jdn=function(y,W,V){var w,t,F,I;
return _.g(function(P){if(P.nextAddress==1){if(!_.e("start_client_gcf"))return P.jumpTo(0);s0m(y,W);return(w=vU())?V?P.jumpTo(4):P.yield($KP(w),5):P.jumpTo(0)}P.nextAddress!=4&&(t=P.yieldResult,V=(F=t)==null?void 0:F.config);if(!V)return P.jumpTo(0);I=V.configData;return P.yield(jBv(V,W,I,w),0)})},PN4=function(){var y=ALs(),W=(0,_.cU)()-y.debounceTimer;
if(!(y.debounceTimer!==0&&W<_.pB("send_config_hash_timer"))){W=_.ts("yt.gcf.config.coldConfigData");var V=_.ts("yt.gcf.config.hotHashData"),w=_.ts("yt.gcf.config.coldHashData");W&&V&&w&&(y.debounceTimer=(0,_.cU)());return{coldConfigData:W,hotHashData:V,coldHashData:w}}},Yhr=function(y){lRs(y,_.yC("RAW_COLD_CONFIG_GROUP"));
s0m(y,_.yC("SERIALIZED_COLD_HASH_DATA"));var W;j02(y,(W=y.coldGlobalConfigGroup)==null?void 0:W.configData)},BSI=function(y){DTJ(y,_.yC("RAW_HOT_CONFIG_GROUP"));
y.setHotHashData(_.yC("SERIALIZED_HOT_HASH_DATA"))},DTJ=function(y,W){y.hotGlobalConfigGroup=W;
_.dE("yt.gcf.config.hotConfigGroup",y.hotGlobalConfigGroup||null)},lRs=function(y,W){y.coldGlobalConfigGroup=W;
_.dE("yt.gcf.config.coldConfigGroup",y.coldGlobalConfigGroup||null)};
Rp.prototype.setHotHashData=function(y){this.hotHashData=y;_.dE("yt.gcf.config.hotHashData",this.hotHashData||null)};
var s0m=function(y,W){y.coldHashData=W;_.dE("yt.gcf.config.coldHashData",y.coldHashData||null)},j02=function(y,W){y.configData=W;
_.dE("yt.gcf.config.coldConfigData",y.configData||null)},JR=function(){return _.ts("yt.gcf.config.hotConfigGroup")},xTm=function(){return _.ts("yt.gcf.config.coldConfigGroup")};var Mk={},nkm=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Mk.assign=function(y){for(var W=Array.prototype.slice.call(arguments,1);W.length;){var V=W.shift();if(V){if(typeof V!=="object")throw new TypeError("ed`"+V);for(var w in V)Object.prototype.hasOwnProperty.call(V,w)&&(y[w]=V[w])}}return y};
Mk.shrinkBuf=function(y,W){if(y.length===W)return y;if(y.subarray)return y.subarray(0,W);y.length=W;return y};
var H7K={arraySet:function(y,W,V,w,t){if(W.subarray&&y.subarray)y.set(W.subarray(V,V+w),t);else for(var F=0;F<w;F++)y[t+F]=W[V+F]},
flattenChunks:function(y){var W,V;var w=V=0;for(W=y.length;w<W;w++)V+=y[w].length;var t=new Uint8Array(V);w=V=0;for(W=y.length;w<W;w++){var F=y[w];t.set(F,V);V+=F.length}return t}},XlE={arraySet:function(y,W,V,w,t){for(var F=0;F<w;F++)y[t+F]=W[V+F]},
flattenChunks:function(y){return[].concat.apply([],y)}};
Mk.setTyped=function(){nkm?(Mk.Buf8=Uint8Array,Mk.Buf16=Uint16Array,Mk.Buf32=Int32Array,Mk.assign(Mk,H7K)):(Mk.Buf8=Array,Mk.Buf16=Array,Mk.Buf32=Array,Mk.assign(Mk,XlE))};
Mk.setTyped();var aRf=!0;try{new Uint8Array(1)}catch(y){aRf=!1}
var n1y=function(y){var W,V,w=y.length,t=0;for(W=0;W<w;W++){var F=y.charCodeAt(W);if((F&64512)===55296&&W+1<w){var I=y.charCodeAt(W+1);(I&64512)===56320&&(F=65536+(F-55296<<10)+(I-56320),W++)}t+=F<128?1:F<2048?2:F<65536?3:4}var P=new Mk.Buf8(t);for(W=V=0;V<t;W++)F=y.charCodeAt(W),(F&64512)===55296&&W+1<w&&(I=y.charCodeAt(W+1),(I&64512)===56320&&(F=65536+(F-55296<<10)+(I-56320),W++)),F<128?P[V++]=F:(F<2048?P[V++]=192|F>>>6:(F<65536?P[V++]=224|F>>>12:(P[V++]=240|F>>>18,P[V++]=128|F>>>12&63),P[V++]=
128|F>>>6&63),P[V++]=128|F&63);return P};var STu={};STu=function(y,W,V,w){var t=y&65535|0;y=y>>>16&65535|0;for(var F;V!==0;){F=V>2E3?2E3:V;V-=F;do t=t+W[w++]|0,y=y+t|0;while(--F);t%=65521;y%=65521}return t|y<<16|0};for(var Jf={},Rg,GYI=[],rLE=0;rLE<256;rLE++){Rg=rLE;for(var b7r=0;b7r<8;b7r++)Rg=Rg&1?3988292384^Rg>>>1:Rg>>>1;GYI[rLE]=Rg}Jf=function(y,W,V,w){V=w+V;for(y^=-1;w<V;w++)y=y>>>8^GYI[(y^W[w])&255];return y^-1};var S1={};S1={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 o1j=[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],p9n=[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],$od=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Uoa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k2=Array(576);ih(k2);var s6=Array(60);ih(s6);var U6=Array(512);ih(U6);var qk=Array(256);ih(qk);var KSt=Array(29);ih(KSt);var iOt=Array(30);ih(iOt);var JxG,RdG,jcv,BPL=!1;var nA;
nA=[new $2(0,0,0,0,function(y,W){var V=65535;for(V>y.pending_buf_size-5&&(V=y.pending_buf_size-5);;){if(y.lookahead<=1){RV(y);if(y.lookahead===0&&W===0)return 1;if(y.lookahead===0)break}y.strstart+=y.lookahead;y.lookahead=0;var w=y.block_start+V;if(y.strstart===0||y.strstart>=w)if(y.lookahead=y.strstart-w,y.strstart=w,Af(y,!1),y.strm.avail_out===0)return 1;if(y.strstart-y.block_start>=y.w_size-262&&(Af(y,!1),y.strm.avail_out===0))return 1}y.insert=0;if(W===4)return Af(y,!0),y.strm.avail_out===0?3:
4;y.strstart>y.block_start&&Af(y,!1);return 1}),
new $2(4,4,8,4,DoP),new $2(4,5,16,8,DoP),new $2(4,6,32,32,DoP),new $2(4,4,16,16,j1),new $2(8,16,32,32,j1),new $2(8,16,128,128,j1),new $2(8,32,128,256,j1),new $2(32,128,258,1024,j1),new $2(32,258,258,4096,j1)];var YT4={};YT4=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 HOu=Object.prototype.toString;
Ax4.prototype.push=function(y,W){var V=this.strm,w=this.options.chunkSize;if(this.ended)return!1;var t=W===~~W?W:W===!0?4:0;typeof y==="string"?V.input=n1y(y):HOu.call(y)==="[object ArrayBuffer]"?V.input=new Uint8Array(y):V.input=y;V.next_in=0;V.avail_in=V.input.length;do{V.avail_out===0&&(V.output=new Mk.Buf8(w),V.next_out=0,V.avail_out=w);y=scj(V,t);if(y!==1&&y!==0)return Q0f(this,y),this.ended=!0,!1;if(V.avail_out===0||V.avail_in===0&&(t===4||t===2))if(this.options.to==="string"){var F=Mk.shrinkBuf(V.output,
V.next_out);W=F;F=F.length;if(F<65537&&(W.subarray&&aRf||!W.subarray))W=String.fromCharCode.apply(null,Mk.shrinkBuf(W,F));else{for(var I="",P=0;P<F;P++)I+=String.fromCharCode(W[P]);W=I}this.chunks.push(W)}else W=Mk.shrinkBuf(V.output,V.next_out),this.chunks.push(W)}while((V.avail_in>0||V.avail_out===0)&&y!==1);if(t===4)return(V=this.strm)&&V.state?(w=V.state.status,w!==42&&w!==69&&w!==73&&w!==91&&w!==103&&w!==113&&w!==666?y=Db(V,-2):(V.state=null,y=w===113?Db(V,-3):0)):y=-2,Q0f(this,y),this.ended=
!0,y===0;t===2&&(Q0f(this,0),V.avail_out=0);return!0};
var Q0f=function(y,W){W===0&&(y.result=y.options.to==="string"?y.chunks.join(""):Mk.flattenChunks(y.chunks));y.chunks=[];y.err=W;y.msg=y.strm.msg};var Z7Q=typeof TextEncoder!=="undefined"?new TextEncoder:null,Kgn=Z7Q?function(y){return Z7Q.encode(y)}:function(y){y=_.JG(y);
for(var W=new Uint8Array(y.length),V=0;V<W.length;V++)W[V]=y[V];return W};var Gnz={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},bju={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var j9=function(y,W){this.version=y;this.args=W};
j9.prototype.serialize=function(){return{version:this.version,args:this.args}};var bOR=function(y,W){this.topic=y;this.dataClass=W};
bOR.prototype.toString=function(){return this.topic};var y8E=_.ts("ytPubsub2Pubsub2Instance")||new _.D3;_.D3.prototype.subscribe=_.D3.prototype.subscribe;_.D3.prototype.unsubscribeByKey=_.D3.prototype.unsubscribeByKey;_.D3.prototype.publish=_.D3.prototype.publish;_.D3.prototype.clear=_.D3.prototype.clear;_.dE("ytPubsub2Pubsub2Instance",y8E);var rxP=_.ts("ytPubsub2Pubsub2SubscribedKeys")||{};_.dE("ytPubsub2Pubsub2SubscribedKeys",rxP);var ZOt=_.ts("ytPubsub2Pubsub2TopicToKeys")||{};_.dE("ytPubsub2Pubsub2TopicToKeys",ZOt);
var QcG=_.ts("ytPubsub2Pubsub2IsAsync")||{};_.dE("ytPubsub2Pubsub2IsAsync",QcG);_.dE("ytPubsub2Pubsub2SkipSubKey",null);var gAa=void 0,Ngz=void 0;var ccy=_.pB("max_body_size_to_compress",5E5),ekd=_.pB("min_body_size_to_compress",500),aV=!0,fpv=0,Gp=0,i6v=_.pB("compression_performance_threshold_lr",250),Tgv=_.pB("slow_compressions_before_abandon_count",4),O6n=!1,vAj=new Map,oAd=1,hkP=!0;_.pF(rE,q$P);rE.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 WNQ=function(y,W,V){V||(V=0);var w=y.W_;if(typeof W==="string")for(var t=0;t<16;t++)w[t]=W.charCodeAt(V)<<24|W.charCodeAt(V+1)<<16|W.charCodeAt(V+2)<<8|W.charCodeAt(V+3),V+=4;else for(t=0;t<16;t++)w[t]=W[V]<<24|W[V+1]<<16|W[V+2]<<8|W[V+3],V+=4;for(W=16;W<80;W++)V=w[W-3]^w[W-8]^w[W-14]^w[W-16],w[W]=(V<<1|V>>>31)&4294967295;W=y.chain_[0];V=y.chain_[1];t=y.chain_[2];for(var F=y.chain_[3],I=y.chain_[4],P,C,d=0;d<80;d++)d<40?d<20?(P=F^V&(t^F),C=1518500249):(P=V^t^F,C=1859775393):d<60?(P=V&t|F&(V|t),
C=2400959708):(P=V^t^F,C=3395469782),P=(W<<5|W>>>27)+P+I+C+w[d]&4294967295,I=F,F=t,t=(V<<30|V>>>2)&4294967295,V=W,W=P;y.chain_[0]=y.chain_[0]+W&4294967295;y.chain_[1]=y.chain_[1]+V&4294967295;y.chain_[2]=y.chain_[2]+t&4294967295;y.chain_[3]=y.chain_[3]+F&4294967295;y.chain_[4]=y.chain_[4]+I&4294967295};
rE.prototype.update=function(y,W){if(y!=null){W===void 0&&(W=y.length);for(var V=W-this.blockSize,w=0,t=this.buf_,F=this.inbuf_;w<W;){if(F==0)for(;w<=V;)WNQ(this,y,w),w+=this.blockSize;if(typeof y==="string")for(;w<W;){if(t[F]=y.charCodeAt(w),++F,++w,F==this.blockSize){WNQ(this,t);F=0;break}}else for(;w<W;)if(t[F]=y[w],++F,++w,F==this.blockSize){WNQ(this,t);F=0;break}}this.inbuf_=F;this.total_+=W}};
rE.prototype.digest=function(){var y=[],W=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var V=this.blockSize-1;V>=56;V--)this.buf_[V]=W&255,W/=256;WNQ(this,this.buf_);for(V=W=0;V<5;V++)for(var w=24;w>=0;w-=8)y[W]=this.chain_[V]>>w&255,++W;return y};var S$v;var no=function(y){var W=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(L){W.databaseToken=L},
triggerThrottle:function(){W.throttledSend()},
cancelThrottle:function(){W.cancelThrottledSend()},
immediateSend:function(L){return _.g(function(z){return z.yield(W.immediateSend(L),0)})},
requestWithinAgeLimit:function(L,z){return W.requestWithinAgeLimit(L,z)},
retryQueuedRequests:function(){W.retryQueuedRequests()}};
var V;this.throttleTimeout=(V=y.throttleTimeout)!=null?V:100;var w;this.retryMaxAttempts=(w=y.retryMaxAttempts)!=null?w:1;var t;this.requestAgeLimitMs=(t=y.requestAgeLimitMs)!=null?t:2592E6;var F;this.queuedRequestAgeLimitMs=(F=y.queuedRequestAgeLimitMs)!=null?F:12E4;var I;this.retryDelayMs=(I=y.retryDelayMs)!=null?I:5E3;var P;this.databaseToken=(P=y.databaseToken)!=null?P:void 0;this.enableCleaning=!!y.enableCleaning;var C;this.cleaningRate=(C=y.cleaningRate)!=null?C:.1;var d;this.potentialEsfErrorLimit=
(d=y.potentialEsfErrorLimit)!=null?d:10;y.handleError&&(this.handleError=y.handleError);y.handleWarning&&(this.handleWarning=y.handleWarning);y.disableYtIdbTransactions&&(this.disableYtIdbTransactions=y.disableYtIdbTransactions);y.bypassDbTokenDependency&&(this.bypassDbTokenDependency=y.bypassDbTokenDependency);this.getBooleanFlag=y.getBooleanFlag;this.jobManager=y.jobManager;this.logsStore=y.logsStore;this.networkManager=y.networkManager;this.sendFn=y.sendFn;this.onlineEvent=y.onlineEvent;this.offlineEvent=
y.offlineEvent;$$(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&VKm(this)},VKm=function(y){$$(y)&&!y.disableYtIdbTransactions&&(y.initialized=!0,y.enableCleaning&&Math.random()<=y.cleaningRate&&y.logsStore.cleanLogsStore(y.databaseToken),y.retryQueuedRequests(),y.networkManager.isNetworkAvailable()&&y.throttledSend(),y.networkManager.listen(y.onlineEvent,y.throttledSend.bind(y)),y.networkManager.listen(y.offlineEvent,y.cancelThrottledSend.bind(y)))};
_.E=no.prototype;_.E.writeThenSend=function(y,W){var V=this;W=W===void 0?{}:W;if($$(this)&&this.initialized){var w={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(w,this.databaseToken).then(function(t){w.id=t;V.networkManager.isNetworkAvailable()&&V.immediateSend(w)}).catch(function(t){V.immediateSend(w);
wfJ(V,t)})}else this.sendFn(y,W)};
_.E.sendThenWrite=function(y,W,V){var w=this;W=W===void 0?{}:W;if($$(this)&&this.initialized){var t={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(t.skipRetry=V);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!t.skipRetry){if(!t.skipRetry){var F=W.onError?W.onError:function(){};
W.onError=function(I,P){return _.g(function(C){if(C.nextAddress==1)return C.yield(w.logsStore.set(t,w.databaseToken).catch(function(d){wfJ(w,d)}),2);
F(I,P);_.B7(C)})}}this.sendFn(y,W,t.skipRetry)}else this.logsStore.set(t,this.databaseToken).catch(function(I){w.sendFn(y,W,t.skipRetry);
wfJ(w,I)})}else this.sendFn(y,W,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&V)};
_.E.sendAndWrite=function(y,W){var V=this;W=W===void 0?{}:W;if($$(this)&&this.initialized){var w={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0},t=!1,F=W.onSuccess?W.onSuccess:function(){};
w.options.onSuccess=function(I,P){w.id!==void 0?V.logsStore.deleteRequest(w.id,V.databaseToken):t=!0;V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);F(I,P)};
this.sendFn(w.url,w.options,void 0,!0);this.logsStore.set(w,this.databaseToken).then(function(I){w.id=I;t&&V.logsStore.deleteRequest(w.id,V.databaseToken)}).catch(function(I){wfJ(V,I)})}else this.sendFn(y,W,void 0,!0)};
_.E.throttledSend=function(){var y=this;if(!$$(this))throw Error("hd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.logsStore.getMostRecentByStatus("NEW",y.databaseToken),2);if(V.nextAddress!=3)return W=V.yieldResult,W?V.yield(y.immediateSend(W),3):(y.cancelThrottledSend(),V.return());y.intervalJob&&(y.intervalJob=0,y.throttledSend());_.B7(V)})},this.throttleTimeout))};
_.E.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.E.immediateSend=function(y){var W=this,V;return _.g(function(w){switch(w.nextAddress){case 1:if(!$$(W))throw Error("id");if(y.id===void 0){w.jumpTo(2);break}return w.yield(W.logsStore.markAsQueued(y.id,W.databaseToken),3);case 3:(V=w.yieldResult)||W.handleWarning(Error("jd"));case 2:if(W.requestWithinAgeLimit(y,W.requestAgeLimitMs)){w.jumpTo(4);break}W.handleWarning(Error("kd"));if(y.id===void 0){w.jumpTo(5);break}return w.yield(W.logsStore.deleteRequest(y.id,W.databaseToken),5);case 5:return w.return();
case 4:y.skipRetry||(y=tKi(W,y));if(!y){w.jumpTo(0);break}if(!y.skipRetry||y.id===void 0){w.jumpTo(8);break}return w.yield(W.logsStore.deleteRequest(y.id,W.databaseToken),8);case 8:W.sendFn(y.url,y.options,!!y.skipRetry),_.B7(w)}})};
var tKi=function(y,W){if(!$$(y))throw Error("ld");var V=W.options.onError?W.options.onError:function(){};
W.options.onError=function(t,F){var I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:I=s6P(F);(P=Acy(F))&&y.getBooleanFlag&&y.getBooleanFlag("web_enable_error_204")&&y.handleError(Error("md"),W.url,F);if(!(y.getBooleanFlag&&y.getBooleanFlag("nwl_consider_error_code")&&I||y.getBooleanFlag&&!y.getBooleanFlag("nwl_consider_error_code")&&y.potentialEsfErrorCounter<=y.potentialEsfErrorLimit)){L.jumpTo(2);break}if(!y.networkManager.sendNetworkCheckRequest){L.jumpTo(3);break}return L.yield(y.networkManager.sendNetworkCheckRequest(),
3);case 3:if(y.networkManager.isNetworkAvailable()){L.jumpTo(2);break}V(t,F);if(!y.getBooleanFlag||!y.getBooleanFlag("nwl_consider_error_code")||((C=W)==null?void 0:C.id)===void 0){L.jumpTo(6);break}return L.yield(y.logsStore.resetRequest(W.id,y.databaseToken,!1),6);case 6:return L.return();case 2:if(y.getBooleanFlag&&y.getBooleanFlag("nwl_consider_error_code")&&!I&&y.potentialEsfErrorCounter>y.potentialEsfErrorLimit)return L.return();y.potentialEsfErrorCounter++;if(((d=W)==null?void 0:d.id)===void 0){L.jumpTo(8);
break}return W.sendCount<y.retryMaxAttempts?L.yield(y.logsStore.resetRequest(W.id,y.databaseToken,!0,P?!1:void 0),12):L.yield(y.logsStore.deleteRequest(W.id,y.databaseToken),8);case 12:y.jobManager.addLowPriorityJob(function(){y.networkManager.isNetworkAvailable()&&y.throttledSend()},y.retryDelayMs);
case 8:V(t,F),_.B7(L)}})};
var w=W.options.onSuccess?W.options.onSuccess:function(){};
W.options.onSuccess=function(t,F){var I;return _.g(function(P){if(P.nextAddress==1)return((I=W)==null?void 0:I.id)===void 0?P.jumpTo(2):P.yield(y.logsStore.deleteRequest(W.id,y.databaseToken),2);y.networkManager.networkStatusHint&&y.getBooleanFlag&&y.getBooleanFlag("vss_network_hint")&&y.networkManager.networkStatusHint(!0);w(t,F);_.B7(P)})};
return W};
no.prototype.requestWithinAgeLimit=function(y,W){y=y.timestamp;return this.now()-y>=W?!1:!0};
no.prototype.retryQueuedRequests=function(){var y=this;if(!$$(this))throw Error("nd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(W){W&&!y.requestWithinAgeLimit(W,y.queuedRequestAgeLimitMs)?y.jobManager.addLowPriorityJob(function(){return _.g(function(V){if(V.nextAddress==1)return W.id===void 0?V.jumpTo(2):V.yield(y.logsStore.resetRequest(W.id,y.databaseToken),2);y.retryQueuedRequests();_.B7(V)})}):y.networkManager.isNetworkAvailable()&&y.throttledSend()})};
var wfJ=function(y,W){y.writeError&&!y.networkManager.isNetworkAvailable()?y.writeError(W):y.handleError(W)},$$=function(y){return!!y.databaseToken||y.bypassDbTokenDependency};var Y$R;var H5n={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var FN2={},GAL=zp("ServiceWorkerLogsDatabase",{objectStores:(FN2.SWHealthLog={addedAtVersion:1},FN2),shared:!0,upgrade:function(y,W){W(1)&&wQ(VT(y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var wCv={},VYn=0;var Ncb;var Hs=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Ip=function(){if(!Hs.instance){var y=_.ts("yt.networkRequestMonitor.instance")||new Hs;
_.dE("yt.networkRequestMonitor.instance",y);Hs.instance=y}return Hs.instance};
Hs.prototype.requestComplete=function(y,W){W&&(this.anyRequestHasSucceeded=!0);y=this.removeParams(y);this.requestMap.get(y)||this.requestMap.set(y,W)};
Hs.prototype.isEndpointCFR=function(y){y=this.removeParams(y);return(y=this.requestMap.get(y))?!1:y===!1&&this.anyRequestHasSucceeded?!0:null};
Hs.prototype.removeParams=function(y){return y.split("?")[0]};
Hs.prototype.removeParams=Hs.prototype.removeParams;Hs.prototype.isEndpointCFR=Hs.prototype.isEndpointCFR;Hs.prototype.requestComplete=Hs.prototype.requestComplete;Hs.getInstance=Ip;var Xb=function(y){_.Bg.call(this);var W=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=y!=null?y:{addLowPriorityJob:function(t,F){return setTimeout(t,F)},
cancelJob:function(t){clearTimeout(t)}};
var V,w;this.isOnline=(w=(V=window.navigator)==null?void 0:V.onLine)!=null?w:!0;this.onNavigatorChange=function(){return _.g(function(t){return t.yield(EyJ(W),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||NyI(this)};
_.p(Xb,_.Bg);Xb.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Xb.instance};
Xb.prototype.isNetworkAvailable=function(){return this.isOnline};
var NyI=function(y){y.pollingJob=y.jobManager.addLowPriorityJob(function(){var W;return _.g(function(V){if(V.nextAddress==1)return y.isOnline?((W=window.navigator)==null?0:W.onLine)?V.jumpTo(3):V.yield(EyJ(y),3):V.yield(EyJ(y),3);NyI(y);_.B7(V)})},3E4)},EyJ=function(y,W){return y.networkRequestPromise?y.networkRequestPromise:y.networkRequestPromise=new Promise(function(V){var w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:return w=window.AbortController?new window.AbortController:void 0,F=(t=w)==null?void 0:t.signal,I=!1,_.l7(P,2,3),w&&(y.abortTimeoutKey=y.jobManager.addLowPriorityJob(function(){w.abort()},W||2E4)),P.yield(fetch("/generate_204",{method:"HEAD",
signal:F}),5);case 5:I=!0;case 3:_.kX(P);y.networkRequestPromise=void 0;y.abortTimeoutKey&&(y.jobManager.cancelJob(y.abortTimeoutKey),y.abortTimeoutKey=0);I!==y.isOnline&&(y.isOnline=I,y.isOnline?y.dispatchEvent("networkstatus-online"):y.dispatchEvent("networkstatus-offline"));V(I);_.AX(P,0);break;case 2:_.YX(P),I=!1,P.jumpTo(3)}})})};var ag=function(){_.Bg.call(this);var y=this;this.shouldFlushErrors=!1;Xb.instance||(Xb.instance=new Xb(_.HU));this.sharedNetworkStatusManager=Xb.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(y.shouldFlushErrors&&_.e("offline_error_handling")){var W=I8j().get("errors",!0);if(W){for(var V in W)if(W[V]){var w=new _.Js(V,"sent via offline_errors");w.name=W[V].name;w.stack=W[V].stack;w.level=W[V].level;_.VC(w)}I8j().set("errors",{},2592E3,!0)}}})};
_.p(ag,_.Bg);var IA6=function(){if(!ag.instance){var y=_.ts("yt.networkStatusManager.instance")||new ag;_.dE("yt.networkStatusManager.instance",y);ag.instance=y}return ag.instance};
_.E=ag.prototype;_.E.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.E.networkStatusHint=function(y){this.sharedNetworkStatusManager.isOnline=y};
_.E.getWindowStatus=function(){var y=window.navigator.onLine;return y===void 0?!0:y};
_.E.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.E.listen=function(y,W){return this.sharedNetworkStatusManager.listen(y,W)};
_.E.sendNetworkCheckRequest=function(y){y=EyJ(this.sharedNetworkStatusManager,y);y.then(function(W){_.e("use_cfr_monitor")&&Ip().requestComplete("generate_204",W)});
return y};
ag.prototype.sendNetworkCheckRequest=ag.prototype.sendNetworkCheckRequest;ag.prototype.listen=ag.prototype.listen;ag.prototype.enableErrorFlushing=ag.prototype.enableErrorFlushing;ag.prototype.getWindowStatus=ag.prototype.getWindowStatus;ag.prototype.networkStatusHint=ag.prototype.networkStatusHint;ag.prototype.isNetworkAvailable=ag.prototype.isNetworkAvailable;ag.getInstance=IA6;_.NN=function(y){y=y===void 0?{}:y;_.Bg.call(this);var W=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=IA6();var V=_.ts("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);V&&(y.rateLimit?(this.rateLimit=y.rateLimit,V("networkstatus-online",function(){gyI(W,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){gyI(W,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",
function(){W.dispatchEvent("publicytnetworkstatus-offline")})))};
_.p(_.NN,_.Bg);_.NN.prototype.isNetworkAvailable=function(){var y=_.ts("yt.networkStatusManager.instance.isNetworkAvailable");return y?y.bind(this.nsmInstance)():!0};
_.NN.prototype.networkStatusHint=function(y){var W=_.ts("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);W&&W(y)};
_.NN.prototype.sendNetworkCheckRequest=function(y){var W=this,V;return _.g(function(w){V=_.ts("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.nsmInstance);return _.e("skip_network_check_if_cfr")&&Ip().isEndpointCFR("generate_204")?w.return(new Promise(function(t){var F;W.networkStatusHint(((F=window.navigator)==null?void 0:F.onLine)||!0);t(W.isNetworkAvailable())})):V?w.return(V(y)):w.return(!0)})};
var gyI=function(y,W){y.rateLimit?y.lastJobTime?(_.HU.cancelJob(y.schedulerJob),y.schedulerJob=_.HU.addLowPriorityJob(function(){y.lastPublicSignalSent!==W&&(y.dispatchEvent(W),y.lastPublicSignalSent=W,y.lastJobTime=(0,_.cU)())},y.rateLimit-((0,_.cU)()-y.lastJobTime))):(y.dispatchEvent(W),y.lastPublicSignalSent=W,y.lastJobTime=(0,_.cU)()):y.dispatchEvent(W)};var vcL,Gf=function(){no.call(this,{logsStore:{cleanLogsStore:XWj,deleteRequest:H6d,getMostRecentByStatus:j6n,markAsQueued:$gR,resetRequest:nAn,set:Rky},networkManager:_.dMd(),handleError:function(y,W,V){var w,t=V==null?void 0:(w=V.error)==null?void 0:w.code;if(t===400||t===415){var F;y=new _.Js(y.message,W,V==null?void 0:(F=V.error)==null?void 0:F.code);_.FU(y,void 0,void 0,void 0,!0)}else _.VC(y)},
handleWarning:_.FU,sendFn:CEb,now:_.cU,writeError:gcd,jobManager:_.Xu(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.pB("potential_esf_error_limit",10),getBooleanFlag:_.e,disableYtIdbTransactions:!(_.B4()&&_.LMz())});this.initializationPromise=new _.UT;_.e("networkless_immediately_drop_all_requests")&&apn();AzL("LogsDatabaseV2")};
_.p(Gf,no);_.CuE=function(){var y=_.ts("yt.networklessRequestController.instance");y||(y=new Gf,_.dE("yt.networklessRequestController.instance",y),_.e("networkless_logging")&&_.LA().then(function(W){y.databaseToken=W;VKm(y);y.initializationPromise.resolve();y.enableCleaning&&Math.random()<=y.cleaningRate&&y.databaseToken&&b6y(y.databaseToken);_.e("networkless_immediately_drop_sw_health_store")&&Pus(y)}));
return y};
Gf.prototype.writeThenSend=function(y,W){W||(W={});W=ODn(y,W);_.B4()||(this.initialized=!1);no.prototype.writeThenSend.call(this,y,W)};
Gf.prototype.sendThenWrite=function(y,W,V){W||(W={});W=ODn(y,W);_.B4()||(this.initialized=!1);no.prototype.sendThenWrite.call(this,y,W,V)};
Gf.prototype.sendAndWrite=function(y,W){W||(W={});W=ODn(y,W);_.B4()||(this.initialized=!1);no.prototype.sendAndWrite.call(this,y,W)};
Gf.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Pus=function(y){var W;_.g(function(V){if(!y.databaseToken)throw W=WU("clearSWHealthLogsDb"),W;return V.return(Q6L(y.databaseToken).catch(function(w){y.handleError(w)}))})};_.cYa=!1;_.z6z=_.Vj.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.cYa};_.dE("ytNetworklessLoggingInitializationOptions",_.z6z);var ni=function(y){var W=this;this.config_=null;y?this.config_=y:XEG()&&(this.config_=_.hf());_.Jt(_.HU,function(){kAu(W)},5E3)};
ni.prototype.isReady=function(){!this.config_&&XEG()&&(this.config_=_.hf());return!!this.config_};
var xgy=function(y,W,V,w){!_.yC("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&_.FU(new _.Js("Missing VISITOR_DATA when sending innertube request.",W,V,w));if(!y.isReady()){var t=new _.Js("innertube xhrclient not ready",W,V,w);_.VC(t);throw t;}var F={headers:w.headers||{},method:"POST",postParams:V,postBody:w.postBody,postBodyFormat:w.postBodyFormat||"JSON",onTimeout:function(){w.onTimeout()},
onFetchTimeout:w.onTimeout,onSuccess:function(z,c){if(w.onSuccess)w.onSuccess(c)},
onFetchSuccess:function(z){if(w.onSuccess)w.onSuccess(z)},
onError:function(z,c){if(w.onError)w.onError(c)},
onFetchError:function(z){if(w.onError)w.onError(z)},
timeout:w.timeout,withCredentials:!0,compress:w.compress};F.headers["Content-Type"]||(F.headers["Content-Type"]="application/json");var I="";(t=y.config_.innertubeHostOverride)&&(I=t);var P=y.config_.innertubeUseThirdPartyAuth||!1,C=_.g1t(P,I,w);Object.assign(F.headers,C);F.headers.Authorization&&!I&&P&&(F.headers["x-origin"]=window.location.origin);var d=_.CB(I+("/youtubei/"+y.config_.innertubeApiVersion+"/"+W),{alt:"json"}),L=function(z){z=z===void 0?!1:z;var c;if(w.retry&&I!="www.youtube-nocookie.com"&&
(z||_.e("skip_ls_gel_retry")||F.headers["Content-Type"]!=="application/json"||(c=DgR(W,V,C,P)),c)){var K=F.onSuccess,f=F.onFetchSuccess;F.onSuccess=function(x,B){lpP(c);K(x,B)};
V.onFetchSuccess=function(x,B){lpP(c);f(x,B)}}try{if(z&&w.retry&&!w.networklessOptions.bypassNetworkless)F.method="POST",w.networklessOptions.writeThenSend?_.CuE().writeThenSend(d,F):_.CuE().sendAndWrite(d,F);
else if(w.compress){var U=!w.networklessOptions.writeThenSend;if(F.postBody){var l=F.postBody;typeof l!=="string"&&(l=JSON.stringify(F.postBody));pWb(d,l,F,_.uC,U)}else pWb(d,JSON.stringify(F.postParams),F,qnv,U)}else _.e("web_all_payloads_via_jspb")?_.uC(d,F):qnv(d,F)}catch(x){if(x.name==="InvalidAccessError")c&&(lpP(c),c=0),_.FU(Error("od"));else throw x;}c&&_.Jt(_.HU,function(){kAu(y)},5E3)};
_.e6a()?UKn().then(function(z){L(z)}):L(!1)};var Kuj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Kuj,_.fu);var OMK=0,oc4=_.qW?"webkit":_.MW?"moz":_.mU?"ms":KQP?"o":"";_.dE("ytDomDomGetNextId",_.ts("ytDomDomGetNextId")||function(){return++OMK});var vyi={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},dQ=function(y){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(y=
y||window.event){this.event=y;for(var W in y)W in vyi||(this[W]=y[W]);this.scale=y.scale;this.rotation=y.rotation;var V=y.target||y.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var w=y.relatedTarget;if(w)try{w=w.nodeName?w:null}catch(t){w=null}else this.type=="mouseover"?w=y.fromElement:this.type=="mouseout"&&(w=y.toElement);this.relatedTarget=w;this.clientX=y.clientX!=void 0?y.clientX:y.pageX;this.clientY=y.clientY!=void 0?y.clientY:y.pageY;this.keyCode=y.keyCode?y.keyCode:y.which;
this.charCode=y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=y.altKey;this.ctrlKey=y.ctrlKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.pageX_=y.pageX;this.pageY_=y.pageY}}catch(t){}},dB6=function(y){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;
y.pageX_=y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);y.pageY_=y.clientY+W}};
dQ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
dQ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
dQ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var vp=_.Vj.ytEventsEventsListeners||{};_.dE("ytEventsEventsListeners",vp);var mMv=_.Vj.ytEventsEventsCounter||{count:0};_.dE("ytEventsEventsCounter",mMv);var MYb=_.YW(function(){var y=!1;try{var W=Object.defineProperty({},"capture",{get:function(){y=!0}});
window.addEventListener("test",null,W)}catch(V){}return y});_.pF(zD,_.Ru);zD.prototype.onMouseMove_=function(y){y.pageX_===void 0&&dB6(y);var W=y.pageX_;y.pageY_===void 0&&dB6(y);this.position_=new _.bj(W,y.pageY_)};
zD.prototype.checkPosition_=function(){if(this.position_){var y=(0,_.cU)();if(this.previousTime_!=0){var W=this.previousPosition_,V=this.position_,w=W.x-V.x;W=W.y-V.y;w=Math.sqrt(w*w+W*W)/(y-this.previousTime_);this.cycles_[this.index_]=Math.abs((w-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(V=W=0;V<4;V++)W+=this.cycles_[V]||0;W>=3&&this.callback_();this.previousVelocity_=w}this.previousTime_=y;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
zD.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.qrz(this.mouseListenerKey_)};var DMu={};var JlR=new _.zf("rawColdConfigGroup");var BLy=new _.zf("rawHotConfigGroup");var LNs=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(LNs,_.fu);var ogP=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ogP,_.fu);var At=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y,500)};
_.p(At,_.fu);At.prototype.getPayloadCase=function(){return _.Jd(this,zDz)};
At.prototype.getContext=function(){return _.Da(this,ogP,33)};
var zDz=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var lQv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lQv,_.fu);var gSz=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(gSz,_.fu);gSz.prototype.setVideoId=function(y){return Ug(this,1,PFv,Bd(y))};
gSz.prototype.getPlaylistId=function(){return _.lz(this,xI(this,PFv,2))};
var PFv=[1,2];var Mlv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Mlv,_.fu);Mlv.prototype.getContext=function(){return _.Da(this,ub,1)};
Mlv.prototype.getTier=function(){return _.rK(this,7)};var c8f,op,Ki;c8f=_.Vj.ytPubsubPubsubInstance||new _.D3;op=_.Vj.ytPubsubPubsubSubscribedKeys||{};Ki=_.Vj.ytPubsubPubsubTopicToKeys||{};_.l8d=_.Vj.ytPubsubPubsubIsSynchronous||{};_.D3.prototype.subscribe=_.D3.prototype.subscribe;_.D3.prototype.unsubscribeByKey=_.D3.prototype.unsubscribeByKey;_.D3.prototype.publish=_.D3.prototype.publish;_.D3.prototype.clear=_.D3.prototype.clear;_.dE("ytPubsubPubsubInstance",c8f);_.dE("ytPubsubPubsubTopicToKeys",Ki);_.dE("ytPubsubPubsubIsSynchronous",_.l8d);
_.dE("ytPubsubPubsubSubscribedKeys",op);var ib=window;var r6=_.e("web_enable_lifecycle_monitoring")&&Yru()!==0,eDR=_.e("web_enable_lifecycle_monitoring");var hDI=function(y){var W=this;var V=V===void 0?0:V;var w=w===void 0?_.Xu():w;this.JSC$10777_defaultPriority=V;this.scheduler=w;this.completedResolver=new _.UT;this.scheduledPayloads=y;for(y={i$jscomp$492:0};y.i$jscomp$492<this.scheduledPayloads.length;y={payload$jscomp$19:void 0,i$jscomp$492:y.i$jscomp$492},y.i$jscomp$492++)y.payload$jscomp$19=this.scheduledPayloads[y.i$jscomp$492],V=function(t){return function(){t.payload$jscomp$19.job();W.scheduledPayloads[t.i$jscomp$492].processed=!0;W.scheduledPayloads.every(function(F){return F.processed===
!0})&&W.completedResolver.resolve()}}(y),w=this.getPriority(y.payload$jscomp$19),w=this.scheduler.addJob(V,w),this.scheduledPayloads[y.i$jscomp$492]=Object.assign({},y.payload$jscomp$19,{job:V,
jobId:w})};
hDI.prototype.flushJobs=function(){var y=this,W=Array.from(this.scheduledPayloads.keys()).sort(function(w,t){return y.getPriority(y.scheduledPayloads[t])-y.getPriority(y.scheduledPayloads[w])});
W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=this.scheduledPayloads[V.value],V.jobId===void 0||V.processed||(this.scheduler.cancelJob(V.jobId),this.scheduler.addJob(V.job,10))};
hDI.prototype.cancel=function(){for(var y=_.N(this.scheduledPayloads),W=y.next();!W.done;W=y.next())W=W.value,W.jobId===void 0||W.processed||this.scheduler.cancelJob(W.jobId),W.processed=!0;this.completedResolver.resolve()};
hDI.prototype.getPriority=function(y){var W;return(W=y.priority)!=null?W:this.JSC$10777_defaultPriority};var by=function(y){this.state=y;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};r6&&Bct(this.state)};
by.prototype.install=function(y){this.plugins.push(y);return this};
by.prototype.uninstall=function(){var y=this;_.Ve.apply(0,arguments).forEach(function(W){W=y.plugins.indexOf(W);W>-1&&y.plugins.splice(W,1)})};
by.prototype.transition=function(y,W){var V=this;r6&&JYG(this.state);var w=this.transitions.find(function(F){return Array.isArray(F.from)?F.from.find(function(I){return I===V.state&&F.to===y}):F.from===V.state&&F.to===y});
if(w){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);oy6(this,y,W);this.state=y;r6&&Bct(this.state);w=w.action.bind(this);var t=this.plugins.filter(function(F){return F[y]}).map(function(F){return F[y]});
w(KNq(this,t),W)}else throw Error("pd`"+this.state+"`"+y);};
var KNq=function(y,W){var V=W.filter(function(t){return pfs(y,t)===10}),w=W.filter(function(t){return pfs(y,t)!==10});
return y.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var t=_.Ve.apply(0,arguments);return _.g(function(F){if(F.nextAddress==1)return F.yield(y.runImmediateJobsAsync.apply(y,[V].concat(_.GC(t))),2);y.setJobSetWithScheduledJobs.apply(y,[w].concat(_.GC(t)));_.B7(F)})}:function(){var t=_.Ve.apply(0,arguments);
y.runImmediateJobsSync.apply(y,[V].concat(_.GC(t)));y.setJobSetWithScheduledJobs.apply(y,[w].concat(_.GC(t)))}};
by.prototype.runImmediateJobsSync=function(y){var W=_.Ve.apply(1,arguments);_.Xu();for(var V=_.N(y),w=V.next(),t={};!w.done;t={lifecycle$jscomp$2:void 0},w=V.next())t.lifecycle$jscomp$2=w.value,M4(function(F){return function(){iM2(F.lifecycle$jscomp$2.name);jU4(function(){return F.lifecycle$jscomp$2.callback.apply(F.lifecycle$jscomp$2,_.GC(W))});
Qy(F.lifecycle$jscomp$2.name)}}(t))};
by.prototype.runImmediateJobsAsync=function(y){var W=_.Ve.apply(1,arguments),V,w,t,F;return _.g(function(I){I.nextAddress==1&&(_.Xu(),V=_.N(y),w=V.next(),t={});if(I.nextAddress!=3){if(w.done)return I.jumpTo(0);t.lifecycle$jscomp$3=w.value;t.asyncJobCompletion=void 0;F=function(P){return function(){iM2(P.lifecycle$jscomp$3.name);var C=jU4(function(){return P.lifecycle$jscomp$3.callback.apply(P.lifecycle$jscomp$3,_.GC(W))});
Z1j(C)?P.asyncJobCompletion=_.e("web_lifecycle_error_handling_killswitch")?C.then(function(){Qy(P.lifecycle$jscomp$3.name)}):C.then(function(){Qy(P.lifecycle$jscomp$3.name)},function(d){R6n(d);
Qy(P.lifecycle$jscomp$3.name)}):Qy(P.lifecycle$jscomp$3.name)}}(t);
M4(F);return t.asyncJobCompletion?I.yield(t.asyncJobCompletion,3):I.jumpTo(3)}t={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};w=V.next();return I.jumpTo(2)})};
by.prototype.setJobSetWithScheduledJobs=function(y){var W=_.Ve.apply(1,arguments),V=this,w=y.map(function(t){return{job:function(){iM2(t.name);jU4(function(){return t.callback.apply(t,_.GC(W))});
Qy(t.name)},
priority:pfs(V,t)}});
w.length&&(this.jobSet=new hDI(w))};
var pfs=function(y,W){var V,w;return(w=(V=y.overridePriority)!=null?V:W.priority)!=null?w:0},iM2=function(y){r6&&y&&Bct(y)},Qy=function(y){r6&&y&&JYG(y)},oy6=function(y,W,V){eDR&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+y.constructor.name+"] '"+y.state+"' to '"+W+"'"),console.log("with message: ",V),console.groupEnd())};
_.CM.Object.defineProperties(by.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var fAq=function(y){by.call(this,y===void 0?"none":y);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(){}}]},TyE;
_.p(fAq,by);fAq.prototype.runApplicationNavigationBegin=function(y,W){var V=this;this.navigationTimer=_.Jt(_.HU,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3);
y(W==null?void 0:W.event)};
fAq.prototype.runApplicationNavigationEnd=function(y,W){this.navigationTimer&&(_.HU.cancelJob(this.navigationTimer),this.navigationTimer=null);y(W==null?void 0:W.event)};
_.YUj=function(){TyE||(TyE=new fAq);return TyE};var Aly=[];_.dE("yt.logging.transport.getScrapedGelPayloads",function(){return Aly});var fi=function(){var y=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return y.totalEntries}}};
fi.prototype.storePayload=function(y,W){y=$MG(y);this.store[y]?this.store[y].push(W):(this.memoizedKeySequences={},this.store[y]=[W]);this.totalEntries++;_.e("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return y};
fi.prototype.smartExtractMatchingEntries=function(y){if(!y.keys.length)return[];for(var W=mBR(this,y.keys.splice(0,1)[0]),V=[],w=0;w<W.length;w++)this.store[W[w]]&&y.sizeLimit&&(this.store[W[w]].length<=y.sizeLimit?(V.push.apply(V,_.GC(this.store[W[w]])),delete this.store[W[w]]):V.push.apply(V,_.GC(this.store[W[w]].splice(0,y.sizeLimit))));this.totalEntries-=V.length;(y==null?0:y.sizeLimit)&&V.length<(y==null?void 0:y.sizeLimit)&&(y.sizeLimit-=V.length,V.push.apply(V,_.GC(this.smartExtractMatchingEntries(y))));
return V};
fi.prototype.extractMatchingEntries=function(y){y=mBR(this,y);for(var W=[],V=0;V<y.length;V++)this.store[y[V]]&&(W.push.apply(W,_.GC(this.store[y[V]])),delete this.store[y[V]]);this.totalEntries-=W.length;return W};
fi.prototype.getSequenceCount=function(y){y=mBR(this,y);for(var W=0,V=0;V<y.length;V++){var w=void 0;W+=((w=this.store[y[V]])==null?void 0:w.length)||0}return W};
var mBR=function(y,W){var V=$MG(W);if(y.memoizedKeySequences[V])return y.memoizedKeySequences[V];var w=Object.keys(y.store)||[];if(w.length<=1&&$MG(W)===w[0])return w;for(var t=[],F=0;F<w.length;F++){var I=w[F].split("/");if(MKK(W.auth,I[0])){var P=W.isJspb;MKK(P===void 0?"undefined":P?"true":"false",I[1])&&MKK(W.cttAuthInfo,I[2])&&(P=W.tier,P=P===void 0?"undefined":JSON.stringify(P),MKK(P,I[3])&&t.push(w[F]))}}return y.memoizedKeySequences[V]=t},MKK=function(y,W){return y===void 0||y==="undefined"?
!0:y===W};
fi.prototype.getSequenceCount=fi.prototype.getSequenceCount;fi.prototype.extractMatchingEntries=fi.prototype.extractMatchingEntries;fi.prototype.smartExtractMatchingEntries=fi.prototype.smartExtractMatchingEntries;fi.prototype.storePayload=fi.prototype.storePayload;var hAa,clj,oSv,MN,q0R,nSu,$4a,zAP,Lmb,tlt,eAy,kPu,O5d;hAa=_.pB("initial_gel_batch_timeout",2E3);clj=_.pB("gel_queue_timeout_max_ms",6E4);oSv=_.pB("gel_min_batch_size",5);MN=void 0;q0R=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
nSu=new q0R;$4a=new q0R;zAP=new q0R;Lmb=new q0R;eAy=!0;kPu=1;_.x4j=new Map;O5d=_.Vj.ytLoggingTransportTokensToCttTargetIds_||{};_.dE("ytLoggingTransportTokensToCttTargetIds_",O5d);var CFy=_.Vj.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.dE("ytLoggingTransportTokensToJspbCttTargetIds_",CFy);var m6={};var js=_.Vj.ytLoggingGelSequenceIdObj_||{};_.dE("ytLoggingGelSequenceIdObj_",js);var GPb=[];var Npj=new Set,ynu=0,C8G=0,P8z=0,Vfv=[],WGv=[],Ond=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var TpG=function(){};
TpG.prototype.getUrl=function(y,W){W=W===void 0?!1:W;return y.hasOwnProperty("shareEndpoint")?null:_.zMP(y,null,W)};
var sTG=function(y,W,V){y={endpoint:W,actions:[]};V=(V.path?V.path[0]:V.target).icon||"";W=V.indexOf(":");W>0&&(V=V.substr(W+1));V&&y.actions.push(V);return y};var p5z=/Command$/,KGd=/Endpoint$/,eMu=new Map;var UBR,unQ;UBR=1;_.tL=function(){this.actionRoutingMap=new Map};
_.tL.prototype.triggerAction=function(y){var W=new Zov(y,!1,_.Ve.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.tL.prototype.triggerOptionalAction=function(y){var W=new Zov(y,!0,_.Ve.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.Zg=function(y,W,V){W.forEach(function(w){var t=onu(w);t&&y.triggerOptionalAction(t,w,V,void 0)})};
_.tL.prototype.handleAction=function(y){var W=this.actionRoutingMap.get(y.actionName);W&&unQ(y,W);y.optionalAction||y.returnValue.length!==0||(y=new _.Js("Unhandled action",y.actionName),_.FU(y))};
unQ=function(y,W){W.forEach(function(V){var w=null;V?w=V.apply(null,y.args):(V=Error("qd"),V.params=y.actionName,_.VC(V));y.returnValue.push(w)})};
_.FD=function(y,W,V){V||(V=UBR++);for(var w=_.N(Object.keys(W)),t=w.next();!t.done;t=w.next()){t=t.value;var F=y.actionRoutingMap.get(t);F||(F=new Map,y.actionRoutingMap.set(t,F));y.registerActionHandler(V,t,W[t],F)}return V};
_.tL.prototype.registerActionHandler=function(y,W,V,w){w.set(y,_.wi(V))};
_.Eh=function(y,W,V){W=_.N(Object.keys(W));for(var w=W.next();!w.done;w=W.next())(w=y.actionRoutingMap.get(w.value))&&w.delete(V)};
_.oX(_.tL);var qPa=function(y,W){var V=_.tL.getInstance();_.a8(function(){var w={},t=_.FD(V,(w[y]=W,w));_.XT(function(){var F={};_.Eh(V,(F[y]="",F),t)})})};var ipu=Symbol("sd");kYj=OMj;var nnt=new Set(["For","If","Match","Watch"]),S0E={},DBr=(S0E[WV.default]=function(){return qhL},S0E.style=function(){return qhL},S0E),lAq;
for(lAq in DBr)eH.attributes[lAq]=DBr[lAq](eH.attributes[lAq]);var dS=new _.e9("VISIBILITY_OBSERVER");var WHL={retrieve:function(y){return this.id.\u0275prov.token===y.\u0275prov.token?this.contextValue:this?Ibd(this,this.id):E24}};var Bqu=function(y,W,V){if(y!==Pl)return!1;y=YPb(document.createElement("div"),function(){var w=KG(!1);try{V[0]()}finally{KG(w)}});
y=Array.from(y.childNodes);y.length===1&&(y=y[0]);return y};var xB6=function(y){y=y.clone();E_Q(y);BY(y,"dg",null);BY(y,"d","0");VXJ(y,null);w4m(y,null);return y},kyQ=!0,s2E=function(y,W,V){var w=V===void 0?{}:V;
V=w.cssRowKey===void 0?void 0:w.cssRowKey;var t=w.combinedSignature===void 0?void 0:w.combinedSignature;var F=w.extraEdges===void 0?void 0:w.extraEdges;w=w.callback===void 0?void 0:w.callback;BY(y,"m",W.join(","));F&&FjK(y,F);V&&(BY(y,"ck",V),t?BY(y,"rs",t):kyQ&&(kyQ=!1));if(w){if(w!=null&&!g_6.test(w))throw Error("eb`"+w);BY(y,"cb",w)}y=y.toString();_.tv(y,"/")&&(y=xur(document.location.href)+y);return _.jh(y)};var Y0Q=function(y){return A8Q(y).then(function(W){return JSON.parse(W.responseText)})},A8Q=function(y){var W={},V=W.xmlHttpFactory?W.xmlHttpFactory.createInstance():izf.createInstance();
return(new _.qN(function(w,t){var F;try{V.open("GET",y,!0)}catch(C){t(new yE("Error opening XHR: "+C.message,y,V))}V.onreadystatechange=function(){if(V.readyState==4){_.Vj.clearTimeout(F);var C;!(C=p3i(V.status))&&(C=V.status===0)&&(C=lqq(y),C=!(C=="http"||C=="https"||C==""));C?w(V):t(new ByA(V.status,y,V))}};
V.onerror=function(){t(new yE("Network error",y,V))};
if(W.headers)for(var I in W.headers){var P=W.headers[I];P!=null&&V.setRequestHeader(I,P)}W.withCredentials&&(V.withCredentials=W.withCredentials);W.responseType&&(V.responseType=W.responseType);W.mimeType&&V.overrideMimeType(W.mimeType);W.timeoutMs>0&&(F=_.Vj.setTimeout(function(){V.onreadystatechange=function(){};
V.abort();t(new J8K(y,V))},W.timeoutMs));
try{V.send(null)}catch(C){V.onreadystatechange=function(){},_.Vj.clearTimeout(F),t(new yE("Error sending XHR: "+C.message,y,V))}})).thenCatch(function(w){w instanceof _.Fu&&V.abort();
throw w;})},yE=function(y,W,V){_.yj.call(this,y+", url="+W);
this.url=W;this.xhr=V};
_.pF(yE,_.yj);yE.prototype.name="XhrError";var ByA=function(y,W,V){yE.call(this,"Request Failed, status="+y,W,V);this.status=y};
_.pF(ByA,yE);ByA.prototype.name="XhrHttpError";var J8K=function(y,W){yE.call(this,"Request timed out",y,W)};
_.pF(J8K,yE);J8K.prototype.name="XhrTimeoutError";hd=hd||{};var WQ=function(){_.Ru.call(this)};
_.pF(WQ,_.Ru);WQ.prototype.initialize=function(){};var RDK=function(y,W){this.fn_=y;this.handler_=W};
RDK.prototype.execute=function(y){this.fn_&&(this.fn_.call(this.handler_||null,y),this.fn_=this.handler_=null)};
RDK.prototype.abort=function(){this.handler_=this.fn_=null};var VE=function(y,W){_.Ru.call(this);this.deps_=y;this.JSC$10904_id_=W;this.onloadCallbacks_=[];this.JSC$10904_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.pF(VE,_.Ru);VE.prototype.moduleConstructor_=WQ;VE.prototype.module_=null;VE.prototype.getId=function(){return this.JSC$10904_id_};
VE.prototype.registerCallback=function(y,W){return j2z(this.onloadCallbacks_,y,W)};
var $BA=function(y,W){j2z(y.JSC$10904_onErrorCallbacks_,W)},j2z=function(y,W,V){W=new RDK(W,V);
y.push(W);return W};
VE.prototype.isLoaded=function(){return!!this.module_};
VE.prototype.onLoad=function(y){var W=new this.moduleConstructor_;W.initialize(y());this.module_=W;W=(W=nyE(this.earlyOnloadCallbacks_,y()))||nyE(this.onloadCallbacks_,y());W||(this.JSC$10904_onErrorCallbacks_.length=0);return W};
VE.prototype.onError=function(y){(y=nyE(this.JSC$10904_onErrorCallbacks_,y))&&wu(Error("wd`"+y));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var nyE=function(y,W){for(var V=[],w=0;w<y.length;w++)try{y[w].execute(W)}catch(t){wu(t),V.push(t)}y.length=0;return V.length?V:null};
VE.prototype.disposeInternal=function(){VE.superClass_.disposeInternal.call(this);_.La(this.module_)};var HMq,Q2A,r8q,bMm,aAE,Gyq,wNJ,WR2,VM2;
_.tq=function(y,W,V,w,t){w=w===void 0?!1:w;t=t===void 0?!1:t;var F=F===void 0?!0:F;this.scsReferenceUrl_=Uku(_.$R(y).toString(),F);this.cssRowKey_=W;this.combinedSignature_=V;this.useNegativeLoading_=w;this.requestedModuleMap_={};this.JSC$10907_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(y=YG(this.scsReferenceUrl_,"excm"))?y.split(","):[];this.shouldScanForCss_=t;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;u1u();_.w9(this,tXQ(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
HMq=function(y,W){if(W.href||W.getAttribute("data-href"))if(W=W.href||W.getAttribute("data-href"),TEP(W)&&!Uku(W).urlPrefix_.endsWith("_/js/")){W=tXQ(Uku(W));W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,y.loadedCssModuleList_.includes(V)||y.loadedCssModuleList_.push(V)}};
_.tq.prototype.JSC$10909_loadModules=function(y,W,V){var w=V===void 0?{}:V;V=w.extraEdges;var t=w.onError;var F=w.onSuccess;w=w.forceReload;this.JSC$10907_moduleInfoMap_=W;if(!y)throw Error("xd");if(this.shouldScanForCss_){W=_.N(document.getElementsByTagName("style"));for(var I=W.next();!I.done;I=W.next())HMq(this,I.value);W=_.N(document.getElementsByTagName("link"));for(I=W.next();!I.done;I=W.next())HMq(this,I.value)}Xff(this,aAE(this,y),V,t,F,w)};
var Xff=function(y,W,V,w,t,F){w=w===void 0?function(){}:w;
t=t===void 0?function(){}:t;
F=F===void 0?!1:F;Gyq(y,W,function(I,P,C){C=C===void 0?P:C;y.enableFallbackFetch&&F?y.loadWithFetch(I,P,w,t,C):y.load(I,P,w,t,C,V)},V)||w(-1)};
_.tq.prototype.loadWithFetch=function(){_.g(function(){throw Error("yd");})};
_.tq.prototype.maybeSetAdditionalFields=function(){};
Q2A=function(y,W,V){if(y.useNegativeLoading_){var w=y.scsReferenceUrl_;y={cssRowKey:y.cssRowKey_,combinedSignature:y.combinedSignature_,extraEdges:V,requestedModuleIds:r8q(y),requestedCssModuleIds:bMm(y)};var t=y===void 0?{}:y;y=t.requestedModuleIds===void 0?[]:t.requestedModuleIds;V=t.requestedCssModuleIds===void 0?[]:t.requestedCssModuleIds;var F=t.cssRowKey===void 0?void 0:t.cssRowKey;var I=t.combinedSignature===void 0?void 0:t.combinedSignature;var P=t.extraEdges===void 0?void 0:t.extraEdges;
t=t.callback===void 0?void 0:t.callback;w=xB6(w);BY(w,"d","1");VXJ(w,y);w4m(w,V);W=s2E(w,W,{cssRowKey:F,combinedSignature:I,extraEdges:P,callback:t})}else w=y.scsReferenceUrl_,y={cssRowKey:y.cssRowKey_,combinedSignature:y.combinedSignature_,requestedModuleIds:r8q(y),requestedCssModuleIds:bMm(y)},P=y===void 0?{}:y,y=P.requestedCssModuleIds===void 0?[]:P.requestedCssModuleIds,V=P.cssRowKey===void 0?void 0:P.cssRowKey,F=P.combinedSignature===void 0?void 0:P.combinedSignature,I=P.extraEdges===void 0?
void 0:P.extraEdges,P=P.callback===void 0?void 0:P.callback,w=xB6(w),w4m(w,y),W=s2E(w,W,{cssRowKey:V,combinedSignature:F,extraEdges:I,callback:P});return W};
_.w9=function(y,W){for(var V=!1,w=[],t=0;t<W.length;++t){var F=W[t];y.requestedModuleMap_[F]||(y.requestedModuleMap_[F]=!0,y.requestedModuleList_.push(F),V=!0,w.push(F))}V&&(y.requestedModuleListSorted_=!1)};
_.FI=function(y,W){for(var V=[],w=0;w<W.length;++w){var t=W[w];y.requestedModuleMap_[t]&&(delete y.requestedModuleMap_[t],_.GG(y.requestedModuleList_,t),V.push(t))}};
_.tq.prototype.load=function(y,W,V,w,t){t=t===void 0?W:t;_.$R(y);var F=this.useCors_,I=this.corsMode_,P=this.fetchPriority,C=_.xu("SCRIPT");_.zC(C,y);F&&(C.crossOrigin=I);C.async=!1;P&&C.setAttribute("fetchpriority",P);_.w9(this,W);_.ZMK(this,y,C,W,V,w,t)};
_.ZMK=function(y,W,V,w,t,F,I){I=I===void 0?w:I;y.lastScript_=V;y.insertPos.insertBefore(V,y.insertPos.firstChild);_.y16(V,w,function(){V.parentElement.removeChild(V);y.lastScript_==V&&(y.lastScript_=null);var P=new Set;w.map(function(d){return P.add(d)});
for(var C in y.JSC$10907_moduleInfoMap_)y.JSC$10907_moduleInfoMap_[C].isLoaded()&&P.add(C);Array.from(P);F()},function(P){V.parentElement.removeChild(V);
y.lastScript_==V&&(y.lastScript_=null);_.FI(y,P);y.pendingModuleGraphUpdate_?y.pendingModuleGraphUpdate_.then(function(){t(-1,W)}):t(-1,W)},I)};
_.y16=function(y,W,V,w,t){t=t===void 0?W:t;var F=W.length,I=function(){F=0;y.onload=null;y.onerror=null;P=function(){}},P=function(){I();
var d=t.filter(function(L){return!au().getModuleInfo(L).isLoaded()});
d.length!==0?w(d,"Response was successful but was missing module(s) "+d+"."):V()},C=function(){F--;
F==0&&P()};
W.forEach(function(d){d=au().getModuleInfo(d);d.isLoaded()?C():(j2z(d.earlyOnloadCallbacks_,C),$BA(d,C))});
y.onload=function(){return P()};
y.onerror=function(){I();w(W)}};
r8q=function(y){y.requestedModuleListSorted_||(y.requestedModuleListSorted_=!0,y.requestedModuleList_.sort());return y.requestedModuleList_};
bMm=function(y){y=y.loadedCssModuleList_;y.sort();return y};
aAE=function(y,W){return W.filter(function(V){return!y.requestedModuleMap_[V]})};
Gyq=function(y,W,V,w){if(y.pendingModuleGraphUpdate_)return y.pendingModuleGraphUpdate_.then(function(){Gyq(y,W,V,w)}),!0;
if(!y.useNegativeLoading_){var t=[],F=Object.assign({},y.requestedModuleMap_);WR2(y,W,function(L){t.push(L.getId())},w,function(L){return!L.isLoaded()},F);
W=t}for(F=0;F<W.length;){for(var I=W.length-F,P=F==0?W:W.slice(F,W.length),C=Q2A(y,P,w),d=_.$R(C).toString();d.length>y.urlMaxLength;)if(I>1)I-=Math.ceil((d.length-y.urlMaxLength)/6),I=Math.max(I,1),P=W.slice(F,F+I),C=Q2A(y,P,w),d=_.$R(C).toString();else return y.useNegativeLoading_?(y.useNegativeLoading_=!1,y.pendingModuleGraphUpdate_=VM2(y).then(function(L){wNJ(y,L,w)}),Gyq(y,W.slice(F),V,w)):!1;
F+=I;y.useNegativeLoading_?V(C,P):V(C,P,F===W.length?W:[])}return!0};
wNJ=function(y,W,V){au().setAllModuleInfoString((W||{}).moduleGraph);WR2(y,r8q(y),function(w){_.w9(y,[w.getId()])},V);
y.pendingModuleGraphUpdate_=null};
WR2=function(y,W,V,w,t,F){F=F===void 0?{}:F;var I=au();W=_.N(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;var C=I.getModuleInfo(P);if(!(F[P]||t&&!t(C))){F[P]=!0;var d=C.deps_||[];if(w){var L=[];w[P]&&(L=Object.keys(w[P]));d=d.concat(L)}WR2(y,d,V,w,t,F);V(C)}}};
VM2=function(y){y=y.scsReferenceUrl_.clone();E_Q(y);BY(y,"dg",null);BY(y,"md","1");return Y0Q(y.toString())};var tyP=new Uint8Array(123);var tM6=[];var FRr=function(){this.JSC$9980_loader_=null};
_.E=FRr.prototype;_.E.setBatchModeEnabled=function(){};
_.E.setAllModuleInfoString=function(){};
_.E.addExtraEdge=function(){throw Error("zd");};
_.E.removeExtraEdge=function(){throw Error("Ad");};
_.E.getModuleContext=function(){return null};
_.E.isActive=function(){return!1};
_.E.isUserActive=function(){return!1};
_.E.registerCallback=function(){};var Ee=function(y,W,V,w,t){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.name="ModuleLoadFailure";this.type=y;this.status=W;this.requestedModuleIds=V;this.url=w;this.cause=t;this.message=this.toString()};
_.p(Ee,Error);Ee.prototype.toString=function(){return EFR(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var EFR=function(y){switch(y.type){case Ee.Type.UNAUTHORIZED:return"Unauthorized";case Ee.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ee.Type.TIMEOUT:return"Timed out";case Ee.Type.OLD_CODE_GONE:return"Out of date module id";case Ee.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+y.type}};
hd.ModuleLoadFailure=Ee;hd.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var N2=function(){this.moduleIds_=this.JSC$9980_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10922_extraEdges_={};this.JSC$10922_callbackMap_={};this.JSC$10922_currentlyLoadingModule_=this.baseModuleInfo_=new VE([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new gF;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.pF(N2,FRr);var NwK=function(y,W){_.yj.call(this,"Error loading "+y+": "+W)};
_.pF(NwK,_.yj);N2.prototype.setBatchModeEnabled=function(y){this.batchModeEnabled_=y};
N2.prototype.setAllModuleInfoString=function(y,W){if(!(this instanceof N2))this.setAllModuleInfoString(y,W);else if(typeof y==="string"){if(y.startsWith("d$")){y=y.substring(2);for(var V=[],w=0,t=y.indexOf("/"),F=0,I=!1,P=0;;){var C=I?y.substring(F):y.substring(F,t);if(C.length===0)w++,F="sy"+w.toString(36),C=[];else{var d=C.indexOf(":");if(d<0)F=C,C=[];else if(d===C.length-1)F=C.substring(0,d),C=Array(V[P-1]);else{F=C.substring(0,d);C=C.substring(d+1).split(",");d=P;for(var L=0;L<C.length;L++)d-=
C[L].length===0?1:Number(C[L]),C[L]=V[d]}d=0;if(F.length===0)d=1;else if(F.charAt(0)==="+"||F.charAt(0)==="-")d=Number(F);d!==0&&(w+=d,F="sy"+w.toString(36))}V.push(F);I2z(this,F,C);if(I)break;F=t+1;t=y.indexOf("/",F);t===-1&&(I=!0);P++}this.moduleIds_=V}else if(y.startsWith("p$"))gFI(this,y);else{y=y.split("/");V=[];for(w=0;w<y.length;w++){P=y[w].split(":");t=P[0];I=[];if(P[1])for(I=P[1].split(","),P=0;P<I.length;P++)I[P]=V[parseInt(I[P],36)];V.push(t);I2z(this,t,I)}this.moduleIds_=V}W&&W.length?
(_.yK(this.loadingModuleIds_,W),this.lastInitialModuleId_=_.Av(W)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10922_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10922_currentlyLoadingModule_=null,(W=this.baseModuleInfo_.onLoad((0,_.jA)(this.getModuleContext,this)))&&W.length&&P52(this,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,W[0])),I4(this))}};
var gFI=function(y,W){var V=W.substring(2);for(W=0;W<64;W++)tyP["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(W)]=W;var w={buf:V,pos:0};cl(w);var t=cl(w),F=cl(w)+1;W=Array(t);var I=Array(t),P=Array(t);F=Array(F);var C=0,d=0,L=w.pos,z=w.buf.indexOf("|",w.pos);w.pos=z+1;for(z=0;z<t;z++){var c=cl(w),K=c&2,f=c&1;c>>>=2;f?(C+=c>>>1^-(c&1),c="sy"+C.toString(36)):(f=L,L+=c,c=V.substring(f,L));W[z]=c;K&&(F[d++]=c)}F[d]="";w.pos++;d=t&-2;V=t&1;for(C=0;C<d;C+=2)L=FHz(w),P[C]=
L&7,P[C+1]=L>>>3&7;V&&(V=FHz(w),P[d]=V&7);w.pos++;for(d=0;d<t;d++)P[d]===7&&(P[d]=cl(w));w.pos++;for(V=d=0;V<t;V++){C=P[V];L=C===0?tM6:Array(C);I[V]=L;z=d;for(K=0;K<C;K++)z-=cl(w),L[K]=F[z];F[d]===W[V]&&d++}for(w=0;w<W.length;w++)I2z(y,W[w],I[w]);y.moduleIds_=W};
_.E=N2.prototype;_.E.getModuleInfo=function(y){return this.moduleInfoMap[y]};
_.E.addExtraEdge=function(y,W){var V=this.getModuleInfo(y);V&&V.isLoaded()?this.load(W):(this.JSC$10922_extraEdges_[y]||(this.JSC$10922_extraEdges_[y]={}),this.JSC$10922_extraEdges_[y][W]=!0)};
_.E.removeExtraEdge=function(y,W){if(this.JSC$10922_extraEdges_[y]){delete this.JSC$10922_extraEdges_[y][W];for(var V in this.JSC$10922_extraEdges_[y])return;delete this.JSC$10922_extraEdges_[y]}};
_.E.isActive=function(){return this.loadingModuleIds_.length>0};
_.E.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var I4=function(y){var W=y.lastActive_,V=y.isActive();V!=W&&(y.executeCallbacks_(V?"active":"idle"),y.lastActive_=V);W=y.isUserActive();W!=y.userLastActive_&&(y.executeCallbacks_(W?"userActive":"userIdle"),y.userLastActive_=W)},I2z=function(y,W,V){y.moduleInfoMap[W]?(y=y.moduleInfoMap[W].deps_,y!=V&&y.splice.apply(y,[0,
y.length].concat(_.GC(V)))):y.moduleInfoMap[W]=new VE(V,W)},OgJ=function(y,W,V){var w=[];
Nr(W,w);W=[];for(var t={},F=0;F<w.length;F++){var I=w[F],P=y.getModuleInfo(I);if(!P)throw Error("Bd`"+I);var C=new gF;t[I]=C;P.isLoaded()?C.callback(null):(C5m(y,I,P,!!V,C),y.isModuleLoading(I)||W.push(I))}W.length>0&&(y.loadingModuleIds_.length===0?y.loadModules_(W):(y.requestedModuleIdsQueue_.push(W),I4(y)));return t},C5m=function(y,W,V,w,t){V.registerCallback(t.callback,t);
$BA(V,function(F){t.errback(new NwK(W,F))});
y.isModuleLoading(W)?w&&(vFi(y,W),I4(y)):w&&vFi(y,W)};
N2.prototype.loadModules_=function(y,W,V){var w=this;W||(this.consecutiveFailures_=0);var t=d8A(this,y);this.loadingModuleIds_=t;this.requestedLoadingModuleIds_=this.batchModeEnabled_?y:_.ru(t);I4(this);if(t.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,t);if(Object.keys(this.JSC$10922_extraEdges_).length>0&&!this.JSC$9980_loader_.supportsExtraEdges)throw Error("Cd");y=(0,_.jA)(this.JSC$9980_loader_.JSC$10909_loadModules,this.JSC$9980_loader_,_.ru(t),this.moduleInfoMap,
{extraEdges:this.JSC$10922_extraEdges_,forceReload:!!V,onError:function(F,I){var P=w.requestedLoadingModuleIds_;F=F!=null?F:void 0;w.consecutiveFailures_++;var C=_.ru(t);w.requestedLoadingModuleIds_=P;t.forEach(_.D2(_.GG,w.requestedModuleIds_),w);F==401?(P52(w,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.UNAUTHORIZED,F)),w.requestedModuleIdsQueue_.length=0):F==410?(LRJ(w,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.OLD_CODE_GONE,F)),zzA(w)):w.consecutiveFailures_>=3?(LRJ(w,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
F,C,I)),zzA(w)):w.loadModules_(w.requestedLoadingModuleIds_,!0,F==8001||!1)},
onTimeout:(0,_.jA)(this.handleLoadTimeout_,this)});(W=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Vj.setTimeout(y,W):y()}};
var d8A=function(y,W){W=W.filter(function(t){return y.moduleInfoMap[t].isLoaded()?(_.Vj.setTimeout(function(){return Error("Dd`"+t)},0),!1):!0});
for(var V=[],w=0;w<W.length;w++)V=V.concat(c1s(y,W[w]));Nr(V);return!y.batchModeEnabled_&&V.length>1?(W=V.shift(),y.requestedModuleIdsQueue_=V.map(function(t){return[t]}).concat(y.requestedModuleIdsQueue_),[W]):V},c1s=function(y,W){var V=_.Gc.createSet(y.requestedModuleIds_),w=[];
V[W]||w.push(W);W=[W];for(var t=0;t<W.length;t++)for(var F=y.getModuleInfo(W[t]).deps_,I=F.length-1;I>=0;I--){var P=F[I];y.getModuleInfo(P).isLoaded()||V[P]||(w.push(P),W.push(P))}w.reverse();Nr(w);return w};
N2.prototype.JSC$10917_setLoaded=function(){if(this.JSC$10922_currentlyLoadingModule_){var y=this.JSC$10922_currentlyLoadingModule_.getId(),W=[];if(this.JSC$10922_extraEdges_[y]){for(var V=_.N(Object.keys(this.JSC$10922_extraEdges_[y])),w=V.next();!w.done;w=V.next()){w=w.value;var t=this.getModuleInfo(w);t&&!t.isLoaded()&&(this.removeExtraEdge(y,w),W.push(w))}this.loadMultiple(W)}this.isDisposed()||((W=this.moduleInfoMap[y].onLoad((0,_.jA)(this.getModuleContext,this)))&&W.length&&P52(this,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,W[0])),_.GG(this.userInitiatedLoadingModuleIds_,y),_.GG(this.loadingModuleIds_,y),this.loadingModuleIds_.length===0&&zzA(this),this.lastInitialModuleId_&&y==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),I4(this),this.JSC$10922_currentlyLoadingModule_=null)}};
N2.prototype.isModuleLoading=function(y){if(_.j4(this.loadingModuleIds_,y))return!0;for(var W=0;W<this.requestedModuleIdsQueue_.length;W++)if(_.j4(this.requestedModuleIdsQueue_[W],y))return!0;return!1};
N2.prototype.load=function(y,W){return OgJ(this,[y],W)[y]};
N2.prototype.loadMultiple=function(y){return OgJ(this,y)};
var vFi=function(y,W){_.j4(y.userInitiatedLoadingModuleIds_,W)||y.userInitiatedLoadingModuleIds_.push(W)};
N2.prototype.beforeLoadModuleCode=function(y){var W=this;this.JSC$10922_currentlyLoadingModule_&&this.JSC$10922_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10917_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[y]&&ezE(this,this.moduleInfoMap[y].deps_||[],function(V){V.module_=new WQ;_.GG(W.loadingModuleIds_,V.getId())},function(V){return!V.isLoaded()});
this.JSC$10922_currentlyLoadingModule_=this.getModuleInfo(y)};
N2.prototype.handleLoadTimeout_=function(){LRJ(this,new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.TIMEOUT));zzA(this)};
var LRJ=function(y,W){y.requestedLoadingModuleIds_.length>1?y.requestedModuleIdsQueue_=y.requestedLoadingModuleIds_.map(function(V){return[V]}).concat(y.requestedModuleIdsQueue_):P52(y,W)},P52=function(y,W){var V=y.requestedLoadingModuleIds_;
y.loadingModuleIds_.length=0;for(var w=[],t=0;t<y.requestedModuleIdsQueue_.length;t++){var F=y.requestedModuleIdsQueue_[t].filter(function(C){var d=c1s(this,C);return gQ(V,function(L){return _.j4(d,L)})},y);
_.yK(w,F)}for(t=0;t<V.length;t++)_.nd(w,V[t]);for(t=0;t<w.length;t++){for(F=0;F<y.requestedModuleIdsQueue_.length;F++)_.GG(y.requestedModuleIdsQueue_[F],w[t]);_.GG(y.userInitiatedLoadingModuleIds_,w[t])}if(t=y.JSC$10922_callbackMap_.error)for(F=0;F<t.length;F++)for(var I=t[F],P=0;P<w.length;P++)I("error",w[P],W);for(w=0;w<V.length;w++)if(y.moduleInfoMap[V[w]])y.moduleInfoMap[V[w]].onError(W);y.requestedLoadingModuleIds_.length=0;I4(y)},zzA=function(y){for(;y.requestedModuleIdsQueue_.length;){var W=
y.requestedModuleIdsQueue_.shift().filter(function(V){return!this.getModuleInfo(V).isLoaded()},y);
if(W.length>0){y.loadModules_(W);return}}I4(y)};
N2.prototype.registerCallback=function(y,W){Array.isArray(y)||(y=[y]);for(var V=0;V<y.length;V++){var w=y[V],t=W,F=this.JSC$10922_callbackMap_;F[w]||(F[w]=[]);F[w].push(t)}};
N2.prototype.executeCallbacks_=function(y){for(var W=this.JSC$10922_callbackMap_[y],V=0;W&&V<W.length;V++)W[V](y)};
var ezE=function(y,W,V,w,t){w=w===void 0?function(){return!0}:w;
t=t===void 0?{}:t;W=_.N(W);for(var F=W.next();!F.done;F=W.next()){F=F.value;var I=y.getModuleInfo(F);!t[F]&&w(I)&&(t[F]=!0,ezE(y,I.deps_||[],V,w,t),V(I))}};
N2.prototype.dispose=function(){_.zk(_.Gc.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10922_callbackMap_={};this.isDisposed_=!0};
N2.prototype.isDisposed=function(){return this.isDisposed_};
_.Xo=function(){return new N2};var hzK=[5E3,2E4],oFz=function(){this.JSC$9980_loader_=null;this.JSC$10930_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10930_queue_=[];this.JSC$10930_extraEdges_=Object.create(null);this.JSC$10930_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.p(oFz,FRr);_.E=oFz.prototype;_.E.setAllModuleInfoString=function(){this.JSC$10930_currentlyLoadingModule_&&this.JSC$10930_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10917_setLoaded()};
_.E.getModuleInfo=function(y){var W=this.JSC$10930_moduleInfoMap_[y];W||(W=new VE([],y),this.JSC$10930_moduleInfoMap_[y]=W);return W};
_.E.addExtraEdge=function(y,W){this.getModuleInfo(y).isLoaded()?this.load(W):(this.JSC$10930_extraEdges_[y]||(this.JSC$10930_extraEdges_[y]={}),this.JSC$10930_extraEdges_[y][W]=!0)};
_.E.removeExtraEdge=function(y,W){if(this.JSC$10930_extraEdges_[y]){delete this.JSC$10930_extraEdges_[y][W];for(var V in this.JSC$10930_extraEdges_[y])return;delete this.JSC$10930_extraEdges_[y]}};
_.E.isModuleLoading=function(y){return!!this.loadingModules_[y]};
_.E.load=function(y){KRs(this,[y]);return pNq(this,y)};
_.E.loadMultiple=function(y){var W=this,V=Object.create(null),w=[];y.forEach(function(t){V[t]||(V[t]=pNq(W,t),w.push(t))});
KRs(this,w);return V};
_.E.beforeLoadModuleCode=function(y){var W;((W=this.JSC$10930_currentlyLoadingModule_)==null?void 0:W.getId())==="synthetic_module_overhead"&&this.JSC$10917_setLoaded();var V,w;igq(this,(w=(V=this.JSC$10930_moduleInfoMap_[y])==null?void 0:V.deps_)!=null?w:[],function(t){t.module_=new WQ},function(t){return!t.isLoaded()});
this.JSC$10930_currentlyLoadingModule_=this.getModuleInfo(y)};
_.E.JSC$10917_setLoaded=function(){if(this.JSC$10930_currentlyLoadingModule_){var y=this.JSC$10930_currentlyLoadingModule_.getId(),W=[];if(this.JSC$10930_extraEdges_[y]){for(var V=_.N(Object.keys(this.JSC$10930_extraEdges_[y])),w=V.next();!w.done;w=V.next())w=w.value,this.getModuleInfo(w).isLoaded()||(this.removeExtraEdge(y,w),W.push(w));this.loadMultiple(W)}this.JSC$10930_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10930_currentlyLoadingModule_=null;(!this.isModuleLoading(y)&&/^sy[0-9a-z]{0,4}$/.test(y)||y==="synthetic_module_overhead")&&delete this.JSC$10930_moduleInfoMap_[y];this.unsetModulesAsLoading(y)}};
_.E.setModulesAsLoading=function(){var y=this;_.Ve.apply(0,arguments).forEach(function(W){y.loadingModules_[W]=!0})};
_.E.unsetModulesAsLoading=function(){var y=this;_.Ve.apply(0,arguments).forEach(function(W){delete y.loadingModules_[W]})};
var pNq=function(y,W){return new _.qN(function(V,w){var t=y.getModuleInfo(W);t.isLoaded()?V(null):(t.registerCallback(function(){V(null)}),$BA(t,function(F){var I="Error loading "+W+": "+F;
F instanceof hd.ModuleLoadFailure&&F.url&&(I=I+", requested url: "+F.url.toString());w(Error(I))}))})},KRs=function(y,W){W=W.filter(function(V){return!y.isModuleLoading(V)&&!y.getModuleInfo(V).isLoaded()});
W.length>0&&(y.setModulesAsLoading.apply(y,_.GC(W)),y.JSC$10930_queue_.push(W),f2K(y))},f2K=function(y){for(var W={};y.activeLoads_<Infinity&&y.JSC$10930_queue_.length>0;W={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})W.ids$jscomp$36=y.JSC$10930_queue_.shift().filter(function(V){return!y.getModuleInfo(V).isLoaded()}),W.ids$jscomp$36.length>0&&(y.activeLoads_++,W.finishLoad=function(V){return function(){y.activeLoads_--;
f2K(y);V.finishLoad=function(){}}}(W),_.jI(W.ids$jscomp$36.map(function(V){return pNq(y,V)})).then(function(V){return function(){(0,V.finishLoad)()}}(W)),W.attempt$jscomp$6=0,W.load$jscomp$1=function(V){return function(){if(Object.keys(y.JSC$10930_extraEdges_).length>0&&!y.JSC$9980_loader_.supportsExtraEdges)throw Error("Cd");
y.JSC$9980_loader_.JSC$10909_loadModules(V.ids$jscomp$36,y.JSC$10930_moduleInfoMap_,{extraEdges:y.JSC$10930_extraEdges_,onError:function(w,t){var F=hzK[V.attempt$jscomp$6++];F!==void 0?setTimeout(function(){(0,V.load$jscomp$1)()},F):(y.unsetModulesAsLoading.apply(y,_.GC(V.ids$jscomp$36)),(0,V.finishLoad)(),V.ids$jscomp$36.forEach(function(I){I=y.getModuleInfo(I);
if(!I.isLoaded())I.onError(new hd.ModuleLoadFailure(hd.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,w,V.ids$jscomp$36,t))}))}})}}(W),(0,W.load$jscomp$1)())},igq=function(y,W,V,w,t){w=w===void 0?function(){return!0}:w;
t=t===void 0?{}:t;W=_.N(W);for(var F=W.next();!F.done;F=W.next()){F=F.value;var I=y.getModuleInfo(F);!t[F]&&w(I)&&(t[F]=!0,igq(y,I.deps_||[],V,w,t),V(I))}};var Twr=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var N7L=Symbol("Fd");window.JSCompiler_renameProperty=function(y){return y};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var m8q=!Twr||HTMLElement.es5Shimmed||_.Vj.Reflect===void 0||_.Vj.customElements===void 0||_.Vj.customElements.polyfillWrapFlushCallback||!1,MMm,kvb=function(){var y=HTMLElement;if(m8q)return y;if(MMm!==void 0)return MMm;var W=_.Vj.Reflect,V=function(){return W.construct(y,[],this.constructor)};
V.prototype=y.prototype;V.prototype.constructor=V;V.es5Shimmed=!0;Object.setPrototypeOf(V,y);return MMm=V},qnA=!1;m8q||qnA||(qnA=!0,_.Vj.HTMLElement=kvb());/*

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 Ovj=/(url\()([^)]*)(\))/g,P0d=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,C0n,ei;var Qp=!window.ShadyDOM||!window.ShadyDOM.inUse,U8z=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),u$m=!window.customElements.polyfillWrapFlushCallback,SnK;if(SnK=Qp&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var D8J=new CSSStyleSheet;D8J.replaceSync("");var l2K=document.createElement("div");l2K.attachShadow({mode:"open"});l2K.shadowRoot.adoptedStyleSheets=[D8J];SnK=l2K.shadowRoot.adoptedStyleSheets[0]===D8J}catch(y){SnK=!1}
var x8K=SnK,k2E=window.Polymer&&window.Polymer.rootPath||dUu(document.baseURI||window.location.href),xk=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,pmv=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,VV=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,swr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,b4=window.Polymer&&window.Polymer.legacyOptimizations||!1,Wf=window.Polymer&&window.Polymer.legacyWarnings||!1,A1I=window.Polymer&&window.Polymer.syncInitialRender||
!1,sh=window.Polymer&&window.Polymer.legacyUndefined||!1,Yni=window.Polymer&&window.Polymer.orderedComputed||!1,g9=window.Polymer&&window.Polymer.removeNestedTemplates||!1,PQ=window.Polymer&&window.Polymer.fastDomIf||!1,Cj=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Bws=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,J1z=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Oe={},RzE={},Yk=function(){return HTMLElement.apply(this,arguments)||this};
_.p(Yk,HTMLElement);Yk.import=function(y,W){return y?(y=Oe[y]||RzE[y.toLowerCase()])&&W?y.querySelector(W):y:null};
Yk.prototype.attributeChangedCallback=function(y,W,V){W!==V&&this.register()};
Yk.prototype.register=function(y){if(y=y||this.id){if(VV&&(Oe[y]||RzE[y.toLowerCase()])!==void 0)throw Oe[y]=RzE[y.toLowerCase()]=null,Error("Gd`"+y);this.id=y;Oe[y]=RzE[y.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.CM.Object.defineProperties(Yk.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var y=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;y=_.hL(this.getAttribute("assetpath")||"",y.baseURI);this.__assetpath=dUu(y)}return this.__assetpath}}});
_.CM.Object.defineProperties(Yk,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Yk["import"]=Yk.import;Yk.prototype.modules=Oe;customElements.define("dom-module",Yk);var jwK=0,z74=0,o0=[],$82=0,LHu=!1,nFf=document.createTextNode(""),Hgz,GY;(new window.MutationObserver(cOz)).observe(nFf,{characterData:!0});_.vQ={after:function(y){return{run:function(W){return window.setTimeout(W,y)},
cancel:function(W){window.clearTimeout(W)}}},
run:function(y,W){return window.setTimeout(y,W)},
cancel:function(y){window.clearTimeout(y)}};
_.aU={run:function(y){return window.requestAnimationFrame(y)},
cancel:function(y){window.cancelAnimationFrame(y)}};
Hgz={run:function(y){return window.requestIdleCallback?window.requestIdleCallback(y):window.setTimeout(y,16)},
cancel:function(y){window.cancelIdleCallback?window.cancelIdleCallback(y):window.clearTimeout(y)}};
GY={run:function(y){LHu||(LHu=!0,nFf.textContent=$82++);o0.push(y);return jwK++},
cancel:function(y){var W=y-z74;if(W>=0){if(!o0[W])throw Error("Hd`"+y);o0[W]=null}}};var XNA=0,d9=function(y){var W=y.__mixinApplications;W||(W=new WeakMap,y.__mixinApplications=W);var V=XNA++;return function(w){var t=w.__mixinSet;if(t&&t[V])return w;var F=W,I=F.get(w);I||(I=y(w),F.set(w,I),w=Object.create(I.__mixinSet||t||null),w[V]=!0,I.__mixinSet=w);return I}};_.l4=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(y){return ShadyDOM.patch(y)}:function(y){return y};var a2J=d9(function(y){var W=function(){var V=y.call(this)||this;V.__dataEnabled=!1;V.__dataReady=!1;V.__dataInvalid=!1;V.__data={};V.__dataPending=null;V.__dataOld=null;V.__dataInstanceProps=null;V.__dataCounter=0;V.__serializing=!1;V._initializeProperties();return V};
_.p(W,y);W.createProperties=function(V){var w=this.prototype,t;for(t in V)t in w||w._createPropertyAccessor(t)};
W.attributeNameForProperty=function(V){return V.toLowerCase()};
W.typeForProperty=function(){};
W.prototype._createPropertyAccessor=function(V,w){this._addPropertyToAttributeMap(V);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[V]||(this.__dataHasAccessor[V]=!0,this._definePropertyAccessor(V,w))};
W.prototype._addPropertyToAttributeMap=function(V){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var w=this.__dataAttributes[V];w||(w=this.constructor.attributeNameForProperty(V),this.__dataAttributes[w]=V);return w};
W.prototype._definePropertyAccessor=function(V,w){Object.defineProperty(this,V,{get:function(){return this.__data[V]},
set:w?function(){}:function(t){this._setPendingProperty(V,t,!0)&&this._invalidateProperties()}})};
W.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
W.prototype._initializeProperties=function(){for(var V in this.__dataHasAccessor)this.hasOwnProperty(V)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[V]=this[V],delete this[V])};
W.prototype._initializeInstanceProperties=function(V){Object.assign(this,V)};
W.prototype._setProperty=function(V,w){this._setPendingProperty(V,w)&&this._invalidateProperties()};
W.prototype._getProperty=function(V){return this.__data[V]};
W.prototype._setPendingProperty=function(V,w){var t=this.__data[V],F=this._shouldPropertyChange(V,w,t);F&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||V in this.__dataOld||(this.__dataOld[V]=t),this.__data[V]=w,this.__dataPending[V]=w);return F};
W.prototype._isPropertyPending=function(V){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(V))};
W.prototype._invalidateProperties=function(){var V=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,GY.run(function(){V.__dataInvalid&&(V.__dataInvalid=!1,V._flushProperties())}))};
W.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
W.prototype._flushProperties=function(){this.__dataCounter++;var V=this.__data,w=this.__dataPending,t=this.__dataOld;this._shouldPropertiesChange(V,w,t)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(V,w,t));this.__dataCounter--};
W.prototype._shouldPropertiesChange=function(V,w){return!!w};
W.prototype._propertiesChanged=function(){};
W.prototype._shouldPropertyChange=function(V,w,t){return t!==w&&(t===t||w===w)};
W.prototype.attributeChangedCallback=function(V,w,t,F){w!==t&&this._attributeToProperty(V,t);y.prototype.attributeChangedCallback&&y.prototype.attributeChangedCallback.call(this,V,w,t,F)};
W.prototype._attributeToProperty=function(V,w,t){if(!this.__serializing){var F=this.__dataAttributes;V=F&&F[V]||V;this[V]=this._deserializeValue(w,t||this.constructor.typeForProperty(V))}};
W.prototype._propertyToAttribute=function(V,w,t){this.__serializing=!0;t=arguments.length<3?this[V]:t;this._valueToNodeAttribute(this,t,w||this.constructor.attributeNameForProperty(V));this.__serializing=!1};
W.prototype._valueToNodeAttribute=function(V,w,t){w=this._serializeValue(w);if(t==="class"||t==="name"||t==="slot")V=(0,_.l4)(V);w===void 0?V.removeAttribute(t):V.setAttribute(t,w===""&&window.trustedTypes?window.trustedTypes.emptyScript:w)};
W.prototype._serializeValue=function(V){switch(typeof V){case "boolean":return V?"":void 0;default:return V!=null?V.toString():void 0}};
W.prototype._deserializeValue=function(V,w){switch(w){case Boolean:return V!==null;case Number:return Number(V);default:return V}};
return W});var G2I=0,e7G=[];var r1m=d9(function(y){function W(F){F=Object.getPrototypeOf(F);return F.prototype instanceof t?F:null}
function V(F){if(!F.hasOwnProperty("__ownProperties")){var I=null;if(F.hasOwnProperty("properties")){var P=F.properties;if(P){I={};for(var C in P){var d=P[C];I[C]=typeof d==="function"?{type:d}:d}}}F.__ownProperties=I}return F.__ownProperties}
var w=a2J(y),t=function(){return w.apply(this,arguments)||this};
_.p(t,w);t.finalize=function(){if(!this.hasOwnProperty("__finalized")){var F=W(this);F&&F.finalize();this.__finalized=!0;this._finalizeClass()}};
t._finalizeClass=function(){var F=V(this);F&&this.createProperties(F)};
t.typeForProperty=function(F){return(F=this._properties[F])&&F.type};
t.prototype._initializeProperties=function(){G2I++;this.constructor.finalize();w.prototype._initializeProperties.call(this)};
t.prototype.connectedCallback=function(){w.prototype.connectedCallback&&w.prototype.connectedCallback.call(this);this._enableProperties()};
t.prototype.disconnectedCallback=function(){w.prototype.disconnectedCallback&&w.prototype.disconnectedCallback.call(this)};
_.CM.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var F=this;if(!this.hasOwnProperty("__observedAttributes")){h7P(this.prototype);var I=this._properties;this.__observedAttributes=I?Object.keys(I).map(function(P){return F.prototype._addPropertyToAttributeMap(P)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var F=W(this);this.__properties=Object.assign({},F&&F._properties,V(this))}return this.__properties}}});
return t});var o9j={},KHL=/-[a-z]/g,pe4=/([A-Z])/g;for(var bgr={},Qwr=HTMLElement.prototype;Qwr;){for(var Zgi=Object.getOwnPropertyNames(Qwr),yzR=0;yzR<Zgi.length;yzR++)bgr[Zgi[yzR]]=!0;Qwr=Object.getPrototypeOf(Qwr)}var W_s=window.trustedTypes?function(y){return trustedTypes.isHTML(y)||trustedTypes.isScript(y)||trustedTypes.isScriptURL(y)}:function(){return!1},VEJ=d9(function(y){var W=a2J(y);
y=function(){return W.apply(this,arguments)||this};
_.p(y,W);y.createPropertiesForAttributes=function(){for(var V=this.observedAttributes,w=0;w<V.length;w++)this.prototype._createPropertyAccessor(K7(V[w]))};
y.attributeNameForProperty=function(V){return p7(V)};
y.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);W.prototype._initializeProperties.call(this)};
y.prototype._initializeProtoProperties=function(V){for(var w in V)this._setProperty(w,V[w])};
y.prototype._ensureAttribute=function(V,w){this.hasAttribute(V)||this._valueToNodeAttribute(this,w,V)};
y.prototype._serializeValue=function(V){switch(typeof V){case "object":if(V instanceof Date)return V.toString();if(V){if(W_s(V))return V;try{return JSON.stringify(V)}catch(w){return""}}default:return W.prototype._serializeValue.call(this,V)}};
y.prototype._deserializeValue=function(V,w){switch(w){case Object:try{var t=JSON.parse(V)}catch(F){t=V}break;case Array:try{t=JSON.parse(V)}catch(F){t=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+V)}break;case Date:t=isNaN(V)?String(V):Number(V);t=new Date(t);break;default:t=W.prototype._deserializeValue.call(this,V,w)}return t};
y.prototype._definePropertyAccessor=function(V,w){if(!bgr[V]){var t=this[V];t!==void 0&&(this.__data?this._setPendingProperty(V,t):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[V]=t))}W.prototype._definePropertyAccessor.call(this,V,w)};
y.prototype._hasAccessor=function(V){return this.__dataHasAccessor&&this.__dataHasAccessor[V]};
y.prototype._isPropertyPending=function(V){return!!(this.__dataPending&&V in this.__dataPending)};
return y});var wEi={"dom-if":!0,"dom-repeat":!0},tE2=!1,F_Q=!1,EC2=function(){var y=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(W){return W}});
return function(W,V,w){V=V.getAttribute(w);y&&w.startsWith("on-")?W.setAttribute(w,y.createScript(V,w)):W.setAttribute(w,V)}}(),N5s=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W._parseTemplate=function(V,w){if(!V._templateInfo){var t=V._templateInfo={};t.nodeInfoList=[];t.nestedTemplate=!!w;t.stripWhiteSpace=w&&w.stripWhiteSpace||V.hasAttribute&&V.hasAttribute("strip-whitespace");this._parseTemplateContent(V,t,{parent:null})}return V._templateInfo};
W._parseTemplateContent=function(V,w,t){return this._parseTemplateNode(V.content,w,t)};
W._parseTemplateNode=function(V,w,t){var F=!1;V.localName!="template"||V.hasAttribute("preserve-content")?V.localName==="slot"&&(w.hasInsertionPoint=!0):F=this._parseTemplateNestedTemplate(V,w,t)||F;if(!tE2){tE2=!0;var I=document.createElement("textarea");I.placeholder="a";F_Q=I.placeholder===I.textContent}F_Q&&V.localName==="textarea"&&V.placeholder&&V.placeholder===V.textContent&&(V.textContent=null);V.firstChild&&this._parseTemplateChildNodes(V,w,t);V.hasAttributes&&V.hasAttributes()&&(F=this._parseTemplateNodeAttributes(V,
w,t)||F);return F||t.noted};
W._parseTemplateChildNodes=function(V,w,t){if(V.localName!=="script"&&V.localName!=="style")for(var F=V.firstChild,I=0,P;F;F=P){if(F.localName=="template"){var C=F.getAttribute("is");if(C&&wEi[C])for(P=F,P.removeAttribute("is"),F=P.ownerDocument.createElement(C),P.parentNode.replaceChild(F,P),F.appendChild(P);P.attributes.length;)C=P.attributes[0].name,EC2(F,P,C),P.removeAttribute(C)}P=F.nextSibling;if(F.nodeType===Node.TEXT_NODE){for(C=P;C&&C.nodeType===Node.TEXT_NODE;)F.textContent+=C.textContent,
P=C.nextSibling,V.removeChild(C),C=P;if(w.stripWhiteSpace&&!F.textContent.trim()){V.removeChild(F);continue}}C={parentIndex:I,parentInfo:t};this._parseTemplateNode(F,w,C)&&(C.infoIndex=w.nodeInfoList.push(C)-1);F.parentNode&&I++}};
W._parseTemplateNestedTemplate=function(V,w,t){w=this._parseTemplate(V,w);(w.content=V.content.ownerDocument.createDocumentFragment()).appendChild(V.content);t.templateInfo=w;return!0};
W._parseTemplateNodeAttributes=function(V,w,t){for(var F=!1,I=Array.from(V.attributes),P=I.length-1,C;C=I[P];P--)F=this._parseTemplateNodeAttribute(V,w,t,C.name,C.value)||F;return F};
W._parseTemplateNodeAttribute=function(V,w,t,F,I){return F.slice(0,3)==="on-"?(V.removeAttribute(F),t.events=t.events||[],t.events.push({name:F.slice(3),value:I}),!0):F==="id"?(t.id=I,!0):!1};
W._contentForTemplate=function(V){var w=V._templateInfo;return w&&w.content||V.content};
W.prototype._stampTemplate=function(V,w){V&&!V.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(V);w=w||this.constructor._parseTemplate(V);var t=w.nodeInfoList;V=document.importNode(w.content||V.content,!0);V.__noInsertionPoint=!w.hasInsertionPoint;var F=V.nodeList=Array(t.length);V.$={};for(var I=0,P=t.length,C=void 0;I<P&&(C=t[I]);I++){var d=F[I]=ivt(V,C);C.id&&(V.$[C.id]=d);var L=d,z=C,c=w;z.templateInfo&&(L._templateInfo=z.templateInfo,L._parentTemplateInfo=
c);if(C.events&&C.events.length)for(L=0,z=C.events,c=void 0;L<z.length&&(c=z[L]);L++)this._addMethodEventListenerToNode(d,c.name,c.value,this)}return V};
W.prototype._addMethodEventListenerToNode=function(V,w,t,F){t=f6v(F||V,t);this._addEventListenerToNode(V,w,t);return t};
W.prototype._addEventListenerToNode=function(V,w,t){V.addEventListener(w,t)};
W.prototype._removeEventListenerFromNode=function(V,w,t){V.removeEventListener(w,t)};
return W});var Si=0,kk=[],IHA={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},gCA=/[A-Z]/,Pg2=function(y,W,V,w,t){var F=t?mJ(y):y;if(W=W[F])for(F=0;F<W.length;F++){var I=W[F];if(I.info.lastRun!==Si&&(!t||uWu(y,I.trigger))){I.info.lastRun=Si;I=I.info;for(var P=V,C=w,d=0,L=P.length-1,z=-1;d<=L;){var c=d+L>>1,K=C.get(P[c].methodInfo)-C.get(I.methodInfo);if(K<0)d=c+1;else if(K>0)L=c-1;else{z=c;break}}z<
0&&(z=L+1);P.splice(z,0,I)}}},Hvt=[],Cgq=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"),zn=d9(function(y){var W=N5s(VEJ(y));
y=function(){var V=W.call(this)||this;V.__isPropertyEffectsClient=!0;return V};
_.p(y,W);y.prototype._initializeProperties=function(){W.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};
y.prototype._registerHost=function(){if(Lj.length){var V=Lj[Lj.length-1];V._enqueueClient(this);this.__dataHost=V}};
y.prototype._initializeProtoProperties=function(V){this.__data=Object.create(V);this.__dataPending=Object.create(V);this.__dataOld={}};
y.prototype._initializeInstanceProperties=function(V){var w=this.__readOnly,t;for(t in V)w&&w[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=V[t])};
y.prototype._addPropertyEffect=function(V,w,t){this._createPropertyAccessor(V,w=="__readOnly");var F=UUG(this,w,!0)[V];F||(F=this[w][V]=[]);F.push(t)};
y.prototype._removePropertyEffect=function(V,w,t){V=UUG(this,w,!0)[V];t=V.indexOf(t);t>=0&&V.splice(t,1)};
y.prototype._hasPropertyEffect=function(V,w){w=this[w];return!(!w||!w[V])};
y.prototype._hasReadOnlyEffect=function(V){return this._hasPropertyEffect(V,"__readOnly")};
y.prototype._hasNotifyEffect=function(V){return this._hasPropertyEffect(V,"__notifyEffects")};
y.prototype._hasReflectEffect=function(V){return this._hasPropertyEffect(V,"__reflectEffects")};
y.prototype._hasComputedEffect=function(V){return this._hasPropertyEffect(V,"__computeEffects")};
y.prototype._setPendingPropertyOrPath=function(V,w,t,F){if(F||mJ(Array.isArray(V)?V[0]:V)!==V){if(!F&&(F=u4(this,V),V=qZd(this,V,w),!V||!W.prototype._shouldPropertyChange.call(this,V,w,F)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(V,w,t)){if(t=this.__dataLinkedPaths)for(var I in t)F=t[I],MT(I,V)?(F=qT(I,F,V),this._setPendingPropertyOrPath(F,w,!0,!0)):MT(F,V)&&(F=qT(F,I,V),this._setPendingPropertyOrPath(F,w,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[V])return this._setPendingProperty(V,
w,t);this[V]=w}return!1};
y.prototype._setUnmanagedPropertyToNode=function(V,w,t){if(t!==V[w]||typeof t=="object")w==="className"&&(V=(0,_.l4)(V)),V[w]=t};
y.prototype._setPendingProperty=function(V,w,t){var F=this.__dataHasPaths&&TY(V);if(this._shouldPropertyChange(V,w,(F?this.__dataTemp:this.__data)[V])){this.__dataPending||(this.__dataPending={},this.__dataOld={});V in this.__dataOld||(this.__dataOld[V]=this.__data[V]);F?this.__dataTemp[V]=w:this.__data[V]=w;this.__dataPending[V]=w;if(F||this.__notifyEffects&&this.__notifyEffects[V])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[V]=t;return!0}return!1};
y.prototype._setProperty=function(V,w){this._setPendingProperty(V,w,!0)&&this._invalidateProperties()};
y.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
y.prototype._enqueueClient=function(V){this.__dataPendingClients=this.__dataPendingClients||[];V!==this&&this.__dataPendingClients.push(V)};
y.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
y.prototype.__enableOrFlushClients=function(){var V=this.__dataPendingClients;if(V){this.__dataPendingClients=null;for(var w=0;w<V.length;w++){var t=V[w];t.__dataEnabled?t.__dataPending&&t._flushProperties():t._enableProperties()}}};
y.prototype._readyClients=function(){this.__enableOrFlushClients()};
y.prototype.setProperties=function(V,w){for(var t in V)!w&&this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,V[t],!0);this._invalidateProperties()};
y.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
y.prototype._propertiesChanged=function(V,w,t){V=this.__dataHasPaths;this.__dataHasPaths=!1;var F;if(F=this.__computeEffects)if(Yni){Si++;var I=stn(this),P=[],C;for(C in w)Pg2(C,F,P,I,V);for(;C=P.shift();)YZt(this,"",w,t,C)&&Pg2(C.methodInfo,F,P,I,V);Object.assign(t,this.__dataOld);Object.assign(w,this.__dataPending);this.__dataPending=null}else for(I=w;DR(this,F,I,t,V);)Object.assign(t,this.__dataOld),Object.assign(w,this.__dataPending),I=this.__dataPending,this.__dataPending=null;F=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(w,t,V);this._flushClients();DR(this,this.__reflectEffects,w,t,V);DR(this,this.__observeEffects,w,t,V);if(F){I=this.__notifyEffects;P=Si++;for(var d in F)if(F[d]){if(C=I){var L=I;C=P;var z=d,c=w,K=t,f=V,U=!1,l=f?mJ(z):z;if(L=L[l]){l=0;for(var x=L.length,B=void 0;l<x&&(B=L[l]);l++)B.info&&B.info.lastRun===C||f&&!uWu(z,B.trigger)||(B.info&&(B.info.lastRun=C),B.fn(this,z,c,K,B.info,f,void 0),U=!0)}C=U}if(C)var r=!0;else{if(C=V)C=d,z=w,c=mJ(C),c!==
C?(c=p7(c)+"-changed",DUv(this,c,z[C],C),C=!0):C=!1;C&&(r=!0)}}var H;r&&(H=this.__dataHost)&&H._invalidateProperties&&H._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
y.prototype._propagatePropertyChanges=function(V,w,t){this.__propagateEffects&&DR(this,this.__propagateEffects,V,w,t);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,V,w,t)};
y.prototype._runEffectsForTemplate=function(V,w,t,F){var I=this,P=function(C,d){DR(I,V.propertyEffects,C,t,d,V.nodeList);for(var L=V.firstChild;L;L=L.nextSibling)I._runEffectsForTemplate(L,C,t,d)};
V.runEffects?V.runEffects(P,w,F):P(w,F)};
y.prototype.linkPaths=function(V,w){V=Uh(V);w=Uh(w);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[V]=w};
y.prototype.unlinkPaths=function(V){V=Uh(V);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[V]};
y.prototype.notifySplices=function(V,w){var t={path:""};V=u4(this,V,t);rOv(this,V,t.path,w)};
y.prototype.get=function(V,w){return u4(w||this,V)};
y.prototype.set=function(V,w,t){t?qZd(t,V,w):this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,w,!0)&&this._invalidateProperties()};
y.prototype.push=function(V){var w=_.Ve.apply(1,arguments),t={path:""},F=u4(this,V,t),I=F.length,P=F.push.apply(F,_.GC(w));w.length&&AL(this,F,t.path,I,w.length,[]);return P};
y.prototype.pop=function(V){var w={path:""};V=u4(this,V,w);var t=!!V.length,F=V.pop();t&&AL(this,V,w.path,V.length,0,[F]);return F};
y.prototype.splice=function(V,w,t){var F=_.Ve.apply(3,arguments),I={path:""},P=u4(this,V,I);w<0?w=P.length-Math.floor(-w):w&&(w=Math.floor(w));var C=arguments.length===2?P.splice(w):P.splice.apply(P,[w,t].concat(_.GC(F)));(F.length||C.length)&&AL(this,P,I.path,w,F.length,C);return C};
y.prototype.shift=function(V){var w={path:""};V=u4(this,V,w);var t=!!V.length,F=V.shift();t&&AL(this,V,w.path,0,0,[F]);return F};
y.prototype.unshift=function(V){var w=_.Ve.apply(1,arguments),t={path:""},F=u4(this,V,t),I=F.unshift.apply(F,_.GC(w));w.length&&AL(this,F,t.path,0,w.length,[]);return I};
y.prototype.notifyPath=function(V,w){if(arguments.length==1){var t={path:""};w=u4(this,V,t);t=t.path}else t=Array.isArray(V)?Uh(V):V;this._setPendingPropertyOrPath(t,w,!0,!0)&&this._invalidateProperties()};
y.prototype._createReadOnlyProperty=function(V,w){this._addPropertyEffect(V,"__readOnly");w&&(this["_set"+(V[0].toUpperCase()+V.substring(1))]=function(t){this._setProperty(V,t)})};
y.prototype._createPropertyObserver=function(V,w,t){var F={property:V,method:w,dynamicFn:!!t};this._addPropertyEffect(V,"__observeEffects",{fn:SZz,info:F,trigger:{name:V}});t&&this._addPropertyEffect(w,"__observeEffects",{fn:SZz,info:F,trigger:{name:w}})};
y.prototype._createMethodObserver=function(V,w){var t=a6z(V);if(!t)throw Error("Id`"+V);$Ub(this,t,"__observeEffects",AOb,null,w)};
y.prototype._createNotifyingProperty=function(V){this._addPropertyEffect(V,"__notifyEffects",{fn:l6R,info:{eventName:p7(V)+"-changed",property:V}})};
y.prototype._createReflectedProperty=function(V){var w=this.constructor.attributeNameForProperty(V);w[0]==="-"?console.warn("Property "+V+" cannot be reflected to attribute "+w+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(V,"__reflectEffects",{fn:xUj,info:{attrName:w}})};
y.prototype._createComputedProperty=function(V,w,t){var F=a6z(w);if(!F)throw Error("Jd`"+w);w=$Ub(this,F,"__computeEffects",YZt,V,t);UUG(this,"__computeInfo")[V]=w};
y.prototype._marshalArgs=function(V,w,t){for(var F=this.__data,I=[],P=0,C=V.length;P<C;P++){var d=V[P],L=d.name,z=d.structured,c=d.wildcard,K=d.value;d.literal||(c?(d=MT(L,w),z=Grt(F,t,d?w:L),K={path:d?w:L,value:z,base:d?u4(F,L):z}):K=z?Grt(F,t,L):F[L]);if(sh&&!this._overrideLegacyUndefined&&K===void 0&&V.length>1)return kk;I[P]=K}return I};
y.addPropertyEffect=function(V,w,t){this.prototype._addPropertyEffect(V,w,t)};
y.createPropertyObserver=function(V,w,t){this.prototype._createPropertyObserver(V,w,t)};
y.createMethodObserver=function(V,w){this.prototype._createMethodObserver(V,w)};
y.createNotifyingProperty=function(V){this.prototype._createNotifyingProperty(V)};
y.createReadOnlyProperty=function(V,w){this.prototype._createReadOnlyProperty(V,w)};
y.createReflectedProperty=function(V){this.prototype._createReflectedProperty(V)};
y.createComputedProperty=function(V,w,t){this.prototype._createComputedProperty(V,w,t)};
y.bindTemplate=function(V){return this.prototype._bindTemplate(V)};
y.prototype._bindTemplate=function(V,w){var t=this.constructor._parseTemplate(V),F=this.__preBoundTemplateInfo==t;if(!F)for(var I in t.propertyEffects)this._createPropertyAccessor(I);w?(t=Object.create(t),t.wasPreBound=F,this.__templateInfo?(V=V._parentTemplateInfo||this.__templateInfo,w=V.lastChild,t.parent=V,V.lastChild=t,(t.previousSibling=w)?w.nextSibling=t:V.firstChild=t):this.__templateInfo=t):this.__preBoundTemplateInfo=t;return t};
y._addTemplatePropertyEffect=function(V,w,t){(V.hostProps=V.hostProps||{})[w]=!0;V=V.propertyEffects=V.propertyEffects||{};(V[w]=V[w]||[]).push(t)};
y.prototype._stampTemplate=function(V,w){w=w||this._bindTemplate(V,!0);Lj.push(this);V=W.prototype._stampTemplate.call(this,V,w);Lj.pop();w.nodeList=V.nodeList;if(!w.wasPreBound)for(var t=w.childNodes=[],F=V.firstChild;F;F=F.nextSibling)t.push(F);V.templateInfo=w;t=w.nodeList;F=w.nodeInfoList;if(F.length)for(var I=0;I<F.length;I++){var P=t[I],C=F[I].bindings;if(C)for(var d=0;d<C.length;d++){var L=C[d],z=P,c=L;if(c.isCompound){for(var K=z.__dataCompoundStorage||(z.__dataCompoundStorage={}),f=c.parts,
U=Array(f.length),l=0;l<f.length;l++)U[l]=f[l].literal;f=c.target;K[f]=U;c.literal&&c.kind=="property"&&(f==="className"&&(z=(0,_.l4)(z)),z[f]=c.literal)}jta(P,this,L)}P.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(w,this.__data,null,!1),this._flushClients());return V};
y.prototype._removeBoundDom=function(V){V=V.templateInfo;var w=V.previousSibling,t=V.nextSibling,F=V.parent;w?w.nextSibling=t:F&&(F.firstChild=t);t?t.previousSibling=w:F&&(F.lastChild=w);V.nextSibling=V.previousSibling=null;V=V.childNodes;for(w=0;w<V.length;w++)t=V[w],(0,_.l4)((0,_.l4)(t).parentNode).removeChild(t)};
y._parseTemplateNode=function(V,w,t){var F=W._parseTemplateNode.call(this,V,w,t);if(V.nodeType===Node.TEXT_NODE){var I=this._parseBindings(V.textContent,w);I&&(V.textContent=n9z(I)||" ",R74(this,w,t,"text","textContent",I),F=!0)}return F};
y._parseTemplateNodeAttribute=function(V,w,t,F,I){var P=this._parseBindings(I,w);if(P){I=F;var C="property";gCA.test(F)?C="attribute":F[F.length-1]=="$"&&(F=F.slice(0,-1),C="attribute");var d=n9z(P);d&&C=="attribute"&&(F=="class"&&V.hasAttribute("class")&&(d+=" "+V.getAttribute(F)),V.setAttribute(F,d));C=="attribute"&&I=="disable-upgrade$"&&V.setAttribute(F,"");V.localName==="input"&&I==="value"&&V.setAttribute(I,"");V.removeAttribute(I);C==="property"&&(F=K7(F));R74(this,w,t,C,F,P,d);return!0}return W._parseTemplateNodeAttribute.call(this,
V,w,t,F,I)};
y._parseTemplateNestedTemplate=function(V,w,t){var F=W._parseTemplateNestedTemplate.call(this,V,w,t),I=V.parentNode,P=t.templateInfo,C=I.localName==="dom-if",d=I.localName==="dom-repeat";g9&&(C||d)&&(I.removeChild(V),t=t.parentInfo,t.templateInfo=P,t.noted=!0,F=!1);V=P.hostProps;if(PQ&&C)V&&(w.hostProps=Object.assign(w.hostProps||{},V),g9||(t.parentInfo.noted=!0));else for(var L in V)R74(this,w,t,"property","_host_"+L,[{mode:"{",source:L,dependencies:[L],hostProp:!0}]);return F};
y._parseBindings=function(V,w){for(var t=[],F=0,I;(I=Cgq.exec(V))!==null;){I.index>F&&t.push({literal:V.slice(F,I.index)});F=I[1][0];var P=!!I[2];I=I[3].trim();var C=!1,d="",L=-1;F=="{"&&(L=I.indexOf("::"))>0&&(d=I.substring(L+2),I=I.substring(0,L),C=!0);L=a6z(I);var z=[];if(L){var c=L,K=c.args;c=c.methodName;for(var f=0;f<K.length;f++){var U=K[f];U.literal||z.push(U)}if((K=w.dynamicFns)&&K[c]||L.static)z.push(c),L.dynamicFn=!0}else z.push(I);t.push({source:I,mode:F,negate:P,customEvent:C,signature:L,
dependencies:z,event:d});F=Cgq.lastIndex}F&&F<V.length&&(V=V.substring(F))&&t.push({literal:V});return t.length?t:null};
y._evaluateBinding=function(V,w,t,F,I,P){V=w.signature?AOb(V,t,F,I,w.signature):t!=w.source?u4(V,w.source):P&&TY(t)?u4(V,t):V.__data[t];w.negate&&(V=!V);return V};
_.CM.Object.defineProperties(y.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return IHA}}});
return y}),Lj=[];var O2q=window.ShadyCSS&&window.ShadyCSS.cssBuild,cQ=d9(function(y){function W(w,t,F,I){if(!O2q){for(var P=t.content.querySelectorAll("style"),C=yDd(t),d=Waz(F),L=t.content.firstElementChild,z=0;z<d.length;z++){var c=d[z];c.textContent=w._processStyleText(c.textContent,I);t.content.insertBefore(c,L)}for(L=d=0;L<C.length;L++)z=C[L],c=P[d],c!==z?(z=z.cloneNode(!0),c.parentNode.insertBefore(z,c)):d++,z.textContent=w._processStyleText(z.textContent,I)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,
F);if(J1z&&O2q&&x8K&&(t=t.content.querySelectorAll("style"))){var K="";Array.from(t).forEach(function(f){K+=f.textContent;f.parentNode.removeChild(f)});
w._styleSheet=new CSSStyleSheet;w._styleSheet.replaceSync(K)}}
var V=r1m(zn(y));y=function(){return V.call(this)||this};
_.p(y,V);y._finalizeClass=function(){V._finalizeClass.call(this);var w;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(w=this.__ownObservers)&&this.createObservers(w,this._properties);this._prepareTemplate()};
y._prepareTemplate=function(){var w=this.template;w&&(typeof w==="string"?(console.error("template getter must return HTMLTemplateElement"),w=null):b4||(w=w.cloneNode(!0)));this.prototype._template=w};
y.createProperties=function(w){for(var t in w){var F=this.prototype,I=t,P=w[t],C=w;P.computed&&(P.readOnly=!0);P.computed&&(F._hasReadOnlyEffect(I)?console.warn("Cannot redefine computed property '"+I+"'."):F._createComputedProperty(I,P.computed,C));P.readOnly&&!F._hasReadOnlyEffect(I)?F._createReadOnlyProperty(I,!P.computed):P.readOnly===!1&&F._hasReadOnlyEffect(I)&&console.warn("Cannot make readOnly property '"+I+"' non-readOnly.");P.reflectToAttribute&&!F._hasReflectEffect(I)?F._createReflectedProperty(I):
P.reflectToAttribute===!1&&F._hasReflectEffect(I)&&console.warn("Cannot make reflected property '"+I+"' non-reflected.");P.notify&&!F._hasNotifyEffect(I)?F._createNotifyingProperty(I):P.notify===!1&&F._hasNotifyEffect(I)&&console.warn("Cannot make notify property '"+I+"' non-notify.");P.observer&&F._createPropertyObserver(I,P.observer,C[P.observer]);F._addPropertyToAttributeMap(I)}};
y.createObservers=function(w,t){for(var F=this.prototype,I=0;I<w.length;I++)F._createMethodObserver(w[I],t)};
y.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);V.prototype._initializeProperties.call(this);this.rootPath=k2E;this.importPath=this.constructor.importPath;var w=this.constructor;if(!w.hasOwnProperty("__propertyDefaults")){w.__propertyDefaults=null;var t=w._properties,F;for(F in t){var I=t[F];"value"in I&&(w.__propertyDefaults=w.__propertyDefaults||{},w.__propertyDefaults[F]=I)}}if(w=w.__propertyDefaults)for(var P in w)t=w[P],
this._canApplyPropertyDefault(P)&&(t=typeof t.value=="function"?t.value.call(this):t.value,this._hasAccessor(P)?this._setPendingProperty(P,t,!0):this[P]=t)};
y.prototype._canApplyPropertyDefault=function(w){return!this.hasOwnProperty(w)};
y._processStyleText=function(w,t){return v9P(w,t)};
y._finalizeTemplate=function(w){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var F=this.importPath;F=F?_.hL(F):"";W(this,t,w,F);this.prototype._bindTemplate(t)}};
y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);V.prototype.connectedCallback.call(this)};
y.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);V.prototype.ready.call(this)};
y.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));V.prototype._readyClients.call(this)};
y.prototype._attachDom=function(w){var t=(0,_.l4)(this);if(t.attachShadow)return w?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:w}),t.shadowRoot.appendChild(w),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),A1I&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw Error("Ld");};
y.prototype.updateStyles=function(w){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,w)};
y.prototype.resolveUrl=function(w,t){!t&&this.importPath&&(t=_.hL(this.importPath));return _.hL(w,t)};
y._parseTemplateContent=function(w,t,F){t.dynamicFns=t.dynamicFns||this._properties;return V._parseTemplateContent.call(this,w,t,F)};
y._addTemplatePropertyEffect=function(w,t,F){!Wf||t in this._properties||F.info.part.signature&&F.info.part.signature.static||F.info.part.hostProp||w.nestedTemplate||console.warn("Property '"+t+"' used in template but not declared in 'properties'; attribute will not be observed.");return V._addTemplatePropertyEffect.call(this,w,t,F)};
_.CM.Object.defineProperties(y,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var w=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof w==="function"&&(w=w());if(w===void 0){if(w=this.hasOwnProperty("is")){w=this.is;var t=null;if(w&&(!VV||swr)&&(t=Yk.import(w,"template"),VV&&!t))throw Error("Kd`"+w);w=t}w=w||Object.getPrototypeOf(this.prototype).constructor.template}this._template=w}return this._template},
set:function(w){this._template=w}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var w=this.importMeta;w?this._importPath=dUu(w.url):this._importPath=(w=Yk.import(this.is))&&w.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return y});var vCf=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(y){return y}}),IEb=function(y,W){dKR(y,W);
this.value=W.reduce(function(V,w,t){return V+gUu(w)+y[t+1]},y[0]).toString()},dKR;
IEb.prototype.toString=function(){return this.value};
_.L_r=function(y){var W=_.Ve.apply(1,arguments);dKR(y,W);var V=document.createElement("template");W=W.reduce(function(w,t,F){if(t instanceof HTMLTemplateElement)t=t.innerHTML;else if(t instanceof IEb)t=gUu(t);else throw Error("Nd`"+t);return w+t+y[F+1]},y[0]);
vCf&&(W=vCf.createHTML(W));V.innerHTML=W;return V};
dKR=function(y,W){if(!Array.isArray(y)||!Array.isArray(y.raw)||W.length!==y.length-1)throw new TypeError("Od");};var eN=cQ(HTMLElement);var z5J=d9(function(y){var W=cQ(y);y=function(){var V=W.call(this)||this;V.__lastItems=null;V.__lastMulti=null;V.__selectedMap=null;return V};
_.p(y,W);y.prototype.__updateSelection=function(V,w){var t=w.path;t=="items"?(w=w.base||[],t=this.__lastItems,V!==this.__lastMulti&&this.clearSelection(),t&&(t=Nxn(w,t),this.__applySplices(t)),this.__lastItems=w,this.__lastMulti=V):w.path=="items.splices"?this.__applySplices(w.value.indexSplices):(V=t.slice(6),w=parseInt(V,10),V.indexOf(".")<0&&V==w&&this.__deselectChangedIdx(w))};
y.prototype.__applySplices=function(V){for(var w=this,t=this.__selectedMap,F={},I=0;I<V.length;F={s$jscomp$108:void 0},I++){F.s$jscomp$108=V[I];t.forEach(function(L){return function(z,c){z<L.s$jscomp$108.index||(z>=L.s$jscomp$108.index+L.s$jscomp$108.removed.length?t.set(c,z+L.s$jscomp$108.addedCount-L.s$jscomp$108.removed.length):t.set(c,-1))}}(F));
for(var P=0;P<F.s$jscomp$108.addedCount;P++){var C=F.s$jscomp$108.index+P;t.has(this.items[C])&&t.set(this.items[C],C)}}this.__updateLinks();var d=0;t.forEach(function(L,z){L<0?(w.multi?w.splice("selected",d,1):w.selected=w.selectedItem=null,t.delete(z)):d++})};
y.prototype.__updateLinks=function(){var V=this;this.__dataLinkedPaths={};if(this.multi){var w=0;this.__selectedMap.forEach(function(t){t>=0&&V.linkPaths("items."+t,"selected."+w++)})}else this.__selectedMap.forEach(function(t){V.linkPaths("selected","items."+t);
V.linkPaths("selectedItem","items."+t)})};
y.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
y.prototype.isSelected=function(V){return this.__selectedMap.has(V)};
y.prototype.isIndexSelected=function(V){return this.isSelected(this.items[V])};
y.prototype.__deselectChangedIdx=function(V){var w=this,t=this.__selectedIndexForItemIndex(V);if(t>=0){var F=0;this.__selectedMap.forEach(function(I,P){t==F++&&w.deselect(P)})}};
y.prototype.__selectedIndexForItemIndex=function(V){if(V=this.__dataLinkedPaths["items."+V])return parseInt(V.slice(9),10)};
y.prototype.deselect=function(V){var w=this.__selectedMap.get(V);if(w>=0){this.__selectedMap.delete(V);var t;this.multi&&(t=this.__selectedIndexForItemIndex(w));this.__updateLinks();this.multi?this.splice("selected",t,1):this.selected=this.selectedItem=null}};
y.prototype.deselectIndex=function(V){this.deselect(this.items[V])};
y.prototype.select=function(V){this.selectIndex(this.items.indexOf(V))};
y.prototype.selectIndex=function(V){var w=this.items[V];this.isSelected(w)?this.toggle&&this.deselectIndex(V):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(w,V),this.__updateLinks(),this.multi?this.push("selected",w):this.selected=this.selectedItem=w)};
_.CM.Object.defineProperties(y,{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 y}),cz2=z5J(eN),hq=function(){return cz2.apply(this,arguments)||this};
_.p(hq,cz2);_.CM.Object.defineProperties(hq,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(hq.is,hq);var e5s=window.Polymer;window.Polymer=function(y){return window.Polymer._polymerFn(y)};
e5s&&Object.assign(Polymer,e5s);Polymer._polymerFn=function(){throw Error("Pd");};/*

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:v9P,resolveUrl:_.hL,pathFromUrl:dUu};Polymer.DomModule=Yk;Polymer.Async={timeOut:_.vQ,animationFrame:_.aU,idlePeriod:Hgz,microTask:GY};Polymer.dedupingMixin=d9;Polymer.wrap=_.l4;Polymer.PropertiesChanged=a2J;Polymer.telemetry={instanceCount:G2I,incrementInstanceCount:function(){G2I++},
registrations:e7G,register:h7P,dumpRegistrations:function(){e7G.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=r1m;Polymer.CaseMap={dashToCamelCase:K7,camelToDashCase:p7};Polymer.PropertyAccessors=VEJ;Polymer.TemplateStamp=N5s;Polymer.Path={isPath:TY,root:mJ,isAncestor:T7G,isDescendant:MT,translate:qT,matches:mUz,normalize:Uh,split:Myn,get:u4,set:qZd,isDeep:TY};Polymer.Settings={useShadow:Qp,useNativeCSSProperties:U8z,useNativeCustomElements:u$m,get rootPath(){return k2E},setRootPath:function(y){k2E=y},
get sanitizeDOMValue(){return xk},setSanitizeDOMValue:function(y){xk=y},
get passiveTouchGestures(){return pmv},setPassiveTouchGestures:function(y){pmv=y},
get strictTemplatePolicy(){return VV},setStrictTemplatePolicy:function(y){VV=y},
get allowTemplateFromDomModule(){return swr},setAllowTemplateFromDomModule:function(y){swr=y},
get legacyOptimizations(){return b4},setLegacyOptimizations:function(y){b4=y},
get syncInitialRender(){return A1I},setSyncInitialRender:function(y){A1I=y},
get legacyUndefined(){return sh},setLegacyUndefined:function(y){sh=y},
get legacyWarnings(){return Wf},setLegacyWarnings:function(y){Wf=y},
get orderedComputed(){return Yni},setOrderedComputed:function(y){Yni=y},
get fastDomIf(){return PQ},setFastDomIf:function(y){PQ=y},
get removeNestedTemplates(){return g9},setRemoveNestedTemplates:function(y){g9=y},
get suppressTemplateNotifications(){return Cj},setSuppressTemplateNotifications:Cj};Polymer.rootPath!==void 0&&(k2E=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(xk=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(pmv=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(VV=Polymer.strictTemplatePolicy);swr=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(b4=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(A1I=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(sh=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Wf=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Yni=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(PQ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(g9=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Cj=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return xk},
set:function(y){xk=y}});Polymer.PropertyEffects=zn;Polymer.StyleGather={stylesFromModules:Zvv,stylesFromModule:QtG,stylesFromTemplate:yDd,stylesFromModuleImports:Waz,cssFromModules:wmu,cssFromModule:V3j,cssFromTemplate:t3R,cssFromModuleImports:function(y){return(y=Yk.import(y))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y):""}};Polymer.ElementMixin=cQ;Polymer.updateStyles=function(y){window.ShadyCSS&&window.ShadyCSS.styleDocument(y)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Nxn};Polymer.html=_.L_r;Polymer.htmlLiteral=function(y){return new IEb(y,_.Ve.apply(1,arguments))};Polymer.Element=eN;Polymer.ArraySelectorMixin=z5J;Polymer.ArraySelector=hq;var h5K=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,oCJ=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,jXR=/@media\s(.*)/;var vUt=null,OVn=window.HTMLImports&&window.HTMLImports.whenReady||null,dEP;var K_J=null,o4=null,Kj=function(){this.customStyles=[];this.enqueued=!1;Lan(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},pEs=function(y){!y.enqueued&&o4&&(y.enqueued=!0,Lan(o4))};
Kj.prototype.addCustomStyle=function(y){y.__seenByShadyCSS||(y.__seenByShadyCSS=!0,this.customStyles.push(y),pEs(this))};
Kj.prototype.getStyleForCustomStyle=function(y){if(y.__shadyCSSCachedStyle)return y.__shadyCSSCachedStyle;var W;y.getStyle?W=y.getStyle():W=y;return W};
Kj.prototype.processStyles=function(){for(var y=this.customStyles,W=0;W<y.length;W++){var V=y[W];if(!V.__shadyCSSCachedStyle){var w=this.getStyleForCustomStyle(V);w&&(w=w.__appliedElement||w,K_J&&K_J(w),V.__shadyCSSCachedStyle=w)}}return y};
Kj.prototype.addCustomStyle=Kj.prototype.addCustomStyle;Kj.prototype.getStyleForCustomStyle=Kj.prototype.getStyleForCustomStyle;Kj.prototype.processStyles=Kj.prototype.processStyles;Object.defineProperties(Kj.prototype,{transformCallback:{get:function(){return K_J},
set:function(y){K_J=y}},
validateCallback:{get:function(){return o4},
set:function(y){var W=!1;o4||(W=!0);o4=y;W&&pEs(this)}}});var cDz=!(window.ShadyDOM&&window.ShadyDOM.inUse),zTj,Pf;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Pf=window.ShadyCSS.cssBuild);var i26=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?zTj=window.ShadyCSS.nativeCss:window.ShadyCSS?(eTv(window.ShadyCSS),window.ShadyCSS=void 0):eTv(window.WebComponents&&window.WebComponents.flags);var BKR=zTj;var fHR=new Kj;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(y,W){fHR.processStyles();Pwn(y,W)},
styleElement:function(){fHR.processStyles()},
styleDocument:function(y){fHR.processStyles();Pwn(document.body,y)},
getComputedStyleValue:function(y,W){return Cw4(y,W)},
flushCustomStyles:function(){},
nativeCss:BKR,nativeShadow:cDz,cssBuild:Pf,disableRuntime:i26});window.ShadyCSS.CustomStyleInterface=fHR;var T5K=window.ShadyCSS.CustomStyleInterface,pj=function(){var y=HTMLElement.call(this)||this;y._style=null;T5K.addCustomStyle(y);return y};
_.p(pj,HTMLElement);pj.prototype.getStyle=function(){if(this._style)return this._style;var y=this.querySelector("style");if(!y)return null;this._style=y;var W=y.getAttribute("include");W&&(y.removeAttribute("include"),y.textContent=wmu(W)+y.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
pj.prototype.getStyle=pj.prototype.getStyle;window.customElements.define("custom-style",pj);Polymer.CustomStyle=pj;var iJ=function(){this._timer=this._callback=this._asyncModule=null},fj,MEE;
iJ.prototype.setConfig=function(y,W){var V=this;this._asyncModule=y;this._callback=W;this._timer=this._asyncModule.run(function(){V._timer=null;fj.delete(V);V._callback()})};
iJ.prototype.cancel=function(){this.isActive()&&(mKi(this),fj.delete(this))};
var mKi=function(y){y.isActive()&&(y._asyncModule.cancel(y._timer),y._timer=null)};
iJ.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
iJ.prototype.isActive=function(){return this._timer!=null};
_.Tn=function(y,W,V){y instanceof iJ?mKi(y):y=new iJ;y.setConfig(W,V);return y};
fj=new Set;_.mu=function(y){fj.add(y)};
MEE=function(){var y=!!fj.size;fj.forEach(function(W){try{W.flush()}catch(V){setTimeout(function(){throw V;})}});
return y};var oUj=typeof document.head.style.touchAction==="string",hTL=["mousedown","mousemove","mouseup","click"],UEz=[0,1,4,2],qBA;try{qBA=(new MouseEvent("test",{buttons:1})).buttons===1}catch(y){qBA=!1}var qpR=qBA,KaP=!1;(function(){try{var y=Object.defineProperty({},"passive",{get:function(){KaP=!0}});
window.addEventListener("test",null,y);window.removeEventListener("test",null,y)}catch(W){}})();
var fEL=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Txd=[],UK2={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},RTv={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},mEz=function(y){var W=y.sourceCapabilities;if(!W||W.firesTouchEvents)if(y.__polymerGesturesHandled={skip:!0},y.type==="click"){W=!1;for(var V=lEG(y),w=0;w<V.length;w++){if(V[w].nodeType===Node.ELEMENT_NODE)if(V[w].localName==="label")Txd.push(V[w]);
else if(UK2[V[w].localName]){var t=V[w];var F=Array.prototype.slice.call(t.labels||[]);if(!F.length){F=[];try{var I=t.getRootNode();if(t.id){var P=I.querySelectorAll("label[for = '"+t.id+"']");for(t=0;t<P.length;t++)F.push(P[t])}}catch(C){}}for(t=0;t<F.length;t++)W=W||Txd.indexOf(F[t])>-1}if(V[w]===urK)return}W||(y.preventDefault(),y.stopPropagation())}},urK=null,M2=null,kSj=0,sDv=0,xEz=-1,ADR=!1;
document.addEventListener("touchend",function(y){M2||M3n(!0);urK=lEG(y)[0];M2=_.Tn(M2,_.vQ.after(2500),function(){M3n();M2=urK=null})},KaP?{passive:!0}:!1);
var lEG=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(y){return y.composedPath&&y.composedPath()||[]},n7={},ji=[];
Ypz({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){R0(this.info)},
mousedown:function(y){if(JL(y)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),V=this;Spj(this.info,function(w){JL(w)||(rS("up",W,w),R0(V.info))},function(w){JL(w)&&rS("up",W,w);
R0(V.info)});
rS("down",W,y)}},
touchstart:function(y){rS("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),y.changedTouches[0],y)},
touchend:function(y){rS("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),y.changedTouches[0],y)}});
Ypz({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(y){this.moves.length>2&&this.moves.shift();this.moves.push(y)},
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;R0(this.info)},
mousedown:function(y){if(JL(y)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),V=this,w=function(t){var F=t.clientX,I=t.clientY;Bx4(V.info,F,I)&&(V.info.state=V.info.started?t.type==="mouseup"?"end":"track":"start",V.info.state==="start"&&$k("tap"),V.info.addMove({x:F,y:I}),JL(t)||(V.info.state="end",R0(V.info)),W&&JD4(V.info,W,t),V.info.started=!0)};
Spj(this.info,w,function(t){V.info.started&&w(t);R0(V.info)});
this.info.x=y.clientX;this.info.y=y.clientY}},
touchstart:function(y){y=y.changedTouches[0];this.info.x=y.clientX;this.info.y=y.clientY},
touchmove:function(y){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y=y.changedTouches[0];var V=y.clientX,w=y.clientY;Bx4(this.info,V,w)&&(this.info.state==="start"&&$k("tap"),this.info.addMove({x:V,y:w}),JD4(this.info,W,y),this.info.state="track",this.info.started=!0)},
touchend:function(y){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y=y.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:y.clientX,y:y.clientY}),JD4(this.info,W,y))}});
Ypz({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(y){JL(y)&&(this.info.x=y.clientX,this.info.y=y.clientY)},
click:function(y){JL(y)&&jDP(this.info,y)},
touchstart:function(y){y=y.changedTouches[0];this.info.x=y.clientX;this.info.y=y.clientY},
touchend:function(y){jDP(this.info,y.changedTouches[0],y)}});var SBJ=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W.prototype._addEventListenerToNode=function(V,w,t){Hl(V,w,t)||y.prototype._addEventListenerToNode.call(this,V,w,t)};
W.prototype._removeEventListenerFromNode=function(V,w,t){XD(V,w,t)||y.prototype._removeEventListenerFromNode.call(this,V,w,t)};
return W});var q2=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W.prototype._shouldPropertyChange=function(V,w,t){return $Ed(this,V,w,t,!0)};
return W}),DKK=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W.prototype._shouldPropertyChange=function(V,w,t){return $Ed(this,V,w,t,this.mutableData)};
_.CM.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return W});
q2._mutablePropertyChange=$Ed;var nUz=!1;var lH6=SBJ(DKK(zn(HTMLElement))),Ue=function(){var y=lH6.call(this)||this;if(VV)throw Error("Qd");y.root=null;y.$=null;y.__children=null;return y};
_.p(Ue,lH6);_.E=Ue.prototype;_.E.attributeChangedCallback=function(){this.mutableData=!0};
_.E.connectedCallback=function(){HVn()||(this.style.display="none");this.render()};
_.E.disconnectedCallback=function(){this.__removeChildren()};
_.E.__insertChildren=function(){(0,_.l4)((0,_.l4)(this).parentNode).insertBefore(this.root,this)};
_.E.__removeChildren=function(){if(this.__children)for(var y=0;y<this.__children.length;y++)this.root.appendChild(this.__children[y])};
_.E.render=function(){var y=this;if(!this.__children){var W=W||this.querySelector("template");if(!W){var V=new MutationObserver(function(){if(W=y.querySelector("template"))V.disconnect(),y.render();else throw Error("Rd");});
V.observe(this,{childList:!0});return}this.root=this._stampTemplate(W);this.$=this.root.$;this.__children=[];for(var w=this.root.firstChild;w;w=w.nextSibling)this.__children[this.__children.length]=w;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.CM.Object.defineProperties(Ue,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Ue);Polymer.Debouncer=iJ;Polymer.Gestures={gestures:n7,recognizers:ji,deepTargetFind:DEn,addListener:Hl,removeListener:XD,register:Ypz,setTouchAction:_.a0,prevent:$k,resetMouseCanceller:function(){M2&&M2.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Hl,remove:XD};Polymer.GestureEventListeners=SBJ;Polymer.MutableData=q2;Polymer.OptionalMutableData=DKK;Polymer.DomBind=Ue;_.uJ=function(){do{var y=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var W=MEE()}while(y||W)};var Xmd=null;aEz.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:aEz,writable:!0}});var V6u=zn(aEz),WUy=q2(V6u),xKI=zn(function(){}),ZR=function(y){var W=xKI.call(this)||this;
W._configureProperties(y);W.root=W._stampTemplate(W.__dataHost);var V=[];W.children=V;for(var w=W.root.firstChild;w;w=w.nextSibling)V.push(w),w.__templatizeInstance=W;W.__templatizeOwner&&W.__templatizeOwner.__hideTemplateChildren__&&W._showHideChildren(!0);V=W.__templatizeOptions;(y&&V.instanceProps||!V.instanceProps)&&W._enableProperties();return W};
_.p(ZR,xKI);_.E=ZR.prototype;_.E._configureProperties=function(y){if(this.__templatizeOptions.forwardHostProp)for(var W in this.__hostProps)this._setPendingProperty(W,this.__dataHost["_host_"+W]);for(var V in y)this._setPendingProperty(V,y[V])};
_.E.forwardHostProp=function(y,W){this._setPendingPropertyOrPath(y,W,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.E._addEventListenerToNode=function(y,W,V){var w=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(y,W,function(F){F.model=w;V(F)});
else{var t=this.__dataHost.__dataHost;t&&t._addEventListenerToNode(y,W,V)}};
_.E._showHideChildren=function(y){rDy(y,this.children)};
_.E._setUnmanagedPropertyToNode=function(y,W,V){y.__hideTemplateChildren__&&y.nodeType==Node.TEXT_NODE&&W=="textContent"?y.__polymerTextContent__=V:xKI.prototype._setUnmanagedPropertyToNode.call(this,y,W,V)};
_.E.dispatchEvent=function(){return!0};
_.CM.Object.defineProperties(ZR.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var y=this.__parentModel;if(!y){var W;y=this;do y=y.__dataHost.__dataHost;while((W=y.__templatizeOptions)&&!W.parentModel);this.__parentModel=y}return y}}});
var QDL=q2(ZR);var SN=function(){var y=eN.call(this)||this;y.__renderDebouncer=null;y._lastIf=!1;y.__hideTemplateChildren__=!1;return y};
_.p(SN,eN);_.E=SN.prototype;_.E.__debounceRender=function(){var y=this;this.__renderDebouncer=_.Tn(this.__renderDebouncer,GY,function(){return y.__render()});
_.mu(this.__renderDebouncer)};
_.E.disconnectedCallback=function(){eN.prototype.disconnectedCallback.call(this);var y=(0,_.l4)(this).parentNode;y&&(y.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.l4)(y).host)||this.__teardownInstance()};
_.E.connectedCallback=function(){eN.prototype.connectedCallback.call(this);HVn()||(this.style.display="none");this.if&&this.__debounceRender()};
_.E.__ensureTemplate=function(){var y=this;if(!this.__template){var W=this._templateInfo?this:(0,_.l4)(this).querySelector("template");if(!W){var V=new MutationObserver(function(){if((0,_.l4)(y).querySelector("template"))V.disconnect(),y.__render();else throw Error("Ud");});
V.observe(this,{childList:!0});return!1}this.__template=W}return!0};
_.E.__ensureInstance=function(){var y=(0,_.l4)(this).parentNode;if(this.__hasInstance()){var W=this.__getInstanceNodes();if(W&&W.length&&(0,_.l4)(this).previousSibling!==W[W.length-1])for(var V=0,w=void 0;V<W.length&&(w=W[V]);V++)(0,_.l4)(y).insertBefore(w,this)}else{if(!y||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(y)}return!0};
_.E.render=function(){_.uJ()};
_.E.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Cj&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.E.__hasInstance=function(){};
_.E.__getInstanceNodes=function(){};
_.E.__createAndInsertInstance=function(){};
_.E.__teardownInstance=function(){};
_.E._showHideChildren=function(){};
_.CM.Object.defineProperties(SN,{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:SN.prototype.__debounceRender},restamp:{type:Boolean,observer:SN.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var k4J=function(){var y=SN.call(this)||this;y.__instance=null;y.__syncInfo=null;return y};
_.p(k4J,SN);_.E=k4J.prototype;_.E.__hasInstance=function(){return!!this.__instance};
_.E.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.E.__createAndInsertInstance=function(y){var W=this,V=this.__dataHost||this;if(VV&&!this.__dataHost)throw Error("Sd");var w=V._bindTemplate(this.__template,!0);w.runEffects=function(t,F,I){var P=W.__syncInfo;if(W.if)P&&(W.__syncInfo=null,W._showHideChildren(),F=Object.assign(P.changedProps,F)),t(F,I);else if(W.__instance)if(P||(P=W.__syncInfo={runEffects:t,changedProps:{}}),I)for(var C in F)t=mJ(C),P.changedProps[t]=W.__dataHost[t];else Object.assign(P.changedProps,F)};
this.__instance=V._stampTemplate(this.__template,w);(0,_.l4)(y).insertBefore(this.__instance,this)};
_.E.__syncHostProperties=function(){var y=this.__syncInfo;y&&(this.__syncInfo=null,y.runEffects(y.changedProps,!1))};
_.E.__teardownInstance=function(){var y=this.__dataHost||this;this.__instance&&(y._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.E._showHideChildren=function(){var y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==y&&(this.__instance.__hidden=y,rDy(y,this.__instance.templateInfo.childNodes));y||this.__syncHostProperties()};
var sB2=function(){var y=SN.call(this)||this;y.__ctor=null;y.__instance=null;y.__invalidProps=null;return y};
_.p(sB2,SN);_.E=sB2.prototype;_.E.__hasInstance=function(){return!!this.__instance};
_.E.__getInstanceNodes=function(){return this.__instance.children};
_.E.__createAndInsertInstance=function(y){this.__ctor||(this.__ctor=yV(this.__template,this,{mutableData:!0,forwardHostProp:function(W,V){this.__instance&&(this.if?this.__instance.forwardHostProp(W,V):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[mJ(W)]=!0))}}));
this.__instance=new this.__ctor;(0,_.l4)(y).insertBefore(this.__instance.root,this)};
_.E.__teardownInstance=function(){if(this.__instance){var y=this.__instance.children;if(y&&y.length){var W=(0,_.l4)(y[0]).parentNode;if(W){W=(0,_.l4)(W);for(var V=0,w=void 0;V<y.length&&(w=y[V]);V++)W.removeChild(w)}}this.__instance=this.__invalidProps=null}};
_.E.__syncHostProperties=function(){var y=this.__invalidProps;if(y){this.__invalidProps=null;for(var W in y)this.__instance._setPendingProperty(W,this.__dataHost[W]);this.__instance._flushProperties()}};
_.E._showHideChildren=function(){var y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==y&&(this.__instance.__hidden=y,this.__instance._showHideChildren(y));y||this.__syncHostProperties()};
_.rg=PQ?k4J:sB2;customElements.define(_.rg.is,_.rg);Polymer.enqueueDebouncer=_.mu;Polymer.flush=_.uJ;Polymer.Templatize={templatize:yV,modelForElement:ITd};Polymer.TemplateInstanceBase=ZR;Polymer.DomIf=_.rg;var Azf=DKK(eN),GA=function(){var y=Azf.call(this)||this;y.__instances=[];y.__renderDebouncer=null;y.__itemsIdxToInstIdx={};y.__chunkCount=null;y.__renderStartTime=null;y.__itemsArrayChanged=!1;y.__shouldMeasureChunk=!1;y.__shouldContinueChunking=!1;y.__chunkingId=0;y.__sortFn=null;y.__filterFn=null;y.__observePaths=null;y.__ctor=null;y.__isDetached=!0;y.template=null;return y};
_.p(GA,Azf);_.E=GA.prototype;_.E.disconnectedCallback=function(){Azf.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var y=0;y<this.__instances.length;y++)this.__detachInstance(y);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.E.connectedCallback=function(){Azf.prototype.connectedCallback.call(this);HVn()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var y=(0,_.l4)((0,_.l4)(this).parentNode),W=0;W<this.__instances.length;W++)this.__attachInstance(W,y);this.__chunkingId&&this.__render()}};
_.E.__ensureTemplatized=function(){var y=this;if(!this.__ctor){var W=this.template=this._templateInfo?this:this.querySelector("template");if(!W){var V=new MutationObserver(function(){if(y.querySelector("template"))V.disconnect(),y.__render();else throw Error("Vd");});
V.observe(this,{childList:!0});return!1}var w={};w[this.as]=!0;w[this.indexAs]=!0;w[this.itemsIndexAs]=!0;this.__ctor=yV(W,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:w,forwardHostProp:function(t,F){for(var I=this.__instances,P=0,C=void 0;P<I.length&&(C=I[P]);P++)C.forwardHostProp(t,F)},
notifyInstanceProp:function(t,F,I){mUz(this.as,F)&&(t=t[this.itemsIndexAs],F==this.as&&(this.items[t]=I),F=qT(this.as,"items."+t,F),this.notifyPath(F,I))}})}return!0};
_.E.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.E.__functionFromPropertyValue=function(y){if(typeof y==="string"){var W=this.__getMethodHost();return function(){return W[y].apply(W,arguments)}}return y};
_.E.__sortChanged=function(y){this.__sortFn=this.__functionFromPropertyValue(y);this.items&&this.__debounceRender(this.__render)};
_.E.__filterChanged=function(y){this.__filterFn=this.__functionFromPropertyValue(y);this.items&&this.__debounceRender(this.__render)};
_.E.__computeFrameTime=function(y){return Math.ceil(1E3/y)};
_.E.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.E.__handleObservedPaths=function(y){if(this.__sortFn||this.__filterFn)if(!y)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var W=this.__observePaths,V=0;V<W.length;V++)y.indexOf(W[V])===0&&this.__debounceRender(this.__render,this.delay)};
_.E.__itemsChanged=function(y){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(y.path,y.value)||(y.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.E.__debounceRender=function(y,W){W=W===void 0?0:W;this.__renderDebouncer=_.Tn(this.__renderDebouncer,W>0?_.vQ.after(W):GY,y.bind(this));_.mu(this.__renderDebouncer)};
_.E.render=function(){this.__debounceRender(this.__render);_.uJ()};
_.E.__render=function(){var y=this;if(this.__ensureTemplatized()){var W=this.items||[],V=this.__sortAndFilterItems(W),w=this.__calculateLimit(V.length);this.__updateInstances(W,w,V);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){y.__chunkingId=null;y.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Cj&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.E.__sortAndFilterItems=function(y){for(var W=this,V=Array(y.length),w=0;w<y.length;w++)V[w]=w;this.__filterFn&&(V=V.filter(function(t,F,I){return W.__filterFn(y[t],F,I)}));
this.__sortFn&&V.sort(function(t,F){return W.__sortFn(y[t],y[F])});
return V};
_.E.__calculateLimit=function(y){var W=y,V=this.__instances.length;if(this.initialCount){var w;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(W=Math.min(y,this.initialCount),this.__chunkCount=(w=Math.max(W-V,0))||1):(w=Math.min(Math.max(y-V,0),this.__chunkCount),W=Math.min(V+w,y));this.__shouldMeasureChunk=w===this.__chunkCount;this.__shouldContinueChunking=W<y;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return W};
_.E.__continueChunking=function(){if(this.__shouldMeasureChunk){var y=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/y*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.E.__updateInstances=function(y,W,V){var w=this.__itemsIdxToInstIdx={},t;for(t=0;t<W;t++){var F=this.__instances[t],I=V[t],P=y[I];w[I]=t;F?(F._setPendingProperty(this.as,P),F._setPendingProperty(this.indexAs,t),F._setPendingProperty(this.itemsIndexAs,I),F._flushProperties()):this.__insertInstance(P,t,I)}for(y=this.__instances.length-1;y>=t;y--)this.__detachAndRemoveInstance(y)};
_.E.__detachInstance=function(y){y=this.__instances[y];for(var W=(0,_.l4)(y.root),V=0;V<y.children.length;V++)W.appendChild(y.children[V]);return y};
_.E.__attachInstance=function(y,W){W.insertBefore(this.__instances[y].root,this)};
_.E.__detachAndRemoveInstance=function(y){this.__detachInstance(y);this.__instances.splice(y,1)};
_.E.__stampInstance=function(y,W,V){var w={};w[this.as]=y;w[this.indexAs]=W;w[this.itemsIndexAs]=V;return new this.__ctor(w)};
_.E.__insertInstance=function(y,W,V){y=this.__stampInstance(y,W,V);V=(V=this.__instances[W+1])?V.children[0]:this;(0,_.l4)((0,_.l4)(this).parentNode).insertBefore(y.root,V);return this.__instances[W]=y};
_.E._showHideChildren=function(y){for(var W=0;W<this.__instances.length;W++)this.__instances[W]._showHideChildren(y)};
_.E.__handleItemPath=function(y,W){var V=y.slice(6),w=V.indexOf(".");y=w<0?V:V.substring(0,w);if(y==parseInt(y,10)){V=w<0?"":V.substring(w+1);this.__handleObservedPaths(V);if(y=this.__instances[this.__itemsIdxToInstIdx[y]])y._setPendingPropertyOrPath(this.as+(V?"."+V:""),W,!1,!0),y._flushProperties();return!0}};
_.E.itemForElement=function(y){return(y=this.modelForElement(y))&&y[this.as]};
_.E.indexForElement=function(y){return(y=this.modelForElement(y))&&y[this.indexAs]};
_.E.modelForElement=function(y){return ITd(this.template,y)};
_.CM.Object.defineProperties(GA,{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:GA.prototype.__sortChanged},filter:{type:Function,observer:GA.prototype.__filterChanged},observe:{type:String,observer:GA.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Cj,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.*)"]}}});
GA.prototype._setRenderedItemCount=function(){};
customElements.define(GA.is,GA);Polymer.DomRepeat=GA;var YBr=function(y,W){var V=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=y;this.callback=W;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){V._schedule()};
this.connect();this._schedule()},B5f=function(y){var W=(0,_.l4)(y);
if(wy(y))return W.assignedNodes({flatten:!0});y=[];for(var V=0;V<W.childNodes.length;V++){var w=W.childNodes[V];wy(w)?y.push.apply(y,_.GC((0,_.l4)(w).assignedNodes({flatten:!0}))):y.push(w)}return y};
_.E=YBr.prototype;_.E.connect=function(){var y=this;wy(this._target)?this._listenSlots([this._target]):(0,_.l4)(this._target).children&&(this._listenSlots((0,_.l4)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(W){y._processMutations(W)}):(this._nativeChildrenObserver=new MutationObserver(function(W){y._processMutations(W)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.E.disconnect=function(){wy(this._target)?this._unlistenSlots([this._target]):(0,_.l4)(this._target).children&&(this._unlistenSlots((0,_.l4)(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};
_.E._schedule=function(){var y=this;this._scheduled||(this._scheduled=!0,GY.run(function(){return y.flush()}))};
_.E._processMutations=function(y){this._processSlotMutations(y);this.flush()};
_.E._processSlotMutations=function(y){if(y)for(var W=0;W<y.length;W++){var V=y[W];V.addedNodes&&this._listenSlots(V.addedNodes);V.removedNodes&&this._unlistenSlots(V.removedNodes)}};
_.E.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 y={target:this._target,addedNodes:[],removedNodes:[]},W=B5f(this._target),V=Nxn(W,this._effectiveNodes),w=0,t=void 0;w<V.length&&(t=V[w]);w++)for(var F=0,I=void 0;F<t.removed.length&&(I=t.removed[F]);F++)y.removedNodes.push(I);
w=0;for(t=void 0;w<V.length&&(t=V[w]);w++)for(F=t.index;F<t.index+t.addedCount;F++)y.addedNodes.push(W[F]);this._effectiveNodes=W;W=!1;if(y.addedNodes.length||y.removedNodes.length)W=!0,this.callback.call(this._target,y);return W};
_.E._listenSlots=function(y){for(var W=0;W<y.length;W++){var V=y[W];wy(V)&&V.addEventListener("slotchange",this._boundSchedule)}};
_.E._unlistenSlots=function(y){for(var W=0;W<y.length;W++){var V=y[W];wy(V)&&V.removeEventListener("slotchange",this._boundSchedule)}};var DG=Element.prototype,Jzs=DG.matches||DG.matchesSelector||DG.mozMatchesSelector||DG.msMatchesSelector||DG.oMatchesSelector||DG.webkitMatchesSelector,R5K=function(y,W){return Jzs.call(y,W)},t8=function(y){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(y);
this.node=y},H2m;
_.E=t8.prototype;_.E.observeNodes=function(y){return new YBr(this.node,y)};
_.E.unobserveNodes=function(y){y.disconnect()};
_.E.notifyObserver=function(){};
_.E.deepContains=function(y){if((0,_.l4)(this.node).contains(y))return!0;var W=y;for(y=y.ownerDocument;W&&W!==y&&W!==this.node;)W=(0,_.l4)(W).parentNode||(0,_.l4)(W).host;return W===this.node};
_.E.getOwnerRoot=function(){return(0,_.l4)(this.node).getRootNode()};
_.E.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.l4)(this.node).assignedNodes({flatten:!0}):[]};
_.E.getDestinationInsertionPoints=function(){for(var y=[],W=(0,_.l4)(this.node).assignedSlot;W;)y.push(W),W=(0,_.l4)(W).assignedSlot;return y};
_.E.importNode=function(y,W){return(0,_.l4)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(y,W)};
_.E.getEffectiveChildNodes=function(){return B5f(this.node)};
_.E.queryDistributedElements=function(y){for(var W=this.getEffectiveChildNodes(),V=[],w=0,t=W.length,F=void 0;w<t&&(F=W[w]);w++)F.nodeType===Node.ELEMENT_NODE&&R5K(F,y)&&V.push(F);return V};
_.CM.Object.defineProperties(t8.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var y=this.node;return y._activeElement!==void 0?y._activeElement:y.activeElement}}});
var lJ=function(y){this.event=y};
_.CM.Object.defineProperties(lJ.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 jBA=t8;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var $KJ=window.ShadyDOM.Wrapper,nCE=function(){return $KJ.apply(this,arguments)||this};
_.p(nCE,$KJ);Object.getOwnPropertyNames(t8.prototype).forEach(function(y){y!="activeElement"&&y!="constructor"&&(nCE.prototype[y]=t8.prototype[y])});
PPt(nCE.prototype,["classList"]);jBA=nCE;Object.defineProperties(lJ.prototype,{localTarget:{get:function(){var y=this.event.currentTarget;y=y&&_.Yy(y).getOwnerRoot();for(var W=this.path,V=0;V<W.length;V++){var w=W[V];if(_.Yy(w).getOwnerRoot()===y)return w}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else gev(),PPt(t8.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),CPz();H2m=jBA;_.Yy=function(y){y=y||document;if(y instanceof jBA)return y;if(y instanceof lJ)return y;var W=y.__domApi;W||(y instanceof Event?W=new lJ(y):W=new jBA(y),y.__domApi=W);return W};var XER=/:host\(:dir\((ltr|rtl)\)\)/g,aHQ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,G4f=/:dir\((?:ltr|rtl)\)/,rzE=!(!window.ShadyDOM||!window.ShadyDOM.inUse),E0=[],xg=null,Fn="",b2A=d9(function(y){rzE||xg||(Fn=document.documentElement.getAttribute("dir"),xg=new MutationObserver(OFR),xg.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var W=VEJ(y);y=function(){var V=W.call(this)||this;V.__autoDirOptOut=!1;return V};
_.p(y,W);y._processStyleText=function(V,w){V=W._processStyleText.call(this,V,w);!rzE&&G4f.test(V)&&(V=this._replaceDirInCssText(V),this.__activateDir=!0);return V};
y._replaceDirInCssText=function(V){V=V.replace(XER,':host([dir="$1"])');return V=V.replace(aHQ,':host([dir="$2"]) $1')};
y.prototype.ready=function(){W.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
y.prototype.connectedCallback=function(){W.prototype.connectedCallback&&W.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(xg&&xg.takeRecords().length&&OFR(),E0.push(this),this.__autoDirOptOut||this.setAttribute("dir",Fn))};
y.prototype.disconnectedCallback=function(){W.prototype.disconnectedCallback&&W.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var V=E0.indexOf(this);V>-1&&E0.splice(V,1)}};
y.__activateDir=!1;return y});var QBm=function(y){for(;y;){var W=Object.getOwnPropertyDescriptor(y,"observedAttributes");if(W)return W.get;y=Object.getPrototypeOf(y.prototype).constructor}return function(){return[]}};
d9(function(y){var W=cQ(y),V=QBm(W);y=function(){return W.call(this)||this};
_.p(y,W);y.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:W.prototype._initializeProperties.call(this)};
y.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
y.prototype._canApplyPropertyDefault=function(w){return W.prototype._canApplyPropertyDefault.call(this,w)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(w))};
y.prototype.attributeChangedCallback=function(w,t,F,I){w=="disable-upgrade"?this.__isUpgradeDisabled&&F==null&&(W.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.l4)(this).isConnected&&W.prototype.connectedCallback.call(this)):W.prototype.attributeChangedCallback.call(this,w,t,F,I)};
y.prototype.connectedCallback=function(){this.__isUpgradeDisabled||W.prototype.connectedCallback.call(this)};
y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||W.prototype.disconnectedCallback.call(this)};
_.CM.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V.call(this).concat("disable-upgrade")}}});
return y});var NB=!1,dWb=[],I2=[];var elj=window.ShadyDOM,hlv=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",KUR):document.readyState==="interactive"||document.readyState==="complete"?KUR():window.addEventListener("DOMContentLoaded",KUR);var fTd=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=""},pXu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,iF4=/@import[^;]*;/gim,u_d=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,SXz=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,DWG=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,lTj=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,qXL=/^@[^\s]*keyframes/,
M64=/\s+/g;var xWa={};var Ad4=Promise.resolve();var Z2E=new Set;var yx6=/;\s*/m,WSs=/^\s*(initial)|(inherit)\s*$/,VW2=/\s*!important/,w9K=function(){this._map={}};
w9K.prototype.set=function(y,W){y=y.trim();this._map[y]={properties:W,dependants:{}}};
w9K.prototype.get=function(y){y=y.trim();return this._map[y]||null};
var tWE=null,kg=function(){this._measureElement=this._currentElement=null;this._map=new w9K};
_.E=kg.prototype;_.E.detectMixin=function(y){y=oCJ.test(y)||h5K.test(y);oCJ.lastIndex=0;h5K.lastIndex=0;return y};
_.E.transformTemplate=function(y,W){if(y._gatheredStyle===void 0){var V=[];for(var w=y.content.querySelectorAll("style"),t=0;t<w.length;t++){var F=w[t];if(F.hasAttribute("shady-unscoped")){if(!cDz){var I=F.textContent;if(!Z2E.has(I)){Z2E.add(I);var P=document.createElement("style");P.setAttribute("shady-unscoped","");P.textContent=I;document.head.appendChild(P)}F.parentNode.removeChild(F)}}else V.push(F.textContent),F.parentNode.removeChild(F)}(V=V.join("").trim())?(w=document.createElement("style"),
w.textContent=V,y.content.insertBefore(w,y.content.firstChild),V=w):V=null;y._gatheredStyle=V}return(y=y._gatheredStyle)?this.JSC$11139_transformStyle(y,W):null};
_.E.JSC$11139_transformStyle=function(y,W){W=W===void 0?"":W;var V=Rlv(y);this.transformRules(V,W);y.textContent=JdG(V);return V};
_.E.transformCustomStyle=function(y){var W=this,V=Rlv(y);$Wt(V,function(w){w.selector===":root"&&(w.selector="html");W.transformRule(w)});
y.textContent=JdG(V);return V};
_.E.transformRules=function(y,W){var V=this;this._currentElement=W;$Wt(y,function(w){V.transformRule(w)});
this._currentElement=null};
_.E.transformRule=function(y){y.cssText=FSJ(this,y.parsedCssText,y);y.selector===":root"&&(y.selector=":host > *")};
var FSJ=function(y,W,V){W=W.replace(h5K,function(w,t,F,I){return y._produceCssProperties(w,t,F,I,V)});
return y._consumeCssProperties(W,V)};
_.E=kg.prototype;_.E._getInitialValueForProperty=function(y){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(y)};
_.E._fallbacksFromPreviousRules=function(y){for(var W=this,V=y;V.parent;)V=V.parent;var w={},t=!1;$Wt(V,function(F){(t=t||F===y)||F.selector===y.selector&&Object.assign(w,W._cssTextToMap(F.parsedCssText))});
return w};
_.E._consumeCssProperties=function(y,W){for(var V;V=oCJ.exec(y);){var w=V[0],t=V[1];V=V.index;var F=V+w.indexOf("@apply"),I=V+w.length;w=y.slice(0,F);y=y.slice(I);F=W?this._fallbacksFromPreviousRules(W):{};Object.assign(F,this._cssTextToMap(w));t=this._atApplyToCssProperties(t,F);y=w+t+y;oCJ.lastIndex=V+t.length}return y};
_.E._atApplyToCssProperties=function(y,W){y=y.replace(yx6,"");var V=[],w=this._map.get(y);w||(this._map.set(y,{}),w=this._map.get(y));if(w){this._currentElement&&(w.dependants[this._currentElement]=!0);var t,F=w.properties;for(t in F){var I=W&&W[t];w=[t,": var(",y,"_-_",t];I&&w.push(",",I.replace(VW2,""));w.push(")");VW2.test(F[t])&&w.push(" !important");V.push(w.join(""))}}return V.join("; ")};
_.E._replaceInitialOrInherit=function(y,W){var V=WSs.exec(W);V&&(W=V[1]?this._getInitialValueForProperty(y):"apply-shim-inherit");return W};
_.E._cssTextToMap=function(y,W){W=W===void 0?!1:W;y=y.split(";");for(var V,w,t={},F=0;F<y.length;F++)if(V=y[F])w=V.split(":"),w.length>1&&(V=w[0].trim(),w=w.slice(1).join(":"),W&&(w=this._replaceInitialOrInherit(V,w)),t[V]=w);return t};
_.E._invalidateMixinEntry=function(y){if(tWE)for(var W in y.dependants)W!==this._currentElement&&tWE(W)};
_.E._produceCssProperties=function(y,W,V,w,t){var F=this;V&&neL(V,function(f,U){U&&F._map.get(U)&&(w="@apply "+U+";")});
if(!w)return y;var I=this._consumeCssProperties(""+w,t);t=y.slice(0,y.indexOf("--"));var P=I=this._cssTextToMap(I,!0),C=this._map.get(W),d=C&&C.properties;d?P=Object.assign(Object.create(d),I):this._map.set(W,P);var L=[],z,c=!1;for(z in P){var K=I[z];K===void 0&&(K="initial");!d||z in d||(c=!0);L.push(W+"_-_"+z+": "+K)}c&&this._invalidateMixinEntry(C);C&&(C.properties=P);V&&(t=y+";"+t);return t+L.join("; ")+";"};
kg.prototype.detectMixin=kg.prototype.detectMixin;kg.prototype.transformStyle=kg.prototype.JSC$11139_transformStyle;kg.prototype.transformCustomStyle=kg.prototype.transformCustomStyle;kg.prototype.transformRules=kg.prototype.transformRules;kg.prototype.transformRule=kg.prototype.transformRule;kg.prototype.transformTemplate=kg.prototype.transformTemplate;kg.prototype._separator="_-_";Object.defineProperty(kg.prototype,"invalidCallback",{get:function(){return tWE},
set:function(y){tWE=y}});var se=new kg,E1K=function(){this.customStyleInterface=null;se.invalidCallback=kWt},Aq=function(y){!y.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(y.customStyleInterface=window.ShadyCSS.CustomStyleInterface,y.customStyleInterface.transformCallback=function(W){se.transformCustomStyle(W)},y.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){y.customStyleInterface.enqueued&&y.flushCustomStyles()})})};
_.E=E1K.prototype;_.E.prepareTemplate=function(y,W){Aq(this);HFy(y)===""&&(xWa[W]=y,W=se.transformTemplate(y,W),y._styleAst=W)};
_.E.flushCustomStyles=function(){Aq(this);if(this.customStyleInterface){var y=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var W=0;W<y.length;W++){var V=this.customStyleInterface.getStyleForCustomStyle(y[W]);V&&se.transformCustomStyle(V)}this.customStyleInterface.enqueued=!1}}};
_.E.styleSubtree=function(y,W){Aq(this);W&&Pwn(y,W);if(y.shadowRoot)for(this.styleElement(y),y=y.shadowRoot.children||y.shadowRoot.childNodes,W=0;W<y.length;W++)this.styleSubtree(y[W]);else for(y=y.children||y.childNodes,W=0;W<y.length;W++)this.styleSubtree(y[W])};
_.E.styleElement=function(y){Aq(this);var W=y.localName,V;W?W.indexOf("-")>-1?V=W:V=y.getAttribute&&y.getAttribute("is")||"":V=y.is;W=xWa[V];if(!(W&&HFy(W)!==""||!W||sXz(W))){if(sXz(W)||W._applyShimValidatingVersion!==W._applyShimNextVersion)this.prepareTemplate(W,V),YXb(W);if(y=y.shadowRoot)if(y=y.querySelector("style"))y.__cssRules=W._styleAst,y.textContent=JdG(W._styleAst)}};
_.E.styleDocument=function(y){Aq(this);this.styleSubtree(document.body,y)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Yg=new E1K,NPJ=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(y,W){Yg.flushCustomStyles();Yg.prepareTemplate(y,W)},
prepareTemplateStyles:function(y,W,V){window.ShadyCSS.prepareTemplate(y,W,V)},
prepareTemplateDom:function(){},
styleSubtree:function(y,W){Yg.flushCustomStyles();Yg.styleSubtree(y,W)},
styleElement:function(y){Yg.flushCustomStyles();Yg.styleElement(y)},
styleDocument:function(y){Yg.flushCustomStyles();Yg.styleDocument(y)},
getComputedStyleValue:function(y,W){return Cw4(y,W)},
flushCustomStyles:function(){Yg.flushCustomStyles()},
nativeCss:BKR,nativeShadow:cDz,cssBuild:Pf,disableRuntime:i26};NPJ&&(window.ShadyCSS.CustomStyleInterface=NPJ)}window.ShadyCSS.ApplyShim=se;var IPJ;IPJ=window.ShadyCSS;_.BQ=d9(function(y){y=SBJ(cQ(y));var W=O2q?y:b2A(y),V=QBm(W),w={x:"pan-x",y:"pan-y",none:"none",all:"auto"};y=function(){return W.call(this)||this};
_.p(y,W);y.prototype.created=function(){};
y.prototype.__attributeReaction=function(t,F,I){(this.__dataAttributes&&this.__dataAttributes[t]||t==="disable-upgrade")&&this.attributeChangedCallback(t,F,I,null)};
y.prototype.setAttribute=function(t,F){if(Bws&&!this._legacyForceObservedAttributes){var I=this.getAttribute(t);W.prototype.setAttribute.call(this,t,F);this.__attributeReaction(t,I,String(F))}else W.prototype.setAttribute.call(this,t,F)};
y.prototype.removeAttribute=function(t){if(Bws&&!this._legacyForceObservedAttributes){var F=this.getAttribute(t);W.prototype.removeAttribute.call(this,t);this.__attributeReaction(t,F,null)}else W.prototype.removeAttribute.call(this,t)};
y.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
y.prototype._canApplyPropertyDefault=function(t){return W.prototype._canApplyPropertyDefault.call(this,t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))};
y.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(W.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
y.prototype.attached=function(){};
y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(W.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
y.prototype.detached=function(){};
y.prototype.attributeChangedCallback=function(t,F,I,P){F!==I&&(t=="disable-upgrade"?this.__isUpgradeDisabled&&I==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.l4)(this).isConnected&&this.connectedCallback()):(W.prototype.attributeChangedCallback.call(this,t,F,I,P),this.attributeChanged(t,F,I)))};
y.prototype.attributeChanged=function(){};
y.prototype._initializeProperties=function(){if(b4&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var t=Object.getPrototypeOf(this);t.hasOwnProperty("__hasRegisterFinished")||(this._registered(),t.__hasRegisterFinished=!0);W.prototype._initializeProperties.call(this);this.root=this;this.created();Bws&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
y.prototype._takeAttributes=function(){for(var t=this.attributes,F=0,I=t.length;F<I;F++){var P=t[F];this.__attributeReaction(P.name,null,P.value)}};
y.prototype._registered=function(){};
y.prototype.ready=function(){this._ensureAttributes();W.prototype.ready.call(this)};
y.prototype._ensureAttributes=function(){};
y.prototype._applyListeners=function(){};
y.prototype.serialize=function(t){return this._serializeValue(t)};
y.prototype.deserialize=function(t,F){return this._deserializeValue(t,F)};
y.prototype.reflectPropertyToAttribute=function(t,F,I){this._propertyToAttribute(t,F,I)};
y.prototype.serializeValueToAttribute=function(t,F,I){this._valueToNodeAttribute(I||this,t,F)};
y.prototype.extend=function(t,F){if(!t||!F)return t||F;for(var I=Object.getOwnPropertyNames(F),P=0,C=void 0;P<I.length&&(C=I[P]);P++){var d=Object.getOwnPropertyDescriptor(F,C);d&&Object.defineProperty(t,C,d)}return t};
y.prototype.mixin=function(t,F){for(var I in F)t[I]=F[I];return t};
y.prototype.chainObject=function(t,F){t&&F&&t!==F&&(t.__proto__=F);return t};
y.prototype.instanceTemplate=function(t){t=this.constructor._contentForTemplate(t);return document.importNode(t,!0)};
y.prototype.fire=function(t,F,I){I=I||{};F=F===null||F===void 0?{}:F;t=new Event(t,{bubbles:I.bubbles===void 0?!0:I.bubbles,cancelable:!!I.cancelable,composed:I.composed===void 0?!0:I.composed});t.detail=F;(0,_.l4)(I.node||this).dispatchEvent(t);return t};
y.prototype.listen=function(t,F,I){t=t||this;var P=this.__boundListeners||(this.__boundListeners=new WeakMap),C=P.get(t);C||(C={},P.set(t,C));P=F+I;C[P]||(C[P]=this._addMethodEventListenerToNode(t,F,I,this))};
y.prototype.unlisten=function(t,F,I){t=t||this;var P=this.__boundListeners&&this.__boundListeners.get(t);I=F+I;var C=P&&P[I];C&&(this._removeEventListenerFromNode(t,F,C),P[I]=null)};
y.prototype.setScrollDirection=function(t,F){_.a0(F||this,w[t]||"auto")};
y.prototype.$$=function(t){return this.root.querySelector(t)};
y.prototype.distributeContent=function(){var t=_.Yy(this);window.ShadyDOM&&t.shadowRoot&&ShadyDOM.flush()};
y.prototype.getEffectiveChildNodes=function(){return _.Yy(this).getEffectiveChildNodes()};
y.prototype.queryDistributedElements=function(t){return _.Yy(this).queryDistributedElements(t)};
y.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
y.prototype.getEffectiveTextContent=function(){for(var t=this.getEffectiveChildNodes(),F=[],I=0,P;P=t[I];I++)P.nodeType!==Node.COMMENT_NODE&&F.push(P.textContent);return F.join("")};
y.prototype.queryEffectiveChildren=function(t){return(t=this.queryDistributedElements(t))&&t[0]};
y.prototype.queryAllEffectiveChildren=function(t){return this.queryDistributedElements(t)};
y.prototype.getContentChildNodes=function(t){return(t=this.root.querySelector(t||"slot"))?_.Yy(t).getDistributedNodes():[]};
y.prototype.getContentChildren=function(t){return this.getContentChildNodes(t).filter(function(F){return F.nodeType===Node.ELEMENT_NODE})};
y.prototype.isLightDescendant=function(t){return this!==t&&(0,_.l4)(this).contains(t)&&(0,_.l4)(this).getRootNode()===(0,_.l4)(t).getRootNode()};
y.prototype.isLocalDescendant=function(t){return this.root===(0,_.l4)(t).getRootNode()};
y.prototype.scopeSubtree=function(t,F){return oed(t,F===void 0?!1:F)};
y.prototype.getComputedStyleValue=function(t){return IPJ.getComputedStyleValue(this,t)};
y.prototype.debounce=function(t,F,I){this._debouncers=this._debouncers||{};return this._debouncers[t]=_.Tn(this._debouncers[t],I>0?_.vQ.after(I):GY,F.bind(this))};
y.prototype.isDebouncerActive=function(t){this._debouncers=this._debouncers||{};t=this._debouncers[t];return!(!t||!t.isActive())};
y.prototype.flushDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.flush()};
y.prototype.cancelDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.cancel()};
y.prototype.async=function(t,F){return F>0?_.vQ.run(t.bind(this),F):~GY.run(t.bind(this))};
y.prototype.cancelAsync=function(t){t<0?GY.cancel(~t):_.vQ.cancel(t)};
y.prototype.create=function(t,F){t=document.createElement(t);if(F)if(t.setProperties)t.setProperties(F);else for(var I in F)t[I]=F[I];return t};
y.prototype.elementMatches=function(t,F){return R5K(F||this,t)};
y.prototype.toggleAttribute=function(t,F){var I=this;arguments.length===3&&(I=arguments[2]);arguments.length==1&&(F=!I.hasAttribute(t));if(F)return(0,_.l4)(I).setAttribute(t,""),!0;(0,_.l4)(I).removeAttribute(t);return!1};
y.prototype.toggleClass=function(t,F,I){I=I||this;arguments.length==1&&(F=!I.classList.contains(t));F?I.classList.add(t):I.classList.remove(t)};
y.prototype.transform=function(t,F){F=F||this;F.style.webkitTransform=t;F.style.transform=t};
y.prototype.translate3d=function(t,F,I,P){this.transform("translate3d("+t+","+F+","+I+")",P||this)};
y.prototype.arrayDelete=function(t,F){if(Array.isArray(t)){if(F=t.indexOf(F),F>=0)return t.splice(F,1)}else if(F=u4(this,t).indexOf(F),F>=0)return this.splice(t,F,1);return null};
y.prototype._logger=function(t,F){Array.isArray(F)&&F.length===1&&Array.isArray(F[0])&&(F=F[0]);switch(t){case "log":case "warn":case "error":console[t].apply(console,_.GC(F))}};
y.prototype._log=function(){this._logger("log",_.Ve.apply(0,arguments))};
y.prototype._warn=function(){this._logger("warn",_.Ve.apply(0,arguments))};
y.prototype._error=function(){this._logger("error",_.Ve.apply(0,arguments))};
y.prototype._logf=function(t){return["[%s::%s]",this.is,t].concat(_.GC(_.Ve.apply(1,arguments)))};
_.CM.Object.defineProperties(y.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var t=(0,_.l4)(this).getRootNode();return t instanceof DocumentFragment?t.host:t}}});
_.CM.Object.defineProperties(y,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Bws&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],h7P(this.prototype)),this.__observedAttributes):V.call(this).concat("disable-upgrade")}}});
y.prototype.is="";return y});Polymer.FlattenedNodesObserver=YBr;Polymer.DomApi=H2m;Polymer.EventApi=lJ;Polymer.dom=_.Yy;Polymer.dom.matchesSelector=R5K;Polymer.dom.flush=_.uJ;Polymer.dom.addDebouncer=_.mu;Polymer.DirMixin=b2A;Polymer.RenderStatus={beforeNextRender:_.cdn,afterNextRender:_.gy,flush:function(){for(;dWb.length||I2.length;)vea(dWb),vea(I2);NB=!1}};Polymer.LegacyElementMixin=_.BQ;var g1I;g1I=q2._mutablePropertyChange;var PNQ={properties:{mutableData:Boolean},_shouldPropertyChange:function(y,W,V){return g1I(this,y,W,V,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(y,W,V){return g1I(this,y,W,V,!0)}};
Polymer.OptionalMutableDataBehavior=PNQ;var XXv={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},QXL={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},bFj=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},QXL),CN2=(0,_.BQ)(HTMLElement),Akb=function(y,W){y||console.warn("Polymer.Class requires `info` argument");W=W?W(CN2):CN2;W=ZFd(y,W,y.behaviors);W.is=W.prototype.is=
y.is;return W};Polymer.Class=Akb;Polymer.mixinBehaviors=function(y,W){return ZFd({},(0,_.BQ)(W),y)};
Polymer.GenerateClassFromInfo=ZFd;_.a6=function(y){var W=typeof y==="function"?y:_.a6.Class(y);y._legacyForceObservedAttributes&&(W.prototype._legacyForceObservedAttributes=y._legacyForceObservedAttributes);customElements.define(W.is,W);return W};
_.a6.Class=Akb;Polymer._polymerFn=_.a6;var OOq=window.onLegacyPolymerFunctionDefinedCallback;OOq&&OOq();var BXd={templatize:function(y,W){this._templatizerTemplate=y;this.ctor=yV(y,this,{mutableData:!!W,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(y){return new this.ctor(y)},
modelForElement:function(y){return ITd(this._templatizerTemplate,y)}};Polymer.Templatizer=BXd;_.Jq=(0,_.BQ)(HTMLElement).prototype;Polymer.Base=_.Jq;var Wqn=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.O0=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(_.O0,PolymerFakeBaseClass);var vf=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(vf,PolymerFakeBaseClass);var Vdd=Symbol("Wd"),PQu=[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 v1f=v1f||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},doR;(function(y){function W(H,a,b){var Fv=r.get(H);if(!Fv){if(!b)return;Fv=new x;r.set(H,Fv)}H=Fv.get(a);if(!H){if(!b)return;H=new x;Fv.set(a,H)}return H}
function V(H,a,b){if(w(H,a,b))return!0;a=c(a);return a!==null?V(H,a,b):!1}
function w(H,a,b){a=W(a,b,!1);return a===void 0?!1:!!a.has(H)}
function t(H,a,b){if(w(H,a,b))return F(H,a,b);a=c(a);if(a!==null)return t(H,a,b)}
function F(H,a,b){a=W(a,b,!1);if(a!==void 0)return a.get(H)}
function I(H,a){var b=P(H,a);H=c(H);if(H===null)return b;var Fv=I(H,a);if(Fv.length<=0)return b;if(b.length<=0)return Fv;a=new B;H=[];b=_.N(b);for(var Py=b.next();!Py.done;Py=b.next())Py=Py.value,a.has(Py)||(a.add(Py),H.push(Py));b=_.N(Fv);for(Fv=b.next();!Fv.done;Fv=b.next())Fv=Fv.value,a.has(Fv)||(a.add(Fv),H.push(Fv));return H}
function P(H,a){H=W(H,a,!1);var b=[];H&&H.forEach(function(Fv,Py){return b.push(Py)});
return b}
function C(H){return H===void 0}
function d(H){return typeof H==="object"?H!==null:typeof H==="function"}
function L(H){return typeof H==="function"}
function z(H){return typeof H==="symbol"?H:String(H)}
function c(H){var a=Object.getPrototypeOf(H);if(typeof H!=="function"||H===l||a!==l)return a;var b=Object.getPrototypeOf(H.prototype);if(b==null||b===Object.prototype)return a;b=b.constructor;return typeof b!=="function"||b===H?a:b}
function K(){function H(){this._keys=[];this._values=[];this._cache=a}
var a={};H.prototype={get size(){return this._keys.length},has:function(b){return b===this._cache?!0:this._find(b)>=0?(this._cache=b,!0):!1},
get:function(b){var Fv=this._find(b);if(Fv>=0)return this._cache=b,this._values[Fv]},
set:function(b,Fv){this.delete(b);this._keys.push(b);this._values.push(Fv);this._cache=b;return this},
delete:function(b){b=this._find(b);return b>=0?(this._keys.splice(b,1),this._values.splice(b,1),this._cache=a,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=a},
forEach:function(b){for(var Fv=this.size,Py=0;Py<Fv;++Py){var du=this._keys[Py],mL=this._values[Py];this._cache=du;b.call(this,mL,du,this)}},
_find:function(b){for(var Fv=this._keys,Py=Fv.length,du=0;du<Py;++du)if(Fv[du]===b)return du;return-1}};
return H}
function f(){function H(){this._map=new x}
H.prototype={get size(){return this._map.length},has:function(a){return this._map.has(a)},
add:function(a){this._map.set(a,a);return this},
delete:function(a){return this._map.delete(a)},
clear:function(){this._map.clear()},
forEach:function(a,b){this._map.forEach(a,b)}};
return H}
function U(){function H(){this._key=b()}
function a(hv,$P){for(var sz=0;sz<$P;++sz)hv[sz]=Math.random()*255|0}
function b(){do{if(Py)var hv=Py.randomBytes(16);else typeof Uint8Array==="function"?(hv=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(hv):a(hv,16)):(hv=Array(16),a(hv,16));hv[6]=hv[6]&79|64;hv[8]=hv[8]&191|128;for(var $P="",sz=0;sz<16;++sz){var Wz=hv[sz];if(sz===4||sz===6||sz===8)$P+="-";Wz<16&&($P+="0");$P+=Wz.toString(16).toLowerCase()}hv="@@WeakMap@@"+$P}while(du.call(mL,hv));mL[hv]=!0;return hv}
function Fv(hv,$P){if(!du.call(hv,un)){if(!$P)return;Object.defineProperty(hv,un,{value:Object.create(null)})}return hv[un]}
var Py=typeof global!=="undefined"&&typeof v1f==="object"&&typeof require==="function"&&require("crypto"),du=Object.prototype.hasOwnProperty,mL={},un=b();H.prototype={has:function(hv){return(hv=Fv(hv,!1))?this._key in hv:!1},
get:function(hv){if(hv=Fv(hv,!1))return hv[this._key]},
set:function(hv,$P){Fv(hv,!0)[this._key]=$P;return this},
delete:function(hv){return(hv=Fv(hv,!1))&&this._key in hv?delete hv[this._key]:!1},
clear:function(){this._key=b()}};
return H}
var l=Object.getPrototypeOf(Function),x=typeof Map==="function"?Map:K(),B=typeof Set==="function"?Set:f(),r=new (typeof WeakMap==="function"?WeakMap:U());y.decorate=function(H,a,b,Fv){if(C(Fv)){if(C(b)){if(!Array.isArray(H))throw new TypeError;if(!L(a))throw new TypeError;for(b=H.length-1;b>=0;--b)if(Fv=(0,H[b])(a),!C(Fv)){if(!L(Fv))throw new TypeError;a=Fv}return a}if(!Array.isArray(H))throw new TypeError;if(!d(a))throw new TypeError;b=z(b);for(Fv=H.length-1;Fv>=0;--Fv)(0,H[Fv])(a,b)}else{if(Array.isArray(H))if(d(a)){if(C(b))throw new TypeError;
if(!d(Fv))throw new TypeError;}else throw new TypeError;else throw new TypeError;b=z(b);for(var Py=H.length-1;Py>=0;--Py){var du=(0,H[Py])(a,b,Fv);if(!C(du)){if(!d(du))throw new TypeError;Fv=du}}return Fv}};
y.metadata=function(H,a){return function(b,Fv){if(C(Fv)){if(!L(b))throw new TypeError;W(b,void 0,!0).set(H,a)}else{if(!d(b))throw new TypeError;Fv=z(Fv);W(b,Fv,!0).set(H,a)}}};
y.defineMetadata=function(H,a){var b;if(d(a))C(b)||(b=z(b));else throw new TypeError;W(a,b,!0).set("parameters",H)};
y.hasMetadata=function(H,a,b){if(d(a))C(b)||(b=z(b));else throw new TypeError;return V(H,a,b)};
y.hasOwnMetadata=function(H,a,b){if(d(a))C(b)||(b=z(b));else throw new TypeError;return w(H,a,b)};
y.getMetadata=function(H,a,b){if(d(a))C(b)||(b=z(b));else throw new TypeError;return t(H,a,b)};
y.getOwnMetadata=function(H,a,b){if(d(a))C(b)||(b=z(b));else throw new TypeError;return F(H,a,b)};
y.getMetadataKeys=function(H,a){if(d(H))C(a)||(a=z(a));else throw new TypeError;return I(H,a)};
y.getOwnMetadataKeys=function(H,a){if(d(H))C(a)||(a=z(a));else throw new TypeError;return P(H,a)};
y.deleteMetadata=function(H,a,b){if(d(a))C(b)||(b=z(b));else throw new TypeError;var Fv=W(a,b,!1);if(!C(Fv)){if(!Fv.delete(H))return!1;if(Fv.size>0)return!0;H=r.get(a);H.delete(b);if(H.size>0)return!0;r.delete(a);return!0}};
(function(H){if(typeof H.Reflect!=="undefined"){if(H.Reflect!==y)for(var a in y)H.Reflect[a]=y[a]}else H.Reflect=y})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(doR||(doR={}));var LSI=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
LSI.prototype.addEventListener=function(y,W,V){this.target.addEventListener(y,W,V)};
LSI.prototype.removeEventListener=function(y,W,V){this.target.removeEventListener(y,W,V)};
LSI.prototype.dispatchEvent=function(y){if(this.onabort&&y.type==="abort")this.onabort(y);return this.target.dispatchEvent(y)};var zdQ=function(){this.signal=new LSI};
zdQ.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var y=document.createEvent("Event");y.initEvent("abort",!1,!1);this.signal.dispatchEvent(y)}};var pSL=self;var cxi=[0,_.g4,_.Cl,_.g4];var edf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(edf,_.fu);var hdI=_.Sh(edf,[0,_.W0t,_.Ov,cxi,_.Cl,_.z7]);_.pF(_.dy,_.Ru);_.E=_.dy.prototype;_.E.start=function(){this.stop();this.usingListeners_=!1;var y=o1K(this),W=KSI(this);y&&!W&&this.JSC$11188_win_.mozRequestAnimationFrame?(this.JSC$11188_id_=_.XZ(this.JSC$11188_win_,"MozBeforePaint",this.callback_),this.JSC$11188_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11188_id_=y&&W?y.call(this.JSC$11188_win_,this.callback_):this.JSC$11188_win_.setTimeout(Oq2(this.callback_),20)};
_.E.stop=function(){if(this.isActive()){var y=o1K(this),W=KSI(this);y&&!W&&this.JSC$11188_win_.mozRequestAnimationFrame?$c(this.JSC$11188_id_):y&&W?W.call(this.JSC$11188_win_,this.JSC$11188_id_):this.JSC$11188_win_.clearTimeout(this.JSC$11188_id_)}this.JSC$11188_id_=null};
_.E.fire=function(){this.stop();this.JSC$11190_doAction_()};
_.E.isActive=function(){return this.JSC$11188_id_!=null};
_.E.JSC$11190_doAction_=function(){this.usingListeners_&&this.JSC$11188_id_&&$c(this.JSC$11188_id_);this.JSC$11188_id_=null;this.JSC$11188_listener_.call(this.handler_,_.KF())};
_.E.disposeInternal=function(){this.stop();_.dy.superClass_.disposeInternal.call(this)};
var o1K=function(y){y=y.JSC$11188_win_;return y.requestAnimationFrame||y.webkitRequestAnimationFrame||y.mozRequestAnimationFrame||y.oRequestAnimationFrame||y.msRequestAnimationFrame||null},KSI=function(y){y=y.JSC$11188_win_;
return y.cancelAnimationFrame||y.cancelRequestAnimationFrame||y.webkitCancelRequestAnimationFrame||y.mozCancelRequestAnimationFrame||y.oCancelRequestAnimationFrame||y.msCancelRequestAnimationFrame||null};_.d7=function(y,W,V){_.Ru.call(this);this.JSC$11191_listener_=V!=null?y.bind(V):y;this.JSC$11191_interval_=W;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11191_timer_=null};
_.p(_.d7,_.Ru);_.E=_.d7.prototype;_.E.fire=function(y){this.args_=arguments;this.JSC$11191_timer_||this.pauseCount_?this.shouldFire_=!0:p92(this)};
_.E.stop=function(){this.JSC$11191_timer_&&(_.Vj.clearTimeout(this.JSC$11191_timer_),this.JSC$11191_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.E.pause=function(){this.pauseCount_++};
_.E.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11191_timer_||(this.shouldFire_=!1,p92(this))};
_.E.disposeInternal=function(){_.Ru.prototype.disposeInternal.call(this);this.stop()};
var p92=function(y){y.JSC$11191_timer_=nw(function(){y.JSC$11191_timer_=null;y.shouldFire_&&!y.pauseCount_&&(y.shouldFire_=!1,p92(y))},y.JSC$11191_interval_);
var W=y.args_;y.args_=null;y.JSC$11191_listener_.apply(null,W)};var iOI=function(y,W){this.childIterator_=y[_.Vj.Symbol.iterator]();this.mapFn_=W};
iOI.prototype[Symbol.iterator]=function(){return this};
iOI.prototype.next=function(){var y=this.childIterator_.next();return{value:y.done?void 0:this.mapFn_.call(void 0,y.value),done:y.done}};
var fPi=function(y,W){return new iOI(y,W)};var TPQ={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 wtG=function(y){var W=mos(y);if(!W)throw Error("$d`"+y);return W},mos=function(y){var W={};
y=String(y);var V=y.charAt(0)=="#"?y:"#"+y;if(MWE.test(V))return W.hex=bRz(V),W.type="hex",W;V=N_v(y);return V.length?(W.hex=BZv(V[0],V[1],V[2]),W.type="rgb",W):TPQ&&(y=TPQ[y.toLowerCase()])?(W.hex=y,W.type="named",W):null},qTf=/#(.)(.)(.)/,bRz=function(y){if(!MWE.test(y))throw Error("be`"+y);
y.length==4&&(y=y.replace(qTf,"#$1$1$2$2$3$3"));return y.toLowerCase()},toy=function(y){y=bRz(y);
y=parseInt(y.slice(1),16);return[y>>16,y>>8&255,y&255]},BZv=function(y,W,V){y=Number(y);
W=Number(W);V=Number(V);if(y!=(y&255)||W!=(W&255)||V!=(V&255))throw Error("ce`"+y+"`"+W+"`"+V);W=y<<16|W<<8|V;return y<16?"#"+(16777216|W).toString(16).slice(1):"#"+W.toString(16)},MWE=/^#(?:[0-9a-f]{3}){1,2}$/i,Uor=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,N_v=function(y){var W=y.match(Uor);
if(W){y=Number(W[1]);var V=Number(W[2]);W=Number(W[3]);if(y>=0&&y<=255&&V>=0&&V<=255&&W>=0&&W<=255)return[y,V,W]}return[]};var u4R={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},JO=u4R;JO=u4R;var h2L,STm,DoJ;h2L=function(y,W){switch(W){case 1:return y%4!=0||y%100==0&&y%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
STm=function(y,W,V,w,t){y=new Date(y,W,V);t=t||0;return y.valueOf()+(((w!==void 0?w:3)-t+7)%7-((y.getDay()+6)%7-t+7)%7)*864E5};
_.R4=function(y,W,V){typeof y==="number"?(this.date=DoJ(y,W||0,V||1),lPs(this,V||1)):_.VK(y)?(this.date=DoJ(y.getFullYear(),y.getMonth(),y.getDate()),lPs(this,y.getDate())):(this.date=new Date(_.KF()),y=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),lPs(this,y))};
DoJ=function(y,W,V){W=new Date(y,W,V);y>=0&&y<100&&W.setFullYear(W.getFullYear()-1900);return W};
_.E=_.R4.prototype;_.E.firstDayOfWeek_=JO.FIRSTDAYOFWEEK;_.E.firstWeekCutOffDay_=JO.FIRSTWEEKCUTOFFDAY;_.E.clone=function(){var y=new _.R4(this.date);y.firstDayOfWeek_=this.firstDayOfWeek_;y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return y};
_.E.getFullYear=function(){return this.date.getFullYear()};
_.E.getYear=function(){return this.getFullYear()};
_.E.getMonth=function(){return this.date.getMonth()};
_.E.getDate=function(){return this.date.getDate()};
_.E.getTime=function(){return this.date.getTime()};
_.E.getDay=function(){return this.date.getDay()};
_.E.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.E.getUTCMonth=function(){return this.date.getUTCMonth()};
_.E.getUTCDate=function(){return this.date.getUTCDate()};
_.E.getUTCDay=function(){return this.date.getDay()};
_.E.getUTCHours=function(){return this.date.getUTCHours()};
_.E.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.E.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.E.set=function(y){this.date=new Date(y.getFullYear(),y.getMonth(),y.getDate())};
_.E.setFullYear=function(y){this.date.setFullYear(y)};
_.E.setYear=function(y){this.setFullYear(y)};
_.E.setMonth=function(y){this.date.setMonth(y)};
_.E.setDate=function(y){this.date.setDate(y)};
_.E.setTime=function(y){this.date.setTime(y)};
_.E.setUTCFullYear=function(y){this.date.setUTCFullYear(y)};
_.E.setUTCMonth=function(y){this.date.setUTCMonth(y)};
_.E.setUTCDate=function(y){this.date.setUTCDate(y)};
_.E.add=function(y){if(y.years||y.months){var W=this.getMonth()+y.months+y.years*12,V=this.getYear()+Math.floor(W/12);W%=12;W<0&&(W+=12);var w=Math.min(h2L(V,W),this.getDate());this.setDate(1);this.setFullYear(V);this.setMonth(W);this.setDate(w)}y.days&&(V=this.getYear(),W=V>=0&&V<=99?-1900:0,y=new Date((new Date(V,this.getMonth(),this.getDate(),12)).getTime()+y.days*864E5),this.setDate(1),this.setFullYear(y.getFullYear()+W),this.setMonth(y.getMonth()),this.setDate(y.getDate()),lPs(this,y.getDate()))};
_.E.JSC$11204_toIsoString=function(y){var W=this.getFullYear(),V=W<0?"-":W>=1E4?"+":"";return[V+_.pl(Math.abs(W),V?6:4),_.pl(this.getMonth()+1,2),_.pl(this.getDate(),2)].join(y?"-":"")};
_.E.equals=function(y){return!(!y||this.getYear()!=y.getYear()||this.getMonth()!=y.getMonth()||this.getDate()!=y.getDate())};
_.E.toString=function(){return this.JSC$11204_toIsoString()};
var lPs=function(y,W){y.getDate()!=W&&y.date.setUTCHours(y.date.getUTCHours()+(y.getDate()<W?1:-1))};
_.R4.prototype.valueOf=function(){return this.date.valueOf()};var $g=function(y,W,V,w,t){this.reversed=!!W;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!V;y&&jN(this,y,w);this.depth=t!=void 0?t:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.pF($g,fo);var jN=function(y,W,V,w){if(y.node=W)y.tagType=typeof V==="number"?V:y.node.nodeType!=1?0:y.reversed?-1:1;typeof w==="number"&&(y.depth=w)};
_.E=$g.prototype;_.E.JSC$11219_copyFrom=function(y){this.node=y.node;this.tagType=y.tagType;this.depth=y.depth;this.reversed=y.reversed;this.constrained=y.constrained};
_.E.clone=function(){return new $g(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.E.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Tf;var y=this.node;var W=this.reversed?-1:1;if(this.tagType==W){var V=this.reversed?y.lastChild:y.firstChild;V?jN(this,V):jN(this,y,W*-1)}else(V=this.reversed?y.previousSibling:y.nextSibling)?jN(this,V):jN(this,y.parentNode,W*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(y=this.node)?mF(y):Tf};
_.E.equals=function(y){return y.node==this.node&&(!this.node||y.tagType==this.tagType)};
_.E.splice=function(y){var W=this.node,V=this.reversed?1:-1;this.tagType==V&&(this.tagType=V*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;$g.prototype.next.call(this);this.reversed=!this.reversed;V=_.bn(arguments[0])?arguments[0]:arguments;for(var w=V.length-1;w>=0;w--)_.bQ(V[w],W);_.ku(W)};var xof=function(){},nj=function(y){for(var W=[],V=y.getTextRangeCount(),w=0;w<V;w++)W.push(y.getTextRange(w));
return W};
xof.prototype.isReversed=function(){return!1};
xof.prototype.getWindow=function(){return QL(_.ZS(this.JSC$11221_getStartNode()))};
var kwE=function(y,W){$g.call(this,y,W,!0)};
_.pF(kwE,$g);var HQ=function(y,W,V,w,t){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!t;if(y){this.startNode_=y;this.startOffset_=W;this.endNode_=V;this.endOffset_=w;if(y.nodeType==1&&y.tagName!="BR")if(y=y.childNodes,W=y[W])this.startNode_=W,this.startOffset_=0;else{y.length&&(this.startNode_=_.Av(y));var F=!0}V.nodeType==1&&((this.endNode_=V.childNodes[w])?this.endOffset_=0:this.endNode_=V)}$g.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);F&&this.next()};
_.pF(HQ,kwE);_.E=HQ.prototype;_.E.JSC$11227_getStartNode=function(){return this.startNode_};
_.E.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)};
_.E.next=function(){return this.isLast()?Tf:HQ.superClass_.next.call(this)};
_.E.JSC$11219_copyFrom=function(y){this.startNode_=y.startNode_;this.endNode_=y.endNode_;this.startOffset_=y.startOffset_;this.endOffset_=y.endOffset_;this.isReversed_=y.isReversed_;HQ.superClass_.JSC$11219_copyFrom.call(this,y)};
_.E.clone=function(){var y=new HQ(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);y.JSC$11219_copyFrom(this);return y};var scK=function(){};
scK.prototype.__iterator__=function(){return new HQ(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var XI=function(y){this.range_=y};
_.pF(XI,scK);var AxQ=function(y){var W=_.ZS(y).createRange();if(y.nodeType==3)W.setStart(y,0),W.setEnd(y,y.length);else if(a1(y)||y.nodeType==3){for(var V,w=y;(V=w.firstChild)&&(a1(V)||V.nodeType==3);)w=V;W.setStart(w,0);for(w=y;(V=w.lastChild)&&(a1(V)||V.nodeType==3);)w=V;W.setEnd(w,w.nodeType==1?w.childNodes.length:w.length)}else V=y.parentNode,y=Array.prototype.indexOf.call(V.childNodes,y),W.setStart(V,y),W.setEnd(V,y+1);return W},YTQ=function(y,W,V,w){var t=_.ZS(y).createRange();
t.setStart(y,W);t.setEnd(V,w);return t};
_.E=XI.prototype;_.E.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.E.getContainer=function(){return this.range_.commonAncestorContainer};
_.E.compareBrowserRangeEndpoints=function(y,W,V){return this.range_.compareBoundaryPoints(V==1?W==1?_.Vj.Range.START_TO_START:_.Vj.Range.START_TO_END:W==1?_.Vj.Range.END_TO_START:_.Vj.Range.END_TO_END,y)};
_.E.isCollapsed=function(){return this.range_.collapsed};
_.E.select=function(y){this.selectInternal(QL(_.ZS(this.range_.startContainer)).getSelection(),y)};
_.E.selectInternal=function(y){y.removeAllRanges();y.addRange(this.range_)};
_.E.insertNode=function(y,W){var V=this.range_.cloneRange();V.collapse(W);V.insertNode(y);V.detach();return y};
_.E.collapse=function(y){this.range_.collapse(y)};_.pF(LM,XI);LM.prototype.selectInternal=function(y,W){!W||this.isCollapsed()?LM.superClass_.selectInternal.call(this,y,W):(y.collapse(this.range_.endContainer,this.range_.endOffset),y.extend(this.range_.startContainer,this.range_.startOffset))};_.pF(zy,XI);zy.prototype.compareBrowserRangeEndpoints=function(y,W,V){return zy.superClass_.compareBrowserRangeEndpoints.call(this,y,W,V)};
zy.prototype.selectInternal=function(y,W){W?y.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):y.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var BPf=function(y){return _.qW?new zy(y):_.MW?new LM(y):new XI(y)};var a4=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},JxR;
_.pF(a4,xof);JxR=function(y,W){var V=new a4;V.browserRangeWrapper_=y;V.isReversed_=!!W;return V};
_.RdR=function(y){y=_.qW?new zy(AxQ(y)):_.MW?new LM(AxQ(y)):new XI(AxQ(y));return JxR(y)};
_.Gn=function(y,W,V,w){var t=new a4;t.isReversed_=jcA(y,W,V,w);if(_.Og(y)&&!a1(y)){var F=y.parentNode;W=Array.prototype.indexOf.call(F.childNodes,y);y=F}_.Og(V)&&!a1(V)&&(F=V.parentNode,w=Array.prototype.indexOf.call(F.childNodes,V),V=F);t.isReversed_?(t.startNode_=V,t.startOffset_=w,t.endNode_=y,t.endOffset_=W):(t.startNode_=y,t.startOffset_=W,t.endNode_=V,t.endOffset_=w);return t};
_.E=a4.prototype;_.E.clone=function(){var y=new a4;y.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();y.startNode_=this.startNode_;y.startOffset_=this.startOffset_;y.endNode_=this.endNode_;y.endOffset_=this.endOffset_;y.isReversed_=this.isReversed_;return y};
_.E.JSC$11221_getType=function(){return"text"};
_.E.getBrowserRangeObject=function(){return r9(this).range_};
_.E.getTextRangeCount=function(){return 1};
_.E.getTextRange=function(){return this};
var r9=function(y){var W;if(!(W=y.browserRangeWrapper_)){W=y.JSC$11221_getStartNode();var V=y.JSC$11221_getStartOffset(),w=y.JSC$11221_getEndNode(),t=y.JSC$11221_getEndOffset();W=_.qW?new zy(YTQ(W,V,w,t)):_.MW?new LM(YTQ(W,V,w,t)):new XI(YTQ(W,V,w,t));W=y.browserRangeWrapper_=W}return W};
_.E=a4.prototype;_.E.getContainer=function(){return r9(this).getContainer()};
_.E.JSC$11221_getStartNode=function(){return this.startNode_||(this.startNode_=r9(this).range_.startContainer)};
_.E.JSC$11221_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=r9(this).range_.startOffset};
_.E.JSC$11221_getEndNode=function(){return this.endNode_||(this.endNode_=r9(this).range_.endContainer)};
_.E.JSC$11221_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=r9(this).range_.endOffset};
_.E.isReversed=function(){return this.isReversed_};
_.E.JSC$11221_containsRange=function(y,W){if(y.JSC$11221_getType()=="text"){var V=r9(this);y=r9(y);W=W&&!y.isCollapsed();y=y.range_;V=W?V.compareBrowserRangeEndpoints(y,0,1)>=0&&V.compareBrowserRangeEndpoints(y,1,0)<=0:V.compareBrowserRangeEndpoints(y,0,0)>=0&&V.compareBrowserRangeEndpoints(y,1,1)<=0}else V=!1;return V};
_.E.isCollapsed=function(){return r9(this).isCollapsed()};
_.E.JSC$11221_getText=function(){return r9(this).range_.toString()};
_.E.__iterator__=function(){return new HQ(this.JSC$11221_getStartNode(),this.JSC$11221_getStartOffset(),this.JSC$11221_getEndNode(),this.JSC$11221_getEndOffset())};
_.E.select=function(){r9(this).select(this.isReversed_)};
_.E.JSC$11221_removeContents=function(){var y=r9(this).range_;y.extractContents();if(y.startContainer.hasChildNodes()&&(y=y.startContainer.childNodes[y.startOffset])){var W=y.previousSibling;Ptf(y)==""&&_.ku(y);W&&Ptf(W)==""&&_.ku(W)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.E.insertNode=function(y,W){y=r9(this).insertNode(y,W);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return y};
_.E.collapse=function(y){y=this.isReversed()?!y:y;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(y);y?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var $oq=function(){};
_.pF($oq,xof);$oq.prototype.JSC$11221_containsRange=function(y,W){var V=nj(this);y=nj(y);return(W?gQ:_.JWa)(y,function(w){return gQ(V,function(t){return t.JSC$11221_containsRange(w,W)})})};
$oq.prototype.insertNode=function(y,W){W?_.r4(y,this.JSC$11221_getStartNode()):_.bQ(y,this.JSC$11221_getEndNode());return y};var n1z,HOm=RS().JSC$9250_document_.documentElement;n1z=HOm.requestFullscreen?"fullscreenchange":HOm.webkitRequestFullscreen?"webkitfullscreenchange":HOm.mozRequestFullScreen?"mozfullscreenchange":HOm.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var X9Q=function(){var y=RS().JSC$9250_document_;return!!(y.webkitIsFullScreen||y.mozFullScreen||y.msFullscreenElement||y.fullscreenElement)};var bJ=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.pF(bJ,$oq);_.E=bJ.prototype;_.E.clone=function(){var y=new bJ;y.browserRanges_=_.ru(this.browserRanges_);return y};
_.E.JSC$11221_getType=function(){return"mutli"};
_.E.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.E.getTextRangeCount=function(){return this.browserRanges_.length};
_.E.getTextRange=function(y){this.ranges_[y]||(this.ranges_[y]=JxR(BPf(this.browserRanges_[y])));return this.ranges_[y]};
_.E.getContainer=function(){if(!this.container_){for(var y=[],W=this.getTextRangeCount(),V=0;V<W;V++)y.push(this.getTextRange(V).getContainer());this.container_=wdI.apply(null,y)}return this.container_};
var QE=function(y){y.sortedRanges_||(y.sortedRanges_=nj(y),y.sortedRanges_.sort(function(W,V){var w=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();var t=V.JSC$11221_getStartNode();V=V.JSC$11221_getStartOffset();return w==t&&W==V?0:jcA(w,W,t,V)?1:-1}));
return y.sortedRanges_};
_.E=bJ.prototype;_.E.JSC$11221_getStartNode=function(){return QE(this)[0].JSC$11221_getStartNode()};
_.E.JSC$11221_getStartOffset=function(){return QE(this)[0].JSC$11221_getStartOffset()};
_.E.JSC$11221_getEndNode=function(){return _.Av(QE(this)).JSC$11221_getEndNode()};
_.E.JSC$11221_getEndOffset=function(){return _.Av(QE(this)).JSC$11221_getEndOffset()};
_.E.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.E.JSC$11221_getText=function(){return nj(this).map(function(y){return y.JSC$11221_getText()}).join("")};
_.E.__iterator__=function(){return new ZG(this)};
_.E.select=function(){var y=this.getWindow().getSelection();y.removeAllRanges();for(var W=this.getTextRangeCount(),V=0;V<W;V++)y.addRange(this.getTextRange(V).getBrowserRangeObject())};
_.E.JSC$11221_removeContents=function(){nj(this).forEach(function(y){y.JSC$11221_removeContents()})};
_.E.collapse=function(y){if(!this.isCollapsed()){var W=y?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;W.collapse(y);this.ranges_=[W];this.sortedRanges_=[W];this.browserRanges_=[W.getBrowserRangeObject()]}};
var ZG=function(y){this.iterators_=null;this.currentIdx_=0;y&&(this.iterators_=QE(y).map(function(W){return _.P4i(W)}));
$g.call(this,y?this.JSC$11227_getStartNode():null,!1,!0)};
_.pF(ZG,kwE);_.E=ZG.prototype;_.E.JSC$11227_getStartNode=function(){return this.iterators_[0].JSC$11227_getStartNode()};
_.E.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.E.next=function(){for(;this.currentIdx_<this.iterators_.length;){var y=this.iterators_[this.currentIdx_],W=y.next();if(W.done)this.currentIdx_++;else return jN(this,y.node,y.tagType,y.depth),W}return Tf};
_.E.JSC$11219_copyFrom=function(y){this.iterators_=_.ru(y.iterators_);ZG.superClass_.JSC$11219_copyFrom.call(this,y)};
_.E.clone=function(){var y=new ZG(null);y.JSC$11219_copyFrom(this);return y};var aPA,jcA;_.k9=function(){var y=window.getSelection();return y&&aPA(y)};
aPA=function(y){var W=!1;if(y.createRange)try{var V=y.createRange()}catch(t){return null}else if(y.rangeCount){if(y.rangeCount>1){V=new bJ;W=y.rangeCount;for(var w=0;w<W;w++)V.browserRanges_.push(y.getRangeAt(w));return V}V=y.getRangeAt(0);W=jcA(y.anchorNode,y.anchorOffset,y.focusNode,y.focusOffset)}else return null;return JxR(BPf(V),W)};
_.yO=function(y,W){return _.Gn(y,W,y,W)};
_.Ww=function(y,W,V,w){return _.Gn(y,W,V,w)};
jcA=function(y,W,V,w){if(y==V)return w<W;var t;if(y.nodeType==1&&W)if(t=y.childNodes[W])y=t,W=0;else if(_.wf(y,V))return!0;if(V.nodeType==1&&w)if(t=V.childNodes[w])V=t,w=0;else if(_.wf(V,y))return!1;return(VPQ(y,V)||W-w)>0};var VO=function(){_.Bg.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.jA)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.jA)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.jA)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.jA)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.jA)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.jA)(this.dispatchProgressEvent_,this)};
_.pF(VO,_.Bg);VO.prototype.abort=function(){try{this.reader_.abort()}catch(y){throw new vIR(y,"aborting read");}};
VO.prototype.getError=function(){return this.reader_.error&&new vIR(this.reader_.error,"reading file")};
VO.prototype.dispatchProgressEvent_=function(y){this.dispatchEvent(new dN6(y,this))};
VO.prototype.disposeInternal=function(){VO.superClass_.disposeInternal.call(this);delete this.reader_};
var rxJ=function(y){var W=new VO,V=GwQ(W);W.reader_.readAsArrayBuffer(y);return V},bOs=function(y){var W=new VO,V=GwQ(W);
W.reader_.readAsDataURL(y);return V},GwQ=function(y){var W=new gF;
y.listen("loadend",_.D2(function(V,w){var t=w.reader_.result,F=w.getError();t==null||F?V.errback(F):V.callback(t);w.dispose()},W,y));
return W};var wo=function(){_.Bg.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11261_eventHandler_=new _.eK(this);this.JSC$11261_isInitialized_=!1};
_.pF(wo,_.Bg);var QcR=new _.lW("d"),ZOI=new _.lW("beforedragstart"),ycJ=new _.lW("dragstart"),WgJ=new _.lW("beforedragmove"),VBK=new _.lW("dragmove"),wWK=new _.lW("beforedragend"),tBm=new _.lW("dragend"),FgR=new _.lW("e");wo.prototype.isDragging=function(){return!!this.JSC$11261_dragger_};
var EAs=function(y,W){W.dlgGrowthDirection_=0;W.dlgDragHoverClass_=void 0;W.dlgDragPermission=0;y.dragLists_.push(W)},NgE=function(y,W){y.getHandleForDragItem_=W};
wo.prototype.init=function(){if(!this.JSC$11261_isInitialized_){for(var y=this.dragLists_.length,W=0;W<y;W++)for(var V=_.Q_(this.dragLists_[W]),w=V.length,t=0;t<w;++t){var F=V[t],I=this.getHandleForDragItem_(F),P=_.tA(I);this.dragItemForHandle_[P]=F;this.dragItemHoverClasses_&&(this.JSC$11261_eventHandler_.listen(F,"mouseover",this.handleDragItemMouseover_),this.JSC$11261_eventHandler_.listen(F,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11261_eventHandler_.listen(I,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11261_eventHandler_.listen(I,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(F);this.JSC$11261_eventHandler_.listen(I,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11261_isInitialized_=!0}};
wo.prototype.disposeInternal=function(){this.JSC$11261_eventHandler_.dispose();for(var y=this.dragLists_.length,W=0;W<y;W++){var V=this.dragLists_[W];V.dlgGrowthDirection_=void 0;V.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Ips(this);wo.superClass_.disposeInternal.call(this)};
var gAr=function(y,W){for(var V=y.dragLists_.length,w=0;w<V;w++){var t=y.dragLists_[w];t.dlgBounds_=z3d(t)}V=y.dragItems_.length;for(w=0;w<V;w++)t=y.dragItems_[w],t!=W&&(t.dlgBounds_=z3d(t))};
_.E=wo.prototype;
_.E.handlePotentialDragStart_=function(y){var W=_.tA(y.currentTarget);W=this.dragItemForHandle_[W];if(W.parentElement.dlgDragPermission!=2){this.currDragItem_=W;a:{W=this.currDragItem_;for(var V=W.cloneNode(!0),w=sf("TEXTAREA",W),t=sf("TEXTAREA",V),F=0;F<w.length;F++)t[F].value=w[F].value;switch(W.tagName){case "TR":W=_.H8("TABLE",null,_.H8("TBODY",null,V));break a;case "TD":case "TH":W=_.H8("TABLE",null,_.H8("TBODY",null,_.H8("TR",null,V)));break a;case "TEXTAREA":V.value=W.value;default:W=V;break a}W=
void 0}this.draggerEl_=W;this.draggerElClasses_&&NY(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ZS(this.currDragItem_).body.appendChild(this.draggerEl_);V=_.yc(this.currDragItem_);W=this.draggerEl_;w=_.yc(W);if(V instanceof _.bj){var I=V.y;V=V.x}wD(W,W.offsetLeft+(V-w.x),W.offsetTop+(Number(I)-w.y));this.JSC$11261_dragger_=new _.Ws(this.draggerEl_);_.OAK(this.JSC$11261_dragger_,this.hysteresisDistance_);
_.XZ(this.JSC$11261_dragger_,"start",this.handleDragStart_,!1,this);_.XZ(this.JSC$11261_dragger_,"end",this.handleDragEnd_,!1,this);_.XZ(this.JSC$11261_dragger_,"earlycancel",this.JSC$11263_cleanup_,!1,this);this.dispatchEvent(new tB(QcR,this,y,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_));this.JSC$11261_dragger_.startDrag(y)}};
_.E.handleDragStart_=function(y){if(this.dispatchEvent(new tB(ZOI,this,y.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Zqf(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?NY(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var W=z4E(this.draggerEl_);this.draggerEl_.halfWidth=W.width/2;this.draggerEl_.halfHeight=W.height/2;W=this.draggerEl_.getBoundingClientRect();
var V=y.clientY,w=v2s(this.JSC$11261_dragger_,y.clientX);if(w>W.right){var t=this.currDragItem_.getBoundingClientRect();this.JSC$11261_dragger_.deltaX=w-(w-t.left)/t.width*W.width}V=dkq(this.JSC$11261_dragger_,V);V>W.bottom&&(this.JSC$11261_dragger_.deltaY+=V-W.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";gAr(this,this.currDragItem_);this.currDragItem_.style.display="";_.XZ(this.JSC$11261_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new tB(ycJ,
this,y.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_))}else y.preventDefault(),this.JSC$11263_cleanup_()};
_.E.handleDragMove_=function(y){var W=_.yc(this.draggerEl_);W=new _.bj(W.x+this.draggerEl_.halfWidth,W.y+this.draggerEl_.halfHeight);a:{var V=null;if(this.currDragItem_.style.display!="none"){V=this.currDragItem_.parentNode;var w=z3d(V);if(P6f(W,w))break a}w=this.dragLists_.length;for(var t=0;t<w;t++){var F=this.dragLists_[t];if(F!=V&&P6f(W,F.dlgBounds_)){V=F;break a}}V=null}if(V){if(V==null)throw Error("de");w=0;t=!1;F=void 0;switch(V.dlgGrowthDirection_){case 0:w=W.y;var I=C6Q;var P=O62;break;case 4:t=
!0;case 2:w=W.x;I=vAK;P=O62;break;case 5:t=!0;case 3:w=W.x,I=dgE,P=LgE}for(var C=null,d,L=_.Q_(V),z=L.length,c=0;c<z;c++){var K=L[c];if(K!=this.currDragItem_){var f=I(K.dlgBounds_);if(t){var U=zkQ(K,W);F===void 0&&(F=U);P(w,f)&&(d==void 0||U<F||U==F&&(P(f,d)||f==d))&&(C=K,d=f);U<F&&(F=U)}else P(w,f)&&(d==void 0||P(f,d))&&(C=K,d=f)}}I=C!==null&&zkQ(C,W)>F?null:C}else I=null;if(!this.dispatchEvent(new tB(WgJ,this,y,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_,W,V,I)))return!1;if(V&&V.dlgDragPermission!=
1)this.currDragItem_.parentNode==V&&_.Zqf(this.currDragItem_)==I||V.insertBefore(this.currDragItem_,I),this.currDragItem_.style.display="",V.dlgDragHoverClass_&&_.el(V,V.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",P=this.dragLists_.length,d=0;d<P;d++)w=this.dragLists_[d],w.dlgDragHoverClass_&&_.zP(w,w.dlgDragHoverClass_);V!=this.currHoverList_&&(this.currHoverList_=V,gAr(this,this.currDragItem_));this.dispatchEvent(new tB(VBK,this,y,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_,
W,V,I));return!1};
_.E.JSC$11263_cleanup_=function(){Ips(this);this.JSC$11261_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var y=this.dragLists_.length,W=0;W<y;W++)this.dragLists_[W].dlgBounds_=null;y=this.dragItems_.length;for(W=0;W<y;W++)this.dragItems_[W].dlgBounds_=null};
_.E.handleDragEnd_=function(y){if(!this.dispatchEvent(new tB(wWK,this,y,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_)))return!1;Ips(this);this.dispatchEvent(new tB(tBm,this,y,this.currDragItem_,this.draggerEl_,this.JSC$11261_dragger_));this.JSC$11263_cleanup_();return!0};
var Ips=function(y){_.La(y.JSC$11261_dragger_);var W=y.draggerEl_&&y.draggerEl_.parentElement;y.draggerEl_&&_.ku(y.draggerEl_);y.currDragItem_&&y.currDragItem_.style.display=="none"&&(y.origList_.insertBefore(y.currDragItem_,y.origNextItem_),y.currDragItem_.style.display="");y.currDragItemClasses_&&y.currDragItem_?POq(y.currDragItem_,y.currDragItemClasses_||[]):y.currDragItem_&&(y.currDragItem_.style.visibility="");for(var V=y.dragLists_.length,w=0;w<V;w++){var t=y.dragLists_[w];t.dlgDragHoverClass_&&
_.zP(t,t.dlgDragHoverClass_)}W&&y.dispatchEvent(new tB(FgR,y,null,y.currDragItem_,y.draggerEl_,y.JSC$11261_dragger_))};
_.E=wo.prototype;_.E.getHandleForDragItem_=function(y){return y};
_.E.handleDragItemMouseover_=function(y){NY(y.currentTarget,this.dragItemHoverClasses_||[])};
_.E.handleDragItemMouseout_=function(y){POq(y.currentTarget,this.dragItemHoverClasses_||[])};
_.E.handleDragItemHandleMouseover_=function(y){NY(y.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.E.handleDragItemHandleMouseout_=function(y){POq(y.currentTarget,this.dragItemHandleHoverClasses_||[])};
var P6f=function(y,W){return y.x>W.left&&y.x<W.left+W.width&&y.y>W.top&&y.y<W.top+W.height},zkQ=function(y,W){y=y.dlgBounds_;
return Math.abs(W.y-(y.top+(y.height-1)/2))},C6Q=function(y){return y.top+y.height-1},vAK=function(y){return y.left+y.width-1},dgE=function(y){return y.left||0},O62=function(y,W){return y<W},LgE=function(y,W){return y>W},tB=function(y,W,V,w,t,F){_.xs.call(this,y);
this.event=V;this.currDragItem=w;this.draggerEl=t;this.JSC$11265_dragger=F};
_.pF(tB,_.xs);_.pF(h8,_.Ru);var ccz=new _.bj(0,0);h8.prototype.JSC$11269_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
h8.prototype.JSC$11269_onMouseMove=function(y){var W=this.containerIsActuallyContent_?ccz:JU(RS(this.containerNode_)),V=this.horizontalScrolling_?this.calculateScrollDelta(y.clientX+W.x,this.scrollBounds_.left,this.scrollBounds_.width):0,w=this.calculateScrollDelta(y.clientY+W.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=V;this.scrollDelta_.y=w;!(V=!V&&!w)&&(V=this.constrainScroll_)&&(V=y.clientX+W.x,y=y.clientY+W.y,W=this.containerBounds_,V=!(W.left<=V&&W.left+W.width>=
V&&W.top<=y&&W.top+W.height>=y));V?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
h8.prototype.calculateScrollDelta=function(y,W,V){var w=0;y<W?w=-8:y>W+V&&(w=8);return w};
h8.prototype.disposeInternal=function(){h8.superClass_.disposeInternal.call(this);this.JSC$11267_eventHandler_.dispose();this.scrollTimer_.dispose()};var ekq={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"}}},Fg=ekq;Fg=ekq;var EJ={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 hkJ=function(){},Ic=function(y){if(typeof y=="number"){var W=new hkJ;
W.standardOffset_=y;var V=y;if(V==0)V="Etc/GMT";else{var w=["Etc/GMT",V<0?"-":"+"];V=Math.abs(V);w.push(Math.floor(V/60)%100);V%=60;V!=0&&w.push(":",_.pl(V,2));V=w.join("")}W.timeZoneId_=V;V=y;V==0?V="UTC":(w=["UTC",V<0?"+":"-"],V=Math.abs(V),w.push(Math.floor(V/60)%100),V%=60,V!=0&&w.push(":",V),V=w.join(""));y=oAq(y);W.tzNames_=[V,V];W.tzNamesExt_={STD_LONG_NAME_GMT:y,STD_GENERIC_LOCATION:y};W.transitions_=[];return W}W=new hkJ;W.timeZoneId_=y.id;W.standardOffset_=-y.std_offset;W.tzNames_=y.names;
W.tzNamesExt_=y.names_ext;W.transitions_=y.transitions;return W},oAq=function(y){var W=["GMT"];
W.push(y<=0?"+":"-");y=Math.abs(y);W.push(_.pl(Math.floor(y/60)%100,2),":",_.pl(y%60,2));return W.join("")},Kg2=function(y,W){W=Date.UTC(W.getUTCFullYear(),W.getUTCMonth(),W.getUTCDate(),W.getUTCHours(),W.getUTCMinutes())/36E5;
for(var V=0;V<y.transitions_.length&&W>=y.transitions_[V];)V+=2;return V==0?0:y.transitions_[V-1]},pWi=function(y,W){y=y.standardOffset_-Kg2(y,W);
return y===-1440?0:y};var gP=function(y,W){this.patternParts_=[];this.JSC$11280_dateTimeSymbols_=W||JO;typeof y=="number"?i66(this,y):fpA(this,y)},TgA=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Nf=function(y){return y.getHours?y.getHours():0},fpA=function(y,W){for(Pit&&(W=W.replace(/\u200f/g,""));W;){for(var V=W,w=0;w<TgA.length;++w){var t=W.match(TgA[w]);
if(t){var F=t[0];W=W.substring(F.length);w==0&&(F=="''"?F="'":(F=F.substring(1,t[1]=="'"?F.length-1:F.length),F=F.replace(/''/g,"'")));y.patternParts_.push({text:F,type:w});break}}if(V===W)throw Error("ee`"+W);}};
gP.prototype.format=function(y,W){if(!y)throw Error("fe");var V=W?(y.getTimezoneOffset()-pWi(W,y))*6E4:0,w=V?new Date(y.getTime()+V):y,t=w;W&&w.getTimezoneOffset()!=y.getTimezoneOffset()&&(w=new Date(w.getTime()+(w.getTimezoneOffset()-y.getTimezoneOffset())*6E4),t=new Date(y.getTime()+(V+(V>0?-864E5:864E5))));V=[];for(var F=0;F<this.patternParts_.length;++F){var I=this.patternParts_[F].text;1==this.patternParts_[F].type?V.push(mg6(this,I,y,w,t,W)):V.push(I)}return V.join("")};
var i66=function(y,W){if(W<4)var V=y.JSC$11280_dateTimeSymbols_.DATEFORMATS[W];else if(W<8)V=y.JSC$11280_dateTimeSymbols_.TIMEFORMATS[W-4];else if(W<12)V=y.JSC$11280_dateTimeSymbols_.DATETIMEFORMATS[W-8],V=V.replace("{1}",y.JSC$11280_dateTimeSymbols_.DATEFORMATS[W-8]),V=V.replace("{0}",y.JSC$11280_dateTimeSymbols_.TIMEFORMATS[W-8]);else if(W===12)V=y.JSC$11280_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(W===13)V=y.JSC$11280_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{i66(y,10);return}fpA(y,V)},Ia=function(y,W){W=String(W);
y=y.JSC$11280_dateTimeSymbols_||JO;if(y.ZERODIGIT!==void 0&&!gKd){for(var V=[],w=0;w<W.length;w++){var t=W.charCodeAt(w);V.push(48<=t&&t<=57?String.fromCharCode(y.ZERODIGIT+t-48):W.charAt(w))}W=V.join("")}return W},gKd=!1,Pit=!1,q$J=function(y,W,V,w){V=V.getFullYear();
V<=0&&w&&(V=1-V);return Ia(y,MBE(V,W))},MBE=function(y,W){W==2&&(y%=100);
y<0&&W++;return _.pl(y,W)},go=function(y){if(!(y.getHours&&y.getSeconds&&y.getMinutes))throw Error("ge");
},UgJ=function(y,W){go(W);
W=Nf(W);return y.JSC$11280_dateTimeSymbols_.AMPMS[W>=12&&W<24?1:0]},mg6=function(y,W,V,w,t,F){var I=W.length;
switch(W.charAt(0)){case "G":return V=w.getFullYear()>0?1:0,I>=4?y.JSC$11280_dateTimeSymbols_.ERANAMES[V]:y.JSC$11280_dateTimeSymbols_.ERAS[V];case "y":return q$J(y,I,w,!0);case "Y":return V=(new Date(STm(w.getFullYear(),w.getMonth(),w.getDate(),y.JSC$11280_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,y.JSC$11280_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),I==2&&(V%=100),Ia(y,MBE(V,I));case "u":return q$J(y,I,w,!1);case "M":a:switch(V=w.getMonth(),I){case 5:I=y.JSC$11280_dateTimeSymbols_.NARROWMONTHS[V];
break a;case 4:I=y.JSC$11280_dateTimeSymbols_.MONTHS[V];break a;case 3:I=y.JSC$11280_dateTimeSymbols_.SHORTMONTHS[V];break a;default:I=Ia(y,_.pl(V+1,I))}return I;case "k":return go(t),Ia(y,_.pl(Nf(t)||24,I));case "S":return Ia(y,(t.getMilliseconds()/1E3).toFixed(Math.min(3,I)).slice(2)+(I>3?_.pl(0,I-3):""));case "E":return V=w.getDay(),I>=4?y.JSC$11280_dateTimeSymbols_.WEEKDAYS[V]:y.JSC$11280_dateTimeSymbols_.SHORTWEEKDAYS[V];case "a":return UgJ(y,t);case "b":return UgJ(y,t);case "B":return UgJ(y,
t);case "h":return go(t),Ia(y,_.pl(Nf(t)%12||12,I));case "K":return go(t),Ia(y,_.pl(Nf(t)%12,I));case "H":return go(t),Ia(y,_.pl(Nf(t),I));case "c":a:switch(V=w.getDay(),I){case 5:I=y.JSC$11280_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[V];break a;case 4:I=y.JSC$11280_dateTimeSymbols_.STANDALONEWEEKDAYS[V];break a;case 3:I=y.JSC$11280_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[V];break a;default:I=Ia(y,_.pl(V,1))}return I;case "L":a:switch(V=w.getMonth(),I){case 5:I=y.JSC$11280_dateTimeSymbols_.STANDALONENARROWMONTHS[V];
break a;case 4:I=y.JSC$11280_dateTimeSymbols_.STANDALONEMONTHS[V];break a;case 3:I=y.JSC$11280_dateTimeSymbols_.STANDALONESHORTMONTHS[V];break a;default:I=Ia(y,_.pl(V+1,I))}return I;case "Q":return V=Math.floor(w.getMonth()/3),I<4?y.JSC$11280_dateTimeSymbols_.SHORTQUARTERS[V]:y.JSC$11280_dateTimeSymbols_.QUARTERS[V];case "d":return Ia(y,_.pl(w.getDate(),I));case "m":return go(t),Ia(y,_.pl(t.getMinutes?t.getMinutes():0,I));case "s":return go(t),Ia(y,_.pl(t.getSeconds(),I));case "v":return(F||Ic(V.getTimezoneOffset())).timeZoneId_;
case "V":return y=F||Ic(V.getTimezoneOffset()),I<=2?y.timeZoneId_:Kg2(y,V)>0?y.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?y.tzNamesExt_.DST_GENERIC_LOCATION:y.tzNamesExt_.DST_GENERIC_LOCATION:y.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?y.tzNamesExt_.STD_GENERIC_LOCATION:y.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return V=STm(t.getFullYear(),t.getMonth(),t.getDate(),y.JSC$11280_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,y.JSC$11280_dateTimeSymbols_.FIRSTDAYOFWEEK),Ia(y,_.pl(Math.floor(Math.round((V-(new Date((new Date(V)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,I));case "z":return y=F||Ic(V.getTimezoneOffset()),I<4?y.tzNames_[Kg2(y,V)>0?2:0]:y.tzNames_[Kg2(y,V)>0?3:1];case "Z":return W=F||Ic(V.getTimezoneOffset()),I<4?(I=-pWi(W,V),y=[I<0?"-":"+"],I=Math.abs(I),y.push(_.pl(Math.floor(I/60)%100,2),_.pl(I%60,2)),I=y.join("")):I=Ia(y,oAq(pWi(W,V))),I;default:return""}};var ues=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,S$6=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,nmv=function(y){this.patternParts_=[];this.JSC$11289_dateTimeSymbols_=JO;if(typeof y=="number"){y>11&&(y=10);if(y<4)var W=this.JSC$11289_dateTimeSymbols_.DATEFORMATS[y];else y<8?W=this.JSC$11289_dateTimeSymbols_.TIMEFORMATS[y-4]:(W=this.JSC$11289_dateTimeSymbols_.DATETIMEFORMATS[y-8],W=W.replace("{1}",this.JSC$11289_dateTimeSymbols_.DATEFORMATS[y-8]),W=W.replace("{0}",this.JSC$11289_dateTimeSymbols_.TIMEFORMATS[y-
8]));Dgs(this,W)}else Dgs(this,y)},Dgs=function(y,W){for(var V=!1,w="",t=0;t<W.length;t++){var F=W.charAt(t);
if(ues.test(F))for(w.length>0&&(y.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w=""),y.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});t<W.length-1&&W.charAt(t+1)==" ";)t++;else if(V)F=="'"?t+1<W.length&&W.charAt(t+1)=="'"?(w+="'",t++):V=!1:w+=F;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(F)>=0){w.length>0&&(y.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w="");for(var I=W.charAt(t),P=t+1;P<W.length&&W.charAt(P)==I;)P++;I=P-t;I<=0?P=!1:(P="MydhHmsSDkK".indexOf(F),
P=P>0||P==0&&I<3);y.patternParts_.push({text:F,count:I,abutStart:!1,numeric:P});t+=I-1}else F=="'"?t+1<W.length&&W.charAt(t+1)=="'"?(w+="'",t++):V=!0:w+=F}w.length>0&&y.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1});W=!1;for(V=0;V<y.patternParts_.length;V++)y.patternParts_[V].numeric?!W&&V+1<y.patternParts_.length&&y.patternParts_[V+1].numeric&&(W=!0,y.patternParts_[V].abutStart=!0):W=!1};
nmv.prototype.parse=function(y,W,V){var w=!1,t=!1;V&&(w=V.predictive||!1,t=V.validate||!1);if(w)for(V=0;V<this.patternParts_.length;V++){var F=this.patternParts_[V];if(F.count>0&&("abBhHkKm".indexOf(F.text.charAt(0))<0||F.count>2||F.abutStart))throw Error("he`"+F.text.charAt(0));}F=new lpJ;V=[0];F.dayPeriodIndex=-1;for(var I=0;I<this.patternParts_.length&&!(w&&V[0]>=y.length);I++){if(this.patternParts_[I].count==0){a:{var P=y;var C=V,d=this.patternParts_[I],L=w;if(d.text.match(ues)!=null){if(d=C[0],
xgz(P,C),C[0]>d){P=!0;break a}}else{if(P.indexOf(d.text,C[0])==C[0]){C[0]+=d.text.length;P=!0;break a}if(L&&d.text.indexOf(P.substring(C[0]))==0){C[0]+=P.length-C[0];P=!0;break a}}P=!1}if(P)continue;return 0}if(this.patternParts_[I].abutStart){a:{C=y;d=V;L=I;var z=d[0],c=0;for(P=L;P<this.patternParts_.length;P++){var K=this.patternParts_[P],f=K.count;if(f===0)break;if(P==L&&(f-=c,c++,f==0)){P=0;break a}var U=P>L&&K.numeric,l=d[0];if(!kAm(this,C,d,K,f,F,!1)||U&&d[0]-l<f)P=L-1,d[0]=z}P-=L}if(P<=0)return 0;
I+=P-1}else if(!kAm(this,y,V,this.patternParts_[I],0,F,w))return 0}a:{y=t;if(W==null)throw Error("ie");F.era!=void 0&&F.year!=void 0&&F.era==0&&F.year>0&&(F.year=-(F.year-1));F.year!=void 0&&W.setFullYear(F.year);w=W.getDate();W.setDate(1);F.month!=void 0&&W.setMonth(F.month);F.day!=void 0?W.setDate(F.day):(t=h2L(W.getFullYear(),W.getMonth()),W.setDate(w>t?t:w));typeof W.setHours==="function"&&(F.hours==void 0&&(F.hours=W.getHours()),F.hours<12&&(F.ampm!=void 0&&F.ampm>0?F.hours+=12:F.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(F.dayPeriodName)||["night1","night2"].includes(F.dayPeriodName)&&F.hours>=6)&&(F.hours+=12)),W.setHours(F.hours));typeof W.setMinutes==="function"&&F.minutes!=void 0&&W.setMinutes(F.minutes);typeof W.setSeconds==="function"&&F.seconds!=void 0&&W.setSeconds(F.seconds);typeof W.setMilliseconds==="function"&&F.milliseconds!=void 0&&W.setMilliseconds(F.milliseconds);if(y&&(F.year&&F.year!=W.getFullYear()||F.month&&F.month!=
W.getMonth()||F.day&&F.day!=W.getDate()||F.hours&&F.hours>=24||F.minutes&&F.minutes>=60||F.seconds&&F.seconds>=60||F.milliseconds&&F.milliseconds>=1E3))W=!1;else{F.tzOffset!=void 0&&W.setTime(W.getTime()+(F.tzOffset-W.getTimezoneOffset())*60*1E3);F.ambiguousYear&&(y=new Date,y.setFullYear(y.getFullYear()-80),W.getTime()<y.getTime()&&W.setFullYear(y.getFullYear()+100));if(F.dayOfWeek!=void 0)if(F.day==void 0)F=(7+F.dayOfWeek-W.getDay())%7,F>3&&(F-=7),y=W.getMonth(),W.setDate(W.getDate()+F),W.getMonth()!=
y&&W.setDate(W.getDate()+(F>0?-7:7));else if(F.dayOfWeek!=W.getDay()){W=!1;break a}W=!0}}return W?V[0]:0};
var kAm=function(y,W,V,w,t,F,I){xgz(W,V);if(w.numeric&&t>0&&V[0]+t>W.length)return!1;switch(w.text.charAt(0)){case "G":return Pw(W,V,[y.JSC$11289_dateTimeSymbols_.ERAS],function(P){return F.era=P}),!0;
case "M":case "L":return s6J(y,W,V,t,w,F);case "E":return Pw(W,V,[y.JSC$11289_dateTimeSymbols_.WEEKDAYS,y.JSC$11289_dateTimeSymbols_.SHORTWEEKDAYS],function(P){return F.dayOfWeek=P});
case "B":case "b":return t=[],y=[[].concat(y.JSC$11289_dateTimeSymbols_.AMPMS)],t.push("isAm"),t.push("isPm"),W=Pw(W,V,y,function(P){return F.dayPeriodIndex=P},I),F.dayPeriodName=t[F.dayPeriodIndex],I?W:!0;
case "a":return W=Pw(W,V,[y.JSC$11289_dateTimeSymbols_.AMPMS],function(P){return F.ampm=P},I),I?W:!0;
case "y":return Acz(y,W,V,w,t,F);case "Q":return Pw(W,V,[y.JSC$11289_dateTimeSymbols_.QUARTERS,y.JSC$11289_dateTimeSymbols_.SHORTQUARTERS],function(P){F.month=P*3;F.day=1});
case "d":return C8(y,W,V,w,t,function(P){F.day=P}),!0;
case "S":return Y$s(y,W,V,t,F);case "h":case "K":case "H":case "k":return W=C8(y,W,V,w,t,function(P){F.hours=w.text.charAt(0)==="h"&&P===12?0:P},I),I?W:!0;
case "m":return W=C8(y,W,V,w,t,function(P){F.minutes=P},I),I?W:!0;
case "s":return C8(y,W,V,w,t,function(P){F.seconds=P}),!0;
case "z":case "Z":case "v":return Bgm(y,W,V,F);default:return!1}},Acz=function(y,W,V,w,t,F){var I=V[0];
t=OJ(y,W,V,t);t===null&&(t=OJ(y,W,V,0,!0));if(t===null)return!1;t>=0&&V[0]-I==2&&w.count==2?(y=t,W=(new Date).getFullYear()-80,V=W%100,F.ambiguousYear=y==V,y+=Math.floor(W/100)*100+(y<V?100:0),F.year=y):F.year=t;return!0},s6J=function(y,W,V,w,t,F){return t.numeric&&C8(y,W,V,t,w,function(I){F.month=I-1})?!0:Pw(W,V,[y.JSC$11289_dateTimeSymbols_.MONTHS,
y.JSC$11289_dateTimeSymbols_.STANDALONEMONTHS,y.JSC$11289_dateTimeSymbols_.SHORTMONTHS,y.JSC$11289_dateTimeSymbols_.STANDALONESHORTMONTHS],function(I){F.month=I})},Y$s=function(y,W,V,w,t){var F=V[0];
y=OJ(y,W,V,w);if(y===null)return!1;V=V[0]-F;t.milliseconds=V<3?y*Math.pow(10,3-V):Math.round(y/Math.pow(10,V-3));return!0},Bgm=function(y,W,V,w){W.indexOf("GMT",V[0])==V[0]&&(V[0]+=3);
if(V[0]>=W.length)return w.tzOffset=0,!0;var t=V[0],F=OJ(y,W,V,0,!0);if(F===null)return!1;if(V[0]<W.length&&W.charAt(V[0])==":"){var I=F*60;V[0]++;F=OJ(y,W,V,0);if(F===null)return!1;I+=F}else I=F,I=I<24&&V[0]-t<=3?I*60:I%100+I/100*60;w.tzOffset=-I;return!0},C8=function(y,W,V,w,t,F,I){I=I||!1;
var P=V[0];y=OJ(y,W,V,t);if(y===null)return!1;if(I&&V[0]-P<w.count){if(V[0]<W.length)return!1;y*=Math.pow(10,w.count-(V[0]-P))}F(y);return!0},Pw=function(y,W,V,w,t){t=t||!1;
for(var F,I=0;I<V.length;I++){F=W;for(var P=V[I],C=t,d=0,L=null,z=y.substring(F[0]).toLowerCase(),c=0;c<P.length;c++){var K=P[c].toLowerCase();if(C&&K.indexOf(z)==0){d=z.length;L=c;break}P[c].length>d&&z.indexOf(K)==0&&(d=P[c].length,L=c)}L!==null&&(F[0]+=d);F=L;if(F!==null)return w(F),!0}return!1},xgz=function(y,W){(y=y.substring(W[0]).match(S$6))&&(W[0]+=y[0].length)},OJ=function(y,W,V,w,t){W=w>0?W.substring(0,V[0]+w):W;
t=t||!1;if(y.JSC$11289_dateTimeSymbols_.ZERODIGIT){w=[];for(var F=V[0];F<W.length;F++){var I=W.charCodeAt(F)-y.JSC$11289_dateTimeSymbols_.ZERODIGIT;w.push(0<=I&&I<=9?String.fromCharCode(I+48):W.charAt(F))}W=w.join("")}else W=W.substring(V[0]);y=W.match(new RegExp("^"+(t?"[+-]?":"")+"\\d+"));if(!y)return null;V[0]+=y[0].length;return parseInt(y[0],10)},lpJ=function(){};
lpJ.prototype.ambiguousYear=!1;_.JcR={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 Rkz={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"},j62=Rkz,$gs=Rkz;$gs=j62=Rkz;var H6q,vw,zm,dAv,L8,nA2;
_.F4=function(y,W,V,w){var t;if(t=W){a:if(W&&W.length===3){for(t=0;t<3;t++){var F=W[t];if(F<"A"||F>"Z"&&F<"a"||F>"z"){t=!1;break a}}t=!0}else t=!1;t=!t}if(t)throw new TypeError("je");this.intlCurrencyCode_=W?W.toUpperCase():null;this.currencyStyle_=V||0;this.overrideNumberFormatSymbols_=w||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_=vw(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof y==="number")switch(y){case 1:L8(this,vw(this).DECIMAL_PATTERN);break;case 2:L8(this,vw(this).SCIENTIFIC_PATTERN);break;case 3:L8(this,vw(this).PERCENT_PATTERN);break;case 4:y=vw(this).CURRENCY_PATTERN;W=["0"];if(V=
EJ[zm(this)]){V=V[0]&7;if(V>0)for(W.push("."),w=0;w<V;w++)W.push("0");y=y.replace(/0.00/g,W.join(""))}L8(this,y);break;case 5:nA2(this,1);break;case 6:nA2(this,2);break;default:throw Error("me");}else L8(this,y)};
H6q=!1;vw=function(y){return y.overrideNumberFormatSymbols_||(H6q?$gs:j62)};
zm=function(y){return y.intlCurrencyCode_||vw(y).DEF_CURRENCY_CODE};
dAv=function(y,W){if(W>308)throw Error("le`"+W);y.maximumFractionDigits_=W;return y};
L8=function(y,W){var V=[0];y.positivePrefix_=XWK(y,W,V);for(var w=V[0],t=-1,F=0,I=0,P=0,C=-1,d=W.length,L=!0;V[0]<d&&L;V[0]++)switch(W.charAt(V[0])){case "#":I>0?P++:F++;C>=0&&t<0&&C++;break;case "0":if(P>0)throw Error("se`"+W);I++;C>=0&&t<0&&C++;break;case ",":C>0&&y.groupingArray_.push(C);C=0;break;case ".":if(t>=0)throw Error("te`"+W);t=F+I+P;break;case "E":if(y.useExponentialNotation_)throw Error("ue`"+W);y.useExponentialNotation_=!0;y.minExponentDigits_=0;V[0]+1<d&&W.charAt(V[0]+1)=="+"&&(V[0]++,
y.useSignForPositiveExponent_=!0);for(;V[0]+1<d&&W.charAt(V[0]+1)=="0";)V[0]++,y.minExponentDigits_++;if(F+I<1||y.minExponentDigits_<1)throw Error("ve`"+W);L=!1;break;default:V[0]--,L=!1}I==0&&F>0&&t>=0&&(I=t,I==0&&I++,P=F-I,F=I-1,I=1);if(t<0&&P>0||t>=0&&(t<F||t>F+I)||C==0)throw Error("we`"+W);P=F+I+P;y.maximumFractionDigits_=t>=0?P-t:0;t>=0&&(y.minimumFractionDigits_=F+I-t,y.minimumFractionDigits_<0&&(y.minimumFractionDigits_=0));y.minimumIntegerDigits_=(t>=0?t:P)-F;y.useExponentialNotation_&&(y.maximumIntegerDigits_=
F+y.minimumIntegerDigits_,y.maximumFractionDigits_==0&&y.minimumIntegerDigits_==0&&(y.minimumIntegerDigits_=1));y.groupingArray_.push(Math.max(0,C));y.decimalSeparatorAlwaysShown_=t==0||t==P;w=V[0]-w;y.positiveSuffix_=XWK(y,W,V);V[0]<W.length&&W.charAt(V[0])==";"?(V[0]++,y.multiplier_!=1&&(y.negativePercentSignExpected_=!0),y.negativePrefix_=XWK(y,W,V),V[0]+=w,y.negativeSuffix_=XWK(y,W,V)):(y.negativePrefix_+=y.positivePrefix_,y.negativeSuffix_+=y.positiveSuffix_)};
nA2=function(y,W){y.compactStyle_=W;L8(y,vw(y).DECIMAL_PATTERN);y.minimumFractionDigits_=0;dAv(y,2);if(y.minimumFractionDigits_>0)throw Error("ke");y.significantDigits_=2};
_.F4.prototype.parse=function(y,W){W=W||[0];if(this.compactStyle_!==0)throw Error("ne");y=y.replace(/ |\u202f/g,"\u00a0");var V=y.indexOf(this.positivePrefix_,W[0])==W[0],w=y.indexOf(this.negativePrefix_,W[0])==W[0];V&&w&&(this.positivePrefix_.length>this.negativePrefix_.length?w=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(V=!1));V?W[0]+=this.positivePrefix_.length:w&&(W[0]+=this.negativePrefix_.length);if(y.indexOf(vw(this).INFINITY,W[0])==W[0]){W[0]+=vw(this).INFINITY.length;var t=
Infinity}else{t=y;var F=!1,I=!1,P=!1,C=-1,d=1,L=vw(this).DECIMAL_SEP,z=vw(this).GROUP_SEP,c=vw(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("oe");z=z.replace(/\u202f/g,"\u00a0");for(var K="";W[0]<t.length;W[0]++){var f=t.charAt(W[0]),U=ap2(this,f);if(U>=0&&U<=9)K+=U,P=!0;else if(f==L.charAt(0)){if(F||I)break;K+=".";F=!0}else if(f==z.charAt(0)&&("\u00a0"!=z.charAt(0)||W[0]+1<t.length&&ap2(this,t.charAt(W[0]+1))>=0)){if(F||I)break}else if(f==c.charAt(0)){if(I)break;K+="E";I=!0;C=W[0]}else if(f==
"+"||f=="-"){if(P&&C!=W[0]-1)break;K+=f}else if(this.multiplier_==1&&f==vw(this).PERCENT.charAt(0)){if(d!=1)break;d=100;if(P){W[0]++;break}}else if(this.multiplier_==1&&f==vw(this).PERMILL.charAt(0)){if(d!=1)break;d=1E3;if(P){W[0]++;break}}else break}this.multiplier_!=1&&(d=this.multiplier_);t=parseFloat(K)/d}if(V){if(y.indexOf(this.positiveSuffix_,W[0])!=W[0])return NaN;W[0]+=this.positiveSuffix_.length}else if(w){if(y.indexOf(this.negativeSuffix_,W[0])!=W[0])return NaN;W[0]+=this.negativeSuffix_.length}return w?
-t:t};
_.F4.prototype.format=function(y){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("pe");if(isNaN(y))return vw(this).NAN;var W=[];var V=y;if(this.compactStyle_==0)V=cw;else{V=Math.abs(V);var w=GAf(this,V<=1?0:rcJ(V)).divisorBase;V=GAf(this,w+rcJ(b6z(this,ex(V,-w)).intValue))}y=ex(y,-V.divisorBase);(w=y<0||y==0&&1/y<0)?V.negative_prefix?W.push(V.negative_prefix):(W.push(V.prefix),W.push(this.negativePrefix_)):(W.push(V.prefix),W.push(this.positivePrefix_));if(isFinite(y))if(y*=
w?-1:1,y*=this.multiplier_,this.useExponentialNotation_){var t=y;if(t==0)Q6f(this,t,this.minimumIntegerDigits_,W),Z6K(this,0,W);else{var F=Math.floor(Math.log(t)/Math.log(10)+2E-15);t=ex(t,-F);var I=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(I=F%this.maximumIntegerDigits_,I<0&&(I=this.maximumIntegerDigits_+I),t=ex(t,I),F-=I,I=1):this.minimumIntegerDigits_<1?(F++,t=ex(t,-1)):(F-=this.minimumIntegerDigits_-1,t=ex(t,this.minimumIntegerDigits_-
1));Q6f(this,t,I,W);Z6K(this,F,W)}}else Q6f(this,y,this.minimumIntegerDigits_,W);else W.push(vw(this).INFINITY);w?V.negative_suffix?W.push(V.negative_suffix):(isFinite(y)&&W.push(V.suffix),W.push(this.negativeSuffix_)):(isFinite(y)&&W.push(V.suffix),W.push(this.positiveSuffix_));return W.join("")};
var b6z=function(y,W){var V=ex(W,y.maximumFractionDigits_);y.significantDigits_>0&&(V=yYI(V,y.significantDigits_,y.maximumFractionDigits_));V=Math.round(V);if(isFinite(V)){var w=Math.floor(ex(V,-y.maximumFractionDigits_));V=Math.floor(V-ex(w,y.maximumFractionDigits_));if(V<0||V>=ex(1,y.maximumFractionDigits_))w=Math.round(W),V=0}else w=W,V=0;return{intValue:w,fracValue:V}},Q6f=function(y,W,V,w){if(y.minimumFractionDigits_>y.maximumFractionDigits_)throw Error("pe");
w||(w=[]);W=b6z(y,W);var t=W.intValue,F=W.fracValue,I=y.minimumFractionDigits_>0||F>0||!1;W=y.minimumFractionDigits_;I&&(W=y.minimumFractionDigits_);for(var P="",C=t;C>1E20;)P="0"+P,C=Math.round(ex(C,-1));P=C+P;var d=vw(y).DECIMAL_SEP;C=vw(y).ZERO_DIGIT.codePointAt(0);var L=P.length,z=0;if(t>0||V>0){for(t=L;t<V;t++)w.push(String.fromCodePoint(C));if(y.groupingArray_.length>=2)for(V=1;V<y.groupingArray_.length;V++)z+=y.groupingArray_[V];V=L-z;if(V>0){t=y.groupingArray_;z=L=0;for(var c,K=vw(y).GROUP_SEP,
f=P.length,U=0;U<f;U++)if(w.push(String.fromCodePoint(C+Number(P.charAt(U)))),f-U>1)if(c=t[z],U<V){var l=V-U;(c===1||c>0&&l%c===1)&&w.push(K)}else z<t.length&&(U===V?z+=1:c===U-V-L+1&&(w.push(K),L+=c,z+=1))}else{V=P;P=y.groupingArray_;t=vw(y).GROUP_SEP;c=V.length;K=[];for(L=P.length-1;L>=0&&c>0;L--){z=P[L];for(f=0;f<z&&c-f-1>=0;f++)K.push(String.fromCodePoint(C+Number(V.charAt(c-f-1))));c-=z;c>0&&K.push(t)}w.push.apply(w,K.reverse())}}else I||w.push(String.fromCodePoint(C));(y.decimalSeparatorAlwaysShown_||
I)&&w.push(d);F=String(F);I=F.split("e+");I.length==2&&(F=String(yYI(parseFloat(I[0]),y.significantDigits_,1)),F=F.replace(".",""),F+=(0,_.kG6)("0",parseInt(I[1],10)-F.length+1));y.maximumFractionDigits_+1>F.length&&(F="1"+(0,_.kG6)("0",y.maximumFractionDigits_-F.length)+F);for(y=F.length;F.charAt(y-1)=="0"&&y>W+1;)y--;for(W=1;W<y;W++)w.push(String.fromCodePoint(C+Number(F.charAt(W))))},Z6K=function(y,W,V){V.push(vw(y).EXP_SYMBOL);
W<0?(W=-W,V.push(vw(y).MINUS_SIGN)):y.useSignForPositiveExponent_&&V.push(vw(y).PLUS_SIGN);W=""+W;for(var w=vw(y).ZERO_DIGIT,t=W.length;t<y.minExponentDigits_;t++)V.push(w);y=w.codePointAt(0)-WMz;for(w=0;w<W.length;w++)V.push(String.fromCodePoint(y+W.codePointAt(w)))},ap2=function(y,W){W=W.codePointAt(0);
if(48<=W&&W<58)return W-48;y=vw(y).ZERO_DIGIT.codePointAt(0);return y<=W&&W<y+10?W-y:-1},WMz="0".codePointAt(0),XWK=function(y,W,V){for(var w="",t=!1,F=W.length;V[0]<F;V[0]++){var I=W.charAt(V[0]);
if(I=="'")V[0]+1<F&&W.charAt(V[0]+1)=="'"?(V[0]++,w+="'"):t=!t;else if(t)w+=I;else switch(I){case "#":case "0":case ",":case ".":case ";":return w;case "\u00a4":if(V[0]+1<F&&W.charAt(V[0]+1)=="\u00a4")V[0]++,w+=zm(y);else switch(y.currencyStyle_){case 0:I=zm(y);w+=I in EJ?EJ[I][1]:I;break;case 2:I=zm(y);var P=EJ[I];w+=P?I==P[1]?I:I+" "+P[1]:I;break;case 1:I=zm(y),w+=I in EJ?EJ[I][2]:I}break;case "%":if(!y.negativePercentSignExpected_&&y.multiplier_!=1)throw Error("qe");if(y.negativePercentSignExpected_&&
y.multiplier_!=100)throw Error("re");y.multiplier_=100;y.negativePercentSignExpected_=!1;w+=vw(y).PERCENT;break;case "\u2030":if(!y.negativePercentSignExpected_&&y.multiplier_!=1)throw Error("qe");if(y.negativePercentSignExpected_&&y.multiplier_!=1E3)throw Error("re");y.multiplier_=1E3;y.negativePercentSignExpected_=!1;w+=vw(y).PERMILL;break;default:w+=I}}return w},cw={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},GAf=function(y,W){y=y.compactStyle_==1?Fg.COMPACT_DECIMAL_SHORT_PATTERN:Fg.COMPACT_DECIMAL_LONG_PATTERN;y==null&&(y=Fg.COMPACT_DECIMAL_SHORT_PATTERN);if(W<3)return cw;W=Math.min(14,W);var V=y[ex(1,W)];for(--W;!V&&W>=3;)V=y[ex(1,W)],W--;if(!V)return cw;V=V.other;var w=y="",t=V.indexOf(";");t>=0&&(V=V.substring(0,t),t=V.substring(t+1))&&(w=/([^0]*)(0+)(.*)/.exec(t),y=w[1],w=w[3]);return V&&V!="0"?(V=/([^0]*)(0+)(.*)/.exec(V))?{divisorBase:W+
1-(V[2].length-1),negative_prefix:y,negative_suffix:w,prefix:V[1],suffix:V[3]}:cw:cw},rcJ=function(y){if(!isFinite(y))return y>0?y:0;
for(var W=0;(y/=10)>=1;)W++;return W},ex=function(y,W){if(!y||!isFinite(y)||W==0)return y;
y=String(y).split("e");return parseFloat(y[0]+"e"+(parseInt(y[1]||0,10)+W))},VY2=function(y,W){return y&&isFinite(y)?ex(Math.round(ex(y,W)),-W):y},yYI=function(y,W,V){if(!y)return y;
W=W-rcJ(y)-1;return W<-V?VY2(y,-V):VY2(y,W)};var wCA=function(y){return y%10==1&&y%100!=11?"one":y%10==2&&y%100!=12?"two":y%10==3&&y%100!=13?"few":"other"},tYA=wCA;
tYA=wCA;var FME;FME=function(y,W){var V=y|0;if(void 0===W){W=Math;var w=W.min,t=y+"",F=t.indexOf(".");W=w.call(W,F===-1?0:t.length-F-1,3)}w=Math.pow(10,W);y={v:W,f:(y*w|0)%w};return V==1&&y.v==0?"one":"other"};
_.P9=FME;_.P9=FME;var Eci,Nci,I8K,PEq,CEi;_.gcq=function(y){this.JSC$11332_pattern_=y;this.parsedPattern_=this.literals_=this.initialLiterals_=null;y=j62;var W=Fg;if(Eci!==y||Nci!==W)Eci=y,Nci=W,I8K=new _.F4(1);this.numberFormatter_=I8K};
Eci=null;Nci=null;I8K=null;PEq=RegExp("'([{}#].*?)'","g");CEi=RegExp("''","g");
_.gcq.prototype.format=function(y){if(this.JSC$11332_pattern_){this.initialLiterals_=[];var W=OD2(this,this.JSC$11332_pattern_);this.parsedPattern_=vcf(this,W);this.JSC$11332_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ru(this.initialLiterals_),W=[],dMq(this,this.parsedPattern_,y,!1,W),y=W.join("");this.literals_.length>0;)y=y.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else y="";return y};
var dMq=function(y,W,V,w,t){for(var F=0;F<W.length;F++)switch(W[F].type){case 4:t.push(W[F].value);break;case 3:var I=W[F].value;var P=y,C=t,d=V[I];d===void 0?C.push("Undefined parameter - "+I):(P.literals_.push(d),C.push(P.buildPlaceholder_(P.literals_)));break;case 2:I=W[F].value;P=y;C=V;d=w;var L=t,z=I.argumentIndex;C[z]===void 0?L.push("Undefined parameter - "+z):(z=I[C[z]],z===void 0&&(z=I.other),dMq(P,z,C,d,L));break;case 0:I=W[F].value;LME(y,I,V,_.P9,w,t);break;case 1:I=W[F].value,LME(y,I,
V,tYA,w,t)}},LME=function(y,W,V,w,t,F){var I=W.argumentIndex,P=W.argumentOffset,C=+V[I];
isNaN(C)?F.push("Undefined or invalid parameter - "+I):(P=C-P,I=W[V[I]],I===void 0&&(w=w(Math.abs(P)),I=W[w],I===void 0&&(I=W.other)),W=[],dMq(y,I,V,t,W),V=W.join(""),t?F.push(V):(y=y.numberFormatter_.format(P),F.push(V.replace(/#/g,y))))},OD2=function(y,W){var V=y.initialLiterals_,w=y.buildPlaceholder_.bind(y);
W=W.replace(CEi,function(){V.push("'");return w(V)});
return W=W.replace(PEq,function(t,F){V.push(F);return w(V)})},z6E=function(y){var W=0,V=[],w=[],t=/[{}]/g;
t.lastIndex=0;for(var F;F=t.exec(y);){var I=F.index;F[0]=="}"?(V.pop(),V.length==0&&(F={type:1},F.value=y.substring(W,I),w.push(F),W=I+1)):(V.length==0&&(W=y.substring(W,I),W!=""&&w.push({type:0,value:W}),W=I+1),V.push("{"))}y=y.substring(W);y!=""&&w.push({type:0,value:y});return w},cYr=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,e6r=/^\s*(\w+)\s*,\s*selectordinal\s*,/,h62=/^\s*(\w+)\s*,\s*select\s*,/,vcf=function(y,W){var V=[];
W=z6E(W);for(var w=0;w<W.length;w++){var t={};if(0==W[w].type)t.type=4,t.value=W[w].value;else if(1==W[w].type){var F=W[w].value;switch(cYr.test(F)?0:e6r.test(F)?1:h62.test(F)?2:/^\s*\w+\s*/.test(F)?3:5){case 2:t.type=2;t.value=ocQ(y,W[w].value);break;case 0:t.type=0;t.value=KME(y,W[w].value);break;case 1:t.type=1;t.value=pCR(y,W[w].value);break;case 3:t.type=3,t.value=W[w].value}}V.push(t)}return V},ocQ=function(y,W){var V="";
W=W.replace(h62,function(P,C){V=C;return""});
var w={};w.argumentIndex=V;W=z6E(W);for(var t=0;t<W.length;){var F=W[t].value;t++;var I=void 0;1==W[t].type&&(I=vcf(y,W[t].value));w[F.replace(/\s/g,"")]=I;t++}return w},KME=function(y,W){var V="",w=0;
W=W.replace(cYr,function(C,d,L){V=d;L&&(w=parseInt(L,10));return""});
var t={};t.argumentIndex=V;t.argumentOffset=w;W=z6E(W);for(var F=0;F<W.length;){var I=W[F].value;F++;var P=void 0;1==W[F].type&&(P=vcf(y,W[F].value));t[I.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=P;F++}return t},pCR=function(y,W){var V="";
W=W.replace(e6r,function(P,C){V=C;return""});
var w={};w.argumentIndex=V;w.argumentOffset=0;W=z6E(W);for(var t=0;t<W.length;){var F=W[t].value;t++;var I=void 0;1==W[t].type&&(I=vcf(y,W[t].value));w[F.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=I;t++}return w};
_.gcq.prototype.buildPlaceholder_=function(y){return"\ufddf_"+(y.length-1).toString(10)+"_"};var iDf;
iDf={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 vKG=function(){this.rdtfSymbols_=f8s||iDf;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
vKG.prototype.format=function(y,W){a:{W=TcA(this,W);switch(this.style_){case 2:if(W.NARROW!=void 0){W=W.NARROW;break a}case 1:if(W.SHORT!=void 0){W=W.SHORT;break a}default:W=W.LONG;break a}W=void 0}if(!this.alwaysNumeric_&&W&&W.R&&W.R[""+y])y=W.R[""+y];else if(W){var V=Math.abs(y);y=(new _.gcq("{N,plural,"+(y>0||y==0&&1/y==Infinity?W.F:W.P)+"}")).format({N:V})}else y="";return y};
var TcA=function(y,W){switch(W){default:case 0:return y.rdtfSymbols_.YEAR;case 1:return y.rdtfSymbols_.QUARTER;case 2:return y.rdtfSymbols_.MONTH;case 3:return y.rdtfSymbols_.WEEK;case 4:return y.rdtfSymbols_.DAY;case 5:return y.rdtfSymbols_.HOUR;case 6:return y.rdtfSymbols_.MINUTE;case 7:return y.rdtfSymbols_.SECOND}};var mMA=function(y,W,V,w,t,F,I,P){this.x0=y;this.y0=W;this.x1=V;this.y1=w;this.x2=t;this.y2=F;this.x3=I;this.y3=P};
mMA.prototype.clone=function(){return new mMA(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
mMA.prototype.equals=function(y){return this.x0==y.x0&&this.y0==y.y0&&this.x1==y.x1&&this.y1==y.y1&&this.x2==y.x2&&this.y2==y.y2&&this.x3==y.x3&&this.y3==y.y3};
var MYi=function(y,W){if(W==0)return y.x0;if(W==1)return y.x3;var V=R1(y.x0,y.x1,W),w=R1(y.x1,y.x2,W);y=R1(y.x2,y.x3,W);V=R1(V,w,W);w=R1(w,y,W);return R1(V,w,W)},qrE=function(y,W){var V=(W-y.x0)/(y.x3-y.x0);
if(V<=0)return 0;if(V>=1)return 1;for(var w=0,t=1,F=0,I=0;I<8;I++){F=MYi(y,V);var P=(MYi(y,V+1E-6)-F)/1E-6;if(Math.abs(F-W)<1E-6)return V;if(Math.abs(P)<1E-6)break;else F<W?w=V:t=V,V-=(F-W)/P}for(I=0;Math.abs(F-W)>1E-6&&I<8;I++)F<W?(w=V,V=(V+t)/2):(t=V,V=(V+w)/2),F=MYi(y,V);return V};var hB=function(){_.Bg.call(this);this.JSC$11353_name_="closure_frame"+UME++;this.iframesForDisposal_=[];uZR[this.JSC$11353_name_]=this},oa;
_.pF(hB,_.Bg);var uZR={},UME=0,Srf=function(y,W){var V=RS(y);ndi(W,function(w,t){Array.isArray(w)||(w=[w]);_.IA(w,function(F){F=V.JSC$9252_createDom("INPUT",{type:"hidden",name:t,value:F});y.appendChild(F)})})};
_.E=hB.prototype;_.E.JSC$11355_form_=null;_.E.JSC$11355_iframe_=null;_.E.iframeName_=null;_.E.nextIframeId_=0;_.E.JSC$11355_active_=!1;_.E.complete_=!1;_.E.success_=!1;_.E.lastContent_=null;_.E.JSC$11355_lastErrorCode_=0;_.E.iframeDisposalTimer_=null;
_.E.send=function(y,W,V,w){if(this.JSC$11355_active_)throw Error("xe");y=new _.gw(y);W=W?W.toUpperCase():"GET";V&&_.mx(y);oa||(oa=_.H8("FORM"),oa.acceptCharset="utf-8",V=oa.style,V.position="absolute",V.visibility="hidden",V.top=V.left="-10px",V.width=V.height="10px",V.overflow="hidden",document.body.appendChild(oa));this.JSC$11355_form_=oa;W=="GET"&&Srf(this.JSC$11355_form_,y.JSC$9958_queryData_);w&&Srf(this.JSC$11355_form_,w);V=y.toString();V=S1b(V);w=this.JSC$11355_form_;V=_.w$(XM(V));V!==void 0&&
(w.action=V);this.JSC$11355_form_.method=W;DMm(this);l8q(this)};
_.E.abort=function(y){if(this.JSC$11355_active_){var W=K8(this);if(W)if(sH(W))W.removeAllListeners(void 0);else if(W=AP(W)){var V=0,w;for(w in W.listeners)for(var t=W.listeners[w].concat(),F=0;F<t.length;++F)$c(t[F])&&++V}this.success_=this.JSC$11355_active_=this.complete_=!1;this.JSC$11355_lastErrorCode_=y||7;this.dispatchEvent("abort");xMQ(this)}};
_.E.disposeInternal=function(){this.JSC$11355_active_&&this.abort();hB.superClass_.disposeInternal.call(this);this.JSC$11355_iframe_&&kbq(this);l8q(this);this.JSC$11355_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11355_form_=null;this.JSC$11355_lastErrorCode_=0;delete uZR[this.JSC$11353_name_]};
_.E.isComplete=function(){return this.complete_};
_.E.isSuccess=function(){return this.success_};
_.E.isActive=function(){return this.JSC$11355_active_};
_.E.getResponseText=function(){return this.lastContent_};
_.E.getLastError=function(){return _.KbE(this.JSC$11355_lastErrorCode_)};
var DMm=function(y){y.JSC$11355_active_=!0;y.complete_=!1;y.JSC$11355_lastErrorCode_=0;y.iframeName_=y.JSC$11353_name_+"_"+(y.nextIframeId_++).toString(36);y.JSC$11355_iframe_=RS(y.JSC$11355_form_).JSC$9252_createDom("IFRAME",{name:y.iframeName_,id:y.iframeName_});var W=y.JSC$11355_iframe_.style;W.visibility="hidden";W.width=W.height="10px";W.display="none";_.qW?W.marginTop=W.marginLeft="-10px":(W.position="absolute",W.top=W.left="-10px");RS(y.JSC$11355_form_).JSC$9250_document_.body.appendChild(y.JSC$11355_iframe_);
W=y.iframeName_+"_inner";var V=tPQ(y.JSC$11355_iframe_);if(document.baseURI){var w=UP(W);w='<head><base href="'+UP(document.baseURI)+'"></head><body><iframe id="'+w+'" name="'+w+'"></iframe>';w=Nl(w)}else w=UP(W),w=Nl('<body><iframe id="'+w+'" name="'+w+'"></iframe>');V.write(Ih(w));_.XZ(V.getElementById(W),"load",y.onIframeLoaded_,!1,y);w=sf("TEXTAREA",y.JSC$11355_form_);for(var t=0,F=w.length;t<F;t++){var I=w[t].value;Ptf(w[t])!=I&&(_.Zx(w[t],I),w[t].value=I)}w=V.importNode(y.JSC$11355_form_,!0);
w.target=W;w.action=y.JSC$11355_form_.action;V.body.appendChild(w);t=sf("SELECT",y.JSC$11355_form_);F=sf("SELECT",w);I=0;for(var P=t.length;I<P;I++)for(var C=sf("OPTION",t[I]),d=sf("OPTION",F[I]),L=0,z=C.length;L<z;L++)d[L].selected=C[L].selected;t=sf("INPUT",y.JSC$11355_form_);F=sf("INPUT",w);I=0;for(P=t.length;I<P;I++)if(t[I].type=="file"&&t[I].value!=F[I].value){y.JSC$11355_form_.target=W;w=y.JSC$11355_form_;break}try{y.errorHandled_=!1,w.submit(),V.close(),_.MW&&setTimeout(y.testForFirefoxSilentError_.bind(y),
250)}catch(c){_.Ys(V.getElementById(W),"load",y.onIframeLoaded_,!1,y),V.close(),p8(y,2)}};
hB.prototype.onIframeLoaded_=function(){_.Ys(K8(this),"load",this.onIframeLoaded_,!1,this);try{var y=this.JSC$11355_iframe_?tPQ(K8(this)):null;this.complete_=!0;this.JSC$11355_active_=!1;try{var W=y.body;this.lastContent_=W.textContent||W.innerText}catch(t){var V=1}var w;V||typeof this.errorChecker_!="function"||(w=this.errorChecker_(y))&&(V=4);V?p8(this,V):(this.success_=!0,this.JSC$11355_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),xMQ(this))}catch(t){p8(this,1)}};
var p8=function(y,W){y.errorHandled_||(y.success_=!1,y.JSC$11355_active_=!1,y.complete_=!0,y.JSC$11355_lastErrorCode_=W,y.dispatchEvent("complete"),y.dispatchEvent("error"),xMQ(y),y.errorHandled_=!0)},xMQ=function(y){kbq(y);
l8q(y);y.JSC$11355_form_=null;y.dispatchEvent("ready")},kbq=function(y){var W=y.JSC$11355_iframe_;
W&&(W.onreadystatechange=null,W.onload=null,W.onerror=null,y.iframesForDisposal_.push(W));y.iframeDisposalTimer_&&(clearTimeout(y.iframeDisposalTimer_),y.iframeDisposalTimer_=null);_.MW?y.iframeDisposalTimer_=setTimeout(y.disposeIframes_.bind(y),2E3):y.disposeIframes_();y.JSC$11355_iframe_=null;y.iframeName_=null};
hB.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var y=this.iframesForDisposal_.pop();_.ku(y)}};
var l8q=function(y){y.JSC$11355_form_&&y.JSC$11355_form_==oa&&_.G7(y.JSC$11355_form_)},K8=function(y){return y.JSC$11355_iframe_?tPQ(y.JSC$11355_iframe_).getElementById(y.iframeName_+"_inner"):null};
hB.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11355_active_){var y=this.JSC$11355_iframe_?tPQ(K8(this)):null;y&&!Han(y,"documentUri")?(_.Ys(K8(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?p8(this,3):p8(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.id=function(y){return y=="\r"||y=="\n"||y==" "||y=="\t"};var sUf;_.f8=function(y){this.errorMessage_=null;this.result_=[];this.JSC$11357_buffer_="";this.stack_=[];this.JSC$11357_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!y||!y.deliverMessageAsRawString)};
sUf={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};_.f8.prototype.isInputValid=function(){return this.streamState_!=3};
_.f8.prototype.done=function(){return this.streamState_===2};
var Tm=function(y,W,V){y.streamState_=3;y.errorMessage_="The stream is broken @"+y.JSC$11357_pos_+"/"+V+". With input:\n"+W;throw Error(y.errorMessage_);};
_.f8.prototype.acceptsBinaryInput=function(){return!1};
_.f8.prototype.parse=function(y){function W(){for(;c<y.length;)if(_.id(y[c]))c++,F.JSC$11357_pos_++;else break;return c<d}
function V(){for(var f;;){f=y[c++];if(!f)break;F.JSC$11357_pos_++;switch(F.state_){case C.INIT:f==="{"?F.state_=C.OBJECT_OPEN:f==="["?F.state_=C.ARRAY_OPEN:_.id(f)||Tm(F,y,c);continue;case C.KEY_START:case C.OBJECT_OPEN:if(_.id(f))continue;if(F.state_===C.KEY_START)I.push(C.KEY_END);else if(f==="}"){t("{}");F.state_=w();continue}else I.push(C.OBJECT_END);f==='"'?F.state_=C.STRING:Tm(F,y,c);continue;case C.KEY_END:case C.OBJECT_END:if(_.id(f))continue;f===":"?(F.state_===C.OBJECT_END&&(I.push(C.OBJECT_END),
F.depth_++),F.state_=C.VALUE):f==="}"?(F.depth_--,t(),F.state_=w()):f===","?(F.state_===C.OBJECT_END&&I.push(C.OBJECT_END),F.state_=C.KEY_START):Tm(F,y,c);continue;case C.ARRAY_OPEN:case C.VALUE:if(_.id(f))continue;if(F.state_===C.ARRAY_OPEN)if(F.depth_++,F.state_=C.VALUE,f==="]"){F.depth_--;if(F.depth_===0){F.state_=C.ARRAY_END;return}t("[]");F.state_=w();continue}else I.push(C.ARRAY_END);f==='"'?F.state_=C.STRING:f==="{"?F.state_=C.OBJECT_OPEN:f==="["?F.state_=C.ARRAY_OPEN:f==="t"?F.state_=C.TRUE1:
f==="f"?F.state_=C.FALSE1:f==="n"?F.state_=C.NULL1:f!=="-"&&("0123456789".indexOf(f)!==-1?F.state_=C.NUM_DIGIT:Tm(F,y,c));continue;case C.ARRAY_END:if(f===",")I.push(C.ARRAY_END),F.state_=C.VALUE,F.depth_===1&&(z=c);else if(f==="]"){F.depth_--;if(F.depth_===0)return;t();F.state_=w()}else if(_.id(f))continue;else Tm(F,y,c);continue;case C.STRING:var U=c;a:for(;;){for(;F.unicodeCount_>0;)if(f=y[c++],F.unicodeCount_===4?F.unicodeCount_=0:F.unicodeCount_++,!f)break a;if(f==='"'&&!F.slashed_){F.state_=
w();break}if(f==="\\"&&!F.slashed_&&(F.slashed_=!0,f=y[c++],!f))break;if(F.slashed_)if(F.slashed_=!1,f==="u"&&(F.unicodeCount_=1),f=y[c++])continue;else break;P.lastIndex=c;f=P.exec(y);if(!f){c=y.length+1;break}c=f.index+1;f=y[f.index];if(!f)break}F.JSC$11357_pos_+=c-U;continue;case C.TRUE1:if(!f)continue;f==="r"?F.state_=C.TRUE2:Tm(F,y,c);continue;case C.TRUE2:if(!f)continue;f==="u"?F.state_=C.TRUE3:Tm(F,y,c);continue;case C.TRUE3:if(!f)continue;f==="e"?F.state_=w():Tm(F,y,c);continue;case C.FALSE1:if(!f)continue;
f==="a"?F.state_=C.FALSE2:Tm(F,y,c);continue;case C.FALSE2:if(!f)continue;f==="l"?F.state_=C.FALSE3:Tm(F,y,c);continue;case C.FALSE3:if(!f)continue;f==="s"?F.state_=C.FALSE4:Tm(F,y,c);continue;case C.FALSE4:if(!f)continue;f==="e"?F.state_=w():Tm(F,y,c);continue;case C.NULL1:if(!f)continue;f==="u"?F.state_=C.NULL2:Tm(F,y,c);continue;case C.NULL2:if(!f)continue;f==="l"?F.state_=C.NULL3:Tm(F,y,c);continue;case C.NULL3:if(!f)continue;f==="l"?F.state_=w():Tm(F,y,c);continue;case C.NUM_DECIMAL_POINT:f===
"."?F.state_=C.NUM_DIGIT:Tm(F,y,c);continue;case C.NUM_DIGIT:if("0123456789.eE+-".indexOf(f)!==-1)continue;else c--,F.JSC$11357_pos_--,F.state_=w();continue;default:Tm(F,y,c)}}}
function w(){var f=I.pop();return f!=null?f:C.VALUE}
function t(f){F.depth_>1||(f||(f=z===-1?F.JSC$11357_buffer_+y.substring(L,c):y.substring(z,c)),F.deliverMessageAsRawString_?F.result_.push(f):F.result_.push(JSON.parse(f)),z=c)}
for(var F=this,I=F.stack_,P=F.stringInputPattern_,C=sUf,d=y.length,L=0,z=-1,c=0;c<d;)switch(F.streamState_){case 3:return Tm(F,y,c),null;case 2:return W()&&Tm(F,y,c),null;case 0:if(W()){var K=y[c++];F.JSC$11357_pos_++;if(K==="["){F.streamState_=1;L=c;F.state_=C.ARRAY_OPEN;continue}else Tm(F,y,c)}return null;case 1:return V(),F.depth_===0&&F.state_==C.ARRAY_END?(F.streamState_=2,F.JSC$11357_buffer_=y.substring(c)):F.JSC$11357_buffer_=z===-1?F.JSC$11357_buffer_+y.substring(L):y.substring(z),F.result_.length>
0?(K=F.result_,F.result_=[],K):null}return null};_.pF(_.o2,jX);KM.prototype.getValue=function(){return this.JSC$11365_value_};
KM.prototype.clone=function(){return new KM(this.JSC$11365_key_,this.JSC$11365_value_)};var mB=function(y){this.nodes_=[];if(y)a:{if(y instanceof mB){var W=y.getKeys();y=y.getValues();if(this.getCount()<=0){for(var V=this.nodes_,w=0;w<W.length;w++)V.push(new KM(W[w],y[w]));break a}}else W=_.Gc.getKeys(y),y=_.Gc.getValues(y);for(V=0;V<W.length;V++)this.insert(W[V],y[V])}};
_.E=mB.prototype;_.E.insert=function(y,W){var V=this.nodes_;V.push(new KM(y,W));y=V.length-1;W=this.nodes_;for(V=W[y];y>0;){var w=y-1>>1;if(W[w].JSC$11365_key_>V.JSC$11365_key_)W[y]=W[w],y=w;else break}W[y]=V};
_.E.remove=function(){var y=this.nodes_,W=y.length,V=y[0];if(!(W<=0)){if(W==1)y.length=0;else{y[0]=y.pop();y=0;W=this.nodes_;for(var w=W.length,t=W[y];y<w>>1;){var F=y*2+1,I=y*2+2;F=I<w&&W[I].JSC$11365_key_<W[F].JSC$11365_key_?I:F;if(W[F].JSC$11365_key_>t.JSC$11365_key_)break;W[y]=W[F];y=F}W[y]=t}return V.getValue()}};
_.E.peek=function(){var y=this.nodes_;if(y.length!=0)return y[0].getValue()};
_.E.getValues=function(){for(var y=this.nodes_,W=[],V=y.length,w=0;w<V;w++)W.push(y[w].getValue());return W};
_.E.getKeys=function(){for(var y=this.nodes_,W=[],V=y.length,w=0;w<V;w++)W.push(y[w].JSC$11365_key_);return W};
_.E.containsValue=function(y){return this.nodes_.some(function(W){return W.getValue()==y})};
_.E.containsKey=function(y){return this.nodes_.some(function(W){return W.JSC$11365_key_==y})};
_.E.clone=function(){return new mB(this)};
_.E.getCount=function(){return this.nodes_.length};
_.E.isEmpty=function(){return this.nodes_.length===0};
_.E.clear=function(){this.nodes_.length=0};_.Mf=function(y,W){this.JSC$11371_map_={};this.JSC$11371_keys_=[];this.version_=this.size=0;var V=arguments.length;if(V>1){if(V%2)throw Error("sa");for(var w=0;w<V;w+=2)this.set(arguments[w],arguments[w+1])}else y&&this.addAll(y)};
_.E=_.Mf.prototype;_.E.getCount=function(){return this.size};
_.E.getValues=function(){qf(this);for(var y=[],W=0;W<this.JSC$11371_keys_.length;W++)y.push(this.JSC$11371_map_[this.JSC$11371_keys_[W]]);return y};
_.E.getKeys=function(){qf(this);return this.JSC$11371_keys_.concat()};
_.E.containsKey=function(y){return this.has(y)};
_.E.has=function(y){return UJ(this.JSC$11371_map_,y)};
_.E.containsValue=function(y){for(var W=0;W<this.JSC$11371_keys_.length;W++){var V=this.JSC$11371_keys_[W];if(UJ(this.JSC$11371_map_,V)&&this.JSC$11371_map_[V]==y)return!0}return!1};
_.E.equals=function(y,W){if(this===y)return!0;if(this.size!=y.getCount())return!1;W=W||AY2;qf(this);for(var V,w=0;V=this.JSC$11371_keys_[w];w++)if(!W(this.get(V),y.get(V)))return!1;return!0};
var AY2=function(y,W){return y===W};
_.Mf.prototype.isEmpty=function(){return this.size==0};
_.Mf.prototype.clear=function(){this.JSC$11371_map_={};this.version_=this.size=this.JSC$11371_keys_.length=0};
_.Mf.prototype.remove=function(y){return this.delete(y)};
_.Mf.prototype.delete=function(y){return UJ(this.JSC$11371_map_,y)?(delete this.JSC$11371_map_[y],--this.size,this.version_++,this.JSC$11371_keys_.length>2*this.size&&qf(this),!0):!1};
var qf=function(y){if(y.size!=y.JSC$11371_keys_.length){for(var W=0,V=0;W<y.JSC$11371_keys_.length;){var w=y.JSC$11371_keys_[W];UJ(y.JSC$11371_map_,w)&&(y.JSC$11371_keys_[V++]=w);W++}y.JSC$11371_keys_.length=V}if(y.size!=y.JSC$11371_keys_.length){W={};for(w=V=0;V<y.JSC$11371_keys_.length;){var t=y.JSC$11371_keys_[V];UJ(W,t)||(y.JSC$11371_keys_[w++]=t,W[t]=1);V++}y.JSC$11371_keys_.length=w}};
_.E=_.Mf.prototype;_.E.get=function(y,W){return UJ(this.JSC$11371_map_,y)?this.JSC$11371_map_[y]:W};
_.E.set=function(y,W){UJ(this.JSC$11371_map_,y)||(this.size+=1,this.JSC$11371_keys_.push(y),this.version_++);this.JSC$11371_map_[y]=W};
_.E.addAll=function(y){if(y instanceof _.Mf)for(var W=y.getKeys(),V=0;V<W.length;V++)this.set(W[V],y.get(W[V]));else for(W in y)this.set(W,y[W])};
_.E.forEach=function(y,W){for(var V=this.getKeys(),w=0;w<V.length;w++){var t=V[w],F=this.get(t);y.call(W,F,t,this)}};
_.E.clone=function(){return new _.Mf(this)};
_.E.transpose=function(){for(var y=new _.Mf,W=0;W<this.JSC$11371_keys_.length;W++){var V=this.JSC$11371_keys_[W];y.set(this.JSC$11371_map_[V],V)}return y};
_.E.keys=function(){return C4E(this.__iterator__(!0)).toEs6()};
_.E.values=function(){return C4E(this.__iterator__(!1)).toEs6()};
_.E.entries=function(){var y=this;return fPi(this.keys(),function(W){return[W,y.get(W)]})};
_.E.__iterator__=function(y){qf(this);var W=0,V=this.version_,w=this,t=new fo;t.next=function(){if(V!=w.version_)throw Error("ye");if(W>=w.JSC$11371_keys_.length)return Tf;var F=w.JSC$11371_keys_[W++];return mF(y?F:w.JSC$11371_map_[F])};
return t};
var UJ=function(y,W){return Object.prototype.hasOwnProperty.call(y,W)};var BcI=function(){this.JSC$11374_map_=new _.Mf;this.JSC$11374_head_=new Yrm("");this.JSC$11374_head_.next=this.JSC$11374_head_.prev=this.JSC$11374_head_},JYR=function(y,W){if(W=y.JSC$11374_map_.get(W))W.remove(),y.insert_(W);
return W};
_.E=BcI.prototype;_.E.get=function(y,W){return(y=JYR(this,y))?y.value:W};
_.E.set=function(y,W){var V=JYR(this,y);V?V.value=W:(V=new Yrm(y,W),this.JSC$11374_map_.set(y,V),this.insert_(V))};
_.E.peek=function(){return this.JSC$11374_head_.next.value};
_.E.shift=function(){return R62(this,this.JSC$11374_head_.next)};
_.E.pop=function(){return R62(this,this.JSC$11374_head_.prev)};
_.E.remove=function(y){return(y=this.JSC$11374_map_.get(y))?(this.removeNode(y),!0):!1};
_.E.removeNode=function(y){y.remove();this.JSC$11374_map_.remove(y.key)};
_.E.getCount=function(){return this.JSC$11374_map_.getCount()};
_.E.isEmpty=function(){return this.JSC$11374_map_.isEmpty()};
_.E.getKeys=function(){return this.map(function(y,W){return W})};
_.E.getValues=function(){return this.map(function(y){return y})};
_.E.contains=function(y){return this.some(function(W){return W==y})};
_.E.containsKey=function(y){return this.JSC$11374_map_.containsKey(y)};
_.E.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11374_head_.prev)};
_.E.forEach=function(y,W){for(var V=this.JSC$11374_head_.next;V!=this.JSC$11374_head_;V=V.next)y.call(W,V.value,V.key,this)};
_.E.map=function(y,W){for(var V=[],w=this.JSC$11374_head_.next;w!=this.JSC$11374_head_;w=w.next)V.push(y.call(W,w.value,w.key,this));return V};
_.E.some=function(y,W){for(var V=this.JSC$11374_head_.next;V!=this.JSC$11374_head_;V=V.next)if(y.call(W,V.value,V.key,this))return!0;return!1};
_.E.every=function(y,W){for(var V=this.JSC$11374_head_.next;V!=this.JSC$11374_head_;V=V.next)if(!y.call(W,V.value,V.key,this))return!1;return!0};
_.E.insert_=function(y){y.next=this.JSC$11374_head_.next;y.prev=this.JSC$11374_head_;this.JSC$11374_head_.next=y;for(y.next.prev=y;this.getCount()>100;)this.removeNode(this.JSC$11374_head_.prev)};
var R62=function(y,W){y.JSC$11374_head_!=W&&y.removeNode(W);return W.value},Yrm=function(y,W){this.key=y;
this.value=W};
Yrm.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var jUQ=function(){mB.apply(this,arguments)};
_.p(jUQ,mB);jUQ.prototype.enqueue=function(y,W){this.insert(y,W)};var $MR=function(){var y=Error();y.name="SecurityError";throw y;},c5y=function(){return{get opener(){return null},
get closed(){return!0},get location(){$MR()},get document(){$MR()},postMessage:function(){},
close:function(){},
focus:function(){}}};var c$d={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 Kqu={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 ncK={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(Kqu).join("|");var HD6=function(){function y(P){P.substr(-1)!==";"&&(P+=";");return I(P)}
for(var W=Object.keys(ncK).sort(oWP),V=Object.keys(Kqu).sort(oWP),w=0,t=0;w<V.length;w++)W[t]===V[w]?(V[w]+=";?",t++):V[w]+=";";var F=new RegExp("&(?:"+V.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),I=p8z();return function(P){return String(P).replace(F,y)}}();/*

 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 XCf={};var a8J=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"),GbA=/[\\&]/,rYm=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),bDs=RegExp('[&<>"]',"g"),QUz=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),ZDi=function(y){return y.charCodeAt(0)===92?y.charAt(1):HD6(y)},ylA=function(y){return GbA.test(y)?y.replace(rYm,ZDi):y},Wmf=function(y){try{var W,V="";
if(typeof t!=="string"){var w=t;var t=";/?:@&=+$,-_.!~*'()#"}typeof w==="undefined"&&(w=!0);var F,I=XCf[t];if(I)var P=I;else{I=XCf[t]=[];for(F=0;F<128;F++){var C=String.fromCharCode(F);/^[0-9a-z]$/i.test(C)?I.push(C):I.push("%"+("0"+F.toString(16).toUpperCase()).slice(-2))}for(F=0;F<t.length;F++)I[t.charCodeAt(F)]=t[F];P=I}var d=0;for(W=y.length;d<W;d++){var L=y.charCodeAt(d);if(w&&L===37&&d+2<W&&/^[0-9a-f]{2}$/i.test(y.slice(d+1,d+3)))V+=y.slice(d,d+3),d+=2;else if(L<128)V+=P[L];else if(L>=55296&&
L<=57343){if(L>=55296&&L<=56319&&d+1<W){var z=y.charCodeAt(d+1);if(z>=56320&&z<=57343){V+=encodeURIComponent(y[d]+y[d+1]);d++;continue}}V+="%EF%BF%BD"}else V+=encodeURIComponent(y[d])}return V}catch(c){return y}},VlQ=function(y){switch(y){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return y}},ud=function(y,W){return bDs.test(y)?W?y.replace(QUz,VlQ):y.replace(bDs,VlQ):y};/*

 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 Sx;if(String.fromCodePoint)Sx=function(y){try{return String.fromCodePoint(y)}catch(W){if(W instanceof RangeError)return String.fromCharCode(65533);throw W;}};
else{var waf=String.fromCharCode,tlI=Math.floor;Sx=function(){var y=[],W=-1,V=arguments.length;if(!V)return"";for(var w="";++W<V;){var t=Number(arguments[W]);if(!isFinite(t)||t<0||t>1114111||tlI(t)!==t)return String.fromCharCode(65533);if(t<=65535)y.push(t);else{t-=65536;var F=(t>>10)+55296;t=t%1024+56320;y.push(F,t)}if(W+1===V||y.length>16384)w+=waf.apply(null,y),y.length=0}return w}};var Fmf=function(y){this.root=this.current=y;this.entering=!0};
Fmf.prototype.next=function(){var y=this.current,W=this.entering;if(y===null)return null;a:switch(y._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 V=!0;break a;default:V=!1}W&&V?y._firstChild?(this.current=y._firstChild,this.entering=!0):this.entering=!1:y===this.root?this.current=null:y._next===null?(this.current=
y._parent,this.entering=!1):(this.current=y._next,this.entering=!0);return{entering:W,node:y}};
var Ty=function(y,W){this._type=y;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=W;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};
Ty.prototype.appendChild=function(y){y.unlink();y._parent=this;this._lastChild?(this._lastChild._next=y,y._prev=this._lastChild):this._firstChild=y;this._lastChild=y};
Ty.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 ESK=function(y,W){W.unlink();W._next=y._next;W._next&&(W._next._prev=W);W._prev=y;y._next=W;W._parent=y._parent;W._next||(W._parent._lastChild=W)};
Ty.prototype.insertBefore=function(y){y.unlink();y._prev=this._prev;y._prev&&(y._prev._next=y);y._next=this;this._prev=y;y._parent=this._parent;y._prev||(y._parent._firstChild=y)};
_.CM.Object.defineProperties(Ty.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(y){this._literal=y}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(y){this._destination=y}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(y){this._title=y}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(y){this._info=y}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(y){this._level=y}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(y){this._listData.type=y}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(y){this._listData.tight=y}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(y){this._listData.start=y}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(y){this._onEnter=y}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(y){this._onExit=y}}});var ilv=/[ \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,
fxv={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 NLq=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]/),
IQI=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),gSE=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),PF6=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),CFz=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),O5q=/`+/,vSq=/^`+/,d46=/\.\.\./g,Lmi=/--+/g,zAJ=/^<([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])?)*)>/,
clK=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,eAz=/^ *(?:\n *)?/,hAr=/^[ \t\n\x0b\x0c\x0d]/,oS6=/[ \t\n\x0b\x0c\x0d]+/g,KmI=/^\s/,pai=/ *$/,i56=/^ */,fQ6=/^ *(?:\n|$)/,TLE=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),m4z=/^[^\n`\[\]\\!<&*_'"]+/m,D4=function(y){var W=new Ty("text");W._literal=y;return W},ld=function(y){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=y||{}};
ld.prototype.match=function(y){y=y.exec(this.subject.slice(this.pos));if(y===null)return null;this.pos+=y.index+y[0].length;return y[0]};
ld.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var xf=function(y){y.match(eAz);return!0},Ml6=function(y,W,V){var w=0;
var t=y.pos;if(W===39||W===34)w++,y.pos++;else for(;y.peek()===W;)w++,y.pos++;if(w===0)w=null;else{var F=t===0?"\n":y.subject.charAt(t-1);var I=y.peek();I=I===-1?"\n":Sx(I);var P=KmI.test(I);I=NLq.test(I);var C=KmI.test(F);var d=NLq.test(F);F=!P&&!(I&&!C&&!d);P=!C&&!(d&&!P&&!I);W===95?(C=F&&(!P||d),I=P&&(!F||I)):(C=W===39||W===34?F&&!P:F,I=P);y.pos=t;w={numdelims:w,can_open:C,can_close:I}}if(!w)return!1;t=w.numdelims;I=y.pos;y.pos+=t;I=W===39?"\u2019":W===34?"\u201c":y.subject.slice(I,y.pos);I=D4(I);
V.appendChild(I);y.delimiters={cc:W,numdelims:t,origdelims:t,node:I,previous:y.delimiters,next:null,can_open:w.can_open,can_close:w.can_close};y.delimiters.previous!==null&&(y.delimiters.previous.next=y.delimiters);return!0},qU2=function(y,W){W.previous!==null&&(W.previous.next=W.next);
W.next===null?y.delimiters=W.previous:W.next.previous=W.previous},U42=function(y,W){var V,w,t=[],F=!1;
t[95]=W;t[42]=W;t[39]=W;t[34]=W;for(V=y.delimiters;V!==null&&V.previous!==W;)V=V.previous;for(;V!==null;){var I=V.cc;if(V.can_close){var P=V.previous;for(w=!1;P!==null&&P!==W&&P!==t[I];){F=(V.can_open||P.can_close)&&(P.origdelims+V.origdelims)%3===0;if(P.cc===V.cc&&P.can_open&&!F){w=!0;break}P=P.previous}var C=V;if(I===42||I===95)if(w){var d=V.numdelims>=2&&P.numdelims>=2?2:1;var L=P.node;var z=V.node;P.numdelims-=d;V.numdelims-=d;L._literal=L._literal.slice(0,L._literal.length-d);z._literal=z._literal.slice(0,
z._literal.length-d);var c=new Ty(d===1?"emph":"strong");for(d=L._next;d&&d!==z;){var K=d._next;d.unlink();c.appendChild(d);d=K}ESK(L,c);d=P;K=V;d.next!==K&&(d.next=K,K.previous=d);P.numdelims===0&&(L.unlink(),qU2(y,P));V.numdelims===0&&(z.unlink(),P=V.next,qU2(y,V),V=P)}else V=V.next;else I===39?(V.node._literal="\u2019",w&&(P.node._literal="\u2018"),V=V.next):I===34&&(V.node._literal="\u201d",w&&(P.node.literal="\u201c"),V=V.next);w||F||(t[I]=C.previous,C.can_open||qU2(y,C))}else V=V.next}for(;y.delimiters!==
null&&y.delimiters!==W;)qU2(y,y.delimiters)},u2z=function(y){y=y.match(IQI);
return y===null?null:ylA(y.substr(1,y.length-2))},SUs=function(y){var W=y.match(gSE);
if(W===null){W=y.pos;for(var V=0,w;(w=y.peek())!==-1;)if(w===92)y.pos+=1,y.peek()!==-1&&(y.pos+=1);else if(w===40)y.pos+=1,V+=1;else if(w===41)if(V<1)break;else y.pos+=1,--V;else if(hAr.exec(Sx(w))!==null)break;else y.pos+=1;W=y.subject.substr(W,y.pos-W);return Wmf(ylA(W))}return Wmf(ylA(W.substr(1,W.length-2)))},D4A=function(y){y=y.match(TLE);
return y===null||y.length>1001?0:y.length},lQ6=function(y,W,V,w){y.brackets!==null&&(y.brackets.bracketAfter=!0);
y.brackets={node:W,previous:y.brackets,previousDelimiter:y.delimiters,index:V,image:w,active:!0}},x4K=function(y,W){var V;
return(V=y.match(m4z))?(y.options.smart?W.appendChild(D4(V.replace(d46,"\u2026").replace(Lmi,function(w){var t=0,F=0;w.length%3===0?F=w.length/3:w.length%2===0?t=w.length/2:w.length%3===2?(t=1,F=(w.length-2)/3):(t=2,F=(w.length-4)/3);w="";var I;for(I=0;I<F;I++)w+="\u2014";for(I=0;I<t;I++)w+="\u2013";return w}))):W.appendChild(D4(V)),!0):!1},kPm=function(y,W,V){y.subject=W;
y.pos=0;W=y.pos;var w=D4A(y);if(w===0)return 0;var t=y.subject.substr(0,w);if(y.peek()===58)y.pos++;else return y.pos=W,0;xf(y);w=SUs(y);if(w===null||w.length===0)return y.pos=W,0;var F=y.pos;xf(y);var I=u2z(y);I===null&&(I="",y.pos=F);var P=!0;y.match(fQ6)===null&&(I===""?P=!1:(I="",y.pos=F,P=y.match(fQ6)!==null));if(!P)return y.pos=W,0;t=T4P(t);if(t==="")return y.pos=W,0;V[t]||(V[t]={destination:w,title:I});return y.pos-W},sdA=function(y,W){var V,w=y.peek();
if(w===-1)return!1;switch(w){case 10:y.pos+=1;if((V=W._lastChild)&&V.type==="text"&&V._literal[V._literal.length-1]===" "){var t=V._literal[V._literal.length-2]===" ";V._literal=V._literal.replace(pai,"");W.appendChild(new Ty(t?"linebreak":"softbreak"))}else W.appendChild(new Ty("softbreak"));y.match(i56);V=!0;break;case 92:V=y.subject;y.pos+=1;y.peek()===10?(y.pos+=1,V=new Ty("linebreak"),W.appendChild(V)):PF6.test(V.charAt(y.pos))?(W.appendChild(D4(V.charAt(y.pos))),y.pos+=1):W.appendChild(D4("\\"));
V=!0;break;case 96:a:if(V=y.match(vSq),V===null)V=!1;else{t=y.pos;for(var F;(F=y.match(O5q))!==null;)if(F===V){F=new Ty("code");F._literal=y.subject.slice(t,y.pos-V.length).trim().replace(oS6," ");W.appendChild(F);V=!0;break a}y.pos=t;W.appendChild(D4(V));V=!0}break;case 42:case 95:V=Ml6(y,w,W);break;case 39:case 34:V=y.options.smart&&Ml6(y,w,W);break;case 91:V=y.pos;y.pos+=1;t=D4("[");W.appendChild(t);lQ6(y,t,V,!1);V=!0;break;case 33:V=y.pos;y.pos+=1;y.peek()===91?(y.pos+=1,t=D4("!["),W.appendChild(t),
lQ6(y,t,V+1,!0)):W.appendChild(D4("!"));V=!0;break;case 93:var I,P=!1,C;y.pos+=1;var d=y.pos;t=y.brackets;if(t===null)W.appendChild(D4("]"));else if(t.active){V=t.image;var L=y.pos;y.peek()===40&&(y.pos++,xf(y)&&(F=SUs(y))!==null&&xf(y)&&(hAr.test(y.subject.charAt(y.pos-1))&&(I=u2z(y)),1)&&xf(y)&&y.peek()===41?(y.pos+=1,P=!0):y.pos=L);if(!P){var z=y.pos,c=D4A(y);c>2?C=y.subject.slice(z,z+c):t.bracketAfter||(C=y.subject.slice(t.index,d));c===0&&(y.pos=L);C&&(C=y.refmap[T4P(C)])&&(F=C.destination,I=
C.title,P=!0)}if(P){d=new Ty(V?"image":"link");d._destination=F;d._title=I||"";for(F=t.node._next;F;)I=F._next,F.unlink(),d.appendChild(F),F=I;W.appendChild(d);U42(y,t.previousDelimiter);y.brackets=y.brackets.previous;t.node.unlink();if(!V)for(t=y.brackets;t!==null;)t.image||(t.active=!1),t=t.previous}else y.brackets=y.brackets.previous,y.pos=d,W.appendChild(D4("]"))}else W.appendChild(D4("]")),y.brackets=y.brackets.previous;V=!0;break;case 60:(V=y.match(zAJ))?(V=V.slice(1,V.length-1),t=new Ty("link"),
t._destination=Wmf("mailto:"+V),t._title="",t.appendChild(D4(V)),W.appendChild(t),V=!0):(V=y.match(clK))?(V=V.slice(1,V.length-1),t=new Ty("link"),t._destination=Wmf(V),t._title="",t.appendChild(D4(V)),W.appendChild(t),V=!0):V=!1;V||(V=y.match(a8J),V===null?V=!1:(t=new Ty("html_inline"),t._literal=V,W.appendChild(t),V=!0));break;case 38:(V=y.match(CFz))?(W.appendChild(D4(HD6(V))),V=!0):V=!1;break;default:V=x4K(y,W)}V||(y.pos+=1,W.appendChild(D4(Sx(w))));return!0};
ld.prototype.parseInlines=function(y){this.subject=y._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;sdA(this,y););y._string_content=null;U42(this,null)};
ld.prototype.parse=ld.prototype.parseInlines;var Alz=[/./,/^<(?: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")],YUK=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],BLz=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Jls=/^[#`~*+_=<>0-9-\|]|\|/,RAf=/[^ \t\f\v\r\n]/,jd2=/^[*+-]/,$4r=/^(\d{1,9})([.)])/,nSm=/^#{1,6}(?:[ \t]+|$)/,H52=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Xaf=/^(?:`{3,}|~{3,})(?= *$)/,aQf=/^(?:=+|-+)[ \t]*$/,GPi=/\r\n|\n|\r/,Mdj=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,qvR=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,rlJ={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(y){return y!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(y,W){for(y=W._firstChild;y;){if(m_v(y)&&y._next){W._listData.tight=!1;break}for(var V=y._firstChild;V;){if(m_v(V)&&(y._next||V._next)){W._listData.tight=!1;break}V=V._next}y=y._next}},
canContain:function(y){return y==="item"},
acceptsLines:!1},block_quote:{continue:function(y){var W=y.currentLine;if(y.indented||iu(W,y.nextNonspace)!==62)return 1;kf(y);sJ(y,1,!1);pM(iu(W,y.offset))&&sJ(y,1,!0);return 0},
finalize:function(){},
canContain:function(y){return y!=="item"},
acceptsLines:!1},item:{continue:function(y,W){if(y.blank){if(W._firstChild==null)return 1;kf(y)}else if(y.indent>=W._listData.markerOffset+W._listData.padding)sJ(y,W._listData.markerOffset+W._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(y){return y!=="item"&&!U_n(y)},
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(y,W){var V=y.currentLine,w=y.indent;if(W._isFenced){if((w=w<=3&&V.charAt(y.nextNonspace)===W._fenceChar&&V.slice(y.nextNonspace).match(Xaf))&&w[0].length>=W._fenceLength)return y.finalize(W,y.lineNumber),2;for(W=W._fenceOffset;W>0&&pM(iu(V,y.offset));)sJ(y,1,!0),W--}else if(w>=4)sJ(y,4,!0);else if(y.blank)kf(y);else return 1;return 0},
finalize:function(y,W){if(W._isFenced){var V=W._string_content,w=V.indexOf("\n");y=V.slice(0,w);V=V.slice(w+1);W.info=ylA(y.trim());W._literal=V}else W._literal=W._string_content.replace(/(\n *)+$/,"\n");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(y,W){return!y.blank||W._htmlBlockType!==6&&W._htmlBlockType!==7?0:1},
finalize:function(y,W){W._literal=W._string_content.replace(/(\n *)+$/,"");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(y){return y.blank?1:0},
finalize:function(y,W){for(var V,w=!1;iu(W._string_content,0)===91&&(V=kPm(y.inlineParser,W._string_content,y.refmap));)W._string_content=W._string_content.slice(V),w=!0;w&&!RAf.test(W._string_content)&&W.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(y){return fM(y.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(y){return y=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(y,W){if(!W._rowIsDelimiter){y=W._isHeader?"th":"td";for(var V=W._parent._tableColumns,w=W._string_content,t=0,F="",I,P=W._sourcepos[0][0];t<w.length;){switch(w[t]){case "|":I&&(I._string_content=F.trim(),F="",I=null,V--,V<=0&&(t=w.length));break;default:if(!I){I=new Ty(y,[[P,t],[P,t]]);var C=W._parent._columnAlignment,d=W._parent._tableColumns-V;C&&d<=C.length&&d>=0&&(I._alignment=C[d]);W.appendChild(I)}F+=w[t];I._sourcepos[1][1]=t}t++}I&&(I._string_content=F.trim());W._string_content=
""}},
canContain:function(y){return y!=="row"},
acceptsLines:!1}},b5q=[function(y){if(y.indented||iu(y.currentLine,y.nextNonspace)!==62)return 0;kf(y);sJ(y,1,!1);pM(iu(y.currentLine,y.offset))&&sJ(y,1,!0);AB(y);y.addChild("block_quote",y.nextNonspace);return 1},
function(y){var W;if(!y.indented&&(W=y.currentLine.slice(y.nextNonspace).match(nSm))){kf(y);sJ(y,W[0].length,!1);AB(y);var V=y.addChild("heading",y.nextNonspace);V.level=W[0].trim().length;V._string_content=y.currentLine.slice(y.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");sJ(y,y.currentLine.length-y.offset);return 2}return 0},
function(y){var W;if(!y.indented&&(W=y.currentLine.slice(y.nextNonspace).match(H52))){var V=W[0].length;AB(y);var w=y.addChild("code_block",y.nextNonspace);w._isFenced=!0;w._fenceLength=V;w._fenceChar=W[0][0];w._fenceOffset=y.indent;kf(y);sJ(y,V,!1);return 2}return 0},
function(y,W){if(!y.indented&&iu(y.currentLine,y.nextNonspace)===60){var V=y.currentLine.slice(y.nextNonspace),w;for(w=1;w<=7;w++)if(Alz[w].test(V)&&(w<7||W.type!=="paragraph"))return AB(y),y.addChild("html_block",y.offset)._htmlBlockType=w,2}return 0},
function(y,W){var V;if(!y.indented&&W.type==="paragraph"&&(V=y.currentLine.slice(y.nextNonspace).match(aQf))){AB(y);var w=new Ty("heading",W.sourcepos);w.level=V[0][0]==="="?1:2;w._string_content=W._string_content;ESK(W,w);W.unlink();y.tip=w;sJ(y,y.currentLine.length-y.offset,!1);return 2}return 0},
function(y){return!y.indented&&BLz.test(y.currentLine.slice(y.nextNonspace))?(AB(y),y.addChild("thematic_break",y.nextNonspace),sJ(y,y.currentLine.length-y.offset,!1),2):0},
function(y,W){var V,w;if(!(w=y.indented&&W.type!=="list")){a:{var t=W,F=y.currentLine.slice(y.nextNonspace);w={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:y.indent};if(V=F.match(jd2))w.type="bullet",w.bulletChar=V[0][0];else{if(!(V=F.match($4r))||t.type==="paragraph"&&V[1]!=="1"){V=null;break a}w.type="ordered";w.start=parseInt(V[1],10);w.delimiter=V[2]}var I=iu(y.currentLine,y.nextNonspace+V[0].length);if(I!==-1&&I!==9&&I!==32||t.type==="paragraph"&&!y.currentLine.slice(y.nextNonspace+
V[0].length).match(RAf))V=null;else{kf(y);sJ(y,V[0].length,!0);t=y.column;F=y.offset;do sJ(y,1,!0),I=iu(y.currentLine,y.offset);while(y.column-t<5&&pM(I));I=iu(y.currentLine,y.offset)===-1;var P=y.column-t;P>=5||P<1||I?(w.padding=V[0].length+1,y.column=t,y.offset=F,pM(iu(y.currentLine,y.offset))&&sJ(y,1,!0)):w.padding=V[0].length+P;V=w}}w=!V}if(w)return 0;AB(y);(w=y.tip.type!=="list")||(W=W._listData,w=!(W.type===V.type&&W.delimiter===V.delimiter&&W.bulletChar===V.bulletChar));w&&(W=y.addChild("list",
y.nextNonspace),W._listData=V);W=y.addChild("item",y.nextNonspace);W._listData=V;return 1},
function(y){var W;return((W=y.options.shouldParseIndentAsCodeBlock)!=null?W:1)&&y.indented&&y.tip.type!=="paragraph"&&!y.blank?(sJ(y,4,!0),AB(y),y.addChild("code_block",y.offset),2):0},
function(y,W){var V=fM(y.currentLine),w=fM(y.lookahead);if(V!==0&&w<0&&Math.abs(V)==Math.abs(w)&&!U_n(W.type)){AB(y);W=y.addChild("table",y.nextNonspace);W._tableRows=1;W._tableColumns=Math.abs(V);V=y.lookahead;if(qvR.test(V)){w=[];for(var t=0,F=!1,I=0,P=void 0;t<V.length;){var C=I>=3;switch(V[t]){case "-":I++;break;case "|":F&&(w.push(P),P=void 0,I=0);F=!0;break;case ":":P||C||(P="left"),!P&&C&&(P="right"),P==="left"&&C&&(P="center")}t++}V=w}else V=void 0;W._columnAlignment=V;W=y.addChild("row",
y.nextNonspace);W._isHeader=!0;sJ(y,y.currentLine.length-y.offset,!1);W._string_content=y.currentLine;return 1}return 0},
function(y,W){if(W.type=="table"&&fM(y.currentLine)!==0){AB(y);var V=W;W=y.addChild("row",y.nextNonspace);fM(y.currentLine)<0?W._rowIsDelimiter=!0:V._tableRows+=1;sJ(y,y.currentLine.length-y.offset,!1);W._string_content=y.currentLine;return 2}return 0}],upP=function(){var y={shouldParseIndentAsCodeBlock:!1};
y=y===void 0?{}:y;this.lastMatchedContainer=this.doc=uhv();this.refmap={};this.lastLineLength=0;this.inlineParser=new ld(y);this.options=y;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=rlJ;this.blockStarts=b5q},Qdf=function(y){y.partiallyConsumedTab&&(y.offset+=1,y.tip._string_content+=" ".repeat(4-y.column%
4));
y.tip._string_content+=y.currentLine.slice(y.offset)+"\n"};
upP.prototype.addChild=function(y,W){for(;!this.blocks[this.tip.type].canContain(y);)this.finalize(this.tip,this.lineNumber-1);y=new Ty(y,[[this.lineNumber,W+1],[0,0]]);y._string_content="";this.tip.appendChild(y);return this.tip=y};
var AB=function(y){if(!y.allClosed){for(;y.oldtip!==y.lastMatchedContainer;){var W=y.oldtip._parent;y.finalize(y.oldtip,y.lineNumber-1);y.oldtip=W}y.allClosed=!0}},sJ=function(y,W,V){for(var w=y.currentLine,t,F;W>0&&(F=w[y.offset]);)F==="\t"?(t=4-y.column%4,V?(y.partiallyConsumedTab=t>W,t=t>W?W:t,y.column+=t,y.offset+=y.partiallyConsumedTab?0:1,W-=t):(y.partiallyConsumedTab=!1,y.column+=t,y.offset+=1,--W)):(y.partiallyConsumedTab=!1,y.offset+=1,y.column+=1,--W)},kf=function(y){y.offset=y.nextNonspace;
y.column=y.nextNonspaceColumn;y.partiallyConsumedTab=!1},Z5s=function(y){for(var W=y.currentLine,V=y.offset,w=y.column,t;(t=W.charAt(V))!=="";)if(t===" ")V++,w++;
else if(t==="\t")V++,w+=4-w%4;else break;y.blank=t==="\n"||t==="\r"||t==="";y.nextNonspace=V;y.nextNonspaceColumn=w;y.indent=y.nextNonspaceColumn-y.column;y.indented=y.indent>=4};
upP.prototype.finalize=function(y,W){var V=y._parent;y._open=!1;y.sourcepos[1]=[W,this.lastLineLength];this.blocks[y.type].finalize(this,y);this.tip=V};
upP.prototype.parse=function(y){this.tip=this.doc=uhv();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!y)return this.doc;this.options.time&&console.time("preparing input");var W=y.split(GPi),V=W.length;y.charCodeAt(y.length-1)===10&&--V;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(y=0;y<V;y++)a:{var w=void 0,t=W[y],F=W[y+1],I=!0,P=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;t.indexOf("\x00")!==-1&&(t=t.replace(/\0/g,"\ufffd"));this.currentLine=t;for(this.lookahead=F;(w=P._lastChild)&&w._open;){P=w;Z5s(this);switch(this.blocks[P.type].continue(this,P)){case 0:break;case 1:I=!1;break;case 2:this.lastLineLength=t.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!I){P=P._parent;break}}this.allClosed=P===this.oldtip;this.lastMatchedContainer=
P;w=P.type!=="paragraph"&&rlJ[P.type].acceptsLines;F=this.blockStarts;for(I=F.length;!w;){Z5s(this);if(!this.indented&&!Jls.test(t.slice(this.nextNonspace))){kf(this);break}for(var C=0;C<I;){var d=F[C](this,P);if(d===1){P=this.tip;break}else if(d===2){P=this.tip;w=!0;break}else C++}if(C===I){kf(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){AB(this);this.blank&&P.lastChild&&(P.lastChild._lastLineBlank=!0);w=P.type;F=this.blank&&!(w==="block_quote"||w==="code_block"&&P._isFenced||
w==="item"&&!P._firstChild&&P.sourcepos[0][0]===this.lineNumber);for(I=P;I;)I._lastLineBlank=F,I=I._parent;this.blocks[w].acceptsLines?(Qdf(this),w==="html_block"&&P._htmlBlockType>=1&&P._htmlBlockType<=5&&YUK[P._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(P,this.lineNumber)):this.offset<t.length&&!this.blank&&(this.addChild("paragraph",this.offset),kf(this),Qdf(this))}else Qdf(this);this.lastLineLength=t.length}for(;this.tip;)this.finalize(this.tip,V);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");t=new Fmf(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;V=t.next();)W=V.node,y=W.type,V.entering||y!=="paragraph"&&y!=="heading"&&y!=="th"&&y!="td"||this.inlineParser.parse(W);this.options.time&&console.timeEnd("inline parsing");return this.doc};Svy.prototype.render=function(y){y=new Fmf(y);var W;this.buffer="";for(this.lastOut="\n";W=y.next();){var V=W.node.type;if(this[V])this[V](W.node,W.entering)}return this.buffer};
Svy.prototype.out=function(y){Yf(this,y)};
var Yf=function(y,W){y.buffer+=W;y.lastOut=W};
Svy.prototype.cr=function(){this.lastOut!=="\n"&&Yf(this,"\n")};var ynm=/^javascript:|vbscript:|file:|data:/i,WGA=/^data:image\/(?:png|gif|jpeg|webp)/i,VfA=function(y){return ynm.test(y)&&!WGA.test(y)};
mN.prototype=Object.create(Svy.prototype);_.E=mN.prototype;_.E.text=function(y){this.out(y.literal)};
_.E.html_inline=function(y){this.options.safe?Yf(this,"\x3c!-- raw HTML omitted --\x3e"):Yf(this,y.literal)};
_.E.html_block=function(y){this.cr();this.options.safe?Yf(this,"\x3c!-- raw HTML omitted --\x3e"):Yf(this,y.literal);this.cr()};
_.E.softbreak=function(){Yf(this,this.options.softbreak)};
_.E.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.E.link=function(y,W){var V=this.attrs(y);W?(this.options.safe&&VfA(y.destination)||V.push(["href",ud(y.destination,!0)]),y.title&&V.push(["title",ud(y.title,!0)]),this.tag("a",V)):this.tag("/a")};
_.E.image=function(y,W){W?(this.disableTags===0&&(this.options.safe&&VfA(y.destination)?Yf(this,'<img src="" alt="'):Yf(this,'<img src="'+ud(y.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(y.title&&Yf(this,'" title="'+ud(y.title,!0)),Yf(this,'" />')))};
_.E.emph=function(y,W){this.tag(W?"em":"/em")};
_.E.strong=function(y,W){this.tag(W?"strong":"/strong")};
_.E.paragraph=function(y,W){var V=y.parent.parent;y=this.attrs(y);V!==null&&V.type==="list"&&V.listTight||(W?(this.cr(),this.tag("p",y)):(this.tag("/p"),this.cr()))};
_.E.heading=function(y,W){var V="h"+y.level;y=this.attrs(y);W?(this.cr(),this.tag(V,y)):(this.tag("/"+V),this.cr())};
_.E.code=function(y){this.tag("code");this.out(y.literal);this.tag("/code")};
_.E.code_block=function(y){var W=y.info?y.info.split(/\s+/):[],V=this.attrs(y);W.length>0&&W[0].length>0&&V.push(["class","language-"+ud(W[0],!0)]);this.cr();this.tag("pre");this.tag("code",V);this.out(y.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.E.thematic_break=function(y){y=this.attrs(y);this.cr();this.tag("hr",y,!0);this.cr()};
_.E.block_quote=function(y,W){y=this.attrs(y);W?(this.cr(),this.tag("blockquote",y)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.E.list=function(y,W){var V=y.listType==="bullet"?"ul":"ol",w=this.attrs(y);W?(y=y.listStart,y!==null&&y!==1&&w.push(["start",y.toString()]),this.cr(),this.tag(V,w)):(this.cr(),this.tag("/"+V));this.cr()};
_.E.item=function(y,W){y=this.attrs(y);W?this.tag("li",y):(this.tag("/li"),this.cr())};
_.E.custom_inline=function(y,W){W&&y.onEnter?Yf(this,y.onEnter):!W&&y.onExit&&Yf(this,y.onExit)};
_.E.custom_block=function(y,W){this.cr();W&&y.onEnter?Yf(this,y.onEnter):!W&&y.onExit&&Yf(this,y.onExit);this.cr()};
_.E.table=function(y,W){y=this.attrs(y);W?(this.cr(),this.tag("table",y)):(this.tag("/table"),this.cr())};
_.E.row=function(y,W){y._rowIsDelimiter||(y=this.attrs(y),W?this.tag("tr",y):this.tag("/tr"))};
_.E.td=function(y,W){var V=this.attrs(y);y._alignment&&V.push(["align",y._alignment]);W?this.tag("td",V):this.tag("/td")};
_.E.th=function(y,W){var V=this.attrs(y);y._alignment&&V.push(["align",y._alignment]);W?this.tag("th",V):this.tag("/th")};
_.E.out=function(y){Yf(this,ud(y,!1))};
_.E.tag=function(y,W,V){if(!(this.disableTags>0)){this.buffer+="<"+y;if(W&&W.length>0){y=0;for(var w;(w=W[y])!==void 0;)this.buffer+=" "+w[0]+'="'+w[1]+'"',y++}V&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.E.attrs=function(y){var W=[];this.options.sourcepos&&(y=y.sourcepos)&&W.push(["data-sourcepos",String(y[0][0])+":"+String(y[0][1])+"-"+String(y[1][0])+":"+String(y[1][1])]);return W};
mN.prototype.text=mN.prototype.text;mN.prototype.html_inline=mN.prototype.html_inline;mN.prototype.html_block=mN.prototype.html_block;mN.prototype.softbreak=mN.prototype.softbreak;mN.prototype.linebreak=mN.prototype.linebreak;mN.prototype.link=mN.prototype.link;mN.prototype.image=mN.prototype.image;mN.prototype.emph=mN.prototype.emph;mN.prototype.strong=mN.prototype.strong;mN.prototype.paragraph=mN.prototype.paragraph;mN.prototype.heading=mN.prototype.heading;mN.prototype.code=mN.prototype.code;
mN.prototype.code_block=mN.prototype.code_block;mN.prototype.thematic_break=mN.prototype.thematic_break;mN.prototype.block_quote=mN.prototype.block_quote;mN.prototype.list=mN.prototype.list;mN.prototype.item=mN.prototype.item;mN.prototype.custom_inline=mN.prototype.custom_inline;mN.prototype.custom_block=mN.prototype.custom_block;mN.prototype.table=mN.prototype.table;mN.prototype.row=mN.prototype.row;mN.prototype.td=mN.prototype.td;mN.prototype.th=mN.prototype.th;mN.prototype.out=mN.prototype.out;
mN.prototype.tag=mN.prototype.tag;mN.prototype.attrs=mN.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 w5f,tfr,E6v;(function(){function y(D,S){return D<S?-1:D>S?1:D>=S?0:NaN}
function W(D){return function(S,A){return y(D(S),A)}}
function V(){for(var D=0,S=arguments.length,A={},Q;D<S;++D){if(!(Q=arguments[D]+"")||Q in A)throw Error("Ae`"+Q);A[Q]=[]}return new w(A)}
function w(D){this._=D}
function t(D,S){return D.trim().split(/^|\s+/).map(function(A){var Q="",IR=A.indexOf(".");IR>=0&&(Q=A.slice(IR+1),A=A.slice(0,IR));if(A&&!S.hasOwnProperty(A))throw Error("Be`"+A);return{type:A,name:Q}})}
function F(D,S,A){for(var Q=0,IR=D.length;Q<IR;++Q)if(D[Q].name===S){D[Q]=agE;D=D.slice(0,Q).concat(D.slice(Q+1));break}A!=null&&D.push({name:S,value:A});return D}
function I(D){var S=D,A=S.indexOf(":");A>=0&&(S=D.slice(0,A))!=="xmlns"&&(D=D.slice(A+1));return iw.hasOwnProperty(S)?{space:iw[S],local:D}:D}
function P(D){return function(){var S=this.ownerDocument,A=this.namespaceURI;return A==="http://www.w3.org/1999/xhtml"&&S.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?S.createElement(D):S.createElementNS(A,D)}}
function C(D){return function(){return this.ownerDocument.createElementNS(D.space,D.local)}}
function d(D){D=I(D);return(D.local?C:P)(D)}
function L(){}
function z(D){return D==null?L:function(){return this.querySelector(D)}}
function c(D){return Array(D.length)}
function K(D,S){this.ownerDocument=D.ownerDocument;this.namespaceURI=D.namespaceURI;this._next=null;this._parent=D;this.__data__=S}
function f(D){return function(){return D}}
function U(D,S,A,Q,IR,zG){for(var pd=0,ln,wm=S.length,Zt=zG.length;pd<Zt;++pd)(ln=S[pd])?(ln.__data__=zG[pd],Q[pd]=ln):A[pd]=new K(D,zG[pd]);for(;pd<wm;++pd)if(ln=S[pd])IR[pd]=ln}
function l(D,S,A,Q,IR,zG,pd){var ln,wm,Zt={},EE=S.length,Lq=zG.length,QK=Array(EE),Tj;for(ln=0;ln<EE;++ln)if(wm=S[ln])QK[ln]=Tj="$"+pd.call(wm,wm.__data__,ln,S),Tj in Zt?IR[ln]=wm:Zt[Tj]=wm;for(ln=0;ln<Lq;++ln)Tj="$"+pd.call(D,zG[ln],ln,zG),(wm=Zt[Tj])?(Q[ln]=wm,wm.__data__=zG[ln],Zt[Tj]=null):A[ln]=new K(D,zG[ln]);for(ln=0;ln<EE;++ln)(wm=S[ln])&&Zt[QK[ln]]===wm&&(IR[ln]=wm)}
function x(D,S){return D<S?-1:D>S?1:D>=S?0:NaN}
function B(D){return function(){this.removeAttribute(D)}}
function r(D){return function(){this.removeAttributeNS(D.space,D.local)}}
function H(D,S){return function(){this.setAttribute(D,S)}}
function a(D,S){return function(){this.setAttributeNS(D.space,D.local,S)}}
function b(D,S){return function(){var A=S.apply(this,arguments);A==null?this.removeAttribute(D):this.setAttribute(D,A)}}
function Fv(D,S){return function(){var A=S.apply(this,arguments);A==null?this.removeAttributeNS(D.space,D.local):this.setAttributeNS(D.space,D.local,A)}}
function Py(D){return function(){this.style.removeProperty(D)}}
function du(D,S,A){return function(){this.style.setProperty(D,S,A)}}
function mL(D,S,A){return function(){var Q=S.apply(this,arguments);Q==null?this.style.removeProperty(D):this.style.setProperty(D,Q,A)}}
function un(D,S){return D.style.getPropertyValue(S)||(D.ownerDocument&&D.ownerDocument.defaultView||D.document&&D||D.defaultView).getComputedStyle(D,null).getPropertyValue(S)}
function hv(D){return function(){delete this[D]}}
function $P(D,S){return function(){this[D]=S}}
function sz(D,S){return function(){var A=S.apply(this,arguments);A==null?delete this[D]:this[D]=A}}
function Wz(){this.textContent=""}
function mf(D){return function(){this.textContent=D}}
function OE(D){return function(){var S=D.apply(this,arguments);this.textContent=S==null?"":S}}
function Qj(){this.innerHTML=""}
function Kq(D){return function(){this.innerHTML=D}}
function zR(D){return function(){var S=D.apply(this,arguments);this.innerHTML=S==null?"":S}}
function l2(){return null}
function lt(){var D=this.parentNode;D&&D.removeChild(this)}
function yu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Na(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function F6(D,S,A){D=TR(D,S,A);return function(Q){var IR=Q.relatedTarget;IR&&(IR===this||IR.compareDocumentPosition(this)&8)||D.call(this,Q)}}
function TR(D,S,A){return function(){D.call(this,this.__data__,S,A)}}
function eP(D){return D.trim().split(/^|\s+/).map(function(S){var A="",Q=S.indexOf(".");Q>=0&&(A=S.slice(Q+1),S=S.slice(0,Q));return{type:S,name:A}})}
function hA(D){return function(){var S=this.__on;if(S){for(var A=0,Q=-1,IR=S.length,zG;A<IR;++A)(zG=S[A],D.type&&zG.type!==D.type||zG.name!==D.name)?S[++Q]=zG:this.removeEventListener(zG.type,zG.listener,zG.capture);++Q?S.length=Q:delete this.__on}}}
function jQ(D,S,A){var Q=O3i.hasOwnProperty(D.type)?F6:TR;return function(IR,zG,pd){IR=this.__on;var ln;zG=Q(S,zG,pd);if(IR){pd=0;for(var wm=IR.length;pd<wm;++pd)if((ln=IR[pd]).type===D.type&&ln.name===D.name){this.removeEventListener(ln.type,ln.listener,ln.capture);this.addEventListener(ln.type,ln.listener=zG,ln.capture=A);ln.value=S;return}}this.addEventListener(D.type,zG,A);ln={type:D.type,name:D.name,value:S,listener:zG,capture:A};IR?IR.push(ln):this.__on=[ln]}}
function Fy(D,S,A){var Q=D.ownerDocument&&D.ownerDocument.defaultView||D.document&&D||D.defaultView,IR=Q.CustomEvent;typeof IR==="function"?IR=new IR(S,A):(IR=Q.document.createEvent("Event"),A?(IR.initEvent(S,A.bubbles,A.cancelable),IR.detail=A.detail):IR.initEvent(S,!1,!1));D.dispatchEvent(IR)}
function Wd(D,S){return function(){return Fy(this,D,S)}}
function Pz(D,S){return function(){return Fy(this,D,S.apply(this,arguments))}}
function b2(D,S){this._groups=D;this._parents=S}
function vd(){return new b2([[document.documentElement]],GfP)}
function Mr(){this._="@"+(++rRm).toString(36)}
function u2(D,S,A){D.prototype=S.prototype=A;A.constructor=D}
function ov(D,S){D=Object.create(D.prototype);for(var A in S)D[A]=S[A];return D}
function v7(){}
function Ce(D){var S;D=(D+"").trim().toLowerCase();return(S=boj.exec(D))?(S=parseInt(S[1],16),new FM(S>>8&15|S>>4&240,S>>4&15|S&240,(S&15)<<4|S&15,1)):(S=Qgu.exec(D))?MG(parseInt(S[1],16)):(S=Zoj.exec(D))?new FM(S[1],S[2],S[3],1):(S=yqq.exec(D))?new FM(S[1]*255/100,S[2]*255/100,S[3]*255/100,1):(S=Wud.exec(D))?b5(S[1],S[2],S[3],S[4]):(S=VNd.exec(D))?b5(S[1]*255/100,S[2]*255/100,S[3]*255/100,S[4]):(S=wQW.exec(D))?BM(S[1],S[2]/100,S[3]/100,1):(S=tNu.exec(D))?BM(S[1],S[2]/100,S[3]/100,S[4]):v0I.hasOwnProperty(D)?
MG(v0I[D]):D==="transparent"?new FM(NaN,NaN,NaN,0):null}
function MG(D){return new FM(D>>16&255,D>>8&255,D&255,1)}
function b5(D,S,A,Q){Q<=0&&(D=S=A=NaN);return new FM(D,S,A,Q)}
function GR(D){D instanceof v7||(D=Ce(D));if(!D)return new FM;D=D.rgb();return new FM(D.r,D.g,D.b,D.opacity)}
function ne(D,S,A,Q){return arguments.length===1?GR(D):new FM(D,S,A,Q==null?1:Q)}
function FM(D,S,A,Q){this.r=+D;this.g=+S;this.b=+A;this.opacity=+Q}
function Ex(D){D=Math.max(0,Math.min(255,Math.round(D)||0));return(D<16?"0":"")+D.toString(16)}
function BM(D,S,A,Q){Q<=0?D=S=A=NaN:A<=0||A>=1?D=S=NaN:S<=0&&(D=NaN);return new bz(D,S,A,Q)}
function qG(D){if(D instanceof bz)return new bz(D.h,D.s,D.l,D.opacity);D instanceof v7||(D=Ce(D));if(!D)return new bz;if(D instanceof bz)return D;D=D.rgb();var S=D.r/255,A=D.g/255,Q=D.b/255,IR=Math.min(S,A,Q),zG=Math.max(S,A,Q),pd=NaN,ln=zG-IR,wm=(zG+IR)/2;ln?(pd=S===zG?(A-Q)/ln+(A<Q)*6:A===zG?(Q-S)/ln+2:(S-A)/ln+4,ln/=wm<.5?zG+IR:2-zG-IR,pd*=60):ln=wm>0&&wm<1?0:pd;return new bz(pd,ln,wm,D.opacity)}
function bh(D,S,A,Q){return arguments.length===1?qG(D):new bz(D,S,A,Q==null?1:Q)}
function bz(D,S,A,Q){this.h=+D;this.s=+S;this.l=+A;this.opacity=+Q}
function tU(D,S,A){return(D<60?S+(A-S)*D/60:D<180?A:D<240?S+(A-S)*(240-D)/60:S)*255}
function Qm(D){if(D instanceof TG)return new TG(D.l,D.a,D.b,D.opacity);if(D instanceof i2){if(isNaN(D.h))return new TG(D.l,0,0,D.opacity);var S=D.h*dxr;return new TG(D.l,Math.cos(S)*D.c,Math.sin(S)*D.c,D.opacity)}D instanceof FM||(D=GR(D));var A=Pd(D.r),Q=Pd(D.g),IR=Pd(D.b);S=YP(.2225045*A+.7168786*Q+.0606169*IR);if(A===Q&&Q===IR)var zG=A=S;else zG=YP((.4360747*A+.3850649*Q+.1430804*IR)/.96422),A=YP((.0139322*A+.0971045*Q+.7141733*IR)/.82521);return new TG(116*S-16,500*(zG-S),200*(S-A),D.opacity)}
function TG(D,S,A,Q){this.l=+D;this.a=+S;this.b=+A;this.opacity=+Q}
function YP(D){return D>Fu4?Math.pow(D,1/3):D/LZR+zgJ}
function Hy(D){return D>rC?D*D*D:LZR*(D-zgJ)}
function pq(D){return 255*(D<=.0031308?12.92*D:1.055*Math.pow(D,1/2.4)-.055)}
function Pd(D){return(D/=255)<=.04045?D/12.92:Math.pow((D+.055)/1.055,2.4)}
function xR(D){if(D instanceof i2)return new i2(D.h,D.c,D.l,D.opacity);D instanceof TG||(D=Qm(D));if(D.a===0&&D.b===0)return new i2(NaN,0,D.l,D.opacity);var S=Math.atan2(D.b,D.a)*cg6;return new i2(S<0?S+360:S,Math.sqrt(D.a*D.a+D.b*D.b),D.l,D.opacity)}
function Ke(D,S,A,Q){return arguments.length===1?xR(D):new i2(D,S,A,Q==null?1:Q)}
function i2(D,S,A,Q){this.h=+D;this.c=+S;this.l=+A;this.opacity=+Q}
function eQ(D,S,A,Q){if(arguments.length===1){var IR=D;if(IR instanceof ut)IR=new ut(IR.h,IR.s,IR.l,IR.opacity);else{IR instanceof FM||(IR=GR(IR));var zG=IR.g/255,pd=IR.b/255,ln=(egI*pd+IR.r/255*-1.7884503806-3.5172982438*zG)/(egI+-1.7884503806-3.5172982438);pd-=ln;var wm=(1.97294*(zG-ln)- -.29227*pd)/-.90649;pd=(zG=Math.sqrt(wm*wm+pd*pd)/(1.97294*ln*(1-ln)))?Math.atan2(wm,pd)*cg6-120:NaN;IR=new ut(pd<0?pd+360:pd,zG,ln,IR.opacity)}}else IR=new ut(D,S,A,Q==null?1:Q);return IR}
function ut(D,S,A,Q){this.h=+D;this.s=+S;this.l=+A;this.opacity=+Q}
function oG(D,S,A,Q,IR){var zG=D*D,pd=zG*D;return((1-3*D+3*zG-pd)*S+(4-6*zG+3*pd)*A+(1+3*D+3*zG-3*pd)*Q+pd*IR)/6}
function vz(D){return function(){return D}}
function TC(D,S){return function(A){return D+A*S}}
function x_(D,S,A){return D=Math.pow(D,A),S=Math.pow(S,A)-D,A=1/A,function(Q){return Math.pow(D+Q*S,A)}}
function YR(D,S){var A=S-D;return A?TC(D,A>180||A<-180?A-360*Math.round(A/360):A):vz(isNaN(D)?S:D)}
function U9(D){return(D=+D)===1?Qi:function(S,A){return A-S?x_(S,A,D):vz(isNaN(S)?A:S)}}
function Qi(D,S){var A=S-D;return A?TC(D,A):vz(isNaN(D)?S:D)}
function Z2(D){return function(S){var A=S.length,Q=Array(A),IR=Array(A),zG=Array(A),pd;for(pd=0;pd<A;++pd){var ln=ne(S[pd]);Q[pd]=ln.r||0;IR[pd]=ln.g||0;zG[pd]=ln.b||0}Q=D(Q);IR=D(IR);zG=D(zG);ln.opacity=1;return function(wm){ln.r=Q(wm);ln.g=IR(wm);ln.b=zG(wm);return ln+""}}}
function Xv(D,S){return D=+D,S-=D,function(A){return D+S*A}}
function dW(D){return function(){return D}}
function Hd(D){return function(S){return D(S)+""}}
function VG(D,S){var A=RYz.lastIndex=jbP.lastIndex=0,Q,IR,zG,pd=-1,ln=[],wm=[];D+="";for(S+="";(Q=RYz.exec(D))&&(IR=jbP.exec(S));)(zG=IR.index)>A&&(zG=S.slice(A,zG),ln[pd]?ln[pd]+=zG:ln[++pd]=zG),(Q=Q[0])===(IR=IR[0])?ln[pd]?ln[pd]+=IR:ln[++pd]=IR:(ln[++pd]=null,wm.push({i:pd,x:Xv(Q,IR)})),A=jbP.lastIndex;A<S.length&&(zG=S.slice(A),ln[pd]?ln[pd]+=zG:ln[++pd]=zG);return ln.length<2?wm[0]?Hd(wm[0].x):dW(S):(S=wm.length,function(Zt){for(var EE=0,Lq;EE<S;++EE)ln[(Lq=wm[EE]).i]=Lq.x(Zt);return ln.join("")})}
function dU(D,S,A,Q,IR,zG){var pd,ln,wm;if(pd=Math.sqrt(D*D+S*S))D/=pd,S/=pd;if(wm=D*A+S*Q)A-=D*wm,Q-=S*wm;if(ln=Math.sqrt(A*A+Q*Q))A/=ln,Q/=ln,wm/=ln;D*Q<S*A&&(D=-D,S=-S,wm=-wm,pd=-pd);return{translateX:IR,translateY:zG,rotate:Math.atan2(S,D)*hgf,skewX:Math.atan(wm)*hgf,scaleX:pd,scaleY:ln}}
function DS(D,S,A,Q){function IR(Zt){return Zt.length?Zt.pop()+" ":""}
function zG(Zt,EE,Lq,QK,Tj,i_){Zt!==Lq||EE!==QK?(Tj=Tj.push("translate(",null,S,null,A),i_.push({i:Tj-4,x:Xv(Zt,Lq)},{i:Tj-2,x:Xv(EE,QK)})):(Lq||QK)&&Tj.push("translate("+Lq+S+QK+A)}
function pd(Zt,EE,Lq,QK){Zt!==EE?(Zt-EE>180?EE+=360:EE-Zt>180&&(Zt+=360),QK.push({i:Lq.push(IR(Lq)+"rotate(",null,Q)-2,x:Xv(Zt,EE)})):EE&&Lq.push(IR(Lq)+"rotate("+EE+Q)}
function ln(Zt,EE,Lq,QK){Zt!==EE?QK.push({i:Lq.push(IR(Lq)+"skewX(",null,Q)-2,x:Xv(Zt,EE)}):EE&&Lq.push(IR(Lq)+"skewX("+EE+Q)}
function wm(Zt,EE,Lq,QK,Tj,i_){Zt!==Lq||EE!==QK?(Tj=Tj.push(IR(Tj)+"scale(",null,",",null,")"),i_.push({i:Tj-4,x:Xv(Zt,Lq)},{i:Tj-2,x:Xv(EE,QK)})):Lq===1&&QK===1||Tj.push(IR(Tj)+"scale("+Lq+","+QK+")")}
return function(Zt,EE){var Lq=[],QK=[];Zt=D(Zt);EE=D(EE);zG(Zt.translateX,Zt.translateY,EE.translateX,EE.translateY,Lq,QK);pd(Zt.rotate,EE.rotate,Lq,QK);ln(Zt.skewX,EE.skewX,Lq,QK);wm(Zt.scaleX,Zt.scaleY,EE.scaleX,EE.scaleY,Lq,QK);Zt=EE=null;return function(Tj){for(var i_=-1,jm=QK.length,mX;++i_<jm;)Lq[(mX=QK[i_]).i]=mX.x(Tj);return Lq.join("")}}}
function Ku(D){return function(S,A){var Q=D((S=bh(S)).h,(A=bh(A)).h),IR=Qi(S.s,A.s),zG=Qi(S.l,A.l),pd=Qi(S.opacity,A.opacity);return function(ln){S.h=Q(ln);S.s=IR(ln);S.l=zG(ln);S.opacity=pd(ln);return S+""}}}
function dg(D){return function(S,A){var Q=D((S=Ke(S)).h,(A=Ke(A)).h),IR=Qi(S.c,A.c),zG=Qi(S.l,A.l),pd=Qi(S.opacity,A.opacity);return function(ln){S.h=Q(ln);S.c=IR(ln);S.l=zG(ln);S.opacity=pd(ln);return S+""}}}
function GW(D){return function Q(A){function IR(zG,pd){var ln=D((zG=eQ(zG)).h,(pd=eQ(pd)).h),wm=Qi(zG.s,pd.s),Zt=Qi(zG.l,pd.l),EE=Qi(zG.opacity,pd.opacity);return function(Lq){zG.h=ln(Lq);zG.s=wm(Lq);zG.l=Zt(Math.pow(Lq,A));zG.opacity=EE(Lq);return zG+""}}
A=+A;IR.gamma=Q;return IR}(1)}
function Vw(){return Ti||(o0A(k3u),Ti=bD.now()+E_4)}
function k3u(){Ti=0}
function wX(){this._call=this._time=this._next=null}
function Zl(D,S,A){var Q=new wX;Q.restart(D,S,A);return Q}
function yM(){Ti=(NiL=bD.now())+E_4;b9=QQ=0;try{Vw();++b9;for(var D=I3u,S;D;)(S=Ti-D._time)>=0&&D._call.call(null,S),D=D._next;--b9}finally{b9=0;D=I3u;for(var A=Infinity;D;)if(D._call){A>D._time&&(A=D._time);var Q=D;D=D._next}else S=D._next,D._next=null,D=Q?Q._next=S:I3u=S;Zz=Q;WJ(A);Ti=0}}
function e3u(){var D=bD.now(),S=D-NiL;S>1E3&&(E_4-=S,NiL=D)}
function WJ(D){b9||(QQ&&(QQ=clearTimeout(QQ)),D-Ti>24?(D<Infinity&&(QQ=setTimeout(yM,D-bD.now()-E_4)),y9&&(y9=clearInterval(y9))):(y9||(NiL=bD.now(),y9=setInterval(e3u,1E3)),b9=1,o0A(yM)))}
function KZE(D,S,A){var Q=new wX;S=S==null?0:+S;Q.restart(function(IR){Q.stop();D(IR+S)},S,A);
return Q}
function $in(D,S,A,Q,IR,zG){var pd=D.__transition;if(!pd)D.__transition={};else if(A in pd)return;Egj(D,A,{name:S,index:Q,group:IR,on:N9v,tween:IG3,time:zG.time,delay:zG.delay,duration:zG.duration,ease:zG.ease,timer:null,state:0})}
function nKa(D,S){D=h0(D,S);if(D.state>0)throw Error("Ce");return D}
function ms(D,S){D=h0(D,S);if(D.state>2)throw Error("De");return D}
function h0(D,S){D=D.__transition;if(!D||!(D=D[S]))throw Error("Ee");return D}
function Egj(D,S,A){function Q(wm){var Zt,EE;if(A.state!==1)return zG();for(QK in pd){var Lq=pd[QK];if(Lq.name===A.name){if(Lq.state===3)return KZE(Q);Lq.state===4?(Lq.state=6,Lq.timer.stop(),Lq.on.call("interrupt",D,D.__data__,Lq.index,Lq.group),delete pd[QK]):+QK<S&&(Lq.state=6,Lq.timer.stop(),delete pd[QK])}}KZE(function(){A.state===3&&(A.state=4,A.timer.restart(IR,A.delay,A.time),IR(wm))});
A.state=2;A.on.call("start",D,D.__data__,A.index,A.group);if(A.state===2){A.state=3;ln=Array(EE=A.tween.length);var QK=0;for(Zt=-1;QK<EE;++QK)if(Lq=A.tween[QK].value.call(D,D.__data__,A.index,A.group))ln[++Zt]=Lq;ln.length=Zt+1}}
function IR(wm){wm=wm<A.duration?A.ease.call(null,wm/A.duration):(A.timer.restart(zG),A.state=5,1);for(var Zt=-1,EE=ln.length;++Zt<EE;)ln[Zt].call(null,wm);A.state===5&&(A.on.call("end",D,D.__data__,A.index,A.group),zG())}
function zG(){A.state=6;A.timer.stop();delete pd[S];for(var wm in pd)return;delete D.__transition}
var pd=D.__transition,ln;pd[S]=A;A.timer=Zl(function(wm){A.state=1;A.timer.restart(Q,A.delay,A.time);A.delay<=wm&&Q(wm-A.delay)},0,A.time)}
function ggq(D,S){var A,Q;return function(){var IR=ms(this,D),zG=IR.tween;if(zG!==A){Q=A=zG;zG=0;for(var pd=Q.length;zG<pd;++zG)if(Q[zG].name===S){Q=Q.slice();Q.splice(zG,1);break}}IR.tween=Q}}
function PJ4(D,S,A){var Q,IR;if(typeof A!=="function")throw Error();return function(){var zG=ms(this,D),pd=zG.tween;if(pd!==Q){IR=(Q=pd).slice();pd={name:S,value:A};for(var ln=0,wm=IR.length;ln<wm;++ln)if(IR[ln].name===S){IR[ln]=pd;break}ln===wm&&IR.push(pd)}zG.tween=IR}}
function Hcd(D,S,A){var Q=D._id;D.each(function(){var IR=ms(this,Q);(IR.value||(IR.value={}))[S]=A.apply(this,arguments)});
return function(IR){return h0(IR,Q).value[S]}}
function phq(D,S){var A;return(typeof S==="number"?Xv:S instanceof Ce?i3z:(A=Ce(S))?(S=A,i3z):VG)(D,S)}
function CJm(D){return function(){this.removeAttribute(D)}}
function Ojm(D){return function(){this.removeAttributeNS(D.space,D.local)}}
function vg3(D,S,A){var Q,IR;return function(){var zG=this.getAttribute(D);return zG===A?null:zG===Q?IR:IR=S(Q=zG,A)}}
function d2j(D,S,A){var Q,IR;return function(){var zG=this.getAttributeNS(D.space,D.local);return zG===A?null:zG===Q?IR:IR=S(Q=zG,A)}}
function Luq(D,S,A){var Q,IR,zG;return function(){var pd=A(this);if(pd==null)return void this.removeAttribute(D);var ln=this.getAttribute(D);return ln===pd?null:ln===Q&&pd===IR?zG:zG=S(Q=ln,IR=pd)}}
function z$C(D,S,A){var Q,IR,zG;return function(){var pd=A(this);if(pd==null)return void this.removeAttributeNS(D.space,D.local);var ln=this.getAttributeNS(D.space,D.local);return ln===pd?null:ln===Q&&pd===IR?zG:zG=S(Q=ln,IR=pd)}}
function cqt(D,S){function A(){var Q=this,IR=S.apply(Q,arguments);return IR&&function(zG){Q.setAttributeNS(D.space,D.local,IR(zG))}}
A._value=S;return A}
function e$t(D,S){function A(){var Q=this,IR=S.apply(Q,arguments);return IR&&function(zG){Q.setAttribute(D,IR(zG))}}
A._value=S;return A}
function h$C(D,S){return function(){nKa(this,D).delay=+S.apply(this,arguments)}}
function ogE(D,S){return S=+S,function(){nKa(this,D).delay=S}}
function Kuu(D,S){return function(){ms(this,D).duration=+S.apply(this,arguments)}}
function pQu(D,S){return S=+S,function(){ms(this,D).duration=S}}
function ijv(D,S){if(typeof S!=="function")throw Error();return function(){ms(this,D).ease=S}}
function fGC(D){return(D+"").trim().split(/^|\s+/).every(function(S){var A=S.indexOf(".");A>=0&&(S=S.slice(0,A));return!S||S==="start"})}
function T93(D,S,A){var Q,IR,zG=fGC(S)?nKa:ms;return function(){var pd=zG(this,D),ln=pd.on;if(ln!==Q)(IR=(Q=ln).copy()).on(S,A);pd.on=IR}}
function m2u(D){return function(){var S=this.parentNode,A;for(A in this.__transition)if(+A!==D)return;S&&S.removeChild(this)}}
function MNu(D,S){var A,Q,IR;return function(){var zG=un(this,D),pd=(this.style.removeProperty(D),un(this,D));return zG===pd?null:zG===A&&pd===Q?IR:IR=S(A=zG,Q=pd)}}
function qeu(D){return function(){this.style.removeProperty(D)}}
function U2u(D,S,A){var Q,IR;return function(){var zG=un(this,D);return zG===A?null:zG===Q?IR:IR=S(Q=zG,A)}}
function uIj(D,S,A){var Q,IR,zG;return function(){var pd=un(this,D),ln=A(this);ln==null&&(ln=(this.style.removeProperty(D),un(this,D)));return pd===ln?null:pd===Q&&ln===IR?zG:zG=S(Q=pd,IR=ln)}}
function Seq(D,S,A){function Q(){var IR=this,zG=S.apply(IR,arguments);return zG&&function(pd){IR.style.setProperty(D,zG(pd),A)}}
Q._value=S;return Q}
function D2d(D){return function(){this.textContent=D}}
function lG3(D){return function(){var S=D(this);this.textContent=S==null?"":S}}
function Um(D,S,A,Q){this._groups=D;this._parents=S;this._name=A;this._id=Q}
function XPv(D){return{type:D}}
function aku(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function g_v(){}
function fNJ(D,S){var A=new g_v;if(D instanceof g_v)D.each(function(pd,ln){A.set(ln,pd)});
else if(Array.isArray(D)){var Q=-1,IR=D.length,zG;if(S==null)for(;++Q<IR;)A.set(Q,D[Q]);else for(;++Q<IR;)A.set(S(zG=D[Q],Q,D),zG)}else if(D)for(Q in D)A.set(Q,D[Q]);return A}
function PCP(){}
function Tzm(D){return function(S){for(var A={},Q=0;Q<D.length;Q++)A[D[Q]]=S[Q]||"";return A}}
function x23(D,S){var A=Tzm(D);return function(Q,IR){return S(A(Q),IR,D)}}
function knW(D){var S=Object.create(null),A=[];D.forEach(function(Q){for(var IR in Q)IR in S||A.push(S[IR]=IR)});
return A}
function mxK(D){function S(pd,ln){function wm(){if(i_)return Gqb;if(jm)return jm=!1,Mn6;var YI,Rf=Lq,C2;if(pd.charCodeAt(Rf)===34){for(;Lq++<EE&&pd.charCodeAt(Lq)!==34||pd.charCodeAt(++Lq)===34;);(YI=Lq)>=EE?i_=!0:(C2=pd.charCodeAt(Lq++))===10?jm=!0:C2===13&&(jm=!0,pd.charCodeAt(Lq)===10&&++Lq);return pd.slice(Rf+1,YI-1).replace(/""/g,'"')}for(;Lq<EE;){if((C2=pd.charCodeAt(YI=Lq++))===10)jm=!0;else if(C2===13)jm=!0,pd.charCodeAt(Lq)===10&&++Lq;else if(C2!==zG)continue;return pd.slice(Rf,YI)}return i_=
!0,pd.slice(Rf,EE)}
var Zt=[],EE=pd.length,Lq=0,QK=0,Tj,i_=EE<=0,jm=!1;pd.charCodeAt(EE-1)===10&&--EE;for(pd.charCodeAt(EE-1)===13&&--EE;(Tj=wm())!==Gqb;){for(var mX=[];Tj!==Mn6&&Tj!==Gqb;)mX.push(Tj),Tj=wm();ln&&(mX=ln(mX,QK++))==null||Zt.push(mX)}return Zt}
function A(pd){return pd.map(Q).join(D)}
function Q(pd){return pd==null?"":IR.test(pd)?'"'+pd.replace(/"/g,'""')+'"':pd}
var IR=new RegExp('["'+D+"\n\r]"),zG=D.charCodeAt(0);return{parse:function(pd,ln){var wm,Zt;pd=S(pd,function(EE,Lq){if(wm)return wm(EE,Lq-1);Zt=EE;wm=ln?x23(EE,ln):Tzm(EE)});
pd.columns=Zt||[];return pd},
parseRows:S,format:function(pd,ln){ln==null&&(ln=knW(pd));return[ln.map(Q).join(D)].concat(pd.map(function(wm){return ln.map(function(Zt){return Q(wm[Zt])}).join(D)})).join("\n")},
formatRows:function(pd){return pd.map(A).join("\n")}}}
function s4e(D){if(!D.ok)throw Error("Fe`"+D.status+"`"+D.statusText);return D.text()}
function q8s(D){return function(S,A,Q){arguments.length===2&&typeof A==="function"&&(Q=A,A=void 0);return fetch(S,A).then(s4e).then(function(IR){return D(IR,Q)})}}
function UxK(D,S,A,Q){if(isNaN(S)||isNaN(A))return D;var IR,zG=D._root;Q={data:Q};var pd=D._x0,ln=D._y0,wm=D._x1,Zt=D._y1,EE,Lq,QK,Tj,i_;if(!zG)return D._root=Q,D;for(;zG.length;)if((QK=S>=(EE=(pd+wm)/2))?pd=EE:wm=EE,(Tj=A>=(Lq=(ln+Zt)/2))?ln=Lq:Zt=Lq,IR=zG,!(zG=zG[i_=Tj<<1|QK]))return IR[i_]=Q,D;var jm=+D._x.call(null,zG.data);var mX=+D._y.call(null,zG.data);if(S===jm&&A===mX)return Q.next=zG,IR?IR[i_]=Q:D._root=Q,D;do IR=IR?IR[i_]=Array(4):D._root=Array(4),(QK=S>=(EE=(pd+wm)/2))?pd=EE:wm=EE,(Tj=
A>=(Lq=(ln+Zt)/2))?ln=Lq:Zt=Lq;while((i_=Tj<<1|QK)===(QK=(mX>=Lq)<<1|jm>=EE));return IR[QK]=zG,IR[i_]=Q,D}
function U$(D,S,A,Q,IR){this.node=D;this.x0=S;this.y0=A;this.x1=Q;this.y1=IR}
function Aqq(D){return D[0]}
function Yem(D){return D[1]}
function rSv(D,S,A,Q,IR,zG){this._x=D;this._y=S;this._x0=A;this._y0=Q;this._x1=IR;this._y1=zG;this._root=void 0}
function uBA(D){for(var S={data:D.data},A=S;D=D.next;)A=A.next={data:D.data};return S}
function CCb(D,S){if((S=(D=S?D.toExponential(S-1):D.toExponential()).indexOf("e"))<0)return null;var A=D.slice(0,S);return[A.length>1?A[0]+A.slice(2):A,+D.slice(S+1)]}
function B9j(D){return D=CCb(Math.abs(D)),D?D[1]:NaN}
function Jqd(D,S){return function(A,Q){for(var IR=A.length,zG=[],pd=0,ln=D[0],wm=0;IR>0&&ln>0;){wm+ln+1>Q&&(ln=Math.max(1,Q-wm));zG.push(A.substring(IR-=ln,IR+ln));if((wm+=ln+1)>Q)break;ln=D[pd=(pd+1)%D.length]}return zG.reverse().join(S)}}
function R$v(D){return function(S){return S.replace(/[0-9]/g,function(A){return D[+A]})}}
function bcL(D){return new Qbz(D)}
function Qbz(D){if(!(S=j4d.exec(D)))throw Error("Ge`"+D);var S;this.fill=S[1]||" ";this.align=S[2]||">";this.sign=S[3]||"-";this.symbol=S[4]||"";this.zero=!!S[5];this.width=S[6]&&+S[6];this.comma=!!S[7];this.precision=S[8]&&+S[8].slice(1);this.trim=!!S[9];this.type=S[10]||""}
function S8r(D,S){S=CCb(D,S);if(!S)return D+"";D=S[0];S=S[1];return S<0?"0."+Array(-S).join("0")+D:D.length>S+1?D.slice(0,S+1)+"."+D.slice(S+1):D+Array(S-D.length+2).join("0")}
function Dxf(D){return D}
function $2m(D){function S(ln){function wm(b_){var yT=C2,Am=kn,eh,g3;if(Rf==="c")Am=jH(b_)+Am,b_="";else{b_=+b_;var qu=b_<0;b_=jH(Math.abs(b_),mX);if(YI){var Jb=b_.length,i4=1,Bp=-1;a:for(;i4<Jb;++i4)switch(b_[i4]){case ".":Bp=eh=i4;break;case "0":Bp===0&&(Bp=i4);eh=i4;break;default:if(!+b_[i4])break a;Bp>0&&(Bp=0)}b_=Bp>0?b_.slice(0,Bp)+b_.slice(eh+1):b_}qu&&+b_===0&&(qu=!1);yT=(qu?Lq==="("?Lq:"-":Lq==="-"||Lq==="("?"":Lq)+yT;Am=(Rf==="s"?lN2[8+xxK/3]:"")+Am+(qu&&Lq==="("?")":"");if(ou)for(qu=-1,
eh=b_.length;++qu<eh;)if(g3=b_.charCodeAt(qu),48>g3||g3>57){Am=(g3===46?IR+b_.slice(qu+1):b_.slice(qu))+Am;b_=b_.slice(0,qu);break}}jm&&!Tj&&(b_=A(b_,Infinity));g3=yT.length+b_.length+Am.length;qu=g3<i_?Array(i_-g3+1).join(Zt):"";jm&&Tj&&(b_=A(qu+b_,qu.length?i_-Am.length:Infinity),qu="");switch(EE){case "<":b_=yT+b_+Am+qu;break;case "=":b_=yT+qu+b_+Am;break;case "^":b_=qu.slice(0,g3=qu.length>>1)+yT+b_+Am+qu.slice(g3);break;default:b_=qu+yT+b_+Am}return zG(b_)}
ln=bcL(ln);var Zt=ln.fill,EE=ln.align,Lq=ln.sign,QK=ln.symbol,Tj=ln.zero,i_=ln.width,jm=ln.comma,mX=ln.precision,YI=ln.trim,Rf=ln.type;Rf==="n"?(jm=!0,Rf="g"):kdQ[Rf]||(mX==null&&(mX=12),YI=!0,Rf="g");if(Tj||Zt==="0"&&EE==="=")Tj=!0,Zt="0",EE="=";var C2=QK==="$"?Q[0]:QK==="#"&&/[boxX]/.test(Rf)?"0"+Rf.toLowerCase():"",kn=QK==="$"?Q[1]:/[%p]/.test(Rf)?pd:"",jH=kdQ[Rf],ou=/[defgprs%]/.test(Rf);mX=mX==null?6:/[gprs]/.test(Rf)?Math.max(1,Math.min(21,mX)):Math.max(0,Math.min(20,mX));wm.toString=function(){return ln+
""};
return wm}
var A=D.grouping&&D.thousands?Jqd(D.grouping,D.thousands):Dxf,Q=D.currency,IR=D.decimal,zG=D.numerals?R$v(D.numerals):Dxf,pd=D.percent||"%";return{format:S,formatPrefix:function(ln,wm){var Zt=S((ln=bcL(ln),ln.type="f",ln));ln=Math.max(-8,Math.min(8,Math.floor(B9j(wm)/3)))*3;var EE=Math.pow(10,-ln),Lq=lN2[8+ln/3];return function(QK){return Zt(EE*QK)+Lq}}}}
function Ll(){this.reset()}
function sim(D,S,A){var Q=D.s=S+A,IR=Q-S;D.t=S-(Q-IR)+(A-IR)}
function OBb(D){return D>1?fV:D<-1?-fV:Math.asin(D)}
function ngj(){}
function Ags(D){var S=D[0];D=D[1];var A=TS(D);return[A*TS(S),A*c9(S),c9(D)]}
function Y8J(D,S){return[D[1]*S[2]-D[2]*S[1],D[2]*S[0]-D[0]*S[2],D[0]*S[1]-D[1]*S[0]]}
function BzA(D){var S=v_t(D[0]*D[0]+D[1]*D[1]+D[2]*D[2]);D[0]/=S;D[1]/=S;D[2]/=S}
function Hjm(){var D=[],S;return{point:function(A,Q){S.push([A,Q])},
lineStart:function(){D.push(S=[])},
lineEnd:ngj,rejoin:function(){D.length>1&&D.push(D.pop().concat(D.shift()))},
result:function(){var A=D;D=[];S=null;return A}}}
function dOj(D,S,A,Q){this.x=D;this.z=S;this.o=A;this.e=Q;this.v=!1;this.n=this.p=null}
function XQt(D,S,A,Q,IR){var zG=[],pd=[];D.forEach(function(Lq){if(!((QK=Lq.length-1)<=0)){var QK,Tj=Lq[0],i_=Lq[QK],jm=Tj;if(uk(jm[0]-i_[0])<1E-6&&uk(jm[1]-i_[1])<1E-6){IR.lineStart();for(ln=0;ln<QK;++ln)IR.point((Tj=Lq[ln])[0],Tj[1]);IR.lineEnd()}else zG.push(QK=new dOj(Tj,Lq,null,!0)),pd.push(QK.o=new dOj(Tj,null,QK,!1)),zG.push(QK=new dOj(i_,Lq,null,!1)),pd.push(QK.o=new dOj(i_,null,QK,!0))}});
if(zG.length){pd.sort(S);JgE(zG);JgE(pd);var ln=0;for(D=pd.length;ln<D;++ln)pd[ln].e=A=!A;A=zG[0];for(var wm;;){for(var Zt=A,EE=!0;Zt.v;)if((Zt=Zt.n)===A)return;S=Zt.z;IR.lineStart();do{Zt.v=Zt.o.v=!0;if(Zt.e){if(EE)for(ln=0,D=S.length;ln<D;++ln)IR.point((wm=S[ln])[0],wm[1]);else Q(Zt.x,Zt.n.x,1,IR);Zt=Zt.n}else{if(EE)for(S=Zt.p.z,ln=S.length-1;ln>=0;--ln)IR.point((wm=S[ln])[0],wm[1]);else Q(Zt.x,Zt.p.x,-1,IR);Zt=Zt.p}Zt=Zt.o;S=Zt.z;EE=!EE}while(!Zt.v);IR.lineEnd()}}}
function JgE(D){if(S=D.length){for(var S,A=0,Q=D[0],IR;++A<S;)Q.n=IR=D[A],IR.p=Q,Q=IR;Q.n=IR=D[0];IR.p=Q}}
function aGq(D){return D.length>1}
function Gn3(D,S){return((D=D.x)[0]<0?D[1]-fV-1E-6:fV-D[1])-((S=S.x)[0]<0?S[1]-fV-1E-6:fV-S[1])}
function Zcu(){}
function RgQ(D){return function(S,A){var Q=TS(S),IR=TS(A);Q=D(Q*IR);return[Q*IR*c9(S),Q*c9(A)]}}
function W$(D){return function(S,A){var Q=v_t(S*S+A*A),IR=D(Q),zG=c9(IR);IR=TS(IR);return[jiQ(S*zG,Q*IR),OBb(Q&&A*zG/Q)]}}
function rqd(D){var S=0,A=D.children,Q=A&&A.length;if(Q)for(;--Q>=0;)S+=A[Q].value;else S=1;D.value=S}
function $x6(D,S){var A=new V9(D);D=+D.value&&(A.value=D.value);var Q,IR=[A],zG,pd,ln,wm;for(S==null&&(S=bjW);Q=IR.pop();)if(D&&(Q.value=+Q.data.value),(pd=S(Q.data))&&(wm=pd.length))for(Q.children=Array(wm),ln=wm-1;ln>=0;--ln)IR.push(zG=Q.children[ln]=new V9(pd[ln])),zG.parent=Q,zG.depth=Q.depth+1;return A.eachBefore(Q4W)}
function bjW(D){return D.children}
function Zjj(D){D.data=D.data.data}
function Q4W(D){var S=0;do D.height=S;while((D=D.parent)&&D.height<++S)}
function V9(D){this.data=D;this.depth=this.height=0;this.parent=null}
function ww(D,S,A,Q){function IR(zG){return D(zG=new Date(+zG)),zG}
IR.floor=IR;IR.ceil=function(zG){return D(zG=new Date(zG-1)),S(zG,1),D(zG),zG};
IR.round=function(zG){var pd=IR(zG),ln=IR.ceil(zG);return zG-pd<ln-zG?pd:ln};
IR.offset=function(zG,pd){return S(zG=new Date(+zG),pd==null?1:Math.floor(pd)),zG};
IR.range=function(zG,pd,ln){var wm=[],Zt;zG=IR.ceil(zG);ln=ln==null?1:Math.floor(ln);if(!(zG<pd&&ln>0))return wm;do wm.push(Zt=new Date(+zG)),S(zG,ln),D(zG);while(Zt<zG&&zG<pd);return wm};
IR.filter=function(zG){return ww(function(pd){if(pd>=pd)for(;D(pd),!zG(pd);)pd.setTime(pd-1)},function(pd,ln){if(pd>=pd)if(ln<0)for(;++ln<=0;)for(;S(pd,-1),!zG(pd););
else for(;--ln>=0;)for(;S(pd,1),!zG(pd););})};
A&&(IR.count=function(zG,pd){yZv.setTime(+zG);WKz.setTime(+pd);D(yZv);D(WKz);return Math.floor(A(yZv,WKz))},IR.every=function(zG){zG=Math.floor(zG);
return isFinite(zG)&&zG>0?zG>1?IR.filter(Q?function(pd){return Q(pd)%zG===0}:function(pd){return IR.count(0,pd)%zG===0}):IR:null});
return IR}
function MF(D){return ww(function(S){S.setDate(S.getDate()-(S.getDay()+7-D)%7);S.setHours(0,0,0,0)},function(S,A){S.setDate(S.getDate()+A*7)},function(S,A){return(A-S-(A.getTimezoneOffset()-S.getTimezoneOffset())*6E4)/6048E5})}
function qF(D){return ww(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-D)%7);S.setUTCHours(0,0,0,0)},function(S,A){S.setUTCDate(S.getUTCDate()+A*7)},function(S,A){return(A-S)/6048E5})}
function yBu(D){if(0<=D.y&&D.y<100){var S=new Date(-1,D.m,D.d,D.H,D.M,D.S,D.L);S.setFullYear(D.y);return S}return new Date(D.y,D.m,D.d,D.H,D.M,D.S,D.L)}
function Lj4(D){if(0<=D.y&&D.y<100){var S=new Date(Date.UTC(-1,D.m,D.d,D.H,D.M,D.S,D.L));S.setUTCFullYear(D.y);return S}return new Date(Date.UTC(D.y,D.m,D.d,D.H,D.M,D.S,D.L))}
function wn(D){return{y:D,m:0,d:1,H:0,M:0,S:0,L:0}}
function WBu(D){function S(Am,eh){return function(g3){var qu=[],Jb=-1,i4=0,Bp=Am.length,NO,yJ;for(g3 instanceof Date||(g3=new Date(+g3));++Jb<Bp;)if(Am.charCodeAt(Jb)===37){qu.push(Am.slice(i4,Jb));(i4=n02[NO=Am.charAt(++Jb)])!=null?NO=Am.charAt(++Jb):i4=NO==="e"?" ":"0";if(yJ=eh[NO])NO=yJ(g3,i4);qu.push(NO);i4=Jb+1}qu.push(Am.slice(i4,Jb));return qu.join("")}}
function A(Am,eh){return function(g3){var qu=wn(1900);if(Q(qu,Am,g3,0)!=g3.length)return null;if("Q"in qu)return new Date(qu.Q);"p"in qu&&(qu.H=qu.H%12+qu.p*12);if("V"in qu){if(qu.V<1||qu.V>53)return null;"w"in qu||(qu.w=1);if("Z"in qu){g3=Lj4(wn(qu.y));var Jb=g3.getUTCDay();g3=Jb>4||Jb===0?Vta.ceil(g3):Vta(g3);g3=H3s.offset(g3,(qu.V-1)*7);qu.y=g3.getUTCFullYear();qu.m=g3.getUTCMonth();qu.d=g3.getUTCDate()+(qu.w+6)%7}else g3=eh(wn(qu.y)),Jb=g3.getDay(),g3=Jb>4||Jb===0?wBn.ceil(g3):wBn(g3),g3=Xhf.offset(g3,
(qu.V-1)*7),qu.y=g3.getFullYear(),qu.m=g3.getMonth(),qu.d=g3.getDate()+(qu.w+6)%7}else if("W"in qu||"U"in qu)"w"in qu||(qu.w="u"in qu?qu.u%7:"W"in qu?1:0),Jb="Z"in qu?Lj4(wn(qu.y)).getUTCDay():eh(wn(qu.y)).getDay(),qu.m=0,qu.d="W"in qu?(qu.w+6)%7+qu.W*7-(Jb+5)%7:qu.w+qu.U*7-(Jb+6)%7;return"Z"in qu?(qu.H+=qu.Z/100|0,qu.M+=qu.Z%100,Lj4(qu)):eh(qu)}}
function Q(Am,eh,g3,qu){for(var Jb=0,i4=eh.length,Bp=g3.length,NO;Jb<i4;){if(qu>=Bp)return-1;NO=eh.charCodeAt(Jb++);if(NO===37){if(NO=eh.charAt(Jb++),NO=yT[NO in n02?eh.charAt(Jb++):NO],!NO||(qu=NO(Am,g3,qu))<0)return-1}else if(NO!=g3.charCodeAt(qu++))return-1}return qu}
var IR=D.dateTime,zG=D.date,pd=D.time,ln=D.periods,wm=D.days,Zt=D.shortDays,EE=D.months,Lq=D.shortMonths,QK=tu(ln),Tj=FG(ln),i_=tu(wm),jm=FG(wm),mX=tu(Zt),YI=FG(Zt),Rf=tu(EE),C2=FG(EE),kn=tu(Lq),jH=FG(Lq),ou={a:function(Am){return Zt[Am.getDay()]},
A:function(Am){return wm[Am.getDay()]},
b:function(Am){return Lq[Am.getMonth()]},
B:function(Am){return EE[Am.getMonth()]},
c:null,d:aNz,e:aNz,f:Vxj,H:wwC,I:txu,j:FBP,L:Gdz,m:Ef3,M:Nov,p:function(Am){return ln[+(Am.getHours()>=12)]},
Q:rgQ,s:b3i,S:I4C,u:gfd,U:Pdd,V:Cdu,w:O84,W:vfe,x:null,X:null,y:dfE,Y:LBP,Z:zKj,"%":QiJ},b_={a:function(Am){return Zt[Am.getUTCDay()]},
A:function(Am){return wm[Am.getUTCDay()]},
b:function(Am){return Lq[Am.getUTCMonth()]},
B:function(Am){return EE[Am.getUTCMonth()]},
c:null,d:Z3A,e:Z3A,f:cBu,H:eK4,I:hKW,j:ofC,L:yS6,m:KB4,M:pwv,p:function(Am){return ln[+(Am.getUTCHours()>=12)]},
Q:rgQ,s:b3i,S:i8P,u:f4E,U:Tom,V:mfC,w:MxC,W:qJE,x:null,X:null,y:Ufd,Y:ug4,Z:SJd,"%":QiJ},yT={a:function(Am,eh,g3){return(eh=mX.exec(eh.slice(g3)))?(Am.w=YI[eh[0].toLowerCase()],g3+eh[0].length):-1},
A:function(Am,eh,g3){return(eh=i_.exec(eh.slice(g3)))?(Am.w=jm[eh[0].toLowerCase()],g3+eh[0].length):-1},
b:function(Am,eh,g3){return(eh=kn.exec(eh.slice(g3)))?(Am.m=jH[eh[0].toLowerCase()],g3+eh[0].length):-1},
B:function(Am,eh,g3){return(eh=Rf.exec(eh.slice(g3)))?(Am.m=C2[eh[0].toLowerCase()],g3+eh[0].length):-1},
c:function(Am,eh,g3){return Q(Am,IR,eh,g3)},
d:WPs,e:WPs,f:DfC,H:VLi,I:VLi,j:l4u,L:xfC,m:kmu,M:sam,p:function(Am,eh,g3){return(eh=QK.exec(eh.slice(g3)))?(Am.p=Tj[eh[0].toLowerCase()],g3+eh[0].length):-1},
Q:ABj,s:YJj,S:Boe,u:JBe,U:RK3,V:jaq,w:$fm,W:nft,x:function(Am,eh,g3){return Q(Am,zG,eh,g3)},
X:function(Am,eh,g3){return Q(Am,pd,eh,g3)},
y:H8W,Y:XwP,Z:a4u,"%":Gmu};ou.x=S(zG,ou);ou.X=S(pd,ou);ou.c=S(IR,ou);b_.x=S(zG,b_);b_.X=S(pd,b_);b_.c=S(IR,b_);return{format:function(Am){var eh=S(Am,ou);eh.toString=function(){return Am};
return eh},
parse:function(Am){var eh=A(Am,yBu);eh.toString=function(){return Am};
return eh},
utcFormat:function(Am){var eh=S(Am,b_);eh.toString=function(){return Am};
return eh},
utcParse:function(Am){var eh=A(Am,Lj4);eh.toString=function(){return Am};
return eh}}}
function zI(D,S,A){var Q=D<0?"-":"";D=(Q?-D:D)+"";var IR=D.length;return Q+(IR<A?Array(A-IR+1).join(S)+D:D)}
function rBW(D){return D.replace(b8j,"\\$&")}
function tu(D){return new RegExp("^(?:"+D.map(rBW).join("|")+")","i")}
function FG(D){for(var S={},A=-1,Q=D.length;++A<Q;)S[D[A].toLowerCase()]=A;return S}
function $fm(D,S,A){return(S=OB.exec(S.slice(A,A+1)))?(D.w=+S[0],A+S[0].length):-1}
function JBe(D,S,A){return(S=OB.exec(S.slice(A,A+1)))?(D.u=+S[0],A+S[0].length):-1}
function RK3(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.U=+S[0],A+S[0].length):-1}
function jaq(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.V=+S[0],A+S[0].length):-1}
function nft(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.W=+S[0],A+S[0].length):-1}
function XwP(D,S,A){return(S=OB.exec(S.slice(A,A+4)))?(D.y=+S[0],A+S[0].length):-1}
function H8W(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.y=+S[0]+(+S[0]>68?1900:2E3),A+S[0].length):-1}
function a4u(D,S,A){return(S=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(S.slice(A,A+6)))?(D.Z=S[1]?0:-(S[2]+(S[3]||"00")),A+S[0].length):-1}
function kmu(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.m=S[0]-1,A+S[0].length):-1}
function WPs(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.d=+S[0],A+S[0].length):-1}
function l4u(D,S,A){return(S=OB.exec(S.slice(A,A+3)))?(D.m=0,D.d=+S[0],A+S[0].length):-1}
function VLi(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.H=+S[0],A+S[0].length):-1}
function sam(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.M=+S[0],A+S[0].length):-1}
function Boe(D,S,A){return(S=OB.exec(S.slice(A,A+2)))?(D.S=+S[0],A+S[0].length):-1}
function xfC(D,S,A){return(S=OB.exec(S.slice(A,A+3)))?(D.L=+S[0],A+S[0].length):-1}
function DfC(D,S,A){return(S=OB.exec(S.slice(A,A+6)))?(D.L=Math.floor(S[0]/1E3),A+S[0].length):-1}
function Gmu(D,S,A){return(D=Qat.exec(S.slice(A,A+1)))?A+D[0].length:-1}
function ABj(D,S,A){return(S=OB.exec(S.slice(A)))?(D.Q=+S[0],A+S[0].length):-1}
function YJj(D,S,A){return(S=OB.exec(S.slice(A)))?(D.Q=+S[0]*1E3,A+S[0].length):-1}
function aNz(D,S){return zI(D.getDate(),S,2)}
function wwC(D,S){return zI(D.getHours(),S,2)}
function txu(D,S){return zI(D.getHours()%12||12,S,2)}
function FBP(D,S){return zI(1+Xhf.count(QU(D),D),S,3)}
function Gdz(D,S){return zI(D.getMilliseconds(),S,3)}
function Vxj(D,S){return Gdz(D,S)+"000"}
function Ef3(D,S){return zI(D.getMonth()+1,S,2)}
function Nov(D,S){return zI(D.getMinutes(),S,2)}
function I4C(D,S){return zI(D.getSeconds(),S,2)}
function gfd(D){D=D.getDay();return D===0?7:D}
function Pdd(D,S){return zI(Z8q.count(QU(D),D),S,2)}
function Cdu(D,S){var A=D.getDay();D=A>=4||A===0?ttz(D):ttz.ceil(D);return zI(ttz.count(QU(D),D)+(QU(D).getDay()===4),S,2)}
function O84(D){return D.getDay()}
function vfe(D,S){return zI(wBn.count(QU(D),D),S,2)}
function dfE(D,S){return zI(D.getFullYear()%100,S,2)}
function LBP(D,S){return zI(D.getFullYear()%1E4,S,4)}
function zKj(D){D=D.getTimezoneOffset();return(D>0?"-":(D*=-1,"+"))+zI(D/60|0,"0",2)+zI(D%60,"0",2)}
function Z3A(D,S){return zI(D.getUTCDate(),S,2)}
function eK4(D,S){return zI(D.getUTCHours(),S,2)}
function hKW(D,S){return zI(D.getUTCHours()%12||12,S,2)}
function ofC(D,S){return zI(1+H3s.count(Zn(D),D),S,3)}
function yS6(D,S){return zI(D.getUTCMilliseconds(),S,3)}
function cBu(D,S){return yS6(D,S)+"000"}
function KB4(D,S){return zI(D.getUTCMonth()+1,S,2)}
function pwv(D,S){return zI(D.getUTCMinutes(),S,2)}
function i8P(D,S){return zI(D.getUTCSeconds(),S,2)}
function f4E(D){D=D.getUTCDay();return D===0?7:D}
function Tom(D,S){return zI(yrj.count(Zn(D),D),S,2)}
function mfC(D,S){var A=D.getUTCDay();D=A>=4||A===0?FKR(D):FKR.ceil(D);return zI(FKR.count(Zn(D),D)+(Zn(D).getUTCDay()===4),S,2)}
function MxC(D){return D.getUTCDay()}
function qJE(D,S){return zI(Vta.count(Zn(D),D),S,2)}
function Ufd(D,S){return zI(D.getUTCFullYear()%100,S,2)}
function ug4(D,S){return zI(D.getUTCFullYear()%1E4,S,4)}
function SJd(){return"+0000"}
function QiJ(){return"%"}
function rgQ(D){return+D}
function b3i(D){return Math.floor(+D/1E3)}
function Lz(D){for(var S=D.length/6|0,A=Array(S),Q=0;Q<S;)A[Q]="#"+D.slice(Q*6,++Q*6);return A}
function R8(D){return WI4(D[D.length-1])}
function zLy(D){var S=D.length;return function(A){return D[Math.max(0,Math.min(S-1,Math.floor(A*S)))]}}
function wPI(D){this._context=D}
function tL2(D){this._curve=D}
function FPz(D,S,A){var Q=D._x1-D._x0;S-=D._x1;var IR=(D._y1-D._y0)/(Q||S<0&&-0);D=(A-D._y1)/(S||Q<0&&-0);return((IR<0?-1:1)+(D<0?-1:1))*Math.min(Math.abs(IR),Math.abs(D),.5*Math.abs((IR*S+D*Q)/(Q+S)))||0}
function EKs(D,S){var A=D._x1-D._x0;return A?(3*(D._y1-D._y0)/A-S)/2:S}
function Epb(D,S,A){var Q=D._x0,IR=D._x1,zG=D._y1,pd=(IR-Q)/3;D._context.bezierCurveTo(Q+pd,D._y0+pd*S,IR-pd,zG-pd*A,IR,zG)}
function N0L(D){this._context=D}
function Ndf(D){this._context=D}
function Ed(D,S,A){this.k=D;this.x=S;this.y=A}
(function(D){D.length===1&&(D=W(D));return{left:function(S,A,Q,IR){Q==null&&(Q=0);IR==null&&(IR=S.length);for(;Q<IR;){var zG=Q+IR>>>1;D(S[zG],A)<0?Q=zG+1:IR=zG}return Q},
right:function(S,A,Q,IR){Q==null&&(Q=0);IR==null&&(IR=S.length);for(;Q<IR;){var zG=Q+IR>>>1;D(S[zG],A)>0?IR=zG:Q=zG+1}return Q}}})(y);
var agE={value:function(){}};
w.prototype=V.prototype={constructor:w,on:function(D,S){var A=this._,Q=t(D+"",A),IR,zG=-1,pd=Q.length;if(arguments.length<2)for(;++zG<pd;){var ln;if(ln=IR=(D=Q[zG]).type){a:{ln=A[IR];for(var wm=0,Zt=ln.length;wm<Zt;++wm)if((IR=ln[wm]).name===D.name){IR=IR.value;break a}IR=void 0}ln=IR}if(ln)return IR}else{if(S!=null&&typeof S!=="function")throw Error("He`"+S);for(;++zG<pd;)if(IR=(D=Q[zG]).type)A[IR]=F(A[IR],D.name,S);else if(S==null)for(IR in A)A[IR]=F(A[IR],D.name,null);return this}},
copy:function(){var D={},S=this._,A;for(A in S)D[A]=S[A].slice();return new w(D)},
call:function(D,S){if((IR=arguments.length-2)>0)for(var A=Array(IR),Q=0,IR,zG;Q<IR;++Q)A[Q]=arguments[Q+2];if(!this._.hasOwnProperty(D))throw Error("Be`"+D);zG=this._[D];Q=0;for(IR=zG.length;Q<IR;++Q)zG[Q].value.apply(S,A)},
apply:function(D,S,A){if(!this._.hasOwnProperty(D))throw Error("Be`"+D);D=this._[D];for(var Q=0,IR=D.length;Q<IR;++Q)D[Q].value.apply(S,A)}};
var iw={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/"},IkJ=function(D){return function(){return this.matches(D)}};
if(typeof document!=="undefined"){var NZ=document.documentElement;if(!NZ.matches){var VZm=NZ.webkitMatchesSelector||NZ.msMatchesSelector||NZ.mozMatchesSelector||NZ.oMatchesSelector;IkJ=function(D){return function(){return VZm.call(this,D)}}}}var gKq=IkJ;
K.prototype={constructor:K,appendChild:function(D){return this._parent.insertBefore(D,this._next)},
insertBefore:function(D,S){return this._parent.insertBefore(D,S)},
querySelector:function(D){return this._parent.querySelector(D)},
querySelectorAll:function(D){return this._parent.querySelectorAll(D)}};
var O3i={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(O3i={mouseenter:"mouseover",mouseleave:"mouseout"}));var GfP=[null];b2.prototype=vd.prototype={constructor:b2,select:function(D){typeof D!=="function"&&(D=z(D));for(var S=this._groups,A=S.length,Q=Array(A),IR=0;IR<A;++IR)for(var zG=S[IR],pd=zG.length,ln=Q[IR]=Array(pd),wm,Zt,EE=0;EE<pd;++EE)(wm=zG[EE])&&(Zt=D.call(wm,wm.__data__,EE,zG))&&("__data__"in wm&&(Zt.__data__=wm.__data__),ln[EE]=Zt);return new b2(Q,this._parents)},
filter:function(D){typeof D!=="function"&&(D=gKq(D));for(var S=this._groups,A=S.length,Q=Array(A),IR=0;IR<A;++IR)for(var zG=S[IR],pd=zG.length,ln=Q[IR]=[],wm,Zt=0;Zt<pd;++Zt)(wm=zG[Zt])&&D.call(wm,wm.__data__,Zt,zG)&&ln.push(wm);return new b2(Q,this._parents)},
data:function(D,S){if(!D)return Tj=Array(this.size()),Zt=-1,this.each(function(Rf){Tj[++Zt]=Rf}),Tj;
var A=S?l:U,Q=this._parents,IR=this._groups;typeof D!=="function"&&(D=f(D));for(var zG=IR.length,pd=Array(zG),ln=Array(zG),wm=Array(zG),Zt=0;Zt<zG;++Zt){var EE=Q[Zt],Lq=IR[Zt],QK=Lq.length,Tj=D.call(EE,EE&&EE.__data__,Zt,Q),i_=Tj.length,jm=ln[Zt]=Array(i_),mX=pd[Zt]=Array(i_);QK=wm[Zt]=Array(QK);A(EE,Lq,jm,mX,QK,Tj,S);Lq=EE=0;for(var YI;EE<i_;++EE)if(QK=jm[EE]){for(EE>=Lq&&(Lq=EE+1);!(YI=mX[Lq])&&++Lq<i_;);QK._next=YI||null}}pd=new b2(pd,Q);pd._enter=ln;pd._exit=wm;return pd},
enter:function(){return new b2(this._enter||this._groups.map(c),this._parents)},
exit:function(){return new b2(this._exit||this._groups.map(c),this._parents)},
merge:function(D){var S=this._groups;D=D._groups;for(var A=S.length,Q=Math.min(A,D.length),IR=Array(A),zG=0;zG<Q;++zG)for(var pd=S[zG],ln=D[zG],wm=pd.length,Zt=IR[zG]=Array(wm),EE,Lq=0;Lq<wm;++Lq)if(EE=pd[Lq]||ln[Lq])Zt[Lq]=EE;for(;zG<A;++zG)IR[zG]=S[zG];return new b2(IR,this._parents)},
order:function(){for(var D=this._groups,S=-1,A=D.length;++S<A;)for(var Q=D[S],IR=Q.length-1,zG=Q[IR],pd;--IR>=0;)if(pd=Q[IR])zG&&zG!==pd.nextSibling&&zG.parentNode.insertBefore(pd,zG),zG=pd;return this},
sort:function(D){function S(Lq,QK){return Lq&&QK?D(Lq.__data__,QK.__data__):!Lq-!QK}
D||(D=x);for(var A=this._groups,Q=A.length,IR=Array(Q),zG=0;zG<Q;++zG){for(var pd=A[zG],ln=pd.length,wm=IR[zG]=Array(ln),Zt,EE=0;EE<ln;++EE)if(Zt=pd[EE])wm[EE]=Zt;wm.sort(S)}return(new b2(IR,this._parents)).order()},
call:function(){var D=arguments[0];arguments[0]=this;D.apply(null,arguments);return this},
nodes:function(){var D=Array(this.size()),S=-1;this.each(function(){D[++S]=this});
return D},
node:function(){for(var D=this._groups,S=0,A=D.length;S<A;++S)for(var Q=D[S],IR=0,zG=Q.length;IR<zG;++IR){var pd=Q[IR];if(pd)return pd}return null},
size:function(){var D=0;this.each(function(){++D});
return D},
empty:function(){return!this.node()},
each:function(D){for(var S=this._groups,A=0,Q=S.length;A<Q;++A)for(var IR=S[A],zG=0,pd=IR.length,ln;zG<pd;++zG)(ln=IR[zG])&&D.call(ln,ln.__data__,zG,IR);return this},
attr:function(D,S){var A=I(D);if(arguments.length<2){var Q=this.node();return A.local?Q.getAttributeNS(A.space,A.local):Q.getAttribute(A)}return this.each((S==null?A.local?r:B:typeof S==="function"?A.local?Fv:b:A.local?a:H)(A,S))},
style:function(D,S,A){return arguments.length>1?this.each((S==null?Py:typeof S==="function"?mL:du)(D,S,A==null?"":A)):un(this.node(),D)},
property:function(D,S){return arguments.length>1?this.each((S==null?hv:typeof S==="function"?sz:$P)(D,S)):this.node()[D]},
text:function(D){return arguments.length?this.each(D==null?Wz:(typeof D==="function"?OE:mf)(D)):this.node().textContent},
html:function(D){return arguments.length?this.each(D==null?Qj:(typeof D==="function"?zR:Kq)(D)):this.node().innerHTML},
append:function(D){var S=typeof D==="function"?D:d(D);return this.select(function(){return this.appendChild(S.apply(this,arguments))})},
insert:function(D,S){var A=typeof D==="function"?D:d(D),Q=S==null?l2:typeof S==="function"?S:z(S);return this.select(function(){return this.insertBefore(A.apply(this,arguments),Q.apply(this,arguments)||null)})},
remove:function(){return this.each(lt)},
clone:function(D){return this.select(D?Na:yu)},
datum:function(D){return arguments.length?this.property("__data__",D):this.node().__data__},
on:function(D,S,A){var Q=eP(D+""),IR=Q.length,zG;if(arguments.length<2){var pd=this.node().__on;if(pd)for(var ln=0,wm=pd.length,Zt;ln<wm;++ln){var EE=0;for(Zt=pd[ln];EE<IR;++EE)if((zG=Q[EE]).type===Zt.type&&zG.name===Zt.name)return Zt.value}}else{pd=S?jQ:hA;A==null&&(A=!1);for(EE=0;EE<IR;++EE)this.each(pd(Q[EE],S,A));return this}},
dispatch:function(D,S){return this.each((typeof S==="function"?Pz:Wd)(D,S))}};
var rRm=0;Mr.prototype=function(){return new Mr}.prototype={constructor:Mr,
get:function(D){for(var S=this._;!(S in D);)if(!(D=D.parentNode))return;return D[S]},
set:function(D,S){return D[this._]=S},
remove:function(D){return this._ in D&&delete D[this._]},
toString:function(){return this._}};
var yb=1/.7,boj=/^#([0-9a-f]{3})$/,Qgu=/^#([0-9a-f]{6})$/,Zoj=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),yqq=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Wud=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),VNd=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*\\)$"),
wQW=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),tNu=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*\\)$"),v0I={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};
u2(v7,Ce,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
u2(FM,ne,ov(v7,{brighter:function(D){D=D==null?yb:Math.pow(yb,D);return new FM(this.r*D,this.g*D,this.b*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new FM(this.r*D,this.g*D,this.b*D,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"#"+Ex(this.r)+Ex(this.g)+Ex(this.b)},
toString:function(){var D=this.opacity;D=isNaN(D)?1:Math.max(0,Math.min(1,D));return(D===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))+(D===1?")":", "+D+")")}}));
u2(bz,bh,ov(v7,{brighter:function(D){D=D==null?yb:Math.pow(yb,D);return new bz(this.h,this.s,this.l*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new bz(this.h,this.s,this.l*D,this.opacity)},
rgb:function(){var D=this.h%360+(this.h<0)*360,S=this.l,A=S+(S<.5?S:1-S)*(isNaN(D)||isNaN(this.s)?0:this.s);S=2*S-A;return new FM(tU(D>=240?D-240:D+120,S,A),tU(D,S,A),tU(D<120?D+240:D-120,S,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 dxr=Math.PI/180,cg6=180/Math.PI,zgJ=4/29,rC=6/29,LZR=3*rC*rC,Fu4=rC*rC*rC;u2(TG,function(D,S,A,Q){return arguments.length===1?Qm(D):new TG(D,S,A,Q==null?1:Q)},ov(v7,{brighter:function(D){return new TG(this.l+18*(D==null?1:D),this.a,this.b,this.opacity)},
darker:function(D){return new TG(this.l-18*(D==null?1:D),this.a,this.b,this.opacity)},
rgb:function(){var D=(this.l+16)/116,S=isNaN(this.a)?D:D+this.a/500,A=isNaN(this.b)?D:D-this.b/200;S=.96422*Hy(S);D=1*Hy(D);A=.82521*Hy(A);return new FM(pq(3.1338561*S-1.6168667*D-.4906146*A),pq(-.9787684*S+1.9161415*D+.033454*A),pq(.0719453*S-.2289914*D+1.4052427*A),this.opacity)}}));
u2(i2,Ke,ov(v7,{brighter:function(D){return new i2(this.h,this.c,this.l+18*(D==null?1:D),this.opacity)},
darker:function(D){return new i2(this.h,this.c,this.l-18*(D==null?1:D),this.opacity)},
rgb:function(){return Qm(this).rgb()}}));
var egI=1.78277*-.29227-.1347134789;u2(ut,eQ,ov(v7,{brighter:function(D){D=D==null?yb:Math.pow(yb,D);return new ut(this.h,this.s,this.l*D,this.opacity)},
darker:function(D){D=D==null?.7:Math.pow(.7,D);return new ut(this.h,this.s,this.l*D,this.opacity)},
rgb:function(){var D=isNaN(this.h)?0:(this.h+120)*dxr,S=+this.l,A=isNaN(this.s)?0:this.s*S*(1-S),Q=Math.cos(D);D=Math.sin(D);return new FM(255*(S+A*(-.14861*Q+1.78277*D)),255*(S+A*(-.29227*Q+-.90649*D)),255*(S+1.97294*Q*A),this.opacity)}}));
var i3z=function A(S){function Q(zG,pd){var ln=IR((zG=ne(zG)).r,(pd=ne(pd)).r),wm=IR(zG.g,pd.g),Zt=IR(zG.b,pd.b),EE=Qi(zG.opacity,pd.opacity);return function(Lq){zG.r=ln(Lq);zG.g=wm(Lq);zG.b=Zt(Lq);zG.opacity=EE(Lq);return zG+""}}
var IR=U9(S);Q.gamma=A;return Q}(1),WI4=Z2(function(S){var A=S.length-1;
return function(Q){var IR=Q<=0?Q=0:Q>=1?(Q=1,A-1):Math.floor(Q*A),zG=S[IR],pd=S[IR+1];return oG((Q-IR/A)*A,IR>0?S[IR-1]:2*zG-pd,zG,pd,IR<A-1?S[IR+2]:2*pd-zG)}});
Z2(function(S){var A=S.length;return function(Q){var IR=Math.floor(((Q%=1)<0?++Q:Q)*A);return oG((Q-IR/A)*A,S[(IR+A-1)%A],S[IR%A],S[(IR+1)%A],S[(IR+2)%A])}});
var RYz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jbP=new RegExp(RYz.source,"g"),hgf=180/Math.PI,I04={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},IO,gpz,PiI,csu,wqt=DS(function(S){if(S==="none")return I04;IO||(IO=document.createElement("DIV"),gpz=document.documentElement,PiI=document.defaultView);IO.style.transform=S;S=PiI.getComputedStyle(gpz.appendChild(IO),null).getPropertyValue("transform");gpz.removeChild(IO);S=S.slice(7,-1).split(",");return dU(+S[0],+S[1],+S[2],+S[3],
+S[4],+S[5])},"px, ","px)","deg)"),tZ4=DS(function(S){if(S==null)return I04;
csu||(csu=document.createElementNS("http://www.w3.org/2000/svg","g"));csu.setAttribute("transform",S);if(!(S=csu.transform.baseVal.consolidate()))return I04;S=S.matrix;return dU(S.a,S.b,S.c,S.d,S.e,S.f)},", ",")",")");
Ku(YR);Ku(Qi);dg(YR);dg(Qi);GW(YR);var PkR=GW(Qi),b9=0,QQ=0,y9=0,I3u,Zz,NiL=0,Ti=0,E_4=0,bD=typeof performance==="object"&&performance.now?performance:Date,o0A=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};
wX.prototype=Zl.prototype={constructor:wX,restart:function(S,A,Q){if(typeof S!=="function")throw new TypeError("Ie");Q=(Q==null?Vw():+Q)+(A==null?0:+A);this._next||Zz===this||(Zz?Zz._next=this:I3u=this,Zz=this);this._call=S;this._time=Q;WJ()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,WJ())}};
var N9v=V("start","end","interrupt"),IG3=[],FIq=vd.prototype.constructor,CiR=0,WH=vd.prototype;Um.prototype=function(S){return vd().transition(S)}.prototype={constructor:Um,
select:function(S){var A=this._name,Q=this._id;typeof S!=="function"&&(S=z(S));for(var IR=this._groups,zG=IR.length,pd=Array(zG),ln=0;ln<zG;++ln)for(var wm=IR[ln],Zt=wm.length,EE=pd[ln]=Array(Zt),Lq,QK,Tj=0;Tj<Zt;++Tj)(Lq=wm[Tj])&&(QK=S.call(Lq,Lq.__data__,Tj,wm))&&("__data__"in Lq&&(QK.__data__=Lq.__data__),EE[Tj]=QK,$in(EE[Tj],A,Q,Tj,EE,h0(Lq,Q)));return new Um(pd,this._parents,A,Q)},
filter:function(S){typeof S!=="function"&&(S=gKq(S));for(var A=this._groups,Q=A.length,IR=Array(Q),zG=0;zG<Q;++zG)for(var pd=A[zG],ln=pd.length,wm=IR[zG]=[],Zt,EE=0;EE<ln;++EE)(Zt=pd[EE])&&S.call(Zt,Zt.__data__,EE,pd)&&wm.push(Zt);return new Um(IR,this._parents,this._name,this._id)},
merge:function(S){if(S._id!==this._id)throw Error();var A=this._groups;S=S._groups;for(var Q=A.length,IR=Math.min(Q,S.length),zG=Array(Q),pd=0;pd<IR;++pd)for(var ln=A[pd],wm=S[pd],Zt=ln.length,EE=zG[pd]=Array(Zt),Lq,QK=0;QK<Zt;++QK)if(Lq=ln[QK]||wm[QK])EE[QK]=Lq;for(;pd<Q;++pd)zG[pd]=A[pd];return new Um(zG,this._parents,this._name,this._id)},
selection:function(){return new FIq(this._groups,this._parents)},
transition:function(){for(var S=this._name,A=this._id,Q=++CiR,IR=this._groups,zG=IR.length,pd=0;pd<zG;++pd)for(var ln=IR[pd],wm=ln.length,Zt,EE=0;EE<wm;++EE)if(Zt=ln[EE]){var Lq=h0(Zt,A);$in(Zt,S,Q,EE,ln,{time:Lq.time+Lq.delay+Lq.duration,delay:0,duration:Lq.duration,ease:Lq.ease})}return new Um(IR,this._parents,S,Q)},
call:WH.call,nodes:WH.nodes,node:WH.node,size:WH.size,empty:WH.empty,each:WH.each,on:function(S,A){var Q=this._id;return arguments.length<2?h0(this.node(),Q).on.on(S):this.each(T93(Q,S,A))},
attr:function(S,A){var Q=I(S),IR=Q==="transform"?tZ4:phq;return this.attrTween(S,typeof A==="function"?(Q.local?z$C:Luq)(Q,IR,Hcd(this,"attr."+S,A)):A==null?(Q.local?Ojm:CJm)(Q):(Q.local?d2j:vg3)(Q,IR,A+""))},
attrTween:function(S,A){var Q="attr."+S;if(arguments.length<2)return(Q=this.tween(Q))&&Q._value;if(A==null)return this.tween(Q,null);if(typeof A!=="function")throw Error();var IR=I(S);return this.tween(Q,(IR.local?cqt:e$t)(IR,A))},
style:function(S,A,Q){var IR=S==="transform"?wqt:phq;return A==null?this.styleTween(S,MNu(S,IR)).on("end.style."+S,qeu(S)):this.styleTween(S,typeof A==="function"?uIj(S,IR,Hcd(this,"style."+S,A)):U2u(S,IR,A+""),Q)},
styleTween:function(S,A,Q){var IR="style."+S;if(arguments.length<2)return(IR=this.tween(IR))&&IR._value;if(A==null)return this.tween(IR,null);if(typeof A!=="function")throw Error();return this.tween(IR,Seq(S,A,Q==null?"":Q))},
text:function(S){return this.tween("text",typeof S==="function"?lG3(Hcd(this,"text",S)):D2d(S==null?"":S+""))},
remove:function(){return this.on("end.remove",m2u(this._id))},
tween:function(S,A){var Q=this._id;if(arguments.length<2){Q=h0(this.node(),Q).tween;for(var IR=0,zG=Q.length,pd;IR<zG;++IR)if((pd=Q[IR]).name===S)return pd.value;return null}return this.each((A==null?ggq:PJ4)(Q,S,A))},
delay:function(S){var A=this._id;return arguments.length?this.each((typeof S==="function"?h$C:ogE)(A,S)):h0(this.node(),A).delay},
duration:function(S){var A=this._id;return arguments.length?this.each((typeof S==="function"?Kuu:pQu)(A,S)):h0(this.node(),A).duration},
ease:function(S){var A=this._id;return arguments.length?this.each(ijv(A,S)):h0(this.node(),A).ease}};
var Ckn={time:null,delay:0,duration:250,ease:function(S){return((S*=2)<=1?S*S*S:(S-=2)*S*S+2)/2}};
vd.prototype.transition=function(S){var A;if(S instanceof Um){var Q=S._id;S=S._name}else Q=++CiR,(A=Ckn).time=Vw(),S=S==null?null:S+"";for(var IR=this._groups,zG=IR.length,pd=0;pd<zG;++pd)for(var ln=IR[pd],wm=ln.length,Zt,EE=0;EE<wm;++EE)if(Zt=ln[EE]){var Lq=Zt,QK=S,Tj=Q,i_=EE,jm=ln,mX;if(!(mX=A))a:{mX=void 0;for(var YI=Q;!(mX=Zt.__transition)||!(mX=mX[YI]);)if(!(Zt=Zt.parentNode)){mX=(Ckn.time=Vw(),Ckn);break a}}$in(Lq,QK,Tj,i_,jm,mX)}return new Um(IR,this._parents,S,Q)};
["e","w"].map(XPv);["n","s"].map(XPv);"n e s w nw ne se sw".split(" ").map(XPv);aku.prototype=function(){return new aku}.prototype={constructor:aku,
moveTo:function(S,A){this._+="M"+(this._x0=this._x1=+S)+","+(this._y0=this._y1=+A)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(S,A){this._+="L"+(this._x1=+S)+","+(this._y1=+A)},
bezierCurveTo:function(S,A,Q,IR,zG,pd){this._+="C"+ +S+","+ +A+","+ +Q+","+ +IR+","+(this._x1=+zG)+","+(this._y1=+pd)},
rect:function(S,A,Q,IR){this._+="M"+(this._x0=this._x1=+S)+","+(this._y0=this._y1=+A)+"h"+ +Q+"v"+ +IR+"h"+-Q+"Z"},
toString:function(){return this._}};
g_v.prototype=fNJ.prototype={constructor:g_v,has:function(S){return" "+S in this},
get:function(S){return this[" "+S]},
set:function(S,A){this[" "+S]=A;return this},
remove:function(S){S=" "+S;return S in this&&delete this[S]},
clear:function(){for(var S in this)S[0]===" "&&delete this[S]},
keys:function(){var S=[],A;for(A in this)A[0]===" "&&S.push(A.slice(1));return S},
values:function(){var S=[],A;for(A in this)A[0]===" "&&S.push(this[A]);return S},
entries:function(){var S=[],A;for(A in this)A[0]===" "&&S.push({key:A.slice(1),value:this[A]});return S},
size:function(){var S=0,A;for(A in this)A[0]===" "&&++S;return S},
empty:function(){for(var S in this)if(S[0]===" ")return!1;return!0},
each:function(S){for(var A in this)A[0]===" "&&S(this[A],A.slice(1),this)}};
var Ut=fNJ.prototype;PCP.prototype=function(S,A){var Q=new PCP;if(S instanceof PCP)S.each(function(pd){Q.add(pd)});
else if(S){var IR=-1,zG=S.length;if(A==null)for(;++IR<zG;)Q.add(S[IR]);else for(;++IR<zG;)Q.add(A(S[IR],IR,S))}return Q}.prototype={constructor:PCP,
has:Ut.has,add:function(S){this[" "+S]=S;return this},
remove:Ut.remove,clear:Ut.clear,values:Ut.keys,size:Ut.size,empty:Ut.empty,each:Ut.each};var Mn6={},Gqb={},Eou=mxK(",").parse,N1j=mxK("\t").parse;q8s(Eou);q8s(N1j);var u6=function(S,A,Q){A=new rSv(A==null?Aqq:A,Q==null?Yem:Q,NaN,NaN,NaN,NaN);return S==null?A:A.addAll(S)}.prototype=rSv.prototype;
u6.copy=function(){var S=new rSv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),A=this._root,Q,IR;if(!A)return S;if(!A.length)return S._root=uBA(A),S;for(Q=[{source:A,target:S._root=Array(4)}];A=Q.pop();)for(var zG=0;zG<4;++zG)if(IR=A.source[zG])IR.length?Q.push({source:IR,target:A.target[zG]=Array(4)}):A.target[zG]=uBA(IR);return S};
u6.add=function(S){var A=+this._x.call(null,S),Q=+this._y.call(null,S);return UxK(this.cover(A,Q),A,Q,S)};
u6.addAll=function(S){var A,Q,IR=S.length,zG,pd,ln=Array(IR),wm=Array(IR),Zt=Infinity,EE=Infinity,Lq=-Infinity,QK=-Infinity;for(Q=0;Q<IR;++Q)isNaN(zG=+this._x.call(null,A=S[Q]))||isNaN(pd=+this._y.call(null,A))||(ln[Q]=zG,wm[Q]=pd,zG<Zt&&(Zt=zG),zG>Lq&&(Lq=zG),pd<EE&&(EE=pd),pd>QK&&(QK=pd));Lq<Zt&&(Zt=this._x0,Lq=this._x1);QK<EE&&(EE=this._y0,QK=this._y1);this.cover(Zt,EE).cover(Lq,QK);for(Q=0;Q<IR;++Q)UxK(this,ln[Q],wm[Q],S[Q]);return this};
u6.cover=function(S,A){if(isNaN(S=+S)||isNaN(A=+A))return this;var Q=this._x0,IR=this._y0,zG=this._x1,pd=this._y1;if(isNaN(Q))zG=(Q=Math.floor(S))+1,pd=(IR=Math.floor(A))+1;else if(Q>S||S>zG||IR>A||A>pd){var ln=zG-Q,wm=this._root,Zt;switch(Zt=(A<(IR+pd)/2)<<1|S<(Q+zG)/2){case 0:do{var EE=Array(4);EE[Zt]=wm;wm=EE}while(ln*=2,zG=Q+ln,pd=IR+ln,S>zG||A>pd);break;case 1:do EE=Array(4),EE[Zt]=wm,wm=EE;while(ln*=2,Q=zG-ln,pd=IR+ln,Q>S||A>pd);break;case 2:do EE=Array(4),EE[Zt]=wm,wm=EE;while(ln*=2,zG=Q+ln,
IR=pd-ln,S>zG||IR>A);break;case 3:do EE=Array(4),EE[Zt]=wm,wm=EE;while(ln*=2,Q=zG-ln,IR=pd-ln,Q>S||IR>A)}this._root&&this._root.length&&(this._root=wm)}else return this;this._x0=Q;this._y0=IR;this._x1=zG;this._y1=pd;return this};
u6.data=function(){var S=[];this.visit(function(A){if(!A.length){do S.push(A.data);while(A=A.next)}});
return S};
u6.extent=function(S){return arguments.length?this.cover(+S[0][0],+S[0][1]).cover(+S[1][0],+S[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
u6.find=function(S,A,Q){var IR=this._x0,zG=this._y0,pd,ln,wm,Zt,EE=this._x1,Lq=this._y1,QK=[],Tj=this._root,i_;Tj&&QK.push(new U$(Tj,IR,zG,EE,Lq));Q==null?Q=Infinity:(IR=S-Q,zG=A-Q,EE=S+Q,Lq=A+Q,Q*=Q);for(;i_=QK.pop();)if(!(!(Tj=i_.node)||(pd=i_.x0)>EE||(ln=i_.y0)>Lq||(wm=i_.x1)<IR||(Zt=i_.y1)<zG))if(Tj.length){i_=(pd+wm)/2;var jm=(ln+Zt)/2;QK.push(new U$(Tj[3],i_,jm,wm,Zt),new U$(Tj[2],pd,jm,i_,Zt),new U$(Tj[1],i_,ln,wm,jm),new U$(Tj[0],pd,ln,i_,jm));if(Tj=(A>=jm)<<1|S>=i_)i_=QK[QK.length-1],QK[QK.length-
1]=QK[QK.length-1-Tj],QK[QK.length-1-Tj]=i_}else if(i_=S-+this._x.call(null,Tj.data),jm=A-+this._y.call(null,Tj.data),i_=i_*i_+jm*jm,i_<Q){var mX=Math.sqrt(Q=i_);IR=S-mX;zG=A-mX;EE=S+mX;Lq=A+mX;mX=Tj.data}return mX};
u6.remove=function(S){if(isNaN(Zt=+this._x.call(null,S))||isNaN(EE=+this._y.call(null,S)))return this;var A,Q=this._root,IR,zG=this._x0,pd=this._y0,ln=this._x1,wm=this._y1,Zt,EE,Lq,QK,Tj,i_,jm;if(!Q)return this;if(Q.length)for(;;){(Tj=Zt>=(Lq=(zG+ln)/2))?zG=Lq:ln=Lq;(i_=EE>=(QK=(pd+wm)/2))?pd=QK:wm=QK;if(!(A=Q,Q=Q[jm=i_<<1|Tj]))return this;if(!Q.length)break;if(A[jm+1&3]||A[jm+2&3]||A[jm+3&3]){var mX=A;var YI=jm}}for(;Q.data!==S;)if(!(IR=Q,Q=Q.next))return this;(S=Q.next)&&delete Q.next;if(IR)return S?
IR.next=S:delete IR.next,this;if(!A)return this._root=S,this;S?A[jm]=S:delete A[jm];(Q=A[0]||A[1]||A[2]||A[3])&&Q===(A[3]||A[2]||A[1]||A[0])&&!Q.length&&(mX?mX[YI]=Q:this._root=Q);return this};
u6.removeAll=function(S){for(var A=0,Q=S.length;A<Q;++A)this.remove(S[A]);return this};
u6.root=function(){return this._root};
u6.size=function(){var S=0;this.visit(function(A){if(!A.length){do++S;while(A=A.next)}});
return S};
u6.visit=function(S){var A=[],Q,IR=this._root,zG,pd,ln,wm,Zt;for(IR&&A.push(new U$(IR,this._x0,this._y0,this._x1,this._y1));Q=A.pop();)if(!S(IR=Q.node,pd=Q.x0,ln=Q.y0,wm=Q.x1,Zt=Q.y1)&&IR.length){Q=(pd+wm)/2;var EE=(ln+Zt)/2;(zG=IR[3])&&A.push(new U$(zG,Q,EE,wm,Zt));(zG=IR[2])&&A.push(new U$(zG,pd,EE,Q,Zt));(zG=IR[1])&&A.push(new U$(zG,Q,ln,wm,EE));(zG=IR[0])&&A.push(new U$(zG,pd,ln,Q,EE))}};
u6.visitAfter=function(S){var A=[],Q=[],IR;for(this._root&&A.push(new U$(this._root,this._x0,this._y0,this._x1,this._y1));IR=A.pop();){var zG=IR.node;if(zG.length){var pd,ln=IR.x0,wm=IR.y0,Zt=IR.x1,EE=IR.y1,Lq=(ln+Zt)/2,QK=(wm+EE)/2;(pd=zG[0])&&A.push(new U$(pd,ln,wm,Lq,QK));(pd=zG[1])&&A.push(new U$(pd,Lq,wm,Zt,QK));(pd=zG[2])&&A.push(new U$(pd,ln,QK,Lq,EE));(pd=zG[3])&&A.push(new U$(pd,Lq,QK,Zt,EE))}Q.push(IR)}for(;IR=Q.pop();)S(IR.node,IR.x0,IR.y0,IR.x1,IR.y1);return this};
u6.x=function(S){return arguments.length?(this._x=S,this):this._x};
u6.y=function(S){return arguments.length?(this._y=S,this):this._y};
var j4d=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;bcL.prototype=Qbz.prototype;Qbz.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 xxK,kdQ={"%":function(S,A){return(S*100).toFixed(A)},
b:function(S){return Math.round(S).toString(2)},
c:function(S){return S+""},
d:function(S){return Math.round(S).toString(10)},
e:function(S,A){return S.toExponential(A)},
f:function(S,A){return S.toFixed(A)},
g:function(S,A){return S.toPrecision(A)},
o:function(S){return Math.round(S).toString(8)},
p:function(S,A){return S8r(S*100,A)},
r:S8r,s:function(S,A){var Q=CCb(S,A);if(!Q)return S+"";var IR=Q[0];Q=Q[1];Q=Q-(xxK=Math.max(-8,Math.min(8,Math.floor(Q/3)))*3)+1;var zG=IR.length;return Q===zG?IR:Q>zG?IR+Array(Q-zG+1).join("0"):Q>0?IR.slice(0,Q)+"."+IR.slice(Q):"0."+Array(1-Q).join("0")+CCb(S,Math.max(0,A+Q-1))[0]},
X:function(S){return Math.round(S).toString(16).toUpperCase()},
x:function(S){return Math.round(S).toString(16)}},lN2="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),IsW;
(function(S){return IsW=$2m(S)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Ll.prototype={constructor:Ll,reset:function(){this.s=this.t=0},
add:function(S){sim(eLv,S,this.t);sim(this,eLv.s,this.s);this.s?this.t+=eLv.t:this.s=eLv.t},
valueOf:function(){return this.s}};
var eLv=new Ll,f7=Math.PI,fV=f7/2,OcR=f7/4,goj=f7*2,Ohu=f7/180,uk=Math.abs,vpj=Math.atan,jiQ=Math.atan2,TS=Math.cos,c9=Math.sin,v_t=Math.sqrt;new Ll;new Ll;new Ll;var dCR=new Ll;(function(S,A,Q,IR){return function(zG){function pd(jH,ou){S(jH,ou)&&zG.point(jH,ou)}
function ln(jH,ou){Tj.point(jH,ou)}
function wm(){kn.point=ln;Tj.lineStart()}
function Zt(){kn.point=pd;Tj.lineEnd()}
function EE(jH,ou){C2.push([jH,ou]);jm.point(jH,ou)}
function Lq(){jm.lineStart();C2=[]}
function QK(){EE(C2[0][0],C2[0][1]);jm.lineEnd();var jH=jm.clean(),ou=i_.result(),b_=ou.length,yT;C2.pop();YI.push(C2);C2=null;if(b_)if(jH&1){if(b_=ou[0],(ou=b_.length-1)>0){mX||(zG.polygonStart(),mX=!0);zG.lineStart();for(jH=0;jH<ou;++jH)zG.point((yT=b_[jH])[0],yT[1]);zG.lineEnd()}}else b_>1&&jH&2&&ou.push(ou.pop().concat(ou.shift())),Rf.push(ou.filter(aGq))}
var Tj=A(zG),i_=Hjm(),jm=A(i_),mX=!1,YI,Rf,C2,kn={point:pd,lineStart:wm,lineEnd:Zt,polygonStart:function(){kn.point=EE;kn.lineStart=Lq;kn.lineEnd=QK;Rf=[];YI=[]},
polygonEnd:function(){kn.point=pd;kn.lineStart=wm;kn.lineEnd=Zt;var jH=Rf,ou=jH.length;var b_=-1;for(var yT=0,Am,eh;++b_<ou;)yT+=jH[b_].length;for(Am=Array(yT);--ou>=0;)for(eh=jH[ou],b_=eh.length;--b_>=0;)Am[--yT]=eh[b_];Rf=Am;jH=YI;ou=IR[0];yT=IR[1];var g3=c9(yT);b_=[c9(ou),-TS(ou),0];eh=Am=0;dCR.reset();g3===1?yT=fV+1E-6:g3===-1&&(yT=-fV-1E-6);g3=0;for(var qu=jH.length;g3<qu;++g3)if(i4=(Jb=jH[g3]).length){var Jb,i4,Bp=Jb[i4-1],NO=Bp[0],yJ=Bp[1]/2+OcR,hLy=c9(yJ),vKR=TS(yJ);for(yJ=0;yJ<i4;++yJ,NO=
LK4,hLy=diQ,vKR=gn,Bp=o_v){var o_v=Jb[yJ],LK4=o_v[0];gn=o_v[1]/2+OcR;var diQ=c9(gn),gn=TS(gn),Vb=LK4-NO,zjt=Vb>=0?1:-1,cZL=zjt*Vb,Kja=cZL>f7;hLy*=diQ;dCR.add(jiQ(hLy*zjt*c9(cZL),vKR*gn+hLy*TS(cZL)));Am+=Kja?Vb+zjt*goj:Vb;Kja^NO>=ou^LK4>=ou&&(Bp=Y8J(Ags(Bp),Ags(o_v)),BzA(Bp),NO=Y8J(b_,Bp),BzA(NO),NO=(Kja^Vb>=0?-1:1)*OBb(NO[2]),yT>NO||yT===NO&&(Bp[0]||Bp[1]))&&(eh+=Kja^Vb>=0?1:-1)}}jH=(Am<-1E-6||Am<1E-6&&dCR<-1E-6)^eh&1;Rf.length?(mX||(zG.polygonStart(),mX=!0),XQt(Rf,Gn3,jH,Q,zG)):jH&&(mX||(zG.polygonStart(),
mX=!0),zG.lineStart(),Q(null,null,1,zG),zG.lineEnd());mX&&(zG.polygonEnd(),mX=!1);Rf=YI=null},
sphere:function(){zG.polygonStart();zG.lineStart();Q(null,null,1,zG);zG.lineEnd();zG.polygonEnd()}};
return kn}})(function(){return!0},function(S){var A=NaN,Q=NaN,IR=NaN,zG;
return{lineStart:function(){S.lineStart();zG=1},
point:function(pd,ln){var wm=pd>0?f7:-f7,Zt=uk(pd-A);if(uk(Zt-f7)<1E-6)S.point(A,Q=(Q+ln)/2>0?fV:-fV),S.point(IR,Q),S.lineEnd(),S.lineStart(),S.point(wm,Q),S.point(pd,Q),zG=0;else if(IR!==wm&&Zt>=f7){uk(A-IR)<1E-6&&(A-=IR*1E-6);uk(pd-wm)<1E-6&&(pd-=wm*1E-6);Zt=A;var EE=Q,Lq=pd,QK,Tj,i_=c9(Zt-Lq);Q=uk(i_)>1E-6?vpj((c9(EE)*(Tj=TS(ln))*c9(Lq)-c9(ln)*(QK=TS(EE))*c9(Zt))/(QK*Tj*i_)):(EE+ln)/2;S.point(IR,Q);S.lineEnd();S.lineStart();S.point(wm,Q);zG=0}S.point(A=pd,Q=ln);IR=wm},
lineEnd:function(){S.lineEnd();A=Q=NaN},
clean:function(){return 2-zG}}},function(S,A,Q,IR){S==null?(Q*=fV,IR.point(-f7,Q),IR.point(0,Q),IR.point(f7,Q),IR.point(f7,0),IR.point(f7,-Q),IR.point(0,-Q),IR.point(-f7,-Q),IR.point(-f7,0),IR.point(-f7,Q)):uk(S[0]-A[0])>1E-6?(S=S[0]<A[0]?f7:-f7,Q=Q*S/2,IR.point(-S,Q),IR.point(0,Q),IR.point(S,Q)):IR.point(A[0],A[1])},[-f7,
-fV]);new Ll;new Ll;new Ll;new Ll;Zcu.prototype={constructor:Zcu,point:function(S,A){this.stream.point(S,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()}};
TS(30*Ohu);(function(S){return function(A){var Q=new Zcu,IR;for(IR in S)Q[IR]=S[IR];Q.stream=A;return Q}})({point:function(S,A){this.stream.point(S*Ohu,A*Ohu)}});
RgQ(function(S){return v_t(2/(1+S))}).invert=W$(function(S){return 2*OBb(S/2)});
RgQ(function(S){return(S=S>1?0:S<-1?f7:Math.acos(S))&&S/c9(S)}).invert=W$(function(S){return S});
v_t(3);W$(vpj);W$(OBb);W$(function(S){return 2*vpj(S)});
V9.prototype=$x6.prototype={constructor:V9,count:function(){return this.eachAfter(rqd)},
each:function(S){var A,Q=[this],IR;do{var zG=Q.reverse();for(Q=[];A=zG.pop();)if(S(A),A=A.children){var pd=0;for(IR=A.length;pd<IR;++pd)Q.push(A[pd])}}while(Q.length);return this},
eachAfter:function(S){for(var A,Q=[this],IR=[],zG,pd;A=Q.pop();)if(IR.push(A),A=A.children)for(zG=0,pd=A.length;zG<pd;++zG)Q.push(A[zG]);for(;A=IR.pop();)S(A);return this},
eachBefore:function(S){for(var A,Q=[this],IR;A=Q.pop();)if(S(A),A=A.children)for(IR=A.length-1;IR>=0;--IR)Q.push(A[IR]);return this},
sum:function(S){return this.eachAfter(function(A){for(var Q=+S(A.data)||0,IR=A.children,zG=IR&&IR.length;--zG>=0;)Q+=IR[zG].value;A.value=Q})},
sort:function(S){return this.eachBefore(function(A){A.children&&A.children.sort(S)})},
path:function(S){var A=this;var Q=A;var IR=S;if(Q!==IR){var zG=Q.ancestors(),pd=IR.ancestors(),ln=null;Q=zG.pop();for(IR=pd.pop();Q===IR;)ln=Q,Q=zG.pop(),IR=pd.pop();Q=ln}for(IR=[A];A!==Q;)A=A.parent,IR.push(A);for(A=IR.length;S!==Q;)IR.splice(A,0,S),S=S.parent;return IR},
ancestors:function(){for(var S=this,A=[S];S=S.parent;)A.push(S);return A},
links:function(){var S=this,A=[];S.each(function(Q){Q!==S&&A.push({source:Q.parent,target:Q})});
return A},
copy:function(){return $x6(this).eachBefore(Zjj)}};
(function(S,A){this._=S;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(V9.prototype);
var yZv=new Date,WKz=new Date,LPz=ww(function(){},function(S,A){S.setTime(+S+A)},function(S,A){return A-S});
LPz.every=function(S){S=Math.floor(S);return isFinite(S)&&S>0?S>1?ww(function(A){A.setTime(Math.floor(A/S)*S)},function(A,Q){A.setTime(+A+Q*S)},function(A,Q){return(Q-A)/S}):LPz:null};
ww(function(S){S.setTime(Math.floor(S/1E3)*1E3)},function(S,A){S.setTime(+S+A*1E3)},function(S,A){return(A-S)/1E3},function(S){return S.getUTCSeconds()});
ww(function(S){S.setTime(Math.floor(S/6E4)*6E4)},function(S,A){S.setTime(+S+A*6E4)},function(S,A){return(A-S)/6E4},function(S){return S.getMinutes()});
ww(function(S){var A=S.getTimezoneOffset()*6E4%36E5;A<0&&(A+=36E5);S.setTime(Math.floor((+S-A)/36E5)*36E5+A)},function(S,A){S.setTime(+S+A*36E5)},function(S,A){return(A-S)/36E5},function(S){return S.getHours()});
var Xhf=ww(function(S){S.setHours(0,0,0,0)},function(S,A){S.setDate(S.getDate()+A)},function(S,A){return(A-S-(A.getTimezoneOffset()-S.getTimezoneOffset())*6E4)/864E5},function(S){return S.getDate()-1}),Z8q=MF(0),wBn=MF(1);
MF(2);MF(3);var ttz=MF(4);MF(5);MF(6);ww(function(S){S.setDate(1);S.setHours(0,0,0,0)},function(S,A){S.setMonth(S.getMonth()+A)},function(S,A){return A.getMonth()-S.getMonth()+(A.getFullYear()-S.getFullYear())*12},function(S){return S.getMonth()});
var QU=ww(function(S){S.setMonth(0,1);S.setHours(0,0,0,0)},function(S,A){S.setFullYear(S.getFullYear()+A)},function(S,A){return A.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});
QU.every=function(S){return isFinite(S=Math.floor(S))&&S>0?ww(function(A){A.setFullYear(Math.floor(A.getFullYear()/S)*S);A.setMonth(0,1);A.setHours(0,0,0,0)},function(A,Q){A.setFullYear(A.getFullYear()+Q*S)}):null};
ww(function(S){S.setUTCSeconds(0,0)},function(S,A){S.setTime(+S+A*6E4)},function(S,A){return(A-S)/6E4},function(S){return S.getUTCMinutes()});
ww(function(S){S.setUTCMinutes(0,0,0)},function(S,A){S.setTime(+S+A*36E5)},function(S,A){return(A-S)/36E5},function(S){return S.getUTCHours()});
var H3s=ww(function(S){S.setUTCHours(0,0,0,0)},function(S,A){S.setUTCDate(S.getUTCDate()+A)},function(S,A){return(A-S)/864E5},function(S){return S.getUTCDate()-1}),yrj=qF(0),Vta=qF(1);
qF(2);qF(3);var FKR=qF(4);qF(5);qF(6);ww(function(S){S.setUTCDate(1);S.setUTCHours(0,0,0,0)},function(S,A){S.setUTCMonth(S.getUTCMonth()+A)},function(S,A){return A.getUTCMonth()-S.getUTCMonth()+(A.getUTCFullYear()-S.getUTCFullYear())*12},function(S){return S.getUTCMonth()});
var Zn=ww(function(S){S.setUTCMonth(0,1);S.setUTCHours(0,0,0,0)},function(S,A){S.setUTCFullYear(S.getUTCFullYear()+A)},function(S,A){return A.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});
Zn.every=function(S){return isFinite(S=Math.floor(S))&&S>0?ww(function(A){A.setUTCFullYear(Math.floor(A.getUTCFullYear()/S)*S);A.setUTCMonth(0,1);A.setUTCHours(0,0,0,0)},function(A,Q){A.setUTCFullYear(A.getUTCFullYear()+Q*S)}):null};
var n02={"-":"",_:" ",0:"0"},OB=/^\s*\d+/,Qat=/^%/,b8j=/[\\^$*+?|[\]().{}]/g,p4v;(function(S){p4v=WBu(S);w5f=p4v.utcFormat;tfr=p4v.utcParse;return p4v})({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||w5f("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||tfr("%Y-%m-%dT%H:%M:%S.%LZ");Lz("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Lz("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Lz("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Lz("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Lz("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Lz("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Lz("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Lz("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Lz("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Lz("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Lz("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Lz("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var PIv=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Lz);R8(PIv);var CId=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Lz);R8(CId);var O$u=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Lz);R8(O$u);var vou=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Lz);
R8(vou);var dnC=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Lz);R8(dnC);var LIv=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Lz);R8(LIv);var zIu=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Lz);R8(zIu);var crj=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Lz);R8(crj);var eIe=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Lz);R8(eIe);var hIt=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Lz);R8(hIt);var oot=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Lz);R8(oot);var KIq=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Lz);R8(KIq);var pqe=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Lz);R8(pqe);var i$C=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Lz);R8(i$C);var fs3=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Lz);R8(fs3);var T1d=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Lz);R8(T1d);var mnj=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Lz);R8(mnj);var MZq=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Lz);R8(MZq);var qVd=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Lz);R8(qVd);var Unj=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Lz);R8(Unj);var uf4=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Lz);R8(uf4);var SVq=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Lz);R8(SVq);var Dn4=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Lz);R8(Dn4);var lse=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Lz);R8(lse);var xnu=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Lz);R8(xnu);var k63=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Lz);R8(k63);var sxW=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Lz);R8(sxW);PkR(eQ(300,.5,0),eQ(-240,.5,1));PkR(eQ(-100,.75,.35),eQ(80,1.5,.8));PkR(eQ(260,.75,.35),eQ(80,1.5,.8));eQ();ne();zLy(Lz("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
zLy(Lz("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
zLy(Lz("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
zLy(Lz("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
wPI.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(S,A){S=+S;A=+A;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(S,A):this._context.moveTo(S,A);break;case 1:this._point=2;default:this._context.lineTo(S,A)}}};
(function(S){function A(Q){return new tL2(S(Q))}
A._curve=S;return A})(function(S){return new wPI(S)});
tL2.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(S,A){this._curve.point(A*Math.sin(S),A*-Math.cos(S))}};
N0L.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:Epb(this,this._t0,EKs(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(S,A){var Q=NaN;S=+S;A=+A;if(S!==this._x1||A!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(S,A):this._context.moveTo(S,A);break;case 1:this._point=2;break;case 2:this._point=3;Epb(this,EKs(this,Q=FPz(this,S,A)),Q);break;default:Epb(this,this._t0,Q=FPz(this,S,A))}this._x0=this._x1;this._x1=S;this._y0=this._y1;this._y1=A;this._t0=Q}}};
(function(S){this._context=new Ndf(S)}.prototype=Object.create(N0L.prototype)).point=function(S,A){N0L.prototype.point.call(this,A,S)};
Ndf.prototype={moveTo:function(S,A){this._context.moveTo(A,S)},
closePath:function(){this._context.closePath()},
lineTo:function(S,A){this._context.lineTo(A,S)},
bezierCurveTo:function(S,A,Q,IR,zG,pd){this._context.bezierCurveTo(A,S,IR,Q,pd,zG)}};
Ed.prototype={constructor:Ed,scale:function(S){return S===1?this:new Ed(this.k*S,this.x,this.y)},
translate:function(S,A){return S===0&A===0?this:new Ed(this.k,this.x+this.k*S,this.y+this.k*A)},
apply:function(S){return[S[0]*this.k+this.x,S[1]*this.k+this.y]},
invert:function(S){return[(S[0]-this.x)/this.k,(S[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Ed(1,0,0);E6v=Ce;iw.svg=iw.svg;iw.xhtml=iw.xhtml;iw.xlink=iw.xlink;iw.xml=iw.xml;iw.xmlns=iw.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 FG2="hammer_"+(Math.random()*1E6|0),EnJ=function(){var y=document||document;if(!y[FG2]){var W=function(){(function(V,w,t,F){function I(TG,YP,Hy){return setTimeout(c(TG,Hy),YP)}
function P(TG,YP,Hy){return Array.isArray(TG)?(C(TG,Hy[YP],Hy),!0):!1}
function C(TG,YP,Hy){var pq;if(TG)if(TG.forEach)TG.forEach(YP,Hy);else if(TG.length!==F){var Pd=0;for(pq=TG.length;Pd<pq;Pd++)YP.call(Hy,TG[Pd],Pd,TG)}else for(Pd in TG)TG.hasOwnProperty(Pd)&&YP.call(Hy,TG[Pd],Pd,TG)}
function d(TG,YP,Hy){for(var pq=Object.keys(YP),Pd=0,xR=pq.length;Pd<xR;Pd++)if(!Hy||Hy&&TG[pq[Pd]]===F)TG[pq[Pd]]=YP[pq[Pd]];return TG}
function L(TG,YP){return d(TG,YP,!0)}
function z(TG,YP,Hy){YP=YP.prototype;var pq=TG.prototype=Object.create(YP);pq.constructor=TG;pq._super=YP;Hy&&d(pq,Hy)}
function c(TG,YP){return function(){return TG.apply(YP,arguments)}}
function K(TG,YP){return typeof TG=="function"?TG.apply(YP?YP[0]||F:F,YP):TG}
function f(TG,YP,Hy){C(l(YP),function(pq){TG.addEventListener(pq,Hy,!1)})}
function U(TG,YP,Hy){C(l(YP),function(pq){TG.removeEventListener(pq,Hy,!1)})}
function l(TG){return TG.trim().split(/\s+/g)}
function x(TG,YP,Hy){if(TG.indexOf&&!Hy)return TG.indexOf(YP);for(var pq=0,Pd=TG.length;pq<Pd;pq++)if(Hy&&TG[pq][Hy]==YP||!Hy&&TG[pq]===YP)return pq;return-1}
function B(TG,YP,Hy){for(var pq=[],Pd=[],xR=0,Ke=TG.length;xR<Ke;xR++){var i2=YP?TG[xR][YP]:TG[xR];x(Pd,i2)<0&&pq.push(TG[xR]);Pd[xR]=i2}Hy&&(pq=YP?pq.sort(function(eQ,ut){return eQ[YP]>ut[YP]}):pq.sort());
return pq}
function r(TG,YP){for(var Hy,pq=YP[0].toUpperCase()+YP.slice(1),Pd=0,xR=Pz.length;Pd<xR;Pd++)if(Hy=(Hy=Pz[Pd])?Hy+pq:YP,Hy in TG)return Hy;return F}
function H(TG,YP){var Hy=this;this.manager=TG;this.callback=YP;this.element=TG.element;this.target=TG.options.inputTarget;this.domHandler=function(pq){K(TG.options.enable,[TG])&&Hy.handler(pq)};
this.evEl&&f(this.element,this.evEl,this.domHandler);this.evTarget&&f(this.target,this.evTarget,this.domHandler);this.evWin&&f(V,this.evWin,this.domHandler)}
function a(TG){var YP;MG?YP=$P:b5?YP=sz:Ce?YP=Wz:YP=hv;return new YP(TG,b)}
function b(TG,YP,Hy){var pq=Hy.pointers.length,Pd=Hy.changedPointers.length,xR=YP&1&&pq-Pd===0;Hy.isFirst=!!xR;Hy.isFinal=!!(YP&12&&pq-Pd===0);xR&&(TG.session={});Hy.eventType=YP;YP=TG.session;pq=Hy.pointers;Pd=pq.length;YP.firstInput||(YP.firstInput=Fv(Hy));Pd>1&&!YP.firstMultiple?YP.firstMultiple=Fv(Hy):Pd===1&&(YP.firstMultiple=!1);xR=YP.firstInput;var Ke=(Pd=YP.firstMultiple)?Pd.center:xR.center,i2=Hy.center=Py(pq);Hy.timeStamp=u2();Hy.deltaTime=Hy.timeStamp-xR.timeStamp;Hy.angle=un(Ke,i2);Hy.distance=
mL(Ke,i2);xR=Hy.center;Ke=YP.offsetDelta||{};i2=YP.prevDelta||{};var eQ=YP.prevInput||{};if(Hy.eventType===1||eQ.eventType===4)i2=YP.prevDelta={x:eQ.deltaX||0,y:eQ.deltaY||0},Ke=YP.offsetDelta={x:xR.x,y:xR.y};Hy.deltaX=i2.x+(xR.x-Ke.x);Hy.deltaY=i2.y+(xR.y-Ke.y);Hy.offsetDirection=du(Hy.deltaX,Hy.deltaY);Pd?(xR=Pd.pointers,xR=mL(pq[0],pq[1],ne)/mL(xR[0],xR[1],ne)):xR=1;Hy.scale=xR;Pd?(Pd=Pd.pointers,pq=un(pq[1],pq[0],ne)-un(Pd[1],Pd[0],ne)):pq=0;Hy.rotation=pq;Ke=YP.lastInterval||Hy;pq=Hy.timeStamp-
Ke.timeStamp;Hy.eventType!=8&&(pq>25||Ke.velocity===F)?(xR=Ke.deltaX-Hy.deltaX,Ke=Ke.deltaY-Hy.deltaY,i2=xR/pq||0,eQ=Ke/pq||0,pq=i2,Pd=eQ,i2=Mr(i2)>Mr(eQ)?i2:eQ,xR=du(xR,Ke),YP.lastInterval=Hy):(i2=Ke.velocity,pq=Ke.velocityX,Pd=Ke.velocityY,xR=Ke.direction);Hy.velocity=i2;Hy.velocityX=pq;Hy.velocityY=Pd;Hy.direction=xR;YP=TG.element;a:{for(pq=Hy.srcEvent.target;pq;){if(pq==YP){pq=!0;break a}pq=pq.parentNode}pq=!1}pq&&(YP=Hy.srcEvent.target);Hy.target=YP;TG.emit("hammer.input",Hy);TG.recognize(Hy);
TG.session.prevInput=Hy}
function Fv(TG){for(var YP=[],Hy=0;Hy<TG.pointers.length;Hy++)YP[Hy]={clientX:vd(TG.pointers[Hy].clientX),clientY:vd(TG.pointers[Hy].clientY)};return{timeStamp:u2(),pointers:YP,center:Py(YP),deltaX:TG.deltaX,deltaY:TG.deltaY}}
function Py(TG){var YP=TG.length;if(YP===1)return{x:vd(TG[0].clientX),y:vd(TG[0].clientY)};for(var Hy=0,pq=0,Pd=0;Pd<YP;Pd++)Hy+=TG[Pd].clientX,pq+=TG[Pd].clientY;return{x:vd(Hy/YP),y:vd(pq/YP)}}
function du(TG,YP){return TG===YP?1:Mr(TG)>=Mr(YP)?TG>0?2:4:YP>0?8:16}
function mL(TG,YP,Hy){Hy||(Hy=GR);var pq=YP[Hy[0]]-TG[Hy[0]];TG=YP[Hy[1]]-TG[Hy[1]];return Math.sqrt(pq*pq+TG*TG)}
function un(TG,YP,Hy){Hy||(Hy=GR);return Math.atan2(YP[Hy[1]]-TG[Hy[1]],YP[Hy[0]]-TG[Hy[0]])*180/Math.PI}
function hv(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;H.apply(this,arguments)}
function $P(){this.evEl=qG;this.evWin=bh;H.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function sz(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};H.apply(this,arguments)}
function Wz(){H.apply(this,arguments);var TG=c(this.handler,this);this.touch=new sz(this.manager,TG);this.mouse=new hv(this.manager,TG)}
function mf(TG,YP){this.manager=TG;this.set(YP)}
function OE(TG){if(TG.indexOf("none")>-1)return"none";var YP=TG.indexOf("pan-x")>-1,Hy=TG.indexOf("pan-y")>-1;return YP&&Hy?"pan-x pan-y":YP||Hy?YP?"pan-x":"pan-y":TG.indexOf("manipulation")>-1?"manipulation":"auto"}
function Qj(TG){this.id=ov++;this.manager=null;this.options=L(TG||{},this.defaults);TG=this.options.enable;this.options.enable=TG===F?!0:TG;this.state=1;this.simultaneous={};this.requireFail=[]}
function Kq(TG){return TG==16?"down":TG==8?"up":TG==2?"left":TG==4?"right":""}
function zR(TG,YP){return(YP=YP.manager)?YP.get(TG):TG}
function l2(){Qj.apply(this,arguments)}
function lt(){l2.apply(this,arguments);this.pY=this.pX=null}
function yu(){l2.apply(this,arguments)}
function Na(){Qj.apply(this,arguments);this._input=this._timer=null}
function F6(){l2.apply(this,arguments)}
function TR(){l2.apply(this,arguments)}
function eP(){Qj.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function hA(TG,YP){YP=YP||{};var Hy=YP.recognizers;YP.recognizers=Hy===F?hA.defaults.preset:Hy;return new jQ(TG,YP)}
function jQ(TG,YP){YP=YP||{};this.options=L(YP,hA.defaults);this.options.inputTarget=this.options.inputTarget||TG;this.handlers={};this.session={};this.recognizers=[];this.element=TG;this.input=a(this);this.touchAction=new mf(this,this.options.touchAction);Fy(this,!0);C(YP.recognizers,function(Hy){var pq=this.add(new Hy[0](Hy[1]));Hy[2]&&pq.recognizeWith(Hy[2]);Hy[3]&&pq.requireFailure(Hy[2])},this)}
function Fy(TG,YP){var Hy=TG.element;C(TG.options.cssProps,function(pq,Pd){Hy.style[r(Hy.style,Pd)]=YP?pq:""})}
function Wd(TG,YP){var Hy=w.createEvent("Event");Hy.initEvent(TG,!0,!0);Hy.gesture=YP;YP.target.dispatchEvent(Hy)}
var Pz=" webkit moz MS ms o".split(" "),b2=w.createElement("div"),vd=Math.round,Mr=Math.abs,u2=Date.now,ov=1,v7=/mobile|tablet|ip(ad|hone|od)|android/i,Ce="ontouchstart"in V,MG=r(V,"PointerEvent")!==F,b5=Ce&&v7.test(navigator.userAgent),GR=["x","y"],ne=["clientX","clientY"];H.prototype={handler:function(){},
destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(V,this.evWin,this.domHandler)}};
var FM={mousedown:1,mousemove:2,mouseup:4};z(hv,H,{handler:function(TG){var YP=FM[TG.type];YP&1&&TG.button===0&&(this.pressed=!0);YP&2&&TG.which!==1&&(YP=4);this.pressed&&this.allow&&(YP&4&&(this.pressed=!1),this.callback(this.manager,YP,{pointers:[TG],changedPointers:[TG],pointerType:"mouse",srcEvent:TG}))}});
var Ex={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},BM={2:"touch",3:"pen",4:"mouse",5:"kinect"},qG="pointerdown",bh="pointermove pointerup pointercancel";V.MSPointerEvent&&(qG="MSPointerDown",bh="MSPointerMove MSPointerUp MSPointerCancel");z($P,H,{handler:function(TG){var YP=this.store,Hy=!1,pq=TG.type.toLowerCase().replace("ms","");pq=Ex[pq];var Pd=BM[TG.pointerType]||TG.pointerType;pq&1&&(TG.button===0||Pd=="touch")?YP.push(TG):pq&12&&(Hy=!0);var xR=x(YP,TG.pointerId,"pointerId");
xR<0||(YP[xR]=TG,this.callback(this.manager,pq,{pointers:YP,changedPointers:[TG],pointerType:Pd,srcEvent:TG}),Hy&&YP.splice(xR,1))}});
var bz={touchstart:1,touchmove:2,touchend:4,touchcancel:8};z(sz,H,{handler:function(TG){var YP=bz[TG.type];var Hy=Array.prototype.slice.call(TG.touches,0);var pq=this.targetIds;if(YP&3&&Hy.length===1)pq[Hy[0].identifier]=!0,pq=[Hy,Hy];else{var Pd,xR=Array.prototype.slice.call(TG.targetTouches,0),Ke=Array.prototype.slice.call(TG.changedTouches,0),i2=[];if(YP===1)for(Hy=0,Pd=xR.length;Hy<Pd;Hy++)pq[xR[Hy].identifier]=!0;Hy=0;for(Pd=Ke.length;Hy<Pd;Hy++)pq[Ke[Hy].identifier]&&i2.push(Ke[Hy]),YP&12&&
delete pq[Ke[Hy].identifier];pq=i2.length?[B(xR.concat(i2),"identifier",!0),i2]:void 0}pq&&this.callback(this.manager,YP,{pointers:pq[0],changedPointers:pq[1],pointerType:"touch",srcEvent:TG})}});
z(Wz,H,{handler:function(TG,YP,Hy){var pq=Hy.pointerType=="mouse";if(Hy.pointerType=="touch")this.mouse.allow=!1;else if(pq&&!this.mouse.allow)return;YP&12&&(this.mouse.allow=!0);this.callback(TG,YP,Hy)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var tU=r(b2.style,"touchAction"),Qm=tU!==F;mf.prototype={set:function(TG){TG=="compute"&&(TG=this.compute());Qm&&(this.manager.element.style[tU]=TG);this.actions=TG.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var TG=[];C(this.manager.recognizers,function(YP){K(YP.options.enable,[YP])&&(TG=TG.concat(YP.getTouchAction()))});
return OE(TG.join(" "))},
preventDefaults:function(TG){if(!Qm){var YP=TG.srcEvent;TG=TG.offsetDirection;if(this.manager.session.prevented)YP.preventDefault();else{var Hy=this.actions,pq=Hy.indexOf("none")>-1,Pd=Hy.indexOf("pan-y")>-1;Hy=Hy.indexOf("pan-x")>-1;if(pq||Pd&&Hy||Pd&&TG&6||Hy&&TG&24)return this.preventSrc(YP)}}},
preventSrc:function(TG){this.manager.session.prevented=!0;TG.preventDefault()}};
Qj.prototype={defaults:{},set:function(TG){d(this.options,TG);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(TG){if(P(TG,"recognizeWith",this))return this;var YP=this.simultaneous;TG=zR(TG,this);YP[TG.id]||(YP[TG.id]=TG,TG.recognizeWith(this));return this},
dropRecognizeWith:function(TG){if(P(TG,"dropRecognizeWith",this))return this;TG=zR(TG,this);delete this.simultaneous[TG.id];return this},
requireFailure:function(TG){if(P(TG,"requireFailure",this))return this;var YP=this.requireFail;TG=zR(TG,this);x(YP,TG)===-1&&(YP.push(TG),TG.requireFailure(this));return this},
dropRequireFailure:function(TG){if(P(TG,"dropRequireFailure",this))return this;TG=zR(TG,this);TG=x(this.requireFail,TG);TG>-1&&this.requireFail.splice(TG,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(TG){return!!this.simultaneous[TG.id]},
emit:function(TG){function YP(Pd){Hy.manager.emit(Hy.options.event+(Pd?pq&16?"cancel":pq&8?"end":pq&4?"move":pq&2?"start":"":""),TG)}
var Hy=this,pq=this.state;pq<8&&YP(!0);YP();pq>=8&&YP(!0)},
tryEmit:function(TG){if(this.canEmit())return this.emit(TG);this.state=32},
canEmit:function(){for(var TG=0;TG<this.requireFail.length;TG++)if(!(this.requireFail[TG].state&33))return!1;return!0},
recognize:function(TG){TG=d({},TG);K(this.options.enable,[this,TG])?(this.state&56&&(this.state=1),this.state=this.process(TG),this.state&30&&this.tryEmit(TG)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
z(l2,Qj,{defaults:{pointers:1},attrTest:function(TG){var YP=this.options.pointers;return YP===0||TG.pointers.length===YP},
process:function(TG){var YP=this.state,Hy=TG.eventType,pq=YP&6;TG=this.attrTest(TG);return pq&&(Hy&8||!TG)?YP|16:pq||TG?Hy&4?YP|8:YP&2?YP|4:2:32}});
z(lt,l2,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var TG=this.options.direction;if(TG===30)return["none"];var YP=[];TG&6&&YP.push("pan-y");TG&24&&YP.push("pan-x");return YP},
directionTest:function(TG){var YP=this.options,Hy=!0,pq=TG.distance,Pd=TG.direction,xR=TG.deltaX,Ke=TG.deltaY;Pd&YP.direction||(YP.direction&6?(Pd=xR===0?1:xR<0?2:4,Hy=xR!=this.pX,pq=Math.abs(TG.deltaX)):(Pd=Ke===0?1:Ke<0?8:16,Hy=Ke!=this.pY,pq=Math.abs(TG.deltaY)));TG.direction=Pd;return Hy&&pq>YP.threshold&&Pd&YP.direction},
attrTest:function(TG){return l2.prototype.attrTest.call(this,TG)&&(this.state&2||!(this.state&2)&&this.directionTest(TG))},
emit:function(TG){this.pX=TG.deltaX;this.pY=TG.deltaY;var YP=Kq(TG.direction);YP&&this.manager.emit(this.options.event+YP,TG);this._super.emit.call(this,TG)}});
z(yu,l2,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(TG){return this._super.attrTest.call(this,TG)&&(Math.abs(TG.scale-1)>this.options.threshold||this.state&2)},
emit:function(TG){this._super.emit.call(this,TG);TG.scale!==1&&this.manager.emit(this.options.event+(TG.scale<1?"in":"out"),TG)}});
z(Na,Qj,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(TG){var YP=this.options,Hy=TG.pointers.length===YP.pointers,pq=TG.distance<YP.threshold,Pd=TG.deltaTime>YP.time;this._input=TG;if(!pq||!Hy||TG.eventType&12&&!Pd)this.reset();else if(TG.eventType&1)this.reset(),this._timer=I(function(){this.state=8;this.tryEmit()},YP.time,this);
else if(TG.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(TG){this.state===8&&(TG&&TG.eventType&4?this.manager.emit(this.options.event+"up",TG):(this._input.timeStamp=u2(),this.manager.emit(this.options.event,this._input)))}});
z(F6,l2,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(TG){return this._super.attrTest.call(this,TG)&&(Math.abs(TG.rotation)>this.options.threshold||this.state&2)}});
z(TR,l2,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return lt.prototype.getTouchAction.call(this)},
attrTest:function(TG){var YP=this.options.direction;if(YP&30)var Hy=TG.velocity;else YP&6?Hy=TG.velocityX:YP&24&&(Hy=TG.velocityY);return this._super.attrTest.call(this,TG)&&YP&TG.direction&&Mr(Hy)>this.options.velocity&&TG.eventType&4},
emit:function(TG){var YP=Kq(TG.direction);YP&&this.manager.emit(this.options.event+YP,TG);this.manager.emit(this.options.event,TG)}});
z(eP,Qj,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(TG){var YP=this.options,Hy=TG.pointers.length===YP.pointers,pq=TG.distance<YP.threshold,Pd=TG.deltaTime<YP.time;this.reset();if(TG.eventType&1&&this.count===0)return this.failTimeout();if(pq&&Pd&&Hy){if(TG.eventType!=4)return this.failTimeout();Hy=this.pTime?TG.timeStamp-this.pTime<YP.interval:!0;pq=!this.pCenter||mL(this.pCenter,TG.center)<YP.posThreshold;this.pTime=TG.timeStamp;this.pCenter=TG.center;pq&&Hy?this.count+=1:this.count=1;this._input=TG;if(this.count%YP.taps===0)return this.hasRequireFailures()?
(this._timer=I(function(){this.state=8;this.tryEmit()},YP.interval,this),2):8}return 32},
failTimeout:function(){this._timer=I(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))}});
hA.VERSION="2.0.2";hA.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[F6,{enable:!1}],[yu,{enable:!1},["rotate"]],[TR,{direction:6}],[lt,{direction:6},["swipe"]],[eP],[eP,{event:"doubletap",taps:2},["tap"]],[Na]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};jQ.prototype={set:function(TG){d(this.options,TG);return this},
stop:function(TG){this.session.stopped=TG?2:1},
recognize:function(TG){var YP=this.session;if(!YP.stopped){this.touchAction.preventDefaults(TG);var Hy=this.recognizers,pq=YP.curRecognizer;if(!pq||pq&&pq.state&8)pq=YP.curRecognizer=null;for(var Pd=0,xR=Hy.length;Pd<xR;Pd++){var Ke=Hy[Pd];YP.stopped===2||pq&&Ke!=pq&&!Ke.canRecognizeWith(pq)?Ke.reset():Ke.recognize(TG);!pq&&Ke.state&14&&(pq=YP.curRecognizer=Ke)}}},
get:function(TG){if(TG instanceof Qj)return TG;for(var YP=this.recognizers,Hy=0;Hy<YP.length;Hy++)if(YP[Hy].options.event==TG)return YP[Hy];return null},
add:function(TG){if(P(TG,"add",this))return this;var YP=this.get(TG.options.event);YP&&this.remove(YP);this.recognizers.push(TG);TG.manager=this;this.touchAction.update();return TG},
remove:function(TG){if(P(TG,"remove",this))return this;var YP=this.recognizers;TG=this.get(TG);YP.splice(x(YP,TG),1);this.touchAction.update();return this},
on:function(TG,YP){var Hy=this.handlers;C(l(TG),function(pq){Hy[pq]=Hy[pq]||[];Hy[pq].push(YP)});
return this},
off:function(TG,YP){var Hy=this.handlers;C(l(TG),function(pq){YP?Hy[pq].splice(x(Hy[pq],YP),1):delete Hy[pq]});
return this},
emit:function(TG,YP){this.options.domEvents&&Wd(TG,YP);var Hy=this.handlers[TG]&&this.handlers[TG].slice();if(Hy&&Hy.length){YP.type=TG;YP.preventDefault=function(){YP.srcEvent.preventDefault()};
TG=0;for(var pq=Hy.length;TG<pq;TG++)Hy[TG](YP)}},
destroy:function(){this.element&&Fy(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
d(hA,{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:jQ,Input:H,TouchAction:mf,Recognizer:Qj,AttrRecognizer:l2,Tap:eP,Pan:lt,Swipe:TR,Pinch:yu,Rotate:F6,Press:Na,on:f,off:U,each:C,merge:L,extend:d,inherit:z,bindFn:c,prefixed:r});
V[t]=hA})(window,document,"Hammer");
return window.Hammer}.call({});
W.DOCUMENT=y;y[FG2]=W}return y[FG2]};/*

 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 NpK=function(y,W){if(y.length!==W.length)return!1;for(var V=0;V<y.length;++V)if(y[V]!==W[V])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var I1A=_.N(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),gnz=I1A.next();!gnz.done;gnz=I1A.next()){var P8E=gnz.value,C8R=document.createElement("link");C8R.rel="stylesheet";C8R.href=P8E;document.head.appendChild(C8R)};var A$a,B44,R3G,x_R,Yvd,k7u,D_z,lxj;A$a={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};B44={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:"*"};R3G={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};x_R=/[a-z0-9*]/;Yvd=/U\+/;k7u=/^arrow/;D_z=/^space(bar)?/;lxj=/^escape$/;_.Bw={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(y,W){this._imperativeKeyBindings[y]=W;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(y,W){W=$_b(W);for(var V=0;V<W.length;++V)if(J$4(W[V],y))return!0;return!1},
_collectKeyBindings:function(){var y=this.behaviors.map(function(W){return W.keyBindings});
y.indexOf(this.keyBindings)===-1&&y.push(this.keyBindings);return y},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(V){for(var w in V)this._addKeyBinding(w,V[w])},this);
for(var y in this._imperativeKeyBindings)this._addKeyBinding(y,this._imperativeKeyBindings[y]);for(var W in this._keyBindings)this._keyBindings[W].sort(function(V,w){V=V[0].hasModifiers;return V===w[0].hasModifiers?0:V?-1:1})},
_addKeyBinding:function(y,W){$_b(y).forEach(function(V){this._keyBindings[V.event]=this._keyBindings[V.event]||[];this._keyBindings[V.event].push([V,W])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(y){var W=this._onKeyBindingEvent.bind(this,this._keyBindings[y]);this._boundKeyHandlers.push([this.keyEventTarget,y,W]);this.keyEventTarget.addEventListener(y,W)},this)},
_unlistenKeyEventListeners:function(){for(var y,W,V;this._boundKeyHandlers.length;)y=this._boundKeyHandlers.pop(),W=y[0],V=y[1],y=y[2],W.removeEventListener(V,y)},
_onKeyBindingEvent:function(y,W){this.stopKeyboardEventPropagation&&W.stopPropagation();if(!W.defaultPrevented)for(var V=0;V<y.length;V++){var w=y[V][0],t=y[V][1];if(J$4(w,W)&&(this._triggerKeyHandler(w,t,W),W.defaultPrevented))break}},
_triggerKeyHandler:function(y,W,V){var w=Object.create(y);w.keyboardEvent=V;y=new CustomEvent(y.event,{detail:w,cancelable:!0});this[W].call(this,y);y.defaultPrevented&&V.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
*/
_.a6({is:"iron-a11y-keys",_template:null,behaviors:[_.Bw],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(y){this.keyEventTarget=y},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(y){this.fire("keys-pressed",y.detail,{})}});_.JB={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(y){this._setFocused(y.type==="focus")},
_disabledChanged:function(y){this.setAttribute("aria-disabled",y?"true":"false");this.style.pointerEvents=y?"none":"";y?(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 Ra={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(y){this._detectKeyboardFocus(y);y||this._setPressed(!1)},
_detectKeyboardFocus:function(y){this._setReceivedFocusFromKeyboard(!this.pointerDown&&y)},
_userActivate:function(y){this.active!==y&&(this.active=y,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(y){y=y.detail.keyboardEvent;var W=_.Yy(y).localTarget;this.isLightDescendant(W)||(y.preventDefault(),y.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(y){y=_.Yy(y.detail.keyboardEvent).localTarget;this.isLightDescendant(y)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(y,W){W&&W!=y&&this.hasAttribute(W)&&this.removeAttribute(W)},
_activeChanged:function(y){this.toggles?this.setAttribute(this.ariaActiveAttribute,y?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Onq=[_.Bw,
Ra];_.jx={IronButtonState:Onq,IronButtonStateImpl:Ra};_.$f={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.n8=function(y){_.n8[" "](y);this.type=y&&y.type||"default";this.key=y&&y.key;y&&"value"in y&&(this.value=y.value)};
_.n8.prototype.byKey=function(y){this.key=y;return this.value};
_.CM.Object.defineProperties(_.n8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var y=this.type,W=this.key;if(y&&W)return Hw[y]&&Hw[y][W]},
set:function(y){var W=this.type,V=this.key;W&&V&&(W=Hw[W]=Hw[W]||{},y==null?delete W[V]:W[V]=y)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var y=Hw[this.type];return y?Object.keys(y).map(function(W){return Hw[this.type][W]},this):[]}}});
_.n8[" "]=function(){};
var Hw={};_.a6({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(y,W,V){y=new _.n8({type:y,key:W});V!==void 0&&V!==y.value?y.value=V:this.value!==y.value&&(this.value=y.value);return y},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(y){y&&(this.value=this)},
byKey:function(y){return(new _.n8({type:this.type,key:y})).value}});var vni;vni=null;_.Xg={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){vni=new _.n8({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return vni&&vni.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(y){this.invalid=y===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(y);return!this.invalid},
_getValidity:function(y){return this.hasValidator()?this._validator.validate(y):!0}};var dHK={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"}},LGI=[_.$f,
_.Xg,dHK];_.a6({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 _.n8({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(y){return this.name+":"+y},this)},
applyIcon:function(y,W){this.removeIcon(y);if(W=this._cloneIcon(W,this.rtlMirroring&&this._targetIsRTL(y))){var V=_.Yy(y.root||y);V.insertBefore(W,V.childNodes[0]);return y._svgIcon=W}return null},
removeIcon:function(y){y._svgIcon&&(_.Yy(y.root||y).removeChild(y._svgIcon),y._svgIcon=null)},
_targetIsRTL:function(y){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(y&&y.nodeType!==Node.ELEMENT_NODE&&(y=y.host),this.__targetIsRTL=y&&window.getComputedStyle(y).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 y=Object.create(null);_.Yy(this).querySelectorAll("[id]").forEach(function(W){y[W.id]=W});
return y},
_cloneIcon:function(y,W){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[y],this.size,W)},
_prepareSvgClone:function(y,W,V){if(y){y=y.cloneNode(!0);var w=document.createElementNS("http://www.w3.org/2000/svg","svg");W=y.getAttribute("viewBox")||"0 0 "+W+" "+W;var t="pointer-events: none; display: block; width: 100%; height: 100%;";V&&y.hasAttribute("mirror-in-rtl")&&(t+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");w.setAttribute("viewBox",W);w.setAttribute("preserveAspectRatio","xMidYMid meet");w.setAttribute("focusable","false");w.style&&(w.style.cssText=
t);w.appendChild(y).removeAttribute("id");return w}return null}});var zMJ=function(y){this.multi=!1;this.selection=[];this.selectCallback=y};
_.E=zMJ.prototype;_.E.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.E.clear=function(y){this.selection.slice().forEach(function(W){(!y||y.indexOf(W)<0)&&this.setItemSelected(W,!1)},this)};
_.E.isSelected=function(y){return this.selection.indexOf(y)>=0};
_.E.setItemSelected=function(y,W){if(y!=null&&W!==this.isSelected(y)){if(W)this.selection.push(y);else{var V=this.selection.indexOf(y);V>=0&&this.selection.splice(V,1)}this.selectCallback&&this.selectCallback(y,W)}};
_.E.select=function(y){this.multi?this.toggle(y):this.get()!==y&&(this.setItemSelected(this.get(),!1),this.setItemSelected(y,!0))};
_.E.toggle=function(y){this.setItemSelected(y,!this.isSelected(y))};_.PC={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 zMJ(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Yy(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(y){return this.items?this.items.indexOf(y):-1},
select:function(y){this.selected=y},
selectPrevious:function(){var y=this.items.length,W=y-1;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))-1+y)%y);this.selected=this._indexToValue(W)},
selectNext:function(){var y=0;this.selected!==void 0&&(y=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(y)},
selectIndex:function(y){this.select(this._indexToValue(y))},
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(y){this.listen(this,y,"_activateHandler")},
_removeListener:function(y){this.unlisten(this,y,"_activateHandler")},
_activateEventChanged:function(y,W){this._removeListener(W);this._addListener(y)},
_updateItems:function(){var y=_.Yy(this).queryDistributedElements(this.selectable||"*");y=Array.prototype.filter.call(y,this._bindFilterItem);this._setItems(y)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var y=this._valueToItem(this.selected);y?this._selection.select(y):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(y){return!this._excludedLocalNames[y.localName]},
_valueToItem:function(y){return y==null?null:this.items[this._valueToIndex(y)]},
_valueToIndex:function(y){if(this.attrForSelected)for(var W=0,V;V=this.items[W];W++){if(this._valueForItem(V)==y)return W}else return Number(y)},
_indexToValue:function(y){if(this.attrForSelected){if(y=this.items[y])return this._valueForItem(y)}else return y},
_valueForItem:function(y){if(!y)return null;if(!this.attrForSelected)return y=this.indexOf(y),y===-1?null:y;var W=y[K7(this.attrForSelected)];return W!=void 0?W:y.getAttribute(this.attrForSelected)},
_applySelection:function(y,W){this.selectedClass&&this.toggleClass(this.selectedClass,W,y);this.selectedAttribute&&this.toggleAttribute.call(y,this.selectedAttribute,W);this._selectionChange();this.fire("iron-"+(W?"select":"deselect"),{item:y})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(y){return _.Yy(y).observeNodes(function(W){this._updateItems();this._updateSelected();this.fire("iron-items-changed",W,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(y){y=y.target;for(var W=this.items;y&&y!=this;){var V=W.indexOf(y);if(V>=0){W=this._indexToValue(V);this._itemActivate(W,y);break}y=y.parentNode}},
_itemActivate:function(y,W){this.fire("iron-activate",{selected:y,item:W},{cancelable:!0}).defaultPrevented||this.select(y)}};var cnJ={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(y){this.multi?this._toggleSelected(y):this.selected=y},
multiChanged:function(y){this._selection.multi=y;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(y){return this._indexToValue(this.indexOf(y))},this).filter(function(y){return y!=null},this)):_.PC._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(y){y=y||[];y=(this._valuesToItems(y)||[]).filter(function(V){return V!==null&&V!==void 0});
this._selection.clear(y);for(var W=0;W<y.length;W++)this._selection.setItemSelected(y[W],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var y=this._selection.get();this.multi?(this._setSelectedItems(y),this._setSelectedItem(y.length?y[0]:null)):y!==null&&y!==void 0?(this._setSelectedItems([y]),this._setSelectedItem(y)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(y){var W=this.selectedValues.indexOf(y);W<0?this.push("selectedValues",y):this.splice("selectedValues",W,1)},
_valuesToItems:function(y){return y==null?null:y.map(function(W){return this._valueToItem(W)},this)}},eMm=[_.PC,
cnJ];var hMr;
_.aa={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(y){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var W=this._valueToItem(y);W&&W.hasAttribute("disabled")||(this._setFocusedItem(W),cnJ.select.apply(this,arguments))},
_resetTabindices:function(){var y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(W){W.setAttribute("tabindex",W===y?"0":"-1");W.setAttribute("aria-selected",this._selection.isSelected(W))},this)},
_updateMultiselectable:function(y){y?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(y){if(this._MODIFIER_KEYS.indexOf(y.key)===-1){this.cancelDebouncer("_clearSearchText");var W=this._searchText||"";W+=(y.key&&y.key.length==1?y.key:String.fromCharCode(y.keyCode)).toLocaleLowerCase();y=W.length;for(var V=0,w;w=this.items[V];V++)if(!w.hasAttribute("disabled")){var t=this.attrForItemTitle||"textContent";t=(w[t]||w.getAttribute(t)||"").trim();if(!(t.length<y)&&t.slice(0,y).toLocaleLowerCase()==W){this._setFocusedItem(w);break}}this._searchText=W;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var y=this.items.length,W=Number(this.indexOf(this.focusedItem)),V=1;V<y+1;V++){var w=this.items[(W-V+y)%y];if(!w.hasAttribute("disabled")){var t=_.Yy(w).getOwnerRoot()||document;this._setFocusedItem(w);if(_.Yy(t).activeElement==w)break}}},
_focusNext:function(){for(var y=this.items.length,W=Number(this.indexOf(this.focusedItem)),V=1;V<y+1;V++){var w=this.items[(W+V)%y];if(!w.hasAttribute("disabled")){var t=_.Yy(w).getOwnerRoot()||document;this._setFocusedItem(w);if(_.Yy(t).activeElement==w)break}}},
_applySelection:function(y,W){W?y.setAttribute("aria-selected","true"):y.setAttribute("aria-selected","false");_.PC._applySelection.apply(this,arguments)},
_focusedItemChanged:function(y,W){W&&W.setAttribute("tabindex","-1");!y||y.hasAttribute("disabled")||this.disabled||(y.setAttribute("tabindex","0"),y.focus())},
_onIronItemsChanged:function(y){y.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var y=this.getAttribute("tabindex");_.aa._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",y);_.aa._shiftTabPressed=!1},1)},
_onFocus:function(y){!_.aa._shiftTabPressed&&(y=_.Yy(y).rootTarget,y===this||typeof y.tabIndex==="undefined"||this.isLightDescendant(y))&&(this._defaultFocusAsync=this.async(function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);W?this._setFocusedItem(W):this.items[0]&&this._focusNext()}))},
_onUpKey:function(y){this._focusPrevious();y.detail.keyboardEvent.preventDefault()},
_onDownKey:function(y){this._focusNext();y.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var y=this.focusedItem;y&&y.blur()},
_onKeydown:function(y){this.keyboardEventMatchesKeys(y,"up down esc")||this._focusWithKeyboardEvent(y);y.stopPropagation()},
_activateHandler:function(y){_.PC._activateHandler.call(this,y);y.stopPropagation()},
_disabledChanged:function(y){y?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};hMr=[eMm,_.Bw,_.aa];_.onm={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(y){this.focusedItem&&(this.focusedItem.click(),y.detail.keyboardEvent.preventDefault())},
_onDownKey:function(y){this.focusedItem&&(this.focusedItem.click(),y.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(y){return y.ctrlKey||y.shiftKey||y.altKey||y.metaKey},
_onLeftKey:function(y){this._isSpecialKey(y.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),y.detail.keyboardEvent.preventDefault())},
_onRightKey:function(y){this._isSpecialKey(y.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),y.detail.keyboardEvent.preventDefault())},
_onKeydown:function(y){this.keyboardEventMatchesKeys(y,"up down left right esc")||this._focusWithKeyboardEvent(y)}};
_.KGq=[hMr,_.onm];var p5E;p5E=new Set;_.Gm={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):(p5E.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(y){this.resizerShouldNotify(y)&&this._notifyDescendant(y)},this),this._fireResize())},
assignParentResizable:function(y){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=y)&&y._interestedResizables.indexOf(this)===-1&&(y._interestedResizables.push(this),y._subscribeIronResize(this))},
stopResizeNotificationsFor:function(y){var W=this._interestedResizables.indexOf(y);W>-1&&(this._interestedResizables.splice(W,1),this._unsubscribeIronResize(y))},
_subscribeIronResize:function(y){y.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(y){y.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(y){this._notifyingDescendant?y.stopPropagation():Qp||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(y){var W=_.Yy(y).rootTarget;W!==this&&(W.assignParentResizable(this),this._notifyDescendant(W),y.stopPropagation())},
_parentResizableChanged:function(y){y&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(y){this.isAttached&&(this._notifyingDescendant=!0,y.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var y=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function V(){document.removeEventListener("readystatechange",V);y()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(W){W!==this&&W._findParent()},this):(p5E.forEach(function(W){W!==this&&W._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?p5E.delete(this):p5E.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
*/
_.inE={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(y,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);W&&(y==="document"?this.scrollTarget=this._doc:typeof y==="string"?this.scrollTarget=(W=this.domHost)&&W.$?W.$[y]:_.Yy(this.ownerDocument).querySelector("#"+y):this._isValidScrollTarget()&&(this._oldScrollTarget=y,this._toggleScrollListener(this._shouldHaveListener,y)))},
_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(y){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,y):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
y)},set _scrollLeft(y){this.scrollTarget===this._doc?window.scrollTo(y,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=y)},scroll:function(y,W){if(typeof y==="object"){var V=y.left;W=y.top}else V=y;V=V||0;W=W||0;this.scrollTarget===this._doc?window.scrollTo(V,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=V,this.scrollTarget.scrollTop=W)},
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(y,W){W=W===this._doc?window:W;y?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),W.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(W.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(y){this._shouldHaveListener=y;this._toggleScrollListener(y,this.scrollTarget)}};_.a6({is:"iron-selector",_template:null,behaviors:[eMm]});var ro={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(y){if(y.timing)for(var W in y.timing)this.animationTiming[W]=y.timing[W];return this.animationTiming},
setPrefixedProperty:function(y,W,V){for(var w={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[W],t,F=0;t=w[F];F++)y.style[t]=V;y.style[W]=V},
complete:function(){}};_.a6({is:"fade-in-animation",_template:null,behaviors:[ro],configure:function(y){return this._effect=new KeyframeEffect(y.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(y))}});_.a6({is:"fade-out-animation",_template:null,behaviors:[ro],configure:function(y){return this._effect=new KeyframeEffect(y.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(y))}});var f1f=[{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(y,W){for(var V in W)y[V]=W[V]},
_cloneConfig:function(y){var W={isClone:!0};this._copyProperties(W,y);return W},
_getAnimationConfigRecursive:function(y,W,V){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 w=y?this.animationConfig[y]:this.animationConfig;Array.isArray(w)||(w=[w]);if(w)for(var t,F=0;t=w[F];F++)if(t.animatable)t.animatable._getAnimationConfigRecursive(t.type||y,W,V);else if(t.id){var I=W[t.id];
I?(I.isClone||(W[t.id]=this._cloneConfig(I),I=W[t.id]),this._copyProperties(I,t)):W[t.id]=t}else V.push(t)}},
getAnimationConfig:function(y){var W={},V=[];this._getAnimationConfigRecursive(y,W,V);for(var w in W)V.push(W[w]);return V}},
{_configureAnimations:function(y){var W=[],V=[];if(y.length>0)for(var w,t=0;w=y[t];t++){var F=document.createElement(w.name);if(F.isNeonAnimation){var I=null;F.configure||(F.configure=function(){return null});
I=F.configure(w);V.push({result:I,config:w})}else console.warn(this.is+":",w.name,"not found!")}for(y=0;y<V.length;y++){I=V[y].result;w=V[y].config;try{typeof I.cancel!="function"&&(I=document.timeline.play(I))}catch(P){I=null,console.warn("Couldnt play","(",w.name,").",P)}I&&W.push({neonAnimation:F,config:w,animation:I})}return W},
_shouldComplete:function(y){for(var W=!0,V=0;V<y.length;V++)if(y[V].animation.playState!="finished"){W=!1;break}return W},
_complete:function(y){for(var W=0;W<y.length;W++)y[W].neonAnimation.complete(y[W].config);for(W=0;W<y.length;W++)y[W].animation.cancel()},
playAnimation:function(y,W){var V=this.getAnimationConfig(y);if(V){this._active=this._active||{};this._active[y]&&(this._complete(this._active[y]),delete this._active[y]);var w=this._configureAnimations(V);if(w.length==0)this.fire("neon-animation-finish",W,{bubbles:!1});else for(this._active[y]=w,V=0;V<w.length;V++)w[V].animation.onfinish=function(){this._shouldComplete(w)&&(this._complete(w),delete this._active[y],this.fire("neon-animation-finish",W,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var y in this._active){var W=this._active[y],V;for(V in W)W[V].animation&&W[V].animation.cancel&&W[V].animation.cancel()}this._active={}}}];var MB=function(y,W){y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.arg=W;this.name=this.constructor.name;this.constructor=MB;this.__proto__=MB.prototype};
_.p(MB,Error);var TpR=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W.prototype._marshalArgs=function(V,w,t){w=y.prototype._marshalArgs.call(this,V,w,t);if(this._legacyUndefinedCheck&&w.length>1)for(t=0;t<w.length;t++)if(w[t]===void 0||V[t].wildcard&&w[t].base===void 0)throw V=V[t].name,new MB("Argument '"+V+"' is undefined.",V);return w};
W.prototype._addPropertyEffect=function(V,w,t){return y.prototype._addPropertyEffect.call(this,V,w,nWP(t,t&&t.info&&t.info.methodName))};
W._addTemplatePropertyEffect=function(V,w,t){return y._addTemplatePropertyEffect.call(this,V,w,nWP(t))};
return W}),mHI=_.a6.Class;
_.a6.Class=function(y,W){return mHI(y,function(V){return W?W(TpR(V)):TpR(V)})};
var Mfr=d9(function(y){var W=TpR(y);y=function(){return W.apply(this,arguments)||this};
_.p(y,W);_.CM.Object.defineProperties(y.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return y}),qPr=yV.mixin;
yV.mixin=qPr?function(y){return Mfr(qPr(y))}:Mfr;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.bd=_.jx.IronButtonState;var YSG=b4;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var uRm;_.UHi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");uRm=function(){var y=[],W;var V=V||_.UHi.length;for(W=0;W<8;W++)y[W]=_.UHi[0|Math.random()*V];return y.join("")};var G74=function(){return Math.random().toString(36).substring(7).split("").join(".")},axj="@@redux/INIT"+G74(),Q1z="@@redux/REPLACE"+G74();var Zlv=typeof Symbol==="function"&&Symbol.observable||"@@observable";var SPi=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var DHq="top right bottom left width height size weight".split(" "),l1J=typeof MutationObserver!=="undefined",xHi=SPi&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,k$R=function(){this.mutationEventsAdded_=this.JSC$11630_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=yPj(this.refresh.bind(this))},sJ6=function(y,
W){var V=y.observers_;
W=V.indexOf(W);~W&&V.splice(W,1);!V.length&&y.JSC$11630_connected_&&SPi&&y.JSC$11630_connected_&&(document.removeEventListener("transitionend",y.onTransitionEnd_),window.removeEventListener("resize",y.refresh),y.mutationsObserver_&&(y.mutationsObserver_.disconnect(),xHi&&(HTMLElement.prototype.attachShadow=xHi)),y.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",y.refresh),y.mutationsObserver_=null,y.mutationEventsAdded_=!1,y.JSC$11630_connected_=!1)};
k$R.prototype.refresh=function(){AnK(this)&&this.refresh()};
var AnK=function(y){y=y.observers_.filter(function(W){return YPi(W),W.activeObservations_.length>0});
y.forEach(function(W){return Bpq(W)});
return y.length>0},Jnf=function(y){if(SPi&&!y.JSC$11630_connected_){document.addEventListener("transitionend",y.onTransitionEnd_);
window.addEventListener("resize",y.refresh);if(l1J){y.mutationsObserver_=new MutationObserver(y.refresh);var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};y.mutationsObserver_.observe(document,W);xHi&&(function t(w){var F=w.shadowRoot;F&&(y.mutationsObserver_.observe(F,W),t(F));for(w=w.firstElementChild;w;)t(w),w=w.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var w=xHi.apply(this,_.Ve.apply(0,arguments));
y.mutationsObserver_.observe(w,W);return w})}else document.addEventListener("DOMSubtreeModified",y.refresh),y.mutationEventsAdded_=!0;
y.JSC$11630_connected_=!0}};
k$R.prototype.onTransitionEnd_=function(y){var W=y.propertyName===void 0?"":y.propertyName;DHq.some(function(V){return!!~W.indexOf(V)})&&this.refresh()};
var RMR=null;var jJz=function(y,W){for(var V=_.N(Object.keys(W)),w=V.next();!w.done;w=V.next())w=w.value,Object.defineProperty(y,w,{value:W[w],enumerable:!1,writable:!1,configurable:!0})};var QO=function(y){var W;return(y==null?void 0:(W=y.ownerDocument)==null?void 0:W.defaultView)||globalThis};var $Hq={x:0,y:0,width:0,height:0},nnI=typeof SVGGraphicsElement!=="undefined"?function(y){return y instanceof QO(y).SVGGraphicsElement}:function(y){return y instanceof QO(y).SVGElement&&typeof y.getBBox==="function"};var Hnm=function(y){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=y};
Hnm.prototype.isActive=function(){var y=this.target;if(SPi)if(nnI(y)){var W=y.getBBox();W={x:0,y:0,width:W.width,height:W.height}}else{var V=y.clientWidth,w=y.clientHeight;if(V||w){var t=QO(y).getComputedStyle(y);W=U0(t["padding-top"]);var F=U0(t["padding-left"]),I=F+U0(t["padding-right"]),P=W+U0(t["padding-bottom"]),C=U0(t.width),d=U0(t.height);t.boxSizing==="border-box"&&(Math.round(C+I)!==V&&(C-=W$j(t,"left","right")+I),Math.round(d+P)!==w&&(d-=W$j(t,"top","bottom")+P));y!==QO(y).document.documentElement&&
(y=Math.round(C+I)-V,w=Math.round(d+P)-w,Math.abs(y)!==1&&(C-=y),Math.abs(w)!==1&&(d-=w));W={x:F,y:W,width:C,height:d}}else W=$Hq}else W=$Hq;this.contentRect_=W;return W.width!==this.broadcastWidth||W.height!==this.broadcastHeight};var X56=function(y,W){var V=W.x;var w=W.y;var t=W.width;W=W.height;var F=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);jJz(F,{x:V,y:w,width:t,height:W,top:w,right:V+t,bottom:W+w,left:V});jJz(this,{target:y,contentRect:F})};var a1Q=function(y,W){var V=RMR;this.activeObservations_=[];this.observations_=new Map;if(typeof y!=="function")throw new TypeError("Ze");this.callback_=y;this.controller_=V;this.callbackCtx_=W};
a1Q.prototype.observe=function(y){if(y===void 0)throw new TypeError("$e");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(y instanceof QO(y).Element))throw new TypeError("af");var W=this.observations_;W.has(y)||(W.set(y,new Hnm(y)),y=this.controller_,~y.observers_.indexOf(this)||y.observers_.push(this),y.JSC$11630_connected_||Jnf(y),this.controller_.refresh())}};
a1Q.prototype.unobserve=function(y){if(y===void 0)throw new TypeError("$e");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(y instanceof QO(y).Element))throw new TypeError("af");var W=this.observations_;W.has(y)&&(W.delete(y),W.size||sJ6(this.controller_,this))}};
a1Q.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();sJ6(this.controller_,this)};
var YPi=function(y){y.activeObservations_.splice(0);y.observations_.forEach(function(W){W.isActive()&&y.activeObservations_.push(W)})},Bpq=function(y){if(y.activeObservations_.length>0){var W=y.callbackCtx_,V=y.activeObservations_.map(function(w){var t=w.target,F=w.contentRect_;
w.broadcastWidth=F.width;w.broadcastHeight=F.height;return new X56(t,F)});
y.callback_.call(W,V,W);y.activeObservations_.splice(0)}};var Z4=function(y){if(!(this instanceof Z4))throw new TypeError("bf");if(!arguments.length)throw new TypeError("$e");RMR||(RMR=new k$R);this.observer_=new a1Q(y,this)};
Z4.prototype.observe=function(y){this.observer_.observe(y)};
Z4.prototype.unobserve=function(y){this.observer_.unobserve(y)};
Z4.prototype.disconnect=function(){this.observer_.disconnect()};var nHn=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Z4;var gsL="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(" "),ICv={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},NDL=null,VIj=null;var PWt={},CWv=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 eSj={text:1},dIn={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var G$K=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,rnE={CONSTANT:{isUnwrappable:function(y){return y instanceof QT},
unwrap:BmK},JAVASCRIPT:{isUnwrappable:function(y){return y instanceof _.Oc},
unwrap:nRd},HTML:{isUnwrappable:function(y){return y instanceof Ec},
unwrap:function(y){return Ih(y)}},
RESOURCE_URL:{isUnwrappable:function(y){return y instanceof RG},
unwrap:_.$R},STRING:{isUnwrappable:function(y){return y instanceof Object},
unwrap:function(y){return String(y)}},
STYLE:{isUnwrappable:function(y){return typeof y==="string"},
unwrap:function(y){return y}},
URL:{isUnwrappable:function(y){return aG(y)},
unwrap:_.G3}},bnJ={CONSTANT:hSt,JAVASCRIPT:hSt,HTML:function(y){y=y instanceof Ec?y:Nl(String(y).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Ih(y)},
RESOURCE_URL:hSt,STRING:String,STYLE:hSt,URL:function(y,W){y=G$K.test(y)?y:void 0;return y===void 0?W:y}};var ulR=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,osv=/[\t\n\f\r ]+/,pgR=/[\t\n\f\r ,]+/g,fCz=function(y,W,V){return V},lu={},QJE=function(){var y=function(){var w={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",w):w}(),W=y.createHTML(""),V=y.createScript("");
y=y.createScriptURL("");return{INNOCUOUS_STRING:W,INNOCUOUS_SCRIPT:V,INNOCUOUS_URL:y}}(),DA=QJE.INNOCUOUS_STRING,UIy=QJE.INNOCUOUS_SCRIPT,qHt=QJE.INNOCUOUS_URL;var Znr=function(y){var W=SHa(y);return function(V,w,t,F){return F?W(F,w,t,V):DA}}({reportHandler:function(y,W){if(y)try{throw Error(W);
}catch(V){_.ap(V)}},
safeTypesBridge:function(y,W,V){var w=rnE[W];return w.isUnwrappable(y)&&(w=w.unwrap(y,V),w!==V)?w:(0,bnJ[W])(String(y),V)},
allowedIdentifierPrefixes:[""]});if(xk!==void 0)throw Error("cf");xk=Znr;if(xk!==Znr)throw Error("df");xy("Injectable",[]);var tby=xy("Inject",[["token",void 0]]),EGR=xy("Optional",[]);xy("Injectable",[]);var NF4=xy("Self",[]),Iez=xy("SkipSelf",[]);xy("Host",[]);var yOz={},WHf=function(){};
WHf.prototype.resolve=function(){throw Error("ff");};
WHf.prototype.addProvider=function(){throw Error("ff");};var Vbv=Function;var VyQ=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,weQ=function(){this._reflect=window.Reflect};
_.E=weQ.prototype;_.E.factory=function(y){return function(){return new (Function.prototype.bind.apply(y,[null].concat(_.GC(_.Ve.apply(0,arguments)))))}};
_.E._zipTypesAndAnnotations=function(y,W){var V=typeof y==="undefined"?Array(W.length):Array(y.length);for(var w=0;w<V.length;w++)V[w]=typeof y==="undefined"?[]:y[w]!=Object?[y[w]]:[],W&&lC4(W[w])&&(V[w]=V[w].concat(W[w]));return V};
_.E._ownParameters=function(y,W){if(VyQ.exec(y.toString()))return null;if(y.parameters&&y.parameters!==W.parameters)return y.parameters;var V=y.ctorParameters;return V&&V!==W.ctorParameters?(W=typeof V==="function"?V():V,y=W.map(function(w){return w&&w.type}),W=W.map(function(w){return w&&k0j(w.decorators)}),this._zipTypesAndAnnotations(y,W)):lC4(this._reflect)&&lC4(this._reflect.getOwnMetadata)&&(W=this._reflect.getOwnMetadata("parameters",y),(V=this._reflect.getOwnMetadata("design:paramtypes",y))||
W)?this._zipTypesAndAnnotations(V,W):Array(y.length).fill(void 0)};
_.E.parameters=function(y){if(!y.prototype)return[];var W=Object.getPrototypeOf(y.prototype).constructor;(y=this._ownParameters(y,W))||W===Object||(y=this.parameters(W));return y||[]};
_.E._ownAnnotations=function(y,W){if(y.annotations&&y.annotations!==W.annotations)return y=y.annotations,typeof y==="function"&&y.annotations&&(y=y.annotations),y;if(y.decorators&&y.decorators!==W.decorators)return k0j(y.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",y)};
_.E.annotations=function(y){var W=Object.getPrototypeOf(y.prototype).constructor;y=this._ownAnnotations(y,W)||[];return(W!==Object?this.annotations(W):[]).concat(y)};
_.E._ownPropMetadata=function(y,W){if(y.propMetadata&&y.propMetadata!==W.propMetadata)return y=y.propMetadata,typeof y==="function"&&y.propMetadata&&(y=y.propMetadata),y;if(y.propDecorators&&y.propDecorators!==W.propDecorators){var V=y.propDecorators,w={};Object.keys(V).forEach(function(t){w[t]=k0j(V[t])});
return w}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",y)};
_.E.propMetadata=function(y){var W=Object.getPrototypeOf(y.prototype).constructor,V={};if(W!==Object){var w=this.propMetadata(W);Object.keys(w).forEach(function(F){V[F]=w[F]})}var t=this._ownPropMetadata(y,W);
t&&Object.keys(t).forEach(function(F){var I=[];V.hasOwnProperty(F)&&I.push.apply(I,_.GC(V[F]));I.push.apply(I,_.GC(t[F]));V[F]=I});
return V};
_.E.getter=function(y){return function(W){return W[y]}};
_.E.setter=function(y){return function(W,V){return W[y]=V}};
_.E.method=function(y){return function(W,V){if(!W[y])throw Error("gf`"+y);return W[y].apply(W,V)}};var tyJ=function(){};var FHE=function(y){this.reflectionCapabilities=y};
_.p(FHE,tyJ);_.E=FHE.prototype;_.E.factory=function(y){return this.reflectionCapabilities.factory(y)};
_.E.parameters=function(y){return this.reflectionCapabilities.parameters(y)};
_.E.annotations=function(y){return this.reflectionCapabilities.annotations(y)};
_.E.propMetadata=function(y){return this.reflectionCapabilities.propMetadata(y)};
_.E.getter=function(y){return this.reflectionCapabilities.getter(y)};
_.E.setter=function(y){return this.reflectionCapabilities.setter(y)};
_.E.method=function(y){return this.reflectionCapabilities.method(y)};var nsG=new FHE(new weQ);var Wq=function(y,W){this.token=y;this.id=W;if(y===void 0||y===null)throw Error("mf");};
_.CM.Object.defineProperties(Wq.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return ky(this.token)}}});
_.CM.Object.defineProperties(Wq,{JSC$11672_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return A8.JSC$11676_numberOfKeys}}});
var E9R=function(){this._allKeys=new Map};
E9R.prototype.get=function(y){if(y instanceof Wq)return y;if(this._allKeys.has(y))return this._allKeys.get(y);var W=new Wq(y,Wq.JSC$11672_numberOfKeys);this._allKeys.set(y,W);return W};
_.CM.Object.defineProperties(E9R.prototype,{JSC$11676_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var A8=new E9R;var gGu=function(y,W,V){this.key=y;this.optional=W;this.visibility=V},Xgv=function(y){return new gGu(y,!1,null)},G0j=[],Qy4=function(y,W,V){this.key=y;
this.resolvedFactories=W;this.multiProvider=V},rPv=function(y,W,V,w){this.factory=y;
this.dependencies=W;this.providerClass=V;this.providerValue=w};var VJ={},w1=function(y,W){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=W===void 0?null:W;y=_.N(y);for(W=y.next();!W.done;W=y.next())this.addProvider(W.value)};
_.E=w1.prototype;_.E.addProvider=function(y){this.keyIdToIndex.set(y.key.id,this.keyIds.length);this.providers.push(y);this.keyIds.push(y.key.id);this.objs.push(VJ)};
_.E.resolve=function(y,W){W=W===void 0?yOz:W;return this._getByKey(A8.get(s0(y)),null,W)};
_.E._new=function(y){if(this.constructedKeyIds[y.key.id])throw RSR(this,y.key);this.constructedKeyIds[y.key.id]=!0;return this._instantiateProvider(y)};
_.E._instantiateProvider=function(y){if(y.multiProvider){for(var W=Array(y.resolvedFactories.length),V=0;V<y.resolvedFactories.length;++V)W[V]=this._instantiate(y,y.resolvedFactories[V]);return W}return this._instantiate(y,y.resolvedFactories[0])};
_.E._instantiate=function(y,W){var V=this,w=W.factory;try{var t=W.dependencies.map(function(I){return V._getByReflectiveDependency(I)})}catch(I){throw I.addKey&&I.addKey(this,y.key),I;
}try{var F=w.apply(null,_.GC(t))}catch(I){throw jyG(this,I,y.key);}return F};
_.E._getByReflectiveDependency=function(y){return this._getByKey(y.key,y.visibility,y.optional?null:yOz)};
_.E._getByKey=function(y,W,V){return y===N7f?this:W instanceof NF4?this._getByKeySelf(y,V):this._getByKeyDefault(y,V,W)};
_.E._getObjByKeyId=function(y){for(var W=0;W<this.keyIds.length;W++)if(this.keyIds[W]===y)return this.objs[W]===VJ&&(this.objs[W]=this._new(this.providers[W])),this.objs[W];return VJ};
_.E._throwOrNull=function(y,W){if(W!==yOz)return W;throw JPb(this,y);};
_.E._getByKeySelf=function(y,W){var V=this._getObjByKeyId(y.id);return V!==VJ?V:this._throwOrNull(y,W)};
_.E._getByKeyDefault=function(y,W,V){for(var w=V=V instanceof Iez?this.parent:this;V instanceof w1;){var t=V._getObjByKeyId(y.id);if(t!==VJ)return t;V=V.parent}t=void 0;if(V!==null)try{var F=V.resolve(y.token,W);if(F!==VJ)return F}catch(I){t=I}if(!(w instanceof w1&&CK4(y.token))){if(t)throw t;return this._throwOrNull(y,W)}for(F=w;F.parent instanceof w1;)F=F.parent;F.addProvider(ZwG({provide:y.token,useClass:y.token}));return F.resolve(y.token,W)};
_.E.toString=function(){return this.displayName};
_.CM.Object.defineProperties(w1.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+PKP(this,function(y){return' "'+y.key.displayName+'" '}).join(", ")+"])"}}});
var N7f=A8.get(s0(WHf));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=t();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?m.has(h)?h=m.get(h):(k=""+ ++A,m.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},v=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!u.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.exports=b},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(n,m){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function u(a,c){var g;if(v(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=v(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return t(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=u(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=v;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:t(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=t(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=t(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});p.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(h(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var I6z=window.XRegExp;var g9A=-1,P0q=function(y){addEventListener("pageshow",function(W){W.persisted&&(g9A=W.timeStamp,y(W))},!0)};var OvK=function(y,W,V){var w=C02,t,F;return function(I){if(W.value>=0&&(I||V)){var P;if((F=W.value-((P=t)!=null?P:0))||t===void 0)t=W.value,W.delta=F,I=W.value,W.rating=I>w[1]?"poor":I>w[0]?"needs-improvement":"good",y(W)}}};var v9J=function(y){requestAnimationFrame(function(){return requestAnimationFrame(function(){return y()})})};var dUm=function(){var y=performance.getEntriesByType("navigation")[0];if(y&&y.responseStart>0&&y.responseStart<performance.now())return y};var LHm=function(){var y,W;return(W=(y=dUm())==null?void 0:y.activationStart)!=null?W:0};var z7Q=function(){var y=y===void 0?-1:y;var W=dUm(),V="navigate";g9A>=0?V="back-forward-cache":W&&(document.prerendering||LHm()>0?V="prerender":document.wasDiscarded?V="restore":W.type&&(V=W.type.replace(/_/g,"-")));return{name:"LCP",value:y,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:V}};var vG4=new WeakMap;var cOE=function(y){var W=W===void 0?{}:W;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var V=new PerformanceObserver(function(w){Promise.resolve().then(function(){y(w.getEntries())})});
V.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},W));return V}}catch(w){}};var e7R=function(y){var W=!1;return function(){W||(y(),W=!0)}};var tr=-1,h7J=function(y){document.visibilityState==="hidden"&&tr>-1&&(tr=y.type==="visibilitychange"?y.timeStamp:0,removeEventListener("visibilitychange",h7J,!0),removeEventListener("prerenderingchange",h7J,!0))},o9K=function(){addEventListener("visibilitychange",h7J,!0);
addEventListener("prerenderingchange",h7J,!0)},KHf=function(){if(tr<0){var y=LHm(),W,V;
tr=(V=document.prerendering?void 0:(W=globalThis.performance.getEntriesByType("visibility-state").filter(function(w){return w.name==="hidden"&&w.startTime>y})[0])==null?void 0:W.startTime)!=null?V:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
o9K();P0q(function(){setTimeout(function(){tr=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;o9K()})})}return{get firstHiddenTime(){return tr}}};var peQ=function(y){document.prerendering?addEventListener("prerenderingchange",function(){return y()},!0):y()};var ivI=function(y){var W=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?y():(y=e7R(y),document.addEventListener("visibilitychange",y,{once:!0}),W(function(){y();document.removeEventListener("visibilitychange",y)}))};var OHz=function(){};
OHz.prototype._processEntry=function(y){var W;(W=this._onBeforeProcessingEntry)==null||W.call(this,y)};var C02=[2500,4E3],ZEt=function(y){var W=W===void 0?{}:W;peQ(function(){var V=KHf(),w=z7Q(),t=dYb(W),F=function(z){W.reportAllChanges||(z=z.slice(-1));z=_.N(z);for(var c=z.next();!c.done;c=z.next())c=c.value,t._processEntry(c),c.startTime<V.firstHiddenTime&&(w.value=Math.max(c.startTime-LHm(),0),w.entries=[c],P())},I=cOE(F);
if(I){var P=OvK(y,w,W.reportAllChanges);for(var C=e7R(function(){F(I.takeRecords());I.disconnect();P(!0)}),d=_.N(["keydown",
"click","visibilitychange"]),L=d.next();!L.done;L=d.next())addEventListener(L.value,function(){return ivI(C)},{capture:!0,
once:!0});P0q(function(z){w=z7Q();P=OvK(y,w,W.reportAllChanges);v9J(function(){w.value=performance.now()-z.timeStamp;P(!0)})})}})};var f66;var T7R;_.n=function(){return T7R!==void 0?T7R:T7R=document.createElement("template")};
document.head.appendChild(_.n().content);var mUE;_.a6({_template:function(){if(mUE!==void 0)return mUE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;f66===void 0&&(f66=document.createElement("template"));var w=f66;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return mUE=y},
is:"tp-yt-app-toolbar"});var My2;var qZq;_.Ff=function(){};
_.Ff=_.a6({_template:function(){if(qZq!==void 0)return qZq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;My2===void 0&&(My2=document.createElement("template"));var w=My2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return qZq=y},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Ff.instance||(_.Ff.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(y){this._text===y&&(y+="\u00a0");this._text="";this.async(function(){this._text=y},this.timeout)},
_onIronAnnounce:function(y){y.detail&&y.detail.text&&this.announce(y.detail.text)}});
_.Ff.instance=null;_.Ff.requestAvailability=function(){_.Ff.instance||(_.Ff.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Ff.instance):document.addEventListener("load",function(){document.body.appendChild(_.Ff.instance)})};var UUR;var uWm;/*

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

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

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 XeK=new _.n8({type:"iconset"});
_.a6({_template:function(){if(HvI!==void 0)return HvI;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;n9E===void 0&&(n9E=document.createElement("template"));
var w=n9E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return HvI=y},
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(y){y=(y||"").split(":");this._iconName=y.pop();this._iconsetName=y.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&&_.Yy(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=XeK.byKey(this._iconsetName)){var y=this._iconset.applyIcon(this,this._iconName,this.theme);y&&y.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,_.Yy(this.root).appendChild(this._img)}});var a6E;var GrI;_.a6({_template:function(){if(GrI!==void 0)return GrI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;a6E===void 0&&(a6E=document.createElement("template"));var w=a6E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return GrI=y},
is:"tp-yt-iron-input",behaviors:[_.Xg],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(){_.Ff.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Yy(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Yy(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 y=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":y=/[0-9.,e-]/}return y},_bindValueChanged:function(y,W){W&&(y===void 0?W.value=null:y!==W.value&&(this.inputElement.value=y),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:y}))},
_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(y){var W=y.keyCode==19||y.keyCode==20||y.keyCode==45||y.keyCode==46||y.keyCode==144||y.keyCode==145||y.keyCode>32&&y.keyCode<41||y.keyCode>111&&y.keyCode<124;return!(y.keyCode==8||y.keyCode==9||y.keyCode==13||y.keyCode==27)&&!(y.charCode==0&&W)},
_onKeypress:function(y){if(this.allowedPattern||this.inputElement.type==="number"){var W=this._patternRegExp;if(W&&!(y.metaKey||y.ctrlKey||y.altKey)){this._patternAlreadyChecked=!0;var V=String.fromCharCode(y.charCode);this._isPrintable(y)&&!W.test(V)&&(y.preventDefault(),this._announceInvalidCharacter("Invalid character "+V+" not entered."))}}},
_checkPatternValidity:function(){var y=this._patternRegExp;if(!y)return!0;for(var W=0;W<this.inputElement.value.length;W++)if(!y.test(this.inputElement.value[W]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var y=this.inputElement.checkValidity();y&&(this.required&&this.bindValue===""?y=!1:this.hasValidator()&&(y=_.Xg.validate.call(this,this.bindValue)));this.invalid=!y;this.fire("iron-input-validate");return y},
_announceInvalidCharacter:function(y){this.fire("iron-announce",{text:y})},
_computeValue:function(y){return y}});var rO6;var bvK;var QtR=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Zv6=QtR&&QtR[1]>=8;
_.a6({_template:function(){if(bvK!==void 0)return bvK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;rO6===void 0&&(rO6=document.createElement("template"));var w=rO6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return bvK=y},
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:[BXd,_.Gm,_.inE,PNQ],_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 _.Yy(_.Yy(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var y=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,y-this._physicalCount)},set _virtualStart(y){y=this._clamp(y,0,this._maxVirtualStart);this.grid&&(y-=y%this._itemsPerRow);this._virtualStartVal=y},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(y){y%=this._physicalCount;y<0&&(y=this._physicalCount+y);this.grid&&(y-=y%this._itemsPerRow);this._physicalStartVal=y},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(y){this._physicalCountVal=y},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 y=this._firstVisibleIndexVal;if(y==null){var W=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
y=this._iterateItems(function(V,w){W+=this._getPhysicalSizeIncrement(V);if(W>this._scrollPosition)return this.grid?w-w%this._itemsPerRow:w;if(this.grid&&this._virtualCount-1===w)return w-w%this._itemsPerRow})||0}return y},
get lastVisibleIndex(){var y=this._lastVisibleIndexVal;if(y==null){if(this.grid)y=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var W=this._physicalTop+this._scrollOffset;this._iterateItems(function(V,w){W<this._scrollBottom&&(y=w);W+=this._getPhysicalSizeIncrement(V)})}this._lastVisibleIndexVal=y}return y},
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,_.aU);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(y){this.style.webkitOverflowScrolling=y===this?"touch":"";this.style.overflowY=y===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.aU)},
updateViewportBoundaries:function(){var y=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(y["padding-top"],10);this._isRTL=y.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var y=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),W=y-this._scrollPosition,V=W>=0;this._scrollPosition=y;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(W)>this._physicalSize&&this._physicalSize>0?(W-=this._scrollOffset,V=Math.round(W/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=V,this._physicalStart+=V,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(y=this._getReusables(V),V?(this._physicalTop=y.physicalTop,this._virtualStart+=y.indexes.length,this._physicalStart+=y.indexes.length):(this._virtualStart=this._virtualStart-y.indexes.length,this._physicalStart=this._physicalStart-y.indexes.length),this._update(y.indexes,V?null:y.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),GY))},
_getReusables:function(y){var W=[],V=this._hiddenContentSize*this._ratio,w=this._virtualStart,t=this._virtualEnd,F=this._physicalCount,I=this._physicalTop+this._scrollOffset;var P=this._physicalBottom+this._scrollOffset;var C=this._scrollPosition,d=this._scrollBottom;if(y){var L=this._physicalStart;P=C-I}else L=this._physicalEnd,P-=d;for(;;){var z=this._getPhysicalSizeIncrement(L);P-=z;if(W.length>=F||P<=V)break;if(y){if(t+W.length+1>=this._virtualCount)break;if(I+z>=C-this._scrollOffset)break;W.push(L);
I+=z;L=(L+1)%F}else{if(w-W.length<=0)break;if(I+this._physicalSize-z<=d)break;W.push(L);I-=z;L=L===0?F-1:L-1}}return{indexes:W,physicalTop:I-this._scrollOffset}},
_update:function(y,W){if(!(y&&y.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(y);this._updateMetrics(y);if(W)for(;W.length;)y=W.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(y);this._positionItems();this._updateScrollerSize()}},
_createPool:function(y){this._ensureTemplatized();var W,V=Array(y);for(W=0;W<y;W++){var w=this.stamp(null);V[W]=w.root.querySelector("*");this._itemsParent.appendChild(w.root)}return V},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(y){y=this._clamp(this._physicalCount+y,3,this._virtualCount-this._virtualStart);y=this._convertIndexToCompleteRow(y);if(this.grid){var W=y%this._itemsPerRow;W&&y-W<=this._physicalCount&&(y+=this._itemsPerRow);y-=W}y-=this._physicalCount;W=Math.round(this._physicalCount*.5);if(!(y<0)){if(y>0){W=window.performance.now();[].push.apply(this._physicalItems,this._createPool(y));for(var V=0;V<y;V++)this._physicalSizes.push(0);this._physicalCount+=y;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=y);this._update();this._templateCost=(window.performance.now()-W)/y;W=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||W===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,W)),Hgz):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,W),GY))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var y=this._getReusables(!0);this._physicalTop=y.physicalTop;this._virtualStart+=y.indexes.length;this._physicalStart+=y.indexes.length;this._update(y.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 y={__key__:!0};y[this.as]=!0;y[this.indexAs]=!0;y[this.selectedAs]=!0;y.tabIndex=!0;this._instanceProps=y;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(y,W){typeof W!=="undefined"&&(this.notifyResize(),_.uJ(),y&&this._updateGridMetrics())},
_itemsChanged:function(y){if(y.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,
_.aU);else if(y.path==="items.splices"){this._adjustVirtualIndex(y.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(y.value.indexSplices.some(function(V){return V.addedCount>0||V.removed.length>0})){var W=this._getActiveElement();
this.contains(W)&&W.blur()}y=y.value.indexSplices.some(function(V){return V.index+V.addedCount>=this._virtualStart&&V.index<=this._virtualEnd},this);
this._isClientFull()&&!y||this._debounce("_render",this._render,_.aU)}else y.path!=="items.length"&&this._forwardItemPath(y.path,y.value)},
_forwardItemPath:function(y,W){y=y.slice(6);var V=y.indexOf(".");V===-1&&(V=y.length);var w,t=this.modelForElement(this._offscreenFocusedItem),F=parseInt(y.substring(0,V),10);if(w=this._isIndexRendered(F)){var I=this._getPhysicalIndex(F);var P=this.modelForElement(this._physicalItems[I])}else t&&(P=t);P&&P[this.indexAs]===F&&(y=y.substring(V+1),y=this.as+(y?"."+y:""),P._setPendingPropertyOrPath(y,W,!1,!0),P._flushProperties&&P._flushProperties(),w&&(this._updateMetrics([I]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(y){y.forEach(function(W){W.removed.forEach(this._removeItem,this);W.index<this._virtualStart&&(W=Math.max(W.addedCount-W.removed.length,W.index-this._virtualStart),this._virtualStart+=W,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=W))},this)},
_removeItem:function(y){this.$.selector.deselect(y);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===y&&this._removeFocusedItem()},
_iterateItems:function(y,W){var V,w;if(arguments.length===2&&W)for(w=0;w<W.length;w++){var t=W[w];var F=this._computeVidx(t);if((V=y.call(this,t,F))!=null)return V}else{t=this._physicalStart;for(F=this._virtualStart;t<this._physicalCount;t++,F++)if((V=y.call(this,t,F))!=null)return V;for(t=0;t<this._physicalStart;t++,F++)if((V=y.call(this,t,F))!=null)return V}},
_computeVidx:function(y){return y>=this._physicalStart?this._virtualStart+(y-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+y},
_assignModels:function(y){this._iterateItems(function(W,V){var w=this._physicalItems[W],t=this.items&&this.items[V];if(t!=null){var F=this.modelForElement(w);F.__key__=null;this._forwardProperty(F,this.as,t);this._forwardProperty(F,this.selectedAs,this.$.selector.isSelected(t));this._forwardProperty(F,this.indexAs,V);this._forwardProperty(F,"tabIndex",this._focusedVirtualIndex===V?0:-1);this._physicalIndexForKey[F.__key__]=W;F._flushProperties&&F._flushProperties(!0);w.removeAttribute("hidden")}else w.setAttribute("hidden",
"")},y)},
_updateMetrics:function(y){_.uJ();var W=0,V=0,w=this._physicalAverageCount,t=this._physicalAverage;this._iterateItems(function(F){V+=this._physicalSizes[F];this._physicalSizes[F]=this._physicalItems[F].offsetHeight;W+=this._physicalSizes[F];this._physicalAverageCount+=this._physicalSizes[F]?1:0},y);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(V=this._itemsPerRow===1?V:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+W-V,this._itemsPerRow=1);this._physicalAverageCount!==w&&(this._physicalAverage=Math.round((t*w+W)/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 y=this._physicalTop;if(this.grid){var W=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(V,w){var t=Math.floor(w%this._itemsPerRow*this._itemWidth+W);this._isRTL&&(t*=-1);this.translate3d(t+"px",y+"px",0,this._physicalItems[V]);this._shouldRenderNextRow(w)&&(y+=this._rowHeight)})}else this._iterateItems(function(V){this.translate3d(0,y+"px",0,this._physicalItems[V]);
y+=this._physicalSizes[V]})},
_getPhysicalSizeIncrement:function(y){return this.grid?this._computeVidx(y)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[y]},
_shouldRenderNextRow:function(y){return y%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var y=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(y!==0){this._physicalTop=this._physicalTop-y;var W=this._scrollPosition;!Zv6&&W>0&&this._resetScrollPosition(W-y)}},
_resetScrollPosition:function(y){this.scrollTarget&&y>=0&&(this._scrollPosition=this._scrollTop=y)},
_updateScrollerSize:function(y){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((y=(y=(y=y||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(y){return this.scrollToIndex(this.items.indexOf(y))},
scrollToIndex:function(y){if(!(typeof y!=="number"||y<0||y>this.items.length-1)&&(_.uJ(),this._physicalCount!==0)){y=this._clamp(y,0,this._virtualCount-1);if(!this._isIndexRendered(y)||y>=this._maxVirtualStart)this._virtualStart=this.grid?y-this._itemsPerRow*2:y-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var W=this._physicalStart,V=this._virtualStart,w=0,t=this._hiddenContentSize;V<y&&
w<=t;)w+=this._getPhysicalSizeIncrement(W),W=(W+1)%this._physicalCount,V++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+w);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)},_.aU)},
selectItem:function(y){return this.selectIndex(this.items.indexOf(y))},
selectIndex:function(y){if(!(y<0||y>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(y)){var W=this.modelForElement(this._physicalItems[this._getPhysicalIndex(y)]);W&&(W[this.selectedAs]=!0);this.updateSizeForIndex(y)}this.$.selector.selectIndex(y)}},
deselectItem:function(y){return this.deselectIndex(this.items.indexOf(y))},
deselectIndex:function(y){y<0||y>=this._virtualCount||(this._isIndexRendered(y)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(y)])[this.selectedAs]=!1,this.updateSizeForIndex(y)),this.$.selector.deselectIndex(y))},
toggleSelectionForItem:function(y){return this.toggleSelectionForIndex(this.items.indexOf(y))},
toggleSelectionForIndex:function(y){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(y):this.$.selector.isSelected(this.items[y]))?this.deselectIndex(y):this.selectIndex(y)},
clearSelection:function(){this._iterateItems(function(y){this.modelForElement(this._physicalItems[y])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(y){(y?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(y){var W=this.modelForElement(y.target);if(W){var V=_.Yy(y).path[0];y=this._getActiveElement();var w=this._physicalItems[this._getPhysicalIndex(W[this.indexAs])];if(V.localName!=="input"&&V.localName!=="button"&&V.localName!=="select"){V=W.tabIndex;W.tabIndex=-100;var t=y?y.tabIndex:-1;W.tabIndex=V;y&&w!==y&&w.contains(y)&&t!==-100||this.toggleSelectionForItem(W[this.as])}}},
_multiSelectionChanged:function(y){this.clearSelection();this.$.selector.multi=y},
updateSizeForItem:function(y){return this.updateSizeForIndex(this.items.indexOf(y))},
updateSizeForIndex:function(y){if(!this._isIndexRendered(y))return null;this._updateMetrics([this._getPhysicalIndex(y)]);this._positionItems();return null},
_manageFocus:function(){var y=this._focusedVirtualIndex;y>=0&&y<this._virtualCount?this._isIndexRendered(y)?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(y){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(y/this._itemsPerRow)*this._itemsPerRow:y},
_isIndexRendered:function(y){return y>=this._virtualStart&&y<=this._virtualEnd},
_isIndexVisible:function(y){return y>=this.firstVisibleIndex&&y<=this.lastVisibleIndex},
_getPhysicalIndex:function(y){return(this._physicalStart+(y-this._virtualStart))%this._physicalCount},
focusItem:function(y){this._focusPhysicalItem(y)},
_focusPhysicalItem:function(y){if(!(y<0||y>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(y)||this.scrollToIndex(y);var W=this._physicalItems[this._getPhysicalIndex(y)],V=this.modelForElement(W),w;V.tabIndex=-100;W.tabIndex===-100&&(w=W);w||(w=_.Yy(W).querySelector('[tabindex="-100"]'));V.tabIndex=0;this._focusedVirtualIndex=y;w&&w.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 y=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var W=this.stamp(null);this._focusBackfillItem=W.root.querySelector("*");this._itemsParent.appendChild(W.root)}this._offscreenFocusedItem=this._physicalItems[y];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[y]=this._focusBackfillItem;this._focusedPhysicalIndex=y;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var y=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),W=this._physicalItems[y];if(W){var V=this.modelForElement(W),w=this.modelForElement(this._offscreenFocusedItem);V[this.as]===w[this.as]?(this._focusBackfillItem=W,V.tabIndex=-1,this._physicalItems[y]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(y){y=this.modelForElement(y.target);var W=this.modelForElement(this._focusedItem),V=this._offscreenFocusedItem!==null,w=this._focusedVirtualIndex;y&&(W===y?this._isIndexVisible(w)||this.scrollToIndex(w):(this._restoreFocusedItem(),W&&(W.tabIndex=-1),y.tabIndex=0,this._focusedVirtualIndex=w=y[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(w),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],V&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(y){switch(y.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&y.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&&y.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(y)}},
_clamp:function(y,W,V){return Math.min(V,Math.max(W,y))},
_debounce:function(y,W,V){this._debouncers=this._debouncers||{};this._debouncers[y]=_.Tn(this._debouncers[y],V,W.bind(this));_.mu(this._debouncers[y])},
_forwardProperty:function(y,W,V){y._setPendingProperty(W,V)},
_forwardHostPropV2:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).forwardHostProp(y,W)},this)},
_notifyInstancePropV2:function(y,W,V){mUz(this.as,W)&&(y=y[this.indexAs],W==this.as&&(this.items[y]=V),this.notifyPath(qT(this.as,"items."+y,W),V))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(y,W,V){W.indexOf(this.as+".")===0&&this.notifyPath("items."+y.__key__+"."+W.slice(this.as.length+1),V)},
_forwardParentPath:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).notifyPath(y,W)},this)},
_forwardParentProp:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&(this.modelForElement(V)[y]=W)},this)},
_getActiveElement:function(){var y=this._itemsParent.node.domHost;return _.Yy(y?y.root:document).activeElement},
_scrollTargetChanged:function(y,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(W)if(y==="document")this.scrollTarget=this._doc;else if(typeof y==="string"){var V,w;this.scrollTarget=(W=(w=(V=this.domHost)==null?void 0:V.polymerController)!=null?w:this.domHost)&&W.$?W.$[y]:_.Yy(this.ownerDocument).querySelector("#"+y)}else this._isValidScrollTarget()&&(this._oldScrollTarget=y,this._toggleScrollListener(this._shouldHaveListener,y))}});var yDq;var WaE;var V3K=function(y,W,V,w){y-=V;W-=w;return Math.sqrt(y*y+W*W)},wmm=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
oGz.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Kx4=function(y){y.maxRadius=0;y.mouseDownStart=0;y.mouseUpStart=0;y.xStart=0;y.yStart=0;y.xEnd=0;y.yEnd=0;y.containerMetrics=new oGz(y.element)};
pYy.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var y=wmm()-this.mouseDownStart;this.mouseUpStart&&(y-=this.mouseUpElapsed);return y},get mouseUpElapsed(){return this.mouseUpStart?wmm()-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 y=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(y*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-y/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var y=this.radius/(this.containerMetrics.size/2);var W=this.xNow-this.containerMetrics.width/2;var V=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+W+"px, "+V+"px)";this.waveContainer.style.transform="translate3d("+W+"px, "+V+"px, 0)";this.wave.style.webkitTransform="scale("+y+","+y+")";this.wave.style.transform="scale3d("+y+","+y+",1)"},
downAction:function(y){var W=this.containerMetrics.width/2,V=this.containerMetrics.height/2;Kx4(this);this.mouseDownStart=wmm();this.center?(this.xStart=W,this.yStart=V):(this.xStart=y?y.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=y?y.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=W,this.yEnd=V);y=this.containerMetrics;W=this.xStart;V=this.yStart;this.maxRadius=Math.max(V3K(W,V,0,0),V3K(W,V,
y.width,0),V3K(W,V,0,y.height),V3K(W,V,y.width,y.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=wmm())},
remove:function(){_.Yy(_.Yy(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.a6({_template:function(){if(WaE!==void 0)return WaE;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;yDq===void 0&&(yDq=document.createElement("template"));var w=yDq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return WaE=y},
is:"tp-yt-paper-ripple",behaviors:[_.Bw],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(){_.Yy(this).parentNode.nodeType==11?this.keyEventTarget=_.Yy(this).getOwnerRoot().host:this.keyEventTarget=_.Yy(this).parentNode;var y=this.keyEventTarget;this.listen(y,"up","uiUpAction");this.listen(y,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(y){y.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var y=0;y<this.ripples.length;++y)if(!this.ripples[y].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(y){this.noink||this.downAction(y)},
downAction:function(y){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(y),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(y){this.noink||this.upAction(y)},
upAction:function(y){this.holdDown||(this.ripples.forEach(function(W){W.upAction(y)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var y=0;y<this.ripples.length;++y){var W=this.ripples[y];W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var y=new pYy(this);_.Yy(this.$.waves).appendChild(y.waveContainer);this.$.background.style.backgroundColor=y.color;this.ripples.push(y);this._setAnimating(!0);return y},
removeRipple:function(y){var W=this.ripples.indexOf(y);W<0||(this.ripples.splice(W,1),y.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var y;for(y=0;y<this.ripples.length;++y){var W=this.ripples[y];W.draw();this.$.background.style.opacity=W.outerOpacity;W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}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(y,W){W!==void 0&&(y?this.downAction():this.upAction())}});var C$={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(y){Ra._downHandler.call(this,y);this.pressed&&this.ensureRipple(y)},
ensureRipple:function(y){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var W=this._rippleContainer||this.root;W&&_.Yy(W).appendChild(this._ripple);if(y){W=_.Yy(this._rippleContainer||this);var V=_.Yy(y).rootTarget;W.deepContains(V)&&this._ripple.uiDownAction(y)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(y){this.hasRipple()&&(this._ripple.noink=y)}};var t3s={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 y=1;this.disabled?y=0:this.active||this.pressed?y=4:this.receivedFocusFromKeyboard&&(y=3);this._setElevation(y)},
_computeKeyboardClass:function(y){this.toggleClass("keyboard-focus",y)},
_spaceKeyDownHandler:function(y){Ra._spaceKeyDownHandler.call(this,y);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(y){Ra._spaceKeyUpHandler.call(this,y);this.hasRipple()&&this._ripple.uiUpAction()}},Fai=[Onq,
_.JB,C$,t3s];_.EUf={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(y){y&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=y)},
_createRipple:function(){var y=C$._createRipple();y.id="ink";y.setAttribute("center","");y.classList.add("circle");return y}};
_.Nx2=[Onq,_.JB,C$,_.EUf];_.IEi=[_.Nx2,LGI,{_checkedChanged:function(){dHK._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){C$._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var gUm;var Pw2;var CwQ=function(){};
_.E=CwQ.prototype;_.E.registered=function(){};
_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E._tapHandler=function(){};
_.E._focusChanged=function(){};
_.E._detectKeyboardFocus=function(){};
_.E._userActivate=function(){};
_.E._upHandler=function(){};
_.E._asyncClick=function(){};
_.E._pressedChanged=function(){};
_.E._ariaActiveAttributeChanged=function(){};
_.E._activeChanged=function(){};
_.E._controlStateChanged=function(){};
_.E._changedButtonState=function(){};
_.E._focusBlurHandler=function(){};
_.E._disabledChanged=function(){};
_.E._changedControlState=function(){};
_.E._buttonStateChanged=function(){};
_.E._downHandler=function(){};
_.E.ensureRipple=function(){};
_.E.getRipple=function(){};
_.E.hasRipple=function(){};
_.E._createRipple=function(){};
_.E._noinkChanged=function(){};
_.E._computeKeyboardClass=function(){};
_.E._spaceKeyDownHandler=function(){};
_.E._spaceKeyUpHandler=function(){};
_.E._setPressed=function(){};
_.E._setPointerDown=function(){};
_.E._setReceivedFocusFromKeyboard=function(){};
_.E._setFocused=function(){};
_.E._setElevation=function(){};
CwQ=_.a6({_template:function(){if(Pw2!==void 0)return Pw2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;gUm===void 0&&(gUm=document.createElement("template"));var w=gUm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Pw2=y},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Fai],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?t3s._calculateElevation.apply(this):this._setElevation(0)}});var OV2;var vUI;var dEJ={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(y){_.e("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(y)},
_onDialogClickWrapped:function(y){_.e("dialog_behavior_no_tap_killswitch")||this._onDialogClick(y)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(y,W){W&&(y?(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(y){y?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(y){this.closingReason=this.closingReason||{};this.closingReason.confirmed=y},
_onDialogClick:function(y){for(var W=_.Yy(y).path,V=0,w,t=W.indexOf((w=this.hostElement)!=null?w:this);V<t;V++)if(w=W[V],w.hasAttribute&&(w.hasAttribute("dialog-dismiss")||w.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(w.hasAttribute("dialog-confirm"));this.close();y.stopPropagation();break}}},La2=[_.Pq,
dEJ];var zTK=document.createElement("template");_.T(zTK,'<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(zTK.content);var cDE=document.createElement("template");_.T(cDE,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(cDE.content);_.a6({_template:function(){if(vUI!==void 0)return vUI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;OV2===void 0&&(OV2=document.createElement("template"));var w=OV2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return vUI=y},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[La2,f1f],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 eT6;var hTf;_.a6({_template:function(){if(hTf!==void 0)return hTf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;eT6===void 0&&(eT6=document.createElement("template"));var w=eT6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return hTf=y},
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 y,W,V;if(((y=window.ShadyDOM)==null?void 0:y.noPatch)!==!0&&((W=window.ShadyDOM)==null?void 0:W.noPatch)!=="on-demand"||((V=this.__shady_parentNode)==null?void 0:V.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(dEJ)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var oUK=_.CF(['<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>']),KaJ=_.L_r(oUK);KaJ.setAttribute("style","display: none;");document.head.appendChild(KaJ.content);var pm6;var iVJ;var fEf;var Txq;_.a6({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[ro],configure:function(y){var W=y.node,V=W.getBoundingClientRect().height;return this._effect=new KeyframeEffect(W,[{height:V/2+"px"},{height:V+"px"}],this.timingFromConfig(y))}});
_.a6({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[ro],configure:function(y){var W=y.node,V=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:V/2+"px"},{width:V+"px"}],this.timingFromConfig(y))}});
_.a6({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[ro],configure:function(y){var W=y.node,V=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:V+"px"},{width:V-V/20+"px"}],this.timingFromConfig(y))}});
_.a6({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[ro],configure:function(y){var W=y.node,V=W.getBoundingClientRect().height;this.setPrefixedProperty(W,"transformOrigin","0 0");return this._effect=new KeyframeEffect(W,[{height:V+"px",transform:"translateY(0)"},{height:V/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(y))}});var OV={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},mEE=function(){};
_.E=mEE.prototype;_.E.registered=function(){};
_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E._focusBlurHandler=function(){};
_.E._changedControlState=function(){};
_.E._setFocused=function(){};
mEE=_.a6({_template:function(){if(Txq!==void 0)return Txq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;fEf===void 0&&(fEf=document.createElement("template"));var w=fEf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Txq=y},
is:"tp-yt-paper-menu-button",behaviors:[_.Bw,_.JB],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:OV.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:OV.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:OV.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 y=_.Yy(this.$.content).getDistributedNodes(),W=0,V=y.length;W<V;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},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(y,W){y?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):W!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(y){_.JB._disabledChanged.apply(this,arguments);y&&this.opened&&this.close()},
__onIronOverlayCanceled:function(y){var W=this.$.trigger;_.Yy(y.detail).path.indexOf(W)>-1&&y.preventDefault()}});
Object.keys(OV).forEach(function(y){mEE[y]=OV[y]});var M32=_.jx.IronButtonState,qps=(0,_.BQ)(HTMLElement);
_.a6({_template:function(){if(iVJ!==void 0)return iVJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;pm6===void 0&&(pm6=document.createElement("template"));var w=pm6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return iVJ=y},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[M32,_.JB,C$,_.$f,_.Xg],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(y){var W=(0,_.l4)(this);W.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:y});W.shadowRoot.appendChild(y);return qps.prototype._attachDom.call(this,y)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var y=this.contentElement;y&&y.selectedItem&&this._setSelectedItem(y.selectedItem)},
get contentElement(){for(var y=_.Yy(this.$.content).getDistributedNodes(),W=0,V=y.length;W<V;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(y){this._setSelectedItem(y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)===this&&this.open()},
_selectedItemChanged:function(y){var W="";y?W=y.label||y.getAttribute("label")||y.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(y,W){return W?W:y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var y=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",y)},
_computeLabelClass:function(y,W,V){var w="label";if(y)V&&(w+=" label-is-hidden");else if(V||W)w+=" label-is-floating";return w},
_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 UEE;var uuR;_.a6({is:"tp-yt-paper-icon-button",_template:function(){if(uuR!==void 0)return uuR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;UEE===void 0&&(UEE=document.createElement("template"));var w=UEE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return uuR=y},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Nx2],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(y,W){var V=this.getAttribute("aria-label");V&&W!=V||this.setAttribute("aria-label",y)}});var SpK;var DE2;_.vq=[Onq,_.JB,{hostAttributes:{role:"option",tabindex:"0"}}];_.a6({_template:function(){if(DE2!==void 0)return DE2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;SpK===void 0&&(SpK=document.createElement("template"));var w=SpK;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return DE2=y},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.vq]});var lER;var xEE;var kSK={attached:function(){this.fire("addon-attached")},
update:function(){}};var sDA=1,ADs=1,YpE=1,BxQ=[_.JB,_.Bw,{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();!eN&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(y,W){y?y=y+" "+W:y=W;return y},
_onAddonAttached:function(y){y=_.Yy(y).rootTarget;if(y.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,y.id);else{var W="paper-input-add-on-"+ADs++;y.id=W;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(y){_.JB._focusBlurHandler.call(this,y);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var y=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",y);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(y){try{var W=this.inputElement.selectionStart;this.value=y;this.inputElement.selectionStart=W;this.inputElement.selectionEnd=W}catch(V){this.value=y}},
_computeAlwaysFloatLabel:function(y,W){return W||y},
_updateAriaLabelledBy:function(){var y=_.Yy(this.root).querySelector("label");if(y){if(y.id)var W=y.id;else W="paper-input-label-"+sDA++,y.id=W;this._ariaLabelledBy=W}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+YpE++)},
_onChange:function(y){this.shadowRoot&&this.fire(y.type,{sourceEvent:y},{node:this,bubbles:y.bubbles,cancelable:y.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var y=document.activeElement;y instanceof HTMLElement&&y!==document.body&&y!==document.documentElement||this._focusableElement.focus()}}}];var JDQ;var RT6;_.a6({_template:function(){if(RT6!==void 0)return RT6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;JDQ===void 0&&(JDQ=document.createElement("template"));var w=JDQ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return RT6=y},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[kSK],properties:{_charCounterStr:{type:String,value:"0"}},update:function(y){if(y.inputElement){y.value=y.value||"";var W=y.value.toString().length.toString();y.inputElement.hasAttribute("maxlength")&&(W+="/"+y.inputElement.getAttribute("maxlength"));this._charCounterStr=W}}});var jDJ;var $Eq;_.a6({_template:function(){if($Eq!==void 0)return $Eq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;jDJ===void 0&&(jDJ=document.createElement("template"));var w=jDJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return $Eq=y},
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 K7(this.attrForValue)},get _inputElement(){return _.Yy(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(y){this._addons||(this._addons=[]);y=y.target;this._addons.indexOf(y)===-1&&(this._addons.push(y),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(y){this._handleValueAndAutoValidate(y.target)},
_onValueChanged:function(y){var W=y.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,W.value===void 0||W.value===""))return;this._handleValueAndAutoValidate(y.target)},
_handleValue:function(y){var W=this._inputElementValue;W||W===0||y.type==="number"&&!y.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:y,value:W,invalid:this.invalid})},
_handleValueAndAutoValidate:function(y){this.autoValidate&&y&&(this.invalid=!(y.validate?y.validate(this._inputElementValue):y.checkValidity()));this._handleValue(y)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(y){if(this._addons)for(var W,V=0;W=this._addons[V];V++)W.update(y)},
_computeInputContentClass:function(y,W,V,w,t){var F="input-content";y?(t&&(F+=" label-is-hidden"),w&&!this.noUnfloatedLabelError&&(F+=" is-invalid")):(y=this.querySelector("label"),W||t?(F+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",w?F+=" is-invalid":V&&(F+=" label-is-highlighted")):(y&&(this.$.labelAndInputContainer.style.position="relative"),w&&!this.noUnfloatedLabelError&&(F+=" is-invalid")));V&&(F+=" focused");return F},
_computeUnderlineClass:function(y,W){var V="underline";W?V+=" is-invalid":y&&(V+=" is-highlighted");return V},
_computeAddOnContentClass:function(y,W){var V="add-on-content";W?V+=" is-invalid":y&&(V+=" is-highlighted");return V}});var nUE;var HV2;_.a6({_template:function(){if(HV2!==void 0)return HV2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;nUE===void 0&&(nUE=document.createElement("template"));var w=nUE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return HV2=y},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[kSK],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(y){this._setInvalid(y.invalid)}});_.a6({is:"tp-yt-paper-input",_template:function(){if(xEE!==void 0)return xEE;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;lER===void 0&&(lER=document.createElement("template"));var w=lER;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return xEE=y},
behaviors:[BxQ,_.$f],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 Xmq;var aEE;_.a6({_template:function(){if(aEE!==void 0)return aEE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=
y.content,V=W.insertBefore;Xmq===void 0&&(Xmq=document.createElement("template"));var w=Xmq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return aEE=y},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.vq]});var GSE;var rDz;_.a6({_template:function(){if(rDz!==void 0)return rDz;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;GSE===void 0&&(GSE=document.createElement("template"));var w=GSE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return rDz=y},
is:"tp-yt-paper-item-body"});var bVr;var QDf;var ZVA=function(){};
_.E=ZVA.prototype;_.E.indexOf=function(){};
_.E.selectPrevious=function(){};
_.E.selectNext=function(){};
_.E.selectIndex=function(){};
_.E.forceSynchronousItemUpdate=function(){};
_.E._checkFallback=function(){};
_.E._addListener=function(){};
_.E._removeListener=function(){};
_.E._activateEventChanged=function(){};
_.E._updateItems=function(){};
_.E._selectSelected=function(){};
_.E._filterItem=function(){};
_.E._valueToItem=function(){};
_.E._valueToIndex=function(){};
_.E._indexToValue=function(){};
_.E._valueForItem=function(){};
_.E._observeItems=function(){};
_.E._itemActivate=function(){};
_.E.multiChanged=function(){};
_.E._updateAttrForSelected=function(){};
_.E._updateSelected=function(){};
_.E._selectMulti=function(){};
_.E._selectionChange=function(){};
_.E._toggleSelected=function(){};
_.E._valuesToItems=function(){};
_.E.registered=function(){};
_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E.select=function(){};
_.E._resetTabindices=function(){};
_.E._updateMultiselectable=function(){};
_.E._focusWithKeyboardEvent=function(){};
_.E._clearSearchText=function(){};
_.E._focusPrevious=function(){};
_.E._focusNext=function(){};
_.E._applySelection=function(){};
_.E._focusedItemChanged=function(){};
_.E._onIronItemsChanged=function(){};
_.E._onShiftTabDown=function(){};
_.E._onFocus=function(){};
_.E._onUpKey=function(){};
_.E._onDownKey=function(){};
_.E._onEscKey=function(){};
_.E._onKeydown=function(){};
_.E._activateHandler=function(){};
_.E._disabledChanged=function(){};
_.E._setSelectedItem=function(){};
_.E._setItems=function(){};
_.E._setSelectedItems=function(){};
_.E._setFocusedItem=function(){};
ZVA=_.a6({_template:function(){if(QDf!==void 0)return QDf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;bVr===void 0&&(bVr=document.createElement("template"));var w=bVr;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return QDf=y},
is:"tp-yt-paper-listbox",behaviors:[hMr],hostAttributes:{role:"listbox"}});var ydR;var WUz;var V6m={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(y,W){return[y||W?"active":"",W?"cooldown":""].join(" ")},
__activeChanged:function(y,W){this.__setAriaHidden(!y);this.__coolingDown=!y&&W},
__altChanged:function(y){this.setAttribute("aria-label",y||"loading")},
__setAriaHidden:function(y){y?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.a6({_template:function(){if(WUz!==void 0)return WUz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ydR===void 0&&(ydR=document.createElement("template"));var w=ydR;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return WUz=y},
is:"tp-yt-paper-spinner",behaviors:[V6m]});var wXi;var t6s;_.a6({_template:function(){if(t6s!==void 0)return t6s;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;wXi===void 0&&(wXi=document.createElement("template"));var w=wXi;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return t6s=y},
is:"tp-yt-paper-spinner-lite",behaviors:[V6m]});var FUK;var EeA;_.a6({_template:function(){if(EeA!==void 0)return EeA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;FUK===void 0&&(FUK=document.createElement("template"));var w=FUK;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return EeA=y},
is:"tp-yt-paper-tab",behaviors:[_.JB,_.jx.IronButtonState,C$],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 y=_.Yy(this).parentNode;return!!y&&!!y.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(y){if(this.link){var W=this.queryEffectiveChildren("a");W&&y.target!==W&&W.click()}}});var NK2;var ITq;var ge6=_.CF(['<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>']),PPI=_.L_r(ge6);document.head.appendChild(PPI.content);_.a6({_template:function(){if(ITq!==void 0)return ITq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;NK2===void 0&&(NK2=document.createElement("template"));var w=NK2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return ITq=y},
is:"tp-yt-paper-tabs",behaviors:[_.Gm,_.KGq],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(y){_.Yy(this).querySelectorAll("tp-yt-paper-tab").forEach(y?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(y){y.setAttribute("noink","")},
_removeNoinkAttribute:function(y){y.removeAttribute("noink")},
_computeScrollButtonClass:function(y,W,V,w){return!W||V?"hidden":y?w?"hidden":"not-visible":""},
_computeTabsContentClass:function(y,W){var V="tabs-content";y&&(V+=" scrollable");if(!y||W)V+=" fit-container";return V},
_computeSelectionBarClass:function(y,W){var V="selection-bar";y?V+=" hidden":W&&(V+=" align-bottom");return V},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(y){return""+y},
_onIronSelect:function(y){this._tabChanged(y.detail.item,this._previousTab);this._previousTab=y.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();_.aa._activateHandler.apply(this,arguments)},
_scheduleActivation:function(y,W){this._pendingActivationItem=y;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,W)},
_delayedActivationHandler:function(){var y=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;y.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(y){y.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(y,W){this.scrollable&&this._affectScroll(W&&-W.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(y){this.$.tabsContainer.scrollLeft+=y;y=this.$.tabsContainer.scrollLeft;this._leftHidden=y===0||this.hideScrollButtons;this._rightHidden=y===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(y,W){if(y){var V=this.$.tabsContent.getBoundingClientRect(),w=V.width,t=y.getBoundingClientRect();V=t.left-V.left;this._pos={width:this._calcPercent(t.width,w),left:this._calcPercent(V,w)};if(this.noSlide||W==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var F=W.getBoundingClientRect();W=this.items.indexOf(W);y=this.items.indexOf(y);this.$.selectionBar.classList.add("expand");
y=W<y;this._isRTL&&(y=!y);y?this._positionBar(this._calcPercent(t.left+t.width-F.left,w)-5,this._left):this._positionBar(this._calcPercent(F.left+F.width-t.left,w)-5,this._calcPercent(V,w)+5);this.scrollable&&this._scrollToSelectedIfNeeded(t.width,V)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(y,W){W-=this.$.tabsContainer.scrollLeft;W<0?this.$.tabsContainer.scrollLeft+=W:(W+=y-this.$.tabsContainer.offsetWidth,W>0&&(this.$.tabsContainer.scrollLeft+=W))},
_calcPercent:function(y,W){return 100*y/W},
_positionBar:function(y,W){y=y||0;W=W||0;this._width=y;this._left=W;this.transform("translateX("+W+"%) scaleX("+y/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var y=this.$.selectionBar.classList;y.contains("expand")?(y.remove("expand"),y.add("contract"),this._positionBar(this._pos.width,this._pos.left)):y.contains("contract")&&y.remove("contract")}});var CPE;var OFs;_.a6({_template:function(){if(OFs!==void 0)return OFs;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;CPE===void 0&&(CPE=document.createElement("template"));var w=CPE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return OFs=y},
is:"tp-yt-paper-textarea",behaviors:[BxQ,_.$f],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(y){this.$.input.textarea.selectionStart=y},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(y){this.$.input.textarea.selectionEnd=y},_ariaLabelledByChanged:function(y){this._focusableElement.setAttribute("aria-labelledby",y)},
_ariaDescribedByChanged:function(y){this._focusableElement.setAttribute("aria-describedby",y)},
get _focusableElement(){return this.inputElement.textarea}});var ver;var dWi;/*

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 LUm=function(){};
_.E=LUm.prototype;_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E._tapHandler=function(){};
_.E._focusChanged=function(){};
_.E._detectKeyboardFocus=function(){};
_.E._userActivate=function(){};
_.E._upHandler=function(){};
_.E._spaceKeyDownHandler=function(){};
_.E._spaceKeyUpHandler=function(){};
_.E._asyncClick=function(){};
_.E._pressedChanged=function(){};
_.E._ariaActiveAttributeChanged=function(){};
_.E._activeChanged=function(){};
_.E._controlStateChanged=function(){};
_.E._changedButtonState=function(){};
_.E._focusBlurHandler=function(){};
_.E._disabledChanged=function(){};
_.E._changedControlState=function(){};
_.E._downHandler=function(){};
_.E.ensureRipple=function(){};
_.E.getRipple=function(){};
_.E.hasRipple=function(){};
_.E._noinkChanged=function(){};
_.E._focusedChanged=function(){};
_.E.registered=function(){};
_.E._invalidChanged=function(){};
_.E.hasValidator=function(){};
_.E.validate=function(){};
_.E._getValidity=function(){};
_.E._requiredChanged=function(){};
_.E._valueChanged=function(){};
_.E._checkedChanged=function(){};
_.E._buttonStateChanged=function(){};
_.E._setPressed=function(){};
_.E._setPointerDown=function(){};
_.E._setReceivedFocusFromKeyboard=function(){};
_.E._setFocused=function(){};
LUm=_.a6({is:"tp-yt-paper-toggle-button",_template:function(){if(dWi!==void 0)return dWi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ver===void 0&&(ver=document.createElement("template"));var w=ver;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return dWi=y},
behaviors:[_.IEi],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");_.gy(this,function(){_.a0(this,"pan-y")})},
_ontrack:function(y){y=y.detail;y.state==="start"?this._trackStart(y):y.state==="track"?this._trackMove(y):y.state==="end"&&this._trackEnd(y)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(y){y=y.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+y:y)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+y:y));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 y=C$._createRipple();y.id="ink";y.setAttribute("recenters","");y.classList.add("circle","toggle-ink");return y}});var zlm;var cd2;_.a6({_template:function(){if(cd2!==void 0)return cd2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;zlm===void 0&&(zlm=document.createElement("template"));var w=zlm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return cd2=y},
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 y=_.Yy(this).parentNode,W=_.Yy(this).getOwnerRoot(),V;this.for?V=_.Yy(W).querySelector("#"+this.for):V=y.nodeType==Node.DOCUMENT_FRAGMENT_NODE?W.host:y;return V},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(y){y==="entry"?this.show():y==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Yy(this).textContent.trim()===""){for(var y=!0,W=_.Yy(this).getEffectiveChildNodes(),V=0;V<W.length;V++)if(W[V].textContent.trim()!==""){y=!1;break}if(y)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 y=this.offset;this.marginTop!=14&&this.offset==14&&(y=this.marginTop);var W=this.offsetParent.getBoundingClientRect(),V=this._target.getBoundingClientRect(),w=this.getBoundingClientRect(),t=(V.width-w.width)/2,F=(V.height-w.height)/2,I=V.left-W.left,P=V.top-W.top;switch(this.position){case "top":var C=I+t;var d=P-w.height-y;break;case "bottom":C=I+t;d=P+V.height+y;break;case "left":C=I-w.width-y;d=P+F;break;case "right":C=I+V.width+
y,d=P+F}this.fitToVisibleBounds?(W.left+C+w.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,C)+"px",this.style.right="auto"),W.top+d+w.height>window.innerHeight?(this.style.bottom=W.height+"px",this.style.top="auto"):(this.style.top=Math.max(-W.top,d)+"px",this.style.bottom="auto")):(this.style.left=C+"px",this.style.top=d+"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(y){y!==500&&this.updateStyles({"--paper-tooltip-delay-in":y+"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(y){if(y==="entry"&&this.animationEntry!=="")return this.animationEntry;if(y==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[y]&&typeof this.animationConfig[y][0].name==="string"){if(this.animationConfig[y][0].timing&&this.animationConfig[y][0].timing.delay&&this.animationConfig[y][0].timing.delay!==0){var W=this.animationConfig[y][0].timing.delay;y==="entry"?this.updateStyles({"--paper-tooltip-delay-in":W+"ms"}):y==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":W+
"ms"})}return this.animationConfig[y][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 elK=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(elK,_.fu);var hlA=_.Sh(elK,[0,_.z7]);var d1=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(d1,_.fu);var oeq=[3,4],KUs=[5,6];var pXm=[0,oeq,KUs,_.gRR,-1,_.d4,_.P_A,-1,V7L,wL4];var iFQ=_.Sh(d1,pXm),fTq=_.Df(pXm);var TKE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(TKE,_.fu);var mWK=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(mWK,_.fu);var M6Q=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(M6Q,_.fu);var qXf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(qXf,_.fu);var UW6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(UW6,_.fu);var L$=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(L$,_.fu);L$.prototype.getSource=function(){return _.rK(this,1)};
L$.prototype.getMessage=function(){return _.aX(this,4)};
L$.prototype.getData=function(){return _.Da(this,UW6,8)};var u_q=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(u_q,_.fu);var z6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(z6,_.fu);var cq=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(cq,_.fu);var eZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(eZ,_.fu);eZ.prototype.getUrl=function(){return _.aX(this,1)};
eZ.prototype.setUrl=function(y){return _.jD(this,1,y)};
eZ.prototype.hasUrl=function(){return _.Jm(_.ke(this,1))!=null};var SXE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(SXE,_.fu);var DWR=[3];var lTK=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lTK,_.fu);var hr=function(y){var W=new lTK;return _.oV(W,2,y)};
lTK.prototype.getLanguage=function(){return QH(this,4,ox)};
var xWr=function(y){var W=hr(1);return _.A_(W,6,ox,y)},ox=[3,
4,5,6];var kWI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(kWI,_.fu);var K$=function(y){var W=new kWI;return _.oV(W,1,y)},p$=function(y,W){return _.A_(y,2,sXE,W)},sXE=[2,
3,4,5];var AdQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(AdQ,_.fu);var iI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(iI,_.fu);var YXi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(YXi,_.fu);var BKs=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(BKs,_.fu);var JdR=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(JdR,_.fu);var RlA=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(RlA,_.fu);var jXs=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(jXs,_.fu);var f$=function(y){return _.Da(y,cq,5)};var $WI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p($WI,_.fu);$WI.prototype.getValue=function(){return HX(this,1)};var nef=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(nef,_.fu);var T6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(T6,_.fu);T6.prototype.getMetadata=function(){return _.ZT(this,JdR,7,mI)};
T6.prototype.hasMetadata=function(){return _.Ad(this,JdR,7,mI)};
var HFz=_.pZz(T6),mI=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Mn=function(y){this.JSC$11897_name_=y;this.files_=[];this.directories_=[];this.directoryMap_={}};
Mn.prototype.getName=function(){return this.JSC$11897_name_};var UV=function(y,W){this.callback_=W;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Mn("");XX6(this,y,this.rootDirectory_);qn(this)},XX6=function(y,W,V){for(var w=0;w<W.length;w++){var t=W[w];
t.isFile?(y.fileOps_++,t.file((0,_.jA)(y.handleFileSuccess_,y,V),(0,_.jA)(y.handleFileError_,y))):y.unscannedDirectories_.push(new aTJ(t,V))}},qn=function(y){if(y.unscannedDirectories_.length>0&&y.directoryOps_<5&&!y.hasError_){y.directoryOps_++;
var W=y.unscannedDirectories_.shift(),V=W.entry,w=new Mn(V.name);W=W.parent;W.directoryMap_[w.getName()]=w;W.directories_.push(w);V=V.createReader();V.readEntries((0,_.jA)(y.handleDirectorySuccess_,y,V,w),(0,_.jA)(y.handleDirectoryError_,y))}y.directoryOps_!=0||y.fileOps_!=0||y.unscannedDirectories_.length!=0&&!y.hasError_||y.callback_(y.rootDirectory_.files_,y.rootDirectory_.directories_,y.hasError_)};
UV.prototype.handleDirectorySuccess_=function(y,W,V){XX6(this,V,W);V.length==0?(this.directoryOps_--,qn(this)):y.readEntries((0,_.jA)(this.handleDirectorySuccess_,this,y,W),(0,_.jA)(this.handleDirectoryError_,this))};
UV.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;qn(this)};
UV.prototype.handleFileSuccess_=function(y,W){y.files_.push(W);this.fileOps_--;qn(this)};
UV.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;qn(this)};
var aTJ=function(y,W){this.entry=y;this.parent=W};var uI=function(y){_.Bg.call(this);_.XZ(y,"drop",this.onObjectsDropped_,!1,this);_.XZ(y,"dragenter",this.onFilesDragged_,!1,this);_.XZ(y,"dragover",this.onFilesDragged_,!1,this);_.XZ(y,"dragleave",this.onDragLeave_,!1,this);_.XZ(y,"dragend",this.onDragLeave_,!1,this)};
_.pF(uI,_.Bg);var GWR=function(y,W){_.xs.call(this,"f");this.files=y;this.directories=W};
_.pF(GWR,_.xs);var rdm=function(){_.xs.call(this,"h")};
_.pF(rdm,_.xs);var bFK=function(){_.xs.call(this,"i")};
_.pF(bFK,_.xs);var QXf=function(){_.xs.call(this,"g")};
_.pF(QXf,_.xs);uI.prototype.onObjectsDropped_=function(y){var W=this;y.preventDefault();var V=y.event_.dataTransfer;if((y=V&&V.items)&&y.length>0&&y[0].webkitGetAsEntry){V=[];for(var w=[],t=0;t<y.length;t++){var F=y[t].webkitGetAsEntry();F?V.push(F):w.push(y[t])}new UV(V,function(I,P,C){C?W.dispatchEvent(new QXf("Error occurred while reading from the file system.")):W.dispatchEvent(new GWR(I,P,w))})}else(y=V&&V.files)&&this.dispatchEvent(new GWR(Array.from(y),[]))};
uI.prototype.onFilesDragged_=function(y){y.type==="dragenter"&&this.dispatchEvent(new rdm);y.preventDefault()};
uI.prototype.onDragLeave_=function(){this.dispatchEvent(new bFK)};var ZFq=function(y,W){this.JSC$11920_name_=y;this.inputElement_=W};
ZFq.prototype.getName=function(){return this.JSC$11920_name_};
ZFq.prototype.getInputElement=function(){return this.inputElement_};var SZ=function(y,W,V){W=W===void 0?"single_file":W;V=V===void 0?[]:V;_.Bg.call(this);this.overlayTarget_=y;this.parentOverlay_=y!=null?y.parentNode:_.xu("scotty-overlay-parent");this.selectorType_=W;this.acceptTypes_=V;this.overlay_=y$K(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.p(SZ,_.Bg);
var y$K=function(y,W,V,w){var t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("name","Filedata");_.XZ(t,"change",y.onFilesSelected_,!1,y);V==="multiple_file"&&(t.multiple="true");V==="single_directory"&&(t.webkitdirectory="true");w.length>0&&t.setAttribute("accept",w.join(","));t.style.position="absolute";t.style.overflow="hidden";t.style.height="0px";t.style.width="0px";t.style.opacity="0";t.setAttribute("aria-hidden","true");t.setAttribute("tabIndex",-1);if(y.overlayTarget_!=
null)return t.style.height=W.offsetHeight+"px",t.style.width=W.offsetWidth+"px",y.parentOverlay_&&(y.parentOverlay_.style.position="relative"),_.bQ(t,W),wD(t,new _.bj(W.offsetLeft,W.offsetTop)),t;y.parentOverlay_.appendChild(t);return t};
SZ.prototype.click=function(){this.overlay_.click()};
SZ.prototype.onFilesSelected_=function(y){a:{try{var W=(new XMLHttpRequest).upload!==void 0;break a}catch(d){}W=!1}if(W){var V;y=Array.from((V=y.target.files)!=null?V:[]);V=[];if(this.selectorType_==="single_directory"&&(_.qW||O6||_.MW)){V=new Mn("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(W=0;W<y.length;W++)for(var w=y[W],t=w.webkitRelativePath.split("/"),F=V,I=0;I<t.length;I++){var P=t[I];if(I==t.length-1){P!="."&&F.files_.push(w);break}var C=F.directoryMap_[P];C==void 0&&(P=
C=new Mn(P),F.directoryMap_[P.getName()]=P,F.directories_.push(P));F=C}V=V.directories_}this.dispatchEvent(new Wq2(y,V,null))}else y=y.target.value,y.match(/^c:\\fakepath\\/i)&&(y=y.substring(12)),this.dispatchEvent(new Wq2([],[],new ZFq(y,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=y$K(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Wq2=function(y,W){_.xs.call(this,"j");this.files=y;this.directories=W};
_.p(Wq2,_.xs);var Vdq=function(y){this.uploadUrl_=y};var w8s=function(){_.Bg.call(this)};
_.pF(w8s,_.Bg);var Ds=function(y){_.xs.call(this,y)};
_.pF(Ds,_.xs);var lI=function(y){_.xs.call(this,y)};
_.pF(lI,_.xs);var tdK=function(y,W,V,w,t){_.Bg.call(this);V=document.createElement("form");V.setAttribute("method",W);V.setAttribute("enctype","multipart/form-data");V.setAttribute("encoding","multipart/form-data");W=document.createElement("input");W.setAttribute("type","hidden");W.setAttribute("name","metadata");W.setAttribute("value",t);V.appendChild(W);V.appendChild(w);this.JSC$11937_form_=V;y=new _.gw(y);_.If(y,"upload_protocol","multipart");this.JSC$11937_url_=y.toString();this.JSC$11937_request_=new hB;this.state_=
"Ready";this.JSC$11937_errorDescription_=null;this.JSC$11937_eventHandler_=new _.eK(this);_.Uf(this,this.JSC$11937_eventHandler_);this.JSC$11937_eventHandler_.listen(this.JSC$11937_request_,"success",this.onTransferSuccess_);this.JSC$11937_eventHandler_.listen(this.JSC$11937_request_,"error",this.onTransferError_)};
_.p(tdK,w8s);_.E=tdK.prototype;_.E.run=function(){this.state_="Transferring";var y=this.JSC$11937_request_,W=this.JSC$11937_form_;if(y.JSC$11355_active_)throw Error("xe");var V=new _.gw(this.JSC$11937_url_||W.action);y.JSC$11355_form_=W;W=y.JSC$11355_form_;V=_.w$(V.toString());V!==void 0&&(W.action=V);DMm(y)};
_.E.getResponseCode=function(){return null};
_.E.getResponseText=function(){return this.JSC$11937_request_&&this.JSC$11937_request_.getResponseText()||null};
_.E.JSC$29095_getErrorDescription=function(){return this.JSC$11937_errorDescription_};
_.E.cancel=function(){this.JSC$11937_request_&&this.JSC$11937_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Ds("o"))};
_.E.pause=function(){};
_.E.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Ds("l"))};
_.E.onTransferError_=function(){this.JSC$11937_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Ds("n"))};var xo=function(){_.ay.call(this)};
_.p(xo,_.ay);xo.prototype.createXhr=function(){var y=_.ay.prototype.createXhr.call(this);y.upload&&(y.upload.onprogress=(0,_.jA)(this.onProgress_,this));return y};
xo.prototype.onProgress_=function(y){this.dispatchEvent(y)};var Fqi=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},N46=function(y,W){var V=y.attempt_+1;
if(y.maxAttempts_>0&&V>y.maxAttempts_)return!1;V==0?W():y.delayCallId_=nw(function(){y.delayCallId_=null;W()},EWz(y),y);
y.attempt_=V;return!0};
Fqi.prototype.reset=function(){this.delayCallId_&&_.Vj.clearTimeout(this.delayCallId_);this.attempt_=-1};
var EWz=function(y){var W=250*Math.pow(2,y.attempt_);y.maxDelayMs_>=0&&(W=Math.min(W,y.maxDelayMs_));return W};var feG=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var ko=function(){_.Bg.call(this);this.JSC$11947_request_=this.state_=null;this.JSC$11947_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11947_bytesTransferred_=0;this.retryIterator_=new Fqi;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11947_errorDescription_=null;this.JSC$11947_eventHandler_=new _.eK(this);_.Uf(this,this.JSC$11947_eventHandler_);this.JSC$11947_url_=this.blob_=null;this.JSC$11947_method_=void 0;this.chunkSize_=this.JSC$11947_metadata_=
this.JSC$11947_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11947_responseText_=this.JSC$11947_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.pF(ko,w8s);_.E=ko.prototype;_.E.run=function(){sV(this)};
_.E.getResponseCode=function(){return this.JSC$11947_responseCode_};
_.E.getResponseText=function(){return this.JSC$11947_responseText_};
_.E.JSC$29095_getErrorDescription=function(){return this.JSC$11947_errorDescription_};
_.E.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11947_eventHandler_.removeAll();this.JSC$11947_request_&&this.JSC$11947_request_.abort();this.retryIterator_.reset();var y=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(y==="Upload"||y==="Query")y=new xo,y.JSC$9721_withCredentials_=this.JSC$11947_withCredentials_,y.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11947_bytesTransferred_=
0;this.dispatchEvent(new Ds("o"))}};
_.E.pause=function(){this.pauseRequested_=!0};
var sV=function(y){var W=y.state_;y.pauseRequested_?(y.pauseRequested_=!1,y.stateAfterUnpausing_=W,y.state_="Paused"):N46(y.retryIterator_,function(){switch(y.state_){case "Start":y.JSC$11947_request_=new xo;var V=_.Gc.clone(y.JSC$11947_headers_);y.blob_.size!=null&&(V["Content-Length"]=y.blob_.size);V=TFu(V);V["X-Goog-Upload-Protocol"]="resumable";V["X-Goog-Upload-Command"]="start";y.JSC$11947_eventHandler_.removeAll();y.JSC$11947_eventHandler_.listen(y.JSC$11947_request_,"complete",y.onStartComplete_);
y.JSC$11947_request_.JSC$9721_withCredentials_=y.JSC$11947_withCredentials_;y.JSC$11947_request_.send(y.JSC$11947_url_,y.JSC$11947_method_,y.JSC$11947_metadata_,V);y.lastCommandResponseCode_=null;y.dispatchEvent(new lI("q"));break;case "Upload":V=y.transferHandle_.uploadUrl_;var w=y.blob_.size;if(z96()){var t=y.chunkSize_;var F=y.offset_+t>=w;w=L6i(y.blob_,y.offset_,F?w:y.offset_+t)}else y.offset_=0,w=y.blob_,F=!0;y.JSC$11947_request_=new xo;y.JSC$11947_request_.JSC$9721_withCredentials_=y.JSC$11947_withCredentials_;
y.JSC$11947_eventHandler_.removeAll();y.JSC$11947_eventHandler_.listen(y.JSC$11947_request_,"progress",y.onUploadProgress_);t=(0,_.jA)(y.JSC$11949_onUploadComplete_,y,y.offset_+w.size,F);y.JSC$11947_eventHandler_.listen(y.JSC$11947_request_,"complete",t);y.lastCommandResponseCode_=null;y.dispatchEvent(new lI("q"));F=Object.assign({},y.JSC$11947_headers_||{},{"X-Goog-Upload-Command":"upload"+(F?", finalize":""),"X-Goog-Upload-Offset":y.offset_});y.JSC$11947_request_.send(V,"POST",w,F);break;case "Query":y.JSC$11947_request_=
new xo;y.JSC$11947_eventHandler_.removeAll();y.JSC$11947_eventHandler_.listen(y.JSC$11947_request_,"complete",y.onQueryComplete_);V=Object.assign({},y.JSC$11947_headers_||{},{"X-Goog-Upload-Command":"query"});y.JSC$11947_request_.send(y.transferHandle_.uploadUrl_,"POST","",V);y.lastCommandResponseCode_=null;y.dispatchEvent(new lI("q"));break;default:throw Error("nf");}})||Ar(y,"Transfer encountered too many consecutive failures.")},Ar=function(y,W){y.state_="Error";
y.JSC$11947_errorDescription_=W;y.dispatchEvent(new Ds("n"))};
ko.prototype.onStartComplete_=function(y){var W=y.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new lI("r"));if(IxJ(W))gWq(this,W);else if(PQm(W)){y=Oy(y.target.getAllResponseHeaders());for(var V in y)_.tv(V.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Ds("m"));V=J8(y,"X-Goog-Upload-URL");y=(y=J8(y,"X-Goog-Upload-Chunk-Granularity"))?parseInt(y,10):1;V===void 0||isNaN(y)||y<=0?Ar(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
y)*y,this.transferHandle_=new Vdq(V),this.dispatchEvent(new Ds("p")),this.state_="Upload",this.retryIterator_.reset(),sV(this))}else sV(this)};
ko.prototype.onUploadProgress_=function(y){this.JSC$11947_bytesTransferred_=this.offset_+y.loaded;this.dispatchEvent(new Ds("k"))};
ko.prototype.JSC$11949_onUploadComplete_=function(y,W,V){var w=this,t,F;return _.g(function(I){switch(I.nextAddress){case 1:t=V.target;w.lastCommandResponseCode_=t.getStatus();w.dispatchEvent(new lI("r"));if(CQs(t)||t.getStatus()==404)return w.JSC$11947_bytesTransferred_=y,gWq(w,t),I.return();if(PQm(t)){I.jumpTo(2);break}if(!(F=w.detectCorruptedBlobEnabled_)){I.jumpTo(3);break}return I.yield(Oli(w),4);case 4:F=I.yieldResult;case 3:if(F)return Ar(w,"Blob has been modified or corrupted."),I.return();
w.requireUploadRequestModification_=t.getStatus()==400;w.state_="Query";sV(w);return I.return();case 2:if(W)return Ar(w,"Got a non-final success response after issuing a finalize command."),I.return();w.JSC$11947_bytesTransferred_=y;w.offset_=y;w.retryIterator_.reset();sV(w);return I.return()}})};
ko.prototype.onQueryComplete_=function(y){var W=y.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new lI("r"));IxJ(W)?(W.getStatus()===200&&(this.JSC$11947_bytesTransferred_=this.blob_.size),gWq(this,W)):PQm(W)?(y=Oy(y.target.getAllResponseHeaders()),y=parseInt(J8(y,"X-Goog-Upload-Size-Received"),10),isNaN(y)?Ar(this,"Server did not respond with current offset."):y<this.offset_?Ar(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
y+"."):this.requireUploadRequestModification_&&this.offset_===y?Ar(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<y&&this.retryIterator_.reset(),this.offset_=this.JSC$11947_bytesTransferred_=y,this.state_="Upload",sV(this))):sV(this)};
var gWq=function(y,W){y.JSC$11947_responseCode_=W.getStatus();var V=Oy(W.getAllResponseHeaders());mYz(V);y.JSC$11947_responseText_=W.getResponseText();y.state_="Response received";y.dispatchEvent(new Ds("l"))},PQm=function(y){var W=y.getStatus();
y=Oy(y.getAllResponseHeaders());y=J8(y,"X-Goog-Upload-Status");return W===200&&y==="active"},CQs=function(y){y=Oy(y.getAllResponseHeaders());
return J8(y,"X-Goog-Upload-Status")==="final"},IxJ=function(y){if(CQs(y))return!0;
y=y.getStatus();return y>=400&&y<500},Oli=function(y){var W;
return _.g(function(V){if(V.nextAddress==1){if(!y.blob_||y.originalBlobSize_<=0)return V.return(!1);if(y.blob_.size!==y.originalBlobSize_)return V.return(!0);_.l7(V,2);if(W=L6i(y.blob_,0,1)){var w=V.yield,t=new VO,F=GwQ(t);t.reader_.readAsBinaryString(W);V=w.call(V,F,4)}else V=V.return(!0);return V}if(V.nextAddress!=2)return V.return(y.blob_.size!==y.originalBlobSize_);_.YX(V);return V.return(!0)})};var vWI=function(y,W,V,w,t,F){_.Bg.call(this);this.payload_=w;this.JSC$11950_url_=y;this.JSC$11950_method_=W;this.JSC$11950_headers_=V;this.JSC$11950_metadata_=t;this.encoding_=F||"binary";y=new _.R4;this.boundary_="uploader-"+FT()+"-"+y.JSC$11204_toIsoString();this.JSC$11950_responseText_=this.JSC$11950_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11950_errorDescription_=null;this.JSC$11950_eventHandler_=new _.eK(this);_.Uf(this,this.JSC$11950_eventHandler_)};
_.p(vWI,w8s);_.E=vWI.prototype;
_.E.run=function(){var y=_.Gc.clone(this.JSC$11950_headers_);this.payload_.length!=null&&(y["Content-Length"]=this.payload_.length);y=TFu(y);y["X-Goog-Upload-Protocol"]="multipart";y["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new xo;this.JSC$11950_eventHandler_.removeAll();this.JSC$11950_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11950_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11950_url_,this.JSC$11950_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11950_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",y)};
_.E.getResponseCode=function(){return this.JSC$11950_responseCode_};
_.E.getResponseText=function(){return this.JSC$11950_responseText_};
_.E.JSC$29095_getErrorDescription=function(){return this.JSC$11950_errorDescription_};
_.E.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11950_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Ds("o")))};
_.E.pause=function(){};
_.E.onTransferProgress_=function(){this.dispatchEvent(new Ds("k"))};
_.E.onTransferComplete_=function(y){var W=y.target.getStatus();W===void 0||W===-1?(this.JSC$11950_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Ds("n"))):(this.JSC$11950_responseCode_=W,y=y.target,W=Oy(y.getAllResponseHeaders()),mYz(W),this.JSC$11950_responseText_=y.getResponseText(),this.state_="Complete",this.dispatchEvent(new Ds("l")))};_.d_i=function(y,W,V,w){w=w===void 0?!1:w;if(V instanceof ZFq)return new tdK(y,"POST",W,V.getInputElement(),"");if(typeof V==="string"||V instanceof String)return new vWI(y,"POST",W,V,"");var t=new ko(void 0);t.JSC$11947_url_=y;t.JSC$11947_method_="POST";t.JSC$11947_headers_=W;t.blob_=V;t.originalBlobSize_=V.size;t.JSC$11947_metadata_="";w&&(t.JSC$11947_withCredentials_=w);t.state_="Start";return t};var Yo=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Yo,_.fu);_.E=Yo.prototype;_.E.getEnableSsEngine=function(){return _.nF(this,2)};
_.E.getEnableAwr=function(){return _.nF(this,3)};
_.E.getAlohaAutoGaRollout=function(){return _.nF(this,5)};
_.E.getEnableConfigurator=function(){return _.nF(this,6)};
_.E.getEnableMweb=function(){return _.nF(this,7)};
var z3q=function(){var y=Lqs();return _.jK(y,7,!0)};
Yo.prototype.getEnableCtlConsentCheckbox=function(){return _.nF(this,8)};
Yo.prototype.getEnableIframe=function(){return _.nF(this,9)};
var Lqs=function(){var y=new Yo;y=_.jK(y,5,!0);y=_.jK(y,2,!0);y=_.jK(y,4,!1);y=_.jK(y,8,!0);return _.jK(y,9,!0)};
Yo.prototype.getEnableScreenshotNudge=function(){return _.nF(this,10)};
var c$q=function(){var y=z3q();return _.jK(y,10,!0)};
Yo.prototype.getEnableWebStartupConfigEndpoint=function(){return _.nF(this,11)};
Yo.prototype.getEnableJunkNudge=function(){return _.nF(this,12)};
var HHG=function(){var y=c$q();return _.jK(y,12,!0)};
_.E=Yo.prototype;_.E.getEnableConfiguratorLocale=function(){return _.nF(this,13)};
_.E.getEnableTinyNoPointer=function(){return _.nF(this,14)};
_.E.getEnableSupportSessionLogging=function(){return _.nF(this,15)};
_.E.getEnableFileUploadForScreenshot=function(){return _.nF(this,16)};
_.E.getEnableDirectDeflectionForSingleCategory=function(){return _.nF(this,17)};
_.E.getEnableImageSanitization=function(){return _.nF(this,18)};
_.E.getEnableAlohaBinarySplit=function(){return _.nF(this,19)};
_.E.getEnableDbFeedbackIntents=function(){return _.nF(this,20)};
_.E.getEnableMarkMandatoryFieldsWithRequired=function(){return _.nF(this,21)};
_.E.getEnableFeedbackCategoryCustomUi=function(){return _.nF(this,22)};
_.E.getEnableRealtimeCtl=function(){return _.nF(this,23)};var nGL=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(nGL,_.fu);var Mb4=[/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 UYv="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 uJu=_.CF(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),SQb=_.CF(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var leL,sPP,xYG,A0j;var e3m,h3K;
e3m=function(y,W,V){y.timeOfStartCall=(new Date).getTime();var w=V||_.Vj,t=w.document,F=y.nonce||_.CJ(w.document);F&&!y.nonce&&(y.nonce=F);if(y.flow=="help"){var I=_.ts("document.location.href",w);!y.helpCenterContext&&I&&(y.helpCenterContext=I.substring(0,1200));I=!0;if(W&&JSON&&JSON.stringify){var P=JSON.stringify(W);(I=P.length<=1200)&&(y.psdJson=P)}I||(W={invalidPsd:!0})}W=[y,W,V];w.GOOGLE_FEEDBACK_START_ARGUMENTS=W;V=y.feedbackServerUri||"//www.google.com/tools/feedback";if(I=w.GOOGLE_FEEDBACK_START)I.apply(w,W);
else{w=V+"/load.js?";for(var C in y)W=y[C],W==null||_.VK(W)||(w+=encodeURIComponent(C)+"="+encodeURIComponent(W)+"&");y=RS(t).createElement("SCRIPT");F&&y.setAttribute("nonce",F);_.zC(y,_.jh(w));t.body.appendChild(y)}};
h3K=function(y,W,V,w){var t,F;_.g(function(I){t=V||_.Vj;var P=y.serverEnvironment==="DEV",C=V||_.Vj;C=y.nonce||_.CJ(C.document);P={integrationKeys:{productId:y.productId,feedbackBucket:y.bucket,triggerId:y.triggerId},callbacks:{onClose:y.callback,onLoad:y.onLoadCallback},formContent:{locale:y.locale,disableScreenshot:y.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:y.abuseLink,additionalDataConsent:y.additionalDataConsent},initializationData:{isLocalServer:P,nonce:C,useNightlyRelease:P,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:y.feedbackServerUri,colorScheme:y.colorScheme},extraData:{productVersion:y.productVersion,authUser:y.authuser,configuratorId:y.configuratorId,customZIndex:y.customZIndex,tinyNoPointer:y.tinyNoPointer,
allowNonLoggedInFeedback:y.allowNonLoggedInFeedback,enableAnonymousFeedback:y.enableAnonymousFeedback}};W&&(C=new Map(Object.entries(W)),P.extraData.productSpecificData=C);F=P;return I.yield(R0a(F,w,t),0)})};
_.oWJ=function(y,W,V){try{if(y.flow==="help"){var w=y.helpCenterPath.replace(/^\//,"");_.P7(V||window,"https://support.google.com/"+w)}else y.flow==="submit"?e3m(y,W,V):XYv(y.productId,y.feedbackServerUri).then(function(t){t=_.Da(t,Yo,1);var F=!i1v||(t==null?void 0:t.getEnableMweb()),I=!y.tinyNoPointer||(t==null?void 0:t.getEnableTinyNoPointer());!t||t.getAlohaAutoGaRollout()&&F&&I?h3K(y,W,V,t):e3m(y,W,V)},function(t){t&&t.name!=="DuplicateFormError"&&e3m(y,W,V)})}catch(t){h3K(y,W,V,null)}};
_.dE("userfeedback.api.startFeedback",_.oWJ);var aev=/https?:\/\/\S+\.\S+/,GFR=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],r0P=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var nzG=function(y){var W=y.split(""),V=[-263237435,15,W,function(w,t,F){var I=t.length;F.forEach(function(P,C,d){this.push(d[C]=t[(t.indexOf(P)-t.indexOf(this[C])+C+I--)%t.length])},w.split(""))},
function(w,t){w=(w%t.length+t.length)%t.length;t.splice(-w).reverse().forEach(function(F){t.unshift(F)})},
"response",function(){for(var w=64,t=[];++w-t.length-32;){switch(w){case 58:w-=14;case 91:case 92:case 93:continue;case 123:w=47;case 94:case 95:case 96:continue;case 46:w=95}t.push(String.fromCharCode(w))}return t},
null,12,1540023973,65941107,null,W,function(w,t){for(w=(w%t.length+t.length)%t.length;w--;)t.unshift(t.pop())},
695603893,function(w){for(var t=w.length;t;)w.push(w.splice(--t,1)[0])},
"'[;'[(",function(w,t){w.push(t)},
null,function(w,t,F,I,P){return t(F,I,P)},
"continuation",W,function(w,t){if(w.length!=0){t=(t%w.length+w.length)%w.length;var F=w[0];w[0]=w[t];w[t]=F}},
function(){for(var w=64,t=[];++w-t.length-32;){switch(w){case 91:w=44;continue;case 123:w=65;break;case 65:w-=18;continue;case 58:w=96;continue;case 46:w=95}t.push(String.fromCharCode(w))}return t},
'"),/]];'];V[7]=V;V[11]=V;V[18]=V;try{(((0,V[15])(V[21]),V[22])(V[11],V[9]),V[22])(V[new Date("1970-01-01T04:30:12.000+04:30")/1E3],V[1]),((0,V[22])(V[11],V[23]),V[4])(V[10],V[18]),(0,V[20])(V[21],V[14])<<(0,V[17])(V[18],V[1]),(0,V[4])(V[8],V[21]),(0,V[19])((0,V[19])((0,V[17])(V[7],V[9]),V[3],V[20],(0,V[6])(),V[2]),V[3],V[5],(0,V[15])(),V[2])}catch(w){return"aTlOUOubTO4AP____8P_"+y}return W.join("")};_.Kqm=new _.zf("runAttestationCommand");var p8E=new _.zf("verifyCommand");_.Bq=new _.zf("accessibilityContext");var ilA=new _.zf("accessibilityData");var fx6=new _.zf("profileCardCommand");var KzR=new _.zf("signInEndpoint");var oTj=new _.zf("signOutEndpoint");var m_A;_.T4J=new _.zf("accountItemSectionRenderer");m_A=new _.zf("accountItemRenderer");_.MdK=new _.zf("saveCommandToSessionStorageAction");var qvs=new _.zf("crossAccountChannelTransferEndpoint");var zWt=new _.zf("getAccountMenuEndpoint");_.cFy=new _.zf("getAccountSwitcherEndpoint");var LYP=new _.zf("getAccountsListEndpoint");var U_2=new _.zf("getAccountsListInnertubeEndpoint");_.Jr=new _.zf("addToToastAction");var uh6=new _.zf("hideEnclosingAction");_.Rx=new _.zf("replaceEnclosingAction");var Svz=new _.zf("buttonRefreshAction");var D_E=new _.zf("adsControlFlowOpportunityReceivedCommand");var lxK=new _.zf("openAdAllowlistInstructionCommand");var x_s=new _.zf("videoMastheadAdPrimaryVideoRenderer");var k7m=new _.zf("displayAdRenderer");var x$y=new _.zf("instreamVideoAdRenderer");_.s1m=new _.zf("inFeedAdLayoutRenderer");var A$r=new _.zf("sequenceItemInPlayerAdLayoutRenderer");_.Yvq=new _.zf("adSlotRenderer");var B4Q=new _.zf("adAvatarViewModel");var J$Q=new _.zf("adBadgeViewModel");var R3R=new _.zf("adImageViewModel");var CsR=new _.zf("reelsAdCardButtonedViewModel");var j1A=new _.zf("reelsPlayerOverlayLayoutViewModel");var $_i=new _.zf("showSchedulingPanelCommand");var nWJ=new _.zf("backstageCommentsRenderer");var Hls=new _.zf("backstageImageRenderer");var X8J=new _.zf("backstagePostRenderer");var axK=new _.zf("backstageZeroStateRenderer");var G7Q=new _.zf("postRenderer");var r$2=new _.zf("sharedPostRenderer");var blz=new _.zf("createBackstagePostEndpoint");var Q1E=new _.zf("getPostVideoPreviewEndpoint");var ZlA=new _.zf("updateBackstagePostEndpoint");var yPK=new _.zf("filterChipTransformCommand");var W$K=new _.zf("insertRichSectionCommand");var wcR=new _.zf("talkToRecsDeselectCommand");var VIK=new _.zf("talkToRecsNextCommand");var Van=new _.zf("talkToRecsSelectCommand");var wgi=new _.zf("talkToRecsUpdateTextCommand");_.sT=new _.zf("browseEndpoint");_.tIq=new _.zf("confirmDialogEndpoint");var F$2=new _.zf("expandOnHoverCardRenderer");var Esz=new _.zf("lumiereShelfDetailsRenderer");var NDf=new _.zf("revealBusinessEmailCommand");var IC6=new _.zf("validateChannelHandleCommand");var gsf=new _.zf("channelCreationFormEndpoint");var PWI=new _.zf("aboutChannelViewModel");var CWA=new _.zf("channelThumbnailWithLinkRenderer");var Owm=new _.zf("channelCreationServiceEndpoint");var vsK=new _.zf("updateChannelPageSettingsEndpoint");var jZ=function(y){this.delegate=y},$o=function(){jZ.apply(this,arguments)};
_.p($o,jZ);_.CM.Object.defineProperties($o.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(y){this.delegate.entityMetadata=y}}});var dI2=function(){$o.apply(this,arguments)};
_.p(dI2,$o);dI2.prototype.getAssociations=function(){return[]};
dI2.prototype.getTypeName=function(){return"channelHandle"};var K4v=new _.zf("webThumbnailDetailsExtensionData");var $yL=new _.zf("commandContext");var L$J=new _.zf("addVideoLinkAction");var zSJ=new _.zf("banAuthorAction");var cPR=new _.zf("createCommentAction");var eSK=new _.zf("createCommentReplyAction");var hSI=new _.zf("createPollAction");var osA=new _.zf("hideIdentityChipAction");var K$K=new _.zf("openUpdateCommentDialogAction");var pgs=new _.zf("pinCommentAction");var iwf=new _.zf("removeCommentAction");var fCE=new _.zf("unpinCommentAction");var n$=new _.zf("updateBackstagePollAction");var TDI=new _.zf("updateCommentVoteAction");var mIR=new _.zf("commentThreadRenderer");var MI2=function(){$o.apply(this,arguments)};
_.p(MI2,$o);MI2.prototype.getAssociations=function(){return[]};
MI2.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var qHI=function(){$o.apply(this,arguments)};
_.p(qHI,$o);qHI.prototype.getAssociations=function(){return[]};
qHI.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.UIz=new _.zf("commentDialogRenderer");var uls=new _.zf("reloadCommentsCommand");var SHr=new _.zf("updateCommentsSettingsEndpoint");var DII=new _.zf("commentViewModel");var lCQ=new _.zf("triStateButtonViewModel");var xIz=new _.zf("voiceReplyContainerViewModel");_.mR=new _.zf("commandExecutorCommand");var Wa=new _.zf("emoji");var k0K=new _.zf("updateCreatorChannelInnertubeCommand");_.sym=new _.zf("appendContinuationItemsAction");_.APJ=new _.zf("changeEngagementPanelVisibilityAction");_.EP=new _.zf("continuationCommand");var YHr=new _.zf("hideReportedCommentAction");var BDK=new _.zf("listMutationCommand");_.Hq=new _.zf("openPopupAction");var JPi=new _.zf("persistSubscriptionsDisplayPreferencesCommand");var G0K;_.RSs=new _.zf("playlistRemoveVideosAction");_.jyR=new _.zf("updatePlaylistAction");_.$Ii=new _.zf("addToPlaylistCommand");_.nsR=new _.zf("endPlaylistCommand");_.HwR=new _.zf("recoverPlaylistCommand");_.Xg6=new _.zf("refreshPlaylistCommand");_.aCK=new _.zf("refreshFormCommand");G0K=new _.zf("openOnePickAddVideoModalCommand");_.iId=new _.zf("reloadContinuationItemsCommand");_.rP6=new _.zf("scrollToEngagementPanelCommand");var bws=new _.zf("selectCountryCommand");var QyQ=new _.zf("showReloadUiCommand");var ZwR=new _.zf("undoFeedbackAction");var y06=new _.zf("updateButtonAction");var Wx6=new _.zf("updateSubscribeButtonAction");var Vb6=new _.zf("updateToggleAction");var wYz=new _.zf("webNativeShareCommand");_.dw=new _.zf("webCommandMetadata");_.Xf=new _.zf("webHandleServiceEndpointExtension");var dPn=new _.zf("webNavigationEndpointData");var tbz=new _.zf("copyLinkCommand");var FxI=new _.zf("playlistVotingRefreshPopupCommand");var EGs=new _.zf("selectChipCommand");var NFQ=new _.zf("setCookieCommand");var IeE=new _.zf("setLocalStorageCommand");var gGm=new _.zf("setPrefStorageEntryCommand");var vGQ;_.PKJ=new _.zf("settingsUpdateCheckboxCommand");_.CKQ=new _.zf("settingsUpdateTextCommand");_.OHE=new _.zf("settingsUpdateOptionsCommand");vGQ=new _.zf("settingsUpdateSwitchCommand");_.dYi=new _.zf("settingsUpdateConnectedAppRendererCommand");var Lxr=new _.zf("updateTextInputFormFieldRendererCommand");var z0r=new _.zf("updateToggleButtonStateCommand");var c0R=new _.zf("updateUrlParamCommand");var e0s=new _.zf("webSubmitFormCommand");var h0z=new _.zf("channelSwitcherPageRenderer"),oGE=new _.zf("updateChannelSwitcherPageAction");_.e3=new _.zf("continuationItemRenderer");_.ax=new _.zf("richItemRenderer");var KxQ=new _.zf("richSectionRenderer");_.pYz=new _.zf("richShelfRenderer");_.iHA=new _.zf("metadataBadgeRenderer");_.feR=new _.zf("multiPageMenuNotificationSectionRenderer");_.TFm=new _.zf("playlistLoopButtonStateRenderer");var mYE=new _.zf("claimLegacyYoutubeChannelEndpoint");var MbQ=new _.zf("getNotificationMenuEndpoint");var qQK=new _.zf("getSearchInVideoCommand");_.UY6=new _.zf("getTranscriptEndpoint");_.q8=new _.zf("signalServiceEndpoint");var uJm=new _.zf("verifyAgeEndpoint");var acR=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(acR,_.fu);acR.prototype.getPath=function(){return _.aX(this,1)};
acR.prototype.getValue=function(){return _.aX(this,2)};var SQi=[0,_.Cl,-1];var DYm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(DYm,_.fu);var XTP=_.Sh(DYm,[0,_.Ov,SQi]);var lef=new _.zf("dismissalEndpoint");var xYR=new _.zf("elementsCommand");_.wL=new _.zf("innertubeCommand");var kFE=new _.zf("multipleInlinePlaybackCommand");var Qlz=new _.zf("loggingDirectives");var sPJ=new _.zf("acknowledgeChannelTouStrikeCommand");var A0K=function(){$o.apply(this,arguments)};
_.p(A0K,$o);A0K.prototype.getAssociations=function(){return[]};
A0K.prototype.getTypeName=function(){return"booleanEntity"};var YQK=function(){$o.apply(this,arguments)};
_.p(YQK,$o);YQK.prototype.getAssociations=function(){return[]};
YQK.prototype.getTypeName=function(){return"stringEntity"};var Ln=new _.zf("entityBatchUpdate");_.BFq=new _.zf("entityUpdateCommand");var J0s=function(){$o.apply(this,arguments)};
_.p(J0s,$o);J0s.prototype.getAssociations=function(){var y=[];this.delegate.alternateChannel&&y.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&y.push.apply(y,_.GC(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&y.push(this.delegate.oneofChannelEntity);return[].concat(_.GC(new Set(y)))};
J0s.prototype.getTypeName=function(){return"fakeChannel"};var R0r=function(){$o.apply(this,arguments)};
_.p(R0r,$o);R0r.prototype.getAssociations=function(){var y=[];this.delegate.entryCollection&&y.push(this.delegate.entryCollection);return[].concat(_.GC(new Set(y)))};
R0r.prototype.getTypeName=function(){return"fakePlaylist"};
var jPs=function(){$o.apply(this,arguments)};
_.p(jPs,$o);jPs.prototype.getAssociations=function(){var y=[];this.delegate.parentPlaylist&&y.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var W=_.N(this.delegate.entries),V=W.next();!V.done;V=W.next())y.push.apply(y,_.GC((new $YK(V.value)).getAssociations()));return[].concat(_.GC(new Set(y)))};
jPs.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var $YK=function(){jZ.apply(this,arguments)};
_.p($YK,jZ);$YK.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);return[].concat(_.GC(new Set(y)))};var nGf=function(){$o.apply(this,arguments)};
_.p(nGf,$o);nGf.prototype.getAssociations=function(){var y=[];this.delegate.descriptionEntity&&y.push(this.delegate.descriptionEntity);this.delegate.creators&&y.push.apply(y,_.GC(this.delegate.creators));this.delegate.theBiggestFan&&y.push(this.delegate.theBiggestFan);return[].concat(_.GC(new Set(y)))};
nGf.prototype.getTypeName=function(){return"fakeVideo"};
var HHR=function(){$o.apply(this,arguments)};
_.p(HHR,$o);HHR.prototype.getAssociations=function(){return[]};
HHR.prototype.getTypeName=function(){return"fakeVideoDescription"};var XY6=new _.zf("fantasyRosterViewModel");var ae6=new _.zf("addFollowUpSurveyCommand");var GFs=new _.zf("getSurveyCommand");var r0J=new _.zf("ratingSurveyOptionRenderer");_.bw=new _.zf("feedbackEndpoint");var bHA=new _.zf("reportHistoryTableCellRenderer"),QPf=new _.zf("reportHistoryTableTextCellRenderer"),ZHR=new _.zf("reportHistoryTableReasonCellRenderer");_.yRI=new _.zf("flagEndpoint");var WFf=new _.zf("getFlowCommand");var V9A=new _.zf("submitFormWithValidationFlowCommand");var wsA=function(){$o.apply(this,arguments)};
_.p(wsA,$o);wsA.prototype.getAssociations=function(){return[]};
wsA.prototype.getTypeName=function(){return"flowStateEntity"};var t96=new _.zf("flowFormState");var FFr=new _.zf("gameCardRenderer");var E$i=new _.zf("accountLinkingStateChangedCommand");var N6E=function(){$o.apply(this,arguments)};
_.p(N6E,$o);N6E.prototype.getAssociations=function(){return[]};
N6E.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var IgI=new _.zf("changeMiniAppPlayStateCommand");var g$f=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(g$f,_.fu);var G6=[1,2,3];var Pys=[0,G6,bCa,_.Qmb,$SR];var Cyz=_.Sh(g$f,Pys),Oos=_.Df(Pys);var v$6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(v$6,_.fu);var dcq=[0,_.I1,_.Cl];var LFr=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(LFr,_.fu);var zER=[0,_.Cl,_.I1,-1];var r1=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(r1,_.fu);var cRR=_.Df([0,1,dcq,_.z7,zER]);var eEr=new _.zf("miniAppScoreChallengeViewModel");var hEf=new _.zf("miniGameCardViewModel");var o$Q=new _.zf("teaserCardViewModel");var KFm=function(){$o.apply(this,arguments)};
_.p(KFm,$o);KFm.prototype.getAssociations=function(){return[]};
KFm.prototype.getTypeName=function(){return"logoEntity"};_.psm=new _.zf("feedbackItemRenderer");var ioi=function(){$o.apply(this,arguments)};
_.p(ioi,$o);ioi.prototype.getAssociations=function(){return[]};
ioi.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.fgz=new _.zf("playerInterstitialRenderer");var T6I=new _.zf("getKidsBlocklistPickerCommand");_.mcm=new _.zf("updateKidsBlacklistEndpoint");_.tD=new _.zf("likeEndpoint");var M9R,qKE,UcA;M9R=new _.zf("addChatItemAction");qKE=new _.zf("removeChatItemAction");UcA=new _.zf("markChatItemAsDeletedAction");_.ubA=new _.zf("setLiveChatCollapsedStateAction");var SKs=function(){$o.apply(this,arguments)};
_.p(SKs,$o);SKs.prototype.getAssociations=function(){return[]};
SKs.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var DcI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(DcI,_.fu);var lgR=_.Sh(DcI,[0,1,_.I1]);var xcR=new _.zf("liveChatEndpoint");var kfE=new _.zf("liveChatItemContextMenuEndpoint");var sgE=new _.zf("liveChatReplayEndpoint");_.ARi=new _.zf("emojiPickerRenderer");var YKK=new _.zf("liveChatAuthorBadgeViewModel");var B66=new _.zf("deleteLiveChatMessageCommand");var JRI=new _.zf("liveChatActionEndpoint");var REA=new _.zf("createLiveChatPollEndpoint");var jg6=new _.zf("manageLiveChatUserEndpoint");var $c2=new _.zf("moderateLiveChatEndpoint");_.n$i=new _.zf("sendLiveChatMessageEndpoint");var Hof=new _.zf("sendLiveChatVoteEndpoint");var Xsr=new _.zf("clearLocationCommand");var agJ=new _.zf("resolveLocationCommand");var GfQ=new _.zf("interactionLoggingCommandMetadata");var rRA=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(rRA,_.fu);var bo6=function(y,W){return _.Tk(y,1,W)};var Qgr=[0,_.P8];var Zo6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Zo6,_.fu);var yqI=function(y,W){return DY(y,1,rRA,W)};Zo6.prototype.JSC$12044_serializeBinary=KhP([0,_.Ov,Qgr]);var zEG={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 Wuz={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"},
VNz={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 Avj={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"};_.Y2L=new _.zf("logFlowLoggingEventCommand");_.JY=new _.zf("loggingContext");var wQm=new _.zf("captionLanguageSelectActionCommand");var tNK=new _.zf("showCaptionLanguageSelectActionCommand");var Fui=new _.zf("dismissDialogEndpoint");var EgR=new _.zf("hideItemSectionVideosByIdCommand");var N9s=new _.zf("showMiniplayerCommand");var IGE=function(){$o.apply(this,arguments)};
_.p(IGE,$o);IGE.prototype.getAssociations=function(){return[]};
IGE.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var ggI=function(){$o.apply(this,arguments)};
_.p(ggI,$o);ggI.prototype.getAssociations=function(){return[]};
ggI.prototype.getTypeName=function(){return"downloadStatusEntity"};var PJi=function(){$o.apply(this,arguments)};
_.p(PJi,$o);PJi.prototype.getAssociations=function(){return[]};
PJi.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var CJA=function(){$o.apply(this,arguments)};
_.p(CJA,$o);CJA.prototype.getAssociations=function(){var y=[];this.delegate.downloadsList&&y.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&y.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&y.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&y.push(this.delegate.refresh);return[].concat(_.GC(new Set(y)))};
CJA.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var OjA=function(){$o.apply(this,arguments)};
_.p(OjA,$o);OjA.prototype.getAssociations=function(){var y=[];this.delegate.refresh&&y.push(this.delegate.refresh);if(this.delegate.downloads)for(var W=_.N(this.delegate.downloads),V=W.next();!V.done;V=W.next())y.push.apply(y,_.GC((new vgE(V.value)).getAssociations()));return[].concat(_.GC(new Set(y)))};
OjA.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var vgE=function(){jZ.apply(this,arguments)};
_.p(vgE,jZ);vgE.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.playlist&&y.push(this.delegate.playlist);this.delegate.videoItem&&y.push(this.delegate.videoItem);this.delegate.playlistItem&&y.push(this.delegate.playlistItem);return[].concat(_.GC(new Set(y)))};var d26=function(){$o.apply(this,arguments)};
_.p(d26,$o);d26.prototype.getAssociations=function(){var y=[];this.delegate.localImageEntities&&y.push.apply(y,_.GC(this.delegate.localImageEntities));return[].concat(_.GC(new Set(y)))};
d26.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var LuI=function(){$o.apply(this,arguments)};
_.p(LuI,$o);LuI.prototype.getAssociations=function(){var y=[];this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.localImageEntities&&y.push.apply(y,_.GC(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.GC(new Set(y)))};
LuI.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var z$f=function(){$o.apply(this,arguments)};
_.p(z$f,$o);z$f.prototype.getAssociations=function(){return[]};
z$f.prototype.getTypeName=function(){return"offlineabilityEntity"};var cq2=function(){$o.apply(this,arguments)};
_.p(cq2,$o);cq2.prototype.getAssociations=function(){var y=[];this.delegate.fakeChildren&&y.push.apply(y,_.GC(this.delegate.fakeChildren));return[].concat(_.GC(new Set(y)))};
cq2.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var e$2=function(){$o.apply(this,arguments)};
_.p(e$2,$o);e$2.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&y.push(this.delegate.offlineVideoPolicy);return[].concat(_.GC(new Set(y)))};
e$2.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var h$f=function(){$o.apply(this,arguments)};
_.p(h$f,$o);h$f.prototype.getAssociations=function(){return[]};
h$f.prototype.getTypeName=function(){return"continuationTokenEntity"};var ogJ=function(){$o.apply(this,arguments)};
_.p(ogJ,$o);ogJ.prototype.getAssociations=function(){var y=[];this.delegate.channelOwner&&y.push(this.delegate.channelOwner);this.delegate.videos&&y.push.apply(y,_.GC(this.delegate.videos));this.delegate.collaboratorChannels&&y.push.apply(y,_.GC(this.delegate.collaboratorChannels));this.delegate.downloadState&&y.push(this.delegate.downloadState);this.delegate.refresh&&y.push(this.delegate.refresh);return[].concat(_.GC(new Set(y)))};
ogJ.prototype.getTypeName=function(){return"mainPlaylistEntity"};var KuK=function(){$o.apply(this,arguments)};
_.p(KuK,$o);KuK.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.channelContributor&&y.push(this.delegate.channelContributor);return[].concat(_.GC(new Set(y)))};
KuK.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var pQK=function(){jZ.apply(this,arguments)};
_.p(pQK,jZ);pQK.prototype.getAssociations=function(){var y=[];this.delegate.recommendedVideoMetadata&&y.push.apply(y,_.GC((new ijs(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.GC(new Set(y)))};
var ijs=function(){jZ.apply(this,arguments)};
_.p(ijs,jZ);ijs.prototype.getAssociations=function(){var y=[];this.delegate.localImageEntities&&y.push.apply(y,_.GC(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.GC(new Set(y)))};var fGf=function(){jZ.apply(this,arguments)};
_.p(fGf,jZ);fGf.prototype.getAssociations=function(){var y=[];this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);return[].concat(_.GC(new Set(y)))};var T9E=function(){$o.apply(this,arguments)};
_.p(T9E,$o);T9E.prototype.getAssociations=function(){var y=[];this.delegate.owner&&y.push(this.delegate.owner);this.delegate.downloadState&&y.push(this.delegate.downloadState);this.delegate.userState&&y.push.apply(y,_.GC((new fGf(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&y.push.apply(y,_.GC((new pQK(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.GC(new Set(y)))};
T9E.prototype.getTypeName=function(){return"mainVideoEntity"};var m2r=function(){$o.apply(this,arguments)};
_.p(m2r,$o);m2r.prototype.getAssociations=function(){var y=[];this.delegate.userChannelDetails&&y.push(this.delegate.userChannelDetails);return[].concat(_.GC(new Set(y)))};
m2r.prototype.getTypeName=function(){return"ytMainChannelEntity"};var MNr=function(){$o.apply(this,arguments)};
_.p(MNr,$o);MNr.prototype.getAssociations=function(){var y=[];this.delegate.channelOwner&&y.push(this.delegate.channelOwner);this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&y.push.apply(y,_.GC(this.delegate.localImageEntities));this.delegate.downloadStatus&&y.push(this.delegate.downloadStatus);return[].concat(_.GC(new Set(y)))};
MNr.prototype.getTypeName=function(){return"ytMainVideoEntity"};var O3b=new _.zf("downloadsPageSmartDownloadsOptInBannerParams");var zgP=new _.zf("downloadsPageUpsellBannerParams");var qer=function(){$o.apply(this,arguments)};
_.p(qer,$o);qer.prototype.getAssociations=function(){return[]};
qer.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var U2r=function(){$o.apply(this,arguments)};
_.p(U2r,$o);U2r.prototype.getAssociations=function(){return[]};
U2r.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var uI6=function(){$o.apply(this,arguments)};
_.p(uI6,$o);uI6.prototype.getAssociations=function(){return[]};
uI6.prototype.getTypeName=function(){return"macroMarkerEntity"};var SeI=function(){$o.apply(this,arguments)};
_.p(SeI,$o);SeI.prototype.getAssociations=function(){return[]};
SeI.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var D2z=function(){$o.apply(this,arguments)};
_.p(D2z,$o);D2z.prototype.getAssociations=function(){return[]};
D2z.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var lGE=function(){$o.apply(this,arguments)};
_.p(lGE,$o);lGE.prototype.getAssociations=function(){return[]};
lGE.prototype.getTypeName=function(){return"playerStateEntity"};var x2E=function(){$o.apply(this,arguments)};
_.p(x2E,$o);x2E.prototype.getAssociations=function(){return[]};
x2E.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var knm=function(){$o.apply(this,arguments)};
_.p(knm,$o);knm.prototype.getAssociations=function(){return[]};
knm.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var s4q=function(){$o.apply(this,arguments)};
_.p(s4q,$o);s4q.prototype.getAssociations=function(){return[]};
s4q.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.bI=new _.zf("dislikeButtonViewModel");_.QJ=new _.zf("likeButtonViewModel");var AqI=new _.zf("videoSummaryContentViewModel");var YeA=new _.zf("videoSummaryParagraphViewModel");var B9R=new _.zf("changeTimelyActionVisibilityCommand");var Jqz=new _.zf("hideEngagementPanelEndpoint");var R$s=new _.zf("refreshPanelEndpoint");var j4z=new _.zf("scrollToSectionEndpoint");var $2A=new _.zf("seekToVideoTimestampCommand");_.rx=new _.zf("showEngagementPanelEndpoint");var ng6=new _.zf("showTransientPlayerScrimOverlayCommand");var HjA=new _.zf("toggleEngagementPanelCommand");_.XQ2=new _.zf("createBroadcastCommand");var aGI=new _.zf("metadataUpdateCommand");var GnE=function(){$o.apply(this,arguments)};
_.p(GnE,$o);GnE.prototype.getAssociations=function(){return[]};
GnE.prototype.getTypeName=function(){return"featuredProductsEntity"};var rqz=function(){$o.apply(this,arguments)};
_.p(rqz,$o);rqz.prototype.getAssociations=function(){return[]};
rqz.prototype.getTypeName=function(){return"pinnedProductEntity"};var bjm=function(){$o.apply(this,arguments)};
_.p(bjm,$o);bjm.prototype.getAssociations=function(){return[]};
bjm.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Q4m=new _.zf("merchandiseShelfRenderer");var Zj6=new _.zf("gridMovieRenderer");_.yBK=new _.zf("movieRenderer");var WBK=function(){$o.apply(this,arguments)};
_.p(WBK,$o);WBK.prototype.getAssociations=function(){var y=[];this.delegate.trackDownloadMetadatas&&y.push.apply(y,_.GC(this.delegate.trackDownloadMetadatas));return[].concat(_.GC(new Set(y)))};
WBK.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var VxR=function(){$o.apply(this,arguments)};
_.p(VxR,$o);
VxR.prototype.getAssociations=function(){var y=[];this.delegate.downloadedTracks&&y.push.apply(y,_.GC(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&y.push.apply(y,_.GC(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&y.push.apply(y,_.GC(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&y.push.apply(y,_.GC(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&y.push.apply(y,_.GC(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
y.push.apply(y,_.GC(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&y.push.apply(y,_.GC(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&y.push.apply(y,_.GC(this.delegate.metadataOnlyTracks));return[].concat(_.GC(new Set(y)))};
VxR.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var wwf=function(){$o.apply(this,arguments)};
_.p(wwf,$o);wwf.prototype.getAssociations=function(){var y=[];this.delegate.trackDownloadMetadatas&&y.push.apply(y,_.GC(this.delegate.trackDownloadMetadatas));return[].concat(_.GC(new Set(y)))};
wwf.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var txK=function(){$o.apply(this,arguments)};
_.p(txK,$o);txK.prototype.getAssociations=function(){var y=[];this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.localImageEntities&&y.push.apply(y,_.GC(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.GC(new Set(y)))};
txK.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var FBQ=function(){$o.apply(this,arguments)};
_.p(FBQ,$o);
FBQ.prototype.getAssociations=function(){var y=[];this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&y.push.apply(y,_.GC(this.delegate.primaryArtists));this.delegate.details&&y.push(this.delegate.details);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.tracks&&y.push.apply(y,_.GC(this.delegate.tracks));this.delegate.share&&y.push(this.delegate.share);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.refresh&&
y.push(this.delegate.refresh);return[].concat(_.GC(new Set(y)))};
FBQ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var EfE=function(){$o.apply(this,arguments)};
_.p(EfE,$o);EfE.prototype.getAssociations=function(){var y=[];this.delegate.albumRelease&&y.push(this.delegate.albumRelease);this.delegate.tracks&&y.push.apply(y,_.GC(this.delegate.tracks));return[].concat(_.GC(new Set(y)))};
EfE.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Nos=function(){$o.apply(this,arguments)};
_.p(Nos,$o);Nos.prototype.getAssociations=function(){var y=[];this.delegate.albumRelease&&y.push(this.delegate.albumRelease);return[].concat(_.GC(new Set(y)))};
Nos.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var I4f=function(){$o.apply(this,arguments)};
_.p(I4f,$o);I4f.prototype.getAssociations=function(){var y=[];this.delegate.details&&y.push(this.delegate.details);this.delegate.userDetails&&y.push(this.delegate.userDetails);return[].concat(_.GC(new Set(y)))};
I4f.prototype.getTypeName=function(){return"musicArtist"};
var gfz=function(){$o.apply(this,arguments)};
_.p(gfz,$o);gfz.prototype.getAssociations=function(){var y=[];this.delegate.parentArtist&&y.push(this.delegate.parentArtist);return[].concat(_.GC(new Set(y)))};
gfz.prototype.getTypeName=function(){return"musicArtistDetail"};
var Pdz=function(){$o.apply(this,arguments)};
_.p(Pdz,$o);Pdz.prototype.getAssociations=function(){var y=[];this.delegate.parentArtist&&y.push(this.delegate.parentArtist);return[].concat(_.GC(new Set(y)))};
Pdz.prototype.getTypeName=function(){return"musicArtistUserDetail"};var CdK=function(){$o.apply(this,arguments)};
_.p(CdK,$o);CdK.prototype.getAssociations=function(){return[]};
CdK.prototype.getTypeName=function(){return"musicLibraryEdit"};var O8i=function(){$o.apply(this,arguments)};
_.p(O8i,$o);O8i.prototype.getAssociations=function(){return[]};
O8i.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var vfq=function(){$o.apply(this,arguments)};
_.p(vfq,$o);
vfq.prototype.getAssociations=function(){var y=[];this.delegate.tracks&&y.push.apply(y,_.GC(this.delegate.tracks));this.delegate.refresh&&y.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&y.push(this.delegate.details);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&y.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.entryCollection&&
y.push(this.delegate.entryCollection);this.delegate.share&&y.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&y.push.apply(y,_.GC((new dfJ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.GC(new Set(y)))};
vfq.prototype.getTypeName=function(){return"musicPlaylist"};
var dfJ=function(){jZ.apply(this,arguments)};
_.p(dfJ,jZ);dfJ.prototype.getAssociations=function(){var y=[];this.delegate.creatorEntity&&y.push(this.delegate.creatorEntity);return[].concat(_.GC(new Set(y)))};var LBQ=function(){$o.apply(this,arguments)};
_.p(LBQ,$o);LBQ.prototype.getAssociations=function(){return[]};
LBQ.prototype.getTypeName=function(){return"musicShare"};var zKR=function(){$o.apply(this,arguments)};
_.p(zKR,$o);
zKR.prototype.getAssociations=function(){var y=[];this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&y.push.apply(y,_.GC(this.delegate.artists));this.delegate.audioModeVersion&&y.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&y.push(this.delegate.videoModeVersion);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.details&&y.push(this.delegate.details);this.delegate.albumRelease&&y.push(this.delegate.albumRelease);this.delegate.share&&
y.push(this.delegate.share);this.delegate.libraryEdit&&y.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);this.delegate.lyrics&&y.push(this.delegate.lyrics);return[].concat(_.GC(new Set(y)))};
zKR.prototype.getTypeName=function(){return"musicTrack"};
var cBr=function(){$o.apply(this,arguments)};
_.p(cBr,$o);cBr.prototype.getAssociations=function(){var y=[];this.delegate.parentTrack&&y.push(this.delegate.parentTrack);return[].concat(_.GC(new Set(y)))};
cBr.prototype.getTypeName=function(){return"musicTrackDetail"};
var eKi=function(){$o.apply(this,arguments)};
_.p(eKi,$o);eKi.prototype.getAssociations=function(){var y=[];this.delegate.parentTrack&&y.push(this.delegate.parentTrack);return[].concat(_.GC(new Set(y)))};
eKi.prototype.getTypeName=function(){return"musicTrackUserDetail"};var LV=new _.zf("musicResponsiveListItemRenderer");var MCG=new _.zf("addToPlaylistEndpoint");var hKm=new _.zf("captionPickerEndpoint");var off=new _.zf("suggestStats");var KBi=new _.zf("backstageImageUploadEndpoint");var pws=new _.zf("createBackstagePostDialogEndpoint");_.i8Q=new _.zf("createCommentReplyDialogEndpoint");_.f4J=new _.zf("updateCommentDialogEndpoint");_.ToA=new _.zf("updateCommentReplyDialogEndpoint");var mff=new _.zf("menuEndpoint");var C$z=new _.zf("modalEndpoint");var Mxf=new _.zf("playlistEditorEndpoint");var qJJ=new _.zf("copyTextEndpoint");var Ufz,ugi;Ufz=new _.zf("shareEndpoint");ugi=new _.zf("shareEntityEndpoint");_.SJz=new _.zf("shareEntityServiceEndpoint");_.AIb=new _.zf("userFeedbackEndpoint");_.Iw=new _.zf("watchEndpoint");var HKv=new _.zf("watchPlaylistEndpoint");var Dff=new _.zf("addUpcomingEventReminderEndpoint");_.Zs=new _.zf("getCommentsFromInboxCommand");var l4K=new _.zf("notificationOptOutEndpoint");var xff=new _.zf("recordNotificationInteractionsEndpoint");var kmK=new _.zf("removeUpcomingEventReminderEndpoint");var Thv=new _.zf("getDownloadActionCommand");_.saA=new _.zf("offlineOrchestrationActionCommand");var ABR=function(){$o.apply(this,arguments)};
_.p(ABR,$o);ABR.prototype.getAssociations=function(){return[]};
ABR.prototype.getTypeName=function(){return"captionTrack"};var YJR=function(){$o.apply(this,arguments)};
_.p(YJR,$o);YJR.prototype.getAssociations=function(){return[]};
YJR.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var Boq=function(){$o.apply(this,arguments)};
_.p(Boq,$o);Boq.prototype.getAssociations=function(){return[]};
Boq.prototype.getTypeName=function(){return"offlineVideoPolicy"};var JBq=function(){$o.apply(this,arguments)};
_.p(JBq,$o);JBq.prototype.getAssociations=function(){return[]};
JBq.prototype.getTypeName=function(){return"offlineVideoStreams"};var RKE=function(){$o.apply(this,arguments)};
_.p(RKE,$o);RKE.prototype.getAssociations=function(){var y=[];this.delegate.transfer&&y.push(this.delegate.transfer);this.delegate.adsPlaybackData&&y.push.apply(y,_.GC(this.delegate.adsPlaybackData));this.delegate.drmLicense&&y.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&y.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.GC(new Set(y)))};
RKE.prototype.getTypeName=function(){return"playbackData"};var jaI=function(){$o.apply(this,arguments)};
_.p(jaI,$o);jaI.prototype.getAssociations=function(){return[]};
jaI.prototype.getTypeName=function(){return"refresh"};var $fA=function(){$o.apply(this,arguments)};
_.p($fA,$o);$fA.prototype.getAssociations=function(){var y=[];this.delegate.offlineVideoStreams&&y.push.apply(y,_.GC(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&y.push.apply(y,_.GC(this.delegate.captionTrack));return[].concat(_.GC(new Set(y)))};
$fA.prototype.getTypeName=function(){return"transfer"};var nf2=function(){$o.apply(this,arguments)};
_.p(nf2,$o);nf2.prototype.getAssociations=function(){return[]};
nf2.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var H8m=new _.zf("showMoreDrawerCommand");var XwQ=new _.zf("updateEngagementPanelContentCommand");var a4K=new _.zf("getPdgBuyFlowCommand");var GmK=new _.zf("liveChatPurchaseMessageEndpoint");var rBm=new _.zf("openSuperStickerBuyFlowCommand");var b8R=new _.zf("updatePdgFeatureEnablementCommand");var Qa2=function(){$o.apply(this,arguments)};
_.p(Qa2,$o);Qa2.prototype.getAssociations=function(){return[]};
Qa2.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Z8I=function(){$o.apply(this,arguments)};
_.p(Z8I,$o);Z8I.prototype.getAssociations=function(){return[]};
Z8I.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.yr6=new _.zf("pdgCommentChipRenderer");_.WIi=new _.zf("permissionRoleBottomBarRenderer");_.VZA=new _.zf("updatePermissionRoleCommand");var wq2=new _.zf("prefetchWatchCommand");var tZi=new _.zf("updatePlayerErrorMessageCommand");var eWz=new _.zf("toggleCaptionsVisibilityCommand");_.FII=new _.zf("quickActionsViewModel");var Eor=new _.zf("playerResponse");var N1R=new _.zf("playlistRenderer");_.Ism=new _.zf("playlistVideoListRenderer");_.yB=new _.zf("playlistEditEndpoint");var go6=new _.zf("createImagePollCommand");var PIs=new _.zf("createQuizCommand");var CIz=new _.zf("quizRenderer");var O$r=new _.zf("uploadedVideoRenderer");var voK=new _.zf("decorateMessageEndpoint");var dnf=new _.zf("lpOfferCardOptionViewModel");var LIs=new _.zf("sfvAudioItemPlaybackCommand");var zIr=function(){$o.apply(this,arguments)};
_.p(zIr,$o);zIr.prototype.getAssociations=function(){return[]};
zIr.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Wh=new _.zf("reelNonVideoContentEndpoint");_.Jx=new _.zf("reelWatchEndpoint");_.VB=new _.zf("reelItemRenderer");_.cr6=new _.zf("reelMetapanelViewModel");_.eIq=new _.zf("reelNonVideoContentRenderer");_.hI2=new _.zf("reelPlayerOverlayRenderer");var oo2=new _.zf("shortsLockupViewModel");var KII=new _.zf("sponsorButtonViewModel");var pqq=new _.zf("reelItemWatchResponse");var i$f=new _.zf("textBadgeRenderer");_.wz=new _.zf("buttonRenderer");_.tg=new _.zf("toggleButtonRenderer");var tkt=new _.zf("switchButtonViewModel");_.fsE=new _.zf("confirmDialogRenderer");var T1z;T1z=new _.zf("menuRenderer");_.mn6=new _.zf("menuFlexibleItemRenderer");var MZI=new _.zf("pollRenderer");_.qVz=new _.zf("backgroundPromoRenderer");var ufi;_.Un6=new _.zf("chipCloudRenderer");ufi=new _.zf("chipCloudChipRenderer");var SVI=new _.zf("dropdownRenderer");var Dni=new _.zf("gridVideoRenderer");_.lsq=new _.zf("itemSectionRenderer");_.xnK=new _.zf("messageRenderer");var k6E=new _.zf("sortFilterHeaderRenderer");_.FB=new _.zf("videoRenderer");var sxm=new _.zf("resolveUrlCommandMetadata");var ArR=function(){$o.apply(this,arguments)};
_.p(ArR,$o);ArR.prototype.getAssociations=function(){return[]};
ArR.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.YVf=new _.zf("getAnswerCommand");_.Ax=new _.zf("searchEndpoint");var B1J=new _.zf("genAiRichTextViewModel");var fMt=new _.zf("overviewAnswerViewModel");var JrE=new _.zf("addToPlaylistServiceEndpoint");var RIi=new _.zf("clearSearchHistoryEndpoint");var jxf=new _.zf("clearWatchHistoryEndpoint");var $nR=new _.zf("webSerializedServiceEndpointExtension");_.nom=new _.zf("createCommentEndpoint");var H$6=new _.zf("createCommentReplyEndpoint");var XqJ=new _.zf("performCommentActionEndpoint");var asz=new _.zf("updateCommentEndpoint");var G6J=new _.zf("updateCommentReplyEndpoint");_.E8=new _.zf("createPlaylistServiceEndpoint");var rrz=new _.zf("deletePlaylistEndpoint");var b$s=new _.zf("deleteVideoEndpoint");var m3z=new _.zf("getReportFormEndpoint");var Qxi=new _.zf("modifyChannelNotificationPreferenceEndpoint");var jnu;_.sP=new _.zf("offlinePlaylistEndpoint");jnu={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 $Qn;_.xn=new _.zf("offlineVideoEndpoint");$Qn={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 Z$A=new _.zf("pingingEndpoint");_.ygE=new _.zf("selectActiveIdentityEndpoint");var WZi=new _.zf("setSettingEndpoint");var taR=new _.zf("undoFeedbackEndpoint");var Vnr=new _.zf("unsubscribeEndpoint");_.whQ=new _.zf("updatedMetadataEndpoint");var tnm=function(){$o.apply(this,arguments)};
_.p(tnm,$o);tnm.prototype.getAssociations=function(){return[]};
tnm.prototype.getTypeName=function(){return"settingEntity"};_.FZI=new _.zf("updateLocalAppSettingCommand");var E06=new _.zf("saveImageToDeviceEndpoint");var Nzm=new _.zf("shareImageCommand");var INf=new _.zf("sharingProviderDataCommand");var g06=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(g06,_.fu);var PT2=[0,_.Cl,-1];g06.prototype.JSC$12245_serializeBinary=KhP(PT2);var CTE=_.Df(PT2);var zYA=new _.zf("userMentionSuggestionRenderer");var cSJ=new _.zf("liveChatTunnelCommand");var eYr=new _.zf("showSponsorshipsGiftOfferDialogCommand");var hYz=new _.zf("sponsorshipsScrollableShelfViewModel");var oKr=new _.zf("updateUpcomingEventReminderButtonStateCommand");var KPE=new _.zf("upcomingEventReminderButtonStateRenderer");var pPK=new _.zf("subscribeEndpoint");var icm=new _.zf("registerTasksCommand");var fkE=new _.zf("hideSnackbarCommand");var TdK=new _.zf("showDialogCommand");_.Jn=new _.zf("showSheetCommand");var miI=new _.zf("showSnackbarCommand");var MLR=function(){$o.apply(this,arguments)};
_.p(MLR,$o);MLR.prototype.getAssociations=function(){return[]};
MLR.prototype.getTypeName=function(){return"chipEntity"};var qAq=function(){$o.apply(this,arguments)};
_.p(qAq,$o);qAq.prototype.getAssociations=function(){return[]};
qAq.prototype.getTypeName=function(){return"dismissState"};_.EZ=new _.zf("avatarViewModel");var UiE=new _.zf("badgeViewModel");_.H5=new _.zf("buttonViewModel");_.Nx=new _.zf("chipViewModel");var dpj=new _.zf("collectionThumbnailViewModel");var uSq=new _.zf("contentPreviewImageViewModel");var SAI=new _.zf("decoratedAvatarViewModel");var XnR=new _.zf("downloadButtonViewModel");_.gb4=new _.zf("engagementBarViewModel");_.Di2=new _.zf("imageBannerViewModel");var lkJ=new _.zf("lockupContentMetadataRowExtension");var xii=new _.zf("lockupMetadataViewModel");_.kqi=new _.zf("lockupViewModel");var sbm=new _.zf("avatarStackViewModel");_.AS2=new _.zf("contentMetadataViewModel");var YAI=function(){$o.apply(this,arguments)};
_.p(YAI,$o);YAI.prototype.getAssociations=function(){return[]};
YAI.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Bdq=new _.zf("pageHeaderViewModel");var JSm=new _.zf("snackbarViewModel");var RYE=new _.zf("thumbnailHoverOverlayToggleActionsViewModel");_.aJ=new _.zf("toggleButtonViewModel");var jbJ=function(){$o.apply(this,arguments)};
_.p(jbJ,$o);jbJ.prototype.getAssociations=function(){return[]};
jbJ.prototype.getTypeName=function(){return"votingEntity"};_.PDa=new _.zf("votingViewModel");var $i2=new _.zf("sectionHeaderViewModel");var nKr=new _.zf("notifyDropdownOptionSelectedCommand");var Dvv=new _.zf("listViewModel");_.RJ=new _.zf("listItemViewModel");var Hcq=new _.zf("dialogHeaderViewModel");var XPA=function(){$o.apply(this,arguments)};
_.p(XPA,$o);XPA.prototype.getAssociations=function(){return[]};
XPA.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var akm=function(){$o.apply(this,arguments)};
_.p(akm,$o);akm.prototype.getAssociations=function(){return[]};
akm.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Gqi=function(){$o.apply(this,arguments)};
_.p(Gqi,$o);Gqi.prototype.getAssociations=function(){return[]};
Gqi.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.rS6=new _.zf("transcriptSubmitCaptionCorrectionCommand");var bcf=function(){$o.apply(this,arguments)};
_.p(bcf,$o);bcf.prototype.getAssociations=function(){return[]};
bcf.prototype.getTypeName=function(){return"buttonEntity"};var ZRn=new _.zf("unpluggedStringRunImage");var QbE=new _.zf("tabViewModel");var Zcm=new _.zf("tabbedViewModel");var yZ6=function(){$o.apply(this,arguments)};
_.p(yZ6,$o);yZ6.prototype.getAssociations=function(){return[]};
yZ6.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.WKE=new _.zf("updateDescriptionAction");var Vtr=new _.zf("updateToggleButtonTextAction");_.wB2=new _.zf("autoplaySwitchButtonRenderer");var ZE;_.ttE=new _.zf("multiMarkersPlayerBarRenderer");ZE=new _.zf("chapterRenderer");var FKs=new _.zf("heatMarkerRenderer");var zBd=new _.zf("heatmapRenderer");var Epi=new _.zf("smartSkipPlayerScrimOverlayRenderer");var N0f=new _.zf("timedMarkerDecorationRenderer");var ajb=new _.zf("postWebToNativeMessageCommand");var I0Q=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(I0Q,_.fu);I0Q.prototype.getMethodName=function(){return _.aX(this,1)};var gpE=_.Sh(I0Q,[0,_.Cl,-2]);var Pks=new _.zf("whitelistEditEndpoint");var Ck2=new _.zf("clearUrlParamCommand");var Ohm=new _.zf("commerceActionCommand");_.vpK=new _.zf("getPaymentInstrumentsParamsCommand");var dCs=new _.zf("getPaymentsClientTokenCommand");var LKQ=new _.zf("googlePaymentBillingCommand");var zjI=new _.zf("googlePaymentPurchaseManagerCommand");_.cZf=new _.zf("logGtmCommand");var ejE=new _.zf("updateCardItemOnClickCommand");_.hjq=new _.zf("ypcPauseSubscriptionCommand");_.opQ=new _.zf("ypcResumeSubscriptionCommand");var KKq=function(){$o.apply(this,arguments)};
_.p(KKq,$o);KKq.prototype.getAssociations=function(){return[]};
KKq.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var pB2=function(){$o.apply(this,arguments)};
_.p(pB2,$o);pB2.prototype.getAssociations=function(){return[]};
pB2.prototype.getTypeName=function(){return"commerceCartListEntity"};var ihs=function(){$o.apply(this,arguments)};
_.p(ihs,$o);ihs.prototype.getAssociations=function(){return[]};
ihs.prototype.getTypeName=function(){return"iconBadgeEntity"};var f0i=function(){$o.apply(this,arguments)};
_.p(f0i,$o);f0i.prototype.getAssociations=function(){return[]};
f0i.prototype.getTypeName=function(){return"pdpStateEntity"};var T0Q=function(){$o.apply(this,arguments)};
_.p(T0Q,$o);T0Q.prototype.getAssociations=function(){return[]};
T0Q.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var YCz=new _.zf("ypcOffersEndpoint");var mCr=new _.zf("cardItemRenderer"),MtI=new _.zf("cardItemTextRenderer");var qmK=new _.zf("commerceCartItemQuantityPickerRenderer");var UCq=new _.zf("linkCardRenderer");var RqP=new _.zf("quantityIncrementerButtonViewModel");var uVm=new _.zf("quantityIncrementerViewModel");var Smi=new _.zf("themedImageViewModel");_.DC6=new _.zf("ypcCancelRecurrenceEndpoint");var l06=new _.zf("ypcCompleteTransactionEndpoint");_.xC2=new _.zf("ypcGetCartEndpoint");_.Kv=new _.zf("ypcGetOffersEndpoint");_.Ii=new _.zf("ypcHandleTransactionEndpoint");var k5z=new _.zf("ypcLogWalletAnalyticDataEndpoint");_.sYQ=new _.zf("ypcRedeemCodeEndpoint");var AZz=new _.zf("ypcUpdateFopEndpoint");p$(K$(1),hr(4));Ssy((new MessageChannel).port2);var Yms=function(){this.register=new Map},eEa=function(y,W,V){y=y+"_"+W;
gz.register.has(y)?V=gz.register.get(y):(V=V(),gz.register.set(y,V));return V},B0K=function(y){y=_.N(y.register.values());
for(var W=y.next();!W.done;W=y.next())_.DE(W.value,"ABORTED")};
Yms.prototype.clear=function(){B0K(this);this.register.clear()};
var gz=new Yms;var ZHG=Date.now().toString();var WFL,JZm=_.Vj.ytLoggingDocDocumentNonce_;JZm||(JZm=$y(16),_.dE("ytLoggingDocDocumentNonce_",JZm));WFL=JZm;var g$L={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 RjQ;RjQ=1;_.nM=function(y){this.veData=y};
_.nD=function(y){return new _.nM({trackingParams:y})};
_.ad=function(y,W,V,w,t,F){var I=RjQ++;return new _.nM({veType:y,veCounter:I,elementIndex:V,dataElement:W,youtubeData:w,jspbYoutubeData:t,loggingDirectives:F})};
_.E=_.nM.prototype;
_.E.getAsJson=function(){var y={};this.veData.trackingParams!==void 0?y.trackingParams=this.veData.trackingParams:(y.veType=this.veData.veType,this.veData.veCounter!==void 0&&(y.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(y.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(y.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(y.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(y.isCounterfactual=!0);
return y};
_.E.getAsJspb=function(){var y=new WJf;this.veData.trackingParams!==void 0?y.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.y_(y,2,this.veData.veType),this.veData.veCounter!==void 0&&_.y_(y,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.y_(y,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Tk(y,5,!0));if(this.veData.dataElement!==void 0){var W=this.veData.dataElement.getAsJspb();_.sx(y,7,W)}this.veData.youtubeData!==void 0&&_.sx(y,8,this.veData.jspbYoutubeData);
return y};
_.E.toString=function(){return JSON.stringify(this.getAsJson())};
_.E.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.E.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.dE("yt_logging_screen.getRootVeType",E$b);_.dE("yt_logging_screen.getCurrentCsn",_.Xn);_.dE("yt_logging_screen.getCttAuthInfo",a2);_.dE("yt_logging_screen.setCurrentScreen",_.Gy);var jYI=function(){this.events=new Map},$CA=function(y){var W=[];
y=_.N(y.events.values());for(var V=y.next();!V.done;V=y.next())W.push(V.value);return W};
jYI.prototype.clear=function(){this.events.clear()};var HhE=function(){this.logTransport=new npJ;this.loggedEventRegister=new jYI;this.unloggedEventRegister=new jYI;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12302_flushTimer=new _.cf(this.flushInterval);this.JSC$12302_flushTimer.listen("tick",this.flush,!1,this)};
HhE.prototype.flush=function(){if(this.eventsCount){var y={loggedEvents:$CA(this.loggedEventRegister),unloggedEvents:$CA(this.unloggedEventRegister)};if(_.e("export_player_version_to_ytconfig")){var W;(W=_.yC("PLAYER_CLIENT_VERSION"))?(W=W.split("-")[0].replace(/\./g,""),W=isNaN(Number(W))?"0":W):W="";var V=_.yC("PLAYER_CLIENT_VERSION");if(V){V=V.split("-");var w="";V.length>1&&(w=V[V.length-1]);V=QPL(w.startsWith("canary_experiment")?"canary":w.startsWith("canary_control")?"control":"none")}else V=
"CLIENT_CANARY_STATE_UNKNOWN";y.dimensions={playerClientVersion:W,playerCanaryState:V}}this.logTransport.flush(y);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12302_flushTimer.enabled&&this.JSC$12302_flushTimer.stop()}};
var XBE=function(y){Ph==null&&(Ph=new HhE);var W=Ph;var V=W.loggedEventRegister;y.dimensions=y.dimensions||{};y.dimensions.csn=_.Xn()||"";var w=OoR(y.dimensions).join(";");if(y.records!=null)if(V.events.has(w)){var t;(t=V.events.get(w).records)==null||t.push.apply(t,_.GC(y.records))}else V.events.set(w,y);W.JSC$12302_flushTimer.enabled||W.JSC$12302_flushTimer.start();W.eventsCount++;W.eventsCount>=100&&W.flush()};var npJ=function(){};
npJ.prototype.flush=function(y,W){_.e("enable_client_sli_logging")&&_.Hp("sliEventBatch",y,{sendIsolatedPayload:!!W})};var Ph;var G56;G56=function(y){var W=a0E;y=y===void 0?{}:y;W=W.name;var V=cRG("SUCCESS");XBE({dimensions:y,records:[{name:W,state:"SLI_STATE_END",status:V}]})};
_.hEL=function(y,W,V,w){this.name=y;this.sliId=W;this.timeoutMs=V;this.statusOnTimeout=w;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.hEL.prototype.getId=function(){return this.sliId};
_.S3=function(y,W){W=W===void 0?{}:W;y.ongoing||(y.ongoing=!0,y.dimensions=W,y.logSliId=uRm(),XBE({dimensions:y.dimensions,records:[{name:y.name,state:"SLI_STATE_START",sliId:y.logSliId}]}),y.timeoutMs>0&&(y.timeoutHandle=setTimeout(function(){_.DE(y,y.statusOnTimeout)},y.timeoutMs)))};
_.DE=function(y,W){y.ongoing&&(y.timeoutMs>0&&clearTimeout(y.timeoutHandle),y.ongoing=!1,W={dimensions:y.dimensions,records:[{name:y.name,status:cRG(W),state:"SLI_STATE_END",sliId:y.logSliId}]},gz.register.delete(y.name+"_"+y.sliId),XBE(W))};var a0E=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var rZ6=function(){$o.apply(this,arguments)};
_.p(rZ6,$o);rZ6.prototype.getAssociations=function(){return[]};
rZ6.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Yij=new _.zf("highlightTextDecoratorColorMapExtension");var sNy=new _.zf("styleRunColorMapExtension");var mcu=_.CF(["data-"]),Ucv={};var SKR={};var C3=function(y){this.wrappedPromise_=y===void 0?null:y;this.state_=0;this.JSC$12334_value_=null};
C3.prototype.then=function(y,W,V){return this.wrappedPromise_?this.wrappedPromise_.then(y,W,V):this.state_===1&&y?(y=y.call(V,this.JSC$12334_value_))&&typeof y.then==="function"?y:_.O8(y):this.state_===2&&W?(y=W.call(V,this.JSC$12334_value_))&&typeof y.then==="function"?y:_.bhI(y):this};
C3.prototype.getValue=function(){return this.JSC$12334_value_};
C3.prototype.isRejected=function(){return this.state_==2};
rXs(C3);_.bhI=function(y){var W=new C3;y=y===void 0?null:y;W.state_=2;W.JSC$12334_value_=y===void 0?null:y;return W};
_.O8=function(y){var W=new C3;y=y===void 0?null:y;W.state_=1;W.JSC$12334_value_=y===void 0?null:y;return W};var Xsa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var QYi=["load","abort","error"],vh=function(y,W,V){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12354_maxAspectRatio_=y;this.disableAnimation_=W===void 0?!1:W;this.disableExifRotation_=V===void 0?!1:V;this.JSC$12354_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12354_reject_=this.resolve_=null};
vh.prototype.transform=function(y){var W=this;this.mime_=y.type;CH(bOs(y),this.dataUrlRead_,this.readError_,this);CH(rxJ(y.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(V,w){W.resolve_=V;W.JSC$12354_reject_=w})};
vh.prototype.dataUrlRead_=function(y){this.dataUrl_=y;this.angle_!=null&&Zhq(this)};
vh.prototype.exifRead_=function(y){if(this.disableExifRotation_)this.angle_=0;else{a:if(y=new DataView(y),y.byteLength<2||y.getUint16(0)!==65496)y=-2;else{for(var W=2,V=y.byteLength;W<V;){var w=y.getUint16(W),t=y.getUint16(W+2);if(w===65505){W+=4;w=y.getUint32(W);t=y.getUint16(W+4);if(w!==1165519206||t!==0)break;W+=6;w=y.getUint16(W)===18761;W+=y.getUint32(W+4,w);t=y.getUint16(W,w);W+=2;for(var F=0;F<t;F++){if(y.getUint16(W,w)===274){W+=8;y=y.getUint16(W,w);break a}W+=12}}else if(w>>8!==255)break;
else W+=t+2}y=-1}switch(y){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&&Zhq(this)};
vh.prototype.readError_=function(){this.JSC$12354_reject_()};
var Zhq=function(y){jY(y.JSC$12354_image_,QYi,y.completeTransform_,!1,y);y.JSC$12354_image_.src=_.ye(y.dataUrl_).toString();y.JSC$12354_image_.src!=Zf.toString()&&y.JSC$12354_image_.src.substr(0,11)==="data:image/"||y.JSC$12354_reject_()};
vh.prototype.completeTransform_=function(){if(this.JSC$12354_image_.src!=Zf.toString()){var y=_.ye(this.dataUrl_),W=this.JSC$12354_image_.naturalHeight?this.JSC$12354_image_.naturalWidth/this.JSC$12354_image_.naturalHeight:null;this.invalidAspectRatio=W>this.JSC$12354_maxAspectRatio_||W<1/this.JSC$12354_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var V=this.JSC$12354_image_.naturalWidth,w=this.JSC$12354_image_.naturalHeight,t=W=0,F=this.JSC$12354_image_.naturalHeight?this.JSC$12354_image_.naturalWidth/
this.JSC$12354_image_.naturalHeight:null;F>this.JSC$12354_maxAspectRatio_?(V=this.JSC$12354_maxAspectRatio_*w,W=(V-this.JSC$12354_image_.naturalWidth)/2,this.cropped=!0):F<1/this.JSC$12354_maxAspectRatio_?(w=this.JSC$12354_maxAspectRatio_*V,t=(w-this.JSC$12354_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)F=V,V=w,w=F,F=W,W=t,t=F;switch(this.angle_){case 90:t-=V;break;case 180:W-=V;t-=w;break;case 270:W-=
w}this.cropped||this.angle_%360!==0?(y=document.createElement("canvas"),y.width=V||1,y.height=w||1,this.JSC$12354_image_.naturalWidth&&this.JSC$12354_image_.naturalHeight&&(V=y.getContext("2d"),V.rotate(Math.PI/180*this.angle_),V.drawImage(this.JSC$12354_image_,W,t,this.JSC$12354_image_.naturalWidth,this.JSC$12354_image_.naturalHeight)),this.transformedData=_.ye(y.toDataURL(this.mime_))):this.transformedData=y}else this.transformedData=y;this.resolve_(this)}};var dz=function(y,W){_.xs.call(this,y);this.value=W};
_.p(dz,_.xs);
var L3=function(y,W,V,w,t,F,I){I=I===void 0?!1:I;_.Bg.call(this);var P=this;this.JSC$12359_url_=y;this.channelId_=W;this.maxFileSizeMb_=V;this.JSC$12359_maxAspectRatio_=w;this.dropZoneEl_=t;this.rejectInvalidAspectRatio_=I;this.selectButtonEl_=F;this.JSC$12359_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new uI(this.dropZoneEl_);this.selectOverlay_=new SZ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12359_image_=this.transfer_=null;this.handler_=new _.eK(this);_.Uf(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(F,"click",function(){P.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.p(L3,_.Bg);L3.prototype.disposeInternal=function(){for(var y=this.selectButtonEl_.nextSibling;y&&y.parentNode&&y.tagName=="INPUT";)y.parentNode.removeChild(y),y=this.selectButtonEl_.nextSibling;this.cancel();_.Bg.prototype.disposeInternal.call(this)};
L3.prototype.uploadPromise=function(){if(this.JSC$12359_image_==null)return null;this.uploadPromise_||yC6(this);return this.uploadPromise_};
L3.prototype.cancel=function(){Wo6(this);this.JSC$12359_image_=null};
var Wo6=function(y){y.transfer_&&y.transfer_.cancel();y.transfer_=null;y.uploadPromise_=null;y.resolve_=null;y.JSC$12359_reject_=null},yC6=function(y){Wo6(y);
y.transfer_=_.d_i(y.JSC$12359_url_,{"X-YouTube-ChannelId":y.channelId_},y.JSC$12359_image_);y.handler_.listenOnce(y.transfer_,"l",y.JSC$12361_onUploadComplete_);y.handler_.listenOnce(y.transfer_,"n",y.onUploadError_);y.transfer_.run();y.uploadPromise_=new Promise(function(W,V){y.resolve_=W;y.JSC$12359_reject_=V})};
_.E=L3.prototype;_.E.onChange_=function(y){y.files.length&&(this.JSC$12359_image_=y.files[0],this.JSC$12359_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12359_image_=null,this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(yC6(this),(new vh(this.JSC$12359_maxAspectRatio_)).transform(this.JSC$12359_image_).then((0,_.jA)(this.onPreview_,this),(0,_.jA)(this.onPreviewError_,this))))};
_.E.onPreview_=function(y){if(y.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12359_image_=null),this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;y.cropped&&this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.CHANGE_EVENT",y.transformedData))};
_.E.onPreviewError_=function(){this.JSC$12359_image_=null;this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.E.onHover_=function(y){y.stopPropagation();y.preventDefault();if(y.type==="dragover")y=!0;else if(y.type==="dragleave")y=!1;else return;this.dispatchEvent(new dz("yt.comments.ImageUploadOverlay.HOVER_EVENT",y))};
_.E.JSC$12361_onUploadComplete_=function(){var y=(0,_.oYi)(this.transfer_.getResponseText());this.resolve_(y.encryptedBlobId)};
_.E.onUploadError_=function(){this.JSC$12359_reject_();Wo6(this)};var VV6=function(y){y=y||{};var W={},V={};this.url=y.url||"";this.args=y.args||_.Gc.clone(W);this.assets=y.assets||{};this.attrs=y.attrs||_.Gc.clone(V);this.fallback=y.fallback||null;this.fallbackMessage=y.fallbackMessage||null;this.html5=!!y.html5;this.disable=y.disable||{};this.loaded=!!y.loaded;this.messages=y.messages||{}};
VV6.prototype.clone=function(){var y=new VV6,W;for(W in this)if(this.hasOwnProperty(W)){var V=this[W];_.Le(V)=="object"?y[W]=_.Gc.clone(V):y[W]=V}return y};var wKK,tVi,Fo2,dx,NeJ,I9J,g56,PfJ,CfI,OKq,v5r,d$f,Lof,zU6,cCf,eUQ,hUr,o5E,KoQ,pKm,iKQ,f9A,TeR,m$f,MV6,qRm,U$Q,uXR,SRq,FAz,D$m,l9r,x$z,k8r,sLR,ACQ,YRE,Bef,JC6,RUA,tpG,jLK,$$J,n5K,HKA,XKJ,a9m,G86,rCf,bKz,QLA,ZKz,yWi,WOi,VUf,wSQ,zd,tU6,FOq,EtK,NZA,IOE,gtK,Pa2,CaQ,Or2,vts,ddf,LOQ,zFA,cWK,eFQ,hFK,otq,KOz,VpR,pSf,irQ,fOJ,TZK,mdE,MUr,q4m,Uds,uqq,S4s,Ddf,lOi,xd6,kQE,sjf,AW6,Y4s,BZ6,JWr,RFi,jj2,$dJ,ntJ,HrK,XS6;wKK=["account/accounts_list"];tVi=["acknowledge_channel_tou_strike"];Fo2=["notification/add_upcoming_event_reminder"];
_.E5Q=["att/get"];dx=["browse","music/browse","unplugged/browse"];NeJ=["channel/claim_legacy_youtube_channel"];I9J=["history/clear_search_history"];g56=["history/clear_watch_history"];PfJ=["comment/perform_comment_action"];CfI=["comment/get_comment_replies"];OKq=["ypc/commerce_action"];v5r=["backstage/create_post"];d$f=["live/create_broadcast"];Lof=["channel/create_channel"];zU6=["comment/create_comment_reply"];cCf=["comment/create_comment"];eUQ=["live_chat/create_poll"];hUr=["playlist/create"];
o5E=["decorate_message"];KoQ=["live_chat/delete_message"];pKm=["playlist/delete"];iKQ=["video/delete"];f9A=["like/dislike"];TeR=["dismissal/dismiss"];m$f=["flag/flag"];MV6=["flow"];qRm=["account/account_menu"];U$Q=["playlist/get_add_to_playlist"];uXR=["get_answer"];SRq=["channel/get_channel_creation_form"];FAz=["offline/get_download_action"];D$m=["kids/get_kids_blocklist_picker"];l9r=["live_chat/get_item_context_menu"];x$z=["live_chat/get_live_chat_message_buy_flow"];k8r=["live_chat/get_live_chat_replay"];
sLR=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];ACQ=["live_chat/get_live_chat_super_sticker_buy_flow"];YRE=["notification/get_notification_menu"];Bef=["playlist/get_settings_editor"];JC6=["backstage/get_post_video_preview"];RUA=["account/get_profile_card"];tpG=["share/get_share_panel"];jLK=["share/get_sharing_provider_data"];$$J=["get_survey"];n5K=["notification/get_unseen_count"];HKA=["get_user_mention_suggestions"];XKJ=["get_watch"];a9m=["guide"];
G86=["feedback"];rCf=["kids/update_blacklist"];bKz=["like/like"];QLA=["live_chat/live_chat_action"];ZKz=["live_chat/manage_user"];yWi=["video_manager/metadata_update"];WOi=["live_chat/moderate"];VUf=["notification/modify_channel_preference"];wSQ=["notification/opt_out"];zd=["get_panel","get_posts_by_host_panel"];tU6=["player"];FOq=["browse/edit_playlist"];EtK=["notification/record_interactions"];NZA=["reel/reel_item_watch"];IOE=["reel/reel_watch_sequence"];gtK=["like/removelike"];Pa2=["notification/remove_upcoming_event_reminder"];
CaQ=["flag/get_form"];Or2=["miniapp/report_value"];vts=["navigation/resolve_url"];ddf=["channel/reveal_business_email"];LOQ=["in_video/search"];zFA=["search","sfv/search","unplugged/search"];cWK=["live_chat/send_message"];eFQ=["live_chat/send_live_chat_vote"];hFK=["account/set_setting"];otq=["submit_caption_correction"];KOz=["subscription/subscribe"];VpR=["get_transcript"];pSf=["resolve_location","unplugged/resolve_location"];irQ=["subscription/unsubscribe"];fOJ=["backstage/update_post"];TZK=["channel_edit/update_channel_page_settings"];
mdE=["comment/update_comment_reply"];MUr=["comment/update_comment"];q4m=["comment/update_comments_settings"];Uds=["creator/update_creator_channel"];uqq=["pdg/update_enablement"];S4s=["updated_metadata"];Ddf=["channel_edit/validate_channel_handle"];lOi=["verify_age"];xd6=["next","unplugged/watch_next"];kQE=["whitelist/edit"];sjf=["ypc/cancel_recurrence"];AW6=["ypc/complete_transaction"];Y4s=["ypc/get_cart"];BZ6=["ypc/get_fix_instrument_params"];JWr=["ypc/get_offers"];RFi=["ypc/get_payment_instruments_params"];
jj2=["ypc/handle_transaction"];$dJ=["ypc/log_payment_server_analytics"];ntJ=["ypc/pause_subscription"];HrK=["ypc/redeem_code"];XS6=["ypc/resume_subscription"];var aOI=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,
244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,
253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,
31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,
39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Un=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.dE("yt.msgs_",Un);var ch=new _.e9("ACTION_ROUTER_TOKEN");_.en=function(){this.autonavState_=_.e("kevlar_is_pupi_enabled")?2:EgG()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.en.prototype.getState=function(){return this.autonavState_};
_.en.prototype.pause=function(y){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=y):this.autonavState_==1&&(this.disabledAutonavPauseReason_=y)};
_.en.prototype.setState=function(y,W,V){W&&(this.autoplayChangedByUser=!0);W=this.autonavState_===3||y===3;this.autonavState_!=y&&(this.autonavState_=y,y!=3&&_.N9R(y==2),y=_.e("kevlar_is_pupi_enabled")?V||W:!0,_.tL.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,y,V))};
_.en.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.oX(_.en);var hg=function(){this.hasRun=!1};var oi={},e$n=(oi.auto_search="LATENCY_ACTION_AUTO_SEARCH",oi.ad_to_ad="LATENCY_ACTION_AD_TO_AD",oi.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",oi.app_startup="LATENCY_ACTION_APP_STARTUP",oi.browse="LATENCY_ACTION_BROWSE",oi.cast_splash="LATENCY_ACTION_CAST_SPLASH",oi.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",oi.channels="LATENCY_ACTION_CHANNELS",oi.chips="LATENCY_ACTION_CHIPS",oi.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",oi.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
oi.editor="LATENCY_ACTION_EDITOR",oi.embed="LATENCY_ACTION_EMBED",oi.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",oi.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",oi.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",oi.explore="LATENCY_ACTION_EXPLORE",oi.favorites="LATENCY_ACTION_FAVORITES",oi.home="LATENCY_ACTION_HOME",oi.inboarding="LATENCY_ACTION_INBOARDING",oi.landing="LATENCY_ACTION_LANDING",oi.learning="LATENCY_ACTION_LEARNING",
oi.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",oi.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",oi.library="LATENCY_ACTION_LIBRARY",oi.live="LATENCY_ACTION_LIVE",oi.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",oi.management="LATENCY_ACTION_MANAGEMENT",oi.mini_app="LATENCY_ACTION_MINI_APP_PLAY",oi.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",oi.onboarding="LATENCY_ACTION_ONBOARDING",oi.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
oi.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",oi.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",oi.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",oi.prebuffer="LATENCY_ACTION_PREBUFFER",oi.prefetch="LATENCY_ACTION_PREFETCH",oi.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",oi.profile_switcher="LATENCY_ACTION_LOGIN",oi.projects="LATENCY_ACTION_PROJECTS",oi.reel_watch="LATENCY_ACTION_REEL_WATCH",oi.results="LATENCY_ACTION_RESULTS",oi.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
oi.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",oi.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",oi.review="LATENCY_ACTION_REVIEW",oi.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",oi.search_ui="LATENCY_ACTION_SEARCH_UI",oi.search_suggest="LATENCY_ACTION_SUGGEST",oi.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",oi.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",oi.seek="LATENCY_ACTION_PLAYER_SEEK",oi.settings="LATENCY_ACTION_SETTINGS",oi.store="LATENCY_ACTION_STORE",
oi.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",oi.tenx="LATENCY_ACTION_TENX",oi.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",oi.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",oi.watch="LATENCY_ACTION_WATCH",oi.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",oi["watch,watch7"]="LATENCY_ACTION_WATCH",oi["watch,watch7_html5"]="LATENCY_ACTION_WATCH",oi["watch,watch7ad"]="LATENCY_ACTION_WATCH",oi["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",oi.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
oi.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",oi.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",oi.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",oi.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",oi.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",oi.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",oi.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",oi),x2z=0;var Jqy=function(y,W){j9.call(this,1,arguments);this.timer=W};
_.p(Jqy,j9);var B9G=new bOR("aft-recorded",Jqy);var pQj=_.Vj.ytLoggingGelSequenceIdObj_||{};_.dE("ytLoggingGelSequenceIdObj_",pQj);var K3=_.Vj.ytLoggingLatencyUsageStats_||{};_.dE("ytLoggingLatencyUsageStats_",K3);var p3=function(){this.cleanupJob=0},T9z=function(){p3.instance||(p3.instance=new p3);
return p3.instance};
_.E=p3.prototype;_.E.baseline=function(y,W,V){iT(this,"baseline_"+y)||_.Hp("latencyActionBaselined",{clientActionNonce:y},{timestamp:W,cttAuthInfo:V})};
_.E.tick=function(y,W,V,w){iT(this,"tick_"+y+"_"+W)||_.Hp("latencyActionTicked",{tickName:y,clientActionNonce:W},{timestamp:V,cttAuthInfo:w})};
_.E.info=function(y,W,V){var w=Object.keys(y).join("");iT(this,"info_"+w+"_"+W)||(y=Object.assign({},y),y.clientActionNonce=W,_.Hp("latencyActionInfo",y,{cttAuthInfo:V}))};
_.E.jspbInfo=function(y,W,V){for(var w="",t=0;t<bt(y).length;t++)bt(y)[t]!==void 0&&(w=t===0?w.concat(""+t):w.concat("_"+t));iT(this,"info_"+w+"_"+W)||(_.jD(y,2,W),W={cttAuthInfo:V},V=_.e("jspb_sparse_encoded_pivot")?new At([{}]):new At,_.A_(V,7,zDz,y),ijR("latencyActionInfo",V,W))};
_.E.span=function(y,W,V){var w=Object.keys(y).join("");iT(this,"span_"+w+"_"+W)||(y.clientActionNonce=W,_.Hp("latencyActionSpan",y,{cttAuthInfo:V}))};
var iT=function(y,W){K3[W]=K3[W]||{count:0};var V=K3[W];V.count++;V.time=(0,_.cU)();y.cleanupJob||(y.cleanupJob=_.Jt(_.HU,function(){var w=(0,_.cU)(),t;for(t in K3)K3[t]&&w-K3[t].time>6E4&&delete K3[t];y&&(y.cleanupJob=0)},5E3));
return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new _.Js("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||_.rQ(V)),!0):!1};var GQR,rWf;GQR=window;rWf=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.YF=GQR.performance||GQR.mozPerformance||GQR.msPerformance||GQR.webkitPerformance||new rWf;var Yev=!1,MNa=!1,R$R=(0,_.jA)(_.YF.clearResourceTimings||_.YF.webkitClearResourceTimings||_.YF.mozClearResourceTimings||_.YF.msClearResourceTimings||_.YF.oClearResourceTimings||_.A$,_.YF);var bri=window;bri.ytcsi&&(bri.ytcsi.infoGel=_.HN,bri.ytcsi.tick=_.aw);var yBj=function(y){j9.call(this,1,arguments);this.csn=y};
_.p(yBj,j9);var VBj=new bOR("screen-created",yBj),zKG=[],Zjv=LB4,cBa=0,VD=new Map,WBj=new Map,VxG=new Map;var lvz=Symbol("Ef"),L2=new WeakMap;var f3=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},RU=function(){f3.instance||(f3.instance=new f3);
return f3.instance};
_.E=f3.prototype;_.E.setClient=function(y){this.client=y};
_.E.JSC$12440_newScreen=function(){this.clear();this.csn=_.Xn()};
_.E.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.E.reportShown=function(y,W,V){var w=this.JSC$12440_getTrackingParams(y),t=y.visualElement?y.visualElement:w;W=this.shownElements.has(t);var F=this.visibleState.get(t);this.shownElements.add(t);this.visibleState.set(t,!0);y.impressionLog&&!W&&y.impressionLog();if(w||y.visualElement)if(V=Qjz(this,y,V))if(t=Zrf(this,y),Td(this,y)||t){w=y.visualElement?y.visualElement:_.nD(w);var I=y.interactionLoggingClientData;t||W?Td(this,y)&4?F||Pdy(this.client,V,w,I):Td(this,y)&1&&!W&&NoR(this.client,V,w,I):NoR(this.client,
V,w,I)}};
_.E.reportHidden=function(y,W,V){var w=this.JSC$12440_getTrackingParams(y),t=y.visualElement?y.visualElement:w;W=this.hiddenElements.has(t);var F=this.visibleState.get(t);this.hiddenElements.add(t);this.visibleState.set(t,!1);if(F===!1)return!0;if(!w&&!y.visualElement)return!1;V=Qjz(this,y,V);if(!V||!Td(this,y)&&Zrf(this,y))return!1;w=y.visualElement?y.visualElement:_.nD(w);Td(this,y)&8?Cdj(this.client,V,w):Td(this,y)&2&&!W&&(y=this.client,W=WE({cttAuthInfo:a2(V)||void 0},V),w={csn:V,ve:w.getAsJson(),
eventType:2},V==="UNDEFINED_CSN"?tz("visualElementHidden",W,w):y?$I("visualElementHidden",w,y,W):_.Hp("visualElementHidden",w,W));return!0};
_.E.JSC$12440_getTrackingParams=function(y){var W=this.getData(y),V,w;if(_.e("il_use_view_model_logging_context")&&(W==null?0:(V=W.context)==null?0:(w=V.loggingContext)==null?0:w.loggingDirectives))return W.context.loggingContext.loggingDirectives.trackingParams||"";var t,F;if(W==null?0:(t=W.rendererContext)==null?0:(F=t.loggingContext)==null?0:F.loggingDirectives)return W.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams||
"";var I;return((I=y.veContainer)==null?0:I.trackingParams)?y.veContainer.trackingParams:(W==null?void 0:W.trackingParams)||""};
_.E.JSC$12440_elementShouldLogGesture=function(y,W){y=this.getData(y);return!!((Math.floor(Number(y&&y.loggingDirectives&&y.loggingDirectives.gestures&&y.loggingDirectives.gestures.types||""))||0)&W)};
_.E.JSC$12440_getNearestParentVe=function(y){var W=this.JSC$12440_getTrackingParams(y);return y.visualElement?y.visualElement:W?_.nD(W):y.parentElement?this.JSC$12440_getNearestParentVe(y.parentElement):null};
var Qjz=function(y,W,V){var w=_.Xn(V);return y.csn===null||w===y.csn||V?w:(y=new _.Js("VisibilityLogger called before newScreen",{caller:W.tagName,previous_csn:y.csn,current_csn:w}),_.rQ(y),null)};
f3.prototype.getData=function(y){var W,V=y.data||((W=y.props)==null?void 0:W.data);if(!V||y.isWebComponentWrapper){var w;V=(w=L2.get(y))==null?void 0:w[lvz]}return V};
var Zrf=function(y,W){var V;return!((V=y.getData(W))==null||!V.loggingDirectives)},Td=function(y,W){y=y.getData(W);
return Math.floor(Number(y&&y.loggingDirectives&&y.loggingDirectives.visibility&&y.loggingDirectives.visibility.types||""))||1};var mZ;mZ=function(){};
_.AY=function(){mZ.instance||(mZ.instance=new mZ);return mZ.instance};
mZ.prototype.setClient=function(y){_.wi(RU().setClient).bind(RU())(y)};
_.yjK=function(){_.AY();_.wi(RU().JSC$12440_newScreen).bind(RU())()};
mZ.prototype.clear=function(){_.wi(RU().clear).bind(RU())()};
mZ.prototype.reportShown=function(y,W,V){_.wi(RU().reportShown).bind(RU())(y,W,V)};
mZ.prototype.reportHidden=function(y,W,V){return _.wi(RU().reportHidden).bind(RU())(y,W,V)};
var xtb=function(y,W){return _.wi(RU().JSC$12440_getTrackingParams).bind(RU())(W)},xmP=function(y,W){return _.wi(RU().JSC$12440_getNearestParentVe).bind(RU())(W)};var Mx,W3z;Mx=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};
_.BC=function(){Mx.instance||(Mx.instance=new Mx);return Mx.instance};
Mx.prototype.setClient=function(y){this.client=y};
W3z=function(y,W,V){V=V===void 0?{}:V;_.wi(function(){var w,t,F,I=((w=_.h(W==null?void 0:W.commandMetadata,_.dw))==null?void 0:w.rootVe)||((t=_.h(W==null?void 0:W.commandMetadata,GfQ))==null?void 0:(F=t.screenVisualElement)==null?void 0:F.uiType);if(I){w=_.h(W==null?void 0:W.commandMetadata,sxm);if(w==null?0:w.parentTrackingParams){var P=_.nD(w.parentTrackingParams);if(w.parentCsn)var C=w.parentCsn}else V.clickedVisualElement?P=V.clickedVisualElement:W.clickTrackingParams&&(P=_.nD(W.clickTrackingParams));
a:{w=_.h(W,_.Iw);t=_.h(W,HKv);if(w){if(t=IGz(w,"VIDEO")){w={token:t,videoId:w.videoId};break a}}else if(t&&(w=IGz(t,"PLAYLIST"))){w={token:w,playlistId:t.playlistId};break a}w=void 0}V=Object.assign({},{cttAuthInfo:w,parentCsn:C},V);if(_.e("expectation_logging")){var d;V.loggingExpectations=((d=_.h(W==null?void 0:W.commandMetadata,GfQ))==null?void 0:d.loggingExpectations)||void 0}_.qx(y,I,P,V)}else _.rQ(new _.Js("Error: Trying to create a new screen without a rootVeType",W))})()};
_.qx=function(y,W,V,w){w=w===void 0?{}:w;_.wi(function(){aOI.includes(W)||(_.rQ(new _.Js("createClientScreen() called with a non-page VE",W)),W=83769);w.isHistoryNavigation||(y.forwardHistoryStack=[],y.backHistoryStack.push({rootVe:W,key:w.key||""}));y.graftQueue=[];y.stateChangedQueue=[];w.dataPromises?Vwi(y,W,V,w):w_i(y,W,V,w)})()};
_.twi=function(y,W,V){V=V===void 0?0:V;_.wi(function(){W.then(function(w){y.pendingScreenCreation.has(V)&&y.pendingScreenFn&&y.pendingScreenFn();var t=_.Xn(V),F=_.Hf(V);if(t&&F){var I={automatedLogEventSource:3},P;(w==null?0:(P=w.response)==null?0:P.trackingParams)&&w5(y.client,t,F,_.nD(w.response.trackingParams),!1,I);var C;(w==null?0:(C=w.playerResponse)==null?0:C.trackingParams)&&w5(y.client,t,F,_.nD(w.playerResponse.trackingParams),!1,I)}})})()};
Mx.prototype.graftServerVe=function(y,W,V){var w=this;return _.wi(function(){var t=_.nD(y);_.U8(w,t,W,V);return t})()};
_.kOa=function(y,W,V,w){return _.e("enable_client_ve_spec")&&W.clientVeSpec?(W=_.ad(W.clientVeSpec.uiType,void 0,W.clientVeSpec.elementIndex,W.clientVeSpec.clientYoutubeData,void 0,W),_.U8(y,W,V,w)?W:null):W.trackingParams?y.graftServerVe(W.trackingParams,V,w):null};
_.Yc=function(y,W,V,w){return _.wi(function(){if(!W.veType)return _.GD(new _.Js("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var t=W.visibilityTypes.reduce(function(F,I){return F|I});
t={visibility:{types:String(t)}}}t=_.ad(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,t);return _.U8(y,t,V,w)?t:null})()};
_.U8=function(y,W,V,w){w=w===void 0?0:w;return _.wi(function(){if(y.pendingScreenCreation.has(w))return y.graftQueue.push([W,V]),!0;var t=_.Xn(w),F=V||_.Hf(w);if(t&&F){if(_.e("combine_ve_grafts")){var I=y.cachedVisualElements.get(F.toString());I?I.push(W):(y.cachedRootVisualElements.set(F.toString(),F),y.cachedVisualElements.set(F.toString(),[W]));y.attachTimeout||(y.attachTimeout=_.Jt(_.HU,function(){F3R(y,t)},1200))}else w5(y.client,t,F,W);
return!0}return!1})()};
_.uT=function(y,W,V){V=V===void 0?0:V;var w=y.recurringGrafts.get(V)||new Map;if(_.e("smarter_ve_dedupping"))for(var t=Array.from(w.keys()),F=0;F<t.length;F++){var I=void 0,P=void 0;var C=W;var d=t[F];d.isClientVe()&&C.isClientVe()?(I=C.getAsJson(),P=d.getAsJson(),C=I.veType!==P.veType||I.elementIndex!==P.elementIndex||I.dataElement!==P.dataElement||C.getLoggingDirectives()!==d.getLoggingDirectives()?!1:!0):C=d.veData.trackingParams!==void 0&&C.veData.trackingParams!==void 0?((P=C.veData)==null?void 0:
P.trackingParams)===((I=d.veData)==null?void 0:I.trackingParams):!1;if(C)return}else if(w.has(W))return;w.set(W,void 0);y.recurringGrafts.set(V,w);_.Xn(V)==="UNDEFINED_CSN"||y.pendingScreenCreation.has(V)||_.U8(y,W,void 0,V)};
_.Sn=function(y,W,V,w){w=_.Xn(w===void 0?0:w);if(!w)return!1;vfd(y.client,w,W,V);return!0};
_.DN=function(y,W,V,w){if(!W)return!1;w=_.Xn(w===void 0?0:w);if(!w)return!1;vfd(y.client,w,_.nD(W),V);return!0};
_.gp=function(y,W){var V=W.getScreenLayer&&W.getScreenLayer();if(W.visualElement)return _.Sn(y,W.visualElement,void 0,V);W=xtb(_.AY(),W);return _.DN(y,W,void 0,V)};
Mx.prototype.clickCommand=function(y,W,V){return _.DN(this,y.clickTrackingParams,W,V===void 0?0:V)};
Mx.prototype.stateChanged=function(y,W,V){this.visualElementStateChanged(_.nD(y),W,V===void 0?0:V)};
Mx.prototype.visualElementStateChanged=function(y,W,V){V=V===void 0?0:V;V===0&&this.pendingScreenCreation.has(V)?this.stateChangedQueue.push([y,W]):this.logStateChanged(y,W,V)};
Mx.prototype.logStateChanged=function(y,W,V){V=V===void 0?0:V;var w=_.Xn(V);y=y||_.Hf(V);return w&&y?(dfP(this.client,w,y,W),!0):!1};
var Vwi=function(y,W,V,w){w=w===void 0?{}:w;y.pendingScreenCreation.add(w.layer||0);y.pendingScreenFn=function(){w_i(y,W,V,w);var I=_.Hf(w.layer);if(I){for(var P=_.N(y.graftQueue),C=P.next();!C.done;C=P.next())C=C.value,_.U8(y,C[0],C[1]||I,w.layer);I=_.N(y.stateChangedQueue);for(P=I.next();!P.done;P=I.next())P=P.value,y.logStateChanged(P[0],P[1])}};
V||_.Xn(w.layer)||y.pendingScreenFn();if(w.dataPromises)for(var t=_.N(w.dataPromises),F=t.next();!F.done;F=t.next())_.twi(y,F.value,w.layer);else _.ap(Error("Ff"))},w_i=function(y,W,V,w){w=w===void 0?{}:w;
var t=void 0;w.layer||(w.layer=0);t=w.parentLayer!==void 0?w.parentLayer:w.layer;var F=_.Xn(t);t=_.Hf(t);var I=V||t,P;I&&(w.parentCsn!==void 0?P={clientScreenNonce:w.parentCsn,visualElement:I}:F&&F!=="UNDEFINED_CSN"&&(P={clientScreenNonce:F,visualElement:I}));var C,d=_.yC("EVENT_ID");F==="UNDEFINED_CSN"&&d&&(C={servletData:{serializedServletEventId:d}});_.e("combine_ve_grafts")&&F&&F3R(y,F);_.e("no_client_ve_attach_unless_shown")&&I&&F&&Efz(I,F);try{var L=_.wwL(y.client,W,P,w.csnToClone,w.cttAuthInfo,
C,w.implicitGestureType,void 0,w.loggingExpectations)}catch(K){_.bb(K,{rootVeType:W,rootVe:t,parentVisualElement:V,currentCsn:F,parentEl:P,csnToClone:w.csnToClone});_.ap(K);return}_.Gy(L,W,w.layer,w.cttAuthInfo);F&&F!=="UNDEFINED_CSN"&&t&&!PyR(F)&&Cdj(y.client,F,t,!0);y.backHistoryStack[y.backHistoryStack.length-1]&&!y.backHistoryStack[y.backHistoryStack.length-1].csn&&(y.backHistoryStack[y.backHistoryStack.length-1].csn=L||"");_.HN({clientScreenNonce:L});_.yjK();var z=_.Hf(w.layer);F&&F!=="UNDEFINED_CSN"&&
z&&(_.e("web_mark_root_visible")||_.e("music_web_mark_root_visible"))&&_.NK(L,z);y.pendingScreenCreation.delete(w.layer||0);y.pendingScreenFn=void 0;var c;(c=y.recurringGrafts.get(w.layer))==null||c.forEach(function(K,f){K?_.U8(y,f,K,w.layer):z&&_.U8(y,f,z,w.layer)});
Eq6(y)},Eq6=function(y){for(var W=0;W<y.afterNewScreenOneOffJobs.length;W++){var V=y.afterNewScreenOneOffJobs[W];
try{V()}catch(w){_.ap(w)}}for(W=y.afterNewScreenOneOffJobs.length=0;W<y.afterNewScreenRecurringJobs.length;W++){V=y.afterNewScreenRecurringJobs[W];try{V()}catch(w){_.ap(w)}}},F3R=function(y,W){if(W===void 0)for(var V=Igt(),w=0;w<V.length;w++)V[w]!==void 0&&F3R(y,V[w]);
else y.cachedVisualElements.forEach(function(t,F){(F=y.cachedRootVisualElements.get(F))&&txj(y.client,W,F,t)}),y.cachedVisualElements.clear(),y.cachedRootVisualElements.clear(),y.attachTimeout=void 0};var lT=function(y){y=y===void 0?{layer:0}:y;this.hasRun=!1;this.createScreenConfig=y;y={};this.mGk=(y.response=!1,y.playerResponse=!1,y)};
_.p(lT,hg);lT.prototype.validate=function(y){return!(!y.data||!y.data.response&&!y.data.playerResponse)};
lT.prototype.handle=function(y){var W=_.BC(),V=this.createScreenConfig.layer;y.data.response&&y.data.response.trackingParams&&!this.mGk.response&&(W.graftServerVe(y.data.response.trackingParams,void 0,V),this.mGk.response=!0);y.data.playerResponse&&y.data.playerResponse.trackingParams&&!this.mGk.playerResponse&&(W.graftServerVe(y.data.playerResponse.trackingParams,void 0,V),this.mGk.playerResponse=!0)};var x0=function(){this.i3=_.v5();this.s7=[];this.e2D=0};
x0.prototype.processChunk=function(y){if(y){for(var W=_.N(this.s7),V=W.next();!V.done;V=W.next())V=V.value,V.validate(y)&&(V.handle(y),V.hasRun=!0);_.aw("np"+this.e2D);this.e2D++}};var z4;var FWy,NaR,PVE;_.xc=function(y,W,V,w,t,F,I){I=I===void 0?[]:I;this.buildCommandPayload=y;this.navigate=W;this.handleServiceRequest=V;this.sendAction=w;this.JSC$12482_screenManager=t;this.commandResolverMap=F;this.autoLogResolverAllowlist=I;this.pendingCommands=new Set;this.isTracingEnabled=!1;NaR(this)};
FWy=function(y,W,V){var w=nlt,t=HEj,F=_.BC(),I=Ius;V=V===void 0?[]:V;_.xc.instance=new _.xc(y,W,w,t,F,I,V)};
NaR=function(y){if(!y.isTracingEnabled&&hKu("command")){var W=y.resolveCommand;y.resolveCommand=function(V,w){a:{for(t in V)if(Object.prototype.hasOwnProperty.call(V,t)){var t={commandType:t};break a}t={}}return pwR("command",t,W.bind(this,V,w))};
y.isTracingEnabled=!0}};
PVE=function(y,W,V){if(!y.commandResolverMap)return!1;var w=mfL(W,y.commandResolverMap);return w?((y.autoLogResolverAllowlist.some(function(t){return!!_.h(W,t)})||(V==null?0:V.forceClickLogging))&&gqz(y,W,V),w instanceof Promise?w.then(function(t){t.resolve(W,V)}):w.resolve(W,V),!0):!1};
_.xc.prototype.resolveCommand=function(y,W){var V=this,w=CVz(y);if(PVE(this,y,W))return!0;if(w)return OsA(this,y,W);if(!this.buildCommandPayload)return i84(y,"Unhandled command by buildCommandPayload"),!1;var t=this.buildCommandPayload(y,W);if(W==null?0:W.commandController)t.commandController=W.commandController;if(t.type===0){if(!this.navigate)return f4P(y,"navigate"),!1;if(!vqq(t.command))return i84(y,"Page requests need to specify a url"),!1;_.e("logging_avoid_blocking_during_navigation")&&_.YUj().transition("application_navigating");
y=this.navigate(t)||[];w3r(y).then(function(){V.pendingCommands.delete(t.command)});
return!0}if(t.type===1){if(!this.handleServiceRequest)return f4P(y,"handleServiceRequest"),!1;(W==null?0:W.forceClickLogging)&&gqz(this,t.command,W);y=this.handleServiceRequest(t);w3r(y).then(function(){V.pendingCommands.delete(t.command)});
return!0}if(t.type===2){if(!this.sendAction)return f4P(y,"sendAction"),!1;gqz(this,t.command,W);this.sendAction(t);return!0}return!1};
var gqz=function(y,W,V){if((V==null||!V.disableClickTracking)&&y.JSC$12482_screenManager)if(W.clickTrackingParams&&_.e("log_click_with_layer_from_element_in_command_handler")){var w;V=V==null?void 0:(w=V.form)==null?void 0:w.element;y.JSC$12482_screenManager.clickCommand(W,null,V&&V.getScreenLayer&&V.getScreenLayer())}else W.clickTrackingParams?y.JSC$12482_screenManager.clickCommand(W):!_.e("disable_clicked_visual_element_in_command_handler")&&(V==null?0:V.clickedVisualElement)&&_.Sn(y.JSC$12482_screenManager,
V.clickedVisualElement)},CVz=function(y){var W=!!_.h(y,_.mR),V;
y=((V=_.h(y,_.q8))==null?void 0:V.signal)==="CLIENT_SIGNAL";return W||y},OsA=function(y,W,V){var w=_.h(W,_.mR);
if(w)var t=(w==null?void 0:w.commands)||[];else{var F;if(((F=_.h(W,_.q8))==null?void 0:F.signal)==="CLIENT_SIGNAL"){var I;t=((I=_.h(W,_.q8))==null?void 0:I.actions)||[]}}if(t){W=_.N(t);for(t=W.next();!t.done;t=W.next()){t=t.value;try{y.resolveCommand(t,V)}catch(P){P instanceof Error&&_.ap(P)}}return!0}i84(W,"Could not handle the meta command");return!1},vqq=function(y){var W;
return!((W=_.h(y==null?void 0:y.commandMetadata,_.dw))==null||!W.url)};var k0=function(){hg.apply(this,arguments)};
_.p(k0,hg);k0.prototype.validate=function(y){var W,V;return!this.hasRun&&!!((W=y.data.response)==null?0:(V=W.onResponseReceivedEndpoints)==null?0:V.length)};
k0.prototype.handle=function(y){var W=_.xc.instance;y=_.N(y.data.response.onResponseReceivedEndpoints);for(var V=y.next();!V.done;V=y.next())W.resolveCommand(V.value)};var dJQ,L32,zRJ;
dJQ=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.T2();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.s8=function(){L32||(L32=new dJQ);return L32};
zRJ=function(){var y=_.s8();y.miniplayerButtonActivation=!1;y.userActivation=!1;y.playlistWatchPageActivation=!1;y.productDetailsPageActivation=!1;y.miniAppPageActivation=!1;y.playablesDestPageActivation=!1;y.lockupActivation=!1;y.showMiniplayerCommandActivation=!1;y.playlistSuggestionsShelfActivation=!1;y.mediaSessionPipActivation=!1;y.watchPipActivation=!1;y.watchWhileActivation=!1;y.shortsPipActivation=!1};
_.cj2=function(){var y=_.s8(),W=y.mediaSessionPipActivation,V=y.watchPipActivation,w=y.watchWhileActivation,t=y.playlistWatchPageActivation,F=y.lockupActivation,I=y.showMiniplayerCommandActivation,P=y.navigatingAwayFromWatchDeletedVideo,C=y.shortsPipActivation,d=y.playlistSuggestionsShelfActivation,L=y.productDetailsPageActivation,z=y.miniAppPageActivation,c=y.playablesDestPageActivation;return!y.miniplayerButtonActivation&&!t&&!d&&!L&&!z&&!c&&!F&&!I&&!W&&!V&&!w&&!C||P};var EHv;_.Ag=eE("FEwhat_to_watch","/",3854);_.NGz=eE("FEdownloads","/feed/downloads",42352);EHv=eE("FEmusic_offline","browse/FEmusic_offline",42352);var v9=function(y,W){W=W===void 0?[]:W;var V=V===void 0?[]:V;W=HlR.apply(null,[X8P.apply(null,_.GC(W))].concat(_.GC(V)));this.store=bly(y,void 0,W)};
v9.prototype.getState=function(){return this.store.getState()};
v9.prototype.dispatch=function(y){return this.store.dispatch(y)};
v9.prototype.subscribe=function(y){return this.store.subscribe(y)};
v9.prototype.replaceReducer=function(y){return this.store.replaceReducer(y)};
v9.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Y0=function(y,W,V){var w=W(y.getState());return y.subscribe(function(){var t=W(y.getState());if(t!==w){var F=w;w=t;V(t,F)}})};var crv;_.B5=function(y,W,V){return _.ig({type:"REPLACE_ENTITY",payload:{entityPayload:V,entityType:y,key:W}})};
crv=function(y){return _.ig({type:"REPLACE_ENTITIES",payload:y})};
_.Z6=function(y,W,V,w){return _.ig({type:"UPDATE_ENTITY",payload:{entityPayload:V,entityType:y,key:W,mergeOption:w}})};var Bod=function(y){var W=this;y=y===void 0?[]:y;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;y.forEach(function(V){W.append(V)})};
_.E=Bod.prototype;_.E.getLength=function(){return this.totalLength};
_.E.append=function(y){var W=this.arrays.length===0?!1:(W=this.arrays[this.arrays.length-1])&&W.buffer===y.buffer&&W.byteOffset+W.length===y.byteOffset;W?(W=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+y.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(y);this.totalLength+=y.length};
_.E.split=function(y){for(var W=new Bod,V=new Bod,w=_.N(this.arrays),t=w.next();!t.done;t=w.next())t=t.value,y>=t.length?(W.append(t),y-=t.length):y?(W.append(new Uint8Array(t.buffer,t.byteOffset,y)),V.append(new Uint8Array(t.buffer,t.byteOffset+y,t.length-y)),y=0):V.append(t);return{headView:W,tailView:V}};
_.E.extract=function(y,W){return this.split(y).tailView.split(W).headView};
_.E.isFocused=function(y){return y>=this.arrayPos&&y<this.arrayPos+this.arrays[this.arrayIdx].length};
_.E.focus=function(y){if(!this.isFocused(y))for(y<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=y&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var eRz=function(y,W){y.focus(W);return y.arrays[y.arrayIdx][W-y.arrayPos]};(function(){var y=function(w){return new Uint8Array(w)},W=function(w){for(var t=new Uint8Array(w.length),F=0;F<w.length;F++)t[F]=w[F];
return t},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?y:W})();
var l4j=Array(1024),DfL=window.TextDecoder?new TextDecoder:void 0,kmj=window.TextEncoder?new TextEncoder:void 0;var YJG=function(y){this.arrayView=y;this.pos=0;this.pendingTagAndType=-1},f2=function(y){var W=eRz(y.arrayView,y.pos);
++y.pos;if(W<128)return W;for(var V=W&127,w=1;W>=128;)W=eRz(y.arrayView,y.pos),++y.pos,w*=128,V+=(W&127)*w;return V},JBd=function(y,W){var V=y.pendingTagAndType;
for(y.pendingTagAndType=-1;y.pos+1<=y.arrayView.totalLength;){V<0&&(V=f2(y));var w=V>>3,t=V&7;if(w===W)return!0;if(w>W){y.pendingTagAndType=V;break}V=-1;switch(t){case 0:f2(y);break;case 1:y.pos+=8;break;case 2:w=f2(y);y.pos+=w;break;case 5:y.pos+=4}}return!1};var jat=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=ABG(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},MK=function(y,W){W=y.pos+W;
if(!(y.buf.length>=W)){for(var V=y.buf.length*2;V<W;)V*=2;y.buf=ABG(V,y.wasm,y.buf.subarray(0,y.pos));y.view=new DataView(y.buf.buffer,y.buf.byteOffset,y.buf.byteLength)}},m_=function(y,W){if(W>268435455){MK(y,4);
for(var V=W&1073741823,w=0;w<4;w++)y.view.setUint8(y.pos,V&127|128),V>>=7,y.pos+=1;W=Math.floor(W/268435456)}for(MK(y,4);W>127;)y.view.setUint8(y.pos,W&127|128),W>>=7,y.pos+=1;y.view.setUint8(y.pos,W);y.pos+=1};for(var $fv={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},RKz={},hRK=_.N(Object.entries($fv)),oqI=hRK.next();!oqI.done;oqI=hRK.next()){var K3Q=_.N(oqI.value),p_m=K3Q.next().value,isz=K3Q.next().value,fuJ=p_m,Ta2=isz;Ta2&&(RKz[Ta2]=fuJ)};var H8u=function(y,W){y=y===void 0?{}:y;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(w,t){var F,I=(F=t.options)==null?void 0:F.persistenceOption;if(I&&I!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&I!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return w;if(!t.entityKey)return _.ap(Error("Jf")),w;if(t.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!t.payload)return t=new _.Js("REPLACE entity mutation is missing a payload",{entityKey:t.entityKey}),_.ap(t),w;var P=(0,_.Gc.getAnyKey)(t.payload);
return a4j(w,P,t.entityKey,t.payload[P])}if(t.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{t=t.entityKey;try{var C=_.T4(t).entityType;P=a4j(w,C,t);break a}catch(z){if(z instanceof Error){t=new _.Js("Failed to deserialize entity key",{entityKey:t,originalMessage:z.message});_.ap(t);P=w;break a}throw z;}P=void 0}return P}if(t.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!t.payload)return t=new _.Js("UPDATE entity mutation is missing a payload",{entityKey:t.entityKey}),_.ap(t),w;P=(0,_.Gc.getAnyKey)(t.payload);
var d,L;return Gmj(w,P,t.entityKey,t.payload[P],(d=t.fieldMask)==null?void 0:(L=d.mergeOptions)==null?void 0:L.repeatedFieldsMergeOption)}return w},y);
case "REPLACE_ENTITY":var V=W.payload;return a4j(y,V.entityType,V.key,V.entityPayload);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(w,t){var F=W.payload[t];return Object.keys(F).reduce(function(I,P){return a4j(I,t,P,F[P])},w)},y);
case "UPDATE_ENTITY":return V=W.payload,Gmj(y,V.entityType,V.key,V.entityPayload,V.mergeOption);default:return y}};var rBu;var mJR=!1,Bh,Jg,Ri,jn,$0,Mw6=function(y){_.Ru.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!mJR){var W,V=new Uint8Array(256),w=new Uint8Array(256);var t=1;for(W=0;W<256;W++)V[t]=W,w[W]=t,t^=t<<1^(t>>7&&283);Bh=new Uint8Array(256);Jg=ug(256);Ri=ug(256);jn=ug(256);$0=ug(256);for(var F=0;F<256;F++){t=F?w[255^V[F]]:0;t^=t<<1^t<<2^t<<3^t<<4;t=t&255^t>>>8^99;Bh[F]=t;W=t<<1^(t>>7&&283);var I=W^t;Jg[F]=W<<24|t<<16|t<<8|I;Ri[F]=I<<24|Jg[F]>>>8;jn[F]=t<<24|Ri[F]>>>
8;$0[F]=t<<24|jn[F]>>>8}mJR=!0}t=ug(44);for(V=0;V<4;V++)t[V]=y[4*V]<<24|y[4*V+1]<<16|y[4*V+2]<<8|y[4*V+3];for(w=1;V<44;V++)y=t[V-1],V%4||(y=(Bh[y>>16&255]^w)<<24|Bh[y>>8&255]<<16|Bh[y&255]<<8|Bh[y>>>24],w=w<<1^(w>>7&&283)),t[V]=t[V-4]^y;this.key=t};
_.p(Mw6,_.Ru);
Mw6.prototype.encrypt=function(y){var W=y.length;y=new Uint8Array(y.buffer.slice(y.byteOffset,y.byteOffset+W));for(var V=this.cipherBlock,w=0;w<W&&this.blockOffset<16;)y[w++]^=V[this.blockOffset++];for(var t=W-(W-w)%16;w<t;)q_J(this),y[w++]^=V[0],y[w++]^=V[1],y[w++]^=V[2],y[w++]^=V[3],y[w++]^=V[4],y[w++]^=V[5],y[w++]^=V[6],y[w++]^=V[7],y[w++]^=V[8],y[w++]^=V[9],y[w++]^=V[10],y[w++]^=V[11],y[w++]^=V[12],y[w++]^=V[13],y[w++]^=V[14],y[w++]^=V[15];if(w<W)for(q_J(this),this.blockOffset=0;w<W;)y[w++]^=
V[this.blockOffset++];return y};
var q_J=function(y){for(var W=y.key,V=y.counter[0]^W[0],w=y.counter[1]^W[1],t=y.counter[2]^W[2],F=y.counter[3]^W[3],I=3;I>=0&&!(y.counter[I]=-~y.counter[I]);I--);for(var P,C,d=4;d<40;)I=Jg[V>>>24]^Ri[w>>16&255]^jn[t>>8&255]^$0[F&255]^W[d++],P=Jg[w>>>24]^Ri[t>>16&255]^jn[F>>8&255]^$0[V&255]^W[d++],C=Jg[t>>>24]^Ri[F>>16&255]^jn[V>>8&255]^$0[w&255]^W[d++],F=Jg[F>>>24]^Ri[V>>16&255]^jn[w>>8&255]^$0[t&255]^W[d++],V=I,w=P,t=C;y=y.cipherBlock;I=W[40];y[0]=Bh[V>>>24]^I>>>24;y[1]=Bh[w>>16&255]^I>>16&255;y[2]=
Bh[t>>8&255]^I>>8&255;y[3]=Bh[F&255]^I&255;I=W[41];y[4]=Bh[w>>>24]^I>>>24;y[5]=Bh[t>>16&255]^I>>16&255;y[6]=Bh[F>>8&255]^I>>8&255;y[7]=Bh[V&255]^I&255;I=W[42];y[8]=Bh[t>>>24]^I>>>24;y[9]=Bh[F>>16&255]^I>>16&255;y[10]=Bh[V>>8&255]^I>>8&255;y[11]=Bh[w&255]^I&255;I=W[43];y[12]=Bh[F>>>24]^I>>>24;y[13]=Bh[V>>16&255]^I>>16&255;y[14]=Bh[w>>8&255]^I>>8&255;y[15]=Bh[t&255]^I&255};var UJr=!1;(function(){var y=function(w){return new Uint8Array(w)},W=function(w){for(var t=new Uint8Array(w.length),F=0;F<w.length;F++)t[F]=w[F];
return t},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?y:W})();
var n3;var DJE=function(y){a:{if(!UJr&&!O6){if(n3){var W=n3;break a}n3=(W=window.crypto)==null?void 0:W.subtle;var V,w,t;if(((V=n3)==null?0:V.importKey)&&((w=n3)==null?0:w.sign)&&((t=n3)==null?0:t.encrypt)){W=n3;break a}n3=void 0}W=void 0}W&&(this.nativeEncryptor=new u7q(y,W));this.encryptorPolyfill=new S_z(y)};
DJE.prototype.encrypt=function(y,W){var V=this,w;return _.g(function(t){switch(t.nextAddress){case 1:if(!V.nativeEncryptor){t.jumpTo(2);break}_.l7(t,3);return t.yield(V.nativeEncryptor.encrypt(y,W),5);case 5:return t.return(t.yieldResult);case 3:w=_.YX(t),_.rQ(w),UJr=!0,V.nativeEncryptor=void 0;case 2:return t.return(V.encryptorPolyfill.encrypt(y,W))}})};
DJE.prototype.decrypt=function(y,W){return this.encrypt(y,W)};
var u7q=function(y,W){this.JSC$12555_aesKey=y;this.subtleCrypto=W};
u7q.prototype.encrypt=function(y,W){var V=this,w;return _.g(function(t){if(t.nextAddress==1)return _.l7(t,2),t.yield(luI(V,y,W),4);if(t.nextAddress!=2)return t.return(t.yieldResult);w=_.YX(t);_.rQ(w);UJr=!0;throw w;})};
var luI=function(y,W,V){var w,t;return _.g(function(F){switch(F.nextAddress){case 1:if(y.cryptoKey){F.jumpTo(2);break}return F.yield(y.subtleCrypto.importKey("raw",y.JSC$12555_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:y.cryptoKey=F.yieldResult;case 2:return w={name:"AES-CTR",counter:V,length:128},F.yield(y.subtleCrypto.encrypt(w,y.cryptoKey,W),4);case 4:return t=F.yieldResult,F.return(new Uint8Array(t))}})},S_z=function(y){this.JSC$12558_aesKey=y};
S_z.prototype.encrypt=function(y,W){this.encryptor||(this.encryptor=new Mw6(this.JSC$12558_aesKey));for(var V=this.encryptor,w=0;w<4;w++)V.counter[w]=W[w*4]<<24|W[w*4+1]<<16|W[w*4+2]<<8|W[w*4+3];V.blockOffset=16;return this.encryptor.encrypt(y)};
S_z.prototype.decrypt=function(y,W){return this.encrypt(y,W)};var xJR={},Z8t=zp("yt-idb-pref-storage",{objectStores:(xJR.prefs={addedAtVersion:1},xJR),shared:!1,upgrade:function(y,W){W(1)&&wQ(VT(y,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Hh=function(y){this.token=y};
_.Hh.getInstance=function(){return _.g(function(y){return y.return(new Promise(function(W){_.LA().then(function(V){V?(_.Hh.instance||(_.Hh.instance=new _.Hh(V)),W(_.Hh.instance)):W(void 0)})}))})};
_.Hh.prototype.get=function(y){var W=this,V,w,t;return _.g(function(F){if(F.nextAddress==1)return F.yield(yrv(W.token),2);if(F.nextAddress!=3)return V=F.yieldResult,F.yield(V.get("prefs",y),3);w=F.yieldResult;if(!w)return F.return();t=(0,_.cU)();return w.expirationTimestampMs<=t?F.return():F.return(w.value)})};
_.Hh.prototype.set=function(y,W,V){V=V===void 0?31536E3:V;var w=this,t,F,I;return _.g(function(P){if(P.nextAddress==1)return t=(0,_.cU)(),F={key:y,value:W,expirationTimestampMs:t+V*1E3},P.yield(yrv(w.token),2);I=P.yieldResult;return P.yield(I.put("prefs",F),0)})};
_.Hh.prototype.remove=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(yrv(W.token),2);V=w.yieldResult;return w.yield(V.delete("prefs",y),0)})};var XB={},khf=(XB.INVALID_ENCODER_VERSION="Invalid encoder version",XB.KEY_CREATION_FAILED="Failed to create encoder key",XB.UNKNOWN_DECODE_ERROR="Failed to decode PES data",XB.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",XB.WRONG_DATA_TYPE="Encoder cannot process the data type",XB),SE=function(y,W){W=W===void 0?{}:W;_.Js.call(this,khf[y],Object.assign({},{name:"PESEncoderError",type:y},W));this.type=y;this.level="WARNING";Object.setPrototypeOf(this,SE.prototype)};
_.p(SE,_.Js);var ai=function(){};
ai.prototype.encode=function(y,W){try{return this.encodeImpl(y,W)}catch(V){tZb(V,VZv)}};
ai.prototype.decode=function(y,W){try{return this.decodeImpl(y,W)}catch(V){tZb(V,wqn)}};
var s5Q=function(y,W,V){var w;return _.g(function(t){if(t.nextAddress==1)return _.l7(t,2),t.yield(y.decodeAsyncImpl(W,V),4);if(t.nextAddress!=2)return t.return(t.yieldResult);w=_.YX(t);tZb(w,wqn);_.B7(t)})};
ai.prototype.decodeAsyncImpl=function(y,W){return Promise.resolve(this.decodeImpl(y,W))};var Gd=function(y,W){this.aesEncryptor=y;this.aesEncryptorAsync=W};
_.p(Gd,ai);Gd.prototype.encodeImpl=function(y,W){W=FIt(W);y=(new TextEncoder).encode(JSON.stringify(y));return this.aesEncryptor.encrypt(y,W)};
Gd.prototype.decodeImpl=function(y,W){if(!(y instanceof Uint8Array))throw WIb(1);var V=new TextDecoder;W=FIt(W);y=this.aesEncryptor.decrypt(y,W);return JSON.parse(V.decode(y))};
Gd.prototype.decodeAsyncImpl=function(y,W){var V=this,w,t,F;return _.g(function(I){if(I.nextAddress==1){if(!(y instanceof Uint8Array))throw WIb(1);w=new TextDecoder;t=FIt(W);return I.yield(V.aesEncryptorAsync.decrypt(y,t),2)}F=I.yieldResult;return I.return(JSON.parse(w.decode(F)))})};var Eoa={accountLinkStatusEntity:N6E,booleanEntity:A0K,buttonEntity:bcf,captionTrack:ABR,channelHandle:dI2,chipEntity:MLR,commerceAcquisitionClientPayloadEntity:KKq,commerceCartListEntity:pB2,contextNoteFeedEntityPayload:MI2,contextNoteUserRatingEntityPayload:qHI,continuationTokenEntity:h$f,downloadQualityPickerEntity:IGE,downloadsPageRefreshTokenEntity:PJi,downloadsPageViewConfigurationEntity:qer,downloadStatusEntity:ggI,dismissState:qAq,sfvAudioItemCurrentlyPlayingEntity:zIr,emojiFountainDataEntity:akm,
emojiCustomizationSetEntity:XPA,fakeChannel:J0s,fakePlaylist:R0r,fakePlaylistEntryCollection:jPs,fakeVideo:nGf,fakeVideoDescription:HHR,featuredProductsEntity:GnE,flowStateEntity:wsA,iconBadgeEntity:ihs,interstitialInteractionStateEntity:ioi,likeButtonAnimationEntity:U2r,liveChatPollStateEntity:SKs,liveViewerLeaderboardChatEntryPointStateEntity:Qa2,liveViewerLeaderboardPointsEntity:Z8I,liveReactionsDataEntity:Gqi,logoEntity:KFm,macroMarkerEntity:uI6,mainDownloadsLibraryEntity:CJA,mainDownloadsListEntity:OjA,
mainPlaylistDownloadStateEntity:d26,mainPlaylistEntity:ogJ,mainPlaylistVideoEntity:KuK,mainVideoDownloadStateEntity:LuI,mainVideoEntity:T9E,markersEngagementPanelSyncEntity:SeI,markersVisibilityOverrideEntity:D2z,musicAlbumReleaseDetail:EfE,musicAlbumReleaseDownloadMetadataEntity:WBK,musicAlbumRelease:FBQ,musicAlbumReleaseUserDetail:Nos,musicArtistDetail:gfz,musicArtist:I4f,musicArtistUserDetail:Pdz,musicDownloadsLibraryEntity:VxR,musicLibraryEdit:CdK,musicLibraryStatusEntity:O8i,musicPlaylist:vfq,
musicPlaylistDownloadMetadataEntity:wwf,musicShare:LBQ,musicTrackDetail:cBr,musicTrackDownloadMetadataEntity:txK,musicTrack:zKR,musicTrackUserDetail:eKi,offlineOrchestrationActionWrapperEntity:YJR,offlineVideoPolicy:Boq,offlineVideoStreams:JBq,offlineabilityEntity:z$f,orchestrationWebSamplingEntity:cq2,pageHeaderEntity:YAI,pdpStateEntity:f0i,pinnedProductEntity:rqz,playbackData:RKE,playerStateEntity:lGE,quantityIncrementerEntity:T0Q,refresh:jaI,saveToPlaylistListEntity:ArR,selectedChipIndexEntityPayload:x2E,
settingEntity:tnm,stringEntity:YQK,suggestedFeedbackChipStateEntity:knm,transfer:$fA,trendingOfferEntity:bjm,videoDownloadContextEntity:nf2,videoOverviewAsyncDataEntity:rZ6,videoPlaybackPositionEntity:yZ6,votingEntity:jbJ,ytMainChannelEntity:m2r,youchatPendingResponseEntity:s4q,ytMainDownloadedVideoEntity:e$2,ytMainVideoEntity:MNr};var Aji,Bar,sB,dnL,LIR,j5r,nqi,$JA,RRm;Aji=function(y,W){this.JSC$12577_wrapped=y;this.JSC$12577_encoderRegistry=W;this.changedKeys={}};
Bar=function(y,W){return Y_m(y.JSC$12577_encoderRegistry,W.version).decode(W.data,W.key)};
_.JjJ=function(y,W,V){return y.JSC$12577_wrapped.objectStore("EntityStore").get(W).then(function(w){if(w){if(V&&w.entityType!==V)throw Error("Kf");return Bar(y,w)}})};
sB=function(y,W,V){return V?(V=V.map(function(w){return _.JjJ(y,w,W)}),Vi.all(V)):y.JSC$12577_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(W)).then(function(w){return w.map(function(t){return Bar(y,t)})})};
_.voj=function(y,W,V){var w=nfn(W),t=Y_m(y.JSC$12577_encoderRegistry,1),F=Object.assign({},W);return y.JSC$12577_wrapped.objectStore("EntityStore").get(w).then(function(I){if(I){if(I.entityType!==V)throw Error("Kf");F.entityMetadata||(I=Bar(y,I),F.entityMetadata=I.entityMetadata)}}).then(function(){var I={key:w,
entityType:V,data:t.encode(F,w),version:1};return Vi.all([y.JSC$12577_wrapped.objectStore("EntityStore").put(I),RRm(y,F,V)])}).then(function(){j5r(y,w,V);
return w})};
dnL=function(y,W){var V=_.T4(W).entityType;return Vi.all([y.JSC$12577_wrapped.objectStore("EntityStore").delete(W),$JA(y,W)]).then(function(){j5r(y,W,V)})};
LIR=function(y,W,V,w){var t=Y_m(y.JSC$12577_encoderRegistry,1);return _.JjJ(y,W,w).then(function(F){if(F){F=SJy(F,V);var I={key:W,entityType:w,data:t.encode(F,W),version:1};return Vi.all([y.JSC$12577_wrapped.objectStore("EntityStore").put(I),RRm(y,F,w)])}}).then(function(){j5r(y,W,w);
return W})};
j5r=function(y,W,V){var w=y.changedKeys[V];w||(w=new Set,y.changedKeys[V]=w);w.add(W)};
nqi=function(y,W,V){var w=nfn(W);V=N1G(V);if(!V)return Vi.resolve([]);V=new V(W);y=y.JSC$12577_wrapped.objectStore("EntityAssociationStore");W=[];V=_.N(V.getAssociations());for(var t=V.next();!t.done;t=V.next())W.push(y.put({parentEntityKey:w,childEntityKey:t.value}));return Vi.all(W).then(function(F){return F.map(function(I){return I[1]})})};
$JA=function(y,W){return y.JSC$12577_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(W))};
RRm=function(y,W,V){var w=nfn(W);return $JA(y,w).then(function(){return nqi(y,W,V)})};var Hs6=function(){};
_.p(Hs6,ai);Hs6.prototype.encodeImpl=function(y){return y};
Hs6.prototype.decodeImpl=function(y){if(y instanceof Uint8Array)throw WIb(0);return y};var PIR=function(){this.cacheMap={};this.cacheMap[0]=new Hs6;if(!_.e("aes_pes_encoder_killswitch")){var y=this.cacheMap;try{var W=_.Y_();var V=FIt(W);var w=new Gd(new S_z(V),new DJE(V))}catch(t){throw y=t instanceof Error?new SE("KEY_CREATION_FAILED",{originalMessage:t.message}):new SE("KEY_CREATION_FAILED"),_.ap(y),y;}y[1]=w}},Y_m=function(y,W){W=W===void 0?0:W;
y=y.cacheMap[W];if(!y)throw W=new SE("INVALID_ENCODER_VERSION",{encoderVersion:W}),_.ap(W),W;return y};var lg=function(y,W){_.Ru.call(this);this.token=y;this.JSC$12591_encoderRegistry=W;this.observers=[];y=new _.Vj.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Y_());y.onmessage=this.handleMessage.bind(this);this.channel=y};
_.p(lg,_.Ru);_.kC=function(y,W,V){var w,t,F,I;return _.g(function(P){if(P.nextAddress==1)return P.yield(Qan(y.token),2);if(P.nextAddress!=3)return w=P.yieldResult,P.yield(_.gE(w,["EntityStore","EntityAssociationStore"],W,function(C){t=new Aji(C,y.JSC$12591_encoderRegistry);return V(t)}),3);
F=P.yieldResult;t&&(I=t.changedKeys,Object.keys(I).length>0&&(y.channel.postMessage(I),X_f(y,I)));return P.return(F)})};
lg.prototype.observe=function(y){var W=this;this.observers.push(y);return function(){var V=W.observers.indexOf(y);V>=0&&W.observers.splice(V,1)}};
var ea4=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.kC(y,{mode:"readonly",enableRetries:!0},function(w){return w.JSC$12577_wrapped.objectStore("EntityStore").getAll()}),2);
W=V.yieldResult;return V.return(Promise.all(W.filter(function(w){return!!w}).map(function(w){var t,F;
return _.g(function(I){if(I.nextAddress==1){t=w.key;F=w.entityType;var P=I.yield;var C=s5Q(Y_m(y.JSC$12591_encoderRegistry,w.version),w.data,w.key);return P.call(I,C,2)}return I.return({key:t,entityType:F,data:I.yieldResult})})})))})};
lg.prototype.handleMessage=function(y){X_f(this,y.data)};
var X_f=function(y,W){y=_.N(y.observers);for(var V=y.next();!V.done;V=y.next())V=V.value,V(W)};
lg.prototype.disposeInternal=function(){this.channel.close()};
var Isu;var rz,Ghr,xnj;rz={};_.auQ=(rz.mainVideoEntity="mainVideoEntityActionMetadata",rz.mainPlaylistEntity="mainPlaylistEntityActionMetadata",rz.musicTrack="musicTrackEntityActionMetadata",rz.musicPlaylist="musicPlaylistEntityActionMetadata",rz);Ghr=new _.e9("DOWNLOADS_ENTITY_TYPE_MAP");_.n2=_.qK("","downloadsPageViewConfigurationEntity");xnj=_.qK("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.dxa=_.qK("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.qK("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.qK("SMART_DOWNLOADS_ENABLED","settingEntity");_.qK("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var oon=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var MZt=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Vna={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var bT,WPR,f8s,Lcd;bT=window;_.tx=bT.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.OcG=bT.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.P9;WPR=bT.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||JO;f8s=bT.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||iDf;_.rjK=bT.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.JcR;Lcd=bT.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||$gs;Ic({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 LPy=VLb(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(y){return y}}}),iPL=VLb(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(y){return y}}}),EKR=new Map;var cSP=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],CiG;var bsq=function(y){return _.ig({type:"SET_EPHEMERAL_ACTION",payload:y})};var Q5m={ephemeralAction:null};var Zsm={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Bdd={sharedUi:function(y,W){y=y===void 0?Zsm:y;switch(W.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},y,{animatedThumbnailEnabled:W.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},y,{inlinePreviewEnabled:W.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},y,{currentPageType:W.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},y,{currentPageSubType:W.payload});default:return y}},
a11y:qB({ephemeralAction:function(y,W){y=y===void 0?Q5m.ephemeralAction:y;switch(W.type){case "SET_EPHEMERAL_ACTION":return W.payload;default:return y}}})};var icu={playlistId:"",inviteLinkURL:""};var ykm={};var SAt=qB({continuationCommand:function(y,W){y=y===void 0?ykm:y;switch(W.type){case "SET_CONTINUATION_COMMAND":return W.payload.continuationCommand;default:return y}}});var Tdj={currentFormId:"",commandsMap:{}};var Din=qB({isLeaderTab:function(y,W){y=y===void 0?!0:y;switch(W.type){case "SET_IS_LEADER_TAB":var V,w;return(w=W==null?void 0:(V=W.payload)==null?void 0:V.isLeaderTab)!=null?w:y;default:return y}}});var VFf;_.Wlq=function(y){return _.ig({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:y}})};
VFf=function(y){return _.ig({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:y}})};var YAt=qB({isDesktopSmallWidth:function(y,W){switch(W.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return W.payload.isDesktopSmallWidth;default:return y===void 0?!1:y}},
isShortsActive:function(y,W){switch(W.type){case "SET_IS_SHORTS_ACTIVE":return W.payload.isShortsActive;default:return y===void 0?!1:y}},
isWatchWhileMode:function(y,W){switch(W.type){case "SET_IS_WATCH_WHILE_MODE":return W.payload.isWatchWhileMode;default:return y===void 0?!1:y}},
playerState:function(y,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return y===void 0?-1:y}},
isFullscreen:function(y,W){switch(W.type){case "SET_IS_FULLSCREEN":return W.payload.isFullscreen;default:return y===void 0?!1:y}},
isSmallScreenSqueezeback:function(y,W){switch(W.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return W.payload.isSmallScreenSqueezeback;default:return y===void 0?!1:y}},
isShortsPipActive:function(y,W){switch(W.type){case "SET_IS_SHORTS_PIP_ACTIVE":return W.payload.isShortsPipActive;default:return y===void 0?!1:y}},
isPlaybackStarted:function(y,W){switch(W.type){case "SET_IS_PLAYBACK_STARTED":return W.payload.isPlaybackStarted;default:return y===void 0?!1:y}}});var ejz=function(){return function(y){return function(W){var V=y(W);_.ow(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[W],!0);return V}}};var wGI,xQz;wGI=new _.UT;_.mG=new _.e9("WATCH_PLAYER_PROMISE_TOKEN");_.tF2=new _.UT;_.Fl2=new _.e9("SHORTS_PLAYER_PROMISE_TOKEN");xQz=new _.e9("");var hjd=function(){return function(y){return function(W){W.type==="ENTITY_LOADED"&&_.hs().resolve(_.mG).then(function(V){var w;(w=V.dispatchReduxAction)==null||w.call(V,W)});
return y(W)}}};var ErA={};var lkP=qB({additionalContext:function(y,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var V;return(V=W.payload)!=null?V:"";default:return y===void 0?"":y}},
impersonatedChannelUrl:function(y,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var V;return(V=W.payload)!=null?V:"";default:return y===void 0?"":y}},
selectedVideoIds:function(y,W){y=y===void 0?ErA:y;switch(W.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var V={};return Object.assign({},y,(V[W.payload]=!0,V));case "VIDEO_UNSELECTED":return W=W.payload,y=Object.assign({},y),delete y[W],y;default:return y}}});var xib=qB({parentClickTrackingParams:function(y,W){switch(W.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return W.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return y===void 0?"":y}}});var NX6=function(y){return _.ig({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:y})};var IrR={};var kqb=qB({stepStates:function(y,W){y=y===void 0?IrR:y;switch(W.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var V=y,w=W.payload,t,F,I;y={};W={selectionStates:Object.assign({},(I=(t=V[w.stepId])==null?void 0:t.selectionStates)!=null?I:{},(y[w.token]={isSelected:w.isSelected},y)),userQuery:(F=V[w.stepId])==null?void 0:F.userQuery};t={};return Object.assign({},V,(t[w.stepId]=W,t));case "TALK_TO_RECS_UPDATE_USER_QUERY":return t=y,F=W.payload,I={selectionStates:Object.assign({},
(w=(V=t[F.stepId])==null?void 0:V.selectionStates)!=null?w:{}),userQuery:{userQuery:F.userQuery,token:F.userQueryToken}},V={},Object.assign({},t,(V[F.stepId]=I,V));default:return y}}});var grs,PpI,O9K;grs=function(y){return _.ig({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:y})};
PpI=function(y){return _.ig({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:y})};
_.aD=function(y){return _.ig({type:"SET_CURRENT_PAGE_TYPE",payload:y})};
_.Cpi=function(y){return _.ig({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:y})};
O9K=function(y){return _.ig({type:"SET_CHIP_BAR_IS_STICKY",payload:y})};var MLG={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"};_.vrf=function(y){return _.ig({type:"SET_PLAYER_STATE",payload:{playerState:y}})};var dDR=[],LlJ={width:0,height:0};var sbu=qB({isTheaterMode:function(y,W){y=y===void 0?_.e("kevlar_disable_theater_mode_persistence")?!1:_.W4("START_IN_THEATER_MODE"):y;switch(W.type){case "SET_IS_THEATER_MODE":return W.payload.isTheaterMode;default:return y}},
isWatchActive:function(y,W){switch(W.type){case "SET_IS_WATCH_ACTIVE":return W.payload.isWatchActive;default:return y===void 0?!1:y}},
isLearningJourneyActive:function(y,W){switch(W.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return W.payload.isLearningJourneyActive;default:return y===void 0?!1:y}},
isWatchFullscreen:function(y,W){switch(W.type){case "SET_IS_WATCH_FULLSCREEN":return W.payload.isWatchFullscreen;default:return y===void 0?!1:y}},
isWatchNarrowWidth:function(y,W){switch(W.type){case "SET_IS_WATCH_NARROW_WIDTH":return W.payload.isWatchNarrowWidth;default:return y===void 0?!1:y}},
isWatchRetroMode:function(y,W){switch(W.type){case "SET_IS_WATCH_RETRO_MODE":return W.payload.isWatchRetroMode;default:return y===void 0?!1:y}},
isLiveChatCollapsed:function(y,W){switch(W.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return W.payload.isLiveChatCollapsed;default:return y===void 0?!1:y}},
openEngagementPanels:function(y,W){y=y===void 0?dDR:y;var V=[].concat(_.GC(y));switch(W.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return V.push(W.payload.panelToAdd),V;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return V.splice(V.indexOf(W.payload.panelToRemove),1),V;default:return y}},
playerState:function(y,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return y===void 0?-1:y}},
watchScrollTop:function(y,W){switch(W.type){case "SET_WATCH_SCROLL_TOP":return W.payload.watchScrollTop;default:return y===void 0?0:y}},
watchWindowSize:function(y,W){y=y===void 0?LlJ:y;switch(W.type){case "SET_WATCH_WINDOW_SIZE":return W.payload.watchWindowSize;default:return y}}});var zGz={feedbackTokens:[]};var ASn=qB({surveyFeedbackData:function(y,W){y=y===void 0?zGz:y;switch(W.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return W.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},y,W.payload);default:return y}}});var Uiz={};var KKd=void 0;_.e("web_enable_redux_store_on_demand")||(KKd=op4());var ckK=function(y,W,V){var w=this;this.listId=y;this.JSC$12725_updateCallback=W;this.isOfflineVideoCallback=V;_.dP().subscribe(function(){w.handleUpdate()})};
ckK.prototype.getPlaylistData=function(){var y=_.dP().getState().entities;if(this.listId&&this.listId!=="PPSV"){var W=nou(y,this.listId,!0),V=_.qK(this.listId,"mainPlaylistEntity"),w,t;y=y==null?void 0:(w=y.mainPlaylistEntity)==null?void 0:(t=w[V])==null?void 0:t.title;return pBn(W,y,this.listId)}W=_.qVy(o0v(y));y=_.qVy(_.HE(y));y=W.concat(y);return pBn(y)};
ckK.prototype.getPlaylistId=function(){return this.listId};
ckK.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12725_updateCallback(this.listId,this.getPlaylistData(),{})};var QB=function(y,W,V,w){w=w===void 0?[]:w;this.JSC$12728_playlistNetworkManager=y;this.listId=W;this.JSC$12728_updateCallback=V;this.videoIds=w;this.pendingUpdates=[];this.currentIndex=0};
QB.prototype.JSC$12728_setCurrentIndex=function(y){this.currentIndex=y};
QB.prototype.setListId=function(y){this.listId=y};
var eG2=function(y,W){y.currentCreateRequest&&y.currentCreateRequest.cancel(W);y.currentUpdateRequest&&y.currentUpdateRequest.cancel(W);y.currentRefreshRequest&&y.currentRefreshRequest.cancel(W)};
QB.prototype.delete=function(){eG2(this,"PROXY DELETED")};
QB.prototype.addVideos=function(y,W,V){var w=this;V!==void 0?this.videoIds.splice.apply(this.videoIds,[V,0].concat(_.GC(y))):this.videoIds.push.apply(this.videoIds,_.GC(y));this.listId||this.currentCreateRequest?(y.forEach(function(t,F){t={addedVideoId:t,action:"ACTION_ADD_VIDEO"};V&&(t.addedVideoPosition=V+F);w.pendingUpdates.push(t)}),ZN(this)):hGE(this,W.onCreateListCommand)};
var orm=function(y,W,V,w,t){idd(y.videoIds,W,V);W>y.currentIndex&&V<=y.currentIndex?y.JSC$12728_setCurrentIndex(y.currentIndex+1):W===y.currentIndex?y.JSC$12728_setCurrentIndex(V):W<y.currentIndex&&V>=y.currentIndex&&y.JSC$12728_setCurrentIndex(y.currentIndex-1);y.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:w,movedSetVideoIdPredecessor:t});ZN(y)},hGE=function(y,W){eG2(y,"OBSOLETE");
y.currentCreateRequest=KlA(y.JSC$12728_playlistNetworkManager,W,y.videoIds);_.$s(y.currentCreateRequest,function(){y.currentCreateRequest=void 0}).then(function(V){y.setListId(V.playlistId);
y.pendingUpdates.length>0?ZN(y):pGI(y)})},ZN=function(y){if(y.pendingUpdates.length!==0&&(y.currentRefreshRequest&&y.currentRefreshRequest.cancel("OBSOLETE"),!y.currentUpdateRequest&&!y.currentCreateRequest)){var W=y.pendingUpdates.splice(0,y.pendingUpdates.length);
y.currentUpdateRequest=y.JSC$12728_playlistNetworkManager.updatePlaylist(y.listId,W);_.$s(y.currentUpdateRequest,function(){y.currentUpdateRequest=void 0}).then(function(){y.pendingUpdates.length>0?ZN(y):pGI(y)}).thenCatch(function(){y.pendingUpdates.unshift.apply(y.pendingUpdates,_.GC(W))})}},pGI=function(y){y.currentRefreshRequest=_.i92(y.JSC$12728_playlistNetworkManager,y.listId,y.currentIndex,y.videoIds[y.currentIndex]);
_.$s(y.currentRefreshRequest,function(){y.currentRefreshRequest=void 0}).then(function(W){y.JSC$12728_updateCallback(W.playlistId,W.playlistPanelRenderer,W.autoplayRenderer)})};
QB.prototype.size=function(){return this.videoIds.length};var frs=function(y,W,V,w){w=w===void 0?[]:w;QB.call(this,y,W,V,w);this.JSC$12728_playlistNetworkManager=y;this.listId=W;this.JSC$12728_updateCallback=V;this.videoIds=w};
_.p(frs,QB);_.yo=function(y,W,V,w,t,F,I){t=t===void 0?[]:t;I=I===void 0?iW:I;QB.call(this,y,W,V,t);this.JSC$12728_playlistNetworkManager=y;this.listId=W;this.JSC$12728_updateCallback=V;this.onAuthChange=w;this.videoIds=t;this.storage=F;this.cookieReader=I;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.q4(_.HU,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p(_.yo,QB);_.E=_.yo.prototype;_.E.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.q4(_.HU,this.checkLoggedInStatusChange.bind(this),1E3)};
_.E.JSC$12728_setCurrentIndex=function(y){QB.prototype.JSC$12728_setCurrentIndex.call(this,y);this.store()};
_.E.delete=function(){_.HU.cancelJob(this.queueSapisIdJob);QB.prototype.delete.call(this)};
_.E.setListId=function(y){QB.prototype.setListId.call(this,y);this.store()};
_.E.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var TXi=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],mD6=["playerResponse","videoDetails"],MF2=["response","currentVideoEndpoint","watchEndpoint","videoId"],qSE=["response","currentVideoEndpoint","watchEndpoint","playlistId"],UDJ=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],uHi=["response","contents","twoColumnWatchNextResults","playlist","playlist"],SS6=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
DDz=["response","contents","twoColumnWatchNextResults"];var WP={},Mtt=(WP.WEB_UNPLUGGED="^unplugged/",WP.WEB_UNPLUGGED_ONBOARDING="^unplugged/",WP.WEB_UNPLUGGED_OPS="^unplugged/",WP.WEB_UNPLUGGED_PUBLIC="^unplugged/",WP.WEB_CREATOR="^creator/",WP.WEB_KIDS="^kids/",WP.WEB_EXPERIMENTS="^experiments/",WP.WEB_MUSIC="^music/",WP.WEB_REMIX="^music/",WP.WEB_MUSIC_EMBEDDED_PLAYER="^music/",WP.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",WP);var Pan,KlA;Pan=function(y,W){this.networkManager=y;this.innertubeTransportService=W};
KlA=function(y,W,V){if(!_.h(W,_.E8))return _.Gb(Error("Of"));_.h(W,_.E8).videoIds=V;V={create_playlist_title:_.u5("QUEUE",void 0,"Queue")};return T04(_.OP(y.innertubeTransportService,W,V),ihR)};
_.i92=function(y,W,V,w){W={videoId:w,playlistId:W,playlistIndex:V};V=_.LO(xd6);return T04(_.Vo(y.innertubeTransportService,W,V),mCa)};
Pan.prototype.updatePlaylist=function(y,W){return T04(_.OP(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:y,actions:W}}),f0b)};var lrJ=function(y){this.storage=y},xDz;
lrJ.prototype.store=function(y,W){W=W===void 0?0:W;if(this.storage&&y.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",y),this.storage.set("TLPQindex",String(W)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(V){}};
lrJ.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
lrJ.prototype.getPlaylistId=function(){if(!this.storage)return null;var y=null;try{y=this.storage.get("TLPQplaylist")}catch(W){}return y};var Smb=["navigationEndpoint","watchEndpoint","videoId"],uVu=["nextButtonVideo","watchEndpoint","videoId"];_.bN=new _.e9("NETWORK_TOKEN");_.hn=new _.e9("PAGE_TOKEN");_.wd=new _.e9("PLAYLIST_TOKEN");var kXz;kXz=new _.e9("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.QY=new _.e9("INNERTUBE_TRANSPORT_TOKEN");var szf,tS,YSR,BXq,RGQ,jzz;szf=new Set(["ci","cr","carml"]);tS=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12775_parkedJobs=new Map;this.parkedProcessors=new Map};
_.FS=function(){tS.instance||(tS.instance=new tS);return tS.instance};
tS.prototype.onAny=function(y){return _.Aki(this,y,2)};
tS.prototype.parkOrScheduleJob=function(y,W,V,w,t){_.EA(this,V)?_.Xu().addJob(y,W,w):(t&&(y=YSR(y),BXq(this,y,W,V,t)),t=this.JSC$12775_parkedJobs.get(V),t||(this.JSC$12775_parkedJobs.set(V,[]),t=this.JSC$12775_parkedJobs.get(V)),t.push({job:y,priority:W,delay:w}))};
tS.prototype.addListener=function(y,W,V){V&&(W=YSR(W),BXq(this,W,0,y,V));V=this.parkedProcessors.get(y);V||(this.parkedProcessors.set(y,[]),V=this.parkedProcessors.get(y));V.push(W)};
tS.prototype.processSignal=function(y){if(!_.EA(this,y)){this.inProgressSignals.add(y);var W=this.JSC$12775_parkedJobs.get(y);if(W){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,_.Xu().addJob(V.job,V.priority,V.delay);this.JSC$12775_parkedJobs.delete(y)}if(W=this.parkedProcessors.get(y)){W=_.N(W);for(V=W.next();!V.done;V=W.next())V=V.value,V();this.parkedProcessors.delete(y)}this.signals.push(y);this.inProgressSignals.delete(y)}};
_.EA=function(y,W){return szf.has(W)||_.W4("IS_HOMEPAGE_COLD")||_.W4("IS_RESULTS_PAGE_COLD")||_.W4("IS_WATCH_PAGE_COLD")?y.signals.indexOf(W)>=0:!0};
YSR=function(y){var W=!1;return function(){W||(W=!0,y())}};
BXq=function(y,W,V,w,t){if(Jks.has(w))_.Xu().addJob(W,V,t);else{var F=y.compoundSignals.get(w);F&&_.Xu().addJob(function(){_.EA(y,w)||(F.isTimeoutConditionSatisfied?_.Xu().addJob(W,V):F.timeoutConditionObservers.push(function(){_.Xu().addJob(W,V)}))},V,t)}};
_.Aki=function(y,W,V){if(W.length>1){var w=[],t=Object.create(null);W=_.N(W);for(var F=W.next();!F.done;F=W.next())F=F.value,t[F]||(w.push(F),t[F]=!0);W=w}if(W.length===1)return W[0];F=W;w="";t=V===2?"|":"&";F.sort();F=_.N(F);for(var I=F.next();!I.done;I=F.next())w+=I.value+t;if(!y.compoundSignals.get(w)){t=0;F=[];I=_.N(W);for(var P=I.next();!P.done;P=I.next())P=P.value,t++,_.EA(y,P)||F.push(P);(V=V===2)&&t>F.length||!V&&!F.length?y.signals.push(w):RGQ(y,w,V,W,F)}return w};
RGQ=function(y,W,V,w,t){var F=t.length,I=function(){V||--F===0?y.processSignal(W):jzz(y,W)};
t=_.N(t);for(var P=t.next();!P.done;P=t.next())y.addListener(P.value,I);y.compoundSignals.set(W,{signals:w,isOnAny:V,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});jzz(y,W)};
jzz=function(y,W){if(!_.EA(y,W)){var V=y.compoundSignals.get(W);if(V&&!V.isTimeoutConditionSatisfied){for(var w=!1,t=0,F=0,I=_.N(V.signals),P=I.next();!P.done;P=I.next()){var C=P.value;P=!_.EA(y,C);Jks.has(C)?w=!0:(C=y.compoundSignals.get(C))?P&&!C.isTimeoutConditionSatisfied&&(F++,V.isInitialized||C.timeoutConditionObservers.push(function(){jzz(y,W)})):P&&t++}V.isInitialized=!0;
V.isOnAny?w&&(V.isTimeoutConditionSatisfied=!0):t===0&&F===0&&(V.isTimeoutConditionSatisfied=!0);if(V.isTimeoutConditionSatisfied)for(V=_.N(V.timeoutConditionObservers),w=V.next();!w.done;w=V.next())w=w.value,w()}}};
tS.prototype.processSignal=tS.prototype.processSignal;tS.prototype.parkOrScheduleJob=tS.prototype.parkOrScheduleJob;tS.prototype.onAny=tS.prototype.onAny;_.dE("ytsignals.getInstance",_.FS);tS.prototype.onAny=tS.prototype.onAny;tS.prototype.parkOrScheduleJob=tS.prototype.parkOrScheduleJob;tS.prototype.processSignal=tS.prototype.processSignal;var Jks=new Set(["eop","eocs","dl","pcl"]);_.VH=new _.e9("MINIPLAYER_SERVICE");var Ni,$DI,nrs;Ni=function(y,W,V){var w=_.tL.getInstance();if(!xDz){var t=new W_R;var F=void 0,I=_.yC("ID_TOKEN");I&&t.isAvailable()&&(F=new nB(t,"yt-queue"+I));xDz=new lrJ(F)}t=xDz;F=_.FS();this.JSC$12782_actionRouter=w;this.pageManager=y;this.playlistManager=W;this.JSC$12782_playlistNetworkManager=V;this.storage=t;this.signals=F;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Ib=function(){if(!$DI){var y=_.hs(),W=y.resolve(_.eX(_.hn)),V=y.resolve(_.eX(_.bN)),w=y.resolve(_.eX(_.wd));y=y.resolve(_.QY);$DI=new Ni(W,w,new Pan(V,y))}return $DI};
nrs=function(y,W,V){if(V){var w;if(((w=y.responsePlaylistData)==null?void 0:w.playlistId)!==V)return}y.responsePlaylistData&&(V=AZy(W,y.responsePlaylistData),y.responsePlaylistData=(0,_.Gc.unsafeClone)(y.responsePlaylistData),B0j(y.responsePlaylistData,V));V=y.temporaryItems.findIndex(function(t){return t.videoId===W});
V>-1&&y.temporaryItems.splice(V,1);_.gd(y,_.PP(y,y.response?y.response.autoplayRenderer:void 0))};
_.H9s=function(y,W){if(y.responsePlaylistData){var V=YmR(W,y.responsePlaylistData);B0j(y.responsePlaylistData,V);if(y.queueProxy){var w=y.queueProxy;V<0||(w.videoIds.splice(V,1),V<w.currentIndex&&w.JSC$12728_setCurrentIndex(w.currentIndex-1),w.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:W}),ZN(w))}}_.gd(y,_.PP(y,y.response?y.response.autoplayRenderer:void 0))};
Ni.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.gd(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Ni.prototype.setPlaylistData=function(y,W,V){this.temporaryItems=[];this.listId=y;this.responsePlaylistData=W;_.gd(this,_.PP(this,V))};
var XGQ=function(y){return(y==null?0:y.playlistId)?y.playlistId:"PPSV"},ar2=function(y){return y&&y.playlistId?y.playlistId==="PPSV"?!0:jxL(_.dP().getState().entities,y.playlistId):!1};
Ni.prototype.isPlayingOfflineVideo=function(){return this.response?ar2(this.response):!1};
Ni.prototype.closeMiniplayer=function(y){var W=this.queueProxy&&this.queueProxy.size()<=1,V=_.hs().resolve(_.VH);if(!this.queueProxy||W)this.queueProxy&&this.clearQueue(),V.close(!0);else{V.pipController.getWindow()&&window.focus();W=this.responsePlaylistData;var w=this.temporaryItems.length+(W&&W.contents?W.contents.length:0);W=_.u5("QUEUE_CLEARED_UNPLURALIZED")||_.SM("QUEUE_CLEARED",w);W=_.eW(W);V=_.u5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");w=_.u5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.SM("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",w);var t=_.u5("MINIPLAYER_CLOSE",void 0,"Close"),F=_.u5("CANCEL",void 0,"Cancel");_.Zg(this.JSC$12782_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.CO(V),dialogMessages:[_.CO(w)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.CO(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
W]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.CO(F)}}}}}}],y)}};
_.PP=function(y,W){var V={},w=y.response;V.autoplayRenderer=W;if(!y.responsePlaylistData&&!y.temporaryItems.length)return!w||!w.hasRelatedVideoData&&_.e("kevlar_prefetch_data_augments_network_data")||(V.playerData={rvs:w.relatedVideoArgs,endScreenRenderer:w.endScreenRenderer}),V;V.playerData={};if(y.index===void 0)return _.ap(Error("Qf")),V;V.panel=y.responsePlaylistData?(0,_.Gc.unsafeClone)(y.responsePlaylistData):{titleText:_.CO(_.u5("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
W=V.panel;if(W.contents)for(var t=_.N(y.temporaryItems),F=t.next();!F.done;F=t.next())W.contents.push({playlistPanelVideoRenderer:F.value});y.queueProxy&&w&&w.playingVideo&&w.playingVideoId&&!sY4(w.playingVideoId,V.panel)&&(W=w.playingVideo,t=V.panel,F=y.index,t.contents&&t.contents.splice(F===void 0?0:F,0,{playlistPanelVideoRenderer:W}));w&&w.playingVideoId&&(W=y.index,t=V.panel,W=!t.contents||W>=t.contents.length?void 0:t.contents[W].playlistPanelVideoRenderer,W&&W.videoId===w.playingVideoId||(W=
AZy(w.playingVideoId,V.panel),y.index=W!==-1?W:y.index?y.index-1:0));W=k5y(y.index+1,V.panel);t=void 0;y.index>0&&(t=k5y(y.index-1,V.panel));if(t||W)V.autoplayRenderer=DCv(W,t,V.autoplayRenderer);!W&&(w==null?0:w.relatedVideoArgs)&&(V.playerData.rvs=w.relatedVideoArgs);w=w?w.playlistIndexOffset:0;y.queueProxy?jYt(V.panel,y.index,w,xCn,!0,!0,!0):jYt(V.panel,y.index,w);V.playerData.playlistPanelRenderer=V.panel;return V};
Ni.prototype.openToast=function(y){_.hs().resolve(_.VH).openToast(y,_.u5("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Ni.prototype.isMiniplayerActive=function(){return _.hs().resolve(_.VH).isMiniplayerActive()};
_.gd=function(y,W){y.playlistManager.setAutoplayRenderer(W.autoplayRenderer||null);y.playlistManager.setPlaylistData(W.panel||null);W.playerData&&y.playlistManager.setPlayerPlaybackControlData(W.playerData)};var npP="#";var GXQ={},rkK={},b9J={},QzI={},Z9f={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:(GXQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",GXQ),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:(rkK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",rkK),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:(b9J.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",b9J),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:(QzI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",QzI),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 m$L=[{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:Z9f},{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:Z9f}}];var zUv;_.qo=[[["bmQjZ3E4eTdkcmNzNzNua2k=","dWUjNGdnM2N6Y2RoNXJmdmFs"],"UlQjcGtzOHluNTdkaHh2QURfUExBQ0VNRU5UX0tJTkRfU1RB"]];
zUv=[[["cnkjODVwbng4b2Zpazg0cHJpbWE=",null,null],[null,["ZXIjMjI5YmZlNnBoN3poeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","cGUjNTU3N3V0c2M4YWdxc3R5bGUtc2Nv"],null],["YWQjb293N25xYWZzeDA1bWFzdGhlYWQt",["ZXIjcm1td21iNnJtMmU3eXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjc2o0bjhrNWV2ZW50eXRkLXJpY2gtZ3JpZC1yZW5kZXI=","cGUjaGpxMnZlbjBybHIzc3R5bGUtc2Nv"],null],[null,["ZXIjM3lvNXNwb2EzMjJkeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","cGUja3c2M2VqdThubHhmc3R5bGUtc2Nv"],null],[null,["ZXIjZWdzODFsc3N2bHVseXRkLWFkLXNsb3QtcmVuZGVy"],
null]],[["ZHMjY2pldmx4bHY3YTFzcGxheWVyLWE=",null,null]]];_.Mo=["a3Mja2kzYXRlemhvcDNqZ2xvYmFsQ2FsbGJhYw==","ZWQjcTFrYWJ0dGZxdmQzb25BYm5vcm1hbGl0eURldGVjdA==","aXAja2p3N3M1YnBrN3Vyb25BZFNr","c2UjOGEyMmNscXUzbm5kcmF3X3BsYXllcl9yZXNwb24=","dHMjcGw0dnNrZDdhaHlpYWRTbG8="];_.Cc="a3Mja2kzYXRlemhvcDNqZ2xvYmFsQ2FsbGJhYw== ZWQjcTFrYWJ0dGZxdmQzb25BYm5vcm1hbGl0eURldGVjdA== aXAja2p3N3M1YnBrN3Vyb25BZFNr c2UjOGEyMmNscXUzbm5kcmF3X3BsYXllcl9yZXNwb24= a3Mjb2JyYTJ6Mms5c2l6d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzXw== ZWYjajAydjFuY2w0YWFmYWJfc2Ff dHMjcGw0dnNrZDdhaHlpYWRTbG8=".split(" ");var OA;OA=function(y,W,V){this.jua=y;this.isAsync=W;this.n4O=V};
_.YRz=[new OA("b.f_",!1,0),new OA("j.s_",!1,2),new OA("r.s_",!1,4),new OA("e.h_",!1,6),new OA("i.s_",!0,8),new OA("s.t_",!1,10),new OA("p.h_",!1,12),new OA("s.i_",!1,14),new OA("f.i_",!1,16),new OA("a.b_",!1,18),new OA("a.o_",!1),new OA("g.o_",!1,22),new OA("p.i_",!1,24),new OA("p.m_",!1),new OA("n.k_",!0,20),new OA("i.f_",!1),new OA("a.s_",!0),new OA("m.c_",!1),new OA("n.h_",!1,26),new OA("o.p_",!1),new OA("m.p_",!0,28),new OA("o.a_",!1),new OA("d.p_",!1),new OA("e.i_",!1)].reduce(function(y,W){y[W.jua]=
W;return y},{});var y4J=function(){};
y4J.prototype.flush=function(y,W){y=y===void 0?[]:y;W=W===void 0?!1:W;if(_.e("enable_client_streamz_web")){y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=XZ2(V.value),this.rootSpec&&_.sx(V,2,this.rootSpec),V={serializedIncrementBatch:_.Gj(V.JSC$9532_serializeBinary())},_.Hp("streamzIncremented",V,{sendIsolatedPayload:W})}};
var G5v=function(){};
_.p(G5v,y4J);var Wsf=function(y){var W=new B32;var V=new sGA;V=_.jD(V,1,"botguard");y=_.jD(V,2,y);this.rootSpec=_.A_(W,1,J_J,y)};
_.p(Wsf,y4J);var fO,VcI=new Map;var o5z,bht,E54,yCv,wKj,d$L,pKu,OKd;o5z=2;bht=2;E54=2;yCv=2;wKj=2;d$L=2;pKu=2;OKd=new RpQ;var tcA,Fs6,Ehi;tcA=function(){this.ongoingFlowNonces=new Map};
_.DP=function(){Fs6||(Fs6=new tcA);return Fs6};
_.uN=function(y,W,V){return{eventType:{flowEventNamespace:y,flowEventType:W},metadata:V,statusCode:void 0,csn:void 0,can:void 0}};
_.JCv=function(y,W){var V=_.DP(),w=Ehi(V,W,!0);_.SW(V,y,W,w)};
_.SW=function(y,W,V,w){y={flowNonce:w||Ehi(y,V),flowType:V,flowEventType:W.eventType};W.metadata&&(y.flowMetadata=W.metadata);W.statusCode!==void 0&&(y.flowEventStatus=W.statusCode);W.csn&&(y.csn=W.csn);W.can&&(y.can=W.can);_.Hp("flowEvent",y,void 0)};
Ehi=function(y,W,V){V=V===void 0?!1:V;var w=y.ongoingFlowNonces.get(W);if(!w||V)w=$y(16),y.ongoingFlowNonces.set(W,w);return w};_.Nkf=new JG2;var n5j={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var vP=function(y,W,V,w,t,F,I){V=V===void 0?!1:V;w=w===void 0?!1:w;F=F===void 0?_.Ib():F;this.hasRun=!1;this.d9O=y;this.pLF=W;this.bMq=V;this.fromHistory=w;this.previousVideoId=t;this.fXU=F;this.tempData=I;this.yS9=new _.juf};
_.p(vP,hg);vP.prototype.validate=function(y){return!(!y.data.playerResponse||y.data.page!=="watch"&&y.data.page!=="learning_journey_watch"&&y.data.page!=="shorts"||this.hasRun)};
vP.prototype.handle=function(y){var W=this,V=_.h(y.endpoint,_.Iw),w=_.h(y.endpoint,_.Jx);if(_.e("kevlar_continue_playback_without_player_response")&&(V==null?0:V.videoId)&&this.previousVideoId&&(V==null?void 0:V.videoId)===this.previousVideoId&&(V==null?0:V.continuePlayback)&&!this.fromHistory)this.d9O.resolve();else{var t={};V?t.watch_endpoint=V:w&&(t.watch_endpoint=w,w.endTimeSeconds&&(t.end=w.endTimeSeconds));y.data.page==="watch"?(y.data.filler||this.bMq||(_.G2("cfg"),_.tL.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(t,IUE(this,y.endpoint)),_.e("enable_masthead_quartile_ping_fix")&&Object.assign(t,ghz(this)),Object.assign(t,void 0),y.data.forceExternalPlaylist&&(t.external_list=!0)):y.data.page==="shorts"?_.tL.getInstance().triggerAction("yt-start-loading-shorts"):y.data.page==="learning_journey_watch"&&_.tL.getInstance().triggerAction("yt-start-loading-learning-journey");if(V=this.pLF()){try{V.loadVideoWithPlayerResponse(y.data.playerResponse,t),V.getPlayerPromise().then(this.d9O.resolve)}catch(F){_.ap(F),
this.d9O.resolve()}this.hasRun=!0;V.getPlayerPromise().then(function(F){F.addEventListener("onAbnormalityDetected",function(){var I=y.data.playerResponse,P=F.getVideoData().cpn;pKu=0;_.wv6=P;if(P=AC4(I))W.yS9.increment("IN_PLAYER"),_.lN(5),_.e("ab_st_vid_ks")?F.pauseVideo(!0):F.stopVideo(),I.playabilityStatus=Object.assign({},I.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:P}}),I.videoDetails=void 0,_.tL.getInstance().triggerOptionalAction("yt-updated-playability-status",
I.playabilityStatus)})})}else _.rQ(Error("Tf"))}};
var IUE=function(y,W){var V=_.h(W,_.Iw);if(W&&V&&V.playlistId&&V.videoId&&(y=y.fXU,y.queueProxy?(y=y.queueProxy,V=y.listId===V.playlistId?y.attributionData.get(V.videoId):void 0):V=void 0,V))return{queue_info:V}},ghz=function(y){var W;
if((W=y.tempData)==null?0:W.adpings)return{adpings:y.tempData.adpings}};var dd=function(y,W,V){this.hasRun=!1;this.cSU=y;this.c6L=W;this.uiE=V};
_.p(dd,hg);dd.prototype.validate=function(y){return!!_.Gc.getValueByKeys.apply(null,[y.data].concat(_.GC(DDz)))};
dd.prototype.handle=function(y){var W=this;this.cSU.promise.then(function(){var V=y.data;var w=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(TXi))),t=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(uHi))),F=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(MF2)));var I=(I=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(mD6))))?{videoId:I.videoId,thumbnail:I.thumbnail,title:I.title?_.CO(I.title):void 0,shortBylineText:I.author?_.CO(I.author):void 0}:void 0;var P=void 0;_.e("web_get_playlist_id_from_current_endpoint_ks")||
(P=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(qSE))));var C=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(SS6))),d=_.Gc.getValueByKeys.apply(null,[V].concat(_.GC(UDJ))),L=!!C||!!d&&!!d.results&&d.results.length>0,z=0;t&&t.currentIndex&&t.localCurrentIndex&&(z=t.currentIndex-t.localCurrentIndex);t&&t.playlistId&&(P=t.playlistId);V={rawResponse:V,autoplayRenderer:w,hasRelatedVideoData:L,playingVideo:I,playingVideoId:F,playlistPanelRenderer:t,playlistId:P,playlistIndex:t&&t.currentIndex,relatedVideoArgs:C,
endScreenRenderer:d,playlistIndexOffset:z};a:{w=W.uiE;t=W.c6L;w.response=V;if(ar2(V))w.downloadPlaylistProxy&&w.downloadPlaylistProxy.getPlaylistId()===XGQ(V)||(w.downloadPlaylistProxy=new ckK(XGQ(V),w.setPlaylistData.bind(w),w.isPlayingOfflineVideo.bind(w))),w.responsePlaylistData=w.downloadPlaylistProxy.getPlaylistData(),w.listId=XGQ(V),w.index=0;else if(V.playlistPanelRenderer&&V.playlistId&&V.autoplayRenderer)V.playlistId.startsWith("TLPQ")?w.queueProxy?w.listId===V.playlistId?(w.index=V.playlistIndex,
w.responsePlaylistData=V.playlistPanelRenderer,w.queueProxy.JSC$12728_setCurrentIndex(w.index)):V.playingVideoId&&w.index!==void 0&&t.clientParams.autoSaveToQueue&&(w.index+=1,w.queueProxy.JSC$12728_setCurrentIndex(w.index),w.queueProxy.addVideos([V.playingVideoId],{},w.index)):(w.queueProxy=new _.yo(w.JSC$12782_playlistNetworkManager,V.playlistId,w.setPlaylistData.bind(w),w.clearQueue.bind(w),_.JZu(V.playlistPanelRenderer),w.storage),w.responsePlaylistData=V.playlistPanelRenderer,w.listId=V.playlistId,
w.index=V.playlistIndex):(w.index=V.playlistIndex,w.listId!==V.playlistId&&w.clearQueue(),w.responsePlaylistData=V.playlistPanelRenderer,w.listId=V.playlistId,w.playlistProxy=new frs(w.JSC$12782_playlistNetworkManager,V.playlistId,w.setPlaylistData.bind(w),_.JZu(V.playlistPanelRenderer)));else if(!w.queueProxy)w.responsePlaylistData=void 0;else if(V.playingVideoId&&t.clientParams.autoSaveToQueue){if(w.index===void 0){_.ap(Error("Pf"));w.clearQueue();break a}w.queueProxy.videoIds.includes(V.playingVideoId)||
(w.index+=1,w.queueProxy.JSC$12728_setCurrentIndex(w.index),w.queueProxy.addVideos([V.playingVideoId],{},w.index))}_.gd(w,_.PP(w,w.response.autoplayRenderer))}})};var Pq6=function(y,W){W=W===void 0?_.Ib():W;x0.call(this);this.s7.push(new dd(this.i3,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},W));this.s7.push(new vP(this.i3,y,!1,!1));_.e("web_response_commands_chunk_processor")&&this.s7.push(new k0)};
_.p(Pq6,x0);Pq6.prototype.processChunk=function(y){y&&y.data.player===void 0&&this.i3.resolve();x0.prototype.processChunk.call(this,y)};var Lc=function(y,W){y=y===void 0?{layer:0}:y;this.hasRun=!1;this.createScreenConfig=y;this.xd9=W};
_.p(Lc,hg);Lc.prototype.validate=function(y){return!(this.hasRun||!y.endpoint)};
Lc.prototype.handle=function(y){var W=_.BC(),V,w,t=(w=_.h((V=y.endpoint)==null?void 0:V.commandMetadata,_.dw))==null?void 0:w.rootVe;this.xd9&&t?_.qx(W,t,this.xd9,this.createScreenConfig):W3z(W,y.endpoint,this.createScreenConfig);this.hasRun=!0};var zq=function(y,W){this.hasRun=!1;this.zr9=y;this.previousVideoId=W};
_.p(zq,hg);zq.prototype.validate=function(y){return _.e("kevlar_continue_playback_without_player_response")&&(y=_.h(y.endpoint,_.Iw),(y==null?0:y.videoId)&&this.previousVideoId&&(y==null?void 0:y.videoId)===this.previousVideoId&&(y==null?0:y.continuePlayback))?!1:this.zr9.e2D===0};
zq.prototype.handle=function(y){_.tL.getInstance().triggerAction("yt-stop-old-player",y.data,!0)};var Cq6=function(y){y=y===void 0?{layer:0}:y;x0.call(this);this.s7.push(new zq(this));this.s7.push(new Lc(y));this.s7.push(new lT(y))};
_.p(Cq6,x0);var Otr=function(){this.hasRun=this.hasRun=!1};
_.p(Otr,hg);Otr.prototype.validate=function(y){return!this.hasRun&&!(!y.data.csn||!y.data.rootVe)};
Otr.prototype.handle=function(y){this.hasRun=!0;_.Gy(y.data.csn,y.data.rootVe,3)};var vhR=function(){hg.apply(this,arguments)};
_.p(vhR,hg);vhR.prototype.validate=function(y){return!!y.data.preconnect};
vhR.prototype.handle=function(y){_.aw("bc");y=_.N(y.data.preconnect);for(var W=y.next();!W.done;W=y.next())W=W.value,(new Image).src=W};var dFK=function(y,W,V){V=V===void 0?{layer:0}:V;x0.call(this);this.s7.push(new vP(this.i3,y));this.s7.push(new Lc(V));this.s7.push(new lT(V))};
_.p(dFK,x0);var Ls6=function(y,W,V,w,t){V=V===void 0?{layer:0}:V;w=w===void 0?_.Ib():w;x0.call(this);var F=!!W&&!!W.clientParams&&!!W.clientParams.miniplayer;F&&this.s7.push(new Otr);this.s7.push(new dd(this.i3,W,w));this.s7.push(new vhR);var I,P;this.s7.push(new vP(this.i3,y,F,!((I=W.clientParams)==null||!I.fromHistory),(P=W.clientParams)==null?void 0:P.previousVideoId,w,W.tempData));var C;this.s7.push(new zq(this,(C=W.clientParams)==null?void 0:C.previousVideoId));var d;(d=W.clientParams)!=null&&d.fromHistory||
(V.layer||(V=Object.assign({},V,{layer:F?3:0})),this.s7.push(new Lc(V,t)),this.s7.push(new lT(V)));_.e("web_response_commands_chunk_processor")&&this.s7.push(new k0)};
_.p(Ls6,x0);var cP,erI;cP={};
_.zr6=(cP["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},cP["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},cP["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},cP["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cP["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cP["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},cP["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},cP);_.eL=new _.Zb("yt-edu");_.c4Q=function(){this.JSC$12883_eduDisplayedThisLoad_={}};
erI=function(y){var W=_.c4Q.getInstance();var V=_.pB("kevlar_tooltip_impression_cap");W=V&&parseInt(_.eL.get(y+"-impression")||0,10)>=V||_.eL.get(y+"-dismissed")?!1:(V=_.zr6[y])&&!W.JSC$12883_eduDisplayedThisLoad_[V.setKey||y]&&(V.titleText&&_.u5(V.titleText)||V.bodyText&&_.u5(V.bodyText))?!0:!1;if(!W)return null;W=_.zr6[y];if(!W)return null;V=W.bodyText?_.u5(W.bodyText):void 0;var w=W.titleText?_.u5(W.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:W.position,popup:{bubbleHintRenderer:{text:w?
_.CO(w):void 0,detailsText:V?_.CO(V):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.CO(_.u5("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:y}}]}}}}}}}},{eduImpressionAction:{key:y}}]};
_.oX(_.c4Q);var RUv=!1;for(var hrJ="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ohR=[],hS=6;hS>=1;hS--)ohR.push({columnCount:hS,query:hS==1?0:hS*2*107-4+32,className:"grid-"+hS+"-columns",width:hS*2*107+"px"});_.pvr=function(y){this.actionRouter_=y=y===void 0?_.tL.getInstance():y;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.KsR(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.KsR=function(y){var W=y.miniGuideVisible_?72:0,V=y.documentWidth_-(y.guidePersistentAndVisible_?240:W);return ohR.find(function(w){return V>w.query})};
_.oX(_.pvr);var it2=function(){var y=this;this.JSC$12895_keyboardInUse=!1;document.addEventListener("keydown",function(){y.onKeydown()});
document.addEventListener("mousedown",function(){y.JSC$12895_keyboardInUse=!1})},fUR;
it2.prototype.isKeyBoardInUse=function(){return this.JSC$12895_keyboardInUse};
it2.prototype.onKeydown=function(){this.JSC$12895_keyboardInUse=!0};var TkE,pc;_.ob=new _.Zb("yt-mentions");_.Kc=function(){};
TkE=function(y,W){return pc(W,"drag-to-reorder-edu-displayed")};
pc=function(y,W,V,w,t,F){V=V===void 0?"OPEN_POPUP_POSITION_TOP":V;if(W){if(_.ob.get(W))return;_.ob.set(W,!0,w)}if(t&&F!==void 0){W=Number(_.ob.get(t)||0);if(W>=F)return;_.ob.set(t,W+1)}return[{openPopupAction:{popupType:"HINT",position:V,popup:{bubbleHintRenderer:{detailsText:y,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.oX(_.Kc);var mFm,Mcs,qtR;mFm=function(y,W,V,w){this.JSC$12905_taskManager_=y;this.onFulfilled_=typeof W==="function"?W:null;this.onRejected_=typeof V==="function"?V:null;this.JSC$12905_context_=w};
Mcs=function(y,W){y.onFulfilled_&&_.jf(y.JSC$12905_taskManager_,function(){y.onFulfilled_.call(y.JSC$12905_context_,W)})};
qtR=function(y,W){y.onRejected_&&_.jf(y.JSC$12905_taskManager_,function(){y.onRejected_.call(y.JSC$12905_context_,W)})};
_.ii=function(y){this.JSC$12908_taskManager_=y;this.callbacks_=[]};
_.ii.prototype.then=function(y,W,V){this.callbacks_.push(new mFm(this.JSC$12908_taskManager_,y,W,V));return this};
_.ii.prototype.onSuccess=function(y){this.callbacks_.forEach(function(W){Mcs(W,y)})};
_.ii.prototype.onFailure=function(y){this.callbacks_.forEach(function(W){qtR(W,y)})};
_.ii.prototype.cancel=function(){this.callbacks_.length=0};
rXs(_.ii);_.XKP=null;_.rL=new _.e9("ACTIVITY_TOKEN");var fc=function(y,W){this.serviceId=new rbr(y,W)};
fc.prototype.toString=function(){return this.serviceId.toString()};var UF6=function(){this.internalMap={}};
_.E=UF6.prototype;_.E.contains=function(y){return Object.prototype.hasOwnProperty.call(this.internalMap,y)};
_.E.get=function(y){if(this.contains(y))return this.internalMap[y]};
_.E.set=function(y,W){this.internalMap[y]=W};
_.E.getKeys=function(){return Object.keys(this.internalMap)};
_.E.remove=function(y){delete this.internalMap[y]};var Tq=function(){this.mappings=new UF6;this.errorCallbacks=new Set};
Tq.prototype.getModuleId=function(y){return y.serviceId.getModuleId()};
Tq.prototype.get=function(y){var W=this.mappings.get(y.toString());return uNR(this,W,y)};
Tq.prototype.getMultipleAsync=function(){var y=_.Ve.apply(0,arguments),W=this,V=y.map(function(C){return W.getModuleId(C)}),w=y.map(function(C){return W.mappings.get(C.toString())}).filter(function(C){return C});
if(w.length===y.length)return _.T2(w.map(function(C,d){return uNR(W,C,y[d])}));
var t=au().loadMultiple(V);w=_.jI(V.map(function(C){return t[C]}));
var F=document.hidden,I=-1,P=_.pB("get_async_timeout_ms",-1);P>-1&&(I=setTimeout(function(){_.rQ(new _.Js("Module timeout.",V,F,document.hidden))},P));
return _.$s(w.then(function(){return y.map(function(C){return uNR(W,W.mappings.get(C.toString()),C)})}).thenCatch(function(C){for(var d=_.N(W.errorCallbacks),L=d.next();!L.done;L=d.next())L=L.value,L(C);
throw C;}),function(){clearTimeout(I)})};
Tq.prototype.registerService=function(y,W){this.mappings.set(y.toString(),{type:"mapping",value:W});return y};
var uNR=function(y,W,V){switch(W.type){case "mapping":return W.value;case "factory":return W=W.value(),y.mappings.set(V.toString(),{type:"mapping",value:W}),W;default:return _.gW(W)}};
Tq.prototype.onLoadError=function(y){var W=this;this.errorCallbacks.add(y);return function(){W.errorCallbacks.delete(y)}};
_.mP=new Tq;var QLv=/^[a-zA-Z0-9_\-]{11}$/;var ZKy=_.YW(function(){var y,W;return(W=(y=window).matchMedia)==null?void 0:W.call(y,"(prefers-reduced-motion: reduce)").matches});var Sti=_.YW(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 y=_.ts("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");y||(y=_.xu("VIDEO"),_.dE("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
y));return!!(y&&y.canPlayType&&y.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var FOd=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Mi;Mi=function(){this.tokenJars={};if(this.cookiesEnabled=_.As()){var y=_.k_.get("CONSISTENCY",void 0);y&&DF2(this,{encryptedTokenJarContents:y})}};
_.NZv=function(){Mi.instance||(Mi.instance=new Mi);return Mi.instance};
Mi.prototype.handleResponse=function(y,W){if(!W)throw Error("Zf");var V,w;W=((V=W.innerTubeRequest.context)==null?void 0:(w=V.request)==null?void 0:w.consistencyTokenJars)||[];var t;(y=(t=y.responseContext)==null?void 0:t.consistencyTokenJar)&&this.replace(W,y)};
Mi.prototype.replace=function(y,W){y=_.N(y);for(var V=y.next();!V.done;V=y.next())delete this.tokenJars[V.value.encryptedTokenJarContents];DF2(this,W)};
var DF2=function(y,W){if(W.encryptedTokenJarContents&&(y.tokenJars[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var V=Number(W.expirationSeconds);setTimeout(function(){delete y.tokenJars[W.encryptedTokenJarContents]},V*1E3);
y.cookiesEnabled&&_.s1("CONSISTENCY",W.encryptedTokenJarContents,V,void 0,!0)}};var lUm,qi;lUm=window.location.hostname.split(".").slice(-2).join(".");_.Gw=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var y=_.yC("LOCATION_PLAYABILITY_TOKEN");_.yC("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=xF2(this))&&(y=this.localStorage.get("yt-location-playability-token"));y&&(this.locationPlayabilityToken=y,this.mostRecentPosition=void 0)};
_.Gw.getInstance=function(){qi=_.ts("yt.clientLocationService.instance");qi||(qi=new _.Gw,_.dE("yt.clientLocationService.instance",qi));return qi};
_.Gw.prototype.setLocationOnInnerTubeContext=function(y){y.client||(y.client={});if(this.mostRecentPosition)y.client.locationInfo||(y.client.locationInfo={}),y.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),y.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)y.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Gw.prototype.handleResponse=function(y){var W;y=(W=y.responseContext)==null?void 0:W.locationPlayabilityToken;y!==void 0&&(this.locationPlayabilityToken=y,this.mostRecentPosition=void 0,_.yC("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=xF2(this))&&this.localStorage.set("yt-location-playability-token",y,15552E3):_.s1("YT_CL",JSON.stringify({loctok:y}),15552E3,lUm,!0))};
var xF2=function(y){return y.localStorage===void 0?new _.Zb("yt-client-location"):y.localStorage};
_.Gw.prototype.clearLocationPlayabilityToken=function(y){y==="TVHTML5"?(this.localStorage=xF2(this))&&this.localStorage.remove("yt-location-playability-token"):_.XNv("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Gw.prototype.getCurrentPositionFromGeolocation=function(){var y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var W=!1,V=1E4;_.yC("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,V=15E3);return new Promise(function(w,t){navigator.geolocation.getCurrentPosition(function(F){y.mostRecentPosition=F;w(F)},function(F){t(F)},{enableHighAccuracy:W,
maximumAge:0,timeout:V})})};
_.Gw.prototype.createUnpluggedLocationInfo=function(y){var W={};y=y.coords;if(y==null?0:y.latitude)W.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)W.longitudeE7=Math.floor(y.longitude*1E7);if(y==null?0:y.accuracy)W.locationRadiusMeters=Math.round(y.accuracy);return W};
_.Gw.prototype.createLocationInfo=function(y){var W={};y=y.coords;if(y==null?0:y.latitude)W.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)W.longitudeE7=Math.floor(y.longitude*1E7);return W};var kiE=function(){};
_.E=kiE.prototype;
_.E.JSC$12975_getRequest=function(y,W,V){W=W===void 0?{}:W;V=V===void 0?ViR:V;var w=W;if(this.isNavigationCommand()){var t,F=(t=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:t.url;w=_.IOz(y.clickTrackingParams,!0,!1,F,this.JSC$12975_getClientScreen(w))}else w=_.IOz(y.clickTrackingParams,!1,this.includeCsn);w={context:w};if(t=this.getExtension(y))return this.JSC$12975_buildRequest(w,t,W),t=this.getApiUrl(y),F=Object.assign({},{command:y},this.getRequestConfig(y,W)),w={input:t,requestShell:En(t),
innerTubeRequest:w,config:F},w.config.authStrategy?w.config.authStrategy.identity=V:w.config.authStrategy={identity:V},(y=this.JSC$12975_getRequestKey(y,W))&&!w.config.requestKey&&(w.config.requestKey=y),w;y=new _.Js("Error: Failed to create Request from Command.",y);_.ap(y)};
_.E.getApiUrl=function(y){var W=_.LO(this.getApiPaths(y)),V;(y=(V=_.h(y.commandMetadata,_.dw))==null?void 0:V.apiUrl)&&(W=y);return sgz(kfz(W))};
_.E.isNavigationCommand=function(){return!1};
_.E.JSC$12975_getClientScreen=function(){};
_.E.JSC$12975_getRequestKey=function(){};
_.E.getRequestConfig=function(){};
_.CM.Object.defineProperties(kiE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var UA=function(){};
_.p(UA,kiE);UA.prototype.JSC$12982_getStoreKey=function(){};
UA.prototype.JSC$12975_getRequestKey=function(y,W){W=W===void 0?{}:W;return this.JSC$12982_getStoreKey(y,W)};var A42;_.ui=function(y,W,V){var w=V&&V>0?V:0;V=w?Date.now()+w*1E3:0;if((w=w?(0,_.s_J)():A42())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{w.set(y,W,V)}catch(t){w.remove(y)}}};
_.SL=function(y){var W=A42(),V=(0,_.s_J)();if(!W&&!V||!window.JSON)return null;try{var w=W.get(y)}catch(t){}if(typeof w!=="string")try{w=V.get(y)}catch(t){}if(typeof w!=="string")return null;try{w=JSON.parse(w,void 0)}catch(t){}return w};
_.Dk=function(y){try{var W=A42(),V=(0,_.s_J)();W&&W.remove(y);V&&V.remove(y)}catch(w){}};
_.s_J=_.YW(function(){try{var y=new yzG;var W=y.isAvailable()?y:null}catch(V){return null}return W?new _.o2(W):null});
A42=_.YW(function(){var y=new W_R;return y.isAvailable()?new _.o2(y):null});var ma=new _.e9("ENTITY_STATE_TOKEN"),li=new _.e9("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Ytm=XMLHttpRequest.prototype.fetch,BkE=Ytm&&Ytm.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!O6?!0:!1;var xK=function(y){this.JSC$12987_storeWithEntities=y};
_.p(xK,UA);_.E=xK.prototype;_.E.getApiPaths=function(){return tU6};
_.E.getExtension=function(y){return _.h(y,_.Iw)||_.h(y,_.Jx)||_.h(y,wq2)};
_.E.isNavigationCommand=function(){return!0};
_.E.JSC$12982_getStoreKey=function(y){if((_.e("kevlar_cache_on_ttl_player")||_.e("mweb_enable_shorts_innertube_player_prefetch")||_.e("mweb_use_new_history_manager")||_.e("web_shorts_prefetch_service_enabled"))&&(y=this.getExtension(y))&&y.videoId){var W={videoId:y.videoId};y.playlistId&&(W.playlistId=y.playlistId);y.playerParams&&(W.params=y.playerParams);return _.N8("player",W)}};
_.E.JSC$12975_getClientScreen=function(y){var W;return((W=y.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.E.JSC$12975_buildRequest=function(y,W,V){if(_.e("enable_interstitial_entity_check")){var w=this.JSC$12987_storeWithEntities;if(W.videoId)for(var t=_.N(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),F=t.next();!F.done;F=t.next()){F=F.value;var I;var P=void 0,C=void 0,d=W.videoId,L=F;(I=w)?(d=_.qK(d+L,"interstitialInteractionStateEntity"),I=(P=(C=_.UB(I.getState().entities,"interstitialInteractionStateEntity",d))==null?void 0:C.primaryButtonClicked)!=null?P:!1):I=!1;if(I)switch(F){case "CONTENT_CHECK_REQUIRED":W.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":W.racyCheckOk=!0}}}W.videoId&&(y.videoId=W.videoId);W.playlistId&&(y.playlistId=W.playlistId);W.index!==void 0&&(y.playlistIndex=W.index+1);W.playerParams&&(y.params=W.playerParams);"startTimeSeconds"in W&&W.startTimeSeconds&&(_.e("enable_player_request_builder_start_time_floor")?y.startTimeSecs=Math.floor(W.startTimeSeconds):y.startTimeSecs=W.startTimeSeconds);V.contentPlaybackContext&&(y.playbackContext={contentPlaybackContext:V.contentPlaybackContext});V.prefetchPlaybackContext&&
(y.playbackContext=Object.assign({},y.playbackContext,{prefetchPlaybackContext:V.prefetchPlaybackContext}),y.context.request||(y.context.request={}),y.context.request.isPrefetch=!0);y.playbackContext||(y.playbackContext={});w=Sti();y.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!w,supportXhr:BkE};V.overrideMutedAtStart&&(y.overrideMutedAtStart=V.overrideMutedAtStart);y.racyCheckOk=!!W.racyCheckOk;y.contentCheckOk=!!W.contentCheckOk;!_.e("captions_prefs_killswitch")&&(V=(V=_.SL("yt-player-caption-language-preferences"))?
V:[],V==null?0:V.length)&&(y.captionParams={viewerSelectedCaptionLangs:V})};
_.E.getRequestConfig=function(y){y=this.JSC$12982_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.e("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="ps_s",W.responseTick="ps_r");return W};
xK[cs]=[ma];var kK=function(){};
_.p(kK,UA);_.E=kK.prototype;_.E.getApiPaths=function(){return xd6};
_.E.getExtension=function(y){return _.h(y,_.Iw)};
_.E.isNavigationCommand=function(){return!0};
_.E.JSC$12982_getStoreKey=function(y){if((y=this.getExtension(y))&&y.videoId){var W={videoId:y.videoId};y.playlistId&&(W.playlistId=y.playlistId);y.index&&(W.index=y.index);y.params&&(W.params=y.params);return _.N8("next",W)}};
_.E.JSC$12975_getClientScreen=function(y){var W;return((W=y.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.E.JSC$12975_buildRequest=function(y,W,V){W.videoId&&(y.videoId=W.videoId);W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params);W.index!==void 0&&(y.playlistIndex=W.index);y.racyCheckOk=!(!V.racyCheckOk&&!W.racyCheckOk);y.contentCheckOk=!!W.contentCheckOk;V.contentPlaybackContext&&(y.autonavState=V.contentPlaybackContext.autonavState,y.playbackContext={vis:V.contentPlaybackContext.vis,lactMilliseconds:V.contentPlaybackContext.lactMilliseconds});V.prefetchPlaybackContext&&(y.context.request||
(y.context.request={}),y.context.request.isPrefetch=!0);_.e("captions_hats_killswitch")||(W=_.l5().getFlag(65),W=W!=null?!W:!1,V=!!_.SL("yt-player-sticky-caption"),y.captionsRequested=W&&V)};
_.E.getRequestConfig=function(y){y=this.JSC$12982_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.e("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="wn_s",W.responseTick="wn_r");return W};
var sA=function(){};
_.p(sA,UA);sA.prototype.getApiPaths=function(){return xd6};
sA.prototype.getExtension=function(y){return _.h(y,_.EP)};
sA.prototype.JSC$12975_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};var AS=function(y,W){this.playerRequestBuilder=y;this.watchNextRequestBuilder=W};
_.p(AS,UA);AS.prototype.getApiPaths=function(){return XKJ};
AS.prototype.getExtension=function(y){return _.h(y,_.Iw)};
AS.prototype.isNavigationCommand=function(){return!0};
AS.prototype.JSC$12975_buildRequest=function(y,W,V){y.playerRequest={};this.playerRequestBuilder.JSC$12975_buildRequest(y.playerRequest,W,V);_.e("web_streaming_watch")&&(y.watchNextRequest={},this.watchNextRequestBuilder.JSC$12975_buildRequest(y.watchNextRequest,W,V))};
AS[cs]=[xK,kK];var J4m;_.YK=new _.e9("SHORTS_CONTROLLER_TOKEN");J4m=new _.e9("SHORTS_STATE_STORE_TOKEN");var BP=function(y,W){var V=_.Ve.apply(2,arguments);y=y===void 0?0:y;_.Js.call(this,W,V);this.errorType=y;Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(BP,_.Js);var RrA,j_Q,nhQ,GOG,F_,dXb,Gii,aUi,Wiz,Q_I,btf;RrA=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(y){return y+"="}).join("|"));
j_Q=RegExp(".*\\?.*playnext=1.*");_.JS=function(y,W,V,w){this.watchEndpointMap=y;this.reelWatchEndpointMap=W;this.innerTubeTransportService=V;this.fetchPbj=w};
nhQ=function(y,W,V){var w=_.hs().resolve(_.eX($FJ));_.JS.instance=new _.JS(y,W,V,w)};
_.HtQ=function(y,W){var V=_.pB("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;var w;if((w=_.h(W.commandMetadata,_.dw))==null||!w.rootVe)return V&&_.rQ(Error("bg")),!1;var t;w=(t=_.h(W.commandMetadata,_.dw))==null?void 0:t.url;if(!w)return V&&_.rQ(Error("cg")),!1;if(j_Q.test(w))return!0;if(RrA.test(w))return V&&_.rQ(Error("dg`"+w)),!1;if(_.h(W,_.Iw)){if(!(y.watchEndpointMap.watchNext&&y.watchEndpointMap.player||_.e("kevlar_fetch_initial_data_op_watch_client")))return V&&_.rQ(Error("Vf")),!1;
y=_.pB("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;_.h(W,_.Iw)?rCL(W)?W=!0:(y&&_.rQ(Error("Wf")),W=!1):(y&&_.rQ(Error("Vf")),W=!1);return W}if(_.h(W,_.Jx))return bKy(W);if(_.h(W,_.Wh))return!0;y=_.Cn(y.innerTubeTransportService,W);!y&&V&&_.ap(Error("eg"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(W)});return y};
GOG=function(y,W,V,w,t,F){W={url:W};if(V==null?0:V.itct)W.parentTrackingParams=V.itct;var I=_.LO(vts);return _.Vo(y.innerTubeTransportService,W,I).then(function(P){(P=P.endpoint)||(P=_.Ag);(V==null?0:V.itct)&&P&&!P.trackingParams&&(P.trackingParams=V.itct);var C=Y1(P);return F_(y,P,V,w,C,t,F)})};
F_=function(y,W,V,w,t,F,I,P){P=P===void 0?{}:P;if(y.fetchPbj&&!_.HtQ(y,W)&&!_.e("force_one_platform")){P=y.fetchPbj(W);var C=_.T2(P.then(function(H){if(!H)throw Error("fg");I(C)||F(W,H);return H}));
return C}var d,L,z={rootVe:(d=_.h(W.commandMetadata,_.dw))==null?void 0:d.rootVe,url:(L=_.h(W.commandMetadata,_.dw))==null?void 0:L.url,endpoint:W,page:t};if(_.h(W,_.Iw)){var c,K={contentPlaybackContext:_.$1(V,(c=_.h(W.commandMetadata,_.dw))==null?void 0:c.url,w)},f=_.v5();_.e("web_streaming_watch")&&window.TextDecoderStream?(P=Xvi(y.innerTubeTransportService,W,K,function(H){!z.response&&H.content&&(z.response=H.content);!z.playerResponse&&H.player&&(z.playerResponse=H.player);F(W,z)}),d=ARb(W),d.length&&
(z.preconnect=d,F(W,z)),aUi(P,f,z).catch(function(H){H instanceof BP&&H.errorType===2&&Gii(y,W,K,z,F,I,f)})):Gii(y,W,K,z,F,I,f);
return f.promise}if(_.h(W,_.Jx)){var U;if(((U=_.h(W,_.Jx))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var l=_.v5();_.r4J(_.hs().resolve(_.YK),W).then(function(H){btf(y,V,w,t,F,l,H)});
return l.promise}P=_.T2();var x;d={contentPlaybackContext:_.$1(V,(x=_.h(W.commandMetadata,_.dw))==null?void 0:x.url,w)};(x=y.reelWatchEndpointMap.player)&&(x=x().JSC$12975_getRequest(W,d))&&(P=_.Vo(y.innerTubeTransportService,x.innerTubeRequest,x.input,W.clickTrackingParams,x.config));x=_.T2();(L=y.reelWatchEndpointMap.reelItemWatch)&&(L=L().JSC$12975_getRequest(W))&&(x=_.Vo(y.innerTubeTransportService,L.innerTubeRequest,L.input,W.clickTrackingParams,L.config));L=_.T2();(c=y.reelWatchEndpointMap.reelWatchSequence)&&
_.h(W,_.Jx).sequenceParams&&(d=c().JSC$12975_getRequest(W,d))&&(L=_.Vo(y.innerTubeTransportService,d.innerTubeRequest,d.input,W.clickTrackingParams,d.config));d=_.T2(z);c=_.v5();Q_I(W,d,P,x,L,F,I,c);return c.promise}var B;if(_.h(W,HKv)&&((B=_.h(W.commandMetadata,_.dw))==null?0:B.url))return P=Etj(_.Ey(QL().location.href),_.Ey(_.h(W.commandMetadata,_.dw).url)).toString(),GOG(y,P,V,w,F,function(){return!1});
if(_.h(W,_.Wh))return F(W,z),_.T2(z);if(_.Cn(y.innerTubeTransportService,W)){P=Object.assign({},{tempData:V,disableCache:V.disableCache},P);var r=_.OP(y.innerTubeTransportService,W,P).then(function(H){z.response=H;I(r)||F(W,z);return z});
return r}return _.T2(z)};
_.y3m=function(y,W,V,w){if(_.h(W,_.Iw)||_.h(W,_.Jx)&&(_.e("mweb_enable_shorts_innertube_player_prefetch")||_.e("kevlar_enable_shorts_prefetch_in_sequence"))||_.h(W,wq2)&&_.e("web_enable_prefetching_videos_on_home")){var t,F={contentPlaybackContext:_.$1(V,(t=_.h(W.commandMetadata,_.dw))==null?void 0:t.url,w),prefetchPlaybackContext:WOb(V)},I,P,C;if(((I=_.h(W,_.Iw))==null?void 0:(P=I.watchEndpointSupportedPrefetchConfig)==null?void 0:(C=P.prefetchHintConfig)==null?void 0:C.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(V=
y.watchEndpointMap.watchNext)if(F=V().JSC$12975_getRequest(W,F))return Promise.resolve(_.Vo(y.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(z){return z}))}else if(V=y.watchEndpointMap.player)if(F=V().JSC$12975_getRequest(W,F))return Promise.resolve(_.Vo(y.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(z){return z}))}else if(_.Cn(y.innerTubeTransportService,W)){var d={tempData:V},L=Ztz(y.innerTubeTransportService,W);
return L?new Promise(function(z,c){var K,f;return _.g(function(U){if(U.nextAddress==1)return U.yield(L,2);if(U.nextAddress!=4)return K=U.yieldResult,K.JSC$12982_getStoreKey(W,d)?U.yield(_.OP(y.innerTubeTransportService,W,d),4):(c(new _.Js("Prefetching request builder with no store key.",W)),U.jumpTo(0));f=U.yieldResult;z(f);_.B7(U)})}):Promise.reject(new _.Js("Prefetching unregistered request builder.",W))}return Promise.reject(new _.Js("No request builder available to prefetch endpoint.",W))};
dXb=function(y,W){var V,w,t;if(_.h(W,_.Iw)){var F=y.watchEndpointMap.watchNext;F&&(V=F());(y=y.watchEndpointMap.player)&&(w=y())}else if(_.h(W,_.Jx))(F=y.reelWatchEndpointMap.reelItemWatch)&&(V=F()),(F=y.reelWatchEndpointMap.player)&&(w=F()),(y=y.reelWatchEndpointMap.reelWatchSequence)&&(t=y());else{a:{y=tCv(W,y.innerTubeTransportService.endpointMap);if(y!==void 0)if(typeof y.then==="function")_.ap(new _.Js("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",W));else break a;
y=void 0}y&&(V=y)}var I,P,C;return{content:(I=V)==null?void 0:I.JSC$12982_getStoreKey(W),player:(P=w)==null?void 0:P.JSC$12982_getStoreKey(W),reelSequence:(C=t)==null?void 0:C.JSC$12982_getStoreKey(W)}};
Gii=function(y,W,V,w,t,F,I){var P=_.T2(),C=y.watchEndpointMap.player;_.e("web_streaming_player")&&(C=jW(AS));C&&(C=C().JSC$12975_getRequest(W,V))&&(P=_.Vo(y.innerTubeTransportService,C.innerTubeRequest,C.input,W.clickTrackingParams,C.config));C=_.T2();var d=y.watchEndpointMap.watchNext;d&&(V=d().JSC$12975_getRequest(W,V))&&(C=_.Vo(y.innerTubeTransportService,V.innerTubeRequest,V.input,W.clickTrackingParams,V.config));y=_.T2(w);Wiz(W,y,P,C,t,F,I)};
aUi=function(y,W,V){return _.g(function(w){if(w.nextAddress==1)return w.yield(y,2);W.resolve(V);_.B7(w)})};
Wiz=function(y,W,V,w,t,F,I){var P,C,d,L,z;_.g(function(c){switch(c.nextAddress){case 1:return c.yield(W,2);case 2:P=c.yieldResult;if(F(I.promise))return I.resolve(P),c.return();t(y,P);C=ARb(y);if(!C.length){c.jumpTo(3);break}return c.yield(W,4);case 4:P.preconnect=C,t(y,P);case 3:return _.l7(c,5),c.yield(V,7);case 7:d=c.yieldResult;_.E6(c,6);break;case 5:return L=_.YX(c),I.reject(L),c.return();case 6:if(d===void 0)return P.reload=!0,t(y,P),I.resolve(P),c.return();if(F(I.promise))return I.resolve(P),
c.return();P.playerResponse=d;t(y,P);_.l7(c,8);return c.yield(w,10);case 10:z=c.yieldResult;_.E6(c,9);break;case 8:_.YX(c);case 9:if(z===void 0)return P.response={responseContext:{}},I.resolve(P),c.return();if(F(I.promise))return I.resolve(P),c.return();P.response=z;t(y,P);I.resolve(P);_.B7(c)}})};
Q_I=function(y,W,V,w,t,F,I,P){var C,d,L,z,c,K;_.g(function(f){switch(f.nextAddress){case 1:return f.yield(W,2);case 2:C=f.yieldResult;if(I(P.promise))return P.resolve(C),f.return();F(y,C);d=ARb(y);if(!d.length){f.jumpTo(3);break}return f.yield(W,4);case 4:C.preconnect=d,F(y,C);case 3:return _.l7(f,5),f.yield(V,7);case 7:L=f.yieldResult;_.E6(f,6);break;case 5:return z=_.YX(f),P.reject(z),f.return();case 6:if(L===void 0)return C.reload=!0,F(y,C),P.resolve(C),f.return();if(I(P.promise))return P.resolve(C),
f.return();C.playerResponse=L;F(y,C);_.l7(f,8);return f.yield(w,10);case 10:c=f.yieldResult;_.E6(f,9);break;case 8:_.YX(f);case 9:if(c===void 0)return C.response={responseContext:{}},P.resolve(C),f.return();if(I(P.promise))return P.resolve(C),f.return();C.response=c;F(y,C);_.l7(f,11);return f.yield(t,13);case 13:K=f.yieldResult;_.E6(f,12);break;case 11:_.YX(f);case 12:if(I(P.promise))return P.resolve(C),f.return();C.reelWatchSequenceResponse=K;F(y,C);P.resolve(C);_.B7(f)}})};
btf=function(y,W,V,w,t,F,I){var P,C,d,L,z,c;_.g(function(K){if((P=I)==null||!P.replacementEndpoint)return F.reject(),K.return();C=I.replacementEndpoint;(d=_.h(C,_.Jx))?(I.sequenceContinuation&&(d.sequenceParams=I.sequenceContinuation),L=_.hs().resolve(_.YK),z=d.sequenceParams,Vjq(L,C)&&delete d.sequenceParams,c=F_(y,C,W,V,w,t,function(){return!1}),c.then(function(f){return _.g(function(U){if(U.nextAddress==1)return w6q(L,{reelWatchEndpoint:{sequenceParams:z}},f),U.yield(0,2);
F.resolve(f);_.B7(U)})})):F.reject();
_.B7(K)})};_.tjQ=function(y){if(y.validatedFragments_.length==0)return null;if(!y.mergedPrefetchedData_){for(var W=[],V=_.N(y.validatedFragments_),w=V.next();!w.done;w=V.next()){w=_.N(y.fragmentConfiguration_[w.value].graftedKeys);for(var t=w.next();!t.done;t=w.next())(t=y.prefetchedData_[t.value].trackingParams)&&W.push(t)}y.mergedPrefetchedData_={};Object.assign(y.mergedPrefetchedData_,y.prefetchedData_,{clientSideGrafts:W})}return y.mergedPrefetchedData_};var FiK;_.Rb=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
FiK=function(y,W,V){if(_.a9u(W))return y.prefetchCache_.get(_.G8v(W,V))};_.jL=new _.e9("NAVIGATION_TOKEN");var EwR=function(y){var W=this;var V=V===void 0?Ca4():V;var w=w===void 0?_.hs().resolve(_.jL):w;this.onePickCommand=y;this.JSC$13085_playlistNetworkManager=V;this.navigationManager=w;this.videoPickerBuilder=_.gtj("yt-addtoplaylist");_.zLz(gIJ(PbQ(IYA(this.videoPickerBuilder.setTitle(y.modalTitle).setSize(1E3).addView(OBi()).addView(CCi())).addView("youtube"),y.selectButtonLabel)),function(t){W.handleAction(t)})};
EwR.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
EwR.prototype.handleAction=function(y){var W=this;if(y&&this.onePickCommand.listId&&y.action==="picked"&&y.docs){var V=[];y.docs.forEach(function(w){V.push({addedVideoId:w.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13085_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,V).then(function(){_.e("playlist_add_video_hard_reload_killswitch")?W.navigationManager.reload():NRI(W.navigationManager)})}};var IiR=function(){if(this.constructor===IiR)throw new TypeError("gg");};
_.E=IiR.prototype;_.E.dispose=function(){};
_.E.disconnect=function(){};
_.E.reconnect=function(){};
_.E.observe=function(y,W,V){return{element:y,option:V}};
_.E.unobserveByKey=function(){};var Orn=function(y,W){W=W===void 0?0:W;IiR.call(this);this.viewroot=y;this.defaultPrescanHeight=W;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),y?{root:y,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.p(Orn,IiR);_.E=Orn.prototype;_.E.dispose=function(){this.disconnect();this.handlers.clear()};
_.E.disconnect=function(y){this.isConnected=!1;this.pauseObservingUntilReconnect=y===void 0?!1:y;this.observer.disconnect();y=_.N(this.prescanObservers.values());for(var W=y.next();!W.done;W=y.next())W.value.disconnect()};
_.E.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var y=_.N(this.handlers),W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;var w=V.next().value;V=!1;w=_.N(w.keys());for(var t=w.next();!t.done;t=w.next())if((t=t.value)&&t.state==="prescan"){V=!0;break}V&&gwQ(this,W).observe(W);this.observer.observe(W)}}};
_.E.handleObserveEvent=function(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=this.handlers.get(W.target);if(V){var w=W.isIntersecting;V=_.N(V);for(var t=V.next();!t.done;t=V.next()){var F=_.N(t.value);t=F.next().value;F=F.next().value;t&&(t.state==="visible"&&w||t.state==="hidden"&&!w)&&(F(W.target,t.state),t.calledOnce&&this.unobserveByKey({element:W.target,option:t}))}}}};
_.E.handlePrescanEvent=function(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=this.handlers.get(W.target);if(V&&W.isIntersecting){V=_.N(V);for(var w=V.next();!w.done;w=V.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;w&&w.state==="prescan"&&(t(W.target,w.state),w.calledOnce&&this.unobserveByKey({element:W.target,option:w}))}}}};
_.E.observe=function(y,W,V){var w=(w=this.handlers.get(y))&&w.has(V)?{element:y,option:V}:void 0;if(w)return w;w={element:y,option:V};this.handlers.has(y)||this.handlers.set(y,new Map);var t=this.handlers.get(y);t&&!t.has(V)&&t.set(V,W);this.pauseObservingUntilReconnect||(V.state==="prescan"&&gwQ(this,y).observe(y),this.observer.observe(y));return w};
_.E.unobserveByKey=function(y){var W=this.handlers.get(y.element);if(W&&W.has(y.option)){W.delete(y.option);if(y&&y.option.state==="prescan")for(var V=_.N(this.prescanObservers.values()),w=V.next();!w.done;w=V.next())w.value.unobserve(y.element);W.size===0&&(this.handlers.delete(y.element),this.observer.unobserve(y.element))}};
var gwQ=function(y,W){var V=y.defaultPrescanHeight;W.hasAttribute("prescan-height")&&(W=Number(W.getAttribute("prescan-height")),isNaN(W)||(V=W));if(y.prescanObservers.has(V))return y.prescanObservers.get(V);W="-0.1px -0.1px "+V+"px -0.1px";W=new IntersectionObserver(y.handlePrescanEvent.bind(y),y.viewroot?{root:y.viewroot,rootMargin:W}:{rootMargin:W});y.prescanObservers.set(V,W);return W};var Pxf=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Cxi=function(){var y,W=this;this.JSC$13102_actionRouter=y=y===void 0?_.tL.getInstance():y;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return W.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return W.visibilityObservedElementHandlerKeys}}},OmJ,dhz,c36;
Cxi.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.e("kevlar_use_vimio_behavior")&&_.yC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=vtR())};
Cxi.prototype.dispose=function(){this.visibilityMonitor&&_.Ys(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Cxi.prototype.handleVisibilityRefreshed=function(){for(var y=_.N(this.targetMap.entries()),W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;_.vwi(this,W,V)}};
_.zxf=function(y,W,V){dhz(y,V);var w=_.LiQ(y,W);w.element=V;y.targetedElements.set(V,W);_.vwi(y,W,w)};
dhz=function(y,W){var V=y.targetedElements.get(W);if(V){var w=y.targetMap.get(V);w&&(delete w.element,y.targetMap.set(V,w));y.targetedElements.delete(W);y.visibilityObserver&&y.visibilityObservedElementHandlerKeys&&(V=y.visibilityObservedElementHandlerKeys.get(W))&&(y.visibilityObserver.unobserveByKey(V),y.visibilityObservedElementHandlerKeys.delete(W))}};
_.vwi=function(y,W,V){var w=V.action,t=V.element;t&&w&&(Pxf.includes(W)||_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||y.visibilityMonitor&&y.visibilityMonitor.isNodeVisible(t)?c36(y,W,V):y.visibilityObserver&&(y.visibilityObservedElementHandlerKeys||(y.visibilityObservedElementHandlerKeys=new WeakMap),w=y.visibilityObserver.observe(t,function(){c36(y,W,V);y.visibilityObservedElementHandlerKeys.delete(t)},{calledOnce:!0,
state:"visible"}),y.visibilityObservedElementHandlerKeys.set(t,w)))};
c36=function(y,W,V){var w=V.action;(V=V.element)&&w&&(_.Zg(y.JSC$13102_actionRouter,[w],V),y.targetMap.delete(W),y.targetedElements.delete(V),y.triggeredTargets.add(W))};
_.LiQ=function(y,W){var V=y.targetMap.get(W);V||(V={},y.targetMap.set(W,V));return V};
_.$K=function(){OmJ||(OmJ=new Cxi);return OmJ};var ex2=document.createElement("div");ex2.style.touchAction="pan-down";var ddL=ex2.style.touchAction==="pan-down";var hxE,owK;hxE=function(){this.hammerFn=EnJ();this.JSC$13110_screenManager=_.BC();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.ad(83615);_.uT(this.JSC$13110_screenManager,this.ve);LO4()};
_.nc=function(){owK||(owK=new hxE);return owK};
hxE.prototype.registerTouchEvents=function(y,W,V){var w=_.Ve.apply(3,arguments),t=this.hammerFn(y,{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}]]});V&&t.set({touchAction:V});this.nodeManagerMapping.set(y,t);var F=
zFv(W);w=_.N(w);for(var I=w.next();!I.done;I=w.next()){I=I.value;if(I.includes("swipe")||I.includes("pinch")||I.includes("pan"))I.includes("swipe")?t.get("swipe").set({enable:!0,direction:F,velocity:.2}):I.includes("pinch")?t.get("pinch").set({enable:!0}):I.includes("pan")&&(t.get("pan").set({enable:!0,direction:F}),t.get("swipe").set({enable:!0,direction:F,velocity:.2}),t.get("swipe").recognizeWith("pan"));KiK(this,y,t,I)}};
var KiK=function(y,W,V,w){V.on(w,function(t){if(w.includes("pinch"))y.lastPinchTime=Date.now();else if(w.includes("swipe")&&Date.now()-y.lastPinchTime<400)return;t.pointerType!=="mouse"&&(t=w==="doubletap"?{coordinates:t.center}:w.includes("pan")?t:w.includes("swipe")?{target:t.target}:{},W.dispatchEvent(new CustomEvent(w,{bubbles:!0,composed:!0,detail:t})))})};
hxE.prototype.unregisterTouchEvents=function(y){var W=_.Ve.apply(1,arguments),V=this.nodeManagerMapping.get(y);if(V){W=_.N(W);for(var w=W.next();!w.done;w=W.next())V.off(w.value);this.nodeManagerMapping.delete(y);y.style.touchAction="unset"}};var p6i=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var cWj=null;var imm=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},kQz=function(){imm.instance||(imm.instance=new imm);
return imm.instance},sjL=function(y){var W=y.networkEvents;
y.networkEvents=[];return _.e("enable_network_monitoring")?W:[]};var fi2;fi2={};_.TRq=zp("yt-serviceworker-metadata",{objectStores:(fi2.auth={addedAtVersion:1},fi2["resource-manifest-assets"]={addedAtVersion:2},fi2),shared:!0,upgrade:function(y,W){W(1)&&VT(y,"resource-manifest-assets");W(2)&&VT(y,"auth")},
version:2});var ir4=self.location.origin+"/";fOP([/\.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\//]);fOP([/purge_shell=1/]);var mhE=void 0;mhE=mhE===void 0?[]:mhE;for(var Mjz=[],qj6=_.N(GDR),UhK=qj6.next();!UhK.done;UhK=qj6.next())Mjz.push({key:UhK.value});for(var u9Q=_.N(mhE),SjQ=u9Q.next();!SjQ.done;SjQ=u9Q.next())Mjz.push(SjQ.value);var Dh2,ZP=_.Vj==null?void 0:(Dh2=_.Vj.performance)==null?void 0:Dh2.memory,MUa=!1,AWv={},uqd={},y2={},WW=navigator;var HP=function(y){this.JSC$13154_expiringStorage=new jX(y)};
HP.prototype.set=function(y,W,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$13154_expiringStorage.set(y,W,V)};
HP.prototype.get=function(y){return this.JSC$13154_expiringStorage.get(y)};
HP.prototype.remove=function(y){this.JSC$13154_expiringStorage.remove(y)};var Hrj=_.CF(["https://www.youtube.com/",""]),XSv=_.CF(["https://studio.youtube.com/",""]),Qjy="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",GQG=null,w_b;var liz=_.CF(["https://www.youtube.com/iframe_api"]),XS=function(){this.playerResolver_=_.v5();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.A$;this.playbackDurationSeconds_=0},xhR=function(y){var W=function(){return window.YT&&typeof window.YT.ready==="function"};
if(W())return _.T2(window.YT);var V=_.v5(),w=_.xu("SCRIPT");w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||(w.onload=_.A$,w.onreadystatechange=_.A$,w.onerror=_.A$,W()?V.resolve(window.YT):V.reject(new _.Js("Failed to load the iframe player library","script.onload",w.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
w.onerror=function(t){w.onload=_.A$;w.onreadystatechange=_.A$;w.onerror=_.A$;V.reject(new _.Js("Failed to load the iframe player library","script.onerror",t&&t.target&&t.target.src))};
_.zC(w,_.Tc(liz));y.insertBefore(w,y.firstChild);return V.promise},kEA=function(y,W,V){var w,t;
_.g(function(F){switch(F.nextAddress){case 1:return y.playbackEndedCallback_=V,_.l7(F,2),F.yield(xhR(W.parentElement||null),4);case 4:w=F.yieldResult;_.E6(F,3);break;case 2:return t=_.YX(F),t instanceof _.Js&&t.args&&t.args[0]=="script.onerror"?_.rQ(t):_.ap(t),F.return();case 3:w.ready(function(){return new w.Player(W,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:y.onPlayerReady_.bind(y),onStateChange:y.onPlayerStateChange_.bind(y),
onCueRangeExit:y.onCueRangeExit_.bind(y)}})}),_.B7(F)}})};
_.E=XS.prototype;_.E.getPlayerPromise=function(){return this.playerPromise_};
_.E.onPlayerReady_=function(y){this.playerResolver_.resolve(y.target)};
_.E.onPlayerStateChange_=function(y){if(y.data==YT.PlayerState.PLAYING){y=y.target;var W=y.getCurrentTime();y.addCueRange("playback",W,W+this.playbackDurationSeconds_)}};
_.E.onCueRangeExit_=function(y){y.data=="playback"&&(y.target.stopVideo(),this.playbackEndedCallback_())};
_.E.stopVideo=function(){this.playerPromise_.then(function(y){y.stopVideo()})};
var s7m=function(y){y.playerVars_&&y.playerPromise_.then(function(W){typeof W.cueVideoByPlayerVars!="function"?_.rQ(new _.Js("vmh: player API not ready","cueVideoByPlayerVars",typeof W.cueVideoByPlayerVars)):W.cueVideoByPlayerVars(y.playerVars_)})};
XS.prototype.playVideo=function(){var y=this;this.playerVars_&&this.playerPromise_.then(function(W){typeof W.loadVideoByPlayerVars!="function"?(W=new _.Js("vmh: player API not ready","loadVideoByPlayerVars",typeof W.loadVideoByPlayerVars),_.ap(W)):W.loadVideoByPlayerVars(y.playerVars_)})};
var A3K=function(y,W,V,w,t){W&&(V===void 0&&(V=0),w===void 0&&(w=0),y.playbackDurationSeconds_=w/1E3,y.playerVars_={adformat:"17_8",videoId:W,suggestedQuality:"hd720",startSeconds:V/1E3,player_params:t})};
XS.prototype.mute=function(){this.playerPromise_.then(function(y){y.mute()})};
XS.prototype.unMute=function(){this.playerPromise_.then(function(y){y.unMute()})};var Yjz=function(y,W){var V=ZA();y||(y="unknown");W||(W="unknown");y="MAIN_APP_WEB_PAGE_TYPE_"+y.toUpperCase();y in Wuz||(y="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");W="MAIN_APP_WEB_REQUEST_TYPE_"+W.toUpperCase();W in VNz||(W="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.S3(V,{mainAppWeb:{pageType:y,requestType:W,isShellLoad:_.W4("IS_SHELL_LOAD",!1)}})},BRr={start:function(){_.S3(KFu(),{mainAppWeb:_.I6()})},
success:function(){_.DE(KFu(),"SUCCESS")},
failure:function(){_.DE(KFu(),"FAILURE")},
cancelled:function(){_.DE(KFu(),"CANCELLED")}};var J3A,RxK,CVy;J3A=_.CF(["/sw.js"]);RxK=_.CF(["/sw.js?0"]);_.j7K=_.Tc(J3A);CVy=_.Tc(RxK);var $h6=function(){var y=Error.apply(this,arguments);this.message=y.message;"stack"in y&&(this.stack=y.stack)};
_.p($h6,Error);_.C6.prototype.load=function(y){this.megabloxUrl_=_.yC("YPC_MB_URL");_.ym(this.megabloxUrl_,(0,_.jA)(function(){y&&y()},this))};
_.HSR=function(y,W,V,w,t,F,I,P,C,d,L){_.vqd(C);y.load((0,_.jA)(function(){try{var z=F?F:_.yC("HL"),c=_.yC("SESSION_INDEX");_.Wuy("client",function(){WT6("59",{helpCenterPath:"/youtube",locale:z,window:window}).JSC$9902_loadChatSupport({authuser:String(c)})})}catch(K){throw gg(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),t&&t(K),_.ap(K),K;
}nwm(this,W,V,w,t,F,I,P,C,d,L)},y))};
_.C6.prototype.openFixFlowDialog=function(y,W,V,w){this.load((0,_.jA)(function(){try{Hmf(this,_.ts("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(y).withIntegratorCallback(W).load(V,w)}catch(t){throw _.ap(t),t;}},this))};
var Hmf=function(y,W,V,w){var t=W.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.e("enable_window_constrained_buy_flow_dialog")&&(t=t.usingPopupStyle(_.ts("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));w&&(t=t.usingCloseCallback(w));W.bootstrap.fromPaymentsUrl(y.megabloxUrl_);y=W.bootstrap.asMashupMode(t);V=V?V:_.yC("HL");y.usingGaiaIndex(_.yC("SESSION_INDEX")).usingLocale(V).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.e("enable_google_payments_buyflow_material2_style_web")?
y.usingStyle(":m2;pc=#444;ac=#065fd4"):y.usingStyle(":md;pc=#444;ac=#065fd4");return y},nwm=function(y,W,V,w,t,F,I,P,C,d,L){try{var z=_.ts("payments.business.integration");
if(!z)throw new $h6("payments.business.integration is undefined");var c=z.standaloneContextAuthId.forUserId(),K=Hmf(y,z,F,function(){L3n(!1);P&&P()});
I&&K.usingServerAnalyticsEventHandler(I);var f=K.inStandaloneContext(c).buyFlow(function(U){if(U&&(!U.integratorData||U.integratorData===""||U.error))if(U.error!=null)if(String(U.error)==="-1")_.dJ4(C);else{var l=String(U.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";gg(10,L,l,U.debugCode);_.PW(l,C,U.debugCode);l=new _.Js("PAYMENT_ERROR_MESSAGE::"+U.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+U.internalErrorDetails);
_.ap(l)}else gg(10,L,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.PW("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",C,"EMPTY_INTEGRATOR_DATA"),_.ap(Error("lg"));V&&(L3n(!1),V(U))}).withEncryptedParameters(W);
d&&f.withClientParameters(wjb(_.HZv(d)));f.load(function(){gg(24,L);_.rw("ttc",void 0,"commerce_transaction");ngv("commerce_transaction");w&&(w(),L3n(!0))},function(U){if(U==null?0:U.debugCode)var l=U==null?void 0:U.debugCode;
else if(!U||(U==null?0:U.debugCode))l="EMPTY_LOAD_FAILURE_ERROR",_.ap(Error(l));else{l="EMPTY_LOAD_FAILURE_DEBUG_CODE";var x=new _.Js("LOAD_FAILURE:"+U.message," DEBUG_CODE:"+l);_.ap(x)}gg(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l);_.PW("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",C,l);_.ap(U);t&&t(U)})}catch(U){throw U instanceof $h6&&(gg(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),t&&t(U)),_.ap(U),U;
}};var X6i;X6i=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.jFb=function(y,W){W=W===void 0?!1:W;y=X6i.test(y)?_.jh(y):null;!W&&window.payments||!y?(y=_.v5(),W=y.promise,y.resolve()):W=_.JsK(y,{attributes:{"data-payments-main":"",id:"payment-lib"}});return W};var aii;aii=_.CF(["//www.googletagmanager.com/gtm.js?id=",""]);_.ab=function(y,W){_.i8(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:W}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.yC("GL")}),W=_.xu("SCRIPT"),W.async=!0,_.zC(W,_.Tc(aii,y)),W.id="gtm",y=document.getElementsByTagName("script"),y.length==0?document.head.appendChild(W):(y=y[0],y.parentNode.insertBefore(W,y)))};
_.Gq=function(y){if(y=JSON.parse(y))window.dataLayer=window.dataLayer||[],window.dataLayer.push(y)};var GEJ,r3z;GEJ=_.CF(["https://clients2.google.com/gr/gr_sync.js"]);_.JHu=function(){};
_.JHu.prototype.init=function(){if(r3z()){var y=_.v5();y.resolve();return y.promise}return _.JsK(_.Tc(GEJ)).then(function(){if(!r3z())throw Error("mg");},function(){throw Error("ng");
})};
_.RVL=function(){if(!r3z())return"";var y=window.google.gr;y.init({async:{schedule:"sync"},merchantId:"youtube"});y.start();y=y.finish();return y==null?"":y};
r3z=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.u=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.u,PolymerFakeBaseClassWithoutHtml);_.YA=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.YA,PolymerFakeBaseClassWithoutHtml);var zRP=window.ShadyDOM;var bsd,Gha,Zsu,yku,VFL,wGt,rd,p6;bsd=_.e("enable_shadydom_free_scoped_query_methods");Gha=_.e("enable_shadydom_free_scoped_node_methods");Zsu=_.e("enable_shadydom_free_scoped_readonly_properties_batch_one");yku=_.e("enable_shadydom_free_parent_node");VFL=_.e("enable_shadydom_free_children");wGt=_.e("enable_shadydom_free_last_child");rd=window.ShadyDOM;_.Mg=rd&&rd.noPatch&&rd.wrap?rd.wrap:rd?function(y){return rd.patch(y)}:function(y){return y};
p6=function(y){if(y instanceof ShadowRoot)this.host=(0,_.Mg)(y.host),this.root=y;else if(y.$$){this.host=(0,_.Mg)(y);var W;this.root=(W=y.root)!=null?W:this.host}else if(y.polymerController){this.host=(0,_.Mg)(y);var V;this.root=(V=this.host.shadowRoot)!=null?V:this.host}else this.root=this.host=(0,_.Mg)(y)};
rjj();Q5u();tFn();Fln();Wld();var bm6={querySelector:function(y,W){W=eRy(W,zA(y));y=_.cW(y);return eB(y).prototype.querySelector.call(y,W)},
querySelectorAll:function(y,W){W=eRy(W,zA(y));y=_.cW(y);return eB(y).prototype.querySelectorAll.call(y,W)}},Q7J={appendChild:function(y,W){var V=zA(y),w=_.L6(W);
return _.X_L(_.cW(y),V?_.o6(W,V,w):W)},
cloneNode:function(y,W){var V=_.L6(y);y=_.cW(y);W=eB(y).prototype.cloneNode.call(y,W);return V?K6(W,V):W},
contains:function(y,W){var V=zA(y),w=_.L6(W);return V!==w?!1:au4(y,W)},
insertBefore:function(y,W,V){var w=zA(y),t=_.L6(W);y=_.cW(y);W=w?_.o6(W,w,t):W;return eB(y).prototype.insertBefore.call(y,W,V)},
removeChild:function(y,W){var V=zA(y);y=_.cW(y);W=V?K6(W,V):W;return eB(y).prototype.removeChild.call(y,W)},
replaceChild:function(y,W,V){var w=zA(y),t=_.L6(W);W=w?_.o6(W,w,t):t?K6(W,t):W;V=w?K6(V,w):V;y=_.cW(y);return eB(y).prototype.replaceChild.call(y,W,V)},
getRootNode:function(y,W){W=W===void 0?{composed:!0}:W;var V;if(((V=W)!=null?V:{}).composed)y=UJa(y);else{W=y;for(y=oqt(y);y;)W=y,y=p_u(y);y=W}return y}},NXv=Zsu?{firstChild:JjP,
nextSibling:Ajb,previousSibling:Baa,firstElementChild:RRu,lastElementChild:$Jv,nextElementSibling:s54,previousElementSibling:Y_u,childNodes:nqb}:{};yku&&(NXv.parentNode=khL);VFL&&(NXv.children=Hsv);wGt&&(NXv.lastChild=j5a);bsd&&Erv(bm6);Gha&&Erv(Q7J);IrG();var grR=function(y){this.node=y instanceof ShadowRoot?y.host:y};
Ppt();Cpb();var dDG=new WeakMap;var zGy=Symbol("Fd");var Klv=new Set(["tap","track","down","up"]),pGt=_.e("pbcm_fi_query_decorators");var bi=function(){return _.YA.apply(this,arguments)||this};
_.p(bi,_.YA);_.E=bi.prototype;_.E.getState=function(){return this.store.getState()};
_.E.dispatch=function(y){this.store.dispatch(y)};
_.E.beforeRegister=function(){if(this&&typeof this==="object"){var y;var W=!!this.useSignals||!((y=this.polymerController)==null||!y.useSignals)}else W=!1;if(!W&&this.properties)for(W=_.N(Object.keys(this.properties)),y=W.next();!y.done;y=W.next()){var V=y.value;y=this.properties[V];if(y.selector){if(y.computed)throw Error("tg");V=["reduxPropertiesRecomputeTrigger",'"'+V+'"'].concat(_.GC(y.selectorArgs||[])).join(",");y.computed="recomputeReduxSelector("+V+")"}}};
_.E.attached=function(){var y=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){y.reduxPropertiesRecomputeTrigger++}));
_.e("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.E.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.E.recomputeReduxSelector=function(y,W){var V=_.Ve.apply(2,arguments),w=this.properties[W].selector;if(!w)throw Error("rg`"+W);return w.apply(null,[this.store.getState()].concat(_.GC(V)))};
_.E.select=function(y){var W=_.Ve.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return y.apply(null,[this.store.getState()].concat(_.GC(W)))};
_.CM.Object.defineProperties(bi.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("sg");}}});
bi.prototype.recomputeReduxSelector=bi.prototype.recomputeReduxSelector;_.J([_.q(),_.R("design:type",Number)],bi.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.J([_.BW()],bi);var Qo=[],mDv={},Q2=function(){return vf.apply(this,arguments)||this};
_.p(Q2,vf);Q2.prototype._addPropertyEffect=function(y,W,V){if(W==="__observeEffects"&&V){var w,t=(w=V.info.method)!=null?w:V.info.methodName;if(t){var F=this[t];this[t]=function(){Qo.push(t);try{F==null||F.apply(this,arguments)}finally{Qo.pop()}}}}_.Jq._addPropertyEffect.apply(this,[y,
W,V])};
Q2.prototype._setPendingProperty=function(y,W,V){if(Qo.length){var w=Qo[Qo.length-1],t;(t=mDv[this.is])!=null&&t.has(w)||(MFn(this.is,w),_.Hp("polymerPropertyChangedInObserver",{componentName:this.is,observerName:w}))}return _.Jq._setPendingProperty.apply(this,[y,W,V])};
_.J([tdj()],Q2);var qSz=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),uHb,jB={};_.e("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=jB);var HW=function(){return _.YA.apply(this,arguments)||this};
_.p(HW,_.YA);HW.prototype._setUnmanagedPropertyToNode=function(y,W,V){y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!0);if(V!==y[W]||typeof V==="object")y[W]=V;y.is&&y.polymerController&&y.polymerController!==y&&$A(y.is,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!1)};
_.J([_.BW()],HW);UDP()&&(ZR.prototype._setUnmanagedPropertyToNode=(new HW)._setUnmanagedPropertyToNode);_.nrR={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(y){},set polymerController(y){}}]};var b6=function(){var y=vf.apply(this,arguments)||this;y.json=function(){};
return y};
_.p(b6,vf);b6.prototype.equals=function(y,W){return y===W};
b6.prototype.isEmpty=function(y){var W;(W=!y)||(W=_.bn(y)&&y.length===0);return W};
_.J([tdj()],b6);var Zm6=function(y){y=Wxv(y);w1.call(this,y)};
_.p(Zm6,w1);Zm6.prototype.addProvider=function(y){y=y.key?y:Wxv([y])[0];var W=this.keyIdToIndex.get(y.key.id);if(W){if(kXy(y,this.providers[W]))throw Error("ug`"+y.key.displayName);}else w1.prototype.addProvider.call(this,y)};
var yEJ=new Zm6([]);var WwI=!1;var RG4={};WwI||(JkR(),WwI=!0);
RG4.InjectBehavior={initializeInjection:function(){var y=this.provide;try{if((y=y!=null?y:[])&&y.length>0)for(var W=Wxv(y),V=_.N(W),w=V.next();!w.done;w=V.next())yEJ.addProvider(w.value);var t=new Set;szL(this.behaviors||[],t);W={};for(var F=_.N(t),I=F.next();!I.done;I=F.next()){var P=I.value;P.inject&&Object.assign(W,P.inject)}this.inject&&Object.assign(W,this.inject);for(var C=_.N(Object.keys(W)),d=C.next();!d.done;d=C.next()){var L=d.value,z=W[L];try{this[L]=yEJ.resolve(z)}catch(c){throw c;}}}catch(c){throw Error(c.message);
}}};var $Dt;var H9R=/\bclass\b/.test(function(){}.toString()),GX4=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var V$K=function(y){this.wasDefined=!0;Array.isArray(y)||y instanceof Array?(this.JSC$13283_getImpl=y[0],this.JSC$13283_setImpl=y[1]):this.JSC$13283_getImpl=y};
_.E=V$K.prototype;_.E.getWithPath=function(y){return Qzt(this.JSC$13283_getImpl(),y)};
_.E.setWithPath=function(y,W){var V=this;if(y.length)throw Error("vg");if(!this.JSC$13283_setImpl)throw Error("wg");lO(function(){V.JSC$13283_setImpl(W)})};
_.E.notifyPath=function(){throw Error("xg");};
_.E.notifySplices=function(){throw Error("yg");};
_.E.getChangeRecordSignal=function(y,W){var V=this;if(y.length)throw Error("zg");return function(){var w=V.getWithPath(y);return{path:W!=null?W:"",base:w,value:w}}};
_.E.getSplicesSignal=function(){throw Error("Ag");};
_.E.getPathMutationSignal=function(){throw Error("Bg");};
_.E.pop=function(){throw Error("Cg");};
_.E.push=function(){throw Error("Dg");};
_.E.splice=function(){throw Error("Eg");};
_.E.unshift=function(){throw Error("Fg");};var Zk=function(y){var W=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(y)||y instanceof Array?(this.JSC$13288_getImpl=y[0],this.JSC$13288_setImpl=y[1]):this.JSC$13288_getImpl=y;this.wasDefined=!1;mT(function(){W.wasDefined=W.JSC$13288_getImpl()!==void 0})};
Zk.prototype.getWithPath=function(y){return Qzt(this.JSC$13288_getImpl(),y)};
Zk.prototype.setWithPath=function(y,W){var V=this;if(y[y.length-1]!=="*"&&y[y.length-1]!=="splices"){if(y.length===0){if(!this.JSC$13288_setImpl)throw Error("Gg");this.wasDefined||(this.wasDefined=W!==void 0);lO(function(){V.JSC$13288_setImpl(W)})}else{for(var w=mT(function(){return V.getWithPath([])}),t=0;t<y.length-1;t++){if(!w)return;
w=w[y[t]]}t=y[y.length-1];w&&(w[t]=W);this.wasDefined||(this.wasDefined=y.length>1||W!==void 0)}wDr(this,y,{pathComponents:y,value:W})}};
Zk.prototype.notifyPath=function(y,W){y.length===0?W&&this.setWithPath(y,W.value):wDr(this,y,{pathComponents:y,value:W==null?void 0:W.value,fallbackWhenUndefined:W==null?void 0:W.value})};
var wDr=function(y,W,V,w){if(y.setMutationSignal){var t=++y.mutationIndex,F=[y.observedPath],I=y.observedPath,P;W.length===0&&(P=I);for(var C=0;C<W.length;C++){var d=I.subPaths[W[C]];if(!d)break;F.push(d);I=d;C===W.length-1&&(P=d)}for(W=!1;F.length;)I=F.shift(),I.data={index:t,mutation:V,spliceMutationIndex:w},W||(W=I===P),W&&F.push.apply(F,_.GC(Object.values(I.subPaths)));lO(function(){y.setMutationSignal(t)})}};
Zk.prototype.notifySplices=function(y,W){var V=this,w=mT(function(){return V.getWithPath(y)}),t=[].concat(_.GC(y),["splices"]);
wDr(this,t,{pathComponents:t,value:{indexSplices:W}});if(w==null?0:w.length)W=this.mutationIndex,t=[].concat(_.GC(y),["length"]),wDr(this,t,{pathComponents:t,value:w.length},W)};
var t$R=function(y,W,V,w,t,F){y.notifySplices(V,[{index:w,addedCount:t,removed:F,object:W,type:"splice"}])},FwQ=function(y,W){y=y.observedPath;
for(var V=0;V<W.length;V++){var w=W[V],t=y.subPaths[w];t||(t={pathComponents:W.slice(0,V+1),subPaths:{}},y.subPaths[w]=t);y=t}},NOJ=function(y,W,V){FwQ(y,W);
if(!y.getMutationSignal){var w=_.N(_.M1(y.mutationIndex,void 0,"HavCgf"));y.getMutationSignal=w.next().value;y.setMutationSignal=w.next().value}var t=y.getMutationSignal;return _.DZ(function(){t();return V(EZK(y,W))},void 0,"BYaPo")};
Zk.prototype.getChangeRecordSignal=function(y,W){var V=this,w=this.mutationIndex,t;return NOJ(this,y,function(F){if(F&&F.index>w){var I=F.mutation;w=F.index;t=void 0}F=mT(function(){return V.getWithPath(y)});
if(I){var P=I.pathComponents[I.pathComponents.length-1],C=[].concat(_.GC(I.pathComponents));if(P==="splices"||P==="length")return{base:F,path:(W?[W].concat(_.GC(C)):C).join("."),value:I.value};var d=y.length>C.length?y:C,L;return{base:F!=null?F:I.fallbackWhenUndefined,path:(W?[W].concat(_.GC(d)):d).join("."),value:(L=mT(function(){return V.getWithPath(d)}))!=null?L:I.fallbackWhenUndefined}}t||(t={base:F,
path:(W?[W].concat(_.GC(y)):y).join("."),value:F});return t})};
Zk.prototype.getSplicesSignal=function(y){var W=this.mutationIndex,V;return NOJ(this,y,function(w){if(w&&w.index>W&&w.spliceMutationIndex!==W){var t=w.mutation;W=w.index;V=void 0}return t&&t.pathComponents[t.pathComponents.length-1]==="splices"?V=w=t.value:V})};
Zk.prototype.getPathMutationSignal=function(y){var W=this;FwQ(this,y);if(!this.getMutationSignal){var V=_.N(_.M1(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=V.next().value;this.setMutationSignal=V.next().value}var w=this.getMutationSignal,t=this.mutationIndex,F;return _.DZ(function(){w();var I=EZK(W,y);if(I&&I.index>t&&I.mutation&&Z9L(I.mutation.pathComponents,y)){var P=I.mutation;t=I.index}if(!F||t!==F.index){var C,d;I=(d=mT(function(){return W.getWithPath(y)}))!=null?d:(C=P)==null?
void 0:C.fallbackWhenUndefined;
F={index:t,value:I}}return F},void 0,"Aumsyf")};
var EZK=function(y,W){y=y.observedPath;W=_.N(W);for(var V=W.next();!V.done;V=W.next())y=y.subPaths[V.value];return y.data};
Zk.prototype.pop=function(y){var W=this,V=mT(function(){return W.getWithPath(y)});
if(!(V instanceof Array))throw Error("Hg");var w=V.length>0,t=V.pop();w&&t$R(this,V,y,V.length,0,[t]);return t};
Zk.prototype.push=function(y){var W=_.Ve.apply(1,arguments),V=this,w=mT(function(){return V.getWithPath(y)});
if(!(w instanceof Array))throw Error("Ig");var t=w.length,F=w.push.apply(w,_.GC(W));W.length&&t$R(this,w,y,t,W.length,[]);return F};
Zk.prototype.splice=function(y,W,V){var w=_.Ve.apply(3,arguments),t=this,F=mT(function(){return t.getWithPath(y)});
if(!(F instanceof Array))throw Error("Jg");W<0?W=F.length-Math.floor(-W):W&&(W=Math.floor(W));var I=F.splice.apply(F,[W,V].concat(_.GC(w)));(w.length||I.length)&&t$R(this,F,y,W,w.length,I);return I};
Zk.prototype.unshift=function(y){var W=_.Ve.apply(1,arguments),V=this,w=mT(function(){return V.getWithPath(y)});
if(!(w instanceof Array))throw Error("Kg");var t=w.unshift.apply(w,_.GC(W));W.length&&t$R(this,w,y,0,W.length,[]);return t};var IdJ=!0,gZm=!1,s7u=!1,Pvi=!1,IUz=!1,Cv2=0;Pvi=!1;Cv2=0;IdJ=!0;IUz=gZm=s7u=!1;var yk=function(y,W,V){this.model=y;this.unknownSignalResolver=W;this.options=V;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];W=_.N(Pqv());y=W.next().value;W=W.next().value;this.owner=y;this.disposeImpl=W};
yk.prototype.dispose=function(){if(!this.isDisposed){for(var y=_.N(this.childSignalProxies),W=y.next();!W.done;W=y.next())W.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ONQ=function(y,W){y=_.Lb(y.owner);try{W()}finally{_.Lb(y)}};
yk.prototype.effect=function(y){ONQ(this,function(){_.rf(y)})};
var vZi=function(y,W){y.options!=null||(y.options={});var V;(V=y.options).immutableProps!=null||(V.immutableProps=new Set);y.options.immutableProps.add(W)},kiz=function(y,W){W=""+W;
dwq(y,W);var V,w;if((V=y.options)==null?0:(w=V.immutableProps)==null?0:w.has(W))return!0;var t;if((t=y.model.__signalCache)==null?0:t.has(W))V=y.model.__signalCache.get(W),Array.isArray(V)&&vZi(y,W);var F,I,P;return(P=(F=y.options)==null?void 0:(I=F.immutableProps)==null?void 0:I.has(W))!=null?P:!1},Lwz=function(y,W){var V;
y.unknownSignalResolver&&(V=y.unknownSignalResolver(W));var w,t;((w=y.options)==null?0:(t=w.immutableProps)==null?0:t.has(W))?V!=null||(V=new V$K(_.M1(y.model[W],void 0,"bgwlkd"))):V!=null||(V=new Zk(_.M1(y.model[W],void 0,"V1hou")));var F=y.model.hostElement;Object.defineProperty(y.model,W,{get:function(){DDy(F,W);return V.getWithPath([])},
set:function(I){n6(F,W);y.setWithPath([W],I)},
configurable:!0});return V},dwq=function(y,W){var V,w,t;
((V=y.model.__signalCache)==null||!V.has(W))&&((w=y.options)==null?0:(t=w.externalSignalProps)==null?0:t.has(W))&&y.model[W]},V3=function(y,W){W=""+W;
var V=y.signalCache[W];if(V!==void 0)return V;V=!1;dwq(y,W);var w;if((w=y.model.__signalCache)==null?0:w.has(W))if(V=y.model.__signalCache.get(W),Array.isArray(V))V=!0,vZi(y,W);else return y.signalCache[W]=y.model.__signalCache.get(W).signal,y.signalCache[W];var t,F;w=(F=(t=y.options)==null?void 0:t.reactivityMode)!=null?F:0;var I,P;if(!((I=y.options)==null?0:(P=I.reactiveProps)==null?0:P.has(W))&&!V&&w===1)throw Error("Lg`"+W);t=V?zhA(y,W):Lwz(y,W);return y.signalCache[W]=t},zhA=function(y,W){var V=
Object.getOwnPropertyDescriptor(y.model.constructor.prototype,W),w=function(){return y.model[W]};
return new V$K(V&&V.get&&!V.set?w:[w,function(t){y.model[W]=t}])};
yk.prototype.getWithPath=function(y){var W=_.N(y);y=W.next().value;W=Cb(W);DDy(this.model.hostElement,""+y);return V3(this,y).getWithPath(W)};
yk.prototype.setWithPath=function(y,W){if(y.length){n6(this.model.hostElement,y.join("."));var V=_.N(y);y=V.next().value;V=Cb(V);V3(this,y).setWithPath(V,W)}};
yk.prototype.getPathMutationSignal=function(y){var W=_.N(y);y=W.next().value;W=Cb(W);return V3(this,y).getPathMutationSignal(W)};
yk.prototype.notifyPath=function(y,W){var V=_.N(y);y=V.next().value;V=Cb(V);V3(this,y).notifyPath(V,W)};
var cEm=function(y,W){if(W.type==="literal")return function(){return{rootWasDefined:!0,value:W.value}};
var V=y3(W.path),w=_.N(V),t=w.next().value;w=Cb(w);var F,I;if(W.type==="path"&&(V.length===1||((F=y.options)==null?0:(I=F.immutableProps)==null?0:I.has(t))))return function(){var z=y.getWithPath(V.slice(0,1)),c=Qzt(z,V.slice(1));z=z!==void 0;ghy()&&(z=V3(y,V[0]).wasDefined);return{rootWasDefined:z,value:c}};
var P=V3(y,t);if(W.type==="path"){var C=P.getPathMutationSignal(w);return function(){var z=ghy()?P.wasDefined:bO(y.owner,function(){return P.getWithPath([])})!==void 0;
var c,K=(c=C())==null?void 0:c.value;return{rootWasDefined:z,value:K}}}if(W.type==="splices"){var d=P.getSplicesSignal(w);
return function(){var z=d();return{rootWasDefined:ghy()?P.wasDefined:z!==void 0,value:z}}}var L=P.getChangeRecordSignal(w,""+t);
return function(){var z=L();return{rootWasDefined:ghy()?P.wasDefined:z!==void 0,value:z}}},Fsv=function(y,W,V){var w=V.map(function(P){return cEm(y,P)}),t=V.length===0,F=[],I=V.length!==1||V[0].type!=="path"?!1:!0;
y.effect(function(){for(var P=w.length,C=[],d=!!F.length,L=0;L<P;L++){var z=w[L](),c=z.rootWasDefined;z=z.value;t||(t=c);C[L]=z;I&&(C[L+P]=d?F[L]:C[L],F[L]=z)}t&&bO(y.owner,function(){return void W.apply(null,_.GC(C))})})},y4P=function(y,W,V,w,t){var F=V3(y,W);
t!==void 0&&F.setWithPath([],t);Fsv(y,function(){var I=_.Ve.apply(0,arguments);n6(y.model.hostElement,W,!0);F.setWithPath([],V.apply(null,_.GC(I)))},w)};
yk.prototype.arrayPush=function(y){var W=_.Ve.apply(1,arguments),V=_.N(y),w=V.next().value;V=Cb(V);w=V3(this,w);return w.push.apply(w,[V].concat(_.GC(W)))};
yk.prototype.arraySplice=function(y,W,V){var w=_.Ve.apply(3,arguments),t=_.N(y),F=t.next().value;t=Cb(t);F=V3(this,F);return F.splice.apply(F,[t,W,V].concat(_.GC(w)))};
yk.prototype.arrayUnshift=function(y){var W=_.Ve.apply(1,arguments),V=_.N(y),w=V.next().value;V=Cb(V);w=V3(this,w);return w.unshift.apply(w,[V].concat(_.GC(W)))};
yk.prototype.notifySplices=function(y,W){var V=_.N(y);y=V.next().value;V=Cb(V);V3(this,y).notifySplices(V,W)};var zrv=/([^\s]+?)\(([\s\S]*)\)/,vhG=/\.([^.]+)$/,ert=/\\,/g,Cqv=/&comma;/g,Ota=/\\(.)/g,c44=[],dFj={"*":"wildcard",splices:"splices"};var qtG=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"),fUG=/[A-Z]/,ehr=["class","hidden","id","on-dom-change"],uNG=new Set([].concat(_.GC(ehr),
["if","notify-dom-change","restamp"])),Stb=new Set([].concat(_.GC(ehr),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),DFn=new Set(["restamp"]);var Sbt=new Set(["className","id"]);var A4n=Symbol(),nh4=window;var Zty=window;var EwG=0,Vjd=0,wc=[],Fij=0,Wiy=!1,tj4=document.createTextNode("");(new window.MutationObserver(w6d)).observe(tj4,{characterData:!0});var FZ=new Map,tY=0,hhR=function(y){this.mappedHandleId=y},IiG=function(y,W,V,w){this.mappedHandleId=y;
var t=this;this.mappedHandleId=y;this.callback=W;this.waitTime=V;this.schedulerPriority=w;this.handleId=_.HU.addJob(function(){t.callback();FZ.delete(t.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.p(IiG,hhR);IiG.prototype.cancel=function(){_.HU.cancelJob(this.handleId);FZ.delete(this.mappedHandleId)};
var gw4=function(y,W){this.mappedHandleId=y;var V=this;this.mappedHandleId=y;this.callback=W;this.handleId=NRt(function(){V.callback();FZ.delete(V.mappedHandleId)})};
_.p(gw4,hhR);gw4.prototype.cancel=function(){var y=this.handleId-Vjd;y<0||wc.length<=y||(wc[y]=null);FZ.delete(this.mappedHandleId)};var vwb=function(){};
vwb.prototype.cancel=function(){this.jobHandle!==void 0&&(PxL(this.jobHandle),this.jobHandle=void 0)};
vwb.prototype.run=function(y,W,V){var w=this;this.cancel();this.callback=y;this.jobHandle=_.Er(function(){y();w.callback=void 0},W,V)};
vwb.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Cxb=new WeakMap;var oZ6=d9(function(y){for(var W=y,V=0;V<3;V++)W=Object.getPrototypeOf(W);delete W.prototype.connectedCallback;var w=function(){return y.apply(this,arguments)||this};
_.p(w,y);w.prototype._attachDom=function(t){if(!t)return null;var F=(0,_.Mg)(this.hostElement);F.attachShadow({mode:"open",shadyUpgradeFragment:t});F.shadowRoot.appendChild(t);return F.shadowRoot};
w.prototype._takeAttributes=function(){for(var t=this.hostElement.attributes,F=0;F<t.length;F++){var I=t[F],P=void 0,C=void 0;(C=(P=this).__attributeReaction)==null||C.call(P,I.name,null,I.value)}};
w.prototype._readyClients=function(){y.prototype._readyClients.call(this);this.root=this};
w.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);y.prototype.connectedCallback.call(this)};
_.CM.Object.defineProperties(w,{template:{configurable:!0,enumerable:!0,get:function(){return w.prototype._template}}});
return w}),KwE=d9(function(y){var W=function(){return y.apply(this,arguments)||this};
_.p(W,y);W.prototype.created=function(){if(this.__notifyEffects)for(var V=_.N(Object.values(this.__notifyEffects)),w=V.next();!w.done;w=V.next()){w=_.N(w.value);for(var t=w.next();!t.done;t=w.next())t.value.fn=c3v}if(this.__reflectEffects)for(V=_.N(Object.values(this.__reflectEffects)),w=V.next();!w.done;w=V.next())for(w=_.N(w.value),t=w.next();!t.done;t=w.next())t.value.fn=exn};
W.prototype._addEventListenerToNode=function(V,w,t){V=IU(V);Hl(V,w,t)||y.prototype._addEventListenerToNode.call(this,V,w,t)};
W.prototype._removeEventListenerFromNode=function(V,w,t){V=IU(V);XD(V,w,t)||y.prototype._removeEventListenerFromNode.call(this,V,w,t)};
W.prototype._propertiesChanged=function(V,w,t){if(this.__dataToNotify&&this.__notifyEffects)for(var F=_.N(Object.keys(this.__dataToNotify)),I=F.next();!I.done;I=F.next()){I=I.value;var P=zxL(I);this.__notifyEffects[P]||delete this.__dataToNotify[I]}else this.__dataToNotify=null;y.prototype._propertiesChanged.call(this,V,w,t)};
W.prototype.fire=function(V,w,t){w=w===void 0?{}:w;var F;return _.h1(IU((F=t==null?void 0:t.node)!=null?F:this),V,w,t)};
W.prototype._ensureAttribute=function(V,w){var t=IU(this);t.hasAttribute(V)||WC(t,w,V)};
W.prototype.isLightDescendant=function(V){var w=IU(this);return IU(w)!==V&&_.i6(w).contains(V)&&_.i6(w).getRootNode()===_.i6(V).getRootNode()};
return W});
_.JB.ready=function(){var y;((y=this.hostElement)!=null?y:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var W;((W=this.hostElement)!=null?W:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Gm._subscribeIronResize=function(y){var W;((W=y.hostElement)!=null?W:y).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Gm._unsubscribeIronResize=function(y){var W;((W=y.hostElement)!=null?W:y).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Kij=[Array,Boolean,Date,Number,Object,String],CD=function(y,W,V,w){this.polySiInfo=y;this.polySiParams=W;this.polySiContext=V;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;w||this instanceof HTMLElement&&(w=this);if(!w)throw Error("Sg");this.allowedProps=W.allowedProps;this.hostElement=w;this.is=y.is;this.upgradeDisabled=!!W.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");y=new Set(W.reactiveSchemas.filter(function(t){return t.type!==
"observe"}).map(function(t){return t.propertyKey}));
this.signalProxy=new yk(this,void 0,{reactiveProps:y,reactivityMode:W.reactivityMode});this.__dataHasAccessor={};W=_.N(W.reactiveSchemas);for(y=W.next();!y.done;y=W.next())y=y.value,y.type==="signal"&&(this.__dataHasAccessor[y.propertyKey]=!0);this.upgradeDisabled||pDK(this)};
CD.prototype.getExtraMethodsToForward=function(){return[]};
var pDK=function(y){y.polySiContext.didRegister||(y.registered(),y.polySiContext.didRegister=!0);y.polySiContext.finalizedTemplate||(y.polySiContext.finalizedTemplate={},y.polySiParams.templateGetter&&(y.polySiContext.finalizedTemplate.processedTemplate=y3u(y.polySiParams.templateGetter,y.polySiParams.is)));iN2(y);var W=y.hostElement;W.loggingStatus!=null||(W.loggingStatus={});W.loggingStatus.isInitializing=!0;mT(function(){return void y.created()});
W.loggingStatus.isInitializing=!1;y.isPolySiElementConnected&&fdR(y)},fdR=function(y){y.didCallReady||(mT(function(){return void y.ready()}),y.didCallReady=!0);
y.isAttached=!0;y.attached()};
_.E=CD.prototype;_.E.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||fdR(this)};
_.E.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.E.attributeChangedCallback=function(y,W,V){if(this.upgradeDisabled)y==="disable-upgrade"&&V===null&&(this.upgradeDisabled=!1,pDK(this));else if(W!==V){var w=_.SK(y),t=this.polySiContext.typesForSignals[w];if(t&&(!this.reflecting||_.e("polysi_attribute_changed_serializing_killswitch"))){switch(t){case Object:try{var F=JSON.parse(V)}catch(P){F=V}break;case Array:try{F=JSON.parse(V)}catch(P){F=null}break;case Date:F=isNaN(V)?String(V):Number(V);F=new Date(F);break;case Boolean:F=V!==null;break;case Number:F=
Number(V);break;default:F=V}this[w]=F}w=_.N(this.polySiParams.behaviors);for(t=w.next();!t.done;t=w.next())F=void 0,(F=t.value.attributeChanged)==null||F.call(this,y,W,V);var I;(I=this.attributeChanged)==null||I.call(this,y,W,V)}};
_.E.attributeChangedCallbackWrapper=function(y,W,V){this.attributeChangedCallback(y,W,V)};
_.E.setPropertiesFromInitialAttributeValues=function(){for(var y=0;y<this.hostElement.attributes.length;y++){var W=this.hostElement.attributes[y];(W.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(W.name))&&this.attributeChangedCallback(W.name,null,W.value)}};
_.E.created=function(){this.provide=this.polySiParams.provide;var y;(y=this.initializeInjection)==null||y.call(this);y=_.N(this.polySiParams.reactiveSchemas);for(var W=y.next();!W.done;W=y.next())W=W.value,W.type==="signal"&&(this.mutablePropNames.add(W.propertyKey),V3(this.signalProxy,W.propertyKey));owj(this,this.polySiInfo,this.polySiParams.behaviors);y=_.N(this.polySiParams.reactiveSchemas);for(W=y.next();!W.done;W=y.next())W=W.value,W.type==="signal"&&W.value!==void 0&&(this.signalProxy.model[W.propertyKey]=
typeof W.value==="function"?W.value.call(this):W.value);if(this.polySiParams.signalProperties)for(y=_.N(this.polySiParams.signalProperties),W=y.next();!W.done;W=y.next()){W=W.value;var V=void 0;((V=this.__signalCache)==null?0:V.has(W))||(this.signalProxy.model[W]=void 0)}Pvi||TOE(this);hxz(this);y=_.N(this.polySiParams.behaviors);for(W=y.next();!W.done;W=y.next())V=void 0,(V=W.value.created)==null||V.call(this);var w;(w=this.polySiInfo.created)==null||w.call(this)};
_.E.registered=function(){var y=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var W=Object.getPrototypeOf(this);W.addReactiveSchema=function(P){y.polySiParams.reactiveSchemas.push(P)};
for(var V=_.N(this.polySiParams.behaviors),w=V.next();!w.done;w=V.next()){var t=void 0;(t=w.value.beforeRegister)==null||t.call(W)}var F;(F=this.polySiInfo.beforeRegister)==null||F.call(W);W.addReactiveSchema=imu;V=_.N(this.polySiParams.behaviors);for(w=V.next();!w.done;w=V.next())t=void 0,(t=w.value.registered)==null||t.call(W);var I;(I=this.polySiInfo.registered)==null||I.call(W)};
_.E.ready=function(){var y;(y=this.beforeReady)==null||y.call(this);Pvi&&TOE(this);var W;if(y=(W=this.polySiContext.finalizedTemplate)==null?void 0:W.processedTemplate){y=Q_t(y.template,y.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:y.hasInsertionPoint,thisCtx:this});W=y.nodesById;y=y.root;var V=this.hostElement;var w=w===void 0?!1:w;V=(0,_.Mg)(V);if(!V.attachShadow)throw Error("Ld");if(!V.shadowRoot||w)V.attachShadow({mode:"open",shadyUpgradeFragment:y}),V.shadowRoot.appendChild(y);
this.root=V.shadowRoot;this.$=W}mwm(this);w=_.N(this.polySiParams.behaviors);for(W=w.next();!W.done;W=w.next())y=void 0,(y=W.value.ready)==null||y.call(this);var t;(t=this.polySiInfo.ready)==null||t.call(this)};
_.E.attached=function(){for(var y=_.N(this.polySiParams.behaviors),W=y.next();!W.done;W=y.next()){var V=void 0;(V=W.value.attached)==null||V.call(this)}var w;(w=this.polySiInfo.attached)==null||w.call(this)};
_.E.detached=function(){for(var y=_.N(this.polySiParams.behaviors),W=y.next();!W.done;W=y.next()){var V=void 0;(V=W.value.detached)==null||V.call(this)}var w;(w=this.polySiInfo.detached)==null||w.call(this)};
var iN2=function(y){for(var W=_.N(y.polySiParams.behaviors),V=W.next();!V.done;V=W.next())if(V=V.value,V.listeners)for(var w in V.listeners)btL(y,y.hostElement,w,V.listeners[w]);if(y.polySiInfo.listeners)for(var t in y.polySiInfo.listeners)btL(y,y.hostElement,t,y.polySiInfo.listeners[t])},btL=function(y,W,V,w,t){y=b9P(y,w,t);
Hl(W,V,y)||W.addEventListener(V,y);return y},TOE=function(y){for(var W=_.N(y.polySiParams.reactiveSchemas),V=W.next();!V.done;V=W.next())V=V.value,V.type==="compute"||V.type==="computeWithMethod"?WsL(y.signalProxy,V,y):V.type==="redux"?tcv(y.signalProxy,V,y.store):V.type==="signal"&&V.readOnly&&wvv(y.signalProxy,V)},mwm=function(y){for(var W=_.N(y.polySiParams.reactiveSchemas),V=W.next(),w={};!V.done;w={schema$jscomp$12:void 0},V=W.next())w.schema$jscomp$12=V.value,w.schema$jscomp$12.type==="notify"?
Ehb(y.signalProxy,w.schema$jscomp$12,y.hostElement):w.schema$jscomp$12.type==="observe"?NkL(y.signalProxy,w.schema$jscomp$12,y):w.schema$jscomp$12.type==="reflect"&&y.signalProxy.effect(function(F){return function(){var I=y.signalProxy.getWithPath([F.schema$jscomp$12.propertyKey]);
y.reflecting=!0;ohG(y.hostElement,F.schema$jscomp$12.propertyKey,I,!0);y.reflecting=!1}}(w));
if(y.reflectedAttributes)for(W=_.N(Object.entries(y.reflectedAttributes)),w=W.next(),V={};!w.done;V={key$jscomp$907:void 0,value$jscomp$8999:void 0},w=W.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;V.key$jscomp$907=w;V.value$jscomp$8999=t;y.signalProxy.effect(function(F){return function(){y.reflecting=!0;ohG(y.hostElement,F.key$jscomp$907,(0,F.value$jscomp$8999)(),!0);y.reflecting=!1}}(V))}};
_.E=CD.prototype;_.E._setPendingProperty=function(y,W){this.set(y,W);return!1};
_.E._enableProperties=function(){};
_.E._setPendingPropertyOrPath=function(y,W){this.notifyPath(y,W);return!1};
_.E._addPropertyEffect=function(){};
_.E._stampTemplate=function(){throw Error("Tg");};
_.E.fire=function(y,W,V){W=W===void 0?{}:W;V=V===void 0?{}:V;var w,t,F={bubbles:(w=V.bubbles)!=null?w:!0,cancelable:!!V.cancelable,composed:(t=V.composed)!=null?t:!0},I;return _.h1(fin((I=V.node)!=null?I:this.hostElement),y,W,F)};
_.E.get=function(y,W){var V=y3(y);return W?Qzt(W,V):y==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(V)};
_.E.linkPaths=function(){};
_.E.listen=function(y,W,V){y=fin(y);this.boundListeners!=null||(this.boundListeners=new WeakMap);var w=this.boundListeners.get(y);w||(w={},this.boundListeners.set(y,w));var t=W+V;w[t]||(w[t]=btL(this,y,W,V))};
_.E.notifyPath=function(y,W){this.signalProxy.notifyPath(y3(y),arguments.length===2?{value:W}:void 0)};
_.E.canNotifyPath=function(y){return this.mutablePropNames.has(y)&&!kiz(this.signalProxy,y)};
_.E.notifySplices=function(y,W){this.signalProxy.notifySplices(y3(y),W)};
_.E.pop=function(y){var W=this.signalProxy;y=y3(y);var V=_.N(y);y=V.next().value;V=Cb(V);return V3(W,y).pop(V)};
_.E.push=function(y){var W=_.Ve.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[y3(y)].concat(_.GC(W)))};
_.E.set=function(y,W,V){if(V)throw Error("Ug");y==="hidden"?this.hostElement.hidden=!!W:this.signalProxy.setWithPath(y3(y),W)};
_.E.setProperties=function(y){y=_.N(Object.entries(y));for(var W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;this[W]=V}};
_.E.splice=function(y,W,V){var w=_.Ve.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[y3(y),W,V].concat(_.GC(w)))};
_.E.unlinkPaths=function(){};
_.E.unlisten=function(y,W,V){y=fin(y);if(this.boundListeners){var w=this.boundListeners.get(y);if(w){V=W+V;var t=w[V];t&&(XD(y,W,t)||y.removeEventListener(W,t),delete w[V])}}};
_.E.unshift=function(y){var W=_.Ve.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[y3(y)].concat(_.GC(W)))};
_.CM.Object.defineProperties(CD.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 kEv=[Array,Boolean,Date,Number,Object,String];var Yjy=!1;var WB=function(){var y=HTMLElement.apply(this,arguments)||this;y.restamp=!1;y.notifyDomChange=!1;y.JSC$13396_didCallConnected=!1;y.JSC$13396_renderDebouncer=null;y.disableTemplateUpdateSignalImpl=Or()?void 0:_.M1(!1,void 0,"Ofhkwb");var W;y.getDisableTemplateUpdate=(W=y.disableTemplateUpdateSignalImpl)==null?void 0:W[0];var V;y.setDisableTemplateUpdate=(V=y.disableTemplateUpdateSignalImpl)==null?void 0:V[1];return y};
_.p(WB,HTMLElement);var M$z=function(y){y.conditionSignalImpl!=null||(y.conditionSignalImpl=new Zk(_.M1(!1,void 0,"gE52Fb")));return y.conditionSignalImpl};
_.E=WB.prototype;_.E.showHideChildren=function(y){qbs(this,y,this.if)};
_.E.attributeChangedCallback=function(y,W,V){if(this.JSC$13396_didCallConnected)throw Error("Yg`"+y);y==="notify-dom-change"?this.notifyDomChange=V!==null:y==="restamp"&&(this.restamp=V!==null)};
_.E.debounceRender=function(){this.JSC$13396_renderDebouncer=_.Tn(this.JSC$13396_renderDebouncer,GY,this.JSC$13396_renderImpl.bind(this));_.mu(this.JSC$13396_renderDebouncer)};
_.E.disconnectedCallback=function(){var y=(0,_.Mg)(this).parentNode;(!y||y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in y&&!y.host)&&UwR(this)};
_.E.connectedCallback=function(){var y=this;this.JSC$13396_didCallConnected=!0;IdJ?BRa():this.style.display="none";this.parentSignalProxy.effect(function(){M$z(y).getWithPath([]);y.debounceRender()})};
_.E.render=function(){_.uJ()};
_.E.JSC$13396_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var y=this.if;if(y){a:{var W=(0,_.Mg)(this).parentNode;if(this.hasInstance()){var V=this.instance.children;if((V==null?0:V.length)&&(0,_.Mg)(this).previousSibling!==V[V.length-1])for(var w=0;w<V.length;w++)(0,_.Mg)(W).insertBefore(V[w],this)}else{if(!W){W=!1;break a}uQ6(this,W)}W=!0}if(!W)return}else this.restamp&&UwR(this);qbs(this,!1,y);y&&SbI(this);gZm&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.E.hasInstance=function(){return!!this.instance};
var uQ6=function(y,W){var V=y.parentSignalProxy;if(Or()){var w=_.N(_.M1(!0,void 0,"jPhFae"));var t=w.next().value;w=w.next().value;V=y.parentSignalProxy}else{var F;var I=new yk((F=DwQ(y))!=null?F:{},function(C){var d=V3(y.parentSignalProxy,C).getChangeRecordSignal([]);C=_.M1(void 0,void 0,"nE9rQb");var L=new Zk(C);I.effect(function(){if(y.getDisableTemplateUpdate&&!y.getDisableTemplateUpdate()){var z=d();L.notifyPath(y3(z.path),{value:z.value})}});
return L});
y.parentSignalProxy.childSignalProxies.push(I);var P=V=I}V=Q_t(y.templateInfo,y.templateInfo.nodeInfoList,V,{eventListenerHost:y.eventListenerHost,hasInsertionPoint:y.templateInfo.hasInsertionPoint,thisCtx:y.eventListenerHost,enabledSignal:Or()?t:void 0,getModel:function(){return DwQ(y)}}).root;
y.instance={root:V,children:[],hidden:!1,signalProxy:P,getTemplateUpdatesEnabled:t,setTemplateUpdatesEnabled:w};P=_.N(V.childNodes);for(t=P.next();!t.done;t=P.next())y.instance.children.push(t.value);(0,_.Mg)(W).insertBefore(y.instance.root,y)},DwQ=function(y){if((y=y.parentSignalProxy.model)&&!y.hostElement){var W={},V;
for(V in y)y.hasOwnProperty(V)&&(W[V]=y[V]);return W}},UwR=function(y){if(y.instance){var W=y.instance.children;
if(W.length){var V=(0,_.Mg)(W[0]).parentNode;if(V){V=(0,_.Mg)(V);for(var w=0;w<W.length;w++)V.removeChild(W[w])}}Or()?y.instance.setTemplateUpdatesEnabled(!1):y.instance.signalProxy.dispose();y.instance=void 0}},qbs=function(y,W,V){W=W||!V;
y.instance&&y.instance.hidden!==W&&(y.instance.hidden=W,A3j(W,y.instance.children))},SbI=function(y){if(Or()){var W=y.instance;
W&&bO(y.parentSignalProxy.owner,function(){return!W.getTemplateUpdatesEnabled()})&&W.setTemplateUpdatesEnabled(!0)}else y.setDisableTemplateUpdate(!1)};
_.CM.Object.defineProperties(WB.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var y=this;return bO(this.parentSignalProxy.owner,function(){return M$z(y).getWithPath([])})},
set:function(y){y||(Or()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));M$z(this).setWithPath([],!!y)}}});
_.CM.Object.defineProperties(WB,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",WB);var ldR=[],Vk=function(){var y=HTMLElement.apply(this,arguments)||this;y.as="item";y.indexAs="index";y.itemsIndexAs="itemsIndex";y.targetFramerate=20;y.notifyDomChange=!1;y.isDetached=!1;y.JSC$13403_renderDebouncer=null;y.instances=[];y.chunkingId=null;y.chunkCount=null;y.shouldMeasureChunk=!1;y.shouldContinueChunking=!1;y.renderStartTime=null;y.JSC$13403_didCallConnected=!1;return y};
_.p(Vk,HTMLElement);var xwJ=function(y){y.itemSignalImpl!=null||(y.itemSignalImpl=new Zk(_.M1(ldR,void 0,"YBrqgf")));return y.itemSignalImpl},k_A=function(y,W){Array.isArray(W)||(W=ldR);
xwJ(y).setWithPath([],W)};
_.E=Vk.prototype;_.E.showHideChildren=function(y){for(var W=_.N(this.instances),V=W.next();!V.done;V=W.next())A3j(y,V.value.children)};
_.E.notifyPath=function(y,W){y=y3(y);y[0]==="items"&&(y.length===1?k_A(this,W):xwJ(this).setWithPath(y.slice(1),W))};
_.E.canNotifyPath=function(y){return y==="items"};
_.E.attributeChangedCallback=function(y,W,V){if(this.JSC$13403_didCallConnected)throw Error("Zg`"+y);y==="as"?this.as=V:y==="index-as"?this.indexAs=V:y==="items-index-as"?this.itemsIndexAs=V:y==="initial-count"?this.initialCount=Number(V):y==="notify-dom-change"?this.notifyDomChange=V!==null:y==="target-framerate"&&(this.targetFramerate=Number(V))};
_.E.disconnectedCallback=function(){this.isDetached=!0;for(var y=0;y<this.instances.length;y++)sEz(this,y);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.E.connectedCallback=function(){var y=this,W=xwJ(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var t=W(),F=y3(t.path);if(F[0]===void 0||F[0]==="splices"||F[0]==="length")y.debounceRender();else{var I=F[0];if(I=y.instances[typeof I==="string"?Math.floor(Number(I)):I])F=[y.as].concat(_.GC(F.slice(1))),I.signalProxy.notifyPath(F,t)}});
this.JSC$13403_didCallConnected=!0;IdJ?BRa():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var V=(0,_.Mg)((0,_.Mg)(this).parentNode),w=0;w<this.instances.length;w++)V.insertBefore(this.instances[w].root,this);this.chunkingId&&this.render()}};
_.E.debounceRender=function(){this.JSC$13403_renderDebouncer=_.Tn(this.JSC$13403_renderDebouncer,GY,this.JSC$13403_renderImpl.bind(this));_.mu(this.JSC$13403_renderDebouncer)};
_.E.render=function(){this.debounceRender();_.uJ()};
_.E.JSC$13403_renderImpl=function(){var y=this;if(!this.parentSignalProxy.isDisposed){var W=this.items,V=AEr(this,W.length);YbJ(this,W,V);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){y.chunkingId=null;if(y.shouldMeasureChunk){var w=performance.now()-y.renderStartTime;y.chunkCount=Math.round(Math.ceil(1E3/y.targetFramerate)/w*y.chunkCount)||1}y.shouldContinueChunking&&y.debounceRender()}));
gZm&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var AEr=function(y,W){var V=W,w=y.instances.length;if(y.initialCount){if(y.chunkCount){var t=Math.min(Math.max(W-w,0),y.chunkCount);V=Math.min(w+t,W)}else V=Math.min(W,y.initialCount),t=Math.max(V-w,0),y.chunkCount=t||1;y.shouldMeasureChunk=t===y.chunkCount;y.shouldContinueChunking=V<W;y.renderStartTime=performance.now()}return V},YbJ=function(y,W,V){for(var w=0;w<V;w++){var t=y.instances[w],F=W[w];
t?(t.signalProxy.setWithPath([y.as],F),t.signalProxy.setWithPath([y.indexAs],w)):BOm(y,F,w)}for(W=y.instances.length-1;W>=w;W--)V=y,t=W,sEz(V,t),_.N(V.instances.splice(t,1)).next().value.signalProxy.dispose()},sEz=function(y,W){y=y.instances[W];
W=(0,_.Mg)(y.root);for(var V=0;V<y.children.length;V++)W.appendChild(y.children[V])},BOm=function(y,W,V){var w={};
W=Object.assign({},JER(y),(w[y.as]=W,w[y.indexAs]=V,w[y.itemsIndexAs]=V,w));var t=new yk(W,function(I){if(I!==y.as&&I!==y.indexAs){if(I===y.itemsIndexAs)return V3(t,y.indexAs);var P=V3(y.parentSignalProxy,I).getChangeRecordSignal([]);I=_.M1(void 0,void 0,"T21Pqc");var C=new Zk(I);t.effect(function(){var d=P();C.notifyPath(y3(d.path),{value:d.value})});
return C}});
y.parentSignalProxy.childSignalProxies.push(t);w=Q_t(y.templateInfo,y.templateInfo.nodeInfoList,t,{eventListenerHost:y.eventListenerHost,getModel:function(){var I={};return Object.assign({},JER(y),(I[y.as]=t.model[y.as],I[y.indexAs]=t.model[y.indexAs],I[y.itemsIndexAs]=t.model[y.indexAs],I))},
hasInsertionPoint:y.templateInfo.hasInsertionPoint,thisCtx:y.eventListenerHost,methodInvocationRequirement:Cv2,enabledSignal:y.stampingEnabled}).root;W={root:w,children:[],signalProxy:t};w=_.N(w.childNodes);for(var F=w.next();!F.done;F=w.next())W.children.push(F.value);w=(w=y.instances[V+1])?w.children[0]:y;(0,_.Mg)((0,_.Mg)(y).parentNode).insertBefore(W.root,w);y.instances[V]=W},JER=function(y){if((y=y.parentSignalProxy.model)&&!y.hostElement){var W={},V;
for(V in y)y.hasOwnProperty(V)&&(W[V]=y[V]);return W}};
Vk.prototype.itemForElement=function(y){var W=this,V=this.instances.find(function(w){return w.children.includes(y)});
if(V)return bO(this.parentSignalProxy.owner,function(){return V.signalProxy.getWithPath([W.as])})};
Vk.prototype.indexForElement=function(y){var W=this.instances.findIndex(function(V){return V.children.includes(y)});
return W>=0?W:void 0};
_.CM.Object.defineProperties(Vk.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var y=this;return bO(this.parentSignalProxy.owner,function(){return xwJ(y).getWithPath([])})},
set:function(y){k_A(this,y)}},
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}}});
_.CM.Object.defineProperties(Vk,{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",Vk);var Rhi,jEq;_.w0=new _.e9("STATE_STORE_TOKEN");Rhi=new _.e9("SELECT_TOKEN");jEq=new _.e9("DISPATCH_TOKEN");var HmL={getSelectFn:function(){var y;return(y=_.hs().resolve(_.eX(Rhi)))!=null?y:J3v},
getDispatchFn:function(){var y;return(y=_.hs().resolve(_.eX(jEq)))!=null?y:_.vC().dispatch.bind(_.vC())},
getAppStore:function(){return _.hs().resolve(_.w0)}},Rxj,nwu=!1;var cC={traceAllComponents:_.e("web_tracing_all_components"),exportToCsi:_.e("web_tracing_export_to_csi"),exportBreadcrumbs:_.e("web_enable_tracing"),bufferSize:_.pB("web_max_tracing_events"),enabledSpansArray:_.fB("web_tracing_enabled_spans")};var yEP=function(){};var bmv=void 0;var $wK=function(){};
$wK.prototype.hasAttribute=function(y){if(y==="dir")return!1;if(y==="disable-upgrade"){var W,V;return(V=(W=this.hostElement)==null?void 0:W.hasAttribute("disable-upgrade"))!=null?V:!1}throw Error("$g`"+y);};
$wK.prototype.attributeChangedCallbackWrapper=function(y,W,V){if(y==="disable-upgrade"&&this.__isUpgradeDisabled&&V===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var w;((w=this.hostElement)!=null?w:this).isConnected&&this.connectedCallback()}else W===V||this.__isReflecting||this.attributeChangedCallback(y,W,V)};
$wK.prototype.getExtraMethodsToForward=function(){for(var y=this,W=[],V=_.N(nZ6),w=V.next(),t={};!w.done;t={tagName$jscomp$54:void 0,name$jscomp$572:void 0},w=V.next())t.name$jscomp$572=w.value,w=void 0,t.name$jscomp$572==="_setPendingProperty"?(t.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),w=function(F){return function(I,P,C){$A(F.tagName$jscomp$54,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return y._setPendingProperty(I,P,C)}}(t)):w=function(F){return function(){return y[F.name$jscomp$572].apply(y,
_.GC(_.Ve.apply(0,arguments)))}}(t),W.push([t.name$jscomp$572,
w]);return W};
for(var wDa=KwE(oZ6((0,_.BQ)($wK))),NOP=["disabled","disable-upgrade"],HNz=(0,_.BQ)(function(){}),XDr=new Set(Object.getOwnPropertyNames(HNz.prototype)),ON4=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.GC(XDr))),gZu=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),nZ6=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),adI=new Set([].concat(_.GC(gZu),_.GC(nZ6),_.GC(XDr))),G_m=_.N(adI),rEf=G_m.next();!rEf.done;rEf=G_m.next())qSz.add(rEf.value);var Cvn={created:function(){hxz(this);this.initializeInjection()}};var Kwz=!1,pD=window.ShadyDOM,UwG=["appendChild","insertBefore","removeChild","replaceChild"],qbR=[Node];pD&&qbR.push(pD.Wrapper);var k_v,sEy,BOu={};var Tb=new Set,iE="",JEG="";var fD,mM=new Set;var rEL=new Set("context didCallReady is info params signalProxy".split(" ")),QEz="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),ZN4="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var bNQ=qB({entities:Xw4}),QEE=new v9(bNQ);var ZNQ=function(){return _.YA.apply(this,arguments)||this};
_.p(ZNQ,_.YA);_.CM.Object.defineProperties(ZNQ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return QEE}}});
_.J([_.BW()],ZNQ);_.tZ=[bi.prototype,ZNQ.prototype];_.FV={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var y=this,W={};setTimeout(function(){var V;return _.h1((V=y.hostElement)!=null?V:y,"yt-live-chat-add-tooltip-target",W)},0);
this.handler_=W.handler},
detached:function(){if(this.handler_){var y;this.handler_.removeElementFromSupportingTooltips((y=this.hostElement)!=null?y:this)}this.handler_=null}}};_.lE=new _.e9("ICON_MANAGER_TOKEN");var yQI=[48,20,18,16,15,13,12],K7a=new Map,L7v=new Set,OR4=new Set,dtt=new Set,CHv=new Set,v6L=new Set,cQv=new Promise(function(y){var W=!1,V=!1,w=!1,t=[],F=function(I){if("detail"in I)if(I=I.detail,I.name==="yt-icons")zQL(I),W=!0;else if(I.name==="yt-sys-icons")zQL(I),V=!0;else{var P;((P=I.name)==null?0:P.includes("yt-sys-icons"))&&I.size!==24&&(zQL(I,!0),t.push(I.size),t.length===yQI.length&&(w=!0))}W&&V&&w&&(window.removeEventListener("iron-iconset-added",F),y())};
window.addEventListener("iron-iconset-added",F)}),hQn=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"]]);_.Em={};_.Em.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.OT,computeHref_:function(y,W){W=W===void 0?!1:W;if(!y||y.commandExecutorCommand)return null;var V=mHt(y,W);return W||V!==null?V?_.e("enable_polymer_resin")?_.ye(V).toString():V:null:(_.rQ(new _.Js("computeHref was null",this.is,y)),null)},
computeOptionalHref_:function(y){return this.computeHref_(y,!0)},
computeNofollow_:function(y){return y?cnP(y)?"nofollow":null:null},
computeIcon_:function(y){return y&&y.iconType?_.D8(y.iconType):""},
resolveCommand:function(y,W,V){W=W===void 0?{}:W;return _.kc(y,this.hostElement,W,V===void 0?!1:V)}};var Vof,NC;_.W7Q={};Vof=null;
NC={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_=vtR(this.viewroot));_.Er(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var y=this;this.unobserve_();if(_.e("kevlar_vimio_use_shared_monitor"))mtn(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 W=[];this.visibilityOptionVisible_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=W}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ptP(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 y=_.WM(this.parentNode,function(V){var w,t=(w=V.polymerController)!=null?w:V;return!!t.getVisibilityObserverForChild&&t.getVisibilityObserverForChild()},!0);
if(y){var W;this.localVisibilityObserver_=((W=y.polymerController)!=null?W:y).getVisibilityObserverForChild()}else Vof||(Vof=vtR()),this.localVisibilityObserver_=Vof;return this.localVisibilityObserver_},visibilityCallback:function(y){y?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.e("kevlar_use_vimio_behavior")||(NC={});NC&&!_.e("kevlar_use_vimio_behavior")&&(delete NC.attached,delete NC.detached);_.W7Q.YtVisibilityObserverBehavior=[NC];var wtR={};wtR.YtVisualElementBehavior=[_.W7Q.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.e("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.e("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var y=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportShown(this,void 0,y)}},
onHidden:function(){if(_.e("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.e("kevlar_vimio_use_shared_monitor")){var y=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportHidden(this,void 0,y)}},
getVisibilityLogger:function(){return _.e("kevlar_use_vimio_behavior")?_.AY():null},
shouldSkipLogging:function(){if(_.yC("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var y=this.getParentRenderer&&this.getParentRenderer();if(!y)return!1;var W,V=(W=y.polymerController)!=null?W:y;if(!V.data)return!1;y=this.data.trackingParams;y=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:y;var w;W=(w=V.data)==null?void 0:w.trackingParams;var t,F;W=((t=V.data)==null?0:t.loggingDirectives)?(F=V.data)==null?void 0:F.loggingDirectives.trackingParams:W;return y&&W&&y===
W}}];var Utb=new Map,HC;var DmR=function(y){this.layer=y},lw=function(y){return y.layer!==void 0?y.layer:y.parent?lw(y.parent):y.layer=0};var kTG;_.X={};kTG=0;_.X.YtRendererBehavior=[_.Em.YtComponentBehavior,wtR.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_:_.e("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var y,W;(W=(y=this.monitorScrollElement)!=null?y:this.hostElement)==null||W.removeEventListener("scroll",_.Dp(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Mob(this.hostElement);dhz(_.$K(),this.hostElement);L2.delete(this.hostElement)},
registerRenderer:function(y){var W;((W=y.polymerController)!=null?W:y).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(y),this.markDirty())},
unregisterRenderer_:function(y){this.useVimio_||(this.childCache_.delete(y),this.markDirty())},
attached:function(){var y=this,W=this.getParentRenderer();if(W){var V,w,t;(w=(V=(t=W.polymerController)!=null?t:W).registerRenderer)==null||w.call(V,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var F,I;(I=(F=this.monitorScrollElement)!=null?F:this.hostElement)==null||I.addEventListener("scroll",_.Dp(this,this.onScroll))}_.HU.addJob(function(){uYn(y.hostElement)},8);
V=new DmR(this.screenLayer||void 0);(W=L2.get(W))&&W.layerNode&&(V.parent=W.layerNode);W={};eKb(this.hostElement,(W.isRenderer=!0,W.layerNode=V,W[lvz]=this.data,W))},
getParentRenderer:function(){for(var y=this.hostElement.parentNode,W,V;y&&((W=L2.get(y))==null||!W.isRenderer)&&!((V=y.polymerController)!=null?V:y).isRenderer_;)y=y.parentNode||y.host;return y},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.e("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.W4("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.e("debug_web_ve_data")&&this.data.trackingParams){var y="";try{y=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(V){_.ap(V)}if(y){var W=jwj(y,1);W!==void 0&&(this.hostElement.dataset.veIndex=String(W));y=jwj(y,2);
y!==void 0&&(this.hostElement.dataset.ve=String(y))}}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,_.e("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.nD(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Yc(_.BC(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var y=this.data.targetId;_.zxf(_.$K(),y,this.hostElement)}else dhz(_.$K(),this.hostElement)},
onScroll:function(){var y=Date.now();y-this.lastHandledScroll_<50||(this.lastHandledScroll_=y,this.markDirty())},
markDirty:function(){_.e("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():slP(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var y=this.getParentRenderer();if(y&&(y=L2.get(y))&&y.layerNode)return lw(y.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.GC(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var y=0;y<this.data.impressionEndpoints.length;y++)this.sendImpression(this.data.impressionEndpoints[y]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(y){y.clickTrackingParams&&delete y.clickTrackingParams;var W,V;(y==null?0:(W=y.commandMetadata)==null?0:(V=W.webCommandMetadata)==null?0:V.sendPost)?_.i5(this.hostElement,[y,{impression:!0}]):_.fg(this.hostElement,[y],this.hostElement)},
logExplicitClick:function(y){var W=_.Xn(this.getScreenLayer());if(W){var V,w=(V=y.polymerController)!=null?V:y;y=w.visualElement;w=w.trackingParams||w.clickTrackingParams;!y&&w&&(y=_.nD(w));y&&_.PE(W,y)}}}];var toz={},IY=function(){return _.YA.apply(this,arguments)||this};
_.p(IY,_.YA);IY.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
IY.prototype.onPdgItemBehaviorClick=IY.prototype.onPdgItemBehaviorClick;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],IY.prototype,"data",void 0);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],IY.prototype,"onPdgItemBehaviorClick",null);_.J([_.BW()],IY);toz.YtPdgLiveChatItemBehavior=[IY.prototype,_.X.YtRendererBehavior];var F7r;var E6A;_.g0={};_.g0.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var PB=function(){var y=vf.apply(this,arguments)||this;y.switchTemplateAtRegistration=!1;return y};
_.p(PB,vf);PB.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||JQt(this),_.dhy(this,"doRender"),this.doRender())};
PB.prototype.debounceRender=function(){this.templatingFn&&_.NM(this,"doRender",this.doRender)};
PB.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.ap(Error("jh"))};
PB.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.J([tdj()],PB);var N_6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Ch={},n6v=(Ch[1]={filterString:null,isUnwrappable:null,unwrap:null},Ch[2]={filterString:function(y,W,V){return UP(V)},
isUnwrappable:function(y){return y instanceof Ec},
unwrap:function(y){return Ih(y)}},Ch[3]={filterString:function(y,W,V){return N_6.test(V)?V:Zf.toString()},
isUnwrappable:function(y){return aG(y)},
unwrap:function(y){return _.G3(y)}},Ch[4]={filterString:function(){return Zf.toString()},
isUnwrappable:function(y){return y instanceof RG},
unwrap:function(y){return _.$R(y).toString()}},Ch[5]={filterString:function(y,W,V){return V},
isUnwrappable:function(y){return typeof y==="string"},
unwrap:function(y){return y.toString()}},Ch[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(y){return y instanceof _.Oc},
unwrap:function(y){return nRd(y)}},Ch[8]={filterString:function(y,W,V){V=String(V).toLowerCase();
return GDG(y,W,V)?V:"zClosurez"},
isUnwrappable:null,unwrap:null},Ch[10]={filterString:null,isUnwrappable:null,unwrap:null},Ch);Oh[WV["default"]]=Xt4;var ao4=[];var gNu=rQ4("A"),P94=rQ4("BUTTON"),n5=rQ4("DIV"),C9n=rQ4("LABEL");(function(){var y=OF;OF=function(W){y==null||y(W);rc(function(){for(var V=0;V<W.length;V++)GTL(W[V])})}})();var IoR=function(){var y=_.YA.apply(this,arguments)||this;y.hasUnmounted=!1;return y};
_.p(IoR,_.YA);_.E=IoR.prototype;_.E.beforeRegister=function(){var y=this.doIdomRender;this.templatingFn?_.ap(Error("ih")):(this.templatingFn=y,this.switchTemplateAtRegistration=!0,$tb(this))};
_.E.attached=function(){};
_.E.detached=function(){GTL(this.hostElement)};
_.E.renderIdom=function(){throw Error("lh");};
_.E.doIdomRender=function(){var y=this;YPb(this.hostElement,function(){y.renderIdom()})};
_.J([_.BW()],IoR);var g6Q=[PB.prototype,IoR.prototype];var PHK,CH6=function(){return PHK!==void 0?PHK:PHK=document.createElement("template")};
document.head.appendChild(CH6().content);var ORQ;var v6f,dtI=function(){return v6f!==void 0?v6f:v6f=document.createElement("template")};
document.head.appendChild(dtI().content);var L7A;var zQf=document.head,cQ6=zQf.appendChild,eQK;if(L7A===void 0){var hQ2=document.createElement("template");_.T(hQ2,"\x3c!--css-build:shady--\x3e");hQ2.content.insertBefore(dtI().content.cloneNode(!0),hQ2.content.firstChild);L7A=hQ2}eQK=L7A;cQ6.call(zQf,eQK.content);var o6E,K7r=function(){return o6E!==void 0?o6E:o6E=document.createElement("template")};
document.head.appendChild(K7r().content);var ptJ;var iRz=document.head,foA=iRz.appendChild,T_s;if(ptJ===void 0){var mt2=document.createElement("template");_.T(mt2,"\x3c!--css-build:shady--\x3e");mt2.content.insertBefore(K7r().content.cloneNode(!0),mt2.content.firstChild);ptJ=mt2}T_s=ptJ;foA.call(iRz,T_s.content);var Moi=document.head,q2s=Moi.appendChild,Uti;if(ORQ===void 0){var uY2=document.createElement("template");_.T(uY2,"\x3c!--css-build:shady--\x3e");uY2.content.insertBefore(CH6().content.cloneNode(!0),uY2.content.firstChild);ORQ=uY2}Uti=ORQ;q2s.call(Moi,Uti.content);var S2R,Dts=function(){return S2R!==void 0?S2R:S2R=document.createElement("template")};
document.head.appendChild(Dts().content);var loK;_.va=new _.e9("DARK_THEME_TOKEN");var JVz=new _.zf("accessibilityProperties");var BIj=new _.zf("layoutProperties");var Rev=new _.zf("imageType");var xti={};if("ytAttributedStringLinkHoverColor"in xti)throw Error("oh`ytAttributedStringLinkHoverColor");(function(y,W){xti[y]="value"in W&&"unit"in W?WVu(y,W):function(V){try{return W(V)}catch(w){throw Error("mh`"+y+"`"+w.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var kTR=function(y){var W=this;this.holdTime=y===void 0?500:y;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(V){var w=new CustomEvent("LONG_PRESS"),t;(t=V.changedTouches[0].target)==null||t.dispatchEvent(w)};
this.ontouchstart=function(V){W.longPressTimeout=_.b8(_.HU,function(){W.onlongpress(V);W.longPressOccurred=!0},W.holdTime)};
this.ontouchmove=function(){_.HU.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!0};
this.ontouchend=function(V){if(W.longPressTimeout&&!W.longPressOccurred&&!W.moveOccurred){var w;(w=V.changedTouches[0].target)==null||w.dispatchEvent(new Event("click"))}_.HU.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!1}};var pOa=function(y,W){kTR.call(this,W);var V=this;this.callback=y;this.onlongpress=function(w){var t;(t=V.callback)==null||t.call(V,w)}};
_.p(pOa,kTR);var iUd=function(y,W){var V=Object.assign({},W);y=_.N(new Map([["ontouchstart",y.ontouchstart],["ontouchend",y.ontouchend],["ontouchmove",y.ontouchmove]]));for(var w=y.next(),t={};!w.done;t={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},w=y.next()){var F=_.N(w.value);w=F.next().value;F=F.next().value;t.eventName$jscomp$101=w;t.eventHandler$jscomp$1=F;W[t.eventName$jscomp$101]=function(I){return function(P){var C;(C=V[I.eventName$jscomp$101])==null||C.call(V,P);(0,I.eventHandler$jscomp$1)(P)}}(t)}};_.oA=new _.e9("COMMAND_HANDLER_TOKEN");var wOy=new _.zf("parallelCommand");var E4G=new _.zf("performOnceCommand");var FV4=new _.zf("serialCommand");var NIj=void 0;var slJ=function(){this.data=[];this.consumer=null};
slJ.prototype.push=function(y){this.consumer?this.consumer(y):this.data.push(y)};var ot={};_.M1(ot,void 0,"sgPmTd");_.M1(null,void 0,"jypsq");_.M1(null,void 0,"mWiOof");var n3P=new slJ;var LVv=[oPK,KLz,pyq,ftz,idq,hbK,TuI,maQ];var AVG=new _.zf("bracketTextDecorator");var C5=new _.zf("highlightTextDecorator");_.L5=new _.e9("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var DPt=function(){},AQA;
(AQA=window.requestIdleCallback)==null||AQA.bind(window);var xPP={calledOnce:!1,state:"visible"},lXu={calledOnce:!1,state:"hidden"};var Y2f=new _.e9("ICON_WIZ_COMPONENT_TOKEN");_.jl=_.eY(function(y){var W=y.icon;var V=y.active;var w=y.className;var t=y.style;var F=y.dataSelected;var I=y.dataDisabled;var P=y.role;var C=y.animateIcon;var d=y.themeOverride;var L=y.ariaHidden;var z=y.ariaExpanded;var c=y.ariaLabel;var K=y.tabindex;var f=y.id;var U=y.size;var l=y.iconFilter;return _.O(_.v,{cond:W,then:function(){var x=_.hs().resolve(Y2f);return _.O(x,{icon:W,dataSelected:F,dataDisabled:I,animateIcon:C,themeOverride:d,ariaExpanded:z,tabindex:K,id:f,active:V,size:U,role:P,className:w,
ariaHidden:L,ariaLabel:c,style:function(){return t!=null&&t()||U==null||!U()?t==null?void 0:t():"width: "+(U==null?void 0:U())+"px;height: "+((U==null?void 0:U())+"px;")},
iconFilter:l})}})},"b");
_.jl.idomCompat=!0;var tGd=window.devicePixelRatio||1;var Iwn=new Map([["yt_outline_bag_black_24","bag"]]);var Om=function(y){var W=this;this.margin=.1;this.whenInViewportWithMargin=y;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){W.requestScan()});
window.addEventListener("touchend",function(){W.requestScan()});
window.addEventListener("updateui",function(){W.requestScan()});
var V=new _.d7((0,_.jA)(this.requestScan,this),100);window.addEventListener("scroll",function(){V.fire()},!0);
window.addEventListener("resize",(0,_.jA)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){W.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.jA)(this.requestScan,this))};
Om.prototype.observe=function(y){this.observationTargets.includes(y)||this.observationTargets.push(y)};
Om.prototype.unobserve=function(y){this.observationTargets=this.observationTargets.filter(function(W){return W!==y})};
Om.prototype.requestScan=function(){var y=this;this.scanRequested||(rc(function(){B_s(y)}),this.scanRequested=!0)};
var B_s=function(y){var W=(1+y.margin)*(document.documentElement.clientHeight||window.innerHeight);y.observationTargets=y.observationTargets.filter(function(V){var w=V.getBoundingClientRect();(w=W>w.top&&!!w.height)&&y.whenInViewportWithMargin(V);return!w&&V.parentNode});
y.scanRequested=!1};
Om.prototype.disconnect=function(){this.observationTargets=[]};var JQI,jlq;JQI=_.N(_.M1(vaP(),void 0,"O3X2wd"));_.RQQ=JQI.next().value;jlq=JQI.next().value;window.addEventListener("resize",function(){jlq(vaP())});var $ti={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},n66=void 0,HRm=window.innerWidth,XtQ=window.innerHeight;window.addEventListener("resize",function(){n66=void 0});var aoQ;if("IntersectionObserver"in window)aoQ=zfv();else{if(n66===void 0){var GTf;GTf="matchMedia"in window?window.matchMedia($ti.landscape+","+$ti.portrait).matches:void 0;n66=GTf!==void 0?GTf:HRm>=930&&XtQ>=550||HRm>=550&&XtQ>=930}aoQ=n66?{observe:function(y){rc(function(){var W;(W=y.onViewportEntered)==null||W.call(y)})},
unobserve:function(){}}:new Om(function(y){rc(function(){var W;
(W=y.onViewportEntered)==null||W.call(y)})})}var dzv=aoQ;var rQQ=_.eY(function(y){var W=!1,V=_.I0("img",function(w){_.XT(function(){W=!0;w.onload=null})});
_.H1(function(){var w,t=(w=y.data)==null?void 0:w.call(y),F,I=(F=y.getSrc)==null?void 0:F.call(y).cb,P;w=(P=y.config)==null?void 0:P.call(y);if(P=V.value)if(F=function(d,L){if(!W)return I?I(d,L):d},hfR(P,w),_.e("web_image_dont_reload_same_src")&&efv(P,t,F))_.e("web_image_dont_reload_same_src_simulate_load")&&P.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var C;cyy(P,t||null,F,w,(C=y.lazy)==null?void 0:C.call(y))}},"v0I2p");
return _.O("img",{el:V})},"c");
rQQ.idomCompat=!0;_.ca=_.eY(function(y){var W=function(){var V,w=y.data(),t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py,du,mL,un,hv,$P,sz,Wz,mf;var OE={contentMode:(t=y.contentMode)==null?void 0:t.call(y),loadedClass:(F=y.loadedClass)==null?void 0:F.call(y),isPreloaded:(I=y.isPreloaded)==null?void 0:I.call(y),notifyOnLoaded:(P=y.notifyOnLoaded)==null?void 0:P.call(y),notifyOnUnloaded:(C=y.notifyOnUnloaded)==null?void 0:C.call(y),preferredThumbnail:(d=y.preferredThumbnail)==null?void 0:d.call(y),preserveHeight:(L=y.preserveHeight)==
null?void 0:L.call(y),preserveWidth:(z=y.preserveWidth)==null?void 0:z.call(y),objectPosition:(c=y.objectPosition)==null?void 0:c.call(y),targetWidth:(K=y.targetWidth)==null?void 0:K.call(y),targetHeight:(f=y.targetHeight)==null?void 0:f.call(y),shouldShowPlaceholder:(U=y.shouldShowPlaceholder)==null?void 0:U.call(y),useWidth:(l=y.useWidth)==null?void 0:l.call(y),isToggled:(x=y.isToggled)==null?void 0:x.call(y),alt:(B=y.alt)==null?void 0:B.call(y),className:(r=y.className)==null?void 0:r.call(y),
onerror:y.onerror,onload:y.onload,style$:((H=y.style$)==null?void 0:H.call(y))||((a=y.style)==null?void 0:a.call(y)),color:(b=y.color)==null?void 0:b.call(y),width:(Fv=y.width)==null?void 0:Fv.call(y),height:(Py=y.height)==null?void 0:Py.call(y),"aria-hidden$":(Wz=(du=y["aria-hidden$"])==null?void 0:du.call(y))!=null?Wz:(mL=y.ariaHidden)==null?void 0:mL.call(y),draggable:(un=y.draggable)==null?void 0:un.call(y),"data-disabled$":(mf=(hv=y["data-disabled$"])==null?void 0:hv.call(y))!=null?mf:($P=y.dataDisabled)==
null?void 0:$P.call(y),size:(sz=y.size)==null?void 0:sz.call(y)};return pRd(w,OE,(V=y.hideOn404)==null?void 0:V.call(y))};
return _.O(_.$V,null,_.O(_.BV,{when:function(){var V;return((V=W())==null?void 0:V.type)==="image"}},function(){return _.O(rQQ,{data:function(){return W().image},
getSrc:{cb:function(V,w){var t=W().image.sources,F=W().config.isPreloaded,I=W().config.useWidth,P=W().config.targetWidth,C=W().config.targetHeight,d=W().config.preferredThumbnail;return _.F4G(w,t,F,I,P,C,d)||""}},
config:function(){var V=W().config,w;for(w in V)V[w]===void 0&&delete V[w];return V},
lazy:y.renderLazy})}),_.O(_.BV,{when:function(){var V;
return((V=W())==null?void 0:V.type)==="icon"}},function(){return _.O(_.jl,{icon:function(){return W().iconName},
role:function(){return W().config.role},
className:function(){return W().config.className},
style:function(){return W().config.style$+";width: "+(W().config.width+"px;height: ")+(W().config.height+"px;color: ")+(W().config.color+";")},
ariaLabel:function(){return W().config["aria-label$"]},
ariaHidden:function(){return W().config["aria-hidden$"]},
dataDisabled:function(){return W().config["data-disabled$"]},
active:function(){return W().config.isToggled},
size:function(){return W().config.size}})}))},"d");
_.ca.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var bRE=function(y){return function(W){return _.O(Vy4,null,function(){var V=W.data(),w=_.Gt(W.config);return _.O(Pl,null,function(){return void y(V,w)})})}}(MGL),Ttv=_.eY(function(y){var W=function(w){var t,F=_.hl(function(c){t=af(function(){for(var K=_.N(L()),f=K.next();!f.done;f=K.next()){f=qG4(f.value);
f=typeof f==="string"?document.createTextNode(f):f;if(!(f instanceof Node)){K=new _.Js("Part is not a node",f,typeof f);_.ap(K);break}c.appendChild(f)}})}),I=od(function(){return $Pu(w())},{isEqual:fwj}),P=_.LD(y.config),C=function(){var c,K=I();
return!((c=P())==null||!c.ariaLabel)||!(K.commandRuns&&K.commandRuns.length!==0||K.paragraphStyleRuns&&K.paragraphStyleRuns.length!==0)},d=od(P,{isEqual:uPu}),L=function(){var c=jNj(I(),d());
HUv(c,d());return I().content?QNR(I().content,c).parts:[]},z=!0;
_.H1(function(){I();d();if(z)z=!1;else{var c=L();Promise.resolve().then(function(){var K=F.value;if(K){K.innerText="";var f;(f=t)==null||f();t=_.nG(K,function(){return _.O(Uzn,{parts:c})})}})}},"YlhjWd");
return _.O("span",{el:F,class:function(){return I()&&qin(I(),P())},
dir:function(){var c;return((c=P())==null?0:c.userInput)?"auto":void 0},
"aria-label":function(){var c;return C()?(c=P())==null?void 0:c.ariaLabel:void 0},
role:function(){return C()?"text":void 0}})},V;
return((V=y.config)==null?0:V.renderedFromFormattedString)?W(y.text):_.O(_.v,{cond:y.text,then:W})},"e");
Ttv.idomCompat=!0;_.Lv=_.eY(function(y){var W=_.LD(y.text),V=SGt(y);y.renderedFromFormattedString!==void 0&&(V.renderedFromFormattedString=!0);return _.e("attr_string_reactive")?_.O(Ttv,{text:W,config:V}):_.O(_.v,{cond:function(){var w;return W()&&((w=$Pu(W()))==null?void 0:w.content)},
then:function(){return _.O(bRE,{data:y.text,config:V})},
debugInstance:"Apcuac"})},"f");
_.Lv.idomCompat=!0;var lwy=function(y,W,V){W=W===void 0?"unknown":W;V=V===void 0?{}:V;_.Js.call(this,y+" ("+W+")",Object.assign({},{name:"YtWcwError",tagName:W},V));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(lwy,_.Js);_.Bta=new WeakMap;_.YGP=!1;var Ayy,Jya,s3d;_.vB=Symbol("qh");_.p5=Symbol("rh");Ayy=Symbol("sh");Jya=new Set(Object.getOwnPropertyNames(Element.prototype));s3d=Symbol("th");var QlE=_.eY(function(y){return _.O("yt-attributed-string",{"aria-label":y.ariaLabel,hidden:y.hidden,id:y.id,class:y.className,"force-default-style":y.forceDefaultStyle},_.O(_.Lv,{text:y.data,ariaLabel:y.ariaLabel,ellipsisTruncate:y.ellipsisTruncate,isOverlay:y.isOverlay,linkInheritColor:y.linkInheritColor,noPreWrap:y.noPreWrap,noWrap:y.noWrap,userInput:y.userInput,noEndpoints:y.noEndpoints,headerRuns:y.headerRuns}))},"g");
_.e("web_wiz_attributed_string")&&_.iF(QlE,"yt-attributed-string",{props:{ariaHidden:_.vB,ariaLabel:_.vB,className:_.vB,ellipsisTruncate:_.vB,isOverlay:_.vB,linkInheritColor:_.vB,noEndpoints:_.vB,noStyleRuns:_.vB,noLinkColor:_.vB,noPreWrap:_.vB,noWrap:_.vB,skipOnClick:_.vB,userInput:_.vB,headerRuns:_.vB,id:_.vB,data:_.vB,hidden:_.vB,forceDefaultStyle:_.vB,text:_.p5,stopPropagation:_.p5,disableUpgrade:_.p5,disable:_.p5,slot:_.p5}});var d0=function(){return _.u.apply(this,arguments)||this};
_.p(d0,_.u);d0.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},MGL(this.data,this.config))};
_.J([_.m(g6Q),_.R("design:type",Object)],d0.prototype,"ytIdomTemplatingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],d0.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d0.prototype,"ariaLabel",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"disable",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"ellipsisTruncate",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"isOverlay",void 0);
_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"linkInheritColor",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"noPreWrap",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"noWrap",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"userInput",void 0);_.J([_.q(),_.R("design:type",Boolean)],d0.prototype,"noEndpoints",void 0);_.J([_.q(),_.R("design:type",Array)],d0.prototype,"headerRuns",void 0);
_.J([_.Zp({is:"yt-attributed-string",disableElementRegistration:!0})],d0);
_.e("web_wiz_attributed_string")||_.Y(d0,"yt-attributed-string",function(){if(loK===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
y.content.insertBefore(Dts().content.cloneNode(!0),y.content.firstChild);loK=y}y=loK;return y},{mode:2});var ZR2,yVq,awL;ZR2=function(){this.firstThumbnailLoaded=!1};
_.WVm=function(){yVq||(yVq=new ZR2);return yVq};
awL=function(y){var W=_.WVm();W.firstThumbnailLoaded||(W.firstThumbnailLoaded=!0,_.aw("ftl",y))};
ZR2.prototype.reset=function(){this.firstThumbnailLoaded=!1};var j3u=0,XRL=new WeakMap,naj=0,mm=new Set;var VTs,wOz=function(){return VTs!==void 0?VTs:VTs=document.createElement("template")};
document.head.appendChild(wOz().content);var tTE;var Q3t,ypG,Lh;_.UU=_.Vj.caches;Lh=function(){};
Lh.prototype.open=function(y){return _.UU.open(FVQ(y))};
Lh.prototype.has=function(y){return _.UU.has(FVQ(y))};
Lh.prototype.delete=function(y){return _.UU.delete(FVQ(y))};
Lh.prototype.match=function(y,W){var V=this,w,t,F,I,P,C;return _.g(function(d){switch(d.nextAddress){case 1:return d.yield(V.keys(),2);case 2:w=d.yieldResult,t=_.N(w),F=t.next();case 3:if(F.done){d.jumpTo(5);break}I=F.value;return d.yield(V.open(I),6);case 6:return P=d.yieldResult,d.yield(P.match(y,W),7);case 7:if(C=d.yieldResult)return d.return(C);F=t.next();d.jumpTo(3);break;case 5:return d.return()}})};
var W2z=function(){};
_.p(W2z,Lh);var FVQ=function(y){if(y.includes(":"))throw Error("wh`"+y);return y+":"+_.Y_("CacheStorage get")};
W2z.prototype.keys=function(){var y,W,V,w,t,F,I,P,C;return _.g(function(d){if(d.nextAddress==1)return y=[],W=_.Y_("CacheStorage keys"),d.yield(_.UU.keys(),2);V=d.yieldResult;w=_.N(V);for(t=w.next();!t.done;t=w.next())F=t.value,I=_.bpb(F),P=I.originalName,C=I.datasyncId,C===W&&y.push(P);return d.return(y)})};var z5=function(){var y=_.u.apply(this,arguments)||this;y.objectURL=null;y.loadTime=Infinity;return y};
_.p(z5,_.u);_.E=z5.prototype;_.E.renderIdom=function(){ryR(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("zh");this.setConfig();this.config&&oad(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.E.objectFitToContentMode=function(y){switch(y){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.E.logThumbnailFailureVe=function(){var y=_.ad(197497);_.U8(_.BC(),y);var W=_.Xn();W&&y&&W&&_.IB(W,[y])};
_.E.loadImageFromCacheIfExists=function(y){var W=this,V=y.target;(V==null?0:V.src)&&wxy(V.src).then(function(w){W.objectURL=_.W7(w).toString();W.setSrc(V,W.objectURL)}).catch(function(){})};
_.E.onError=function(y){var W=this;if(_.e("web_use_cache_for_image_fallback")){var V=y.target;V&&wxy(V.src).then(function(w){W.objectURL=_.W7(w).toString();W.setSrc(V,W.objectURL)}).catch(function(){_.e("kevlar_woffle_log_thumbnail_failure_ve")&&W.logThumbnailFailureVe();
_.e("kevlar_woffle_fallback_image")&&W.setSrc(V,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.E.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.E.setConfig=function(){var y=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(W){y.loadImageFromCacheIfExists(W);y.revokeObjectURL();Gv4(y.hostElement)},
onerror:function(W){y.onError(W)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.e("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.E.setSrc=function(y,W){W&&(y.src=W)};
_.J([_.m(g6Q),_.R("design:type",Object)],z5.prototype,"ytIdomTemplatingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],z5.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],z5.prototype,"alt",void 0);_.J([_.q(),_.R("design:type",Boolean)],z5.prototype,"ftlEligible",void 0);_.J([_.q(),_.R("design:type",Number)],z5.prototype,"height",void 0);_.J([_.q(),_.R("design:type",Boolean)],z5.prototype,"notifyOnLoaded",void 0);
_.J([_.q(),_.R("design:type",Boolean)],z5.prototype,"notifyOnUnloaded",void 0);_.J([_.q(),_.R("design:type",String)],z5.prototype,"objectFit",void 0);_.J([_.q(),_.R("design:type",String)],z5.prototype,"objectPosition",void 0);_.J([_.q(),_.R("design:type",String)],z5.prototype,"preferredThumbnail",void 0);_.J([_.q(),_.R("design:type",Boolean)],z5.prototype,"preserveHeight",void 0);_.J([_.q(),_.R("design:type",Boolean)],z5.prototype,"preserveWidth",void 0);
_.J([_.q({value:!0}),_.R("design:type",Boolean)],z5.prototype,"useWidth",void 0);_.J([_.q({value:function(){return!_.W4("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.R("design:type",Boolean)],z5.prototype,"shouldRenderLazy",void 0);_.J([_.q(),_.R("design:type",Number)],z5.prototype,"width",void 0);_.J([_.Zp({is:"yt-image",disableElementRegistration:!0})],z5);
_.Y(z5,"yt-image",function(){if(tTE===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(wOz().content.cloneNode(!0),y.content.firstChild);
tTE=y}y=tTE;return y},{mode:2});var cB=function(){return _.u.apply(this,arguments)||this};
_.p(cB,_.u);cB.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var y=_.tl(this.data.onVisibleCommand);y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cB.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],cB.prototype,"ytVisibilityBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cB.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],cB);
_.Y(cB,"yt-bumper-user-edu-content-view-model",function(){if(E6A===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;F7r===void 0&&(F7r=document.createElement("template"));var w=F7r;V.call(W,w.content.cloneNode(!0),y.content.firstChild);E6A=y}y=E6A;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var E4R;var NIK,IXI=function(){if(NIK!==void 0)return NIK;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;E4R===void 0&&(E4R=document.createElement("template"));var w=E4R;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return NIK=y};var g4K;_.et={};g4K=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"]);_.et.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var y=this.getContext_();return y?y.getTaskManager():_.HU},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var y=_.h1(this.hostElement,"yt-get-context-provider",{});y.detail&&y.detail.contextProvider?this.cachedProviderNode_=y.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return g4K.has(this.hostElement.localName)},
getNetworkManager:function(){var y=this.getContext_();if(y)return y.getNetworkManager()}};var gQz,P$s,OU6,C$E;_.hZ=function(y){var W=P$s.get(y);if(W&&(W=W.pop()))return C$E++,W;OU6++;try{var V=document.createElement(y)}catch(w){throw new _.Js("ElementPool failed to create element",y,w.message);}return V};
gQz=function(y){var W=y.is;if(W){var V=P$s.get(W);V||(V=[],P$s.set(W,V));var w=_.yC("ELEMENT_POOL_CONFIG")||{};V.length>=(w[W]!==void 0?w[W]:_.yC("ELEMENT_POOL_DEFAULT_CAP",0))||V.push(y)}else _.rQ(new _.Js("Element pool should only handle custom elements:",y.nodeName))};
P$s=new Map;OU6=0;C$E=0;var uF=new WeakMap,IVz=new WeakMap;var dP2;_.oY=function(y,W,V){V=V===void 0?_.Xu():V;this.JSC$13669_defaultPriority=y;this.signal=W;this.scheduler=V;this.nextJobDescriptor=0;this.JSC$13669_parkedJobs=[];this.scheduledJobs=new Map};
_.Kh=function(y,W){if(W){var V=_.FS();y.signal&&!_.EA(V,y.signal)?(V.addListener(y.signal,function(){y.processSignal()}),y.JSC$13669_parkedJobs.push({job:W,
priority:void 0})):v42(y,W)}};
dP2=function(y,W){if(W!==y.JSC$13669_defaultPriority){y.JSC$13669_defaultPriority=W;for(var V=_.N(y.scheduledJobs.values()),w=V.next();!w.done;w=V.next())w=w.value,y.scheduler.cancelJob(w.jobId),w.jobId=y.scheduler.addJob(w.jobWrapper,W)}};
_.oY.prototype.flushJobs=function(){dP2(this,10);this.processSignal()};
_.oY.prototype.cancel=function(){for(var y=_.N(this.scheduledJobs),W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;this.scheduler.cancelJob(V.jobId);this.scheduledJobs.delete(W)}this.JSC$13669_parkedJobs=[]};
_.oY.prototype.processSignal=function(){for(var y=_.N(this.JSC$13669_parkedJobs),W=y.next();!W.done;W=y.next())W=W.value,v42(this,W.job,W.priority);this.JSC$13669_parkedJobs=[]};
var v42=function(y,W,V){V=V||y.JSC$13669_defaultPriority;if(V===10)M4(W);else{var w=y.nextJobDescriptor++,t=function(){W();y.scheduledJobs.delete(w)},F=y.scheduler.addJob(t,V);
y.scheduledJobs.set(w,{jobWrapper:t,jobId:F,priority:V})}};_.zY(vQR);var dLv={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};tKb({beforeVisit:function(y){if(Tb.has(y.type)){var W;(W=y.props).idomKey!=null||(W.idomKey=y.type)}else y.type.TAG_NAME&&(iE=y.type.TAG_NAME)},
afterRender:function(y,W){var V;iE=(V=W==null?void 0:W.type)!=null?V:""},
didPatch:function(){iE=""}});var LV6;_.ph={};LV6={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.ph.YtRendererstamperBehavior=[_.et.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 y in this.stampDom){var W=this.stampDom[y];W&&W.id&&this.addReactiveSchema({type:"observe",method:{methodName:F2y(W.id),args:[{type:"wildcard",path:y}]}})}else{(y=(this.constructor.generatedFrom||this).observers)||(y=[]);for(W in this.stampDom){var V=this.stampDom[W];V&&V.id&&y.push(F2y(V.id)+"("+W+".*)")}this.constructor.generatedFrom.observers=y}},
addStampDomObserverFns_:function(){for(var y in this.stampDom){var W=this.stampDom[y];W.id?(this[F2y(W.id)]=this.rendererStamperObserver_.bind(this,y,W.id),this.hasDataPath_[y]=!1):(W=new _.Js("Bad rendererstamper config",this.is+":"+y),_.ap(W))}},
rendererStamperObserver_:function(y,W,V){if(V.path==y){if(V.value===void 0&&!this.hasDataPath_[y])return;this.hasDataPath_[y]=V.value!==void 0}this.rendererStamperApplyChangeRecord_(y,W,V)},
rendererStamperApplyChangeRecord_:function(y,W,V){var w=this.renderJobsMap_[W],t=null;y==V.path?(V=V.value,_.bn(V)||(V=V===void 0||V===null?[]:[V]),y=this.stampDom[y],y.mapping&&(t=this.stampDomArray_.bind(this,V,W,y.mapping,y.reuseComponents,y.events,y.stamperStableList)),w&&w.cancel(),V=y.usePageScheduler?this.getTaskManager():void 0,w||y.initialRenderPriority==void 0)?y.renderPriority==void 0||w||(w=new _.oY(y.renderPriority,y.waitForSignal,V),this.renderJobsMap_[W]=w):(w=new _.oY(y.initialRenderPriority,
y.waitForSignal,V),this.renderJobsMap_[W]=w,t=function(F,I){F();dP2(I,10)}.bind(this,t,w)):t=y+".splices"==V.path?this.stampDomArraySplices_.bind(this,y,W,V.value):this.forwardRendererStamperChanges_.bind(this,y,W,V);
w?_.Kh(w,t):t()},
forwardRendererStamperChanges_:function(y,W,V){var w=V.path.slice(y.length+1),t=this.getStampContainer_(W),F=w.indexOf("."),I=w.substring(0,F),P=!1,C=0,d=parseInt(I,0);if(I[0]=="#"){P=parseInt(I.substring(1),0);d=this.get(y);var L=this.get([y,I]);d[P]==L?C=P:C=d.indexOf(L);P=!0}else isNaN(d)||(C=d,P=!0);P&&(w=w.substring(I.length+1),F=w.indexOf("."));I=_.Yy(t).children[C];var z;if(t=(z=I==null?void 0:I.polymerController)!=null?z:I)w="data"+w.slice(F),typeof t.notifyPath!=="function"?_.rQ(new _.Js("notifyPath missing",
this.is+": "+y+", "+W)):V.value?t.notifyPath(w,V.value):t.notifyPath(w)},
stampDomArraySplices_:function(y,W,V){if(V&&V.indexSplices){var w=this.getStampContainer_(W);if(w){for(var t=_.Yy(w),F=NHR(this.stampDom[y].reuseComponents),I=V.indexSplices.length,P=0;P<I;P++){for(var C=V.indexSplices[P],d=t.children[C.index],L=C.removed.length;L>0;L--)d&&d.parentElement&&(_.Yy(d.parentElement).removeChild(d),F&&gQz(d),d=t.children[C.index]);L=this.stampDom[y].mapping;for(var z=C.index+C.addedCount,c=document.createDocumentFragment(),K=F,f=C.index;f<z;f++){var U=C.object[f],l=tey(L,
U);if(l){var x=L[l];U=U[l];l=this.getComponentName_(x,U);var B=d?uF.has(d):!1;K&&d&&d.is==l&&B?(l=d,this.telemetry_.reuse++,d=d.nextElementSibling):K&&d&&B?(l=this.createComponent_(x,U,F),B=_.Yy(d).nextElementSibling,t.insertBefore(l,B),CrG(this.is,t,d,F),d=B):(K=!1,l=this.createComponent_(x,U,F),c.appendChild(l));this.deferRenderStamperBinding_(l,x,U)}else x=new _.Js("Unimplemented type",y,W,w.tagName,Object.keys(U)[0]),_.ap(x)}t.insertBefore(c,d)}this.flushRenderStamperComponentBindings_();this.stampDom[y].events&&
_.h1(this.hostElement,"yt-rendererstamper-finished",{container:w})}else y=new _.Js("Container object not found",W,this.hostElement?this.hostElement.is:""),_.ap(y)}},
stampDomArray_:function(y,W,V,w,t,F){var I=this.getStampContainer_(W);if(I)if(W=_.Yy(I),w=NHR(w),y){var P=0,C=0,d;if(F=F===void 0?_.W4("STAMPER_STABLE_LIST",!1):F||!1)for(d=W.firstElementChild;d&&!uF.has(d)&&y.length>C;){F=y[C];var L=tey(V,F);if(L){if(this.getComponentName_(V[L],F[L])!=d.is){var z=this.createComponent_(V[L],F[L],w),c=_.Yy(d).nextElementSibling;c?W.insertBefore(z,c):W.appendChild(z);CrG(this.is,W,d,w);d=z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(d,V[L],F[L]);P++;
C++;d=_.Yy(d).nextElementSibling}else C++}OWd(this.is,W,P,w);P=d;if(y.length>C){F=document.createDocumentFragment();for(L=y.length;C<L;C++)if(z=y[C],c=tey(V,z))d=this.createComponent_(V[c],z[c],w),this.deferRenderStamperBinding_(d,V[c],z[c]),F.appendChild(d);P&&_.Yy(P).parentNode&&d&&!uF.has(d)?W.insertBefore(F,P):W.appendChild(F)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();t&&_.h1(this.hostElement,"yt-rendererstamper-finished",{container:I})}else OWd(this.is,W,0,
w);else y=new _.Js("Container object not found",W,this.hostElement?this.hostElement.is:""),_.ap(y)},
getStampContainer_:function(y){return this.$&&this.$[y]||_.i6(this.hostElement).querySelector("#"+y)},
getComponentName_:function(y,W){return typeof y==="string"?y:y.matcher?y.matcher.call(this,W):y.component},
createComponent_:function(y,W,V){y=this.getComponentName_(y,W);try{var w=mM.has(y)||Tb.has(y);if(V&&!w){var t=_.hZ(y);try{_.qg(t)}catch(F){V="Failed to clear styles for "+y+".",F.message&&(V+=" Original error: "+F.message),_.rQ(new _.Js(V))}}else t=document.createElement(y)}catch(F){return t="YtRendererStamperBehavior failed to create "+y+".",F.message&&(t+=" Original description: "+F.message),F.message="YtRendererStamperBehavior failed to create element",_.bb(F,t),LV6.hasOwnProperty(y)?_.rQ(F):_.ap(F),
document.createElement("SPAN")}this.telemetry_.create++;return t},
deferRenderStamperBinding_:function(y,W,V){this.deferredBindingTasks_.push({component:y,typeOrConfig:W,data:V})},
flushRenderStamperComponentBindings_:function(){for(var y=0,W=this.deferredBindingTasks_.length;y<W;y++){var V=this.deferredBindingTasks_[y];if(!V)break;var w=void 0,t=void 0,F=void 0,I=void 0,P=V.component,C=V.typeOrConfig;V=V.data;var d=(I=P.polymerController)!=null?I:P;I=P.loggingStatus;try{I&&(I.isRendererStamper=!0);if(typeof C!=="string"){for(F in C.attributes)C.attributes[F]===!0?P.setAttribute(F,""):C.attributes[F]===!1?P.removeAttribute(F):P.setAttribute(F,C.attributes[F]);for(t in C.params)d[t]=
C.params[t],P!==d&&$A(P.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(w in C.properties){var L=C.properties[w];if(L){var z=EQb(L);d[w]=this.get(z);P!==d&&$A(P.localName,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(w==="on-tap"||w==="on-click"){var c=this.get(z);P.addEventListener("click",c);IVz.set(P,{property:w,listener:{type:"element",eventName:"click",handler:c}})}}else{var K=new _.Js("Undefined property binding",w);_.ap(K)}}}if(C.classListBinding){var f=EQb(C.classListBinding),
U=f?this[f]:null;if(U)for(w=0;w<U.length;w++)_.TA(P,U[w],!0)}d.data=V}finally{I&&(I.isRendererStamper=!1)}if(w=uF.get(P))P.hidden=!1,uF.delete(P),_.HU.cancelJob(w)}this.deferredBindingTasks_.length=0}}];_.ik={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(y){for(var W=_.tL.getInstance(),V=_.N(Object.keys(y)),w=V.next();!w.done;w=V.next()){var t=w.value;w=y[t];if(this&&this[w]){var F=W.actionRoutingMap.get(t);F||(F=new Map,W.actionRoutingMap.set(t,F));W.registerActionHandler(this,t,this[w].bind(this),F)}else t=Error("rd"),t.params=w,_.VC(t)}},
unregisterActionMap:function(y){_.Eh(_.tL.getInstance(),y,this)}}]};var lF=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_"+(_.e("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.e("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.e("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.e("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:_.e("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:_.e("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var DQ;var xS=new Map;var mLP=window.matchMedia("(forced-colors: active)").matches;var ze2;var cVm;var ees=new _.e9("LOTTIE_LOADER_TOKEN");_.fh=_.eY(function(y){var W=y.data;var V=y.className;var w=y.animationName;var t=y.animationRef;var F=y.elRefForInterop;var I=_.gS("lottie-component"),P;_.XT(function(){var d;return void((d=P)==null?void 0:d.destroy())});
var C;_.H1(function(){var d=_.Gt(w);if(d!==C){C=d;var L=Object.assign({},{animationName:d,animationRef:_.Gt(t)},_.Gt(W));try{_.hs().resolve(ees)().then(function(K){var f;(f=P)==null||f.destroy();var U,l;f=(l=F==null?void 0:(U=F())==null?void 0:U.value)!=null?l:I.value;U=L.animationRef;l=L.listeners;K=K.loadAnimation(Object.assign({},{container:f},L.animationConfig));U&&(U.lottieEl=K);if(l)for(f=_.N(Object.entries(l)),U=f.next();!U.done;U=f.next())l=_.N(U.value),U=l.next().value,(l=l.next().value)&&
K.addEventListener(U,l);P=K})}catch(K){d=K;
var z="LottieComponent error.";d.message&&(z+=" Original description: "+d.message);_.bb(d,z);_.rQ(d);var c;((c=L.listeners)==null?0:c.error)&&L.listeners.error(d)}}},"lbhvPc");
return _.O(Tyz,{cond:function(){return!(F==null?0:F())},
then:function(){return _.O("lottie-component",{class:_.kS("ytLottieComponentHost",V),el:I})}})},"h");_.iF(_.eY(function(y){return _.O("ytd-lottie-player",{id:y.id,hidden:y.hidden,class:y.className,"aria-label":y.ariaLabel,style:"display: block;"},_.O(_.fh,{data:y.data,animationName:function(){var W;return((W=y.data().animationConfig)==null?void 0:W.name)||""},
animationRef:function(){return y.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.vB,
id:_.vB,hidden:_.vB,className:_.vB,ariaLabel:_.vB}});var T5=function(){var y=_.u.apply(this,arguments)||this;y.animationRef={};y.delhiIconsEnabled=_.e("enable_web_delhi_icons");return y};
_.p(T5,_.u);_.E=T5.prototype;
_.E.handlePropertyChange=function(){var y=this.animatedIcon,W=this.active,V=this.isDarkTheme;if(y){var w=this.previousActive!==W;this.previousActive=W;this.animationRef.lottieEl?w&&this.toggleAnimation(W,y.totalFrames):W?this.initializeAnimationAsToggled(y.lottiePlayerProps,y.totalFrames):this.initializeAnimationAsUntoggled(y.lottiePlayerProps);y.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=y.type;this.lottiePlayerProps=this.computeLottiePlayerProps(y,V)}};
_.E.computeLottiePlayerProps=function(y,W){var V=this.deepCloneLottiePlayerProps(y);W?(W=y.nameDarkTheme,y=y.pathDarkTheme):(W=y.name,y=y.path);V.animationConfig.name=W;(W=xS.get(y))?V.animationConfig.animationData=W:V.animationConfig.path=y;return V};
_.E.initializeAnimationAsToggled=function(y,W){y.animationConfig.initialSegment=[W-1,W]};
_.E.initializeAnimationAsUntoggled=function(y){y.animationConfig.initialSegment=void 0};
_.E.toggleAnimation=function(y,W){if(y){var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,W],!0)}else{var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,1],!0)}};
_.E.deepCloneLottiePlayerProps=function(y){var W=Object.assign({},y.lottiePlayerProps.animationConfig);y=Object.assign({},y.lottiePlayerProps);y.animationConfig=W;return y};
T5.prototype.handlePropertyChange=T5.prototype.handlePropertyChange;_.J([_.q(),_.R("design:type",Object)],T5.prototype,"animatedIcon",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],T5.prototype,"active",void 0);_.J([_.q(),_.R("design:type",Boolean)],T5.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],T5.prototype,"animatedIconType",void 0);_.J([_.q(),_.R("design:type",Boolean)],T5.prototype,"previousActive",void 0);
_.J([_.q(),_.R("design:type",Object)],T5.prototype,"lottiePlayerProps",void 0);_.J([_.q(),_.R("design:type",Object)],T5.prototype,"animationRef",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],T5.prototype,"delhiIconsEnabled",void 0);_.J([_.xA("animatedIcon","active","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T5.prototype,"handlePropertyChange",null);_.J([_.Zp({is:"yt-animated-icon",disableElementRegistration:!0})],T5);
_.Y(T5,"yt-animated-icon",function(){if(cVm===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ze2===void 0&&(ze2=document.createElement("template"));var w=ze2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);cVm=y}y=cVm;return y},{mode:2});var hes;var o4f;var DLG=_.eY(function(y){var W=_.gS("span"),V=GI(function(){return{value:null}});
_.XT(function(){var t;(t=V.value)==null||t.cancel()});
var w=_.DZ(y.data,{equals:function(t,F){return t.iconName===F.iconName&&t.iconStyle===F.iconStyle&&t.iconSize===F.iconSize&&t.iconSetName===F.iconSetName&&t.iconSelected===F.iconSelected}},"aoiXAb");
_.H1(function(){var t,F=(t=y.options)==null?void 0:t.call(y);SNn(W,V,w(),F)},"QXgxJd");
return _.O("span",{class:"yt-icon-shape",el:W})},"j");
DLG.idomCompat=!0;var vbv=["youtube_fill","youtube_outline"];var KVK=new _.n8({type:"iconset",value:void 0}),mK=function(){var y=_.u.apply(this,arguments)||this;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.iconName="";y.iconsetName="yt-icons";y.iconset=null;y.missingIconSet=!1;y.iconType=null;y.iconShapeDataSignal=_.M1(void 0,void 0,"RQ9kUb");y.renderingOptionsSignal=_.M1({iconWidth:"100%",iconHeight:"100%",iconFilter:y.iconFilter},void 0,"qtx8Ef");y.wizHasRendered=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(mK,_.u);mK.prototype.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
mK.prototype.handlePropertyChange=function(){var y=this,W,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x;return _.g(function(B){switch(B.nextAddress){case 1:if(W=!y.icon&&!y.iconName||!y.isAttached)return B.return();V=y;w=V.icon;t=V.size;F=V.defaultToFilled;I=V.active;P=V.targetContainer;y.toggleContainerClass(P);_.e("kevlar_use_wil_icons")&&w&&(C=PHj(w),y.iconType=C.length?C[1]:null);if(w){B.jumpTo(2);break}y.iconsetName="";y.iconName="";return B.yield(y.renderIcon(P,w),3);case 3:return B.return();case 2:d=pOr(w);
L=PHj(d);L.length&&(y.iconsetName=L[0],y.iconName=L[1]);if(!_.e("kevlar_use_wil_icons")){B.jumpTo(4);break}z=mK;c=iUq;K=y.iconType;f=y.active;U=y.defaultToFilled;l=y.size;x=y.iconsetName;return B.yield(fXJ(),6);case 6:return B.yield(c.call(z,K,f,U,l,x,B.yieldResult),5);case 5:y.iconShapeData=B.yieldResult;case 4:if(y.shouldRenderIconShape(P)){B.jumpTo(7);break}return B.yield(y.determineIconSet(d,I,F,t,P),7);case 7:return B.yield(y.renderIcon(P,w),0)}})};
mK.prototype.toggleContainerClass=function(y){y?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var pOr=function(y){return!_.e("default_to_innertube_icon")||y.indexOf(":")>0?y:_.D8(y)};
_.E=mK.prototype;_.E.determineIconSet=function(y,W,V,w){var t=this;return _.g(function(F){return F.nextAddress==1?_.e("kevlar_system_icons")||_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.yC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?F.yield(t.switchToYtSysIconset(y,W,V,w),3):F.jumpTo(2):F.nextAddress!=2?F.return():F.yield(t.useYtSysIconsetForMissingIcons(y,W,V,w),0)})};
_.E.switchToYtSysIconset=function(y,W,V,w){var t=this,F,I,P,C,d,L,z;return _.g(function(c){switch(c.nextAddress){case 1:if(!y||t.iconsetName!=="yt-icons"&&t.iconsetName!=="yt-sys-icons"){c.jumpTo(0);break}F=PHj(y);I=F[1];I=_.o6z(I);_.e("enable_polymer_icons_replace_underscores_dash")&&I.includes("_filled")&&(I=I.replace(/_filled/g,"-filled"));return c.yield(SY(I,!0),3);case 3:return P=c.yieldResult,c.yield(SY(I,!1),4);case 4:if((C=c.yieldResult)||W&&P)t.iconsetName="yt-sys-icons";t.iconName=t.getIconName(I,
W,V,C,P);if(w===24){c.jumpTo(0);break}d="yt-sys-icons"+w+":"+t.iconName;return c.yield(SY(d,!1,!0),6);case 6:return L=c.yieldResult,c.yield(SY(d,!0,!0),7);case 7:z=c.yieldResult;t.iconName=t.getIconName(I,W,V,L,z);if(!W&&L||W&&z)t.iconsetName="yt-sys-icons"+w;_.B7(c)}})};
_.E.getIconName=function(y,W,V,w,t){y.includes("-filled")&&(y=y.replace("-filled",""));return t&&(W||V)?y+"-filled":y};
_.E.useYtSysIconsetForMissingIcons=function(y,W,V,w){var t=this,F,I;return _.g(function(P){if(P.nextAddress==1)return t.iconsetName!=="yt-icons"?P.jumpTo(0):P.yield(SY(t.iconName,!1,!1,!0),3);if(P.nextAddress!=4)return F=P.yieldResult,P.yield(SY(t.iconName,!1),4);I=P.yieldResult;if(F||!I)return P.jumpTo(0);t.iconsetName="yt-sys-icons";return P.yield(t.switchToYtSysIconset(y,W,V,w),0)})};
_.E.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var fXJ=function(){return _.g(function(y){try{return y.return(_.hs().resolve(_.lE))}catch(W){return y.return(new Promise(function(V){_.FS().parkOrScheduleJob(function(){V(_.hs().resolve(_.lE))},2,"ci")}))}})},iUq=function(y,W,V,w,t,F){w=w===void 0?24:w;
if(y){y=y.toLowerCase();var I=y.endsWith("_filled")||y.endsWith("-filled");W={iconName:y,iconStyle:(W===void 0?0:W)||(V===void 0?0:V)||I?"youtube_fill":"youtube_outline",iconSize:w,iconSetName:t===void 0?"yt-icons":t};V=!!F.resolveIcon(W);V||(W.iconSize=void 0,V=!!F.resolveIcon(W));!V&&I&&(W.iconName=y.substring(0,y.length-7),W.iconSize=w,V=!!F.resolveIcon(W),V||(W.iconSize=void 0,V=!!F.resolveIcon(W)));V||(W.iconStyle=void 0,V=!!F.resolveIcon(W));V||_.rQ(new _.Js("Icon not supported",{iconName:W.iconName,
iconStyle:W.iconStyle,iconSize:W.iconSize,iconType:y}));return V?W:void 0}};
_.E=mK.prototype;_.E.shouldRenderIconShape=function(y){if(!_.e("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;y=this.getContainer(y);return!Me4(y,this.icon)};
_.E.renderIcon=function(y,W){var V=this,w,t,F,I,P,C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:if(W&&V.icon!==W)return z.return();w=V.getContainer(y);t=Me4(w,V.icon);if(V.shouldRenderIconShape(y)&&V.iconType)return V.applyIconShape(t,w),z.return();V.removeIconShape();if(!w)return z.return();V.iconName===""&&V.iconset&&w&&(V.removeStaticIcon(V.iconset,w),t&&V.removeAnimatedIcon(w));if(V.iconName===""&&V.iconset||!V.iconsetName||!KVK)return z.return();V.iconset=KVK.byKey(V.iconsetName);
if(!V.iconset)return V.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Dp(V,V.onIconsetAdded)),z.return();V.missingIconSet&&(V.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Dp(V,V.onIconsetAdded)));I=(F=t||V.isAnimatedIcon?THt(V.icon):void 0)&&!F.lazyLoad;C=F&&((P=F)==null?void 0:P.lazyLoad)&&(F.lottiePlayerProps.animationConfig.animationData?!0:xS.get(V.isDarkTheme?F.pathDarkTheme:F.path)?!0:!1);if(I||C)return V.applyAnimatedIcon(w,F,V.iconset),z.return();if(C||
(d=F)==null||!d.lazyLoad){z.jumpTo(2);break}L=ULP(F,V.isDarkTheme);V.applyStaticIcon(V.iconset,w,V.iconName,y,t);return z.yield(L,3);case 3:return z.yield(V.renderIcon(V.targetContainer,V.icon),4);case 4:return z.return();case 2:V.applyStaticIcon(V.iconset,w,V.iconName,y,t),_.B7(z)}})};
_.E.getContainer=function(y){var W,V=(W=UJa(this.hostElement))==null?void 0:W.host;W=!!V&&!!V.polymerController;if(!y||W)return y?this.getTargetContainer(y,V):this.hostElement};
_.E.getTargetContainer=function(y,W){var V=_.i6(W).querySelector("#"+y);V||(y=new _.Js("yt-icon container missing",W.is,y),_.ap(y));return V};
_.E.applyStaticIcon=function(y,W,V,w,t){t&&this.removeAnimatedIcon(W);this.removeIconShape();t=t&&!!this.iconType&&!!this.iconShapeData&&_.e("kevlar_use_wil_icons");try{t?this.applyIconShape(!1,W):y.applyIcon(W,V)}catch(F){this.handleError(F,w,W)}};
_.E.applyIconShape=function(y,W){this.iconset&&W&&(this.removeStaticIcon(this.iconset,W),y&&this.removeAnimatedIcon(W));y={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var V=_.N(this.iconShapeDataSignal);W=V.next().value;V=V.next().value;var w=_.N(this.renderingOptionsSignal),t=w.next().value;w=w.next().value;V(this.iconShapeData);w(y);if(!this.wizHasRendered)for(this.wizHasRendered=!0,y=_.N(lVz(W,t)).next().value;y.firstChild;)_.i6(this.hostElement).appendChild(y.firstChild)};
_.E.removeIconShape=function(){if(_.e("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.E.removeStaticIcon=function(y,W){y.removeIcon(W)};
_.E.applyAnimatedIcon=function(y,W,V){this.removeStaticIcon(V,y);this.removeIconShape();var w;V=this.animatedIconElement&&((w=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:w.type)===W.type;if(this.animatedIconElement&&V){this.animatedIconElement.polymerController.animatedIcon=W;var t;((t=this.animatedIconElement)==null?void 0:t.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(y),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=W,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.e("kevlar_use_wil_icons")?y.insertBefore(this.animatedIconElement,y.childNodes[0]):(y=_.i6(y),y.insertBefore(this.animatedIconElement,y.childNodes[0]))};
_.E.removeAnimatedIcon=function(y){_.e("kevlar_use_wil_icons")?this.animatedIconElement&&y.contains(this.animatedIconElement)&&y.removeChild(this.animatedIconElement):(y=_.i6(y),this.animatedIconElement&&y.contains(this.animatedIconElement)&&y.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.E.handleError=function(y,W,V){_.bb(y,this.iconName,W,V);W=Me4(V,this.icon);var w=!1;window.location.href.includes("JpymaW6Lh2w")?w=!0:V._svgIcon&&(V=(V=V._svgIcon.parentNode)?V.tagName:"unknown",_.bb(y,V),V==="YT-ICON"&&y.name==="NotFoundError"?w=!0:y.name==="NotFoundError"&&W&&(w=!0));w?_.rQ(y):_.ap(y)};
_.CM.Object.defineProperties(mK,{template:{configurable:!0,enumerable:!0,get:function(){if(o4f===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;
hes===void 0&&(hes=document.createElement("template"));var w=hes;V.call(W,w.content.cloneNode(!0),y.content.firstChild);o4f=y}y=o4f;return y}}});
mK.prototype.handlePropertyChange=mK.prototype.handlePropertyChange;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],mK.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",String)],mK.prototype,"icon",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],mK.prototype,"active",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],mK.prototype,"defaultToFilled",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],mK.prototype,"isAnimatedIcon",void 0);
_.J([_.q({value:24}),_.R("design:type",Number)],mK.prototype,"size",void 0);_.J([_.q({value:""}),_.R("design:type",String)],mK.prototype,"targetContainer",void 0);_.J([_.q(),_.R("design:type",Object)],mK.prototype,"animatedIconElement",void 0);_.J([_.q(),_.R("design:type",Object)],mK.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],mK.prototype,"ariaHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],mK.prototype,"ariaLabel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],mK.prototype,"role",void 0);_.J([_.q(),_.R("design:type",String)],mK.prototype,"style",void 0);_.J([_.q(),_.R("design:type",String)],mK.prototype,"iconFilter",void 0);_.J([_.xA("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],mK.prototype,"handlePropertyChange",null);_.J([_.Zp({is:"yt-icon",noInjection:!0})],mK);var TI6;var mPJ=function(){var y=document.body,W=y.appendChild;if(TI6===void 0){var V=document.createElement("template");_.T(V,'\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>');
TI6=V}V=TI6;W.call(y,V.content)};
document.body?mPJ():window.addEventListener("DOMContentLoaded",mPJ);var MT2,qi2=function(){return MT2!==void 0?MT2:MT2=document.createElement("template")};
document.head.appendChild(qi2().content);var UPz,uFJ=function(){return UPz!==void 0?UPz:UPz=document.createElement("template")};
document.head.appendChild(uFJ().content);var Si6;_.MC=new _.e9("KEY_MANAGER_TOKEN");var YNy={duration:1E3,easing:"ease",fill:"forwards"};_.zY(Apj);var Jp4={duration:1E3,easing:"ease",fill:"forwards"},xPJ=_.eY(function(y){var W=_.I0("animated-rolling-character"),V=void 0,w=function(){var t,F;return PN((t=y.character)==null?void 0:t.call(y))||PN((F=y.previousCharacter)==null?void 0:F.call(y))};
_.H1(function(){if(y.marginMultiplier()){var t;(t=V)==null||t.cancel();if(w()){var F;t=((F=y.previousCharacter)==null?0:F.call(y))?Number(y.previousCharacter())+10:y.rollUp()?0:30;var I;if((I=y.shouldAnimate)==null||!I.call(y)){var P,C;t-=BHv((P=y.character)==null?void 0:P.call(y),(C=y.previousCharacter)==null?void 0:C.call(y),y.rollUp(),t)}}else{t=y.rollUp()?0:2;var d;(d=y.shouldAnimate)!=null&&d.call(y)||(F=t,I=y.rollUp()?-1:1,t=F-I)}W.value.style.marginTop="-"+t*y.marginMultiplier()+"px";var L;
if((L=y.shouldAnimate)==null?0:L.call(y)){var z,c;V=ROt(W.value,(z=y.character)==null?void 0:z.call(y),(c=y.previousCharacter)==null?void 0:c.call(y),y.rollUp(),t,w(),y.marginMultiplier())}else{var K;W.value.style.display=((K=y.character)==null?0:K.call(y))?"":"none"}}},"vt9b9b");
return _.O("animated-rolling-character",{el:W,class:"animated-rolling-character-wiz"},_.O(_.v,{cond:w,then:function(){return _.O(DPI,null)},
else:function(){return _.O(lXm,{character:y.character})}}))},"k");
xPJ.idomCompat=!0;var jov=_.e("web_enable_sink_animated_rolling_character_and_number")?xPJ:Apj,ke2=_.e("web_enable_sink_animated_rolling_character_and_number")?xPJ:_.Al(Apj),DPI=_.eY(function(){for(var y=[],W=1;W<30;W++)y.push(_.O("div",null,W%10));return _.O(_.o8,null,_.O("div",null,"\u00a0"),y,_.O("div",null,"\u00a0"))},"l"),lXm=_.eY(function(y){var W=y.character;
return _.O(_.o8,null,_.O("div",null,"\u00a0"),_.O(_.v,{cond:function(){return!(W==null?0:W())||_.gu(W==null?void 0:W())},
then:function(){return _.O("div",null,"\u00a0")},
else:function(){return _.O("div",null,W)}}),_.O("div",null,"\u00a0"))},"m");_.zY($LR);var sNz=_.eY(function(y){var W=void 0,V=void 0,w=function(){var F;return((F=y.fontSizeMultiplier)==null?0:F.call(y))?y.heightPx()*y.fontSizeMultiplier():y.heightPx()},t=_.DZ(function(){if(!y.numberText())return[];
var F,I,P=((F=y.forceRollUp)==null?void 0:F.call(y))||!V||!((I=y.numberValue)==null?0:I.call(y))||V<y.numberValue(),C,d=y.numberText();F=w();I=!((C=y.shouldAnimate)==null||!C.call(y));C=[];var L=0,z=0,c=(W?W.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0),K=W?W.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);c<0;){var f=d[z];C.push({character:f,rollUp:P,marginMultiplier:F,shouldAnimate:I});z++;PN(f)&&c++}for(;L<c;)f=K[L],C.push({previousCharacter:f,rollUp:P,marginMultiplier:F,
shouldAnimate:I}),L++,PN(f)||c++;for(;z<d.length;)c=d[z],f=K[L],PN(c)===PN(f)?(z++,L++):PN(c)?(L++,c=void 0):PN(f)&&(z++,f=void 0),C.push({character:c,previousCharacter:f,rollUp:P,marginMultiplier:F,shouldAnimate:I});W=y.numberText();var U;V=(U=y.numberValue)==null?void 0:U.call(y);return C},void 0,"B9AmNd");
return _.O("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return y.numberText()?["height: "+w()+"px;","line-height: "+y.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.O(_.YV,{each:t,keyBy:"INDEX"},function(F){return _.O(ke2,{character:function(){return F().character},
previousCharacter:function(){return F().previousCharacter},
marginMultiplier:function(){return F().marginMultiplier},
rollUp:function(){return F().rollUp},
shouldAnimate:function(){return F().shouldAnimate}})}))},"n");
sNz.idomCompat=!0;_.InR=_.e("web_enable_sink_animated_rolling_character_and_number")?sNz:$LR;_.AVR=_.e("web_enable_sink_animated_rolling_character_and_number")?sNz:_.Al($LR);var nQz={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"};_.It=_.eY(function(y){var W=_.I0("a",y.ref),V=y.aTagConfig?y.aTagConfig:_.DZ(function(){var w,t,F,I,P;var C=(P=_.tl((F=y.command)==null?void 0:F.call(y)))!=null?P:(I=y.command)==null?void 0:I.call(y);return _.EU({innertubeCommand:C,skipOnClick:(w=y.skipOnClick)==null?void 0:w.call(y),defaultTarget:(t=y.target)==null?void 0:t.call(y)})||{}},void 0,"I5WLmc");
_.H1(function(){W.value._data=V()._data;W.value.params=V().params},"STb8Se");
return _.O("a",{el:W,href:function(){return V().href$},
rel:function(){return V().rel$},
class:function(){var w,t;return(t=V().className)!=null?t:(w=y.className)==null?void 0:w.call(y)},
style:function(){var w;if((w=y.style)==null?0:w.call(y))return y.style();var t;return((t=y.disabled)==null?0:t.call(y))?"pointer-events:none":""},
"aria-haspopup":function(){return!!V()["aria-haspopup$"]},
"force-new-state":Ba(function(){return V()["force-new-state$"]}),
title:Ba(function(){var w,t;return(t=V().title$)!=null?t:(w=y.title)==null?void 0:w.call(y)}),
role:Ba(function(){var w;return((w=y.role)==null?void 0:w.call(y))||V().role$}),
target:Ba(function(){return V().target$}),
dir:Ba(function(){var w;return((w=y.dir)==null?void 0:w.call(y))||V().dir}),
tabindex:function(){var w;return V().tabindex$?Number(V().tabindex$):(w=y.tabIndex)==null?void 0:w.call(y)},
"aria-hidden":function(){var w,t;return(t=V()["aria-hidden$"])!=null?t:(w=y.ariaHidden)==null?void 0:w.call(y)},
"aria-label":function(){var w,t;return(t=V()["aria-label$"])!=null?t:(w=y.ariaLabel)==null?void 0:w.call(y)},
"aria-current":y.ariaCurrent,"aria-disabled":y.disabled,"aria-labelledby":y.ariaLabelledby,"aria-describedby":y.ariaDescribedby,"aria-selected":y.ariaSelected,"tab-identifier":y.tabIdentifier,"on:pointerdown":_.YS(function(w){var t,F;return void((F=(t=V()).onpointerdown)==null?void 0:F.call(t,w))}),
"on:click":_.YS(function(w){var t,F;(F=(t=V()).onclick)==null||F.call(t,w);var I;(I=y.onClick)==null||I.call(y,w)}),
"on:focusin":_.YS(function(w){var t;(t=y.onFocusin)==null||t.call(y,w)}),
"on:focusout":_.YS(function(w){var t;(t=y.onFocusout)==null||t.call(y,w)})},y.children)},"o");var YiK=function(y,W){this.fillAnimation=new Animation(GNv(y),document.timeline);this.strokeAnimation=new Animation(rpd(W),document.timeline)};
YiK.prototype.play=function(){var y,W;(W=(y=this.fillAnimation).play)==null||W.call(y);var V,w;(w=(V=this.strokeAnimation).play)==null||w.call(V)};
YiK.prototype.cancel=function(){var y,W;(W=(y=this.fillAnimation).cancel)==null||W.call(y);var V,w;(w=(V=this.strokeAnimation).cancel)==null||w.call(V)};_.Ha=_.eY(function(y){var W=y.model;var V=y.pointerDownEvent;var w=y.pointerUpEvent;var t=y.pointerLeaveEvent;y=_.I0("div");var F=_.Rd({"border-radius":function(){return W().borderRadius}}),I=_.I0("div"),P=_.I0("div"),C=_.N(_.Jl(function(){return(w==null?0:w())||(t==null?0:t())?!1:!(V==null||!V())||!1})),d=C.next().value,L=C.next().value,z=void 0,c=function(){!z&&P.value&&I.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(z=new YiK(P.value,I.value));
var B;(B=z)==null||B.play()},K=function(){var B;
(B=z)==null||B.cancel()},f=function(){var B;
(B=z)==null||B.cancel()};
_.H1(function(){(w==null?0:w())&&c()},"YjVIpd");
_.H1(function(){(V==null?0:V())&&K()},"UrXvqb");
_.H1(function(){(t==null?0:t())&&f()},"QK6L8b");
C=_.YS(function(){c();L(!1)});
var U=_.YS(function(){K();L(!0)}),l=_.YS(function(){f();
L(!1)});
_.XT(function(){if(z){var B;(B=z)==null||B.cancel();z=void 0}});
var x={};d=_.kS("yt-spec-touch-feedback-shape",function(){return bWy(W().color)},(x["yt-spec-touch-feedback-shape--focused"]=function(){return!!W().focused&&!W().disabled},x["yt-spec-touch-feedback-shape--circular"]=function(){return!!W().circular},x["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!W().isExtended},x["yt-spec-touch-feedback-shape--down"]=d,x["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!W().triggerEvents},x));
return _.O("yt-touch-feedback-shape",{style:_.Rd({"border-radius":"inherit"})},_.O("div",{el:y,class:d,style:_.Rd({"margin-top":function(){return W().customTopExtend?"-"+W().customTopExtend+"px":void 0}}),
"on:mousedown":U,"on:mouseup":C,"on:pointerleave":l,"on:touchstart":U,"on:touchend":C,"aria-hidden":!0},_.O("div",{class:"yt-spec-touch-feedback-shape__stroke",style:F,el:I}),_.O("div",{class:"yt-spec-touch-feedback-shape__fill",style:F,el:P})))},"p");
_.Ha.idomCompat=!0;var BIK={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 qC=_.cy();qC=qC.toLowerCase();if(_.Cd(qC,"android")){var JVE=qC.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);JVE&&parseFloat(JVE[1])<100||qC.match("("+Object.keys(BIK).join("|")+")")};var Re6=_.eY(function(y){return _.O(_.v,{cond:y.aTagConfig,then:function(W){return _.O(_.It,{aTagConfig:W,disabled:y.disabled,className:y.className,style:y.style,title:y.title,ariaLabel:y.ariaLabel,ariaCurrent:function(){var V,w;return((V=y.toggleable)==null?void 0:V.call(y))&&((w=y.toggled)==null?void 0:w.call(y))},
ref:y.ref},y.children)},
else:function(){return _.O("button",{el:_.hl(y.ref),"on:click":_.YS(function(W){var V;return(V=y.onClick)==null?void 0:V.call(y,W)}),
class:y.className,title:y.title,style:y.style,disabled:y.disabled,"aria-pressed":function(){var W,V;return((W=y.toggleable)==null?0:W.call(y))?!((V=y.toggled)==null||!V.call(y)):void 0},
"aria-label":y.ariaLabel,"aria-disabled":y.visiblyDisabled,"aria-hidden":y.ariaHidden,tabindex:y.tabIndex},y.children)}})},"q"),$Pm=_.eY(function(y){var W=y.data;
var V=y.hasIconLeading;var w=y.hasIconLeadingTrailing;var t=y.hasIconTrailing;var F=y.iconButton;var I=y.iconClassName;var P=y.secondaryIconClassName;var C=y.icon;var d=y.secondaryIcon;var L=y.textContentClassName;return _.O(St,{className:"",style:"display: inherit; justify-content: center"},_.O(_.v,{debugInstance:"V4z1Uc",cond:function(){return C&&(V()||w()||(F==null?void 0:F()))},
then:function(){return _.O(St,null,_.O("div",{class:I,"aria-hidden":"true"},C==null?void 0:C()))}}),_.O(_.v,{debugInstance:"ok3btb",
cond:function(){return(W().buttonText||W().animatedTextProps||W().formattedButtonText)&&!(F==null?0:F())},
then:function(){return _.O(St,null,_.O(jNK,{className:L,iconPosition:function(){return W().iconPosition},
text:function(){return W().buttonText},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}))}}),_.O(_.v,{debugInstance:"DO5Rz",
cond:t,then:function(){return _.O(St,null,_.O("div",{class:I},C==null?void 0:C()))}}),_.O(_.v,{debugInstance:"bnojSc",
cond:w,then:function(){return _.O(St,null,_.O("div",{class:P},d==null?void 0:d()))}}),_.O(_.v,{debugInstance:"HN3kad",
cond:function(){return!W().disabled&&!0},
then:function(){return _.O(_.Ha,{model:function(){return{color:V_P(W())}}})}}))},"r"),jNK=_.eY(function(y){var W=function(){var V,w;
return((V=y.iconPosition)==null?void 0:V.call(y))==="icon-with-label"||((w=y.oneOffCustomTextWrap)==null?void 0:w.call(y))};
return _.O("div",{class:y.className,"aria-hidden":function(){var V,w,t;return((V=y.ariaHidden)==null?void 0:V.call(y))&&(!((w=y.animatedTextProps)==null||!w.call(y))||!((t=y.formattedButtonText)==null||!t.call(y)))}},_.O(_.$V,null,_.O(_.BV,{when:function(){var V;
return(V=y.animatedTextProps)==null?void 0:V.call(y)}},function(){return _.O(_.AVR,{numberText:function(){return y.animatedTextProps().numberText},
numberValue:function(){return y.animatedTextProps().numberValue},
heightPx:function(){return y.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return y.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return y.animatedTextProps().shouldAnimate},
forceRollUp:function(){return y.animatedTextProps().forceRollUp}})}),_.O(_.BV,{when:function(){var V;
return(V=y.formattedButtonText)==null?void 0:V.call(y)}},function(){return _.O(_.Lv,{text:function(){return Object.assign({},y.formattedButtonText(),{lineBreakMode:W()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":y.formattedButtonText().lineBreakMode,
alignment:W()?"TEXT_ALIGNMENT_CENTER":y.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!W()}})}),_.O(_.BV,{when:function(){var V,w;
return((V=y.iconPosition)==null?void 0:V.call(y))==="icon-with-label"&&((w=y.text)==null?void 0:w.call(y))}},function(){return _.O(_.Lv,{text:function(){return{content:y.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.O(_.j0,null,function(){return y.text})))},"s"),n4q=_.eY(function(y){return _.O(_.v,{debugInstance:"kM7Sgc",
cond:y.hasLabel,then:function(){var W;return _.O("label",{class:y.className},y.children,(W=y.textContent)==null?void 0:W.call(y))},
else:function(){return y.children}})},"t"),St=_.eY(function(y){return y.children},"u");var bnP=zt("stamper-context");var HUA=function(){var y=_.N(_.M1(void 0,void 0,"X7d4l"));this.state=y.next().value;this.setState=y.next().value;y=_.N(_.M1(void 0,void 0,"CfI23e"));this.schedulerJobID=y.next().value;this.setSchedulerJobID=y.next().value},z_d=function(y,W){var V=L8P,w=_.HU.addJob(function(){V.setState({text:W.text,
location:W.location,anchor:y,offset:W.offset})},4,W.delay);
V.setSchedulerJobID(w)},cIj=function(){var y=L8P,W=y.schedulerJobID();
W&&(_.HU.cancelJob(W),y.setSchedulerJobID(void 0));y.setState(void 0)};
HUA.prototype.notify=function(y,W){var V;((V=this.state())==null?void 0:V.anchor)===y&&this.setState({text:W.text,location:W.location,anchor:y,offset:W.offset})};var L8P;L8P=new HUA;_.XOR=_.eY(function(){var y=HTMLElement.prototype.hasOwnProperty("popover");return _.O("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var W=L8P.state();return y&&(W==null?void 0:W.text)})},"v");var zr=_.eY(function(y){var W=y.data;var V=y.icon;var w=y.iconName;var t=y.secondaryIcon;var F=y.secondaryIconName;var I=y.focusedOverride;var P=y.clientOnlyWizTooltipsEnabled;_.vNd();var C=Qob(W),d=C.size,L=C.style;y=C.disabled;var z=C.onTap,c=C.alignByText,K=C.aTagConfig,f=C.customColors,U=C.segmentedPosition,l=C.toggled,x=C.toggleable,B=C.accessibilityLabel,r=C.onToggle,H=C.iconPosition,a=C.oneOffCustomTextWrap,b=C.disableTextEllipsis,Fv=C.disableBackdropFilter,Py=C.tooltipText,du=C.ariaHidden,
mL=C.tabIndex,un=C.buttonText,hv=C.formattedButtonText,$P=C.animatedTextProps,sz=W8u(W,V,t,w,F,I),Wz=sz.type;V=sz.shouldFocus;w=sz.hasIconLeading;t=sz.hasIconTrailing;var mf=sz.hasIconLeadingTrailing,OE=sz.hasIconOnly;F=sz.hasIconOnly40;var Qj=sz.hasIconWithLabel;I=sz.iconButton;var Kq=sz.visiblyDisabled;C=sz.overrideSmallSizeIcon;var zR=sz.iconToRender;sz=sz.secondaryIconToRender;var l2=_.N(e_z(Py)).next().value,lt={},yu={};return _.O(n4q,{className:_.kS("yt-spec-button-shape-with-label",(lt["yt-spec-button-shape-with-label--is-overlay"]=
function(){return L()==="overlay"||L()==="overlay-dark"},lt)),
hasLabel:Qj,textContent:function(){return _.O(jNK,{text:un,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:a,iconPosition:H,formattedButtonText:hv,animatedTextProps:$P})}},_.O(Re6,{aTagConfig:K,
className:_.kS("yt-spec-button-shape-next",function(){return t_v(Wz())},function(){return Kq()?void 0:F84(L())},function(){return ENn(d())},(yu["yt-spec-button-shape-next--disabled"]=Kq,yu["yt-spec-button-shape-next--focused"]=V,yu["yt-spec-button-shape-next--icon-trailing"]=t,yu["yt-spec-button-shape-next--icon-leading"]=w,yu["yt-spec-button-shape-next--icon-leading-trailing"]=mf,yu["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return mf()&&!(un()||hv())},yu["yt-spec-button-shape-next--icon-button"]=
function(){return OE()||Qj()},yu["yt-spec-button-shape-next--icon-only-default"]=F,yu["yt-spec-button-shape-next--align-by-text"]=c,yu["yt-spec-button-shape-next--segmented-start"]=function(){return U()==="start"},yu["yt-spec-button-shape-next--segmented-end"]=function(){return U()==="end"},yu["yt-spec-button-shape-next--override-small-size-icon"]=C,yu["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=a,yu["yt-spec-button-shape-next--disable-text-ellipsis"]=b,yu["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Fv()&&w2P()},yu)),
style:function(){return NCd(f()).style},
onClick:function(Na){z==null||z(Na);x()&&(r==null||r(Na))},
disabled:y,ariaLabel:B,toggleable:x,toggled:l,title:function(){return(P==null?0:P())||!Py()?"":Py()},
visiblyDisabled:Kq,ariaHidden:du,tabIndex:mL,ref:function(Na){(P==null?0:P())&&l2(Na)}},_.O($Pm,{data:W,
hasIconLeading:w,hasIconLeadingTrailing:mf,hasIconTrailing:t,iconButton:I,icon:zR,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:sz})))},"w");
zr.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var aXs=_.eY(function(y){var W=y.data;var V=y.id;var w=y.className;var t=y.iconName;var F=y.secondaryIconName;y=_.N(_.M1(!1,void 0,"uDRWyd"));var I=y.next().value,P=y.next().value,C=function(){var L=_.hs().resolve(_.eX(_.MC));L&&P(L.isKeyBoardInUse())},d=function(){P(!1)};
y=_.I0("yt-button-shape",function(L){if(_.hs().resolve(_.eX(_.MC)))return L.addEventListener("focusin",C),L.addEventListener("focusout",d),function(){L.removeEventListener("focusin",C);L.removeEventListener("focusout",d)}});
return _.O("yt-button-shape",{el:y,id:V,class:w},_.O(_.v,{cond:W,then:function(){return _.O(zr,{data:W,iconName:t,secondaryIconName:F,focusedOverride:I})}}))},"x");
_.e("web_wiz_button_shape")&&_.iF(aXs,"yt-button-shape",{props:{data:_.vB,id:_.vB,className:_.vB,iconName:_.vB,secondaryIconName:_.vB,clientOnlyWizTooltipsEnabled:_.vB},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var D0=function(){var y=_.u.apply(this,arguments)||this;y.keyboardFocused=!1;return y};
_.p(D0,_.u);D0.prototype.onFocus=function(){var y=_.hs().resolve(_.eX(_.MC));y&&(this.keyboardFocused=y.isKeyBoardInUse())};
D0.prototype.onBlur=function(){this.keyboardFocused=!1};
D0.prototype.renderIdom=function(){var y=this;if(this.data){var W=$S(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),V=yIu(this.data);this.data.focused=this.keyboardFocused;OYj(this.data,function(){var w;Q3("yt-icon",{icon:y.iconName,active:(w=y.data)==null?void 0:w.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:V},gV)},function(){var w;
Q3("yt-icon",{icon:y.secondaryIconName,active:(w=y.data)==null?void 0:w.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:V},gV)});
_.h1(this.hostElement,"yt-renderidom-finished")}};
_.CM.Object.defineProperties(D0,{template:{configurable:!0,enumerable:!0,get:function(){if(Si6===void 0){var y=document.createElement("template");_.T(y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(uFJ().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(qi2().content.cloneNode(!0),y.content.firstChild);Si6=y}y=Si6;return y}}});
D0.prototype.onBlur=D0.prototype.onBlur;D0.prototype.onFocus=D0.prototype.onFocus;_.J([_.m(g6Q),_.R("design:type",Object)],D0.prototype,"ytIdomTemplatingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],D0.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],D0.prototype,"iconName",void 0);_.J([_.q(),_.R("design:type",String)],D0.prototype,"secondaryIconName",void 0);_.J([_.q(),_.R("design:type",Object)],D0.prototype,"keyboardFocused",void 0);
_.J([_.l6("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],D0.prototype,"onFocus",null);_.J([_.l6("focusout"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],D0.prototype,"onBlur",null);_.J([_.Zp({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.e("web_wiz_button_shape")})],D0);_.iF(_.eY(function(y){function W(){V().seconds&&F(rg4({seconds:Number(V().seconds)-Date.now()/1E3}))}
var V=y.targetTimestamp;y=y.className;var w=_.N(_.M1("",void 0,"U1Q8Ae")),t=w.next().value,F=w.next().value;_.HV(function(){W();var I=setInterval(function(){W()},1E3);
_.XT(function(){clearInterval(I)})});
return _.O("yt-countdown",{class:_.kS("ytCountDownHost",y)},_.O("div",null,t))},"y"),"yt-countdown",{props:{targetTimestamp:_.vB,
className:_.p5}});_.lk=_.eY(function(y){var W=y.data;var V=y.className;var w=y.style;var t=y.useOutlinedIcon;var F=y.buttonOverrides;var I=y.animatedTextProps;var P=y.onClick;var C=y.target;var d=_.I0("button-view-model",function(B){B.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var r=W().targetId;r&&_.zxf(_.$K(),r,B);return function(){dhz(_.$K(),B)}}),L=function(){return W().iconName},z,c=(z=_.hs().resolve(_.eX(_.va)))==null?void 0:z(),K=function(){var B=W();
var r=F==null?void 0:F(),H=I==null?void 0:I(),a=C==null?void 0:C();if(B){var b=iYy(B.type);var Fv=!!B.title||!!B.titleFormatted;var Py=!(!B.iconName&&!B.iconImage);Fv=Py&&!Fv?"icon-only":Py?B.iconTrailing||B.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Fv==="icon-only-40"&&(b="text");var du,mL=(du=r==null?void 0:r.disabled)!=null?du:B.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||B.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";du=Object;Py=du.assign;var un=B.title,
hv=B.titleFormatted;H=H&&H.numberText&&!isNaN(Number(H.numberValue))?H:void 0;var $P=B.accessibilityText,sz=p2j(B.style),Wz=fnj(B.state),mf=TCu(B.buttonSize);a=K8z(B,d,mL,P,a);mL=mL&&!B.onDisabledTap;var OE=_.tl(B==null?void 0:B.onTap);var Qj={};OE&&(Qj.clickedVisualElement=oNa(B,OE));OE=_.EU({elementsCommand:B.onTap,forceNewState:!0,additionalCommandArgs:Qj});OE=N4(OE)?OE:void 0;var Kq=B.customFontColor,zR=B.customBackgroundColor;Qj=B.customBorderColor;var l2=B.customDarkThemeFontColor,lt=B.customDarkThemeBackgroundColor,
yu=B.customDarkThemeBorderColor;Kq=c&&l2?l2:Kq;zR=c&&lt?lt:zR;Qj=c&&yu?yu:Qj;Qj={color:Kq?_.wg(Kq):void 0,backgroundColor:zR?_.wg(zR):void 0,borderColor:Qj?_.wg(Qj):void 0};B=Py.call(du,{},{buttonText:un,formattedButtonText:hv,animatedTextProps:H,accessibilityLabel:$P,style:sz,type:b,state:Wz,size:mf,iconPosition:Fv,onTap:a,disabled:mL,aTagConfig:OE,customColors:Qj,tooltipText:B.tooltip},r)}else B={style:"mono",type:"text",state:"active",size:"M"};B.focused=l();return B},f=function(){return $S(K(),
!!W().iconName)};
y=_.N(_.M1(!1,void 0,"bl7g4"));z=y.next().value;var U=y.next().value,l=z;y=_.YS(function(){var B=_.hs().resolve(_.eX(_.MC));B&&U(B.isKeyBoardInUse());return!1});
z=_.YS(function(){U(!1);return!1});
_.H1(function(){var B,r=_.h(W==null?void 0:(B=W())==null?void 0:B.onVisible,_.wL);r&&_.F2(r,{disableClickTracking:!0})},"MLqBF");
var x=_.e("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.O("button-view-model",{el:d,class:_.kS("yt-spec-button-view-model",V),"on:focusin":y,"on:focusout":z},_.O(_.v,{cond:function(){var B;return(W==null?0:(B=W())==null?0:B.iconImage)?{sources:[W().iconImage]}:void 0},
then:function(B){return _.O(zr,{data:K,icon:function(){return _.O(_.ca,{data:B,alt:"",targetWidth:f,targetHeight:f,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:x})},
else:function(){return _.O(zr,{data:K,icon:function(){return _.O(_.jl,{icon:L,active:function(){return(t==null?0:t())?!1:K().toggled},
animateIcon:function(){var B;return!!(w==null?0:(B=w())==null?0:B.animateIcon)},
size:f})},
clientOnlyWizTooltipsEnabled:x})}}))},"z");
_.lk.idomCompat={callbacks:{onClick:!0}};_.iF(_.eY(function(y){return _.O("yt-button-view-model",{id:y.id,class:_.kS(y.scopingClassName,y.classes),icon:function(){var W;return(W=y.icon)==null?void 0:W.call(y)},
"dialog-dismiss":function(){var W;return((W=y.dialogDismiss)==null?0:W.call(y))?"":void 0}},_.O(_.lk,{data:function(){var W;
return(W=y.data)==null?void 0:W.call(y)},
className:function(){var W;return(W=y.className)==null?void 0:W.call(y)},
style:function(){var W;return(W=y.style)==null?void 0:W.call(y)},
useOutlinedIcon:function(){var W;return(W=y.useOutlinedIcon)==null?void 0:W.call(y)},
buttonOverrides:function(){var W;return(W=y.buttonOverrides)==null?void 0:W.call(y)},
animatedTextProps:function(){var W;return(W=y.animatedTextProps)==null?void 0:W.call(y)},
onClick:function(W){var V;return(V=y.onClick)==null?void 0:V.call(y,W)}}))},"A"),"yt-button-view-model",{props:{data:_.vB,
className:_.vB,style:_.vB,useOutlinedIcon:_.vB,buttonOverrides:_.vB,animatedTextProps:_.vB,onClick:_.p5,scopingClassName:_.vB,id:_.vB,icon:_.vB,dialogDismiss:_.vB,classes:_.vB,target:_.p5}});var xp=function(){var y=_.u.apply(this,arguments)||this;y.isGoalActive=!0;return y};
_.p(xp,_.u);xp.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
xp.prototype.progressBarChanged=function(){var y=_.i6(this.hostElement).querySelector("#progress-bar-progress"),W,V,w,t=(w=Number((W=this.creatorGoalState)==null?void 0:W.currentGoalCount)/Number((V=this.creatorGoalState)==null?void 0:V.totalGoalCount)*100)!=null?w:0,F;y.style.width=((F=Math.min(t,100))!=null?F:0)+"%"};
xp.prototype.goalStateChanged=function(){var y;this.isGoalActive=((y=this.creatorGoalState)==null?void 0:y.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var W;y={"--yt-progress-bar-color":AQv((W=this.creatorGoalState)==null?void 0:W.progressBarColor)};_.qg(this.hostElement,y)};
xp.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.CM.Object.defineProperties(xp.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var y;return this.isGoalActive&&!((y=this.creatorGoalState)==null||!y.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.creatorGoalState)==null?0:y.endTimestampMs){var W;y=Number((W=this.creatorGoalState)==null?void 0:W.endTimestampMs)/1E3;return{seconds:String(y)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.creatorGoalState)==null?0:y.themedTargetImage){var W;y=_.h((W=this.creatorGoalState)==null?void 0:W.themedTargetImage,Smi);return this.isAppDarkTheme()?y==null?void 0:y.imageDark:y==null?void 0:y.imageLight}}}});
_.CM.Object.defineProperties(xp,{template:{configurable:!0,enumerable:!0,get:function(){return IXI()}}});
xp.prototype.goalStateChanged=xp.prototype.goalStateChanged;xp.prototype.progressBarChanged=xp.prototype.progressBarChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],xp.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);
_.J([_.q({selectorArgs:["data.creatorGoalEntityKey"],selector:function(y,W){return _.UB(y.entities,"creatorGoalEntity",W)}}),
_.R("design:type",Object)],xp.prototype,"creatorGoalState",void 0);_.J([_.q(),_.R("design:type",Object)],xp.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],xp.prototype,"isGoalActive",void 0);_.J([_.M("creatorGoalState","isGoalActive"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],xp.prototype,"shouldShowCountdown",null);_.J([_.M("creatorGoalState"),_.R("design:type",Object),_.R("design:paramtypes",[])],xp.prototype,"endTimestamp",null);
_.J([_.M("creatorGoalState"),_.R("design:type",Object),_.R("design:paramtypes",[])],xp.prototype,"targetIconThemedImage",null);_.J([_.xA("creatorGoalState.currentGoalCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xp.prototype,"progressBarChanged",null);_.J([_.xA("creatorGoalState.creatorGoalState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xp.prototype,"goalStateChanged",null);
_.J([_.Zp({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],xp);_.Y(xp,"yt-creator-goal-progress-flow-view-model",function(){return IXI()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var GeJ;var rVE;var kp=function(){return _.u.apply(this,arguments)||this};
_.p(kp,_.u);kp.prototype.attached=function(){var y,W,V;if(this==null?0:(y=this.data)==null?0:(W=y.pdgPurchasedBumperLoggingDirectives)==null?0:(V=W.loggingDirectives)==null?0:V.trackingParams){var w,t,F;qoP(this==null?void 0:(w=this.data)==null?void 0:(t=w.pdgPurchasedBumperLoggingDirectives)==null?void 0:(F=t.loggingDirectives)==null?void 0:F.trackingParams)}};
kp.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],kp.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kp.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],kp);
_.Y(kp,"yt-live-chat-item-bumper-view-model",function(){if(rVE===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;GeJ===void 0&&(GeJ=document.createElement("template"));var w=GeJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);rVE=y}y=rVE;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var bUQ;var QNs;_.z$=function(y,W){this.data=y;this.actions=W;this.data=y;this.actions=W};
_.IJ=function(){};_.sm={};_.sm.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(y,W){U7L(this.hostElement,y,W)},
getNavigationEndpointPopupAction:function(y){return ua4(y,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(y,W){SoL(this.hostElement,y,W,this.openPopupConfig)}};var R_b=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.AZ={};
_.AZ.YtEndpointBehavior=[_.sm.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.yC("openPopupConfig");(this.useClickHandler=_.W4("useClickHandler",!1))?this.hostElement.addEventListener("click",SB(this,this.onEndpointClick_)):(Hl(this.hostElement,"tap",SB(this,this.onEndpointTap_)),Hl(this.hostElement,"touchend",SB(this,this.onEndpointTouchEnd_)));Hl(this.hostElement,"touchstart",SB(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
SB(this,this.onEndpointTapStart_))},
onEndpointClick_:function(y){x7d(this.hostElement,y,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(y){var W=this.hostElement,V=this.openPopupConfig,w=this.disableCommandHandlerOverride;w=w===void 0?!1:w;var t=D7a(y);if(t){t.href&&E$(t.href);var F=y.detail;var I=F.sourceEvent;F=F.preventer;I=I.button!==void 0?I.button===0&&!GP(I):F?!GP(F):!0;t.data&&I&&lnd(W,t,y,V,w)}},
onEndpointTouchEnd_:function(y){GP(y)||D7a(y)&&y.preventDefault()},
onEndpointTapStart_:function(y){BCt(y)}}];var jTL="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),nNP=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var ZUm={};ZUm.YtPlaintextBehavior=[_.Bw,{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(y){y.preventDefault();y=y.clipboardData.getData("text/plain");document.execCommand("insertText",!1,y)},
preventRichTextFormatting_:function(y){_.S6&&(y=y.detail.keyboardEvent,y.stopImmediatePropagation(),y.preventDefault())}}];var yy2;var W4Q;var Yp=function(){var y=_.u.apply(this,arguments)||this;y.ignoreShadyDom=!1;y.hasChange_=!1;y.hasSetTitle_=!1;y.useIOObserverForVisibilityLogging_=_.e("kevlar_use_vimio_behavior")&&_.yC("INNERTUBE_CLIENT_NAME")==="WEB";y.ytFormattedStringObserverHandlerKeys_=void 0;return y};
_.p(Yp,_.u);_.E=Yp.prototype;_.E.created=function(){this.useIOObserverForVisibilityLogging_=_.e("kevlar_use_vimio_behavior")&&_.yC("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.E.ready=function(){_.yC("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_()};
_.E.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.E.detached=function(){this.unobserveIOObservers_()};
_.E.clearContents_=function(){for(var y=this.getRoot(),W=y.lastChild;W&&W.tagName!=="STYLE";){try{y.removeChild(W)}catch(V){break}W=y.lastChild}};
_.E.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var y=_.N(this.ytFormattedStringObserverHandlerKeys_),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(W.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.E.resetForAttributedString=function(){var y=this.getRoot();!y.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),y.appendChild(this.ytAttributedStringElementRef))};
_.E.resetForFormattedString=function(){var y=this.getRoot(),W=y.querySelector("yt-attributed-string");W&&(this.ytAttributedStringElementRef=y.removeChild(W))};
_.E.textChanged=function(){this.textChanged_(this.text)};
_.E.textChanged_=function(y){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!y||!y.runs&&!y.simpleText;if(_.e("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var W=this.hostElement.firstChild;W&&W.nodeName==="FONT";){var V=W;W=W.nextSibling;this.hostElement.removeChild(V)}W=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
V=y.simpleText;var w;!V&&((w=y.runs)==null?void 0:w.length)===1&&this.isSimpleString_(y.runs[0])&&(V=y.runs[0].text);V!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.yC("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(V!==void 0){try{W.textContent=V}catch(t){}W.textContent||(this.isEmpty=!0)}else y=y.runs,V!==void 0&&(y=[{text:V}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),y&&this.updateText_(y),
W.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.E.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)};
_.E.computeAriaLabel_=function(y){return y};
_.E.computeEllipsisTruncateStyling=function(y,W){return y&&!W};
_.E.computeUseAttributedString=function(y){return _.e("web_replace_formatted_with_attributed_string")&&yVd(y)&&!this.disableAttributedString&&!this.enableContentEditable};
_.E.setNodeStyle_=function(y,W){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.e("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?W.removeAttribute("dir"):W.setAttribute("dir","auto");W.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");W.style.color="";var V=null;this.noStyles||(y.bold&&(W.classList.add("bold"),V="bold"),y.deemphasize&&(W.classList.add("deemphasize"),V="deemphasize"),y.italics&&W.classList.add("italic"),
y.strikethrough&&W.classList.add("strikethrough"),y.errorUnderline&&(W.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),y.bracket&&W.classList.add("bracket"),y.textColor&&(W.style.color=_.V2(y.textColor)));V!==W.getAttribute("style-target")&&(V?W.setAttribute("style-target",V):W.removeAttribute("style-target"))};
_.E.setUpVisibilityLogging_=function(y,W){var V=this;this.setNodeTrackingParams_(y,W);var w;((w=W.data)==null?0:w.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(y=this.ytRendererBehavior.visibilityObserver.observe(W,function(t){var F=V.ytRendererBehavior.getVisibilityLogger();F&&F.reportShown(t)},this.ytRendererBehavior.visibilityOptionVisible_),W=this.ytRendererBehavior.visibilityObserver.observe(W,function(t){var F=V.ytRendererBehavior.getVisibilityLogger();
F&&F.reportHidden(t)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(y),this.ytFormattedStringObserverHandlerKeys_.push(W))};
_.E.setNodeTrackingParams_=function(y,W){W.data||(W.data={});if((y=y.loggingDirectives?y.loggingDirectives.trackingParams:null)||W.data.trackingParams)W.data.trackingParams=y};
_.E.computeHasLinkOnly_=function(y){return!(!y||y.length!==1||this.noEndpoints||!y[0].navigationEndpoint)};
_.E.getRoot=function(){var y=this.buildScopeDomOptions();return this.enableContentEditable?_.i6(_.i6(this.hostElement,y).querySelector("[contenteditable]")):_.i6(this.hostElement,y)};
_.E.fixContenteditableScope=function(){var y=function(W){W&&(W.nodeType===1&&W.classList&&(W.classList.add("style-scope"),W.classList.add("yt-formatted-string")),W.childNodes&&W.childNodes.forEach(function(V){y(V)}))};
y(this.getRoot())};
_.E.updateText_=function(y){for(var W=y.length,V=this.getRoot(),w=V.firstChild;w&&w.nodeName==="STYLE";)w=w.nextSibling;for(var t=0;t<W&&w;){var F=y[t],I=_.e("remove_cr_char")&&F.text?F.text.replace("\r",""):F.text;if(this.isSimpleString_(F)&&!this.useMixedDirectionFormattedStrings)if(w.nodeName==="#text"){w.textContent!=I&&(w.textContent=I);t++;w=w.nextSibling;continue}else break;if(_.h(F,Wa))break;else if(!this.noEndpoints&&F.navigationEndpoint){if(w.nodeName!=="A")break;this.setDataOnAnchor_(w,
F.navigationEndpoint)}else if(w.nodeName!=="SPAN")break;this.setNodeStyle_(F,w);this.setUpVisibilityLogging_(F,w);w.textContent!=I&&(w.textContent=I);t++;w=w.nextSibling}if(w)for(F=V.lastChild,w=t?w.previousSibling:null;F&&F!=w;){try{V.removeChild(F)}catch(P){break}F=V.lastChild}t!==W&&this.addTextNodes_(y,t)};
_.E.addTextNodes_=function(y,W){for(var V=document.createDocumentFragment(),w=y.length;W<w;W++){var t=y[W],F=_.e("remove_cr_char")&&t.text?t.text.replace("\r",""):t.text;if(this.isSimpleString_(t)&&!this.useMixedDirectionFormattedStrings)V.appendChild(document.createTextNode(F));else{var I=_.h(t,Wa);if(I){if(I.image){var P=document.createElement("img");I.isCustomEmoji||P.classList.add("small-emoji");P.classList.add("emoji");I.isCustomEmoji&&(P.dataset.emojiId=I.emojiId);P.src=_.f5(I.image.thumbnails,
this.emojiSize);(t=this.get("image.accessibility.accessibilityData.label",I))?P.alt=t:I.shortcuts&&I.shortcuts.length>0?P.alt=I.shortcuts[0]:I.emojiId&&(P.alt=I.emojiId);V.appendChild(P);this.hasEmoji=!0}}else!this.noEndpoints&&t.navigationEndpoint?(P=document.createElement("a"),P.classList.add("yt-simple-endpoint"),P.setAttribute("spellcheck","false"),this.setDataOnAnchor_(P,t.navigationEndpoint)):P=document.createElement("span"),this.setNodeStyle_(t,P),this.setUpVisibilityLogging_(t,P),P.appendChild(document.createTextNode(F)),
V.appendChild(P)}}this.getRoot().appendChild(V)};
_.E.isSimpleString_=function(y){return(this.noEndpoints||!y.navigationEndpoint)&&!_.h(y,Wa)&&(this.noStyles||!(y.bold||y.deemphasize||y.italics||y.strikethrough||y.errorUnderline||y.bracket||y.textColor))&&!y.loggingDirectives};
_.E.getRawText=function(){return _.OT(this.text)};
_.E.getFirstRunText=function(){var y;if(((y=this.text)==null?0:y.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.E.setFirstRunText=function(y){var W;((W=this.text)==null?0:W.runs)&&this.text.runs[0]&&(this.text.runs[0].text=y,this.textChanged_(this.text))};
_.E.setDataOnAnchor_=function(y,W){var V=this;!_.e("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(W)||this.isSignalServiceEndpoint_(W)?(y.onclick=this.serviceEndpointHandler_(W),tX(y,"#")):LGt({text:this.text,command:W},function(){Mfa(y,W,V.target)})};
_.E.isServiceEndpoint_=function(y){var W;return!((W=_.h(y==null?void 0:y.commandMetadata,_.dw))==null||!W.sendPost)};
_.E.isSignalServiceEndpoint_=function(y){return!!_.h(y,_.q8)};
_.E.serviceEndpointHandler_=function(y){var W=this;return function(V){_.i5(W.hostElement,[y]);V.preventDefault()}};
_.E.overrideAriaLabelChanged_=function(){var y=this.getRoot();this.enableContentEditable&&y&&y.setAttribute("aria-label",this.overrideAriaLabel)};
_.E.enableContentEditableChanged_=function(){var y=this,W=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),W=_.i6(this.hostElement,W),!W.lastChild||W.lastChild instanceof HTMLElement&&W.lastChild.id!=="contenteditable-root"){var V=document.createElement("div");V.id="contenteditable-root";V.setAttribute("contenteditable","true");V.setAttribute("dir","auto");V.onfocus=function(){y.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
W.appendChild(V);this.overrideAriaLabel&&V.setAttribute("aria-label",this.overrideAriaLabel)}}else V=_.f6(this.hostElement).firstChild,V instanceof HTMLElement&&V.id==="contenteditable-root"&&_.i6(this.hostElement,W).removeChild(V)};
_.E.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.E.getNodesForVisibilityLogging_=function(){return _.fF(this.getRoot().childNodes,function(y){var W;return!((W=y.data)==null||!W.trackingParams)})};
_.E.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.E.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var y=this.ytRendererBehavior.getVisibilityLogger();y&&this.getNodesForVisibilityLogging_().forEach(function(W){y.reportShown(W)})}};
_.E.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var y=this.ytRendererBehavior.getVisibilityLogger();y&&this.getNodesForVisibilityLogging_().forEach(function(W){y.reportHidden(W)})}};
_.CM.Object.defineProperties(Yp.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.e("enable_mixed_direction_formatted_strings")}}});
Yp.prototype.enableContentEditableChanged_=Yp.prototype.enableContentEditableChanged_;Yp.prototype.overrideAriaLabelChanged_=Yp.prototype.overrideAriaLabelChanged_;Yp.prototype.ellipsisTruncateChanged_=Yp.prototype.ellipsisTruncateChanged_;Yp.prototype.textChanged=Yp.prototype.textChanged;_.J([_.m(ZUm.YtPlaintextBehavior),_.R("design:type",Object)],Yp.prototype,"ytPlaintextBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Yp.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yp.prototype,"text",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"noEndpoints",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"noStyles",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Yp.prototype,"isDarkTheme",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Yp.prototype,"splitLines",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Yp.prototype,"forceDefaultStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Yp.prototype,"ellipsisTruncate",void 0);_.J([_.q(),_.R("design:type",Object)],Yp.prototype,"ignoreShadyDom",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.R("design:type",Boolean)],Yp.prototype,"ellipsisTruncateStyling",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.R("design:type",String)],Yp.prototype,"ariaLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Yp.prototype,"isEmpty",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.R("design:type",Boolean)],Yp.prototype,"hasLinkOnly_",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"hasEmoji",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"disableAttributedString",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"isOverlay",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"linkInheritColor",void 0);
_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"noPreWrap",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"userInput",void 0);_.J([_.q({value:16}),_.R("design:type",Number)],Yp.prototype,"emojiSize",void 0);_.J([_.q(),_.R("design:type",String)],Yp.prototype,"target",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"enableContentEditable",void 0);_.J([_.q(),_.R("design:type",String)],Yp.prototype,"overrideAriaLabel",void 0);
_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"respectHtmlDir",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yp.prototype,"respectLangDir",void 0);_.J([_.M("plaintextOnly"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yp.prototype,"useMixedDirectionFormattedStrings",null);_.J([_.q({computed:"computeUseAttributedString(text)"}),_.R("design:type",Boolean)],Yp.prototype,"useYtAttributedString",void 0);
_.J([_.xA("text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yp.prototype,"textChanged",null);_.J([_.xA("ellipsisTruncate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yp.prototype,"ellipsisTruncateChanged_",null);_.J([_.xA("overrideAriaLabel"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yp.prototype,"overrideAriaLabelChanged_",null);
_.J([_.xA("enableContentEditable"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yp.prototype,"enableContentEditableChanged_",null);_.J([_.Zp({is:"yt-formatted-string",disableElementRegistration:!0})],Yp);
_.Y(Yp,"yt-formatted-string",function(){if(W4Q===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;yy2===void 0&&(yy2=document.createElement("template"));var w=yy2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);W4Q=y}y=W4Q;return y});var VG6;var wRi;var tGq;var F4R;var BB=function(){var y=_.u.apply(this,arguments)||this;y.focused=!1;y.disabled=!1;y.isOverlay=!1;return y};
_.p(BB,_.u);BB.prototype.triggerDown=function(){if(!this.disabled){_.TA(this.hostElement,"down",!0);var y;(y=this.currentAnimation)==null||y.cancel()}};
BB.prototype.triggerUp=function(){if(!this.disabled){_.TA(this.hostElement,"down",!1);var y=this.fillElement;var W=this.strokeElement;typeof GroupEffect==="function"?(y=new GroupEffect([GNv(y),rpd(W)]),y=new Animation(y,document.timeline)):y=new YiK(y,W);this.currentAnimation=y;var V;(V=this.currentAnimation)==null||V.play()}};
_.J([_.s$(".stroke"),_.R("design:type",HTMLElement)],BB.prototype,"strokeElement",void 0);_.J([_.s$(".fill"),_.R("design:type",HTMLElement)],BB.prototype,"fillElement",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BB.prototype,"focused",void 0);_.J([_.q(),_.R("design:type",Object)],BB.prototype,"disabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BB.prototype,"isOverlay",void 0);_.J([_.Zp({is:"yt-interaction",disableElementRegistration:!0})],BB);
_.Y(BB,"yt-interaction",function(){if(F4R===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;tGq===void 0&&(tGq=document.createElement("template"));var w=tGq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);F4R=y}y=F4R;return y},{mode:2});var JZ=function(){return _.u.apply(this,arguments)||this};
_.p(JZ,_.u);_.E=JZ.prototype;_.E.ready=function(){var y=this,W=_.i6(this.hostElement).querySelector("#button");W.addEventListener("focus",function(){fUR||(fUR=new it2);y.keyboardFocused=fUR.isKeyBoardInUse()});
W.addEventListener("blur",function(){y.keyboardFocused=!1;y.rippleUp_()})};
_.E.computeTabIndex_=function(y){return y?-1:0};
_.E.computeButtonAriaPressed_=function(y){if(this.toggleable)return y?"true":"false"};
_.E.rippleDown_=function(){_.i6(this.hostElement).querySelector("#interaction").triggerDown()};
_.E.rippleUp_=function(){_.i6(this.hostElement).querySelector("#interaction").triggerUp()};
_.E.onPressedChanged_=function(){var y=_.f6(_.i6(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.f6(_.i6(this.hostElement).querySelector("#button")).children[0];y&&(y.active=this.pressed)};
JZ.prototype.onPressedChanged_=JZ.prototype.onPressedChanged_;JZ.prototype.rippleUp_=JZ.prototype.rippleUp_;JZ.prototype.rippleDown_=JZ.prototype.rippleDown_;_.J([_.q(),_.R("design:type",String)],JZ.prototype,"label",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],JZ.prototype,"disabled",void 0);_.J([_.q(),_.R("design:type",Boolean)],JZ.prototype,"pressed",void 0);_.J([_.q(),_.R("design:type",Object)],JZ.prototype,"toggleable",void 0);
_.J([_.q(),_.R("design:type",Boolean)],JZ.prototype,"untabbable",void 0);_.J([_.q(),_.R("design:type",Boolean)],JZ.prototype,"keyboardFocused",void 0);_.J([_.l6("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JZ.prototype,"rippleDown_",null);_.J([_.l6("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JZ.prototype,"rippleUp_",null);
_.J([_.xA("pressed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JZ.prototype,"onPressedChanged_",null);_.J([_.Zp({is:"yt-icon-button",disableElementRegistration:!0})],JZ);
_.Y(JZ,"yt-icon-button",function(){if(wRi===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;VG6===void 0&&(VG6=document.createElement("template"));var w=VG6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);wRi=y}y=wRi;return y},{mode:2});var Eaq=_.CF(["aria-"]),RY={};RY.YtRenderButtonBehavior=[_.X.YtRendererBehavior,_.AZ.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!!_.hs().resolve(_.eX(_.MC))&&_.e("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 y=this.computeHref_(this.endpoint,!0);y?tX(this.elements_.endpoint,y):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){y=this.buttonClass.split(" ");y=_.N(y);for(var W=y.next();!W.done;W=y.next())W=W.value,_.TA(this.hostElement,W,!0),this.elements_.button&&_.TA(this.elements_.button,W,!0),this.elements_.text&&_.TA(this.elements_.text,W,!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&&(y=null,this.buttonAccessibility&&(y=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=y:y?_.em([_.ij(Eaq)],this.elements_.button,"aria-label",y):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var y=_.hs().resolve(_.eX(_.MC));y&&(this.keyboardFocused=y.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.hZ("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,_.Yy(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Yy(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(y,W){if(W)for(y=W.split(" "),y=_.N(y),W=y.next();!W.done;W=y.next())W=W.value,_.TA(this.hostElement,W,!1),this.elements_.button&&_.TA(this.elements_.button,W,!1),this.elements_.text&&_.TA(this.elements_.text,W,!1)},
buttonIconChanged_:function(y){this.elements_.icon?y?(this.elements_.icon.icon=y,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Yy(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.mg(this.hostElement,"is-paper-button-with-icon",!1)):y&&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"&&_.Yy(this.elements_.button).appendChild(this.elements_.icon):_.Yy(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.mg(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(y){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,y){var W=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(y){case "yt_icon_button_with_label":W=!0;_.TA(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();y=_.Yy(this.elements_.button).firstElementChild;
this.elements_.icon=y;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Yy(this.elements_.endpoint).appendChild(this.elements_.button);_.Yy(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.hZ("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;_.Yy(this.elements_.button).appendChild(this.elements_.text);_.Yy(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":W=!0,this.elements_.button=this.getYtIconButton_(),y=_.Yy(this.elements_.button).firstElementChild,this.elements_.icon=y,this.setIconActive_(this.elements_.icon),
_.Yy(this.elements_.endpoint).appendChild(this.elements_.button)}_.mg(this.hostElement,"is-icon-button",W);_.mg(this.hostElement,"is-paper-button",!W);_.mg(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 V;_.i6((V=this.container.hostElement)!=null?V:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Yy(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(y){if(y!=void 0||this.disabled)this.disabled=y,this.elements_.button&&(this.elements_.button.disabled=y)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(y){_.e("kevlar_system_icons")&&y&&this.data&&(this.data.isSelected!==void 0?y.active=this.data.isSelected:this.data.isToggled!==void 0&&(y.active=this.data.isToggled))},
observeBasicPalette_:function(y){_.bF(this.hostElement,y)},
disabledChanged_:function(y){this.data&&this.set("data.isDisabled",y)},
onYtButtonTap_:function(y){if(this.disabled)y.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.i5(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(y=this.disableCommandHandlerOverride,!this.data||!this.data.command||y||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.e("handle_service_request_actions")||_.i5(this.hostElement,[this.serviceEndpoint]),
_.h1(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.e("handle_service_request_actions")?(y=[],this.serviceEndpoint&&y.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&y.push(this.data.command),y.length&&_.fg(this.hostElement,y,this.hostElement)):this.data&&this.data.command&&(y=this.data.command,y.accountUnlinkCommand||y.accountLinkCommand||y.insertAdCommand||y.insertHighlightMarkerCommand||
y.createLivestreamHighlightClipCommand||y.getVideoUploadFeedbackCommand||y.musicDeletePrivatelyOwnedEntityCommand||y.ypcCancelRecurrenceEndpoint||y.getMultiSelectCommandEndpoint?_.i5(this.hostElement,[y]):_.fg(this.hostElement,[y],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 y,W=_.i6((y=this.container.hostElement)!=null?y:this.container);W.lastChild&&W.lastChild.tagName!="STYLE";)try{W.removeChild(W.lastChild)}catch(V){break}},
getYtIconButton_:function(){var y=this.reuseEnabled_()?_.hZ("yt-icon-button"):document.createElement("yt-icon-button"),W=_.Yy(y).firstElementChild;if(W&&W.is!="yt-icon"){for(W=_.Yy(y);W.lastChild;)W.removeChild(W.lastChild);W=null}W||(W=this.getIcon_(),this.setIconActive_(W),_.Yy(y).appendChild(W));return y},
reuseEnabled_:function(){return _.e("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.hZ("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.hZ("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Nti={};
_.Nti.YtButtonBehavior=[RY.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var y=this.data;y&&(this._setEndpoint(this.computeEndpoint_(y)),this._setServiceEndpoint(this.computeServiceEndpoint_(y)),this._setCommand(this.computeCommand_(y)),this._setButtonIcon(this.computeButtonIcon_(y)),this._setButtonText(this.computeButtonText_(y,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(y)),this._setButtonTooltip(this.computeTooltip_(y)),this._setButtonClass(this.computeButtonClass_(y)),this._setIconPositionType(this.computeIconPositionType_(y)),this.updateRenderedElements())},
setPressedState:function(y){var W;if((W=this.elements_)==null?0:W.button)this.elements_.button.pressed=!!y},
computeIconPositionType_:function(y){return y&&y.iconPosition||null},
computeEndpoint_:function(y){var W=y&&y.navigationEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.url"),w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:y&&y.command&&y.command.modalEndpoint?y.command:V&&!w&&y.command?y.command:null},
computeServiceEndpoint_:function(y){var W=y&&y.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:V&&y.command?y.command:null},
computeCommand_:function(y){return y&&y.command||null},
computeButtonIcon_:function(y){return y&&y.icon&&y.icon.iconType?_.D8(y.icon.iconType):null},
computeButtonText_:function(y,W){return!W&&y&&y.text||null},
computeAccessibility_:function(y){return this.get("accessibilityData.accessibilityData",y)||y&&y.accessibility||(y&&y.text?{label:this.getSimpleString(y.text)}:null)},
computeTooltip_:function(y){return y?y.isDisabled&&y.disabledTooltip||y.tooltip||null:null},
computeButtonClass_:function(y){var W=y&&y.style?y.style.toLowerCase().replace(/_/g,"-")+" ":"";W+=y&&y.size?y.size.toLowerCase().replace(/_/g,"-")+" ":"";y.colorData&&y.colorData.basicColorPaletteData&&y.colorData.basicColorPaletteData.borderColor&&(W+="palette-with-border");return W.trim()}}];var Q4={};var Iw2;var gaJ;var PYQ,CYA=function(){return PYQ!==void 0?PYQ:PYQ=document.createElement("template")};
document.head.appendChild(CYA().content);var Opr;var vaJ,dzA=function(){return vaJ!==void 0?vaJ:vaJ=document.createElement("template")};
document.head.appendChild(dzA().content);var L4z;var zfA,cyz=function(){return zfA!==void 0?zfA:zfA=document.createElement("template")};
document.head.appendChild(cyz().content);var efA;var hfs=document.head,oaq=hfs.appendChild,K4A;if(efA===void 0){var pRq=document.createElement("template");_.T(pRq,"\x3c!--css-build:shady--\x3e");pRq.content.insertBefore(cyz().content.cloneNode(!0),pRq.content.firstChild);efA=pRq}K4A=efA;oaq.call(hfs,K4A.content);var ipm=document.head,fwK=ipm.appendChild,TtA;if(L4z===void 0){var mzR=document.createElement("template");_.T(mzR,"\x3c!--css-build:shady--\x3e");mzR.content.insertBefore(dzA().content.cloneNode(!0),mzR.content.firstChild);L4z=mzR}TtA=L4z;fwK.call(ipm,TtA.content);var MGf=document.head,qGQ=MGf.appendChild,Uz2;if(Opr===void 0){var uPm=document.createElement("template");_.T(uPm,"\x3c!--css-build:shady--\x3e");uPm.content.insertBefore(CYA().content.cloneNode(!0),uPm.content.firstChild);Opr=uPm}Uz2=Opr;qGQ.call(MGf,Uz2.content);var SGI;_.ZQ("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");SGI=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live");_.jt=function(){return _.u.apply(this,arguments)||this};
_.p(_.jt,_.u);_.jt.prototype.created=function(){this.openPopupConfig=_.yC("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.jt.prototype.onYtNavigate_=function(y){var W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(this.ytOpenPopupBehavior.openPopup(W),y.stopPropagation(),y.preventDefault())};
_.CM.Object.defineProperties(_.jt,{template:{configurable:!0,enumerable:!0,get:function(){if(gaJ===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;Iw2===void 0&&(Iw2=document.createElement("template"));var w=Iw2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);gaJ=y}y=gaJ;return y}}});
_.jt.prototype.onYtNavigate_=_.jt.prototype.onYtNavigate_;_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],_.jt.prototype,"ytOpenPopupBehavior",void 0);_.J([_.m(_.Nti.YtButtonBehavior),_.R("design:type",Object)],_.jt.prototype,"ytButtonBehavior",void 0);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],_.jt.prototype,"onYtNavigate_",null);
_.J([_.Zp({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:SGI})],_.jt);var DzI;var lwz=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live"),$p=function(){var y=_.u.apply(this,arguments)||this;y.isPressed=!1;y.forceIconButton=!1;y.forceIconOnly=!1;y.forceModernIconButton=!1;y.skipCommandHandling=!1;y.alignByText=!1;y.fitToVisibleBounds=!0;y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};y.onTap=function(W){_.h1(y.hostElement,"yt-service-request-sent-button-renderer",W)};
return y};
_.p($p,_.u);_.E=$p.prototype;_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.E.onClick=function(y){var W,V=this.disabled||((W=this.data)==null?void 0:W.isDisabled);W=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");V&&W&&y.stopPropagation()};
_.E.computeIcon=function(){var y,W,V=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(V)return _.D8(V)};
_.E.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.E.handleUpdateButtonAction=function(y){y=_.h(y,y06);var W=_.h(y==null?void 0:y.updatedButton,_.wz);if(this.data&&y&&W){var V=this.data;V.targetId&&y.targetId&&V.targetId===y.targetId&&(this.data=W)}};
_.CM.Object.defineProperties($p.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var y=this;if(this.data){var W=bYu({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.h1(y.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.h1(y.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});W.alignByText=this.alignByText;return W}}}});
_.CM.Object.defineProperties($p,{template:{configurable:!0,enumerable:!0,get:function(){if(DzI===void 0){var y=document.createElement("template");_.T(y,'\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>');DzI=y}y=DzI;return y}}});
$p.prototype.onClick=$p.prototype.onClick;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],$p.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],$p.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"isPressed",void 0);
_.J([_.q(),_.R("design:type",Object)],$p.prototype,"forceIconButton",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"forceIconOnly",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"forceModernIconButton",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"skipCommandHandling",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"alignByText",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"buttonTooltipPosition",void 0);
_.J([_.q(),_.R("design:type",Object)],$p.prototype,"fitToVisibleBounds",void 0);_.J([_.q({computed:"computeTooltip(data)"}),_.R("design:type",Object)],$p.prototype,"tooltip",void 0);_.J([_.q(),_.R("design:type",Object)],$p.prototype,"overrides",void 0);_.J([_.q(),_.R("design:type",Boolean)],$p.prototype,"disabled",void 0);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],$p.prototype,"onClick",null);
_.J([_.M("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.R("design:type",Object),_.R("design:paramtypes",[])],$p.prototype,"computedButtonShape",null);_.J([_.Zp({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!lwz,cssBuildOptOut:!0}),_.Zp({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!lwz,cssBuildOptOut:!0})],$p);var xzm;var kvi;var nh=function(){var y=_.u.apply(this,arguments)||this;y.empty_=!0;y.loadTime=Infinity;y.pendingPaint=!1;y.hasChange_=!1;y.oldThumbnail_=null;y.oldDelayedSrc_="";y.objectURL_=null;return y};
_.p(nh,_.u);_.E=nh.prototype;_.E.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.E.ready=function(){var y=this.shouldShowPlaceholder_();_.TA(this.hostElement,"no-transition",!0);y&&this.hostElement.classList.add("with-placeholder")};
_.E.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.E.isThumbPreloaded_=function(y){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",y)};
_.E.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||s3q};
_.E.computeThumbnailSrc_=function(y){return y&&y.thumbnails?_.f5(y.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.E.computeAlt_=function(){var y=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&y||""};
_.E.thumbnailChanged_=function(){var y=_.N([this.thumbnail,this.oldThumbnail_]),W=y.next().value;y=y.next().value;this.oldThumbnail_=W;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(y=this.computeThumbnailSrc_(y),this.computeThumbnailSrc_(W)===y))return;_.e("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(W)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):W&&_.W4("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.gy(this,this.onReload_):_.gy(this,this.onShow_):this.resetImage_();W&&(this.hostElement.style.opacity=""+W.opacity)}};
_.E.delayedSrcChanged_=function(){var y=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===y||this.resetImage_()};
_.E.setSrc_=function(y){y?(_.i6(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.i6(this.hostElement).querySelector("#img").src=y):(_.i6(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.E.resetImage_=function(){ryR(this.hostElement);this.empty_=!0;this.setSrc_(s3q);this.ytRendererBehavior.invalidate(!1)};
_.E.observePlaceholderColor_=function(){var y=this.thumbnail&&this.thumbnail.placeholderColor;y?this.hostElement.style.backgroundColor=_.V2(y):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.E.onLoad_=function(){_.i6(this.hostElement).querySelector("#img").src&&_.i6(this.hostElement).querySelector("#img").src!==s3q&&(Gv4(this.hostElement),this.notifyOnLoaded&&_.h1(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.E.onError_=function(){var y=this;if(_.e("web_use_cache_for_image_fallback"))wxy(_.i6(this.hostElement).querySelector("#img").src).then(function(W){y.objectURL_=_.W7(W).toString();y.setSrc_(y.objectURL_)}).catch(function(){_.e("kevlar_woffle_fallback_image")&&y.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.E.onPrescanVisible=function(){this.onShow_()};
_.E.onVisible=function(){if(_.e("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.E.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var y=this.computeSrc_();y!==_.i6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(y))}};
_.E.onReload_=function(){this.empty_=!1;var y=this.computeSrc_();y!==_.i6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(y))};
_.E.shouldShowPlaceholder_=function(){return _.e("kevlar_thumbnail_bg")};
nh.prototype.observePlaceholderColor_=nh.prototype.observePlaceholderColor_;nh.prototype.delayedSrcChanged_=nh.prototype.delayedSrcChanged_;nh.prototype.thumbnailChanged_=nh.prototype.thumbnailChanged_;_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"alt",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nh.prototype,"ariaHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"ariaLabel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"id",void 0);_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],nh.prototype,"ytVisibilityBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",String)],nh.prototype,"delayedSrc",void 0);
_.J([_.q(),_.R("design:type",Object)],nh.prototype,"thumbnail",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"loaded",void 0);_.J([_.q(),_.R("design:type",Boolean)],nh.prototype,"notifyOnLoaded",void 0);_.J([_.q(),_.R("design:type",Number)],nh.prototype,"height",void 0);_.J([_.q(),_.R("design:type",Number)],nh.prototype,"width",void 0);_.J([_.q({value:function(){return"width"}}),
_.R("design:type",String)],nh.prototype,"dimension",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"fit",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"fitHeight",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"fitWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"objectFit",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"objectPosition",void 0);_.J([_.q(),_.R("design:type",String)],nh.prototype,"preferredThumbnail",void 0);_.J([_.q({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.R("design:type",String)],nh.prototype,"alt_",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],nh.prototype,"sharedTooltipText",void 0);
_.J([_.q(),_.R("design:type",Boolean)],nh.prototype,"ftlEligible",void 0);_.J([_.q({value:void 0}),_.R("design:type",String)],nh.prototype,"observeHiddenOption",void 0);_.J([_.q({value:"observe_once"}),_.R("design:type",String)],nh.prototype,"observePrescanOption",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"roundedContainer",void 0);
_.J([_.Jc("thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nh.prototype,"thumbnailChanged_",null);_.J([_.Jc("delayedSrc"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nh.prototype,"delayedSrcChanged_",null);_.J([_.xA("thumbnail.placeholderColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nh.prototype,"observePlaceholderColor_",null);
_.J([_.Zp({is:"yt-img-shadow",disableElementRegistration:!0})],nh);var s3q=_.W4("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.MM()(nh,"yt-img-shadow",function(){if(kvi===void 0){var y=document.createElement("template");_.T(y,'\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">');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;xzm===void 0&&(xzm=document.createElement("template"));var w=xzm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kvi=y}y=kvi;return y},{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 bEt;_.HB=new _.e9("SCREEN_MANAGER_TOKEN");bEt=new _.e9("LOG_INITIAL_SCREEN_TOKEN");_.XV=_.eY(function(y){function W(Fv){return _.h(Fv,_.H5)}
function V(){var Fv=w().isTogglingDisabled||U()&&w().toggledIsTogglingDisabled,Py=Fv||c()?U():!U();l(Py);B(!1);if(!Fv){var du;(du=I)==null||du(!!Py)}var mL;((mL=F)==null?0:mL())||_.DN(_.hs().resolve(_.HB),w().trackingParams);var un;if(!Py||!W(w().defaultButtonViewModel)||(un=F)!=null&&un()){var hv;!W(w().toggledButtonViewModel)||((hv=F)==null?0:hv())||_.DN(_.hs().resolve(_.HB),W(w().toggledButtonViewModel).trackingParams)}else _.DN(_.hs().resolve(_.HB),W(w().defaultButtonViewModel).trackingParams)}
var w=y.data,t=y.buttonShapeOverrides,F=y.disableExplicitClickLogging,I=y.onToggle,P=y.style,C=y.useOutlinedIcon,d=y.className,L=function(){var Fv,Py;return U()?(Fv=y.animatedTextPropsToggled)==null?void 0:Fv.call(y):(Py=y.animatedTextPropsDefault)==null?void 0:Py.call(y)},z=_.DZ(function(){return L()?Object.assign({},L(),{shouldAnimate:x()}):void 0},void 0,"ZKEa0b"),c=function(){var Fv;
return((Fv=a())==null?void 0:Fv.isToggled)!==void 0},K=_.N(_.Jl(function(){var Fv,Py,du;
return c()?(Fv=a())==null?void 0:Fv.isToggled:(du=t==null?void 0:(Py=t())==null?void 0:Py.toggled)!=null?du:w().isToggled})),f=K.next().value;
K=K.next().value;var U=f,l=K;K=_.N(_.Jl(function(){var Fv,Py;return(Fv=y.animatedTextPropsToggled)==null?void 0:(Py=Fv.call(y))==null?void 0:Py.shouldAnimate}));
f=K.next().value;K=K.next().value;var x=f,B=K;f=_.N(_.M1(!1,void 0,"S11hid"));var r=f.next().value,H=f.next().value,a=_.tn(function(Fv){var Py;a:{var du=w().entityKey,mL=w().toggledStateEntitySelectorType;if(mL)switch(mL){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!du)break;var un;Fv=(un=_.UB(Fv.entities,"sfvAudioItemCurrentlyPlayingEntity",du))!=null?un:void 0;un=(Py=Fv==null?void 0:Fv.sfvAudioItemPlaybackState)!=null?Py:void 0;if(un==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Py=
{isToggled:!0};break a}if(un){Py={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":Py={isToggled:_.ZYR(Fv).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":Py={isToggled:_.ZYR(Fv).includes("engagement-panel-live-chat-item-section")};break a;default:_.rQ(new _.Js("Error: entitySelectorType defined but not matched in selector.",Fv,mL))}Py=void 0}return Py}),b=function(){return Object.assign({},t==null?
void 0:t(),{onToggle:V,
toggleable:!0,toggled:U(),focused:r()})};
return _.O("toggle-button-view-model",{"on:focusin":_.YS(function(){var Fv=_.hs().resolve(_.eX(_.MC));Fv&&H(Fv.isKeyBoardInUse());return!1}),
"on:focusout":_.YS(function(){H(!1);return!1})},_.O(_.v,{cond:function(){return U()?W(w().toggledButtonViewModel):W(w().defaultButtonViewModel)},
then:function(Fv){return _.O(_.lk,{data:Fv,className:d,style:P,useOutlinedIcon:C,buttonOverrides:b,animatedTextProps:z})}}))},"B");
_.XV.idomCompat={callbacks:{onToggle:!0}};_.iF(_.eY(function(y){return _.O("yt-toggle-button-view-model",{class:function(){var W;return(W=y.scopingClassName)==null?void 0:W.call(y)}},_.O(_.XV,{data:function(){var W;
return(W=y.data)==null?void 0:W.call(y)},
buttonShapeOverrides:function(){var W;return(W=y.overrides)==null?void 0:W.call(y)},
animatedTextPropsDefault:function(){var W;return(W=y.animatedTextPropsDefault)==null?void 0:W.call(y)},
animatedTextPropsToggled:function(){var W;return(W=y.animatedTextPropsToggled)==null?void 0:W.call(y)},
disableExplicitClickLogging:function(){var W;return(W=y.disableExplicitClickLogging)==null?void 0:W.call(y)},
onToggle:function(W){var V;return(V=y.onToggle)==null?void 0:V.call(y,W)},
style:function(){var W;return(W=y.style)==null?void 0:W.call(y)},
useOutlinedIcon:function(){var W;return(W=y.useOutlinedIcon)==null?void 0:W.call(y)},
className:function(){var W;return(W=y.className)==null?void 0:W.call(y)}}))},"C"),"yt-toggle-button-view-model",{props:{data:_.vB,
buttonShapeOverrides:_.vB,overrides:_.vB,animatedTextPropsDefault:_.vB,animatedTextPropsToggled:_.vB,disableExplicitClickLogging:_.vB,onToggle:_.p5,style:_.vB,useOutlinedIcon:_.vB,className:_.vB,scopingClassName:_.vB}});var aY=function(){return _.u.apply(this,arguments)||this};
_.p(aY,_.u);aY.prototype.onTap=function(y){y.stopPropagation();y=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Z6("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:y})):this.ytLiveChatReduxBehavior.dispatch(_.B5("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:y}))};
_.CM.Object.defineProperties(aY.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.engagementState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=_.h(this.data.toggleButton,_.aJ),W;if(Number(((W=this.likeCountState)==null?void 0:W.likeCountIfIndifferentNumber)||"0")===0){var V;W=((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}else{var w,t,F;W=((w=this.likeCountState)==null?void 0:(t=w.likeCountIfIndifferent)==null?void 0:t.content)||((F=this.data.likeCountPlaceholder)==null?void 0:F.content)||""}var I,P;V=((I=this.likeCountState)==null?void 0:(P=
I.likeCountIfLiked)==null?void 0:P.content)||"1";I=_.h(y.toggledButtonViewModel,_.H5);return Object.assign({},y,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.h(y.defaultButtonViewModel,_.H5),{title:W})},toggledButtonViewModel:{buttonViewModel:Object.assign({},I,{title:V})}})}}}});
aY.prototype.onTap=aY.prototype.onTap;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],aY.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aY.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.likeCountEntityKey"],selector:yFy}),_.R("design:type",Object)],aY.prototype,"likeCountState",void 0);_.J([_.q({selectorArgs:["data.engagementStateKey"],selector:m7R}),_.R("design:type",Object)],aY.prototype,"engagementState",void 0);_.J([_.M("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aY.prototype,"isLiked",null);
_.J([_.M("data","likeCountState","isLiked"),_.R("design:type",Object),_.R("design:paramtypes",[])],aY.prototype,"toggleButton",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],aY.prototype,"onTap",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],aY);
_.Y(aY,"yt-live-chat-like-button-view-model",function(){if(QNs===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;bUQ===void 0&&(bUQ=document.createElement("template"));var w=bUQ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);QNs=y}y=QNs;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Ayz;var YGJ;var G5=function(){return _.u.apply(this,arguments)||this};
_.p(G5,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],G5.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],G5);
_.Y(G5,"yt-live-chat-paid-message-footer-renderer",function(){if(YGJ===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Ayz===void 0&&(Ayz=document.createElement("template"));var w=Ayz;V.call(W,w.content.cloneNode(!0),y.content.firstChild);YGJ=y}y=YGJ;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Btr;var Jyr;var Rfs;var j3m,$zJ=function(){if(j3m!==void 0)return j3m;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Rfs===void 0&&(Rfs=document.createElement("template"));var w=Rfs;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return j3m=y};var r0=function(){return _.u.apply(this,arguments)||this};
_.p(r0,_.u);r0.prototype.onTap=function(y){y.stopPropagation()};
_.CM.Object.defineProperties(r0.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=_.h(this.data.replyButton,_.H5),W,V,w,t,F,I,P,C=Number(((W=this.replyCountState)==null?void 0:W.replyCountNumber)||"0")===0?(V=this.data)==null?void 0:(w=V.replyCountPlaceholder)==null?void 0:w.content:((t=this.replyCountState)==null?void 0:(F=t.replyCount)==null?void 0:F.content)||((I=this.data)==null?void 0:(P=I.replyCountPlaceholder)==null?void 0:P.content)||"",d;return Object.assign({},
y,{title:C,accessibilityText:(d=this.replyCountState)==null?void 0:d.replyButtonAccessibilityText})}}}});
_.CM.Object.defineProperties(r0,{template:{configurable:!0,enumerable:!0,get:function(){return $zJ()}}});
r0.prototype.onTap=r0.prototype.onTap;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],r0.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],r0.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.replyCountEntityKey"],selector:function(y,W){return _.UB(y.entities,"replyCountEntity",W)}}),
_.R("design:type",Object)],r0.prototype,"replyCountState",void 0);_.J([_.M("data","replyCountState"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"buttonViewModel",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],r0.prototype,"onTap",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],r0);
_.Y(r0,"yt-live-chat-reply-button-view-model",function(){return $zJ()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var naK;var HpA;var bk=function(){var y=_.u.apply(this,arguments)||this;y.ariaLabel="";return y};
_.p(bk,_.u);
bk.prototype.dataChanged=function(){for(var y=(0,_.Mg)(_.i6(this.hostElement).querySelector("#image"));y.firstChild;)y.removeChild(y.firstChild);if(this.data)if(this.data.icon){var W=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(W.polymerController.icon="yt-sys-icons:shield-filled",W.polymerController.defaultToFilled=!0):W.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();y.appendChild(W)}else if(this.data.customThumbnail){W=document.createElement("img");
var V=_.RfR(this.data.customThumbnail.thumbnails,16);V?(W.src=V,y.appendChild(W),W.setAttribute("alt",this.hostElement.ariaLabel||"")):_.rQ(new _.Js("Could not compute URL for thumbnail",this.data.customThumbnail))}};
bk.prototype.identity=function(y){return y};
bk.prototype.computeType=function(y){return Ur(y||void 0)};
bk.prototype.dataChanged=bk.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],bk.prototype,"data",void 0);_.J([_.q({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.R("design:type",Object)],bk.prototype,"ariaLabel",void 0);_.J([_.q({computed:"computeType(data)",reflectToAttribute:!0}),_.R("design:type",String)],bk.prototype,"type",void 0);
_.J([_.q({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.R("design:type",String)],bk.prototype,"sharedTooltipText",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("live_chat_enable_new_moderator_badge")}}),
_.R("design:type",Boolean)],bk.prototype,"enableNewModeratorBadge",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bk.prototype,"dataChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],bk);
_.Y(bk,"yt-live-chat-author-badge-renderer",function(){if(HpA===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;naK===void 0&&(naK=document.createElement("template"));var w=naK;V.call(W,w.content.cloneNode(!0),y.content.firstChild);HpA=y}y=HpA;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var XRf;var awf;var Qk=function(){return _.u.apply(this,arguments)||this};
_.p(Qk,_.u);_.E=Qk.prototype;_.E.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"}}}}};
_.E.computeBadgesInsideChip=function(y){return y?y.filter(function(W){return Ur(W.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.E.computeBadgesOutsideChip=function(y){return this.prependChatBadges||!y?[]:y.filter(function(W){W=Ur(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"})};
_.E.computeBadgesBeforeChip=function(y){return this.prependChatBadges&&y?y.filter(function(W){W=Ur(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"}):[]};
_.E.computeIsHighlighted=function(y,W){var V=!!VoL(y,"owner"),w=!!VoL(y,"verified");y=!!VoL(y,"moderator");return(V||w&&!y)&&!W};
_.E.computeAuthorType=function(y){return W74(y)};
_.E.computeAuthorClass=function(y,W){return W?(y?y+" ":"")+"single-line":y};
_.E.onSeedColorChanged=function(){_.e("live_chat_author_name_color_usernames")||_.e("live_chat_seed_color_usernames")||_.e("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):_.e("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Qk.prototype.onSeedColorChanged=Qk.prototype.onSeedColorChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qk.prototype,"authorName",void 0);_.J([_.q(),_.R("design:type",Array)],Qk.prototype,"authorBadges",void 0);
_.J([_.q({computed:"computeAuthorType(authorBadges)"}),_.R("design:type",String)],Qk.prototype,"authorType",void 0);_.J([_.q({computed:"computeAuthorClass(authorType, singleLine)"}),_.R("design:type",String)],Qk.prototype,"authorClass",void 0);_.J([_.q({computed:"computeBadgesInsideChip(authorBadges)"}),_.R("design:type",Array)],Qk.prototype,"badgesInsideChip",void 0);_.J([_.q({computed:"computeBadgesOutsideChip(authorBadges)"}),_.R("design:type",Array)],Qk.prototype,"badgesOutsideChip",void 0);
_.J([_.q({computed:"computeBadgesBeforeChip(authorBadges)"}),_.R("design:type",Array)],Qk.prototype,"badgesBeforeChip",void 0);_.J([_.q({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Qk.prototype,"isHighlighted",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Qk.prototype,"singleLine",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Qk.prototype,"disableHighlighting",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Qk.prototype,"dashboardMoneyFeed",void 0);_.J([_.q({value:_.e("live_chat_prepend_badges"),reflectToAttribute:!0}),_.R("design:type",Boolean)],Qk.prototype,"prependChatBadges",void 0);_.J([_.q(),_.R("design:type",String)],Qk.prototype,"authorNameColor",void 0);_.J([_.s$("#author-name"),_.R("design:type",HTMLDivElement)],Qk.prototype,"username",void 0);
_.J([_.xA("authorNameColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qk.prototype,"onSeedColorChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Qk);
_.Y(Qk,"yt-live-chat-author-chip",function(){if(awf===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;XRf===void 0&&(XRf=document.createElement("template"));var w=XRf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);awf=y}y=awf;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var GvQ;var rys;var Z0=function(){var y=_.u.apply(this,arguments)||this;y.debounceCommand=_.B8(function(W){y.ytComponentBehavior.resolveCommand(W)},1500);
return y};
_.p(Z0,_.u);Z0.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var y=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",W,V,w=this.isHearted?(W=this.data)==null?void 0:W.unheartCommand:(V=this.data)==null?void 0:V.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Z6("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:y}));(y=_.tl(w))&&this.debounceCommand(y)}};
_.CM.Object.defineProperties(Z0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.creatorThumbnail)==null?0:W.sources))return{};y={thumbnails:[]};W={};W.url=this.data.creatorThumbnail.sources[0].url;y.thumbnails.push(W);return y}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((V=this.engagementState)==null?void 0:V.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}}});
Z0.prototype.onTap=Z0.prototype.onTap;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Z0.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],Z0.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Z0.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.engagementStateKey"],selector:m7R}),_.R("design:type",Object)],Z0.prototype,"engagementState",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Z0.prototype,"thumbnailDetails",null);_.J([_.M("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Z0.prototype,"isHearted",null);_.J([_.M("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Z0.prototype,"isEditable",null);
_.J([_.M("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Z0.prototype,"showCreatorView",null);_.J([_.M("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Z0.prototype,"showButton",null);_.J([_.M("data","isHearted"),_.R("design:type",String),_.R("design:paramtypes",[])],Z0.prototype,"label",null);_.J([_.M("data","isHearted"),_.R("design:type",Object),_.R("design:paramtypes",[])],Z0.prototype,"heartHoverText",null);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Z0.prototype,"onTap",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Z0);
_.Y(Z0,"yt-live-chat-creator-heart-view-model",function(){if(rys===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;GvQ===void 0&&(GvQ=document.createElement("template"));var w=GvQ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);rys=y}y=rys;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var yf=function(){};
_.p(yf,UA);yf.prototype.JSC$12975_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:En("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
yf.prototype.getApiPaths=function(){return[]};
yf.prototype.getExtension=function(){};
yf.prototype.JSC$12975_buildRequest=function(){};var bpi={},Q3I=(bpi.GET_DATASYNC_IDS=Rc(yf),bpi);var Zpq,ypR,W2E,Xvi,WK,tez,Ztz,wxz,VeE;Zpq="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");ypR=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.P5=function(y,W,V,w,t,F,I,P,C){this.endpointMap=y;this.networkManager=W;this.authService=V;this.responseProcessorMap=w;this.innertubeResponseStore=t;this.contextProcessors=F;this.asyncContextProcessors=I;this.localInnertubeRouter=P;this.requestSequencer=C;this.inflightRequests=new Map;y.signalEndpointMap||(y.signalEndpointMap={});y.signalEndpointMap=Object.assign({},Q3I,y.signalEndpointMap)};
W2E=function(y,W,V,w,t,F,I,P,C){if(_.P5.instance!==void 0){if(w=_.P5.instance,y=[y!==w.endpointMap,W!==w.networkManager,V!==w.authService,t!==w.innertubeResponseStore,F!==w.contextProcessors,I!==w.asyncContextProcessors,P!==w.localInnertubeRouter],y.some(function(d){return d}))throw new _.Js("InnerTubeTransportService is already initialized",y);
}else _.P5.instance=new _.P5(y,W,V,w,t,F,I,P,C)};
_.OP=function(y,W,V){var w=w===void 0?ViR:w;var t=Ztz(y,W);return t?new _.qN(function(F,I){var P,C,d,L,z;return _.g(function(c){switch(c.nextAddress){case 1:return c.yield(t,2);case 2:P=c.yieldResult;C=P.JSC$12975_getRequest(W,V,w);if(!C){I(new _.Js("Error: Failed to build request for command.",W));c.jumpTo(0);break}E$(C.input);L=((d=C.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(y.authService.syncHeaders){z=VeE(C.config,L);c.jumpTo(4);break}return c.yield(wxz(C.config,L),5);case 5:z=
c.yieldResult;case 4:F(tez(y,C,z)),_.B7(c)}})}):_.Gb(new _.Js("Error: No request builder found for command.",W))};
Xvi=function(y,W,V,w){var t=t===void 0?ViR:t;var F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b;return _.g(function(Fv){switch(Fv.nextAddress){case 1:F=wHR(W,y.endpointMap);if(!F)throw new _.Js("Error: No streaming request builder found for command",W);I=F.JSC$12975_getRequest(W,V,t);if(!I)throw new _.Js("Failed to build YtRequest for streaming Command",W);if((P=y.localInnertubeRouter)==null||!P.shouldPreferLocalResponse(I.input,I.innerTubeRequest)){Fv.jumpTo(2);break}return Fv.yield(y.localInnertubeRouter.localInnertubeResponse(I.input,
I.innerTubeRequest),3);case 3:return C=Fv.yieldResult,d={},C.playerResponse&&(WK(y,C.playerResponse,I),d.player=C.playerResponse,(L=w)==null||L(d,C)),C.watchNextResponse&&(WK(y,C.watchNextResponse,I),d.content=C.watchNextResponse,(z=w)==null||z(d,C)),Fv.return(d);case 2:K=((c=I.requestShell)==null?void 0:c.mode)==="cors"?"cors":void 0;if(y.authService.syncHeaders){f=VeE(I.config,K);Fv.jumpTo(4);break}return Fv.yield(wxz(I.config,K),5);case 5:f=Fv.yieldResult;case 4:return x=(l=(U=I.requestShell)==
null?void 0:U.headers)!=null?l:{},I.requestShell=Object.assign({},I.requestShell,{headers:Object.assign({},x,f)}),B=Object.assign({},I.requestShell),r=JSON.stringify(I.innerTubeRequest),I.requestShell.method==="POST"&&(B=Object.assign({},B,{body:r})),H=function(Py,du){WK(y,du.playerResponse||du.watchNextResponse||du.reelItemWatchResponse||du.reelWatchSequenceResponse,I);w==null||w(Py,du)},a={},Fv.yield(F2z(y.networkManager,I.input,B,H),6);
case 6:return a=Fv.yieldResult,((b=I.config)==null?0:b.responseTick)&&_.aw(I.config.responseTick),Fv.return(a)}})};
_.Vo=function(y,W,V,w,t){t=t===void 0?{authStrategy:{identity:ViR}}:t;var F=F===void 0?!0:F;var I=function(){};
I=Q4u(rqy(V));W.context||(W.context=_.IOz(w,F));return new _.qN(function(P){var C,d,L,z,c;return _.g(function(K){if(K.nextAddress==1)return C=kfz(V),d=_.F$(C),y.authService.syncHeaders?(L=VeE(t,d),K.jumpTo(2)):K.yield(wxz(t,d),3);K.nextAddress!=2&&(L=K.yieldResult);z=sgz(kfz(V));c={input:z,requestShell:En(z),innerTubeRequest:W,config:t};P(tez(y,c,L,I));_.B7(K)})})};
WK=function(y,W,V){var w;if(W&&!(W==null?0:(w=W.sequenceMetaData)==null?0:w.skipProcessing)&&y.responseProcessorMap){w=_.N(Zpq);for(var t=w.next();!t.done;t=w.next())t=t.value,y.responseProcessorMap[t]&&y.responseProcessorMap[t].handleResponse(W,V)}};
tez=function(y,W,V,w){w=w===void 0?function(){}:w;
var t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py,du,mL,un,hv,$P,sz,Wz,mf,OE,Qj,Kq,zR,l2,lt,yu,Na,F6,TR,eP;return _.g(function(hA){switch(hA.nextAddress){case 1:I=(t=W.config)==null?void 0:(F=t.storeStrategy)==null?void 0:F.storeKey;if(!(I&&y.innertubeResponseStore&&y.innertubeResponseStore.has(I))||((P=W.config)==null?0:(C=P.storeStrategy)==null?0:C.disableCache)){hA.jumpTo(2);break}return hA.yield(y.innertubeResponseStore.get(I),3);case 3:if((d=hA.yieldResult)&&!d.isExpired())return hA.return(Promise.resolve(_.KV(d)));
case 2:if(!((L=W)==null?0:(z=L.innerTubeRequest)==null?0:z.context)){hA.jumpTo(4);break}c=W.innerTubeRequest.context;if(!(y.asyncContextProcessors&&y.asyncContextProcessors.length>0)){hA.jumpTo(5);break}K=[];f=_.N(y.asyncContextProcessors);for(U=f.next();!U.done;U=f.next())l=U.value,x=l.processContext(W),x.wrappedPromise_&&K.push(x.wrappedPromise_);if(!(K.length>0)){hA.jumpTo(5);break}return hA.yield(Promise.all(K),5);case 5:B=_.N(y.contextProcessors||[]),r=B.next();case 8:if(r.done){hA.jumpTo(4);
break}H=r.value;return hA.yield(H.processContext(c),9);case 9:r=B.next();hA.jumpTo(8);break;case 4:if((a=y.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){hA.jumpTo(12);break}return hA.yield(y.localInnertubeRouter.localInnertubeResponse(W.input,W.innerTubeRequest),13);case 13:return b=hA.yieldResult,WK(y,b,W),hA.return(b);case 12:return(du=(Py=W.config)==null?void 0:Py.requestKey)&&y.inflightRequests.has(du)?Fv=y.inflightRequests.get(du):(mL=JSON.stringify(W.innerTubeRequest),
$P=(hv=(un=W.requestShell)==null?void 0:un.headers)!=null?hv:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},$P,V)}),sz=Object.assign({},W.requestShell),W.requestShell.method==="POST"&&(sz=Object.assign({},sz,{body:mL})),((Wz=W.config)==null?0:Wz.requestTick)&&_.aw(W.config.requestTick),mf=function(){return y.networkManager.fetch(W.input,sz,W.config)},Fv=y.requestSequencer?EQi(y.requestSequencer,W,mf):mf(),du&&y.inflightRequests.set(du,Fv)),hA.yield(Fv,14);
case 14:(OE=hA.yieldResult)&&_.e("web_streaming_player")&&Array.isArray(OE)&&(OE=OE[0].playerResponse);if(OE&&"error"in OE&&((Qj=OE)==null?0:(Kq=Qj.error)==null?0:Kq.details))for(zR=OE.error.details,l2=_.N(zR),lt=l2.next();!lt.done;lt=l2.next())yu=lt.value,(Na=yu["@type"])&&ypR.indexOf(Na)>-1&&(delete yu["@type"],OE=yu);du&&y.inflightRequests.has(du)&&y.inflightRequests.delete(du);((F6=W.config)==null?0:F6.responseTick)&&_.aw(W.config.responseTick);if(OE||(TR=y.localInnertubeRouter)==null||!TR.canProvideFallbackResponse(W.input,
W.innerTubeRequest)){hA.jumpTo(15);break}return hA.yield(y.localInnertubeRouter.localFallbackInnertubeResponse(W.input,W.innerTubeRequest),16);case 16:OE=hA.yieldResult;case 15:return WK(y,OE,W),((eP=W.config)==null?0:eP.processorTick)&&_.aw(W.config.processorTick),w(),hA.return(OE||void 0)}})};
_.Cn=function(y,W){return VCP(W,y.endpointMap)};
Ztz=function(y,W){y=tCv(W,y.endpointMap);if(y!==void 0)return Promise.resolve(y)};
wxz=function(y,W){var V,w,t,F;return _.g(function(I){if(I.nextAddress==1){t=(V=y)==null?void 0:(w=V.authStrategy)==null?void 0:w.sessionIndex;var P=I.yield;var C=_.T2(IPP({sessionIndex:t}));return P.call(I,C,2)}F=I.yieldResult;return I.return(Promise.resolve(Object.assign({},FYR(W),F)))})};
VeE=function(y,W){var V;y=y==null?void 0:(V=y.authStrategy)==null?void 0:V.sessionIndex;V=IPP({sessionIndex:y});return Object.assign({},FYR(W),V)};var NHs,IVE,gQE,PrA,CrR,OWq,L2i,zOE,tC,cpq,eOm,dLA,hOq;NHs=0;IVE=/tone[1-5]/;gQE=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");PrA="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
CrR=Number.MAX_SAFE_INTEGER;OWq=RegExp("\ufe0f","g");_.Vf=function(y){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;y&&_.vQs(this,y)};
_.vQs=function(y,W){try{_.uC(W,{context:y,onSuccess:function(w,t){Array.isArray(t)?y.load(t):(w=new _.Js("Emoji manager JSON response was not an array!",{response:t}),_.ap(w))},
onError:function(w){w=new _.Js("Failed to retrieve emoji manager initial JSON data!",{url:W,statusCode:_.TJ(w).toString()});_.rQ(w)}})}catch(w){var V=new _.Js("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:W});
_.rQ(V)}};
_.Vf.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Vf.prototype.load=function(y,W){if(W)if(y.length)y=y.concat(W.emojis);else{this.emojis=W.emojis;this.emojiMap=W.emojiMap;this.emojiShortcutMap=W.emojiShortcutMap;this.emojiShortcutCharMap=dLA(W);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=W.emojiRegex;return}this.emojis=[].concat(_.GC(new Set(this.emojis.concat(y))));this.hasInitializedShortcutCharMap=!1;y=Array(this.emojis.length);for(W=0;W<this.emojis.length;W++){var V=this.emojis[W];if(V.emojiId){this.emojiMap[V.emojiId]=V;this.emojiMap[V.emojiId].index=
W;for(var w=0;V.shortcuts&&w<V.shortcuts.length;w++)this.emojiShortcutMap[V.shortcuts[w].toLocaleLowerCase()]=V;y[W]=V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId}}y.sort(function(t,F){return F.length-t.length});
if(y.length)try{this.emojiRegex=new RegExp(y.join("|").replace("*","\\*"),"gi")}catch(t){this.emojiRegex=/$./}else this.emojiRegex=/$./};
L2i=function(y,W){W=_.N(W);for(var V=W.next();!V.done;V=W.next()){var w=V.value;if(w.emojiId&&y.emojiMap[w.emojiId]){V=Object.assign({},y.emojiMap[w.emojiId],w);y.emojiMap[w.emojiId]=V;var t=void 0;V.index&&((t=y.emojis[V.index])==null?void 0:t.emojiId)===w.emojiId&&(y.emojis[V.index]=V);w=void 0;if((w=V.shortcuts)==null?0:w.length)for(y.hasInitializedShortcutCharMap=!1,w=_.N(V.shortcuts),t=w.next();!t.done;t=w.next())y.emojiShortcutMap[t.value.toLocaleLowerCase()]=V}}};
zOE=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(_.Hh.getInstance(),2);if(w.nextAddress!=3)return(W=w.yieldResult)?w.yield(W.get("ytlc-emoji-pref"),3):w.return();(V=w.yieldResult)&&L2i(y,Object.keys(V).map(function(t){return{emojiId:t,stickyPrefId:V[t]}}).filter(function(t){return!!t.emojiId&&!!t.stickyPrefId}));
_.B7(w)})};
_.we=function(y,W,V){return(y=y.emojiMap[W])&&(!y.isLocked||V!==void 0&&V)?y:void 0};
tC=function(y,W,V){V=_.we(y,W,V===void 0?!1:V);var w=W.match("\u200d");V&&y.skinTone!==0&&(y=(w==null?void 0:w.length)===1?_.we(y,W.replace("\u200d",gQE[y.skinTone]+"\u200d")):_.we(y,W+gQE[y.skinTone]))&&(V=y);return V};
cpq=function(y,W){var V=y.emojiMap[W];return(V==null?0:V.stickyPrefId)?y.emojiMap[V.stickyPrefId]:tC(y,W)};
_.l0=function(y,W){y=y.emojiShortcutMap[W.toLocaleLowerCase()];return!y||y.isLocked?null:y};
eOm=function(y,W,V){return dLA(y,V===void 0?!1:V)[W]||{}};
dLA=function(y,W){W=W===void 0?!1:W;if(!y.hasInitializedShortcutCharMap){y.hasInitializedShortcutCharMap=!0;for(var V=0;V<y.emojis.length;V++){var w=y.emojis[V];if(!(w.isLocked||W&&w.isCustomEmoji&&w.emojiId&&!y.pickerCustomEmojiIds.includes(w.emojiId)))for(var t=0;w.shortcuts&&t<w.shortcuts.length;t++){var F=w.shortcuts[t];F.startsWith(":_")&&w.isCustomEmoji&&(y.emojiShortcutCharMap[":_"]==null&&(y.emojiShortcutCharMap[":_"]=Object.create(null)),y.emojiShortcutCharMap[":_"][F]=w);if(!(F.length<3||
!w.isCustomEmoji&&IVE.test(F))){var I=F.substr(0,3).toLocaleLowerCase();y.emojiShortcutCharMap[I]==null&&(y.emojiShortcutCharMap[I]=Object.create(null));y.emojiShortcutCharMap[I][F]=w}}}}return y.emojiShortcutCharMap};
_.Vf.prototype.createEmoji=function(y,W){W=W===void 0?!0:W;var V=document.createElement("img");y.isCustomEmoji||V.classList.add("small-emoji");V.classList.add("emoji");V.classList.add("yt-formatted-string");V.src=y.image?_.f5(y.image.thumbnails,this.emojiSize)||"":"";var w=void 0;y.image&&y.image.accessibility&&y.image.accessibility.accessibilityData&&(w=y.image.accessibility.accessibilityData.label);V.alt=w?w:(y.isCustomEmoji&&y.shortcuts?y.shortcuts[0]:y.emojiId)||"";y.isCustomEmoji&&(V.dataset.emojiId=
y.emojiId);_.mU&&(V.setAttribute("contenteditable","false"),V.setAttribute("unselectable","on"));W&&(y.shortcuts&&y.shortcuts.length&&V.setAttribute("shared-tooltip-text",y.shortcuts[0]),V.id="emoji-"+NHs++);return V};
_.Vf.prototype.createDocumentFragment=function(y,W,V,w){W=W===void 0?!1:W;V=V===void 0?!0:V;w=w===void 0?!1:w;y=y.replace(OWq,"");for(var t=document.createDocumentFragment(),F=0,I,P=0;(I=this.emojiRegex.exec(y))!=null;){var C=_.we(this,I[0])||_.l0(this,I[0]);!C||C.isCustomEmoji&&!W||(C=this.createEmoji(C,V),F!==I.index&&t.appendChild(document.createTextNode(y.substring(F,I.index))),t.appendChild(C),F=I.index+I[0].length,P++)}if(!w||P)return t.appendChild(document.createTextNode(y.substr(F))),t};
hOq=function(y,W,V){var w,t,F,I,P,C,d,L,z;return _.g(function(c){if(c.nextAddress==1){if(!W.emojiId||!y.emojiMap[W.emojiId])return c.return();w=Object.assign({},y.emojiMap[W.emojiId],{stickyPrefId:V});y.emojiMap[W.emojiId]=w;W.index&&((t=y.emojis[W.index])==null?void 0:t.emojiId)===W.emojiId&&(y.emojis[W.index]=w);if((F=W.shortcuts)==null?0:F.length)for(y.hasInitializedShortcutCharMap=!1,I=_.N(W.shortcuts),P=I.next();!P.done;P=I.next())C=P.value,y.emojiShortcutMap[C.toLocaleLowerCase()]=w;return c.yield(_.Hh.getInstance(),
2)}if(c.nextAddress!=4)return(d=c.yieldResult)?c.yield(d.get("ytlc-emoji-pref"),4):c.jumpTo(0);z=(L=c.yieldResult)!=null?L:{};z[W.emojiId]=V;return c.yield(d.set("ytlc-emoji-pref",z,CrR),0)})};
_.FX=new _.Vf;var pxr;_.ER={};
pxr={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.e("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:_.e("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 gP(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 y=_.i6(this.hostElement||this).querySelector("#inline-action-button-container");y&&y.setAttribute("aria-hidden","true");this.menuButton=_.i6(this.hostElement).querySelector("#menu-button")},
attached:function(){var y=this.menuButton;y&&(y.addEventListener("focusin",_.Dp(this,this.onMenuButtonFocus_)),y.addEventListener("focusout",_.Dp(this,this.onMenuButtonBlur_)))},
detached:function(){var y=this.menuButton;y&&(y.removeEventListener("focusin",_.Dp(this,this.onMenuButtonFocus_)),y.removeEventListener("focusout",_.Dp(this,this.onMenuButtonBlur_)))},
identity:_.Jv,truthy:function(y){return!!y},
computeTimestampString:function(y){return y?y.timestampText?this.getSimpleString(y.timestampText):this.TIME_FORMATTER.format(new Date(y.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(y){return y},
computeMenuVisible_:function(y,W){return y||W},
computeHasInlineActionButtons:function(y){if(!y)return!1;var W,V;return!((W=y.inlineActionButtons)==null||!W.length)||!((V=y.additionalInlineActionButtons)==null||!V.length)},
createDocumentFragmentFromString:function(y){var W=_.FX.createDocumentFragment.bind(_.FX),V;if((V=this.participantsManager)==null||!V.viewerRegex)return W(y);V=document.createDocumentFragment();for(var w=0,t;(t=this.participantsManager.viewerRegex.exec(y))!=null;){if(t.index>0){var F=":"+t[0]+":";if((_.we(_.FX,F)||_.l0(_.FX,F))&&y.indexOf(F)===t.index-1)continue}V.appendChild(W(y.substring(w,t.index)));w=document.createElement("span");w.appendChild(W(t[0]));w.classList.add("mention");V.appendChild(w);
w=t.index+t[0].length}V.appendChild(W(y.substring(w)));return V},
createDocumentFragment:function(y){var W=document.createDocumentFragment();if(y.simpleText)return W.appendChild(this.createDocumentFragmentFromString(y.simpleText)),W;if(!y.runs)return W;for(var V=0;V<y.runs.length;V++){var w=y.runs[V];if(w.emoji)W.appendChild(_.FX.createEmoji(w.emoji));else if(w.text)if(w.navigationEndpoint){var t=document.createElement("a");t.classList.add("yt-simple-endpoint");Mfa(t,w.navigationEndpoint);_.i6(t).appendChild(this.createDocumentFragmentFromString(w.text));W.appendChild(t)}else W.appendChild(this.createDocumentFragmentFromString(w.text))}return W},
hasModerationOverlayVisible:function(){var y;return((y=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:y.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(y){y.composedPath().some(function(W){return(W=W instanceof Element?W:null)?W.tagName&&(W.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||W.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.e("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(y)},
colorFromDecimal:function(y){return AQv(y)},
markAsDeleted:function(y,W){this.set("data.deletedStateMessage",y);this.set("data.showOriginalContentMessage",W)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(y){if(this.data.contextMenuEndpoint){var W=_.hs().resolve(_.bN),V=this.data.contextMenuEndpoint,w;(w=_.P5.instance)&&_.Cn(w,V)?(W=oQJ(W,V),w=_.Vo(w,{},W)):w=_.K2Q(W,V);w.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);y&&y.stopPropagation()}},
handleGetContextMenuResponse_:function(y){var W=_.P5.instance;W&&_.Cn(W,{liveChatEndpoint:{}})||(y=y.response);y.liveChatItemContextMenuSupportedRenderers&&y.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(y.liveChatItemContextMenuSupportedRenderers.menuRenderer);y.actions&&_.ow(this.hostElement,"yt-live-chat-actions",[y.actions])},
handleGetContextMenuError:function(y){if(y instanceof Error||y instanceof Object||y instanceof String)var W=y;_.ap(new _.Js("Error encountered calling GetLiveChatItemContextMenu",W))},
showContextMenu_:function(y){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:y}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.h1(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.h1(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.ER.YtLiveChatItemBehavior=[pxr,_.Em.YtComponentBehavior,_.sm.YtOpenPopupBehavior];_.N$=function(){};var iWf;var fVi;var THI;var mLJ;var IL=function(){var y=_.u.apply(this,arguments)||this;y.active=!1;y.identity=_.Jv;return y};
_.p(IL,_.u);IL.prototype.dataChanged=function(){this.active=!1};
IL.prototype.onClick=function(){_.h1(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
IL.prototype.dataChanged=IL.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],IL.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],IL.prototype,"active",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IL.prototype,"dataChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],IL);
_.Y(IL,"yt-live-chat-text-input-field-suggestion",function(){if(mLJ===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;THI===void 0&&(THI=document.createElement("template"));var w=THI;V.call(W,w.content.cloneNode(!0),y.content.firstChild);mLJ=y}y=mLJ;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});_.ge=function(y,W,V){return CustomEvent.call(this,y,{detail:{value:W,path:V}})||this};
_.p(_.ge,CustomEvent);_.PK=function(){var y=_.u.apply(this,arguments)||this;y.viewerName=null;y.actionMap={"yt-live-chat-actions":"onChatMessage_"};y.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];y.PARTICIPANT_TIME_USEC_=3E8;return y};
_.p(_.PK,_.u);_.E=_.PK.prototype;_.E.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.E.addParticipant=function(y){var W=_.KLy(this.participants,y,function(w,t){w=w[Object.keys(w)[0]];t=t[Object.keys(t)[0]];w=String(_.OT(w.authorName)).toLowerCase();t=String(_.OT(t.authorName)).toLowerCase();return w<t?-1:w==t?0:1}.bind(this));
if(W>=0){var V=this.participants[W];V[Object.keys(V)[0]].timestampUsec&&this.splice("participants",W,1,y)}else this.splice("participants",-W-1,0,y);y=y[Object.keys(y)[0]];W=_.OT(y.authorName).toLocaleLowerCase();V=W.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(V)||(this.allParticipantsCharMap_[V]={});this.allParticipantsCharMap_[V][W]=y};
_.E.getAuthorsFromPrefix=function(y){return this.allParticipantsCharMap_.hasOwnProperty(y)?this.allParticipantsCharMap_[y]:null};
_.E.computeViewerRegex_=function(y){if(!y)return null;y=y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var W=y.indexOf("@")===0&&_.e("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(W+y.replace(/ /g,"\\s*")+"|^"+y.replace(/ /g,"\\s*")+"$|^"+y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+y.replace(/ /g,"\\s*")+"$|(?<=\\s)"+y.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.E.checkForStaleParticipants_=function(){var y=this;this.trimOldParticipants_();this.asyncHandle_&&PxL(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Er(function(){y.checkForStaleParticipants_()},3E4))};
_.E.onChatMessage_=function(y){var W=this,V=Date.now()*1E3;y.forEach(function(w){if(w=_.h(w,M9R)){w=w.item;var t=Object.keys(w)[0];W.SUPPORTED_ITEM_TYPES_.indexOf(t)!=-1&&w[t].timestampUsec>=V-W.PARTICIPANT_TIME_USEC_&&W.addParticipant(w)}},this);
this.checkForStaleParticipants_()};
_.E.trimOldParticipants_=function(){for(var y=Date.now()*1E3,W=this.participants.length-1;W>=0;W--){var V=this.participants[W];V=V[Object.keys(V)[0]];V.timestampUsec&&V.timestampUsec<y-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",W,1)}};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],_.PK.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],_.PK.prototype,"viewerName",void 0);_.J([_.q({computed:"computeViewerRegex_(viewerName)"}),_.R("design:type",Object)],_.PK.prototype,"viewerRegex",void 0);_.J([_.q({value:function(){return[]},
notify:!0}),_.R("design:type",Array)],_.PK.prototype,"participants",void 0);_.J([_.Zp({is:"yt-live-chat-participants-manager",noInjection:!0})],_.PK);var MeQ=/.*([:@#].*?)$/,CK=/\u00a0/g,qNz=String.fromCharCode(160),ULJ={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"},OR=function(){var y=_.u.apply(this,arguments)||this;y.disabled=!1;y.liveChatRichMessageInput=null;y.messageInput=null;y.isValidWithNoInputText=!1;y.suggestions=[];y.emojiManager=_.FX;y.inputMethodEditorActive=
!1;y.suggestionIndex=-1;y.JSC$13981_lastSuggestionRange=null;return y};
_.p(OR,_.u);_.E=OR.prototype;_.E.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.E.attached=function(){_.MW&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.E.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.E.dataChanged=function(){if(!this.ignoreColorMapping){var y=!1,W={},V;for(V in ULJ)this.data&&this.data.hasOwnProperty(V)&&(W[ULJ[V]]=this.colorFromDecimal(this.data[V]),y=!0);y&&_.qg(this.hostElement,W)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.E.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.E.colorFromDecimal=function(y){y=Math.floor(Number(y));return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
_.E.preventDrag=function(y){y.dataTransfer&&(y.dataTransfer.dropEffect="none");y.preventDefault()};
_.E.preventResize=function(y){y.returnValue=!1};
_.E.onInputChange=function(){var y=this.characterCount,W=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&W&&W.remove();if(!W&&this.characterCount>this.maxCharacterLimit){var V=window.getSelection();if(V){var w=V.getRangeAt(0);V.removeAllRanges();V.addRange(w)}}if(V=this.getCurrentRange())w=this.calculateTextBeforeRange(V),this.completeEmojisInRange(V,w,!0)||this.updateSuggestions(V,w);w=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(w);
_.h1(this.hostElement,"yt-live-chat-message-input-change",w);W&&this.characterCount===0&&W.remove();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>y):V&&!V.collapsed&&V.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(y=this.input.childNodes.length-1;y>=0;y--)this.input.childNodes[y].nodeName==="BR"&&this.input.childNodes[y].remove()};
_.E.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.E.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var y=this.getCurrentRange();y&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.E.mergeOverflowText=function(y){if(y){var W=document.createRange();W.selectNodeContents(y);W=W.extractContents();this.input.insertBefore(W,y)}};
_.E.checkRangeAtEndOfInput=function(){var y=this.getCurrentRange();if(y){var W=_.i6(this.hostElement).querySelector("#overflow-text"),V=document.createRange();W&&W.previousSibling?W.previousSibling instanceof HTMLImageElement?V.selectNode(W.previousSibling):V.selectNodeContents(W.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?V.selectNode(this.input.lastChild):V.selectNodeContents(this.input.lastChild));V.collapse(!1);return V.isPointInRange(y.startContainer,
y.startOffset)}return!1};
_.E.handleOverflowText=function(y){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var W=_.i6(this.hostElement).querySelector("#overflow-text"),V=this.getCurrentRange();this.input.normalize();y=this.checkRangeAtEndOfInput()&&y;this.mergeOverflowText(W);for(var w,t=0,F=0,I,P=this.input.childNodes,C=0;C<P.length;C++){var d=P[C];d instanceof Text?(F+=d.textContent.length,F>this.maxCharacterLimit&&(w=d,t=this.maxCharacterLimit+d.textContent.length-F)):d instanceof HTMLImageElement&&
(w=void 0,F=d.dataset.emojiId&&((w=this.data)==null?0:w.emojiCharacterCount)?F+this.data.emojiCharacterCount:F+d.alt.length,w=this.input,t=C);if(F>this.maxCharacterLimit&&w){I=document.createRange();I.collapse(!1);W?(F=this.input.lastChild.previousSibling,F instanceof Text?I.setEnd(this.input.lastChild.previousSibling,F.textContent.length):F instanceof HTMLImageElement&&I.setEnd(this.input,this.input.childNodes.length-1)):I.selectNodeContents(this.input);I.setStart(w,t);break}}I&&(w=!1,V&&(y=I.isPointInRange(V.startContainer,
V.startOffset-1)),W||(W=document.createElement("span"),W.id="overflow-text",W.textContent="",W.setAttribute("contenteditable","true"),_.i6(_.i6(this.hostElement).querySelector("#input")).appendChild(W),w=!0),W&&(V=I.extractContents(),W.insertBefore(V,W.firstChild),y&&W.firstChild&&(V=document.createRange(),w?V.setStartAfter(W.lastChild):V.setStartAfter(W.firstChild),V.collapse(!0),W=window.getSelection(),W.removeAllRanges(),W.addRange(V))))}};
_.E.checkForDuplicateSpans=function(){for(var y=0;y<this.input.childNodes.length;y++){var W=this.input.childNodes[y];if(W.nodeName==="SPAN"){var V=document.createRange();V.selectNodeContents(W);V=V.extractContents();this.input.insertBefore(V,W);W.remove()}}this.handleOverflowText(!0)};
_.E.getCurrentRange=function(){var y=window.getSelection();return y&&y.rangeCount?y.getRangeAt(0).cloneRange():null};
_.E.getInputRange=function(){var y=this.getCurrentRange();if(y){for(var W=y.commonAncestorContainer,V=!1,w=_.i6(this.hostElement).querySelector("#input");W;){if(W===w){V=!0;break}W=W.parentNode}V||(y=null)}y||(y=this.getRangeAtEnd());return y};
_.E.getRangeAtEnd=function(){var y=document.createRange(),W=_.i6(this.hostElement).querySelector("#input").lastChild;!W||W.nodeName!=="#text"&&W.nodeName!=="SPAN"?(y.selectNodeContents(_.i6(this.hostElement).querySelector("#input")),y.collapse(!1)):W.nodeName==="#text"?y.setStart(W,W.textContent.length):y.setStart(W,W.childNodes.length);return y};
_.E.getChatParticipantSuggestions=function(y,W,V,w){var t=_.e("live_chat_enable_handles_web_text_input_update");if(W)for(var F in W)if(F.indexOf(y)===0||t&&F.indexOf(V+y)===0){var I=W[F],P=_.OT(I.authorName);w.push({suggestion:{author:!0,authorType:V,image:I.authorPhoto,alt:P,text:P}});if(w.length>=64)break}};
_.E.getSuggestions=function(y){var W=[],V=y.substring(0,3),w=eOm(_.FX,V,!0);if(w)for(var t in w)if(t.toLocaleLowerCase().indexOf(y)===0){var F=w[t];if(F&&F.emojiId){if(F=cpq(_.FX,F.emojiId)){var I=void 0,P=void 0,C=void 0,d=void 0,L=((I=F.image)==null?0:(P=I.accessibility)==null?0:(C=P.accessibilityData)==null?0:C.label)||F.isCustomEmoji?(d=F.shortcuts)==null?void 0:d[0]:F.emojiId;W.push({suggestion:{emoji:!0,image:F.image,alt:L,text:t,textToInsertWhenSelected:F.isCustomEmoji?t:L}})}if(W.length>=
64)break}}if(!this.participantsManager)return null;if(V.indexOf("@")===0||V.indexOf("#")===0)w=V.charAt(0),y=y.substring(1),t=_.e("live_chat_enable_handles_web_text_input_update"),V.indexOf("@")===0&&t&&(t=this.participantsManager.getAuthorsFromPrefix(V.substring(0,2)),this.getChatParticipantSuggestions(y,t,w,W)),V=V.substring(1),V=this.participantsManager.getAuthorsFromPrefix(V),this.getChatParticipantSuggestions(y,V,w,W);return W?W.sort(function(z,c){return c.suggestion.text<z.suggestion.text?-1:
c.suggestion.text===z.suggestion.text?0:1}):null};
_.E.insertSuggestion=function(y){var W=_.e("live_chat_enable_handles_web_text_input_update"),V=y.authorType;W=y.text.indexOf(V)===0&&W?y.text+qNz:V+y.text+qNz;y.emoji?this.insertTextAtRange(this.JSC$13981_lastSuggestionRange,y.textToInsertWhenSelected||""):y.author&&this.insertTextAtRange(this.JSC$13981_lastSuggestionRange,W)};
_.E.updateSuggestionsAtCaret=function(){var y=this.getCurrentRange();y&&this.updateSuggestions(y,this.calculateTextBeforeRange(y))};
_.E.offsetStartOfRangeBy=function(y,W){for(;W>0;)if(y.startOffset-W>=0){y.setStart(y.startContainer,y.startOffset-W);break}else{W=y.startContainer instanceof HTMLImageElement?W-y.startContainer.alt.length:W-y.startOffset;var V=y.startContainer.previousSibling;if(!V){y.setStart(y.startContainer,0);break}if(_.e("live_chat_require_space_for_autocomplete_emoji")){var w=void 0,t=void 0;y.setStart(V,((w=V)==null?void 0:(t=w.textContent)==null?void 0:t.length)||0)}else y.setStart(V,V.childNodes.length||
0)}};
_.E.updateSuggestions=function(y,W){var V=this;this.JSC$13981_lastSuggestionRange&&(this.JSC$13981_lastSuggestionRange.detach(),this.JSC$13981_lastSuggestionRange=null);if((W=MeQ.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2&&(this.offsetStartOfRangeBy(y,W.length),this.JSC$13981_lastSuggestionRange=y,(y=this.getSuggestions(W))&&y.length))){this.suggestions=y;_.gy(this,function(){_.i6(V.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(y.length-1);return}this.dropdown.opened=!1};
_.E.completeEmojisInRange=function(y,W,V){var w=W.replace(/[\s\xa0]+$/,"");W=W.length-w.length;w=w.split(" ");w=w[w.length-1].trim().toLocaleLowerCase();var t=w.lastIndexOf(":");if(V&&!W&&t!==w.length-1)return!1;t!==-1&&(V=w.lastIndexOf(":",t-1),V!==-1&&(w=w.substring(V)));if((V=_.l0(_.FX,w))&&V.emojiId){V=cpq(_.FX,V.emojiId)||null;this.offsetStartOfRangeBy(y,w.length+W);var F,I,P,C;w=(((F=V)==null?0:F.isCustomEmoji)?(I=V)==null?void 0:(P=I.shortcuts)==null?void 0:P[0]:(C=V)==null?void 0:C.emojiId)||
"";W&&(w+=qNz);this.insertTextAtRange(y,w);this.dropdown.opened=!1;return!0}return!1};
_.E.onSuggestion=function(y){this.insertSuggestion(y.detail);this.dropdown.opened=!1};
_.E.onKeyPress=function(y){y.keyCode===13&&(y.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.h1(this.hostElement,"yt-live-chat-send-message"))};
_.E.completeEmojis=function(){var y=document.createRange(),W=_.i6(this.hostElement).querySelector("#input").lastChild;W?y.setStart(W,W.childNodes.length):(y.selectNodeContents(_.i6(this.hostElement).querySelector("#input")),y.collapse(!1));this.completeEmojisInRange(y,this.calculateTextBeforeRange(y),_.e("live_chat_require_space_for_autocomplete_emoji"))};
_.E.maybePreventTextFormatting=function(y){!_.S6||!y.ctrlKey&&!y.metaKey||y.keyCode!==66&&y.keyCode!==73||(y.stopImmediatePropagation(),y.preventDefault())};
_.E.onKeyDown=function(y){this.maybePreventTextFormatting(y);if(this.dropdown.opened)switch(y.keyCode){case 27:this.dropdown.opened=!1;y.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;y.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);y.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),y.preventDefault()}};
_.E.onKeyUp=function(y){switch(y.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.mU)this.onInputChange()};
_.E.changeSuggestionIndex=function(y){if(this.dropdown.opened){var W=_.i6(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<W.children.length&&(W.children[this.suggestionIndex].active=!1);var V=this.suggestions.length;this.suggestionIndex=(y+V)%V;y=W.children[this.suggestionIndex];y.active=!0;W.scrollTop=y.offsetTop}};
_.E.onInputPaste=function(y){y.preventDefault();(y=y.clipboardData)&&y.types&&(y=y.getData("text/plain")||"",y=y.replace(/\n/g,""),this.insertText(y));(y=this.getCurrentRange())&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.E.onFocus=function(){this._setFocused(!0)};
_.E.onBlur=function(){this._setFocused(!1)};
_.E.insertText=function(y){this.insertTextAtRange(this.getInputRange(),y)};
_.E.insertTextAtRange=function(y,W){if(y&&(y.collapsed||y.deleteContents(),W=_.FX.createDocumentFragment(W,!0,!1))){for(var V=_.N((W==null?void 0:W.childNodes)||[]),w=V.next();!w.done;w=V.next()){w=w.value;var t=void 0,F=void 0,I=void 0,P=void 0,C=void 0;(I=(t=window)==null?void 0:(F=t.ShadyCSS)==null?void 0:F.ScopingShim)==null||(C=(P=I).scopeNode)==null||C.call(P,w,this.hostElement.localName)}V=W.lastChild;y.insertNode(W);this.focused||this.input.focus();if(this.focused){y=y.cloneRange();y.selectNodeContents(V);
y.collapse(!1);if(W=window.getSelection())W.removeAllRanges(),W.addRange(y);y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(y);_.h1(this.hostElement,"yt-live-chat-message-input-change",y)}};
_.E.setLiveChatRichMessageInput=function(y){_.i6(_.i6(this.hostElement).querySelector("#input")).textContent="";if(y&&y.textSegments){for(var W=0;W<y.textSegments.length;W++){var V=y.textSegments[W];V.text?_.i6(_.i6(this.hostElement).querySelector("#input")).appendChild(_.FX.createDocumentFragment(V.text,!0,!1)):V.emojiId&&(V=_.we(_.FX,V.emojiId))&&_.i6(_.i6(this.hostElement).querySelector("#input")).appendChild(_.FX.createEmoji(V,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.E.setText=function(y){this.setLiveChatRichMessageInput(y?{textSegments:[{text:y}]}:null)};
_.E.calculateTextBeforeRange=function(y){var W="",V=y.startContainer;if(V&&V instanceof Text){var w;W=((w=V.textContent)==null?void 0:w.substring(0,y.startOffset))||"";V=V.previousSibling}for(;V&&V instanceof Text;)W=V.textContent+W,V=V.previousSibling;return W.replace(CK," ")};
_.E.calculateLiveChatRichMessageInput=function(){for(var y=[],W="",V=_.i6(_.i6(this.hostElement).querySelector("#input")).childNodes,w=0;w<V.length;w++){var t=V[w];t instanceof Text?W+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(W&&(y.push({text:W.replace(CK," ")}),W=""),y.push({emojiId:t.dataset.emojiId})):W+=t.alt)}W&&y.push({text:W.replace(CK," ")});if(V=_.i6(this.hostElement).querySelector("#overflow-text")){W="";V=V.childNodes;for(w=0;w<V.length;w++)t=V[w],t instanceof Text?
W+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(W&&(y.push({text:W.replace(CK," ")}),W=""),y.push({emojiId:t.dataset.emojiId})):W+=t.alt);W&&y.push({text:W.replace(CK," ")})}return{textSegments:y}};
_.E.computeCharacterCount=function(y){if(!y||!y.textSegments)return 0;for(var W=0,V=0;V<y.textSegments.length;V++){var w=y.textSegments[V];if(w.text)W+=w.text.length;else if(w.emojiId){var t=void 0;if((t=this.data)==null?0:t.emojiCharacterCount)W+=this.data.emojiCharacterCount;else{var F=t=void 0,I=void 0;W+=((F=_.we(_.FX,(t=w)==null?void 0:t.emojiId))==null?void 0:(I=F.shortcuts)==null?void 0:I[0].length)||0}}}return W};
_.E.characterCountChanged=function(){_.h1(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.E.focusedChanged=function(){this.hostElement.dispatchEvent(new _.ge("focused-changed",this.focused))};
_.E.focus=function(){this.setFocus(!1)};
_.E.focusAtEnd=function(){this.setFocus(!0)};
_.E.setFocus=function(y){y=y?this.getRangeAtEnd():this.getInputRange();_.i6(this.hostElement).querySelector("#input").focus();var W=window.getSelection();W&&(W.removeAllRanges(),W.addRange(y))};
_.E.insertEmoji=function(y){var W,V=((y==null?0:y.isCustomEmoji)?(W=y.shortcuts)==null?void 0:W[0]:y==null?void 0:y.emojiId)||"";this.insertText(V)};
_.E.computeText=function(y){if(!y||!y.textSegments)return"";for(var W="",V=0;V<y.textSegments.length;V++){var w=y.textSegments[V];if(w.text)W+=w.text;else if(w.emojiId){var t=void 0,F=void 0,I=void 0;W+=((F=_.we(_.FX,(t=w)==null?void 0:t.emojiId))==null?void 0:(I=F.shortcuts)==null?void 0:I[0])||""}}return W};
_.E.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.CM.Object.defineProperties(OR.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
OR.prototype.focusedChanged=OR.prototype.focusedChanged;OR.prototype.characterCountChanged=OR.prototype.characterCountChanged;OR.prototype.onSuggestion=OR.prototype.onSuggestion;OR.prototype.onMessageSet=OR.prototype.onMessageSet;OR.prototype.dataChanged=OR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],OR.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],OR.prototype,"disabled",void 0);_.J([_.M("disabled"),_.R("design:type",Number),_.R("design:paramtypes",[])],OR.prototype,"inputTabIndex",null);_.J([_.M("data.maxCharacterLimit"),_.q({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],OR.prototype,"maxCharacterLimit",null);
_.J([_.M("liveChatRichMessageInput"),_.q({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],OR.prototype,"characterCount",null);_.J([_.M("maxCharacterLimit, characterCount"),_.q({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],OR.prototype,"remainingCharacterCount",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],OR.prototype,"isChatMessageInput",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],OR.prototype,"inputExpanded",void 0);_.J([_.q({readOnly:!0,notify:!0}),_.R("design:type",Object)],OR.prototype,"liveChatRichMessageInput",void 0);_.J([_.q(),_.R("design:type",Object)],OR.prototype,"messageInput",void 0);_.J([_.q(),_.R("design:type",Boolean)],OR.prototype,"ignoreColorMapping",void 0);_.J([_.M("characterCount"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],OR.prototype,"hasText",null);
_.J([_.q(),_.R("design:type",Object)],OR.prototype,"isValidWithNoInputText",void 0);_.J([_.M("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.q(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],OR.prototype,"isInputValid",null);_.J([_.q({readOnly:!0,value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],OR.prototype,"focused",void 0);_.J([_.q(),_.R("design:type",Array)],OR.prototype,"suggestions",void 0);
_.J([_.q(),_.R("design:type",_.Vf)],OR.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",_.PK)],OR.prototype,"participantsManager",void 0);_.J([_.q(),_.R("design:type",Boolean)],OR.prototype,"noUnderline",void 0);_.J([_.q(),_.R("design:type",Object)],OR.prototype,"inputMethodEditorActive",void 0);_.J([_.s$("#dropdown"),_.R("design:type",Object)],OR.prototype,"dropdown",void 0);_.J([_.s$("#input"),_.R("design:type",HTMLElement)],OR.prototype,"input",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OR.prototype,"dataChanged",null);_.J([_.xA("messageInput"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OR.prototype,"onMessageSet",null);_.J([_.l6("yt-live-chat-select-suggestion"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],OR.prototype,"onSuggestion",null);
_.J([_.xA("characterCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OR.prototype,"characterCountChanged",null);_.J([_.xA("focused"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OR.prototype,"focusedChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],OR);
_.utJ=_.Y(OR,"yt-live-chat-text-input-field-renderer",function(){if(fVi===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;iWf===void 0&&(iWf=document.createElement("template"));var w=iWf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);fVi=y}y=fVi;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var vK=function(){var y=_.u.apply(this,arguments)||this;y.buttonOverrides={style:"overlay",type:"filled"};y.allowAnimations=!1;y.modern=_.e("web_button_rework_with_live");y.noPadding=!1;return y};
_.p(vK,_.u);_.E=vK.prototype;_.E.shouldSupportInlineActionButtons=function(){return!0};
_.E.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"}}}}};
_.E.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.E.attached=function(){this.allowAnimations=!1};
_.E.dataChanged=function(){if(this.data){var y={"--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)};_.qg(this.hostElement,y);this.allowAnimations=!0}};
_.E.messageChanged=function(){var y,W=(y=this.data)==null?void 0:y.message;y=_.i6(_.i6(this.hostElement).querySelector("#message"));y.textContent="";W&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.E.computeShowOnlyHeader=function(y,W){return!y||y.pdgLikeButton||y.replyButton||y.buyFlowButton?!1:this.isEmpty(y,W)&&!y.footer};
_.E.computeShowFooterDivider=function(y,W,V){return y?!!y.footer&&!this.isEmpty(y,W)&&!V:!1};
_.E.computeIsUserEditable=function(y){return!!y.inputField};
_.E.computeHasHeartButton=function(y){return(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.E.computeNoveltyImage=function(y){if(y.headerOverlayImage&&y.headerOverlayImage.thumbnails.length){var W=y.headerOverlayImage.thumbnails[0],V,w;if((V=y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(w=V.loggingDirectives)==null?0:w.trackingParams){var t,F;qoP((t=y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(F=t.loggingDirectives)==null?void 0:F.trackingParams)}return W.width||0}return 0};
_.E.computeAuthorPhotoSize=function(y){return(y==null?0:y.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.E.inputFocus=function(){var y=_.i6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");y&&y.focus()};
_.E.inputInsertEmoji=function(y){var W=_.i6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.insertEmoji(y)};
_.E.inputMessage=function(){var y=_.i6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),W;return y&&((W=this.data)==null?0:W.inputField)?(y.completeEmojis(),_.NH(y.liveChatRichMessageInput)):null};
_.E.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.E.isEmpty=function(y,W){return y?y.empty||!(y.message||y.inputField||W):!0};
_.E.onLowerBuyButtonClick=function(){var y,W=_.h((y=this.data)==null?void 0:y.buyButton,_.wz);W&&W.trackingParams&&!B_R(W.command)&&(y=_.nD(W.trackingParams))&&(W=_.Xn())&&_.PE(W,y)};
_.E.shouldSupportWholeItemClick=function(){return!0};
_.CM.Object.defineProperties(vK.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
vK.prototype.isDeletedChanged=vK.prototype.isDeletedChanged;vK.prototype.messageChanged=vK.prototype.messageChanged;vK.prototype.dataChanged=vK.prototype.dataChanged;_.J([_.m(toz.YtPdgLiveChatItemBehavior),_.R("design:type",Object)],vK.prototype,"ytPdgLiveChatItemBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],vK.prototype,"ytLiveChatReduxBehavior",void 0);
_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],vK.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vK.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:m7R}),_.R("design:type",Object)],vK.prototype,"engagementState",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.R("design:type",Boolean)],vK.prototype,"isUserEditable",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.R("design:type",Boolean)],vK.prototype,"hasHeartButton",void 0);_.J([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.R("design:type",Boolean)],vK.prototype,"showOnlyHeader",void 0);
_.J([_.q({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.R("design:type",Boolean)],vK.prototype,"showFooterDivider",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],vK.prototype,"allowAnimations",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],vK.prototype,"dashboardMoneyFeed",void 0);_.J([_.q({computed:"computeNoveltyImage(data)"}),_.R("design:type",Number)],vK.prototype,"noveltyWidth",void 0);
_.J([_.q({computed:"computeAuthorPhotoSize(data)"}),_.R("design:type",Number)],vK.prototype,"authorPhotoSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vK.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vK.prototype,"noPadding",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vK.prototype,"dataChanged",null);
_.J([_.xA("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vK.prototype,"messageChanged",null);_.J([_.M("data","dashboardMoneyFeed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vK.prototype,"hideLowerBumper",null);_.J([_.xA("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vK.prototype,"isDeletedChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],vK);
_.Y(vK,"yt-live-chat-paid-message-renderer",function(){if(Jyr===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Btr===void 0&&(Btr=document.createElement("template"));var w=Btr;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Jyr=y}y=Jyr;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var SN2;var DLR;var de=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;return y};
_.p(de,_.YA);de.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.yC("openPopupConfig")};
_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],de.prototype,"ytOpenPopupBehavior",void 0);_.J([_.BW()],de);_.LK=[_.sm.YtOpenPopupBehavior,de.prototype];var lVE;var dp=[_.sT,gsf,_.yB,_.Ax,_.Iw,_.UY6,_.Jx,_.YVf,_.bw,Thv];_.e("web_watch_get_updated_metadata_response_processing")&&dp.push(_.whQ);_.e("web_continuation_response_processing")&&dp.push(_.EP);var oBu=new _.e9("RESPONSE_RECEIVED_COMMANDS"),KYn=new _.e9("RESPONSE_RECEIVED_COMMANDS");var d3j="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),vOP=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],OIj=["GET_UNSEEN_NOTIFICATION_COUNT"];var z8=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.serviceEndpointHandlers=[];return y};
_.p(z8,_.YA);z8.prototype.created=function(){var y=this;this.endpointHandlerActionMap={"yt-service-request":function(W,V,w,t){var F;return Cov(y.hostElement,W,V,w,t,y.serviceEndpointHandlers,(F=y.onEntitiesUpdated)==null?void 0:F.bind(y))}}};
z8.prototype.attached=function(){_.FD(_.tL.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
z8.prototype.detached=function(){_.Eh(_.tL.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.J([_.BW()],z8);_.xLq=[z8.prototype];var kNK,soR=function(){return kNK!==void 0?kNK:kNK=document.createElement("template")};
document.head.appendChild(soR().content);var ApK;var YNz=document.head,BH6=YNz.appendChild,JpQ;if(ApK===void 0){var ROI=document.createElement("template");_.T(ROI,"\x3c!--css-build:shady--\x3e");ROI.content.insertBefore(soR().content.cloneNode(!0),ROI.content.firstChild);ApK=ROI}JpQ=ApK;BH6.call(YNz,JpQ.content);var joA,$Ls=function(){return joA!==void 0?joA:joA=document.createElement("template")};
document.head.appendChild($Ls().content);var nQE;var HWq=document.head,Xxq=HWq.appendChild,aVi;if(nQE===void 0){var GN6=document.createElement("template");_.T(GN6,"\x3c!--css-build:shady--\x3e");GN6.content.insertBefore($Ls().content.cloneNode(!0),GN6.content.firstChild);nQE=GN6}aVi=nQE;Xxq.call(HWq,aVi.content);var rpq;_.ZQ("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.ZQ("sharingRendererButtons","buttonRenderer","ytd-button-renderer");rpq=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live");_.cK=function(){var y=_.u.apply(this,arguments)||this;y.isPressed=!1;y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return y};
_.p(_.cK,_.u);_.E=_.cK.prototype;_.E.created=function(){this.showTooltips=!0};
_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.onHintIdChanged=function(){var y=this,W,V,w=(W=this.ytButtonBehavior.data)==null?void 0:(V=W.hint)==null?void 0:V.hintRenderer;if(w&&w.hintId){W=_.Kg(this.hostElement,"yt-get-opened-popups-action");W=(W&&W.length===1?W[0]:[]).length>0;var t=null;w.hintId!=="sponsor-pre-purchase"||W?w.hintId.startsWith("sponsor-post-purchase")&&!W?t=erI("membership-manage"):w.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!W&&(t=erI("membership-freebie-join")):t=erI("membership-join");t&&_.HU.addLowPriorityJob(function(){for(var F=
_.N(t),I=F.next();!I.done;I=F.next())y.ytComponentBehavior.resolveCommand(I.value)})}};
_.E.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.E.onYtNavigate=function(y){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.E.onYtServiceRequestSent=function(y,W){this.handleServiceRequestActions(W);_.h1(this.hostElement,"yt-service-request-sent-button-renderer")};
_.E.onServiceRequestCompleted=function(y,W){this.handleServiceRequestActions(W);_.h1(this.hostElement,"yt-service-request-completed-button-renderer")};
_.E.updateButton=function(y){var W;if(y=(W=_.h(y,y06))==null?void 0:W.updatedButton)this.ytButtonBehavior.data=_.h(y,_.wz)};
_.E.handleUpdateButtonAction=function(y){var W=this.ytButtonBehavior.data;W.targetId&&y.updateButtonAction.targetId&&W.targetId===y.updateButtonAction.targetId&&this.updateButton(y)};
_.E.handleServiceRequestActions=function(y){if(y=y.actions)for(var W=0;W<y.length;W++)this.updateButton(y[W])};
_.CM.Object.defineProperties(_.cK,{template:{configurable:!0,enumerable:!0,get:function(){if(lVE===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);lVE=y}y=lVE;return y}}});
_.cK.prototype.onServiceRequestCompleted=_.cK.prototype.onServiceRequestCompleted;_.cK.prototype.onYtServiceRequestSent=_.cK.prototype.onYtServiceRequestSent;_.cK.prototype.onYtNavigate=_.cK.prototype.onYtNavigate;_.cK.prototype.onPressedStateChanged=_.cK.prototype.onPressedStateChanged;_.cK.prototype.onHintIdChanged=_.cK.prototype.onHintIdChanged;_.J([_.q(),_.R("design:type",Object)],_.cK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],_.cK.prototype,"isPressed",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],_.cK.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Nti.YtButtonBehavior),_.R("design:type",Object)],_.cK.prototype,"ytButtonBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],_.cK.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],_.cK.prototype,"ytComponentBehavior",void 0);
_.J([_.m(RY.YtRenderButtonBehavior),_.R("design:type",Object)],_.cK.prototype,"ytRenderButtonBehavior",void 0);_.J([_.xA("data.hint.hintRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],_.cK.prototype,"onHintIdChanged",null);_.J([_.xA("isPressed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],_.cK.prototype,"onPressedStateChanged",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],_.cK.prototype,"onYtNavigate",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],_.cK.prototype,"onYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],_.cK.prototype,"onServiceRequestCompleted",null);_.J([_.k({is:"ytd-button-renderer",disableElementRegistration:rpq})],_.cK);var eV=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.p(eV,_.u);_.E=eV.prototype;_.E.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"}}}}};
_.E.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.E.dataChanged=function(){if(this.data&&this.data.sticker){var y=_.f5(this.data.sticker.thumbnails,this.stickerWidth);y||_.qIz(y).thenCatch(function(){_.rQ(new _.Js("Failed to load Super Sticker with url",y))})}};
_.E.computeAuthorPhotoSize=function(y){return(y==null?0:y.isV2Style)?32:40};
_.E.computeIsV2Style=function(y){return(y==null?0:y.isV2Style)?!0:!1};
_.E.onStickerLoaded=function(y){var W,V,w;(W=_.vW(y))==null||(V=W.parentNode)==null||(w=V.classList)==null||w.add("sticker-loaded")};
_.E.computeNoveltyImageWidth=function(y){var W,V;if(y==null?0:(W=y.headerOverlayImage)==null?0:(V=W.thumbnails)==null?0:V.length){W=y.headerOverlayImage.thumbnails[0];var w,t;if((w=y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(t=w.loggingDirectives)==null?0:t.trackingParams){var F,I;qoP((F=y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(I=F.loggingDirectives)==null?void 0:I.trackingParams)}return W.width||0}return 0};
_.E.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.E.updateStickerStyles=function(){var y=this.data;y&&(y={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.authorNameTextColor)},
_.qg(this.hostElement,y))};
_.E.onBuyButtonClick=function(){var y,W=_.h((y=this.data)==null?void 0:y.buyButton,_.wz);W&&!B_R(W.command)&&this.ytRendererBehavior.logExplicitClick(W)};
_.E.shouldSupportWholeItemClick=function(){return!0};
_.CM.Object.defineProperties(eV.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 y;return((y=this.data)==null?0:y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
eV.prototype.updateStickerStyles=eV.prototype.updateStickerStyles;eV.prototype.isDeletedChanged=eV.prototype.isDeletedChanged;eV.prototype.onStickerLoaded=eV.prototype.onStickerLoaded;eV.prototype.dataChanged=eV.prototype.dataChanged;_.J([_.m(toz.YtPdgLiveChatItemBehavior),_.R("design:type",Object)],eV.prototype,"ytPdgLiveChatItemBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],eV.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],eV.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eV.prototype,"data",void 0);
_.J([_.q({computed:"computeAuthorPhotoSize(data)"}),_.R("design:type",Number)],eV.prototype,"authorPhotoSize",void 0);_.J([_.q(),_.R("design:type",Boolean)],eV.prototype,"isDeleted",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],eV.prototype,"dashboardMoneyFeed",void 0);_.J([_.q({computed:"computeNoveltyImageWidth(data)"}),_.R("design:type",Number)],eV.prototype,"noveltyWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"modern",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.R("design:type",Boolean)],eV.prototype,"isV2Style",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"dataChanged",null);_.J([_.l6("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],eV.prototype,"onStickerLoaded",null);
_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],eV.prototype,"stickerWidth",null);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],eV.prototype,"stickerHeight",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eV.prototype,"hasHeartButton",null);_.J([_.M("data","dashboardMoneyFeed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eV.prototype,"hideLowerBumper",null);
_.J([_.xA("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"isDeletedChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"updateStickerStyles",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],eV);
_.Y(eV,"yt-live-chat-paid-sticker-renderer",function(){if(DLR===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;SN2===void 0&&(SN2=document.createElement("template"));var w=SN2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);DLR=y}y=DLR;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var bWz;var Qoi;var ZWf,yIm=function(){return ZWf!==void 0?ZWf:ZWf=document.createElement("template")};
document.head.appendChild(yIm().content);var W8m,V_J=function(){return W8m!==void 0?W8m:W8m=document.createElement("template")};
document.head.appendChild(V_J().content);var w2J;var t_6,F8Q=function(){return t_6!==void 0?t_6:t_6=document.createElement("template")};
document.head.appendChild(F8Q().content);var EN2;var NCq=document.head,Ins=NCq.appendChild,gNm;if(EN2===void 0){var P9Q=document.createElement("template");_.T(P9Q,"\x3c!--css-build:shady--\x3e");P9Q.content.insertBefore(F8Q().content.cloneNode(!0),P9Q.content.firstChild);EN2=P9Q}gNm=EN2;Ins.call(NCq,gNm.content);var C92=document.head,OYK=C92.appendChild,vNq;if(w2J===void 0){var hC=document.createElement("template");_.T(hC,"\x3c!--css-build:shady--\x3e");hC.content.insertBefore(V_J().content.cloneNode(!0),hC.content.firstChild);hC.content.insertBefore(yIm().content.cloneNode(!0),hC.content.firstChild);w2J=hC}vNq=w2J;OYK.call(C92,vNq.content);var oL=function(){var y=_.YA.apply(this,arguments)||this;y.focusedIndex=0;y.verticalOffset=0;y.verticalAlign="top";y.dynamicAlign=!0;return y};
_.p(oL,_.YA);oL.prototype.emojiUrl=function(y){y=_.we(this.emojiManager,y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.f5(y,24)||""};
var d72=function(y){var W;y.emojiVariants&&(W=y.data)!=null&&W.target&&_.gy(y,function(){y.set("verticalOffset",-1*y.hostElement.clientHeight);var V=_.i6(y.hostElement).querySelector("img");V&&V.focus()})};
_.E=oL.prototype;_.E.onKeyboardEnter=function(){};
_.E.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.E.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.E.onKeyDown=function(y){switch(y.keyCode){case 13:this.onKeyboardEnter();y.preventDefault();break;case 40:this.changeFocus(1);y.preventDefault();break;case 38:this.changeFocus(-1);y.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.E.onYtEmojiSelect=function(y){var W=this,V,w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1)return w=(V=W.data)==null?void 0:V.emoji,I=((t=w)==null?void 0:t.stickyPrefId)||((F=w)==null?void 0:F.emojiId),C=(P=y.detail)==null?void 0:P.emojiId,I&&C&&I!==C?L.yield((d=W.emojiManager)==null?void 0:hOq(d,w,C),2):L.return();_.ow(W.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[w,C]);_.B7(L)})};
_.E.changeFocus=function(y){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+y+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(y=_.i6(this.hostElement).querySelector("#variants"))&&y.children[this.focusedIndex].focus())};
_.CM.Object.defineProperties(oL.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
oL.prototype.onYtEmojiSelect=oL.prototype.onYtEmojiSelect;oL.prototype.onKeyDown=oL.prototype.onKeyDown;oL.prototype.onEmojiVariantsChanged=oL.prototype.onEmojiVariantsChanged;oL.prototype.onVerticalOffsetOrPositionTargetChanged=oL.prototype.onVerticalOffsetOrPositionTargetChanged;_.J([_.m(_.Pq),_.R("design:type",Object)],oL.prototype,"ironOverlayBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",_.Vf)],oL.prototype,"emojiManager",void 0);
_.J([_.q(),_.R("design:type",Object)],oL.prototype,"emojiVariants",void 0);_.J([_.q(),_.R("design:type",Object)],oL.prototype,"focusedIndex",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],oL.prototype,"positionTarget",null);_.J([_.q({reflectToAttribute:!0}),_.M("verticalOffset","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oL.prototype,"isPositioned",null);_.J([_.q(),_.R("design:type",Object)],oL.prototype,"verticalOffset",void 0);
_.J([_.q(),_.R("design:type",Object)],oL.prototype,"verticalAlign",void 0);_.J([_.q(),_.R("design:type",Object)],oL.prototype,"dynamicAlign",void 0);_.J([_.xA("verticalOffset","positionTarget"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oL.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.J([_.xA("emojiVariants"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oL.prototype,"onEmojiVariantsChanged",null);
_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],oL.prototype,"onKeyDown",null);_.J([_.l6("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype",Promise)],oL.prototype,"onYtEmojiSelect",null);_.J([_.BW()],oL);var L8J=[oL.prototype];var z_q;var cIK;var e_E=/medium-light|medium-dark|light|medium|dark/,h_2=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,oNr=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),KK=function(){var y=_.u.apply(this,arguments)||this;y.userSelection={left:null,right:null};y.scrollAction="lock";y.isEmojiDraftInProgress=!1;return y};
_.p(KK,_.u);_.E=KK.prototype;_.E.onClick=function(y){y=_.vW(y);y instanceof HTMLImageElement&&this.selectOrUpdateEmoji(y)};
_.E.selectOrUpdateEmoji=function(y){var W=y.getAttribute("selection");W&&(W==="default"?_.h1(this.hostElement,"yt-emoji-select",_.we(this.emojiManager,y.id)):W==="left"?this.userSelection=Object.assign({},this.userSelection,{left:y.src}):W==="right"?this.userSelection=Object.assign({},this.userSelection,{right:y.src}):W==="user"&&this.userSelection.left&&this.userSelection.right&&_.h1(this.hostElement,"yt-emoji-select",_.we(this.emojiManager,y.id)))};
_.E.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.E.onMultiSelectorThumbnailRowChanged=function(){var y,W,V;((y=this.data)==null?0:(W=y.emoji)==null?0:(V=W.multiSelectorThumbnailRow)==null?0:V.length)&&this.openSelector()};
_.E.getThumbnailFromEmojiRow=function(y){var W,V;return(y==null?void 0:(W=y.thumbnails)==null?void 0:(V=W[0])==null?void 0:V.url)||""};
_.E.getEmojiAltTextForPartialSelector=function(y){var W;return((W=this.getThumbnailFromEmojiRow(y).match(h_2))==null?void 0:W[0])||""};
_.E.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.E.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.E.getRowSelection=function(y){return["left","right"][y]};
_.E.getIdFromComposedEmoji=function(y){return(y==null?void 0:y.emojiId)||""};
_.E.getEmojiFromPartialSelections=function(y,W){if(!y&&!W)return null;var V,w,t=(V=this.data)==null?void 0:(w=V.emoji)==null?void 0:w.variantIds;if(!t||!t.length)return null;var F;y=(F=y.match(e_E))==null?void 0:F[0];var I;W=(I=W.match(e_E))==null?void 0:I[0];if(!y||!W)return null;var P=oNr.get(y);I=oNr.get(W);if(P===I){I=Array.from(oNr.values()).filter(function(d){return d!==P}).join("|");
var C=new RegExp("^((?!("+I+")).)*"+P+"$")}else C=new RegExp(P+".*"+I);return(t=t.find(function(d){return C.test(d)}))&&_.we(this.emojiManager,t)||null};
_.E.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var y,W=this.ytEmojiSelectorBehavior.emojiUrl(((y=this.data.emoji)==null?void 0:y.emojiId)||"");_.i6(this.hostElement).querySelector('[selection="user"]').src.includes(W)||(this.isEmojiDraftInProgress=!0)}};
_.E.onDomChange=function(){d72(this.ytEmojiSelectorBehavior)};
_.E.getFocusableElements=function(){return _.i6(this.hostElement).querySelectorAll("img").filter(function(y){return y.getAttribute("role")==="option"})};
_.E.changeFocus=function(y){var W=this.getFocusableElements();W!=null&&W.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+y+W.length)%W.length,this.ytEmojiSelectorBehavior.focusedIndex<W.length&&(y=W[this.ytEmojiSelectorBehavior.focusedIndex])&&y.focus())};
_.E.onKeyboardEnter=function(){var y=this.getFocusableElements();y!=null&&y.length&&(y=y[this.ytEmojiSelectorBehavior.focusedIndex])&&y instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(y),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.CM.Object.defineProperties(KK.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V,w;return this.emojiManager&&((W=this.data)==null?0:(V=W.emoji)==null?0:(w=V.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.we(y.emojiManager,t)}).filter(function(t){return!!t}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var y,W=(y=this.userSelection)==null?void 0:y.left,V;y=(V=this.userSelection)==null?void 0:V.right;return W&&y?this.getEmojiFromPartialSelections(W,y):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.composedEmojiSelection)==null?0:y.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var W;y=(W=this.userSelection)==null?void 0:W.left;var V;W=(V=this.userSelection)==null?void 0:V.right;if(!y&&!W){var w;return this.ytEmojiSelectorBehavior.emojiUrl(((w=this.data.emoji)==null?void 0:w.emojiId)||"")}return y&&!W?y:!y&&W?W:""}}});
KK.prototype.onMultiSelectorThumbnailRowChanged=KK.prototype.onMultiSelectorThumbnailRowChanged;KK.prototype.onClick=KK.prototype.onClick;_.J([_.m(_.Pq),_.R("design:type",Object)],KK.prototype,"ironOverlayBehavior",void 0);_.J([_.m(L8J),_.R("design:type",Object)],KK.prototype,"ytEmojiSelectorBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",_.Vf)],KK.prototype,"emojiManager",void 0);
_.J([_.q(),_.R("design:type",Object)],KK.prototype,"userSelection",void 0);_.J([_.q(),_.R("design:type",Object)],KK.prototype,"scrollAction",void 0);_.J([_.q(),_.R("design:type",Object)],KK.prototype,"isEmojiDraftInProgress",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],KK.prototype,"emojiVariants",null);_.J([_.M("data","userSelection"),_.R("design:type",Object),_.R("design:paramtypes",[])],KK.prototype,"composedEmojiSelection",null);
_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],KK.prototype,"onClick",null);_.J([_.xA("data.emoji.multiSelectorThumbnailRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KK.prototype,"onMultiSelectorThumbnailRowChanged",null);_.J([_.M("data","userSelection","composedEmojiSelection"),_.R("design:type",String),_.R("design:paramtypes",[])],KK.prototype,"draftEmojiUrl",null);
_.J([_.Zp({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],KK);
_.Y(KK,"yt-emoji-multi-person-selector",function(){if(cIK===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;z_q===void 0&&(z_q=document.createElement("template"));var w=z_q;V.call(W,w.content.cloneNode(!0),y.content.firstChild);cIK=y}y=cIK;return y},{mode:2});var K8E;var p2K;var pK=function(){var y=_.u.apply(this,arguments)||this;y.tooltip_=null;return y};
_.p(pK,_.u);_.E=pK.prototype;_.E.dataChanged_=function(){var y;if((y=this.data)==null?0:y.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.i6(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Mg)(this.tooltip_).textContent=this.data.tooltip};
_.E.computeTargetId=function(){var y;return((y=this.data)==null?void 0:y.targetId)||""};
_.E.computeId_=function(y){return y};
_.E.computeIcon_=function(y){return _.D8(y)};
_.E.onTap_=function(){this.active=!this.active;_.h1(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.E.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("active-changed",this.active))};
_.CM.Object.defineProperties(pK.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return this.data.icon.iconType==="SUPER_STICKER";var V,w;return((V=this.data)==null?void 0:(w=V.icon)==null?void 0:w.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
pK.prototype.activeChangedForBinding=pK.prototype.activeChangedForBinding;pK.prototype.dataChanged_=pK.prototype.dataChanged_;_.J([_.m(_.FV.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],pK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pK.prototype,"data",void 0);_.J([_.q({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.R("design:type",String)],pK.prototype,"id",void 0);
_.J([_.q({computed:"computeTargetId(data.targetId)"}),_.R("design:type",String)],pK.prototype,"targetId",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],pK.prototype,"active",void 0);_.J([_.q({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.R("design:type",String)],pK.prototype,"icon",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pK.prototype,"dataChanged_",null);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pK.prototype,"iconFilled",null);_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pK.prototype,"activeChangedForBinding",null);_.J([_.Zp({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],pK);
_.Y(pK,"yt-emoji-picker-category-button-renderer",function(){if(p2K===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;K8E===void 0&&(K8E=document.createElement("template"));var w=K8E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);p2K=y}y=p2K;return y},{mode:2});var iYz;var fnK;var fK=function(){var y=_.u.apply(this,arguments)||this;y.ariaLabel=null;y.ariaActivedescendant=null;y.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};y.JSC$14046_ignoreNextFocus_=!1;y.longPressTimeoutId=-1;return y};
_.p(fK,_.u);_.E=fK.prototype;_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.E.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.E.emojiChanged_=function(){this.changeFocus_(0,!1);for(var y=_.BC(),W=0;W<this.emoji.length;W++){var V={veType:88013,elementIndex:W},w=this.emoji[W];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(V=_.Yc(y,V))&&(w.visualElement=V)}};
_.E.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.E.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.E.emojiSkinToneChanged_=function(y){this.skinTone=y};
_.E.dataChanged=function(){this.data&&this.data.emojiData&&L2i(this.emojiManager,this.data.emojiData)};
_.E.emojiUrl=function(y){y=this.getEmoji(y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.f5(y,24)||""};
_.E.emojiAlt=function(y){var W=this.get("image.accessibility.accessibilityData.label",y);return W?W:y.isCustomEmoji?y.shortcuts[0]:y.emojiId};
_.E.emojiAriaLabel=function(y){return y.shortcuts?y.shortcuts[0]:""};
_.E.emojiAriaSelected=function(y,W,V){return y&&V==W?"true":"false"};
_.E.getEmoji=function(y){if(this.emojiManager)return this.shouldUseStickyPreferences?cpq(this.emojiManager,y):tC(this.emojiManager,y)};
_.E.computeId_=function(y){return y.categoryId||""};
_.E.computeEmoji=function(y){var W=this;return this.emojiManager?y.emojiIds?y.emojiIds.map(function(V){return V?_.we(W.emojiManager,V):null}).filter(U3d):y.emojiData?y.emojiData.map(function(V){var w=!!V.emojiId&&_.we(W.emojiManager,V.emojiId);
return w?Object.assign({},w,V):null}).filter(U3d):[]:[]};
_.E.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.E.computeAriaLabel_=function(y){return _.OT(y)};
_.E.computeAriaActivedescendant_=function(y,W){return y&&y[W]?y[W].emojiId||"":""};
_.E.handleLongPressEmojiWithVariants=function(y,W){this.changeFocusToEmoji(y.emojiId,!1);this.openVariantSelector(y,W)};
_.E.onMouseDown=function(y){var W=this;this.hostElement!==document.activeElement&&(this.JSC$14046_ignoreNextFocus_=!0);if(y.button===0){var V=_.vW(y);if(V instanceof HTMLImageElement){var w=_.i6(this.hostElement).querySelector("#repeat").itemForElement(V);this.emojiContainsVariants(w)&&(this.longPressTimeoutId=setTimeout(function(){W.handleLongPressEmojiWithVariants(w,V)},500))}}};
_.E.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.E.onFocus=function(){this.JSC$14046_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14046_ignoreNextFocus_=!1};
_.E.onBlur_=function(){this.showFocus=!1};
_.E.emojiContainsVariants=function(y){return!!(y&&y.variantIds&&y.variantIds.length)};
_.E.onClick=function(y){clearTimeout(this.longPressTimeoutId);y=_.vW(y);if(y instanceof HTMLImageElement){var W=y.id;this.changeFocusToEmoji(W,!1);var V=this.getEmoji(W),w;if(w=this.shouldUseStickyPreferences&&this.emojiContainsVariants(V)){var t;w=!((t=this.emojiManager.emojiMap[W])!=null&&t.stickyPrefId)}w?(t=_.i6(this.hostElement).querySelector("#repeat").itemForElement(y),this.openVariantSelector(t,y)):_.h1(this.hostElement,"yt-emoji-select",V)}};
_.E.isActiveEmojiWithVariants=function(y,W){return y&&W?W.stickyPrefId?y===W.stickyPrefId:y===W.emojiId:!1};
_.E.onCloseEmojiVariantSelector=function(y){this.activeEmojiWithVariantsId===y&&(this.activeEmojiWithVariantsId="")};
_.E.onMouseOver_=function(y){y=_.vW(y);y instanceof HTMLImageElement&&_.h1(this.hostElement,"yt-emoji-hover",_.we(this.emojiManager,y.id))};
_.E.changeFocus_=function(y,W){this.focusedIndex=(this.focusedIndex+y+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(y=this.emoji[this.focusedIndex],W&&(this.showFocus=!0,_.i6(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.h1(this.hostElement,"yt-emoji-hover",y)))};
_.E.changeFocusToEmoji=function(y,W){if(y){var V=this.emoji.findIndex(function(w){return w.emojiId===y});
V!==-1&&this.changeFocus_(V-this.focusedIndex,W)}};
_.E.onKeyDown_=function(y){switch(y.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var W=this.emoji[this.focusedIndex];if(W&&W.emojiId){if(this.emojiContainsVariants(W)){var V=_.i6(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(W,V)}else _.h1(this.hostElement,"yt-emoji-select",tC(this.emojiManager,W.emojiId)),this.hostElement.focus();y.preventDefault()}}break;case 40:this.changeFocus_(1,!0);y.preventDefault();break;case 38:this.changeFocus_(-1,!0),
y.preventDefault()}};
_.E.onEmojiStickyPreferenceChanged=function(y,W){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&y.emojiId&&y.variantIds&&y.variantIds.includes(W)&&this.activeEmojiWithVariantsId!==W&&this.setStickyEmojiPreference(y.emojiId,W)};
_.E.openVariantSelector=function(y,W){this.activeEmojiWithVariantsId=y.stickyPrefId||y.emojiId||"";_.h1(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:y,target:W})};
_.E.setStickyEmojiPreference=function(y,W){if(this.data){var V=this.emoji.findIndex(function(t){return t.emojiId===y});
if(V!==-1){var w=this.emoji[V];w.stickyPrefId=W;this.set("emoji."+V,Object.assign({},w));this.activeEmojiWithVariantsId=W}}};
fK.prototype.onKeyDown_=fK.prototype.onKeyDown_;fK.prototype.onMouseOver_=fK.prototype.onMouseOver_;fK.prototype.onClick=fK.prototype.onClick;fK.prototype.onBlur_=fK.prototype.onBlur_;fK.prototype.onFocus=fK.prototype.onFocus;fK.prototype.onMouseUp=fK.prototype.onMouseUp;fK.prototype.onMouseDown=fK.prototype.onMouseDown;fK.prototype.dataChanged=fK.prototype.dataChanged;fK.prototype.disableIncrementalLoadingChanged_=fK.prototype.disableIncrementalLoadingChanged_;fK.prototype.emojiManagerChanged_=fK.prototype.emojiManagerChanged_;
fK.prototype.emojiChanged_=fK.prototype.emojiChanged_;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],fK.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fK.prototype,"data",void 0);_.J([_.q({computed:"computeId_(data)"}),_.R("design:type",String)],fK.prototype,"id",void 0);_.J([_.q({computed:"computeEmoji(data)"}),_.R("design:type",Array)],fK.prototype,"emoji",void 0);_.J([_.q(),_.R("design:type",Number)],fK.prototype,"skinTone",void 0);
_.J([_.q(),_.R("design:type",_.Vf)],fK.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Boolean)],fK.prototype,"disableIncrementalLoading",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],fK.prototype,"focusedIndex",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],fK.prototype,"showFocus",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.R("design:type",Object)],fK.prototype,"ariaLabel",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.R("design:type",Object)],fK.prototype,"ariaActivedescendant",void 0);_.J([_.q({value:60}),_.R("design:type",Number)],fK.prototype,"domRepeatTargetFramerate",void 0);_.J([_.q({value:1}),_.R("design:type",Number)],fK.prototype,"domRepeatInitialCount",void 0);_.J([_.q({value:""}),_.R("design:type",String)],fK.prototype,"activeEmojiWithVariantsId",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],fK.prototype,"shouldUseStickyPreferences",void 0);_.J([_.xA("emoji"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"emojiChanged_",null);_.J([_.xA("emojiManager"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"emojiManagerChanged_",null);
_.J([_.xA("disableIncrementalLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"disableIncrementalLoadingChanged_",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"dataChanged",null);_.J([_.l6("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],fK.prototype,"onMouseDown",null);
_.J([_.l6("mouseup"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"onMouseUp",null);_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"onFocus",null);_.J([_.l6("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fK.prototype,"onBlur_",null);
_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],fK.prototype,"onClick",null);_.J([_.l6("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],fK.prototype,"onMouseOver_",null);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],fK.prototype,"onKeyDown_",null);
_.J([_.Zp({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],fK);
_.Y(fK,"yt-emoji-picker-category-renderer",function(){if(fnK===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;iYz===void 0&&(iYz=document.createElement("template"));var w=iYz;V.call(W,w.content.cloneNode(!0),y.content.firstChild);fnK=y}y=fnK;return y},{mode:2});var TCm;var m7s;var M_E;var qoJ;var T8=function(){var y=_.u.apply(this,arguments)||this;y.ariaLabel=null;y.ariaActivedescendant=null;y.getFormattedStringRawText=_.OT;y.JSC$14052_ignoreNextFocus_=!1;return y};
_.p(T8,_.u);_.E=T8.prototype;_.E.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")};
_.E.emojiUrl=function(y){var W,V;y=(W=tC(this.emojiManager,y,!0))==null?void 0:(V=W.image)==null?void 0:V.thumbnails;return _.f5(y,24)||""};
_.E.emojiAlt=function(y){var W=this.get("image.accessibility.accessibilityData.label",y);return W?W:y.isCustomEmoji?y.shortcuts[0]:y.emojiId};
_.E.emojiId=function(y){return"emoji"+y};
_.E.computeId_=function(y){return y.categoryId||""};
_.E.computeAriaActivedescendant_=function(y){return this.emoji&&y<this.emoji.length?this.emojiId(y):""};
_.E.emojiChanged_=function(){this.changeFocus_(0,!1);for(var y=_.BC(),W=0;W<this.emoji.length;W++){var V={veType:88013,elementIndex:W},w=this.emoji[W];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(V=_.Yc(y,V))&&(w.visualElement=V)}};
_.E.computeEmoji_=function(y){var W=this;return this.emojiManager?y.emojiIds.map(function(V){return _.we(W.emojiManager,V,!0)}).filter(uKv):[]};
_.E.titleOffsetChanged_=function(){var y=this.hostElement.getBoundingClientRect(),W=_.i6(this.hostElement).querySelector("#title").getBoundingClientRect();y=Math.max(0,Math.min(this.titleOffset,y.height-W.height));_.i6(this.hostElement).querySelector("#title").style.top=y+"px"};
_.E.onEmojiMouseOver_=function(y){_.h1(this.hostElement,"yt-emoji-hover",y.model.item)};
_.E.onEmojiTap_=function(y){this.data.command&&(y=sTG(_.hs().resolve(_.eX(Vp)),this.data.command,y),_.h1(this.hostElement,"yt-navigate",y))};
_.E.emojiAriaLabel=function(y){return y.shortcuts[0]};
_.E.emojiAriaSelected=function(y,W,V){return y&&V==W?"true":"false"};
_.E.changeFocus_=function(y,W){var V=this.emoji.length;this.focusedIndex=(this.focusedIndex+y+V)%V;y=this.emoji[this.focusedIndex];if(W){var w;(w=_.i6(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||w.scrollIntoView(!1);_.h1(this.hostElement,"yt-emoji-hover",y)}};
_.E.onMouseDown_=function(){this.JSC$14052_ignoreNextFocus_=!0};
_.E.onFocus_=function(){this.JSC$14052_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14052_ignoreNextFocus_=!1};
_.E.onBlur_=function(){this.showFocus=!1};
_.E.onKeyDown_=function(y){switch(y.keyCode){case 13:this.onEmojiTap_(y);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);y.preventDefault();break;case 38:this.changeFocus_(-1,!0),y.preventDefault()}};
T8.prototype.onKeyDown_=T8.prototype.onKeyDown_;T8.prototype.onBlur_=T8.prototype.onBlur_;T8.prototype.onFocus_=T8.prototype.onFocus_;T8.prototype.onMouseDown_=T8.prototype.onMouseDown_;T8.prototype.onEmojiTap_=T8.prototype.onEmojiTap_;T8.prototype.titleOffsetChanged_=T8.prototype.titleOffsetChanged_;T8.prototype.emojiChanged_=T8.prototype.emojiChanged_;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],T8.prototype,"data",void 0);_.J([_.q({computed:"computeId_(data)"}),_.R("design:type",String)],T8.prototype,"id",void 0);_.J([_.q({computed:"computeEmoji_(data)"}),_.R("design:type",Array)],T8.prototype,"emoji",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],T8.prototype,"titleOffset",void 0);_.J([_.q({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.R("design:type",Object)],T8.prototype,"ariaLabel",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.R("design:type",Object)],T8.prototype,"ariaActivedescendant",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],T8.prototype,"showFocus",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],T8.prototype,"focusedIndex",void 0);_.J([_.q(),_.R("design:type",_.Vf)],T8.prototype,"emojiManager",void 0);
_.J([_.xA("emoji"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T8.prototype,"emojiChanged_",null);_.J([_.xA("titleOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T8.prototype,"titleOffsetChanged_",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],T8.prototype,"onEmojiTap_",null);
_.J([_.l6("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T8.prototype,"onMouseDown_",null);_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T8.prototype,"onFocus_",null);_.J([_.l6("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T8.prototype,"onBlur_",null);
_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],T8.prototype,"onKeyDown_",null);_.J([_.Zp({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],T8);
_.Y(T8,"yt-emoji-picker-upsell-category-renderer",function(){if(qoJ===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;M_E===void 0&&(M_E=document.createElement("template"));var w=M_E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);qoJ=y}y=qoJ;return y},{mode:2});var U7f;var uaQ;var mo=function(){var y=_.u.apply(this,arguments)||this;y.scrollAction="lock";y.verticalAlign="top";return y};
_.p(mo,_.u);_.E=mo.prototype;_.E.onClick=function(y){y=_.vW(y);y instanceof HTMLImageElement&&_.h1(this.hostElement,"yt-emoji-select",_.we(this.emojiManager,y.id))};
_.E.openSelector=function(){this.ironOverlayBehavior.open()};
_.E.onDomChange=function(){d72(this.ytEmojiSelectorBehavior)};
_.E.computeIsFamilySelector=function(y){var W;return(y==null?void 0:(W=y.emoji)==null?void 0:W.emojiId)==="\ud83d\udc6a"};
_.E.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var y=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];y&&y.emojiId&&(_.h1(this.hostElement,"yt-emoji-select",_.we(this.emojiManager,y.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.CM.Object.defineProperties(mo.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V,w;return this.emojiManager&&((W=this.data)==null?0:(V=W.emoji)==null?0:(w=V.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.we(y.emojiManager,t)}).filter(function(t){return!!t}):[]}}});
mo.prototype.onClick=mo.prototype.onClick;_.J([_.m(_.Pq),_.R("design:type",Object)],mo.prototype,"ironOverlayBehavior",void 0);_.J([_.m(L8J),_.R("design:type",Object)],mo.prototype,"ytEmojiSelectorBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mo.prototype,"data",void 0);_.J([_.q(),_.R("design:type",_.Vf)],mo.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Object)],mo.prototype,"scrollAction",void 0);_.J([_.q(),_.R("design:type",Object)],mo.prototype,"verticalAlign",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.R("design:type",Boolean)],mo.prototype,"isFamilySelector",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],mo.prototype,"emojiVariants",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],mo.prototype,"onClick",null);_.J([_.Zp({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],mo);
_.Y(mo,"yt-emoji-variant-selector",function(){if(uaQ===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;U7f===void 0&&(U7f=document.createElement("template"));var w=U7f;V.call(W,w.content.cloneNode(!0),y.content.firstChild);uaQ=y}y=uaQ;return y},{mode:2});var Sof=/:/g,D7r=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],M$=function(){var y=_.u.apply(this,arguments)||this;y.emojiVariantSelector=null;y.emojiMultiPersonSelector=null;y.identity=_.Jv;y.lastAnimationTime_=0;y.animationStart_=null;y.animationEnd_=null;return y};
_.p(M$,_.u);_.E=M$.prototype;
_.E.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}}};
_.E.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.FX)};
_.E.attached=function(){_.mU&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&zOE(this.emojiManager)};
_.E.dataChanged=function(){var y;if((y=this.data)==null?0:y.categories){y=this.emojiManager;var W=this.getCustomEmojiIds();y.pickerCustomEmojiIds=[].concat(_.GC(PrA),_.GC(W))}};
_.E.getCustomEmojiIds=function(){var y,W=(y=this.data.categories)==null?void 0:y.find(function(F){var I;return((I=F.emojiPickerCategoryRenderer)==null?void 0:I.categoryId)&&D7r.includes(F.emojiPickerCategoryRenderer.categoryId)}),V;
y=(V=this.data.categories)==null?void 0:V.find(function(F){return F.emojiPickerUpsellCategoryRenderer});
var w,t;return[W==null?void 0:(w=W.emojiPickerCategoryRenderer)==null?void 0:w.emojiIds,y==null?void 0:(t=y.emojiPickerUpsellCategoryRenderer)==null?void 0:t.emojiIds].flat().filter(function(F){return!!F})};
_.E.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.E.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.E.updateCategoriesAndPlaceholderInternal=function(y,W){var V=this;y&&W&&(this.categories=y.categories||[],this.categoryButtons=y.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Er(function(){V.updateButtons_()}))};
_.E.computeId_=function(y){return y.id||""};
_.E.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(y){return y.emojiPickerCategoryRenderer&&y.emojiPickerCategoryRenderer.emojiData}):!1};
_.E.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.E.onShowEmojiVariantSelector=function(y){var W=y.detail.emojiData;W.variantIds&&W.variantIds.length&&(W.multiSelectorThumbnailRow&&W.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:W,target:y.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:W,target:y.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.E.onIronOverlayClosed=function(y){var W=cpq(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");W&&y.composedPath&&(y.composedPath().includes(_.i6(this.hostElement).querySelector("#emoji-variant-selector"))||y.composedPath().includes(_.i6(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ow(this.hostElement,"yt-close-emoji-variant-selector",[W.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.E.onEmojiVariantSelectorMouseup=function(y){var W=y.target.firstChild;this.variantSelectorOpened&&W&&_.Er(function(){W.noCancelOnOutsideClick=!1},100)};
_.E.onEmojiVariantSelectorMousedown=function(y){y=y.target.firstChild;this.variantSelectorOpened&&y&&(y.noCancelOnOutsideClick=!1)};
_.E.onSelectCategory_=function(y){var W=this.search!="";this.search="";for(var V=_.i6(this.hostElement).querySelector("#categories").children,w=0;w<V.length;w++){var t=V[w];if(t.id==y.detail.categoryId){W?(_.i6(this.hostElement).querySelector("#categories").scrollTop=t.offsetTop,this.updateButtons_()):(this.animationStart_=_.i6(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=t.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.E.onEmojiHover_=function(y){this.placeholder=y.detail.shortcuts?y.detail.shortcuts[0]:""};
_.E.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.E.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.E.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.E.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.E.computeSearchCategory_=function(y){y=y.replace(Sof,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();y=y.split(" ");for(var W=[],V=this.emojiManager.emojis,w=0;w<V.length;w++){var t=V[w];if(t.searchTerms)for(var F=0;F<t.searchTerms.length;F++){for(var I=t.searchTerms[F].toLocaleLowerCase(),P=!1,C=0;C<y.length;C++)if(I.indexOf(y[C])!=-1){P=!0;break}if(P&&(!t.isCustomEmoji||!t.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(t.emojiId))){W.push(t.emojiId);
break}}}return{categoryId:-1,emojiIds:W}};
_.E.computeSearchEmptyMessage_=function(y,W){return y&&W&&W.emojiIds&&W.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.E.computeSearching_=function(y){return this.emojiManager&&y.replace(Sof,"").length>1};
_.E.computeSkinToneHidden=function(){var y;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((y=this.data)==null||!y.hideSkinTonePicker)};
_.E.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.E.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.E.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.E.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.E.selectSkinTone_=function(y){y=Number(y.target.getAttribute("tone"));this.set("emojiManager.skinTone",y);_.ow(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[y]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.E.skinToneChanged_=function(){_.i6(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var y=_.i6(this.hostElement).querySelector("#dropdown-content").children,W=0;W<y.length;W++)W===this.skinTone?y[W].setAttribute("selected",""):y[W].removeAttribute("selected")};
_.E.animateScroll_=function(y){this.lastAnimationTime_||(this.lastAnimationTime_=y);y-=this.lastAnimationTime_;y<200?(_.i6(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*y/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.i6(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.E.searchChanged_=function(){this.updateButtons_()};
_.E.updateButtons_=function(){var y=null;if(!this.search)for(var W=_.i6(this.hostElement).querySelector("#categories").scrollTop,V=_.i6(this.hostElement).querySelector("#categories").children,w=0;w<V.length;w++){var t=V[w];t.offsetTop<=W&&(y=t.id)}W=_.i6(this.hostElement).querySelector("#category-buttons").children;for(V=0;V<W.length;V++)w=W[V],w.active=w.id===y};
M$.prototype.searchChanged_=M$.prototype.searchChanged_;M$.prototype.skinToneChanged_=M$.prototype.skinToneChanged_;M$.prototype.onEmojiHover_=M$.prototype.onEmojiHover_;M$.prototype.onSelectCategory_=M$.prototype.onSelectCategory_;M$.prototype.onShowEmojiVariantSelector=M$.prototype.onShowEmojiVariantSelector;M$.prototype.updateCategoriesAndPlaceholder_=M$.prototype.updateCategoriesAndPlaceholder_;M$.prototype.dataChanged=M$.prototype.dataChanged;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],M$.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],M$.prototype,"data",void 0);_.J([_.q({value:function(){return[]}}),
_.R("design:type",Array)],M$.prototype,"categories",void 0);_.J([_.q({value:function(){return[]}}),
_.R("design:type",Array)],M$.prototype,"categoryButtons",void 0);_.J([_.q({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.R("design:type",Boolean)],M$.prototype,"disableScroll",void 0);_.J([_.q({computed:"computeId_(data)",reflectToAttribute:!0}),_.R("design:type",String)],M$.prototype,"id",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],M$.prototype,"selected",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],M$.prototype,"disableIncrementalLoading",void 0);_.J([_.q(),_.R("design:type",String)],M$.prototype,"placeholder",void 0);_.J([_.q({value:""}),_.R("design:type",String)],M$.prototype,"search",void 0);_.J([_.q({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.R("design:type",Boolean)],M$.prototype,"searching",void 0);_.J([_.q({computed:"computeSearchCategory_(search)"}),_.R("design:type",Object)],M$.prototype,"searchCategory",void 0);
_.J([_.q({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.R("design:type",Object)],M$.prototype,"searchEmptyMessage",void 0);_.J([_.q({computed:"identity(emojiManager.skinTone)"}),_.R("design:type",Number)],M$.prototype,"skinTone",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],M$.prototype,"skinToneOpened",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],M$.prototype,"variantSelectorOpened",void 0);
_.J([_.q({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.R("design:type",Boolean)],M$.prototype,"skinToneHidden",void 0);_.J([_.q(),_.R("design:type",_.Vf)],M$.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Object)],M$.prototype,"emojiVariantSelector",void 0);_.J([_.q(),_.R("design:type",Object)],M$.prototype,"emojiMultiPersonSelector",void 0);
_.J([_.q({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.R("design:type",Boolean)],M$.prototype,"shouldUseStickyPreferences",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],M$.prototype,"dataChanged",null);_.J([_.xA("data","selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],M$.prototype,"updateCategoriesAndPlaceholder_",null);
_.J([_.l6("yt-show-emoji-variant-selector"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],M$.prototype,"onShowEmojiVariantSelector",null);_.J([_.l6("yt-emoji-picker-select-category"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],M$.prototype,"onSelectCategory_",null);_.J([_.l6("yt-emoji-hover"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],M$.prototype,"onEmojiHover_",null);
_.J([_.xA("skinTone"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],M$.prototype,"skinToneChanged_",null);_.J([_.xA("search"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],M$.prototype,"searchChanged_",null);_.J([_.Zp({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],M$);
_.Y(M$,"yt-emoji-picker-renderer",function(){if(m7s===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;TCm===void 0&&(TCm=document.createElement("template"));var w=TCm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);m7s=y}y=m7s;return y},{mode:2});var q$=function(){var y=_.u.apply(this,arguments)||this;y.emojiManager=_.FX;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.selectedIndex=1;y.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return y};
_.p(q$,_.u);_.E=q$.prototype;_.E.handleEmojiCustomizationVisible=function(y){this.emojiPickerRenderer.selected=y;this.selectedIndex=1;y?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.E.emojiCustomizationSetChanged=function(){var y;(y=this.data)!=null&&y.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.gm(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.E.updateSaveButtonState=function(y){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.B5("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:y}))};
_.E.emojiUrl=function(y){y=_.we(this.emojiManager,y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.f5(y,24)||""};
_.E.emojiAlt=function(y){var W=_.we(this.emojiManager,y);if(!W)return y;var V,w,t,F=(W==null?void 0:(V=W.image)==null?void 0:(w=V.accessibility)==null?void 0:(t=w.accessibilityData)==null?void 0:t.label)||"";return F?F:W.isCustomEmoji?W.shortcuts[0]:W.emojiId||y};
_.E.emojiAriaLabel=function(y){var W,V;return((W=_.we(this.emojiManager,y))==null?void 0:(V=W.shortcuts)==null?void 0:V[0])||y};
_.E.onEmojiClick=function(y){y.model.index!==0&&(this.selectedIndex=y.model.index)};
_.E.onEmojiSelect=function(y){y=y.detail;var W,V;((W=this.data)==null?0:W.emojiCustomizationSetEntityKey)&&((V=this.emojiCustomizationSet)==null?0:V.emojiId)&&y.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,y.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.B5("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,y.emojiId,this.selectedIndex)}))};
_.E.canEditEmoji=function(y,W,V){y=y.indexOf(W);return y===V||y===0||V===0?!1:!0};
_.E.getUpdatedEmojiIdList=function(y,W,V){var w=y.indexOf(W);y=[].concat(_.GC(y));w>=0&&(y[w]=y[V]);y[V]=W;return y};
_.CM.Object.defineProperties(q$,{template:{configurable:!0,enumerable:!0,get:function(){if(Qoi===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;bWz===void 0&&(bWz=document.createElement("template"));var w=bWz;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Qoi=y}y=Qoi;return y}}});
q$.prototype.onEmojiSelect=q$.prototype.onEmojiSelect;_.J([_.m(_.tZ),_.R("design:type",Object)],q$.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.J([_.s$("yt-emoji-picker-renderer"),_.R("design:type",Object)],q$.prototype,"emojiPickerRenderer",void 0);
_.J([_.q({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(y,W){return _.UB(y.entities,"emojiCustomizationSetEntity",W)},
observer:"emojiCustomizationSetChanged"}),_.R("design:type",Object)],q$.prototype,"emojiCustomizationSet",void 0);_.J([_.q(),_.R("design:type",Object)],q$.prototype,"originalEmojiSet",void 0);_.J([_.q(),_.R("design:type",_.Vf)],q$.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Object)],q$.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],q$.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],q$.prototype,"selectedIndex",void 0);
_.J([_.l6("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],q$.prototype,"onEmojiSelect",null);_.J([_.Zp({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],q$);var lnq;var x7q;var kx6;var sTR;var UR=function(){var y=_.u.apply(this,arguments)||this;y.authorBadges=[];return y};
_.p(UR,_.u);_.E=UR.prototype;_.E.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.E.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]]"}}}}}};
_.E.dataChanged=function(){var y=W74(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",y)};
_.E.updateMessage=function(){var y=this.data.message,W=_.i6(_.i6(this.hostElement).querySelector("#message"));W.textContent="";y&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.E.shouldSupportWholeItemClick=function(){return!0};
_.E.onShowOriginalClick=function(y){y.preventDefault();this.showOriginal=!0};
_.E.computeShowBar=function(y,W,V){return y&&W||V};
_.E.computeAuthorBadges=function(y){return y.authorBadges||[]};
_.E.computeAuthorIsOwner=function(y){return!!VoL(y.authorBadges,"owner")};
_.E.computeAuthorNameColor=function(y){var W;if(_.e("live_chat_author_name_color_usernames")&&(y==null?0:(W=y.authorName)==null?0:W.simpleText))return _.IoG(_.g64(y.authorName.simpleText));if(_.e("live_chat_seed_color_usernames")&&(y==null?0:y.authorSeedColorArgb))return _.IoG(_.uE(y.authorSeedColorArgb));if(_.e("live_chat_colored_usernames"))return"#cc0000";var V;return _.e("live_chat_simple_color_usernames")&&(y==null?0:(V=y.authorName)==null?0:V.simpleText)&&(y==null?0:y.authorUsernameColorLight)&&
(y==null?0:y.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.uE(y.authorUsernameColorDark):_.uE(y.authorUsernameColorLight):""};
UR.prototype.updateMessage=UR.prototype.updateMessage;UR.prototype.dataChanged=UR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],UR.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],UR.prototype,"data",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"showOriginal",void 0);_.J([_.q({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"isDimmed",void 0);_.J([_.q({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"showBar",void 0);
_.J([_.q({computed:"computeAuthorBadges(data)"}),_.R("design:type",Array)],UR.prototype,"authorBadges",void 0);_.J([_.q({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"authorIsOwner",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"inCollapsedBanner",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"inBanner",void 0);
_.J([_.q({value:_.e("live_chat_hide_avatars"),reflectToAttribute:!0}),_.R("design:type",Boolean)],UR.prototype,"avatarHidden",void 0);_.J([_.q({computed:"computeAuthorNameColor(data)"}),_.R("design:type",String)],UR.prototype,"authorNameColor",void 0);_.J([_.q(),_.R("design:type",_.PK)],UR.prototype,"participantsManager",void 0);_.J([_.q({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.R("design:type",Object)],UR.prototype,"filledButtonOverrides",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UR.prototype,"dataChanged",null);_.J([_.xA("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UR.prototype,"updateMessage",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],UR);
_.Y(UR,"yt-live-chat-text-message-renderer",function(){if(sTR===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;kx6===void 0&&(kx6=document.createElement("template"));var w=kx6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);sTR=y}y=sTR;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var uf=function(){var y=_.u.apply(this,arguments)||this;y.tonalButtonOverrides={type:"tonal",style:"overlay"};return y};
_.p(uf,_.u);
uf.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]]"}}}}}};
uf.prototype.shouldSupportInlineActionButtons=function(){return!0};
uf.prototype.shouldSupportWholeItemClick=function(){return!0};
_.CM.Object.defineProperties(uf.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],uf.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uf.prototype,"data",void 0);_.J([_.q(),_.R("design:type",_.PK)],uf.prototype,"participantsManager",void 0);
_.J([_.q(),_.R("design:type",Object)],uf.prototype,"tonalButtonOverrides",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.infoDialogButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],uf.prototype,"hasInfoDialogButton",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],uf);
_.Y(uf,"yt-live-chat-auto-mod-message-renderer",function(){if(x7q===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;lnq===void 0&&(lnq=document.createElement("template"));var w=lnq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);x7q=y}y=x7q;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var AIi;var Yos;var BCI;var JIR=function(){return _.u.apply(this,arguments)||this};
_.p(JIR,_.u);_.J([_.q(),_.R("design:type",Object)],JIR.prototype,"data",void 0);_.J([_.k({is:"ytd-factoid-renderer",disableElementRegistration:!0})],JIR);
_.Y(JIR,"ytd-factoid-renderer",function(){if(BCI!==void 0)return BCI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return BCI=y},{mode:1});var SV=function(){return _.u.apply(this,arguments)||this};
_.p(SV,_.u);SV.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.J([_.q(),_.R("design:type",Object)],SV.prototype,"data",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],SV);
_.Y(SV,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Yos===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;AIi===void 0&&(AIi=document.createElement("template"));var w=AIi;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Yos=y}y=Yos;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var R_i;var jTf;var D9=function(){return _.u.apply(this,arguments)||this};
_.p(D9,_.u);D9.prototype.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Boolean)],D9.prototype,"menuFocused",void 0);_.J([_.q(),_.R("design:type",Object)],D9.prototype,"data",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],D9.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],D9);
_.Y(D9,"yt-live-chat-donation-announcement-renderer",function(){if(jTf===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;R_i===void 0&&(R_i=document.createElement("template"));var w=R_i;V.call(W,w.content.cloneNode(!0),y.content.firstChild);jTf=y}y=jTf;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var $7r;var nNJ,HY2=function(){if(nNJ!==void 0)return nNJ;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;$7r===void 0&&($7r=document.createElement("template"));var w=$7r;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return nNJ=y};var lf=function(){return _.u.apply(this,arguments)||this};
_.p(lf,_.u);_.CM.Object.defineProperties(lf,{template:{configurable:!0,enumerable:!0,get:function(){return HY2()}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lf.prototype,"data",void 0);_.J([_.Zp({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],lf);_.Y(lf,"yt-live-chat-empty-feed-view-model",function(){return HY2()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var X2m;var anr;var x5=function(){return _.u.apply(this,arguments)||this};
_.p(x5,_.u);x5.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"}}}}}};
_.CM.Object.defineProperties(x5.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var y,W;return{runs:[{text:(y=this.data)==null?void 0:(W=y.channelName)==null?void 0:W.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.channelBadges)return y;var V;W=_.N((V=this.data)==null?void 0:V.channelBadges);for(V=W.next();!V.done;V=W.next()){V=_.h(V.value,YKK);var w=void 0,t=void 0;if((w=V)==null?0:(t=w.badgeImage)==null?0:t.sources)w=void 0,t={liveChatAuthorBadgeRenderer:{tooltip:V.tooltip,accessibility:{accessibilityData:{label:(w=_.h(V.rendererContext,_.Bq))==null?void 0:w.label}}}},V.badgeImage.sources[0].clientResource?t.liveChatAuthorBadgeRenderer.icon=
{iconType:V.badgeImage.sources[0].clientResource.imageName}:t.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:V.badgeImage.sources},y.push(t)}return y}}});
_.J([_.q(),_.R("design:type",Object)],x5.prototype,"data",void 0);_.J([_.M("data.channelName"),_.R("design:type",Object),_.R("design:paramtypes",[])],x5.prototype,"channelName",null);_.J([_.M("data.channelBadges"),_.R("design:type",Array),_.R("design:paramtypes",[])],x5.prototype,"channelBadges",null);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],x5);
_.Y(x5,"yt-live-chat-identity-view-model",function(){if(anr===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;X2m===void 0&&(X2m=document.createElement("template"));var w=X2m;V.call(W,w.content.cloneNode(!0),y.content.firstChild);anr=y}y=anr;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Gxq;var rII;var bYm;var QT6;var k5=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;y.supportsInlineActionButtons=!0;return y};
_.p(k5,_.u);k5.prototype.ready=function(){var y;((y=document.querySelector("yt-live-chat-app"))==null?0:y.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
k5.prototype.dataChanged=function(y){var W=(0,_.Mg)(_.i6(this.hostElement).querySelector("#detail-text"));W.textContent="";(y==null?0:y.detailText)&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y.detailText))};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],k5.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({observer:"dataChanged"}),_.R("design:type",Object)],k5.prototype,"data",void 0);
_.J([_.q({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.R("design:type",Object)],k5.prototype,"hidden",void 0);_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],k5);
_.Y(k5,"yt-live-chat-legacy-paid-message-renderer",function(){if(QT6===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;bYm===void 0&&(bYm=document.createElement("template"));var w=bYm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);QT6=y}y=QT6;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var ZYs;var yFz;var WY6={},sR=function(){return _.YA.apply(this,arguments)||this};
_.p(sR,_.YA);sR.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
sR.prototype.onLiveChatMembershipItemBehaviorClick=sR.prototype.onLiveChatMembershipItemBehaviorClick;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sR.prototype,"data",void 0);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],sR.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.J([_.BW()],sR);
WY6.YtLiveChatMembershipItemBehavior=[sR.prototype,_.X.YtRendererBehavior];var AC=function(){var y=_.u.apply(this,arguments)||this;y.supportsInlineActionButtons=!0;y.hasPrimaryHeaderText=!1;y.showOnlyHeader=!1;y.authorBadges=[];y.modern=_.e("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.p(AC,_.u);_.E=AC.prototype;_.E.shouldSupportInlineActionButtons=function(){return!0};
_.E.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.E.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E.messageChanged=function(){var y=this.data.message,W=(0,_.Mg)(_.i6(this.hostElement).querySelector("#message"));W.textContent="";y&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.E.computeHasPrimaryHeaderText=function(y){return!(!y||!y.headerPrimaryText)};
_.E.computeShowOnlyHeader=function(y,W){return this.isMessageEmpty(y,W)};
_.E.computeAuthorBadges=function(y){return y.authorBadges||[]};
_.E.isMessageEmpty=function(y,W){return!y||y.empty?!0:!y.message&&!y.inputField&&!W};
_.E.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.E.getInputElement=function(){return _.i6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.E.inputFocus=function(){var y=this.getInputElement();y&&y.focus()};
_.E.inputInsertEmoji=function(y){var W=this.getInputElement();W&&W.insertEmoji(y)};
_.E.inputMessage=function(){var y=this.getInputElement();return y&&this.data.inputField?(y.completeEmojis(),_.NH(y.liveChatRichMessageInput)):null};
_.E.onFooterButtonClick=function(){this.data.footerButton&&_.h1(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.E.shouldSupportWholeItemClick=function(){return!0};
AC.prototype.isDeletedChanged=AC.prototype.isDeletedChanged;AC.prototype.messageChanged=AC.prototype.messageChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],AC.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(WY6.YtLiveChatMembershipItemBehavior),_.R("design:type",Object)],AC.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AC.prototype,"data",void 0);_.J([_.q({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.R("design:type",Object)],AC.prototype,"hasPrimaryHeaderText",void 0);_.J([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.R("design:type",Object)],AC.prototype,"showOnlyHeader",void 0);
_.J([_.q({computed:"computeAuthorBadges(data)"}),_.R("design:type",Array)],AC.prototype,"authorBadges",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],AC.prototype,"modern",void 0);_.J([_.xA("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AC.prototype,"messageChanged",null);_.J([_.xA("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AC.prototype,"isDeletedChanged",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],AC);
_.Y(AC,"yt-live-chat-membership-item-renderer",function(){if(yFz===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;ZYs===void 0&&(ZYs=document.createElement("template"));var w=ZYs;V.call(W,w.content.cloneNode(!0),y.content.firstChild);yFz=y}y=yFz;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var VCJ;var wHs;var Y5=function(){return _.u.apply(this,arguments)||this};
_.p(Y5,_.u);Y5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Y5.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Y5);
_.Y(Y5,"yt-live-chat-mode-change-message-renderer",function(){if(wHs===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;VCJ===void 0&&(VCJ=document.createElement("template"));var w=VCJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);wHs=y}y=wHs;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var tC6;var FYs;var BK=function(){return _.u.apply(this,arguments)||this};
_.p(BK,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],BK.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BK.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],BK);
_.Y(BK,"yt-live-chat-moderation-message-renderer",function(){if(FYs===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;tC6===void 0&&(tC6=document.createElement("template"));var w=tC6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);FYs=y}y=FYs;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var EO6;var NhI;var JC=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework");return y};
_.p(JC,_.u);JC.prototype.onClick=function(){var y;if((y=this.data)!=null&&y.onClickCommand){var W;_.xc.instance.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],JC.prototype,"modern",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],JC.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],JC.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],JC.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],JC);
_.Y(JC,"yt-live-chat-offer-click-count-message-renderer",function(){if(NhI===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;EO6===void 0&&(EO6=document.createElement("template"));var w=EO6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);NhI=y}y=NhI;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var IMJ;var gOs=function(){return _.u.apply(this,arguments)||this};
_.p(gOs,_.u);_.J([_.q(),_.R("design:type",Object)],gOs.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],gOs);
_.Y(gOs,"yt-live-chat-placeholder-item-renderer",function(){if(IMJ===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);IMJ=y}y=IMJ;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Po6;var CoA;var OIK=new gP(7),RL=function(){var y=_.u.apply(this,arguments)||this;y.data={};return y};
_.p(RL,_.u);RL.prototype.dataChanged=function(){var y;((y=this.data)==null?0:y.class)&&_.TA(this.hostElement,this.data.class,!0);var W;((W=this.oldData)==null?0:W.class)&&_.TA(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
RL.prototype.computeTimestampString=function(y){return OIK.format(new Date(y/1E3))};
RL.prototype.dataChanged=RL.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],RL.prototype,"data",void 0);_.J([_.q({computed:"computeTimestampString(data.timestampUsec)"}),_.R("design:type",String)],RL.prototype,"timestampString",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RL.prototype,"dataChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],RL);
_.Y(RL,"yt-live-chat-server-error-message",function(){if(CoA===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Po6===void 0&&(Po6=document.createElement("template"));var w=Po6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);CoA=y}y=CoA;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var vOJ;var d3K;var jV=function(){var y=_.u.apply(this,arguments)||this;y.defaultToFilledIcon=!1;return y};
_.p(jV,_.u);jV.prototype.computeHasPrimaryColorIcon=function(y){return y==="SPARK"||y==="SPONSORSHIP_STAR"};
jV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],jV.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jV.prototype,"defaultToFilledIcon",void 0);_.J([_.q(),_.R("design:type",Object)],jV.prototype,"data",void 0);
_.J([_.q({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.R("design:type",Boolean)],jV.prototype,"hasPrimaryColorIcon",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],jV);
_.Y(jV,"yt-live-chat-viewer-engagement-message-renderer",function(){if(d3K===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;vOJ===void 0&&(vOJ=document.createElement("template"));var w=vOJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);d3K=y}y=d3K;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var LYJ;var $5=function(){var y=_.u.apply(this,arguments)||this;y.modernUpdate=!1;y.buttonStyle="overlay";y.buttonType="filled";return y};
_.p($5,_.u);$5.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
$5.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$5.prototype,"modernUpdate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],$5.prototype,"buttonStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],$5.prototype,"buttonType",void 0);
_.J([_.k({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],$5);
_.Y($5,"ytd-ad-hover-text-button-renderer",function(){if(LYJ!==void 0)return LYJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return LYJ=y},{mode:1});var zWI;var nK=function(){var y=_.u.apply(this,arguments)||this;y.buttonOverrides={size:"XS"};y.modern=_.e("web_button_rework");return y};
_.p(nK,_.u);nK.prototype.onHelpTap=function(y){this.data&&this.data.informationDialog&&(_.h1(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),y.preventDefault(),y.stopPropagation())};
_.J([_.q(),_.R("design:type",Object)],nK.prototype,"buttonOverrides",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nK.prototype,"modern",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nK.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],nK);
_.Y(nK,"ytd-live-chat-purchased-product-message-renderer",function(){if(zWI!==void 0)return zWI;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return zWI=y},{mode:1});var cFz;var eWE;var HK=function(){var y=_.u.apply(this,arguments)||this;y.isContainerDeleted=!1;return y};
_.p(HK,_.u);HK.prototype.onContextMenuClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
HK.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))};
HK.prototype.isContainerDeletedChanged=HK.prototype.isContainerDeletedChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],HK.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],HK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],HK.prototype,"isContainerDeleted",void 0);
_.J([_.q(),_.R("design:type",String)],HK.prototype,"deletedStateMessage",void 0);_.J([_.xA("isContainerDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HK.prototype,"isContainerDeletedChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],HK);
_.Y(HK,"ytd-sponsorships-live-chat-header-renderer",function(){if(eWE!==void 0)return eWE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return eWE=y},{mode:1});var XX=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.p(XX,_.u);XX.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]]"}}}}}};
XX.prototype.onCtaButtonClick=function(){var y,W=_.h((y=this.data)==null?void 0:y.optInPrompt,_.wz);if(y=this.maybeGetButtonCommand(W)){var V;(V=_.BC())==null||V.clickCommand(y)}};
XX.prototype.maybeGetButtonCommand=function(y){return!y||!y.command||_.h(y.command,eYr)===void 0&&_.h(y.command,cSJ)===void 0?null:y.command};
XX.prototype.shouldHideOptinPrompt=function(y,W){return!y||W};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],XX.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XX.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],XX.prototype,"modern",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],XX);
_.Y(XX,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(cFz!==void 0)return cFz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cFz=y},{mode:1});var hWR;var aL=function(){return _.u.apply(this,arguments)||this};
_.p(aL,_.u);aL.prototype.onContextMenuClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
aL.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))};
aL.prototype.isDeletedChanged=aL.prototype.isDeletedChanged;_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],aL.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aL.prototype,"data",void 0);_.J([_.xA("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aL.prototype,"isDeletedChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],aL);
_.Y(aL,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(hWR!==void 0)return hWR;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hWR=y},{mode:1});var G8=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return y};
_.p(G8,_.u);_.E=G8.prototype;
_.E.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"}}}};
_.E.handleLiveChatAction=function(y){_.h(y,UcA)?this.handleMarkChatItemAsDeletedAction(_.h(y,UcA)):_.h(y,qKE)&&this.handleRemoveChatItemAction(_.h(y,qKE))};
_.E.handleLiveChatActions=function(y){y.forEach(this.handleLiveChatAction,this)};
_.E.handleMarkChatItemAsDeletedAction=function(y){var W=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(w,t){var F=Object.keys(w)[0];Object.values(w)[0].id===y.targetItemId&&W.markAsDeleted("data.items",t,F,y.deletedStateMessage,y.showOriginalContentMessage)})};
_.E.handleRemoveChatItemAction=function(y){var W=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(w,t){Object.values(w)[0].id===y.targetItemId&&W.splice("data.items",t,1)})};
_.E.markAsDeleted=function(y,W,V,w,t){y=[y,W,V].join(".");this.set(y+".deletedStateMessage",w);this.set(y+".showOriginalContentMessage",t)};
_.J([_.q(),_.R("design:type",Object)],G8.prototype,"data",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],G8.prototype,"ytActionHandlerBehavior",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],G8);
_.Y(G8,"yt-live-chat-item-display-list-renderer",function(){if(rII===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Gxq===void 0&&(Gxq=document.createElement("template"));var w=Gxq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);rII=y}y=rII;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var oO2;var KY2,pHm=function(){if(KY2!==void 0)return KY2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;oO2===void 0&&(oO2=document.createElement("template"));var w=oO2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return KY2=y};var re=function(){var y=_.u.apply(this,arguments)||this;y.isHeader=!1;return y};
_.p(re,_.u);re.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.CM.Object.defineProperties(re,{template:{configurable:!0,enumerable:!0,get:function(){return pHm()}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],re.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],re.prototype,"isHeader",void 0);_.J([_.Zp({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],re);_.Y(re,"yt-live-chat-item-display-renderer",function(){return pHm()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var iIq,fMI,U3q,qIE;
iIq={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}};fMI={home:"eohps",search:"eosps",watch:"eowps"};_.ThA=["watch","search","home"];
_.bf=function(){this.JSC$14163_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14163_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.yC("PRECONSTRUCTION_DELAY",0);this.signals_=_.FS();this.targetPage_=""};
_.bf.prototype.init=function(y,W){y=y===void 0?"":y;W=W===void 0?null:W;if(this.JSC$14163_isInitialized_)this.abort();else if(this.JSC$14163_isInitialized_=!0,y&&_.m3E(this,y),W){var V=_.EA(this.signals_,"pcl")?0:10,w=function(){for(var t=0,F;F=_.ThA[t++];)F!=y&&F!=W&&this.pendingPages_.push(F);_.MCR(this)}.bind(this);
this.signals_.parkOrScheduleJob(w,V,"pcl")}};
_.bf.prototype.abort=function(){this.fragmentJobId_&&(_.HU.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);qIE(this)};
_.m3E=function(y,W){y.JSC$14163_isInitialized_&&!y.targetPage_&&(y.targetPage_=W,U3q(y,W),y.isInitialPass_=!1,U3q(y,W),y.signals_.processSignal(fMI[y.targetPage_]),qIE(y),_.MCR(y))};
_.MCR=function(y){y.pendingPages_.length&&!y.pagePreparerJobId_&&(y.pagePreparerJobId_=_.Jt(_.HU,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.m3E(this,this.pendingPages_.shift())}.bind(y),y.DEFAULT_DELAY_))};
U3q=function(y,W){if(W=iIq[W])for(var V in W){var w=!1,t=V;V.charAt(0)=="~"&&(w=!0,t=V.substring(1));var F=W[V];F=typeof F=="object"?F:{count:F};W[V]=F;F.componentName=t;F.count>0&&(y.isInitialPass_?w||y.isSeenDuringInitialPass_[t]||(y.JSC$14163_queue_.push({componentName:t,count:1,signals:F.signals}),y.isSeenDuringInitialPass_[t]=!0,F.count--):y.JSC$14163_queue_.push(F))}};
qIE=function(y){y.JSC$14163_queue_.length=0;y.targetPage_="";y.isInitialPass_=!0;y.signals_.processSignal("eop")};
_.bf.getInstance=function(){return _.hD(_.bf)};var uKA=function(){this.signals=_.FS();this.init()};
uKA.prototype.startPreconstruction=function(){_.bf.getInstance().init(_.W4("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
uKA.prototype.init=function(){SIz(this);window.Polymer&&JtK&&jLj();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var y=_.Vj.ytcsi;if(y&&y.gt&&(y=y.gt())&&y.tick&&(y.tick.aft>0||y.tick.pbs>0)&&(_.W4("IS_HOMEPAGE_COLD")||_.W4("IS_RESULTS_PAGE_COLD")||_.W4("IS_WATCH_PAGE_COLD"))){D3I(this);break a}ycP(B9G,this.onNotifications,this)}};
var SIz=function(y){var W=function(){y.signals.processSignal("dl")};
document.readyState==="complete"?(_.FU(Error("Ch"),"WARNING"),W()):_.UMz(window,"load",W)};
uKA.prototype.onNotifications=function(y){y.timer||(_.W4("IS_HOMEPAGE_COLD")||_.W4("IS_RESULTS_PAGE_COLD")||_.W4("IS_WATCH_PAGE_COLD"))&&D3I(this)};
var D3I=function(y){y.signals.parkOrScheduleJob(function(){y.signals.processSignal("eocs")},10,"eor")};
new uKA;var Qf,lMQ=function(){return _.YA.apply(this,arguments)||this};
_.p(lMQ,_.YA);_.E=lMQ.prototype;_.E.enableActiveViewMeasurement=function(y){if(this.isActiveViewEnabled(y)){var W=this.getUrlPrefixesFromCommand(y.viewableCommands);y=this.getUrlPrefixesFromCommand(y.endOfSessionCommands);if(!Qf){var V=_.pB("custom_active_view_tos_timeout_ms");Qf=V>0&&V!==36E5?new W5t(this.getVersion(),V):new W5t(this.getVersion())}wAa(Qf,this.hostElement);tzd(Qf,this.hostElement,W,y)}};
_.E.stopActiveViewMeasurement=function(){Qf&&wAa(Qf,this.hostElement)};
_.E.isActiveViewEnabled=function(y){return!!y&&(this.hasAtLeastOneUrl(y.viewableCommands)||this.hasAtLeastOneUrl(y.endOfSessionCommands))};
_.E.hasAtLeastOneUrl=function(y){return!!y&&y.length>0&&y[0].loggingUrls!=null&&y[0].loggingUrls.length>0};
_.E.getVersion=function(){var y=_.yC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(y==null?void 0:y.length)===2?y[1]:null};
_.E.getUrlPrefixesFromCommand=function(y){if(!y)return[];var W=[];y=_.N(y);for(var V=y.next();!V.done;V=y.next())if(V=V.value,V.loggingUrls){V=_.N(V.loggingUrls);for(var w=V.next();!w.done;w=V.next())w=w.value,w.baseUrl&&W.push(w.baseUrl)}return W};
_.J([_.BW()],lMQ);var Z9=[lMQ.prototype];var x3R=function(){return _.YA.apply(this,arguments)||this};
_.p(x3R,_.YA);_.CM.Object.defineProperties(x3R.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_entity_store_from_dependency_injection")?_.vC():_.dP()}}});
_.J([_.BW()],x3R);_.y$=[bi.prototype,x3R.prototype];var kZK=["ytd-rich-shelf-renderer"],WS=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";y.followUpDialogPromise=null;y.followUpDialogPromiseResolve=null;y.followUpDialogPromiseReject=null;return y};
_.p(WS,_.YA);_.E=WS.prototype;_.E.dismissibleItemIsDismissedChanged_=function(y){_.e("kevlar_fluid_dismiss")&&(y?_.h1(this.hostElement,"yt-dismissible-item-dismissed"):_.h1(this.hostElement,"yt-dismissible-item-undismissed"))};
_.E.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.E.dismissibleItemReset_=function(){var y=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 _.qN(function(W,V){y.followUpDialogPromiseResolve=W;y.followUpDialogPromiseReject=V});
_.h1(this.hostElement,"yt-enable-lockup-interaction")};
_.E.dismissibleItemOnYtServiceRequestSent_=function(y,W){W.actions&&this.dismissibleItemProcessActions(W.actions,y)};
_.E.dismissibleItemOnRequestSent=function(y){if(_.e("web_button_rework"))for(var W=_.N(y.detail),V=W.next();!V.done;V=W.next()){var w=void 0;(V=(w=_.h(V.value,_.q8))==null?void 0:w.actions)&&this.dismissibleItemProcessActions(V,y)}};
_.E.dismissibleItemOnCommandSent=function(y,W){W&&this.dismissibleItemProcessActions(W,y)};
_.E.setAndGetDismissedContentId=function(y){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+y};
_.E.replayDismissAction=function(y){this.dismissibleItemProcessActions([y])};
_.E.dismissibleItemProcessActions=function(y,W){for(var V=0;V<y.length;V++){var w=y[V],t=void 0;((t=_.h(w,_.mR))==null?0:t.commands)&&this.dismissibleItemProcessActions(_.h(w,_.mR).commands,W);if(_.h(w,_.Rx)){if(t=_.h(w,_.Rx),!t.replaceParentSection||kZK.includes(this.hostElement.nodeName.toLowerCase()))_.e("web_see_fewer_shorts_reactive_dismissal")&&t.groupDismissal&&SIy(this,t.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(t),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.B5("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:w})),w=void 0,(w=W)==null||w.stopPropagation()}else if(_.h(w,uh6))this.dismissibleItemHandleHideEnclosingAction_(),w=void 0,(w=W)==null||w.stopPropagation();else if(_.h(w,ZwR))_.e("web_see_fewer_shorts_reactive_dismissal")&&(w=_.h(w,ZwR),t=void 0,((t=w)==null?0:t.targetGroupId)&&SIy(this,{targetGroupId:w.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.B5("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),w=void 0,(w=W)==null||w.stopPropagation();else if(_.h(w,_.q8))(w=_.h(w,_.q8).actions)&&_.fg(this.hostElement,w,this.hostElement),w=void 0,(w=W)==null||w.stopPropagation();else{var F=t=void 0;((t=_.h(w,_.Wl))==null?void 0:t.signal)!=="TELL_US_WHY"||((F=_.h(w,_.Wl))==null?0:F.targetId)&&_.e("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),w=void 0,(w=W)==null||w.stopPropagation())}}};
_.E.dismissibleItemOnYtServiceRequestCompleted_=function(y,W){var V=this.get("feedbackResponses.0.followUpDialog",W.data);V?this.followUpDialogPromiseResolve(V):W.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(W.actions,y)};
_.E.dismissibleItemHandleReplaceEnclosingAction_=function(y){this.dismissedRenderer=y.item;this.isDismissed=!0;var W=null;(W=_.i6(this.hostElement).querySelector("#dismissed"))&&_.gy(this,function(){_.Ci(W)});
_.h1(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.E.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.E.dismissibleItemHandleUndoFeedbackAction_=function(){_.h1(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.E.dismissibleItemHandleTellUsWhySignalAction_=function(){var y=this;this.followUpDialogPromise.then(function(W){y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:W}})})};
WS.prototype.dismissibleItemOnYtServiceRequestCompleted_=WS.prototype.dismissibleItemOnYtServiceRequestCompleted_;WS.prototype.dismissibleItemOnCommandSent=WS.prototype.dismissibleItemOnCommandSent;WS.prototype.dismissibleItemOnRequestSent=WS.prototype.dismissibleItemOnRequestSent;WS.prototype.dismissibleItemOnYtServiceRequestSent_=WS.prototype.dismissibleItemOnYtServiceRequestSent_;WS.prototype.dismissibleItemDataChanged_=WS.prototype.dismissibleItemDataChanged_;
WS.prototype.dismissibleItemIsDismissedChanged_=WS.prototype.dismissibleItemIsDismissedChanged_;_.J([_.m(_.LK),_.R("design:type",Object)],WS.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],WS.prototype,"isDismissed",void 0);_.J([_.q(),_.R("design:type",Object)],WS.prototype,"dismissedRenderer",void 0);
_.J([_.xA("isDismissed"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],WS.prototype,"dismissibleItemIsDismissedChanged_",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WS.prototype,"dismissibleItemDataChanged_",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],WS.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.J([_.l6("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],WS.prototype,"dismissibleItemOnRequestSent",null);
_.J([_.l6("yt-dismissible-item-action"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Array]),_.R("design:returntype")],WS.prototype,"dismissibleItemOnCommandSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],WS.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.J([_.BW()],WS);_.V$=[_.LK,_.y$,WS.prototype];var wZ=function(){var y=_.YA.apply(this,arguments)||this;y.disableGridStateAware=!1;y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};y.currentGridClass="";return y};
_.p(wZ,_.YA);wZ.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.gy(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var y=this.gridStateAwareGetElement();_.TA(y,"grid",!0)}};
wZ.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
wZ.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.i6(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
wZ.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var y="grid-disabled";else{y=_.pvr.getInstance();var W=this.get("pageSubtype");y=W&&hrJ.includes(W)?"grid-disabled":y.currentSnapState_?y.currentSnapState_.className:null}(W=this.gridStateAwareGetElement())&&y!==this.currentGridClass&&(y&&_.TA(W,y,!0),this.currentGridClass&&_.TA(W,this.currentGridClass,!1),this.currentGridClass=y)};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",String)],wZ.prototype,"gridStateAwareSizingElementSelector",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wZ.prototype,"disableGridStateAware",void 0);_.J([_.BW()],wZ);_.tW=[wZ.prototype,_.ik.YtActionHandlerBehavior];_.Fq=new _.e9("GUIDE_TOKEN");var Nd;_.E4={};Nd=function(){var y=_.YA.apply(this,arguments)||this;y.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 y};
_.p(Nd,_.YA);_.E=Nd.prototype;_.E.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.E.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var y=_.hs().resolve(_.eX(_.Fq));y&&(this.guidePersistentAndVisible=y.getGuidePersistentAndVisible(),this.activeEndpoint=y.getActiveEndpoint(),this.guideOpened=y.getGuideOpened(),this.miniGuideVisible=y.getMiniGuideVisible())};
_.E.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.E.handleGuideStateAction=function(y){this.guidePersistentAndVisible=y};
_.E.handleMiniGuideStateAction=function(y){this.miniGuideVisible=y};
_.E.handleGuideOpenedAction=function(y){this.guideOpened=y};
_.E.handleActiveEndpointAction=function(y){this.activeEndpoint=y};
Nd.prototype.onActiveEndpointChange=Nd.prototype.onActiveEndpointChange;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Nd.prototype,"guidePersistentAndVisible",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Nd.prototype,"miniGuideVisible",void 0);_.J([_.q(),_.R("design:type",Object)],Nd.prototype,"activeEndpoint",void 0);
_.J([_.xA("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Nd.prototype,"onActiveEndpointChange",null);_.J([_.q(),_.R("design:type",Boolean)],Nd.prototype,"guideOpened",void 0);_.J([_.BW()],Nd);_.E4.YtdGuideStateAwareBehavior=[];_.E4.YtdGuideStateAwareBehavior.push(Nd.prototype,_.ik.YtActionHandlerBehavior);var seI=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Ij=function(){var y=_.YA.apply(this,arguments)||this;y.hoverJobId=0;y.JSC$14194_touched=!1;return y};
_.p(Ij,_.YA);_.E=Ij.prototype;_.E.created=function(){this.useExpandableTooltip=!seI.includes(this.is)};
_.E.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.E.detached=function(){this.useExpandableTooltip=!1};
_.E.lockupOnDown=function(y){this.interactionElement&&!_.c5(_.O$(y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.E.lockupOnUp=function(y){this.interactionElement&&!_.c5(_.O$(y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.E.onTouchStart=function(){this.JSC$14194_touched=!0};
_.E.lockupOnMouseEnter=function(){var y=this,W=_.pB("kevlar_lockup_hover_delay",-1);this.JSC$14194_touched&&W>=0?(_.HU.cancelJob(this.hoverJobId),this.hoverJobId=_.HU.addJob(function(){y.lockupIsHovered=!0},8,W),this.JSC$14194_touched=!1):this.lockupIsHovered=!0};
_.E.lockupOnMouseLeave=function(){this.hoverJobId&&(_.HU.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.E.lockupOnPopupClosed=function(y,W){var V;((V=W.popupRenderer)==null?void 0:V.is)==="ytd-menu-popup-renderer"&&(y=W.popupRenderer.veData,W=_.Xn(),y&&W&&_.g5(W,[y]))};
_.E.lockupOnLockupRequested=function(y){var W=y.detail.videoIds[0],V;y.detail&&W===((V=this.data)==null?void 0:V.videoId)&&(y.detail.returnValue=[this.data])};
_.E.lockupOnYtServiceRequestSent=function(y,W){if(y=W.actions)for(var V=0;V<y.length;V++){var w=y[V];if(w.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&W.ajaxPromise){var t=void 0,F=(t=_.h(W.endpoint,_.yB))==null?void 0:t.playlistId;t=void 0;w=(t=w.removedVideoId)!=null?t:"";nrs(_.Ib(),w,F)}else w.action==="ACTION_REMOVE_VIDEO"&&W.ajaxPromise&&(F=void 0,w=(F=w.setVideoId)!=null?F:"",_.H9s(_.Ib(),w))}};
_.E.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.E.lockupOnLockupEnabled=function(){if(!this.$){var y=_.hs().resolve(_.hn).getCurrentPage(),W=this.getParentRenderer?this.getParentRenderer():void 0;_.rQ(new _.Js("component not ready",this.is,this.isAttached,y==null?void 0:y.is,W==null?void 0:W.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Ij.prototype.lockupOnLockupEnabled=Ij.prototype.lockupOnLockupEnabled;Ij.prototype.lockupOnLockupDisabled=Ij.prototype.lockupOnLockupDisabled;Ij.prototype.lockupOnYtServiceRequestSent=Ij.prototype.lockupOnYtServiceRequestSent;Ij.prototype.lockupOnLockupRequested=Ij.prototype.lockupOnLockupRequested;Ij.prototype.lockupOnPopupClosed=Ij.prototype.lockupOnPopupClosed;Ij.prototype.lockupOnMouseLeave=Ij.prototype.lockupOnMouseLeave;Ij.prototype.lockupOnMouseEnter=Ij.prototype.lockupOnMouseEnter;
Ij.prototype.onTouchStart=Ij.prototype.onTouchStart;Ij.prototype.lockupOnUp=Ij.prototype.lockupOnUp;Ij.prototype.lockupOnDown=Ij.prototype.lockupOnDown;_.J([_.q(),_.R("design:type",Object)],Ij.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],Ij.prototype,"lockupIsHovered",void 0);_.J([_.q(),_.R("design:type",Boolean)],Ij.prototype,"lockupTouchTriggered",void 0);_.J([_.q(),_.R("design:type",Boolean)],Ij.prototype,"useExpandableTooltip",void 0);
_.J([_.s$("#interaction"),_.R("design:type",Object)],Ij.prototype,"interactionElement",void 0);_.J([_.l6("down"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ij.prototype,"lockupOnDown",null);_.J([_.l6("up"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ij.prototype,"lockupOnUp",null);
_.J([_.l6("touchstart"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"onTouchStart",null);_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"lockupOnMouseEnter",null);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"lockupOnMouseLeave",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Ij.prototype,"lockupOnPopupClosed",null);_.J([_.l6("yt-lockup-requested"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ij.prototype,"lockupOnLockupRequested",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],Ij.prototype,"lockupOnYtServiceRequestSent",null);_.J([_.l6("yt-disable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"lockupOnLockupDisabled",null);
_.J([_.l6("yt-enable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"lockupOnLockupEnabled",null);_.J([_.BW()],Ij);_.gZ=[Ij.prototype];_.AFz={YtdReduxBehavior:[]};_.AFz.YtdReduxBehavior.push.apply(_.AFz.YtdReduxBehavior,_.y$);var PS=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.disableNowPlaying=!1;y.disableTooltips=!1;y.useHoveredProperty=!1;y.hovered=!1;y.isThumbnailHovered_=!1;y.addBackground=_.e("kevlar_thumbnail_bg");y.nowPlaying=!1;y.disableRounding=!1;y.size="small";return y};
_.p(PS,_.YA);_.E=PS.prototype;_.E.computeThumbnailOverlaySidePanelWidth_=function(y,W){return y-W};
_.E.computeSize=function(y,W){if(!this.disableRounding){if(!y&&!W)return"small";y=Math.max(y||0,W||0);return y>=256?"large":y>=96?"medium":"small"}};
_.E.computeFinalHoveredState_=function(y,W,V){return this.nowPlaying?!1:_.e("kevlar_thumbnail_fluid")&&y?W:V};
_.E.computeHoverOverlays_=function(y,W){return y&&W?W:void 0};
_.E.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.E.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.E.checkMiniplayer_=function(){var y;if(((y=this.data)==null?0:y.playlistSetVideoId)&&_.e("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{y=_.s8();var W=y.currentEndpoint;!this.disableNowPlaying&&W&&_.h(W,_.Iw)&&this.data?(W=_.h(W,_.Iw),this.nowPlaying=this.data.playlistId?W.playlistId===this.data.playlistId:W.videoId===this.data.videoId,this.isVideoPlaying=y==null?void 0:y.isVideoPlaying):this.nowPlaying=!1}};
PS.prototype.checkMiniplayer_=PS.prototype.checkMiniplayer_;PS.prototype.onMouseLeave_=PS.prototype.onMouseLeave_;PS.prototype.onMouseEnter_=PS.prototype.onMouseEnter_;PS.prototype.computeHoverOverlays_=PS.prototype.computeHoverOverlays_;PS.prototype.computeFinalHoveredState_=PS.prototype.computeFinalHoveredState_;PS.prototype.computeSize=PS.prototype.computeSize;PS.prototype.computeThumbnailOverlaySidePanelWidth_=PS.prototype.computeThumbnailOverlaySidePanelWidth_;
_.J([_.m(_.y$),_.R("design:type",Object)],PS.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],PS.prototype,"height",void 0);_.J([_.q(),_.R("design:type",Boolean)],PS.prototype,"bottomSidePanel",void 0);_.J([_.q(),_.R("design:type",Number)],PS.prototype,"width",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"disableNowPlaying",void 0);
_.J([_.q({selector:_.bg}),_.R("design:type",Boolean)],PS.prototype,"miniplayerIsActive",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"disableTooltips",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"useHoveredProperty",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"hovered",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"isThumbnailHovered_",void 0);
_.J([_.q({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.R("design:type",Boolean)],PS.prototype,"finalHoveredState_",void 0);_.J([_.q({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.R("design:type",Number)],PS.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],PS.prototype,"addBackground",void 0);
_.J([_.q({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.R("design:type",Object)],PS.prototype,"hoverOverlays_",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],PS.prototype,"nowPlaying",void 0);_.J([_.q(),_.R("design:type",Boolean)],PS.prototype,"isVideoPlaying",void 0);_.J([_.q(),_.R("design:type",Object)],PS.prototype,"disableRounding",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.R("design:type",Object)],PS.prototype,"size",void 0);_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PS.prototype,"onMouseEnter_",null);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PS.prototype,"onMouseLeave_",null);
_.J([_.xA("data","disableNowPlaying","miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PS.prototype,"checkMiniplayer_",null);_.J([_.BW()],PS);var YII=[PS.prototype];_.Cr={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(y,W){return y+":"+_.tA(W)},
getPlayerListener_:function(y,W,V){y=this.getPlayerListenerKey_(y,W);W=this.playerListeners_.get(y);V&&this.playerListeners_.delete(y);return W},
savePlayerListener_:function(y,W){var V=W.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(y,W),V);return V},
listenToPlayerEvent:function(y,W,V){V=this.savePlayerListener_(W,V);y.addEventListener(W,V)},
listenToPlayerEvents:function(y,W){W.forEach(function(V,w){this.listenToPlayerEvent(y,w,V)}.bind(this))},
unlistenFromPlayerEvent:function(y,W,V){V=this.getPlayerListener_(W,V,!0);y.removeEventListener(W,V)},
unlistenFromPlayerEvents:function(y,W){W.forEach(function(V,w){this.unlistenFromPlayerEvent(y,w,V)}.bind(this))}}};
_.O4=function(){};_.Bh6=new _.e9("PLAYER_API_TOKEN");var YIt=!1,jen,JFy=!1,nOb;var fn=function(y,W,V,w,t){_.Ru.call(this);var F=this;this.playerId=W;this.webPlayerContextConfig=w;this.jEy=t;this.pZb=!1;this.api={};this.i5l=this.ruD=null;this.o7l=new _.D3;this.kZ={};this.roC=this.yyD=this.elementId=this.kj8=this.config=null;this.cok=!1;this.nD=this.dti=null;this.rmR={};this.jRP=["onReady"];this.lastError=null;this.ikP=NaN;this.wxk={};this.bSH=0;this.jb=this.targetElement=y;_.Uf(this,this.o7l);JFz(this);V?this.bSH=setTimeout(function(){F.loadNewVideoConfig(V)},0):w&&(RWm(this),
je2(this))};
_.p(fn,_.Ru);fn.prototype.getId=function(){return this.playerId};
fn.prototype.loadNewVideoConfig=function(y){if(!this.isDisposed()){this.bSH&&(clearTimeout(this.bSH),this.bSH=0);var W=y||{};W instanceof VV6||(W=new VV6(W));this.config=W;this.setConfig(y);je2(this);this.isReady()&&$32(this)}};
var RWm=function(y){var W;y.webPlayerContextConfig?W=y.webPlayerContextConfig.rootElementId:W=y.config.attrs.id;y.elementId=W||y.elementId;y.elementId==="video-player"&&(y.elementId=y.playerId,y.webPlayerContextConfig?y.webPlayerContextConfig.rootElementId=y.playerId:y.config.attrs.id=y.playerId);var V;((V=y.jb)==null?void 0:V.id)===y.elementId&&(y.elementId+="-player",y.webPlayerContextConfig?y.webPlayerContextConfig.rootElementId=y.elementId:y.config.attrs.id=y.elementId)};
fn.prototype.setConfig=function(y){this.kj8=y;this.config=nOi(y);RWm(this);if(!this.yyD){var W;this.yyD=HIf(this,((W=this.config.args)==null?void 0:W.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var V;if((V=this.config)==null?0:V.attrs)y=this.config.attrs,(W=y.width)&&this.jb&&(this.jb.style.width=Vl(Number(W)||W,!0)),(y=y.height)&&this.jb&&(this.jb.style.height=Vl(Number(y)||y,!0))};
var $32=function(y){if(y.config&&y.config.loaded!==!0)if(y.config.loaded=!0,!y.config.args||y.config.args.autoplay!=="0"&&y.config.args.autoplay!==0&&y.config.args.autoplay!==!1){var W;y.api.loadVideoByPlayerVars((W=y.config.args)!=null?W:null)}else y.api.cueVideoByPlayerVars(y.config.args)},aMQ=function(y){var W=!0,V=y.getPlayerElement();
V&&y.config&&(W=V.dataset.version===XHE(y));return W&&!!_.ts("yt.player.Application.create")},je2=function(y){if(!y.isDisposed()&&!y.cok){var W=aMQ(y);
if(W&&(y.getPlayerElement()?"html5":null)==="html5")y.roC="html5",y.isReady()||GZ2(y);else if(rFq(y),y.roC="html5",W&&y.nD&&y.targetElement)y.targetElement.appendChild(y.nD),GZ2(y);else{y.config&&(y.config.loaded=!0);var V=!1;y.dti=function(){V=!0;var w=bIQ(y,"player_bootstrap_method")?_.ts("yt.player.Application.createAlternate")||_.ts("yt.player.Application.create"):_.ts("yt.player.Application.create");var t=y.config?nOi(y.config):void 0;w&&w(y.targetElement,t,y.webPlayerContextConfig,y.jEy);GZ2(y)};
y.cok=!0;W?y.dti():(_.ym(XHE(y),y.dti),(W=Qer(y))&&Fub(W||""),ZIz(y)&&!V&&_.dE("yt.player.Application.create",null))}}};
fn.prototype.getPlayerElement=function(){var y=_.i8(document,this.elementId);!y&&this.jb&&this.jb.querySelector&&(y=this.jb.querySelector("#"+this.elementId));return y};
var GZ2=function(y){if(!y.isDisposed()){var W=y.getPlayerElement(),V=!1;W&&W.getApiInterface&&W.getApiInterface()&&(V=!0);if(V){y.cok=!1;if(!bIQ(y,"html5_remove_not_servable_check_killswitch")){var w;if((W==null?0:W.isNotServable)&&y.config&&(W==null?0:W.isNotServable((w=y.config.args)==null?void 0:w.video_id)))return}y5q(y)}else y.ikP=setTimeout(function(){GZ2(y)},50)}},y5q=function(y){JFz(y);
y.pZb=!0;var W=y.getPlayerElement();if(W){y.ruD=WzR(y,W,"addEventListener");y.i5l=WzR(y,W,"removeEventListener");var V=W.getApiInterface();V=V.concat(W.getInternalApiInterface());for(var w=y.api,t=0;t<V.length;t++){var F=V[t];w[F]||(w[F]=WzR(y,W,F))}}for(var I in y.kZ)y.kZ.hasOwnProperty(I)&&y.ruD&&y.ruD(I,y.kZ[I]);$32(y);y.yyD&&y.yyD(y.api);y.o7l.publish("onReady",y.api)},WzR=function(y,W,V){var w=W[V];
return function(){var t=_.Ve.apply(0,arguments);try{return y.lastError=null,w.apply(W,t)}catch(F){if(V!=="sendAbandonmentPing")throw F.params=V,y.lastError=F,t=new _.Js("PlayerProxy error in method call",{error:F,method:V,playerId:y.playerId}),t.level="WARNING",t;}}},JFz=function(y){y.pZb=!1;
if(y.i5l)for(var W in y.kZ)y.kZ.hasOwnProperty(W)&&y.i5l(W,y.kZ[W]);for(var V in y.wxk)y.wxk.hasOwnProperty(V)&&clearTimeout(Number(V));y.wxk={};y.ruD=null;y.i5l=null;W=y.api;for(var w in W)W.hasOwnProperty(w)&&(W[w]=null);W.addEventListener=function(t,F){y.addEventListener(t,F)};
W.removeEventListener=function(t,F){y.removeEventListener(t,F)};
W.destroy=function(){y.dispose()};
W.getLastError=function(){return y.getLastError()};
W.getPlayerType=function(){return y.getPlayerType()};
W.getCurrentVideoConfig=function(){return y.kj8};
W.loadNewVideoConfig=function(t){y.loadNewVideoConfig(t)};
W.isReady=function(){return y.isReady()}};
fn.prototype.isReady=function(){return this.pZb};
fn.prototype.addEventListener=function(y,W){var V=this;this.isDisposed();var w=HIf(this,W);w&&(_.j4(this.jRP,y)||this.kZ[y]||(W=VJr(this,y),this.ruD&&this.ruD(y,W)),this.o7l.subscribe(y,w),y==="onReady"&&this.isReady()&&setTimeout(function(){w(V.api)},0))};
fn.prototype.removeEventListener=function(y,W){this.isDisposed()||(W=HIf(this,W))&&this.o7l.unsubscribe(y,W)};
var HIf=function(y,W){var V=W;if(typeof W==="string"){if(y.rmR[W])return y.rmR[W];V=function(){var w=_.Ve.apply(0,arguments),t=_.ts(W);if(t)try{t.apply(_.Vj,w)}catch(F){throw w=new _.Js("PlayerProxy error when executing callback",{error:F}),w.level="ERROR",w;}};
y.rmR[W]=V}return V?V:null},VJr=function(y,W){var V=function(w){var t=function(){y.isDisposed();
if(!y.isDisposed())try{y.o7l.publish(W,w!=null?w:void 0)}catch(P){var I=new _.Js("PlayerProxy error when creating global callback",{error:P.message,event:W,playerId:y.playerId,data:w,originalStack:P.stack,componentStack:P.componentStack});I.level="WARNING";throw I;}};
if(bIQ(y,"web_player_publish_events_immediately"))t();else{var F=setTimeout(function(){t();_.Gc.remove(y.wxk,String(F))},0);
_.Gc.add(y.wxk,String(F),!0)}};
return y.kZ[W]=V};
fn.prototype.getPlayerType=function(){return this.roC||(this.getPlayerElement()?"html5":null)};
fn.prototype.getLastError=function(){return this.lastError};
var rFq=function(y){y.cancel();JFz(y);y.roC=null;y.config&&(y.config.loaded=!1);var W=y.getPlayerElement();W&&(aMQ(y)||!ZIz(y)?y.nD=W:(W&&W.destroy&&W.destroy(),y.nD=null));y.targetElement&&_.G7(y.targetElement)};
fn.prototype.cancel=function(){this.dti&&_.Dct(XHE(this),this.dti);clearTimeout(this.ikP);this.cok=!1};
fn.prototype.disposeInternal=function(){rFq(this);if(this.nD&&this.config&&this.nD.destroy)try{this.nD.destroy()}catch(W){var y=new _.Js("PlayerProxy error during disposal",{error:W});y.level="ERROR";throw y;}this.rmR=null;for(y in this.kZ)this.kZ.hasOwnProperty(y)&&delete this.kZ[y];this.kj8=this.config=this.api=null;delete this.targetElement;delete this.jb;_.Ru.prototype.disposeInternal.call(this)};
var ZIz=function(y){var W,V;y=(W=y.config)==null?void 0:(V=W.args)==null?void 0:V.fflags;return!!y&&y.indexOf("player_destroy_old_version=true")!==-1},XHE=function(y){return y.webPlayerContextConfig?y.webPlayerContextConfig.jsUrl:(y=y.config.assets)?y.js:""},Qer=function(y){return y.webPlayerContextConfig?y.webPlayerContextConfig.cssUrl:(y=y.config.assets)?y.css:""},bIQ=function(y,W){if(y.webPlayerContextConfig)var V=y.webPlayerContextConfig.serializedExperimentFlags;
else{var w;if((w=y.config)==null?0:w.args)V=y.config.args.fflags}return(V||"").split("&").includes(W+"=true")},nOi=function(y){for(var W={},V=_.N(Object.keys(y)),w=V.next();!w.done;w=V.next()){w=w.value;
var t=y[w];W[w]=typeof t==="object"?_.Gc.clone(t):t}return W};var rFd={},GZn="player_uid_"+(Math.random()*1E9>>>0);var vS=function(y,W,V,w,t,F){W=W===void 0?document.createElement("div"):W;this.webPlayerContextConfig=y;this.container=W;this.commandResolver=V;this.apiResolver=ZIy();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.UT;w||F?wu2(this):tJf(this);this.pendingPlayerResponse=w;this.pendingWatchNextResponse=t;this.pendingPlayerVars=F;Fzm(this)};
vS.prototype.loadVideoWithPlayerResponse=function(y,W,V){this.loadVideo(y,W,V)};
vS.prototype.loadVideoWithPlayerVars=function(y){return this.loadVideo(void 0,void 0,y)};
vS.prototype.destroy=function(y){if(y=_.i8(document,y))y=GZn+"_"+_.tA(y),(y=rFd[y])&&y.dispose()};
var NMQ=function(y,W){var V;_.g(function(w){if(w.nextAddress==1)return y.pendingWatchNextResponse=W,y.synchronousApi?(V=y.synchronousApi,w.jumpTo(2)):w.yield(y.api,3);w.nextAddress!=2&&(V=w.yieldResult);ETK(y,V);y.pendingWatchNextResponse&&(V.updateVideoData({raw_watch_next_response:y.pendingWatchNextResponse}),y.pendingWatchNextResponse=void 0);_.B7(w)})},ETK=function(y,W){var V;
if(!(W==null?0:(V=W.isReady)==null?0:V.call(W))){var w;_.rQ(new _.Js("playerApi is falsey",{synchronousApi:y.synchronousApi,apiResolved:y.apiResolver.resolved,playerApiUndefined:W===void 0,playerApiNull:W===null,playerApiReady:(W==null?void 0:(w=W.isReady)==null?void 0:w.call(W))===!0,playerApiMethods:W?Object.keys(W):[]}))}},IFE=function(y,W){if(typeof y[W]==="function")return y[W]()},gTs=function(y){var W=window,V,w=(V=W.ytplayer)==null?void 0:V.bootstrapPlayerContainer;
if((V=w==null?void 0:w.firstElementChild)&&_.EQ(V,"html5-video-player")){var t,F,I=(t=W.ytplayer)==null?void 0:(F=t.bootstrapWebPlayerContextConfig)==null?void 0:F.contextId;t=y.webPlayerContextConfig.contextId;if(I&&I===t){w!==y.container&&(w=!1,IFE(V,"getPlayerState")===2&&(w=!0),y.container.appendChild(V),w||IFE(V,"playVideo"));var P;if((P=W.ytplayer)==null?0:P.bootstrapPlayerResponse)y.bootstrapPlayerResponse=W.ytplayer.bootstrapPlayerResponse}}},Fzm=function(y){var W,V,w,t,F;
_.g(function(I){if(I.nextAddress==1)return y.pageReadyOrDataAvailable?I.jumpTo(2):I.yield(y.pageReadyOrDataAvailableResolver.promise,2);if(I.nextAddress!=4)return!_.e("kevlar_player_unified_player_loading")||Bhv()&&RWu()?I.jumpTo(4):I.yield(XHz(),4);gTs(y);if(y.pendingPlayerResponse||y.pendingPlayerVars)W=aM4(y.pendingPlayerResponse,y.pendingWatchNextResponse,y.pendingPlayerVars),y.pendingPlayerResponse&&y.pendingPlayerResponse===y.bootstrapPlayerResponse&&(W.loaded=!0),y.bootstrapPlayerResponse=
void 0;V=Qea(y.container,W,y.webPlayerContextConfig);((w=W)==null?0:w.loaded)&&y.pendingWatchNextResponse?(NMQ(y,y.pendingWatchNextResponse),y.pendingPlayerResponse=void 0,y.pendingPlayerVars=void 0):Pcm(y);t=function(P){V.removeEventListener("onReady",t);y.synchronousApi=P;y.apiResolver.resolve(P)};
V.addEventListener("onReady",t);y.commandResolver!==void 0&&(F=y.commandResolver,V.addEventListener("innertubeCommand",function(P){F(P)}));
_.B7(I)})};
vS.prototype.loadVideo=function(y,W,V){var w=this,t,F,I,P,C,d,L,z,c;return _.g(function(K){if(K.nextAddress==1)return w.pendingPlayerResponse=y,w.pendingWatchNextResponse=W,w.pendingPlayerVars=V,wu2(w),w.synchronousApi?(t=w.synchronousApi,K.jumpTo(2)):K.yield(w.api,3);K.nextAddress!=2&&(t=K.yieldResult);ETK(w,t);I=new Promise(function(f){F=f});
P=function(){var f=t.getPlayerResponse();f&&(t.removeEventListener("onVideoDataChange",P),F(f))};
t.addEventListener("onVideoDataChange",P);if(w.pendingPlayerResponse||w.pendingPlayerVars)w.pendingPlayerResponse&&w.pendingPlayerResponse===w.bootstrapPlayerResponse?(F(w.pendingPlayerResponse),w.pendingWatchNextResponse&&NMQ(w,w.pendingWatchNextResponse)):(C=aM4(w.pendingPlayerResponse,w.pendingWatchNextResponse,w.pendingPlayerVars),(c=(d=w.pendingPlayerResponse)==null?void 0:(L=d.playerConfig)==null?void 0:(z=L.playbackStartConfig)==null?void 0:z.startPaused)?t.cueVideoByPlayerVars(C.args):t.loadVideoByPlayerVars(C.args)),
Pcm(w),w.bootstrapPlayerResponse=void 0;return K.return(I)})};
var tJf=function(y){if(document.readyState==="complete"||document.readyState==="interactive")wu2(y);else{var W=function(){document.removeEventListener("DOMContentLoaded",W);wu2(y)};
document.addEventListener("DOMContentLoaded",W)}},wu2=function(y){y.pageReadyOrDataAvailable=!0;
y.pageReadyOrDataAvailableResolver.resolve()},Pcm=function(y){y.pendingPlayerResponse=void 0;
y.pendingWatchNextResponse=void 0;y.pendingPlayerVars=void 0};
_.CM.Object.defineProperties(vS.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var dZ=function(y){by.call(this,y===void 0?"document_active":y);var W=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(V){W.transition("document_disposed",{event:V})});
window.addEventListener("beforeunload",function(V){W.transition("document_disposed_preventable",{event:V})});
window.addEventListener("unload",function(V){W.transition("document_disposed",{event:V});W.hasRun=new Map})};
_.p(dZ,by);
dZ.prototype.runPreventableDispose=function(y,W){if(!this.hasRun.get("document_disposed_preventable")){y(W==null?void 0:W.event);var V,w;if((W==null?0:(V=W.event)==null?0:V.defaultPrevented)||(W==null?0:(w=W.event)==null?0:w.returnValue)){W.event.returnValue||(W.event.returnValue=!0);W.event.defaultPrevented||W.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")};
dZ.prototype.runDispose=function(y,W){this.hasRun.get("document_disposed")?this.transition("document_active"):(y(W==null?void 0:W.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
dZ.prototype.runFlush=function(y,W){y(W==null?void 0:W.event);this.transition("document_active")};
dZ.prototype.runActive=function(){};var Lr=function(y){by.call(this,y===void 0?"document_visibility_unknown":y);var W=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(V){document.visibilityState==="visible"?W.transition("document_visible",{event:V}):W.transition("document_hidden",
{event:V})});
_.e("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(V){W.transition("document_backgrounded",{event:V})}),window.addEventListener("focus",function(V){W.transition("document_foregrounded",{event:V})}))};
_.p(Lr,by);Lr.prototype.runVisible=function(y,W){y(W==null?void 0:W.event);_.e("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Lr.prototype.runHidden=function(y,W){y(W==null?void 0:W.event);_.e("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Lr.prototype.runBackgrounded=function(y,W){y(W==null?void 0:W.event)};
Lr.prototype.runForegrounded=function(y,W){y(W==null?void 0:W.event)};var zQ=function(){this.teardownLifecycle=new dZ;this.visibilityLifecycle=new Lr};
zQ.prototype.install=function(){var y=_.Ve.apply(0,arguments),W=this;y.forEach(function(V){W.teardownLifecycle.install(V)});
y.forEach(function(V){W.visibilityLifecycle.install(V)})};var cS=function(){zQ.call(this);var y={};this.install((y.document_disposed={callback:this.abortSlisAndFlush},y));_.e("combine_ve_grafts")&&(y={},this.install((y.document_disposed={callback:this.flushInteractionLoggingAttachVes},y)));y={};this.install((y.flush_logs={callback:this.logFinalPayload},y));_.e("web_log_cfg_cee_ks")||_.Jt(_.HU,Cc6)};
_.p(cS,zQ);var y5d=function(){cS.loggingInstance||(cS.loggingInstance=new cS);return cS.loggingInstance};
cS.prototype.logFinalPayload=function(){if(_.e("web_fp_via_jspb")){var y=new LNs,W=_.Xn();W&&_.jD(y,1,W);W=_.e("jspb_sparse_encoded_pivot")?new At([{}]):new At;_.A_(W,380,zDz,y);ijR("finalPayload",W);_.e("web_fp_via_jspb_and_json")&&_.Hp("finalPayload",{csn:_.Xn()})}else _.Hp("finalPayload",{csn:_.Xn()})};
cS.prototype.abortSlisAndFlush=function(){B0K(gz);Ph!=null&&Ph.flush()};
cS.prototype.flushInteractionLoggingAttachVes=function(){F3R(_.BC())};
var Cc6=function(){var y=_.yC("CLIENT_EXPERIMENT_EVENTS");if(y){var W=Yza();y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,W(V)&&_.Hp("genericClientExperimentEvent",{eventType:V});delete _.Qa.CLIENT_EXPERIMENT_EVENTS}};var O0A={};
O0A.YtPlayerBehavior=[_.Cr.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 y=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.UT;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;WzG(function(){y.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.a0(this,"pan-down"),_.e("kevlar_pinch_fullscreen")&&_.nc().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.e("kevlar_pinch_fullscreen")&&_.nc().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(y,W,V){var w=this;T$(this.useUnifiedPlayer_());if(this.mainAppPlayer_)T$(!1,"MainAppPlayer already created.");else{var t=_.e("kevlar_player_container_query_killswitch")?this.$.container:_.i6(this.hostElement).querySelector("#container");this.mainAppPlayer_=new vS(this.getWebPlayerContextConfig_(),t,function(F){return _.kc(F,w.hostElement)},y,W,V);
this.mainAppPlayer_.api.then(function(F){w.player_=F;w.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wGI.resolve(F)})}},
loadVideoWithPlayerResponse:function(y,W){var V=this;if(this.useUnifiedPlayer_()){var w=this.watchNextData,t,F=(t=y.videoDetails)==null?void 0:t.videoId,I,P,C;(t=(I=this.watchNextData)==null?void 0:(P=I.currentVideoEndpoint)==null?void 0:(C=P.watchEndpoint)==null?void 0:C.videoId)&&F!=t&&(w=void 0,_.e("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(y,w,W):this.createMainAppPlayer_(y,w,W);this.mainAppPlayer_.api.then(function(){_.h1(V.hostElement,
"yt-player-updated")})}else this.update(kZj(y,W))},
loadVideoWithPlayerVars:function(y){var W=this;this.useUnifiedPlayer_()?(_.e("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(y):this.createMainAppPlayer_(void 0,void 0,y),this.mainAppPlayer_.api.then(function(){_.h1(W.hostElement,"yt-player-updated")})):this.update({args:y})},
update:function(y){var W=this;if(this.useUnifiedPlayer_())T$(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(y);var V=REv(y.args);V&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==V&&Object.assign(y.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(y).then(function(w){_.h1(W.hostElement,"yt-player-updated",_.e("kevlar_player_updated_obsolete_player_killswitch")?
w:void 0)})}_.GD(new _.Js("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.getPlayerPromise(),2);V=w.yieldResult;if(!V)throw Error("Eh");y&&W.updatePlayerPlaylist_(y);_.B7(w)})},
acquireApi_:function(y){var W=this;if(this.useUnifiedPlayer_())T$(!1,"Invalid method call in kevlar_unified_player.");else return _.HU.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(T$(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(V){W.shouldAutoplay_(y)?V.loadVideoByPlayerVars(y.args):V.cueVideoByPlayerVars(y.args)})):this.initPlayerPromise_=this.initPlayerContainer_(y),this.initPlayerPromise_},
initPlayerContainer_:function(y){var W=this;if(this.useUnifiedPlayer_())T$(!1,"Invalid method call in kevlar_unified_player.");else return T$(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.rQ(Error("Fh")),T$(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.e("kevlar_player_container_query_killswitch")?this.$.container:_.i6(this.hostElement).querySelector("#container"),XHz().then(function(){var V=W.initPlayer_(y);W.playerResolver_.resolve(V);
return V})},
onPlayerReady_:function(y,W){this.useUnifiedPlayer_()?T$(!1,"Invalid method call in kevlar_unified_player."):(y.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wGI.resolve(y),W(y))},
maybeCallApiMethodOnElement_:function(y,W){if(typeof y[W]==="function")return y[W]()},
maybeAdoptBootstrapPlayer_:function(){var y=window,W,V=(W=y.ytplayer)==null?void 0:W.bootstrapPlayerContainer;if((W=V==null?void 0:V.firstElementChild)&&W.classList.contains("html5-video-player")){var w,t,F=(w=y.ytplayer)==null?void 0:(t=w.bootstrapWebPlayerContextConfig)==null?void 0:t.contextId;w=this.getWebPlayerContextConfig_().contextId;if(F&&F===w){V!==this.playerContainer_&&(V=!1,this.maybeCallApiMethodOnElement_(W,"getPlayerState")===2&&(V=!0),this.playerContainer_.appendChild(W),V||this.maybeCallApiMethodOnElement_(W,
"playVideo"));var I;if((I=y.ytplayer)==null?0:I.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=y.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(y){var W=this;if(this.useUnifiedPlayer_())T$(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(V){W.maybeAdoptBootstrapPlayer_();var w=y?set(y):void 0;w&&w==W.bootstrapPlayerResponse_&&(y.loaded=!0);w=W.playerContainer_;var t=W.getWebPlayerContextConfig_();w=Qea(w,y,t);W.player_=w;W.onPlayerReadyEvent_=W.onPlayerReady_.bind(W,W.player_,V);W.player_.addEventListener("onReady",W.onPlayerReadyEvent_);W.player_.addEventListener("innertubeCommand",
W.onPlayerInnerTubeCommand_.bind(W));_.e("enable_web_shorts_captions_language_command")&&W.player_.addEventListener("captionschanged",W.storePlayerCaptionLanguage_.bind(W))})},
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(y){y.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(y){y.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var y=_.hs().resolve(_.hn).getCurrentPage();y&&y.getScrollTop()<=0?_.a0(this,"pan-down"):_.a0(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(y){y.isFullscreen()||y.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(y){y.isFullscreen()&&y.toggleFullscreen()})},
updatePlayerPlaylist_:function(y){var W=this,V,w,t;return _.g(function(F){if(F.nextAddress==1)return V=_.hs().resolve(_.eX(_.wd)),w=!!(V&&V.playlistComponent&&V.playlistComponent.loopOn),F.yield(W.getPlayerPromise(),2);var I=t=F.yieldResult,P=I.updatePlaylist,C=[];if(_.e("kevlar_player_playlist_use_local_index")){var d,L;var z=(L=(d=y.localCurrentIndex)!=null?d:y.currentIndex)!=null?L:0}else{var c;z=(c=y.currentIndex)!=null?c:0}if(y.contents)for(d=0;d<y.contents.length;d++)if((L=y.contents[d])&&L.playlistPanelVideoRenderer)if(l0v(L)){L=
L.playlistPanelVideoRenderer;c="";L.shortBylineText&&(c=_.OT(L.shortBylineText));var K="";L.title?K=_.OT(L.title):L.unplayableText&&(K=_.OT(L.unplayableText));C.push({author:c,title:K,encrypted_id:L.videoId})}else d<z&&--z;P.call(I,{index:z,list:y.playlistId?y.playlistId:"",loop:w,playlist_title:y.title,playlist_length:C.length,video:C,fetch:0,external_list:"1",title:y.title?y.title:"",playlist_author:y.ownerName?_.OT(y.ownerName):void 0});_.B7(F)})},
focusOnPlayer:function(){_.gy(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var y=this.playerContainer_.querySelector(".html5-video-player");y&&(_.eU(_.hs().resolve(_.rL)),y.focus())}})},
preparePlayer:function(){var y=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(W){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")W();else{var V=function(){document.removeEventListener("DOMContentLoaded",V);W()};
document.addEventListener("DOMContentLoaded",V)}})).then(function(){return XHz()}).then(function(){y.initPlayerPromise_||y.preparePlayerJobId_||(y.preparePlayerJobId_=_.Jt(_.HU,function(){y.initPlayerPromise_||(y.initPlayerPromise_=y.initPlayerContainer_())}))}):_.GD(new _.Js("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(y){this.useUnifiedPlayer_()?T$(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(y)||(y.args.autoplay="0")},
shouldAutoplay_:function(y){if(this.useUnifiedPlayer_())T$(!1,"Invalid method call in kevlar_unified_player.");else{var W=this.get("args.el",y);return W&&W!="detailpage"&&this.isMiniplayerActive_()||W&&(W=="sponsorshipsoffer"||W=="handlesclaiming")&&this.get("args.autoplay",y)=="0"?!1:(y=set(y))&&this.get("playerConfig.playbackStartConfig.startPaused",y)?!1:!0}},
isMiniplayerActive_:function(){return _.hs().resolve(_.VH).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var y=this.getPlayer();if(y){var W=y.getPlayerState();_.e("kevlar_player_check_ad_state_on_stop")&&(W=y.getPlayerState(y.getPresentingPlayerType()));W!=5&&y.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(y,W,V){V=V===void 0?!1:V;var w=this,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return W||(W=w.hostElement),t=w.useUnifiedPlayer_()?!!w.mainAppPlayer_:!!w.initPlayerPromise_,t?C.yield(w.getPlayerPromise(),2):(V?y.insertBefore(W,y.firstChild):y.appendChild(W),C.return());F=C.yieldResult;I=F.getPlayerState(F.getPresentingPlayerType());P=!1;if(I==-1||I==1||I==3)P=!0;V?y.insertBefore(W,y.firstChild):y.appendChild(W);P&&F.playVideo();F.setSize(NaN,NaN);_.B7(C)})},
watchNextDataChanged_:function(y){var W=this;y&&(this.useUnifiedPlayer_()&&_.e("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&NMQ(this.mainAppPlayer_,y):this.getPlayerPromise().then(function(V){V.updateVideoData(W.computeWatchNextPlayerVars_(y))}))},
computeWatchNextPlayerVars_:function(y){if(this.useUnifiedPlayer_()&&_.e("kevlar_unified_player_update_watch_next_killswitch"))T$(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:y}},
maybeSendAbandonmentPing_:function(){var y=this.getPlayer();y&&y.getPlayerState()!=5&&y.getPlayerState()!=0&&y.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var y=_.yC("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(y=Object.assign({},y),y.rootElementId=this.playerId);y.serializedExperimentIds&&y.serializedExperimentFlags||_.rQ(Error("Gh"));return y},
hasWebPlayerContextConfig_:function(){return!!_.yC("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(y){this.useUnifiedPlayer_()?T$(!1,"Invalid method call in kevlar_unified_player."):_.kc(y,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(y){var W=_.hs().resolve(_.YK);y=y==null?void 0:y.getOption("captions","track");var V=_.qK("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(y){var w,t=(w=_.Yn(_.WYv,V)())==null?void 0:w.value,F;w=typeof(y==null?void 0:y.translationLanguage)==="object"&&((F=y.translationLanguage)==null?void 0:F.languageName)||y.displayName||"";t!==w&&W.store.dispatch(_.B5("stringEntity",V,{key:V,value:w.toString()}))}else W.store.dispatch(_.B5("stringEntity",
V,{key:V,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var y=_.e("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.e("kevlar_unified_player")||y}}];var vTz={};vTz.YtPlaylistPanelBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(y){y=y.detail;if(y.actions.loop!=void 0||y.actions["yt-icons:loop"]!=void 0)this.loopOn=y.actions.loop||y.actions["yt-icons:loop"];if(y.actions.shuffle!=void 0||y.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=y.actions.shuffle||y.actions["yt-icons:shuffle"]},
setMenuData_:function(y){if(!y||!y.playlistButtons||y.isInfinite)return null;for(var W=y.playlistButtons.menuRenderer.topLevelButtons,V=W.length,w=0;w<V;w++)if(W[w].toggleButtonRenderer){var t=W[w].toggleButtonRenderer;t.defaultIcon.iconType=="LOOP"&&this.loopOn?t.isToggled=this.loopOn:t.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(t.isToggled=this.shuffleOn)}return y.playlistButtons}}];var dQz=function(y){h8.call(this,y,132);this.isDocument=y===document.documentElement};
_.p(dQz,h8);dQz.prototype.calculateScrollDelta=function(y,W,V){var w=0;y<W?w=y<W-100?-48:-8:y>W+V&&(w=y>W+V+100?48:8);return w};
dQz.prototype.JSC$11269_onMouseMove=function(y){this.isDocument||(y.clientX=y.event_.pageX,y.clientY=y.event_.pageY);h8.prototype.JSC$11269_onMouseMove.call(this,y)};var hW=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.scrollElement=document.documentElement;y.JSC$14253_dragListGroup=null;y.dragScrollSupport=null;y.onDraggerCreated=function(W){var V=W.JSC$11265_dragger;V.scrollTarget_=y.scrollElement;W=W.draggerEl;V&&W.menuOpened&&V.setEnabled(!1)};
y.onDragStart=function(W){var V=W.draggerEl;W=W.currDragItem;var w=Object.assign({},W==null?void 0:W.data);w.trackingParams=void 0;V.data=w;V.style.position="absolute";V.style.width=(W==null?void 0:W.clientWidth)+"px";V.style.zIndex="2030";V.onDrag&&V.onDrag();_.e("web_owner_document_fallback_killswitch")?(W=document.querySelector("ytd-app"))&&_.i6(W).appendChild(V):(W=_.ZS(V),(w=W.querySelector("ytd-app"))?_.i6(w).appendChild(V):W.body.appendChild(V));y.dragScrollSupport=new dQz(y.scrollElement);
y.dragScrollSupport.horizontalScrolling_=!1;V=y.dragScrollSupport;V.constrainScroll_=!!V.margin_&&!1};
y.onDrop=function(W){y.handleDrop(W);y.dragScrollSupport&&(_.La(y.dragScrollSupport),y.dragScrollSupport=null)};
y.onReorderableScroll=function(){if(y.JSC$14253_dragListGroup){var W=y.JSC$14253_dragListGroup;gAr(W,W.currDragItem_)}};
return y};
_.p(hW,_.YA);hW.prototype.detached=function(){_.Lzr(this)};
_.Lzr=function(y){y.JSC$14253_dragListGroup&&(_.Ys(y.JSC$14253_dragListGroup,ycJ,y.onDragStart),_.Ys(y.JSC$14253_dragListGroup,tBm,y.onDragStart),y.JSC$14253_dragListGroup.dispose(),y.JSC$14253_dragListGroup=null);y.dragScrollSupport&&(_.La(y.dragScrollSupport),y.dragScrollSupport=null);y.scrollElement.removeEventListener("scroll",y.onReorderableScroll)};
_.zNR=function(y,W,V,w){w=w===void 0?"":w;_.Lzr(y);V&&(y.scrollElement=V);y.JSC$14253_dragListGroup=new wo;y.JSC$14253_dragListGroup.hysteresisDistance_=2;EAs(y.JSC$14253_dragListGroup,W);y.JSC$14253_dragListGroup.draggerElClasses_=vy("dragging").split(" ");w&&NgE(y.JSC$14253_dragListGroup,function(t){var F=t||document,I=null;F.getElementsByClassName?I=F.getElementsByClassName(w)[0]:I=JAE("*",w,t);return I||t});
_.XZ(y.JSC$14253_dragListGroup,QcR,y.onDraggerCreated);_.XZ(y.JSC$14253_dragListGroup,ycJ,y.onDragStart);_.XZ(y.JSC$14253_dragListGroup,tBm,y.onDrop);y.JSC$14253_dragListGroup.init();y.scrollElement.addEventListener("scroll",y.onReorderableScroll,{passive:!0})};
hW.prototype.handleDrop=function(){};
_.CM.Object.defineProperties(hW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.J([_.q({value:100}),_.R("design:type",Number)],hW.prototype,"scrollMargin",void 0);_.J([_.BW()],hW);_.c5z=[hW.prototype];_.oj={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(y,W,V){var w=this.getClickTarget_(W);if(w&&this.isClickAllowed_(w)){W.preventDefault();y=(0,_.Gc.unsafeClone)(y);var t=this.getContainerBoundingRect();W=this.getRelativeClickXy_(W,t);this.expandEndpointUrlMacros_(y,{NX:W[0],NY:W[1],NB:w.code});V&&this.truncateWebCommendMetadataUrl_(y);_.h1(this.hostElement,"yt-navigate",{endpoint:y})}},
getClickTarget_:function(y){if(!this.clickTargetMap)return null;y=_.O$(y)||[];y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;if(W===_.i6(this.hostElement).querySelector("#menu"))break;if(W=this.clickTargetMap.get(W.id))return W}return null},
getRelativeClickXy_:function(y,W){var V=y.detail.x,w=y.detail.y;_.e("use_on_click_for_desktop_display_ad")&&y.clientX!=null&&y.clientY!=null&&(V=y.clientX,w=y.clientY);y=Math.round(V-W.left);W=Math.round(w-W.top);return y<0||W<0?[null,null]:[y,W]},
getContainerBoundingRect:function(){return _.i6(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(y,W){for(var V=_.N(y.loggingUrls||[]),w=V.next();!w.done;w=V.next())w=w.value,w.baseUrl&&(w.baseUrl=xRL(w.baseUrl,W));y.urlEndpoint&&y.urlEndpoint.url&&(y.urlEndpoint.url=xRL(y.urlEndpoint.url,W));y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url&&(y.commandMetadata.webCommandMetadata.url=xRL(y.commandMetadata.webCommandMetadata.url,W))},
truncateWebCommendMetadataUrl_:function(y){if(y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url){var W=y.commandMetadata.webCommandMetadata.url,V=W.indexOf("&pp=");if(V>0){var w=W.indexOf("&",V+1);y.commandMetadata.webCommandMetadata.url=w>V&&w<W.length?W.slice(0,V)+W.slice(w):W.slice(0,V)}}},
configureClickTargets:function(y,W,V){this.containerId=y;this.clickTargetMap=new Map;y=_.N(W);for(W=y.next();!W.done;W=y.next())if(W=W.value,W.location){var w=V.get(W.location);w&&(_.TA(_.i6(this.hostElement).querySelector("#"+w),"yt-simple-endpoint",this.isClickAllowed_(W)),this.clickTargetMap.set(w,W))}},
isClickAllowed_:function(y){return y.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Kr={};
_.Kr.YtLazyListBehavior=[_.et.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 y=(this.constructor.generatedFrom||this).observers;y||(y=[]);y.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
y}},
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 y=this.renderElementsOutsideVisibleArea_;y&&(dP2(y,4),y.processSignal())},
deepLazyListObserver_:function(y){var W=this;if(y){var V=y.value||[];if(this.itemsPath==y.path){var w=this.nonDeferredItemCount;y=0;w>-1&&V.length>w&&(y=_.yC("REMAINING_DOVA_DEFERRED_CHUNKS",-1));y>0?(w>0&&(w=V.slice(0,w),this.setInitialItemsOnDataChanged(w)),(w=this.renderElementsOutsideVisibleArea_)?w.cancel():(w=this.renderElementsOutsideVisibleArea_=new _.oY(2,"eocs"),_.UMz(window,"scroll",function(){return W.renderDeferredElements()})),_.Kh(w,function(){W.setInitialItemsOnDataChanged(V)}),_.Z7("REMAINING_DOVA_DEFERRED_CHUNKS",
y-1)):this.setInitialItemsOnDataChanged(V)}else if(this.itemsPath+".splices"==y.path)this.onItemsUpdated_(V);
else w="shownItems"+y.path.substr(this.itemsPath.length),this.useSignals&&w==="shownItems.length"||this.notifyPath(w,y.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(y){y&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(y),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(y){y=y.indexSplices;for(var W=0,V=y.length;W<V;W++){var w=y[W];if(w.index<this.shownCount&&(w.removed&&this.splice("shownItems",w.index,w.removed.length),w.addedCount)){var t=w.object.slice(w.index,w.index+w.addedCount);w=["shownItems",w.index,0];w.push.apply(w,t);this.splice.apply(this,w)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(y){this.cancelPendingTasks_();y||(y=[]);this.items_=y;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&&(_.W4("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.gy(this,this.tryRenderChunk_)))},
fillRange_:function(y,W){this.canShowMore&&this.items_&&(y=this.items_.slice(y,W),y.unshift("shownItems"),this.push.apply(this,y),this.shownCount=W,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var y=this;this.canShowMore&&_.NM(this,"renderChunk",function(){y.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.W4("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.jf(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var y=this.renderElementsOutsideVisibleArea_;y&&(y.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var y=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(y-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=y;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(y){return Math.ceil(1E3/y)},
onCanShowMoreUpdated_:function(y){this.data&&this.items_!==null&&(y?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(y){!this.shouldUseTaskManager()&&this.data&&(!y&&this.canShowMore?(_.dhy(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):y&&this.partiallyRenderedItems_.has(this.items_)&&(_.e("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var fr;_.pr={};
fr=function(){var y=_.YA.apply(this,arguments)||this;y.atStart=!0;y.atEnd=!0;y.startIndex=0;y.endIndex=0;y.scrollCount=0;y.initialStartIndex=0;y.disableScrollEventListener=!1;y.useFloorScrolling=!1;y.isSearch=!1;y.dragging=!1;y.dragMouseStart=0;y.dragOffsetStart=0;y.disableWheelScroll=!1;y.centerListItems=!1;y.offset=0;y.minComponentWidth=0;y.marginWidthRight=0;y.marginWidthLeft=0;y.setButtonsStateRequested=!1;y.itemsVisibilityObserver=null;y.fullyVisibleItemsIndices=[];y.JSC$14264_onWheelScroll=function(W){if(y.isSearch&&
!y.disableWheelScroll&&_.e("desktop_enable_dmpanel_wheel_scroll")){var V=W.shiftKey?Math.abs(W.deltaY)>Math.abs(W.deltaX)?W.deltaY:W.deltaX:W.deltaX;V!==0&&(W.preventDefault(),y.ytLazyListBehavior.fillRemainingListItems(),y.offset+=V,ia(y),y.reposition_())}};
y.onPointerDown=function(W){eNq(y)&&(y.dragMouseStart=W.clientX,y.dragOffsetStart=y.offset,y.dragging=!0)};
y.onPointerMove=function(W){eNq(y)&&y.dragging&&(y.ytLazyListBehavior.fillRemainingListItems(),y.offset=y.dragOffsetStart-(W.clientX-y.dragMouseStart),ia(y),y.reposition_())};
y.onPointerUp=function(){eNq(y)&&(y.dragging=!1)};
return y};
_.p(fr,_.YA);var hNq=function(y){var W=_.i6(y.hostElement).querySelector("#items").children;if(!W)return 0;var V=0;y=_.N(y.fullyVisibleItemsIndices);for(var w=y.next();!w.done;w=y.next())V+=W[w.value].clientWidth;return V},eNq=function(y){return y.isSearch&&_.e("desktop_enable_dmpanel_click_drag_scroll")};
fr.prototype.created=function(){this.cachedViewportWidth=_.yC("initialInnerWidth")||window.innerWidth;this.JSC$14264_cachedViewportHeight=_.yC("initialInnerHeight")||window.innerHeight;_.yC("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Z7("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
fr.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.e("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();oTK(this)};
fr.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.e("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var y;(y=this.itemsVisibilityObserver)==null||y.disconnect();this.itemsVisibilityObserver=null;var W;(W=this.itemsObserver)==null||W.disconnect()};
var oTK=function(y){var W=_.i6(y.hostElement).querySelector("#scroll-container");if(W){if(!y.itemsVisibilityObserver){var V=window.getComputedStyle(W).marginRight;y.itemsVisibilityObserver=new IntersectionObserver(function(w){Kzs(y,w)},{root:W,
rootMargin:V,threshold:.98})}if(W=_.i6(y.hostElement).querySelector("#items"))y.itemsObserver=new YBr(W,function(w){puK(y,w)})}},puK=function(y,W){i0R(y)&&(Array.from(W.addedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){y.itemsVisibilityObserver&&y.itemsVisibilityObserver.observe(V)}),Array.from(W.removedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){y.itemsVisibilityObserver&&y.itemsVisibilityObserver.unobserve(V)}))},
Kzs=function(y,W){var V=new Set(y.fullyVisibleItemsIndices);
W=_.N(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var t=w.target.parentElement;t?(t=Array.from(t.children).indexOf(w.target),w.isIntersecting?V.add(t):V.has(t)&&V.delete(t)):_.rQ(new _.Js("Parent element not found",w.target.nodeName))}y.fullyVisibleItemsIndices=Array.from(V).sort(function(F,I){return F-I});
V.size===0?_.rQ(new _.Js("No visible entries in horizontal list")):(y.startIndex=y.fullyVisibleItemsIndices[0],y.endIndex=y.fullyVisibleItemsIndices[y.fullyVisibleItemsIndices.length-1])},i0R=function(y){y.data?y=(y=y.data)&&y.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===y.itemSizeConstraint:!1:y=!1;
return y};
_.E=fr.prototype;_.E.addScrollEventListeners=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container");y.style.touchAction="pan-y";y.addEventListener("wheel",this.JSC$14264_onWheelScroll);y.addEventListener("pointerdown",this.onPointerDown);y.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.E.removeScrollEventListeners=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container");y.removeEventListener("wheel",this.JSC$14264_onWheelScroll);y.removeEventListener("pointerdown",this.onPointerDown);y.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.E.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.gy(this,this.setStartIndex,[this.initialStartIndex])};
_.E.reposition_=function(){var y=_.yC("HTML_DIR")=="rtl"?"":"-",W=_.i6(this.hostElement).querySelector("#items");W&&(W.style.transform="translateX("+y+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.E.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.gy(this,this.setButtonsState_))};
_.E.setButtonsState_=function(){this.setButtonsStateRequested=!1;var y=_.i6(this.hostElement).querySelector("#items").firstElementChild;if(y){this.minComponentWidth||(this.minComponentWidth=fFr(this,y));y=_.i6(this.hostElement).querySelector("#scroll-container").clientWidth;var W=_.i6(this.hostElement).querySelector("#items").clientWidth,V=this.get(this.ytLazyListBehavior.itemsPath,this);if(V){var w=Math.round(y/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+w,V.length)-1)}this.ytLazyListBehavior.canShowMore?W+this.minComponentWidth>=this.offset+y&&(this.atEnd=!1):this.atEnd=this.offset+y>=W-20?!0:!1;this.atStart=this.offset<=20}};
_.E.setStartIndex=function(y){if(!this.minComponentWidth){var W=_.i6(this.hostElement).querySelector("#items").firstElementChild;if(!W)return;this.minComponentWidth=fFr(this,W)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*y;ia(this);this.reposition_()};
_.E.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.uJ();var y=_.i6(this.hostElement).querySelector("#scroll-container").clientWidth;_.e("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=fFr(this,_.i6(this.hostElement).querySelector("#items").firstElementChild));y=this.useFloorScrolling?Math.floor(y/this.minComponentWidth)||1:Math.round(y/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&TMs(this);this.offset+=i0R(this)?
hNq(this):y*this.minComponentWidth;ia(this);this.reposition_();this.scrollCount++};
_.E.prevClick_=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container").clientWidth;y=this.useFloorScrolling?Math.floor(y/this.minComponentWidth)||1:Math.round(y/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=i0R(this)?hNq(this):this.minComponentWidth*this.scrollCount-1):this.offset-=i0R(this)?hNq(this):y*this.minComponentWidth;this.centerListItems&&TMs(this);ia(this);this.reposition_()};
_.E.onIronResize_=function(){this.resizeSupportEnabled&&_.gy(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.E.onItemsTransitionEnd_=function(y){_.vW(y)===_.i6(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.E.onChildElementFocus_=function(y){y=y.target.closest("#items > *");var W=_.i6(this.hostElement).querySelector("#scroll-container");if(W.contains(y)){if(_.e("web_horizontal_list_behavior_focus_killswitch"))if(y.offsetLeft<this.offset)this.offset=Math.abs(y.offsetLeft)<y.clientWidth?0:y.offsetLeft;else if(y.offsetLeft+y.clientWidth>this.offset+W.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.uJ(),this.offset=y.offsetLeft+y.clientWidth-W.clientWidth;else return;else{var V=_.i6(this.hostElement).querySelector("#items"),
w=_.yC("HTML_DIR")==="rtl",t=w?V.clientWidth-y.offsetLeft:y.offsetLeft;V=w?V.clientWidth-(y.offsetLeft+y.clientWidth):y.offsetLeft+y.clientWidth;var F=w?t>this.offset+W.clientWidth:t<this.offset,I=w?V<this.offset:V>this.offset+W.clientWidth,P=w?F:I;if(w?I:F)W=w?V:t,this.offset=Math.abs(W)<y.clientWidth?0:W;else if(P)this.ytLazyListBehavior.fillRemainingListItems(),_.uJ(),this.offset=(w?t:V)-W.clientWidth;else return}ia(this);this.reposition_()}};
_.E.observeShownItems_=function(){this.reset()};
_.E.checkComponentWidthResize=function(){var y=_.i6(this.hostElement).querySelector("#items").firstElementChild;y&&(y=fFr(this,y),this.centerListItems||y!==this.minComponentWidth)&&(this.minComponentWidth=y,this.offset=y*this.scrollCount,this.centerListItems&&TMs(this),ia(this),this.reposition_())};
var fFr=function(y,W){var V=window.getComputedStyle(W).marginRight;V=Math.floor(Number(V.replace("px","")));var w=window.getComputedStyle(W).marginLeft;w=Math.floor(Number(w.replace("px","")));y.centerListItems&&!y.marginWidthRight&&(y.marginWidthRight=V,y.marginWidthLeft=w);return y.resizeSupportEnabled?W.getBoundingClientRect().width+V:W.offsetWidth+V},ia=function(y){var W=_.i6(y.hostElement).querySelector("#scroll-container").clientWidth,V=_.i6(y.hostElement).querySelector("#items").clientWidth;
y.offset<0?y.offset=0:y.offset+W>=V&&(y.offset=V-W)},TMs=function(y){y.offset-=(_.i6(y.hostElement).querySelector("#scroll-container").clientWidth+y.marginWidthRight-y.minComponentWidth)/2-y.marginWidthLeft};
_.CM.Object.defineProperties(fr.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var y=_.yC("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(y==-1)y=this.JSC$14264_cachedViewportHeight,y=y>1320?5:y>1020?4:y>730?3:y>430?2:1;else if(y==0)return 0;_.Z7("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",y-1);y=_.yC("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(y>-1)return y;y=this.cachedViewportWidth;y=y>1600?6:y>1400?5:y>1300?4:y>1090?5:y>870?4:y>660?3:2;_.Z7("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
y);return y},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.e("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
fr.prototype.observeShownItems_=fr.prototype.observeShownItems_;fr.prototype.onChildElementFocus_=fr.prototype.onChildElementFocus_;fr.prototype.onItemsTransitionEnd_=fr.prototype.onItemsTransitionEnd_;fr.prototype.onIronResize_=fr.prototype.onIronResize_;fr.prototype.prevClick_=fr.prototype.prevClick_;fr.prototype.nextClick_=fr.prototype.nextClick_;fr.prototype.setButtonsState_=fr.prototype.setButtonsState_;fr.prototype.requestButtonsStateUpdate_=fr.prototype.requestButtonsStateUpdate_;
fr.prototype.reposition_=fr.prototype.reposition_;fr.prototype.reset=fr.prototype.reset;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],fr.prototype,"ytLazyListBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fr.prototype,"atStart",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fr.prototype,"atEnd",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"startIndex",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"endIndex",void 0);_.J([_.q({value:6}),_.R("design:type",Number)],fr.prototype,"initialCount",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"scrollCount",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"initialStartIndex",void 0);
_.J([_.q(),_.R("design:type",Object)],fr.prototype,"disableScrollEventListener",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"supportComponentResize",void 0);_.J([_.q({value:function(){var y=this;return function(){return y.prevClick_()}}}),
_.R("design:type",Function)],fr.prototype,"boundPrevClick",void 0);_.J([_.q({value:function(){var y=this;return function(){return y.nextClick_()}}}),
_.R("design:type",Function)],fr.prototype,"boundNextClick",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"useFloorScrolling",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"isSearch",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"dragging",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"dragMouseStart",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"dragOffsetStart",void 0);
_.J([_.q(),_.R("design:type",Object)],fr.prototype,"disableWheelScroll",void 0);_.J([_.q(),_.R("design:type",Object)],fr.prototype,"centerListItems",void 0);_.J([_.l6("iron-resize"),_.xA("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fr.prototype,"onIronResize_",null);_.J([_.l6("transitionend"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],fr.prototype,"onItemsTransitionEnd_",null);
_.J([_.l6("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],fr.prototype,"onChildElementFocus_",null);_.J([_.xA("shownItems"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fr.prototype,"observeShownItems_",null);_.J([_.BW()],fr);_.pr.YtdHorizontalListBehavior=[];_.pr.YtdHorizontalListBehavior.push(_.Gm,_.X.YtRendererBehavior,_.Kr.YtLazyListBehavior,_.E4.YtdGuideStateAwareBehavior,fr.prototype);var wun=["APP_STATE","PI"];var mQf=_.CF(["about:blank"]),MJr={pushState:window.history.pushState,replaceState:window.history.replaceState};var TQ=function(y){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=y;this.internalPushState=y.pushState.bind(y);this.internalReplaceState=y.replaceState.bind(y)};
TQ.prototype.init=function(){this.initialized=!0};
TQ.prototype.pushState=function(y,W){this.initialized||this.init();this.internalPushState&&this.internalPushState(y,"",W)};
TQ.prototype.replaceState=function(y,W){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(y,"",W)};
TQ.prototype.getState=function(){return this.history&&this.history.state};var q5I=function(y){var W=function(){var V=y.apply(this,arguments)||this;V.boundHistoryPushState=!1;V.boundHistoryReplaceState=!1;V.debugInfo={};return V};
_.p(W,y);W.prototype.init=function(){var V=_.xu("IFRAME");_.g$(V,_.Tc(mQf));V.sandbox="allow-same-origin";V.style.display="none";this.iframe=V;document.body.appendChild(V);this.bindHistoryStateFunctions();y.prototype.init.call(this)};
W.prototype.bindHistoryStateFunctions=function(){var V=this,w=[],t;this.iframe&&((t=this.iframe.contentWindow)==null?0:t.history)&&(t=this.iframe.contentWindow.history)&&(w.push(t),Object.getPrototypeOf(t)&&w.push(Object.getPrototypeOf(t)));window.history&&w.push(window.history);t=window.history;Object.getPrototypeOf(t)&&w.push(Object.getPrototypeOf(t));w.push(MJr);t=function(I){for(var P=null,C=0;C<w.length;C++){var d=w[C][I];if(typeof d==="function"){P=d.bind(window.history);V.debugInfo[I]=C;break}}return P};
if(!this.boundHistoryReplaceState){var F=t("replaceState");F&&(this.internalReplaceState=F,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(t=t("pushState"))&&(this.internalPushState=t,this.boundHistoryPushState=!0)};
return W}(TQ),UQr=function(){return q5I.call(this,window.history)||this};
_.p(UQr,q5I);UQr.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mO=function(y){this.browserHistory=y;this.initialized=!1};
mO.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mO.prototype.pushState=function(y,W){this.initialized||this.init();this.browserHistory.pushState(y,W)};
mO.prototype.replaceState=function(y,W){this.initialized||this.init();this.browserHistory.replaceState(y,W)};
mO.prototype.handlePopstate=function(y){return y.state};_.usf=function(y,W,V,w,t){this.endpoint=y;this.forward=W;this.historyEntry=V;this.JSC$29800_savedComponentState=w;this.legacyBorder=t===void 0?!1:t};var S5J=function(y,W){this.rootData=y;this.scrollTop=W};var $U=new _.e9("PAGE_REQUEST_TOKEN"),$FJ=new _.e9("FETCH_PBJ_TOKEN");_.Md=new _.e9("EPHEMERAL_STORE_TOKEN");_.qd=function(y){this.data=Object.assign({},y);var W;(W=this.data.innertubeResponse)==null||delete W.frameworkUpdates};
_.qd.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.cU)()};
_.KV=function(y){return Object.assign({},y.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var DQi=function(){this.maxSize=100;this.timeToDataCache=new Map};
DQi.prototype.get=function(y){var W=this.timeToDataCache.get(y);W&&(this.timeToDataCache.delete(y),this.timeToDataCache.set(y,W));if(W&&W.rootData&&(_.e("web_use_response_store_for_history_cache")||_.e("mweb_use_new_history_manager"))){var V=_.hs().resolve(_.Md),w=lFK(W),t=!!w;if(w){if(w.content){var F=U4(V,w.content);t&&F?W.rootData.response=_.KV(F):t=!1}w.player&&(F=U4(V,w.player),t&&F?W.rootData.playerResponse=_.KV(F):t=!1);w.reelSequence&&(V=U4(V,w.reelSequence),t&&V?W.rootData.reelWatchSequenceResponse=
_.KV(V):t=!1)}t||(this.timeToDataCache.delete(y),W=void 0)}return W};
DQi.prototype.set=function(y,W){if(W.rootData&&(_.e("web_use_response_store_for_history_cache")||_.e("mweb_use_new_history_manager"))){var V=lFK(W),w=Object.assign({},W.rootData);V&&(V.content&&W.rootData.response&&(xQE(this,V.content,W.rootData.response),w.response=null),V.player&&W.rootData.playerResponse&&(xQE(this,V.player,W.rootData.playerResponse),w.playerResponse=null),V.reelSequence&&W.rootData.reelWatchSequenceResponse&&(xQE(this,V.reelSequence,W.rootData.reelWatchSequenceResponse),w.reelWatchSequenceResponse=
null));W=new S5J(w,W.scrollTop)}this.timeToDataCache.has(y)?this.timeToDataCache.delete(y):this.timeToDataCache.size>=this.maxSize&&(V=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(V.value));this.maxSize!==0&&this.timeToDataCache.set(y,W)};
DQi.prototype.clear=function(){this.timeToDataCache.clear()};
var lFK=function(y){var W=_.hs().resolve(_.eX($U)),V;if((V=y.rootData)==null?0:V.endpoint)return W==null?void 0:dXb(W,y.rootData.endpoint);var w;_.rQ(new _.Js("History snapshot response data does not contain endpoint",(w=y.rootData)==null?void 0:w.url));return null},xQE=function(y,W,V){if(y.maxSize>0){var w;
(y=(w=V.responseContext)==null?void 0:w.maxAgeSeconds)&&Number(y)>0&&(w=_.hs().resolve(_.Md),V=qH(V,y),w.put(W,new _.qd(V)))}};var klR=function(y,W,V){this.endpoint=W;this.JSC$29805_savedComponentState=V===void 0?null:V;this.entryTime=y};var gTR=1;var ua=function(y){var W=function(){var V=y.apply(this,[].concat(_.GC(_.Ve.apply(0,arguments))))||this;V.historyEntryTime=0;V.historySnapshotCache=V.createHistoryCache();return V};
_.p(W,y);W.prototype.createHistoryCache=function(){return new DQi};
W.prototype.saveAndReplace=function(V,w,t){var F=window.location.href;var I=I===void 0?{}:I;var P=(P=this.browserHistory.getState())&&P.entryTime?P.entryTime:Pcu();V=this.createNewHistoryEntry(V,I,P);this.saveSnapshot(P,w,t);this.replaceState(V,F||window.location.href)};
W.prototype.saveAndPush=function(V,w,t,F,I){I=I===void 0?{}:I;this.saveSnapshot(this.historyEntryTime,t,F);t=this.historySnapshotCache;F=this.historyEntryTime;var P=t.timeToDataCache.keys();P=_.N(P);for(var C=P.next();!C.done;C=P.next())C=C.value,C>F&&t.timeToDataCache.delete(C);w=this.createNewHistoryEntry(w,I);this.pushState(w,V)};
W.prototype.saveSnapshot=function(V,w,t){this.historySnapshotCache.set(V,new S5J(w,t))};
W.prototype.createNewHistoryEntry=function(V,w,t){t=t===void 0?Pcu():t;return new klR(t,V,w)};
W.prototype.handlePopstate=function(V){var w=y.prototype.handlePopstate.call(this,V),t=null,F=null,I=!1,P=null;w&&w.entryTime&&(P=this.historySnapshotCache.get(w.entryTime)||null,I=w.entryTime>this.historyEntryTime,this.historyEntryTime=w.entryTime,t=w.endpoint,F=w.JSC$29805_savedComponentState);this.handleHistoryCacheLoad(new _.usf(t,I,P,F),V);return w};
W.prototype.pushState=function(V,w){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);y.prototype.pushState.call(this,V,w)};
W.prototype.replaceState=function(V,w){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);y.prototype.replaceState.call(this,V,w)};
W.prototype.handleHistoryCacheLoad=function(){};
return W}(mO),sns=function(){var y=ua.call(this,new UQr)||this;
y.dispatchElement=null;y.entryIndex=0;return y};
_.p(sns,ua);_.E=sns.prototype;_.E.init=function(y){y=y===void 0?!0:y;ua.prototype.init.call(this);this.initialized||(y||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.E.handlePopstate=function(y){var W=null;y.state||(W="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return ua.prototype.handlePopstate.call(this,y);var V=new CustomEvent("yt-history-pop",{cancelable:!0});_.ow(this.dispatchElement,"yt-history-pop",[V,{errorMsg:W}]);_.Kg(this.dispatchElement,"yt-close-all-popups-action");if(!V.defaultPrevented){V=_.hs().resolve(_.hn);W=V.getCurrentData();var w=V.getCurrentPage();V=0;w?(w=_.ow(this.dispatchElement,"yt-get-page-offset",
[w]),w.length>0&&(V=w[0])):_.rQ(new _.Js("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:W?W.page:"undefined"}));W&&(W.csn=_.Xn());this.saveSnapshot(this.historyEntryTime,W,V)}return ua.prototype.handlePopstate.call(this,y)};
_.E.handleHistoryCacheLoad=function(y,W){y.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.N(_.Kg(this.dispatchElement,"yt-history-will-navigate",[W])).next().value||_.ow(this.dispatchElement,"yt-history-load",[W,y]))};
_.E.pushState=function(y,W){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var V=new _.Js("history.pushState is not a function",this.getDebugString());_.ap(V)}ua.prototype.pushState.call(this,y,W)};
_.E.replaceState=function(y,W){if(!this.browserHistory.boundHistoryReplaceState){var V=new _.Js("history.replaceState is not a function",this.getDebugString());_.ap(V)}ua.prototype.replaceState.call(this,y,W)};
_.E.saveAndPush=function(y,W,V,w,t){t=t===void 0?{}:t;V&&(V.csn=_.Xn());ua.prototype.saveAndPush.call(this,y,W,V,w,t)};
_.E.getDebugString=function(){var y=[];this.initialized&&y.push("i");this.browserHistory.boundHistoryReplaceState&&y.push("bhr");this.browserHistory.boundHistoryPushState&&y.push("bhs");"replaceState"in this.browserHistory.debugInfo&&y.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&y.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&y.push("ei:"+String(this.entryIndex));return y.join(",")};
_.SU=function(y,W){y.init(!0);var V=y.browserHistory.getState();y.replaceState(V,MH(W))};
sns.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.DO=new _.e9("DESKTOP_HISTORY_MANAGER_TOKEN");var A52=[10,20,30,40,50,60],la=function(){this.currentPartitionIndex=0},Y5z=function(y){G56({mainAppWeb:_.I6(),
survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},BMz=function(y){G56({mainAppWeb:_.I6(),
survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},J5R=function(y){return y.currentPartitionIndex>=0&&y.currentPartitionIndex<A52.length?A52[y.currentPartitionIndex]:-1},RNR=function(y){return y.currentPartitionIndex>0&&y.currentPartitionIndex-1<A52.length?A52[y.currentPartitionIndex-1]:-1};
la.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var y=RNR(this);y>0&&BMz(y);y=J5R(this);y>0&&Y5z(y);jnm(this)}};
var jnm=function(y){var W=J5R(y);if(W>0){var V=RNR(y);V<0&&(V=0);y.intervalId=_.HU.addJob(function(){var w=RNR(y);w>0&&BMz(w);w=J5R(y);w>0&&Y5z(w);jnm(y)},3,(W-V)*6E4);
y.currentPartitionIndex+=1}else y.currentPartitionIndex=-1};var $Q2=function(){this.skipNextNavigation=!1},nTE=function(y,W,V){if(!W)return!1;
if(y.skipNextNavigation)return y.skipNextNavigation=!1;if(_.h(V,_.wS))return!1;var w,t,F;if((w=_.h(V,_.sT))==null?0:(t=w.browseEndpointContextSupportedConfigs)==null?0:(F=t.browseEndpointContextMainConfig)==null?0:F.skipConfirmation)return!1;var I;return((I=_.h(W.commandMetadata,_.dw))==null?void 0:I.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
$Q2.prototype.showConfirmationDialog=function(y,W){this.navigateParams=W;this.customConfirmationCommand?_.hs().resolve(_.oA).resolveCommand(this.customConfirmationCommand):(W={openPopupAction:{popup:{confirmDialogRenderer:{title:_.CO(_.u5("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.CO(_.u5("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.CO(_.u5("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.CO(_.u5("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.tL.getInstance().triggerAction("yt-open-popup-action",W,y))};
$Q2.prototype.cancelPendingNavigation=function(){var y;((y=this.navigateParams)==null?void 0:y.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var H0A=function(){},aFR=function(y,W,V,w,t,F,I){V=V===void 0?{}:V;
I=I===void 0?{}:I;var P=_.JS.instance,C,d=(C=_.h(W,_.wS))==null?void 0:C.url;return d?GOG(P,d,V,window.location.href,function(L,z){XuK(y,L,z,!1,!0,V,F,w)},function(){return!1}):F_(P,W,V,window.location.href,Y1(W),function(L,z){XuK(y,L,z,!1,!0,V,F,w)},t,I)},XuK=function(y,W,V,w,t,F,I,P){if(!y.JSC$14322_chunkHandler)if(V.page==="watch"||V.page==="learning_journey_watch")if(t||w){if(_.e("kevlar_continue_playback_without_player_response")){var C;
var d=(C=_.h(P,_.Iw))==null?void 0:C.videoId}y.JSC$14322_chunkHandler=new Ls6(_.Kn,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:w,previousVideoId:d},tempData:F},I)}else y.JSC$14322_chunkHandler=new Pq6(_.Kn);else V.page==="shorts"&&t&&!w?y.JSC$14322_chunkHandler=new dFK(_.Kn,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:F},I):y.JSC$14322_chunkHandler=new Cq6(I);y.JSC$14322_chunkHandler.processChunk({endpoint:W,data:V});return y.JSC$14322_chunkHandler.i3.promise},
Glq=function(y,W,V,w,t){(V=_.tjQ(V))&&XuK(y,W,V,!1,!0,w,void 0,t)};var r52=function(){this.pendingNavigationPromise=null};
_.E=r52.prototype;_.E.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.E.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.E.addEventListener=function(){throw Error("Hh");};
_.E.dispatchEvent=function(){throw Error("Hh");};
_.E.removeEventListener=function(){throw Error("Hh");};var b02=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],xt=function(){_.Bg.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Qn6(this)};
_.p(xt,_.Bg);xt.prototype.verifyUser=function(){var y=Qn6(this),W=y.logout;if(!y.sessionChange)return!0;this.dispatchEvent("ytsessionchange");W&&this.dispatchEvent("ytuserinvalid");return!1};
var Qn6=function(y){var W=b02.map(function(t){var F;return(F=_.k_.get(t))!=null?F:""}),V=W.some(function(t,F){return y.sessionCookies&&y.sessionCookies[F]!==""&&t===""}),w=W.some(function(t,F){return y.sessionCookies&&y.sessionCookies[F]!==t});
y.sessionCookies=W;return{logout:V,sessionChange:w}};
xt.prototype.clearTimeout=function(){this.scheduledJobId&&(_.HU.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Lza=new _.e9("POSTMESSAGE_TUNNEL_TOKEN");var O0v=["/parent_tools","/file_download","/artist_roster"],eNd=[oPK,KLz,pyq,ftz,idq,hbK,TuI,maQ];var Z0E=new _.e9("APP_ROOT");var kt=new _.e9("NAVIGATION_CONFIRMATION_SERVICE");var y9q="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Wr6=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
s4=function(y,W){this.pendingNavigationPromise=null;this.JSC$14340_clientRoot=y;this.historyManager=W;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 H0A;this.debugString=y.is;y={"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};_.FD(_.tL.getInstance(),y,this.JSC$14340_clientRoot)},EL6,NB6,Imr,gLz,Fri;
_.p(s4,r52);s4.prototype.reload=function(){_.Ng(window.location.href)};
var NRI=function(y){y.currentEndpoint&&_.h(y.currentEndpoint,_.Jx)?y.reload():y.currentEndpoint&&y.navigate(y.currentEndpoint,!0,void 0,{disableCache:!0})};
s4.prototype.navigate=function(y,W,V,w,t,F,I,P){W=W===void 0?!1:W;V=V===void 0?{}:V;w=w===void 0?{}:w;var C=_.hs().resolve(kt),d;if(!I&&nTE(C,(d=this.currentEndpoint)!=null?d:void 0,y))return C.showConfirmationDialog(this.JSC$14340_clientRoot.parentElement,{endpoint:y,reload:W,params:V,tempData:w,requestType:t,createScreenConfig:F}),!1;var L=_.FS();_.EA(L,"eocs")||L.parkOrScheduleJob(function(){L.processSignal("eocs")},10,"eor");
I=Y1(y);C=w.autonav==="1";d=_.Xn();xt.instance||(xt.instance=new xt);var z=xt.instance.verifyUser(),c;if(_.e("enable_dark_theme_only_on_shorts")){var K=document.documentElement.hasAttribute("dark"),f=_.H9(!0)==="USER_INTERFACE_THEME_DARK";if(I==="shorts"){if(!K)if(_.e("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var U;_.Ng((U=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:U.url,void 0,void 0,window.top)}}else{var l;_.Ng(_.CB((l=_.h(y==null?
void 0:y.commandMetadata,_.dw))==null?void 0:l.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.e("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!K){var x;_.Ng(_.CB((x=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(f!==K){var B;_.Ng(_.CB((B=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:B.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(I==="watch"){if(V56(_.hs().resolve(_.VH),
y)&&(z||_.e("fix_miniplayer_navigation_killswitch")))return!1;_.e("block_all_player_prefetch_requests")||(c=FiK(_.hD(_.Rb),y,C))}else{var r,H=(r=_.h(this.currentEndpoint,_.Iw))==null?void 0:r.videoId;H&&_.Hh.getInstance().then(function(un){un&&un.set("yt-miniplayer-shown-video-id",H)})}c&&(V.frags=c.missingFragments_.join(","));
U=null;var a;l=(a=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:a.ignoreNavigation;if(!l)if(_.e("kevlar_command_url")){var b;U=(b=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?void 0:b.url}else U=_.zMP(y,V);if(U&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&U==this.lastNavigationUrl)return _.HN({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.DE(ZA(),"CANCELLED")}U&&(this.lastNavigationUrl=U);BeL();_.Z7("IS_HOMEPAGE_COLD",
!1);_.Z7("IS_RESULTS_PAGE_COLD",!1);_.Z7("IS_WATCH_PAGE_COLD",!1);y.loggingUrls&&y.loggingUrls.forEach(function(un){un.baseUrl&&_.Fk(un.baseUrl)});
_.puj(y,F?F.layer:0)&&_.e("kevlar_flush_logs_on_away_navigation")&&_.Xk();if(hNd(y))return!1;Yjz(I,t);if(!U)return l||_.rQ(new _.Js("Can't construct url for endpoint",y)),_.DE(ZA(),"FAILURE"),!1;_.Ccv();a=y&&_.h(y,_.sT)&&_.h(y,_.sT).browseId.startsWith("UC");V=(b=_.e("enable_dark_theme_only_on_shorts")&&I==="shorts"?!1:_.X4()&&document.documentElement.hasAttribute("dark")!==_.nO())?{themeRefresh:1}:{};b&&!_.As()&&_.H9()==="USER_INTERFACE_THEME_DARK"&&(V.theme="dark");a=b||wnJ(U)&&!a&&!_.e("kevlar_disable_url_allowlist");
z||(a=!0);if(a||_.yC("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Fv;var Py=(Fv=window.top)==null?void 0:Fv.location.href}catch(un){var du;Py=(du=un)==null?void 0:du.message}_.rQ(new _.Js("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Py}))}y=_.e("kevlar_redirect_on_window_killswitch")?window.top:window;E$(U);_.Ng(_.CB(U,V),void 0,void 0,y);_.DE(ZA(),"ABORTED");return!1}_.e("kevlar_early_popup_close")&&_.ow(this.JSC$14340_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14322_chunkHandler=void 0;var mL;Py=Y1((mL=this.currentEndpoint)!=null?mL:void 0);(mL=I==="shorts"&&Py==="shorts")||_.$2v();_.wi(qea)("nr",void 0);C&&_.HN({webInfo:{navigationReason:"an"}});y.clickTrackingParams&&(w.itct=y.clickTrackingParams,w.csn=d);brb(w);w.endpoint=JSON.stringify(y);_.e("enable_unknown_lact_fix_on_html5")&&(_.hs().resolve(_.rL),w.lact=_.es());_.Gc.isEmpty(w)||_.On(U,w);!_.e("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(F=Object.assign({},{layer:0},F,{parentLayer:3}));this.pendingNavigationPromise=F=aFR(this.pageFetcher,y,w,this.currentEndpoint,this.JSC$14340_isNetworkPromiseStale.bind(this),F,P);F=F.then(this.handleNavigateSuccess.bind(this,F,y,c,w),this.handleNavigateFail.bind(this,F,y));_.s8().navigationFinishPromise=F;W={endpoint:y,pageType:I,url:MH(U),reload:!!W,noProgressBar:mL};t&&(W.type=t);this.fireEvent("yt-navigate-start",W);c&&Glq(this.pageFetcher,y,c,w,this.currentEndpoint);
return!0};
s4.prototype.JSC$14340_isNetworkPromiseStale=function(y){return y!=this.pendingNavigationPromise};
var t5r=function(y,W,V,w,t){var F=Y1(W);W={endpoint:W,pageType:F};t&&(W.errorMessage=t);_.rQ(V);W.navigationDoneMs=_.aw("nd");W.navigationErrorReason=w;y.fireEvent("yt-navigate-error",W)};
s4.prototype.handleNavigateFail=function(y,W,V){var w=void 0;V instanceof _.Fu&&(w=V,dHj(V));if(this.JSC$14340_isNetworkPromiseStale(y))return _.Gb(w);_.DE(ZA(),"FAILURE");t5r(this,W,V,"101");return _.Gb(V)};
s4.prototype.handleNavigateSuccess=function(y,W,V,w,t){if(this.JSC$14340_isNetworkPromiseStale(y))return _.T2();this.pendingNavigationPromise=null;if(!t)return W=new _.Js("Missing data in response for navigation endpoint",W),_.Gb(W);if(t.reload)return window.location.reload(!0),_.T2();V&&(y={},_.Gc.extend(y,_.tjQ(V),t),t=y);var F,I;V=(F=t)==null?void 0:(I=F.timing)==null?void 0:I.responseStart;V!=null&&_.aw("srt",V);_.aw("pdc");var P,C;F=(P=t)==null?void 0:(C=P.timing)==null?void 0:C.info;F!=null&&
(P=_.wi(_.lGz)(F),_.HN(P));_.DE(ZA(),"SUCCESS");Fri(this,W,t,1,w);return _.T2()};
var wnJ=function(y){var W=y;_.e("kevlar_no_redirect_to_classic_2_ks")||(W=(new _.gw(y)).getPath());if(W==="/"||W==="/red")return!1;var V=!0;y9q.forEach(function(w){y.indexOf(w)===0&&(V=!1)});
Wr6.forEach(function(w){var t=w.url;_.e(w.expFlag)&&y.indexOf(t)===0&&(V=!1)});
return V};
s4.prototype.publishPageData=function(y){this.fireEvent("yt-page-data-fetched",{pageData:y})};
EL6=function(y,W,V,w,t,F){var I=null;W.page!=="watch"&&W.page!=="learning_journey_watch"||w?W.filler||_.ow(y.JSC$14340_clientRoot,"yt-stop-old-player",[W]):I=XuK(y.pageFetcher,t,W,V,!1,F,void 0,y.currentEndpoint);if(I)return I.then(y.publishPageData.bind(y,W));y.publishPageData(W);return _.T2()};
NB6=function(y,W,V){var w=null;if(!V)return w=new _.Js("Empty data",y.debugString,W);var t=V.response;if(!t)return w;var F={endpointType:Y1(W)||"unknown"};t.responseContext?(t=t.responseContext.errors)&&(w=new _.Js("Errors in response context",y.debugString,W,t,F)):w=t.error||t.errorMetadata?new _.Js("Errors in response",y.debugString,W,t.error,t.errorMetadata,F):new _.Js("responseContext missing",y.debugString,W,Object.keys(t).sort().join(","),F);var I,P,C,d;if(y=V==null?void 0:(I=V.response)==null?
void 0:(P=I.responseContext)==null?void 0:(C=P.webResponseContextExtensionData)==null?void 0:(d=C.webResponseContextDebugData)==null?void 0:d.debugErrorMessages)for(I=0;I<y.length;I++);return w};
Imr=function(y){var W,V,w,t;return y==null?void 0:(W=y.response)==null?void 0:(V=W.responseContext)==null?void 0:(w=V.errors)==null?void 0:(t=w.error)==null?void 0:t["0"]};
gLz=function(y,W){var V;if(V=W.url&&!W.url.startsWith("/clip"))V=W.url,V=!_.e("webfe_parse_debug_param_in_resolveurl_service")&&y.searchDebugUrlMatcher.test(V)||KRR(V)?!0:!1;if(V)KRR(W.url)&&_.P4(window.location.href).themeRefresh?(W=_.vN(W.url,"themeRefresh"),_.SU(y.historyManager,W)):W.url&&!NM4(W.url)&&_.SU(y.historyManager,W.url);else if(W.endpoint){var w,t,F;(V=(w=W.endpoint)==null?void 0:(t=w.commandMetadata)==null?void 0:(F=t.webCommandMetadata)==null?void 0:F.url)&&!NM4(V)&&_.SU(y.historyManager,
V);V&&W.url&&V!=W.url&&!W.url.match("playnext=1")&&new _.Js("Response url mismatch in response data",y.debugString,V,W.url)}};
_.PmQ=function(y,W,V,w,t,F,I,P){F=F===void 0?!1:F;var C=_.hs().resolve(kt),d;if(!P&&nTE(C,(d=y.currentEndpoint)!=null?d:void 0,W))return C.showConfirmationDialog(y.JSC$14340_clientRoot.parentElement,{endpoint:W,data:V,navigationType:w,tempData:t,isMiniplayer:F,isForwardHistoryNavigation:I==null?void 0:I.forward}),_.T2();y.pageFetcher.JSC$14322_chunkHandler=void 0;return Fri(y,W,V,w,t,F)};
Fri=function(y,W,V,w,t,F){F=F===void 0?!1:F;y.isMiniplayerExpansion=F;var I=w===2;y.currentEndpoint=W;y.numNavigations++;y.numNavigations&&(AWv.navigationCount=y.numNavigations);_.Z7("NUM_NAV",y.numNavigations);var P=NB6(y,W,V);if(P)return t5r(y,W,P,"102",Imr(V)),_.Gb(P);var C,d,L,z;P=V.rootVe||(V==null?void 0:(C=V.response)==null?void 0:(d=C.responseContext)==null?void 0:(L=d.webResponseContextExtensionData)==null?void 0:(z=L.ytConfigData)==null?void 0:z.rootVisualElementType);!I&&V&&gLz(y,V);var c,
K;C=V==null?void 0:(c=V.response)==null?void 0:(K=c.responseContext)==null?void 0:K.maxAgeSeconds;if(!I&&!isNaN(C)){var f;_.e("kevlar_use_response_ttl_to_invalidate_cache")?f=(0,_.cU)()+1E3*C:_.e("kevlar_always_invalidate_cache")&&(f=0);isNaN(f)||(V.expirationTime=f)}_.hD(_.Rb).prefetchCache_.clear();I||V.page!=="watch"||V.type!=="reduced"&&w!==1?w=EL6(y,V,I,!!F,W,t):(y.publishPageData(V),w=_.T2());t=w.then(function(){var U=Y1(W);U={endpoint:W,pageType:U,fromHistory:I,response:V};U.navigationDoneMs=
_.aw("nd");y.fireEvent("yt-navigate-finish",U)});
V.csn&&P&&V.clientSideGrafts&&w.then(y.attachClientSideGrafts.bind(y,V,_.Hf()));return t};
_.E=s4.prototype;_.E.attachClientSideGrafts=function(y,W){y.clientSideGrafts&&W&&y.clientSideGrafts.forEach(function(V){if(W&&V){var w=_.nD(V);_.e("combine_ve_grafts")?_.BC().graftServerVe(V,W):_.Fr(y.csn,W,w)}})};
_.E.handleSignalActionHistoryBack=function(){window.history.back()};
_.E.handleSignalActionCloseWindow=function(){window.close()};
_.E.handleSignalActionReloadPage=function(){this.reload()};
_.E.handleSignalActionSoftReloadPage=function(){NRI(this)};
_.E.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.E.fireEvent=function(y,W){y=new CustomEvent(y,{bubbles:!0,cancelable:!1,composed:!0,detail:W});this.dispatchEvent(y)};
_.E.addEventListener=function(y,W){this.JSC$14340_clientRoot.addEventListener(y,W)};
_.E.dispatchEvent=function(y){return this.JSC$14340_clientRoot.dispatchEvent(y)};
_.E.removeEventListener=function(y,W){this.JSC$14340_clientRoot.removeEventListener(y,W)};
s4[cs]=[Z0E,_.DO];_.Zxj=new fc("browse","h8y2qb");_.y7v=new fc("search","JzFVk");_.Wkd=new fc("shorts","xwEKAe");_.Vga=new fc("watchFixie","nmfa2d");_.w0G=new fc("watchFlexy","CF909");_.tgv=new fc("watchGrid","Tm0L3c");_.Fkj=new fc("watchLearningJourney","L3n37");var Cmr;var OkQ=function(){return _.u.apply(this,arguments)||this};
_.p(OkQ,_.u);_.CM.Object.defineProperties(OkQ,{template:{configurable:!0,enumerable:!0,get:function(){if(Cmr===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Cmr=y}y=Cmr;return y}}});
_.J([_.m(O0A.YtPlayerBehavior),_.R("design:type",Object)],OkQ.prototype,"ytPlayerBehavior",void 0);_.J([_.k({is:"ytd-player"})],OkQ);var vLf;var dvr;var LrI;var AW=function(){var y=_.u.apply(this,arguments)||this;y.forceModernIconButton=!1;y.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return y};
_.p(AW,_.u);AW.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]]"}}}}}};
AW.prototype.handleAccountLinkingStateChangedCommand=function(y){if(y=_.h(y,E$i)){var W,V=(W=this.data)==null?void 0:W.providerKey;W=y.providerKey;V&&W&&V.id===W.id&&V.subject===W.subject&&(y=y.linked,y!==void 0&&(this.set("data.linked",y),this.notifyPath("data.linked"),_.e("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(y)))}};
AW.prototype.setPlayerAccountLinkState=function(y){var W=new Zo6;yqI(W,bo6(new rRA,y));var V=_.Kn();V&&V.getPlayerPromise().then(function(w){w.setAccountLinkState(_.Gj(W.JSC$12044_serializeBinary(),4));w.updateAccountLinkingConfig(y)})};
AW.prototype.handleShowAccountLinkDialog=function(){var y=this.get("button.buttonRenderer.command");y&&_.M8([y],this.hostElement)};
_.CM.Object.defineProperties(AW.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}}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],AW.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AW.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],AW.prototype,"overrides",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],AW.prototype,"forceModernIconButton",void 0);_.J([_.q({value:"bottom"}),_.R("design:type",String)],AW.prototype,"buttonTooltipPosition",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],AW.prototype,"forceIconButton",void 0);_.J([_.q(),_.R("design:type",Boolean)],AW.prototype,"disableTextTransform",void 0);
_.J([_.M("data","data.linked","data.isWarning"),_.R("design:type",Object),_.R("design:paramtypes",[])],AW.prototype,"button",null);_.J([_.k({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],AW);
_.Y(AW,"ytd-account-link-button-renderer",function(){if(LrI!==void 0)return LrI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return LrI=y},{mode:1});var zt2;var c9i=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Yt=function(){return _.u.apply(this,arguments)||this};
_.p(Yt,_.u);Yt.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Yt.prototype.updateButtonActiveState=function(){var y=this,W=!!c9i.find(function(V){return y.currentState===V});
this.button&&(this.button.isPressed=W)};
_.CM.Object.defineProperties(Yt.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.playlistLoopStateEntity)==null?void 0:y.state)||((W=this.data)==null?void 0:W.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var y=void 0,W;if(this.currentState&&((W=this.data)==null?0:W.states)){W=_.N(this.data.states);for(var V=W.next();!V.done;V=W.next()){V=_.h(V.value,_.TFm);var w=void 0;if(((w=V)==null?void 0:w.state)===this.currentState){y=V;break}}}return y}}});
Yt.prototype.updateButtonActiveState=Yt.prototype.updateButtonActiveState;_.J([_.m(_.y$),_.R("design:type",Object)],Yt.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.UQa}),_.R("design:type",Object)],Yt.prototype,"playlistLoopStateEntity",void 0);_.J([_.q(),_.R("design:type",Object)],Yt.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yt.prototype,"forceIconOnly",void 0);_.J([_.s$("ytd-button-renderer"),_.R("design:type",_.cK)],Yt.prototype,"button",void 0);
_.J([_.M("data","playlistLoopStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yt.prototype,"currentState",null);_.J([_.xA("currentButtonStateRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yt.prototype,"updateButtonActiveState",null);_.J([_.M("currentState"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yt.prototype,"currentButtonStateRenderer",null);
_.J([_.k({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Yt);
_.Y(Yt,"ytd-playlist-loop-button-renderer",function(){if(zt2!==void 0)return zt2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return zt2=y},
{mode:1});var etJ;var htA=_.u5("DOWNLOAD",{},"Download"),oLs=_.u5("DOWNLOADING",{},"Downloading"),KrR=_.u5("DOWNLOADED",{},"Downloaded"),pn2=_.u5("RETRY",{},"Retry"),BS=function(){var y=_.u.apply(this,arguments)||this;y.forceIconButton=!1;y.forceIconOnly=!1;y.overrides=!1;y.buttonTooltipPosition=!1;y.styleActionButton=!1;y.disableTextTransform=!1;y.downloadProgress=0;y.isDownloadComplete=!1;y.isHidden=!0;y.transferState="TRANSFER_STATE_UNKNOWN";y.isVideoDeletedByUser=!1;y.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return y};
_.p(BS,_.u);_.E=BS.prototype;_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.dataChanged=function(){var y;(y=this.data)!=null&&y.text||(y=_.yY(_.dP().getState(),this.videoId),this.updateButtonState(y))};
_.E.computeVideoId=function(y){return y};
_.E.showHideButton=function(){this.updateButtonVisibility()};
_.E.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.E.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.E.updateButtonState=function(y){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==oLs||!_.YC(y))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(y){case "TRANSFER_STATE_UNKNOWN":y=htA;var W="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":y=pn2;W="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":y=KrR;W="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":y=
oLs;W="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":y=pn2;W="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;default:y=htA,W="OFFLINE_DOWNLOAD",V="ACTION_ADD"}this.isVideoDeletedByUser&&(y=htA,W="OFFLINE_DOWNLOAD",V="ACTION_ADD");var w=Object.assign({},this.data);w.text=_.CO(y);w.tooltip=y;w.icon={iconType:W};w.size="SIZE_DEFAULT";w.style="STYLE_DEFAULT";_.h(w.command,_.xn)&&(_.h(w.command,_.xn).action=V);this.set("data",w)}};
_.E.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?y="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(y="OFFLINE_PIN",this.isDownloadComplete=!0);var W;y!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.text=_.CO(oLs),W.tooltip=oLs,W.icon={iconType:y},_.h(W.command,_.xn)&&(_.h(W.command,_.xn).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
BS.prototype.updateProgress=BS.prototype.updateProgress;BS.prototype.onTransferStateChanged=BS.prototype.onTransferStateChanged;BS.prototype.showHideButton=BS.prototype.showHideButton;BS.prototype.dataChanged=BS.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"forceIconButton",void 0);
_.J([_.q(),_.R("design:type",Object)],BS.prototype,"forceIconOnly",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"overrides",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"buttonTooltipPosition",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"styleActionButton",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"disableTextTransform",void 0);
_.J([_.q({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.R("design:type",String)],BS.prototype,"videoId",void 0);_.J([_.q(),_.R("design:type",Object)],BS.prototype,"data",void 0);_.J([_.q({selector:VY,selectorArgs:["videoId"]}),_.R("design:type",Object)],BS.prototype,"downloadProgress",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BS.prototype,"isDownloadComplete",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BS.prototype,"isHidden",void 0);_.J([_.q({selector:_.yY,selectorArgs:["videoId"]}),_.R("design:type",String)],BS.prototype,"transferState",void 0);_.J([_.q({selector:_.n0n,selectorArgs:["videoId"]}),_.R("design:type",Object)],BS.prototype,"isVideoDeletedByUser",void 0);_.J([_.q({selector:Y8P,selectorArgs:["videoId"]}),_.R("design:type",Object)],BS.prototype,"offlineabilityState",void 0);
_.J([_.q({value:!0}),_.R("design:type",Boolean)],BS.prototype,"showTooltips",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],BS.prototype,"sendCommandWhenDisabled",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],BS.prototype,"disabled",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BS.prototype,"dataChanged",null);
_.J([_.Jc("offlineabilityState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BS.prototype,"showHideButton",null);_.J([_.Jc("transferState","isVideoDeletedByUser"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BS.prototype,"onTransferStateChanged",null);_.J([_.Jc("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BS.prototype,"updateProgress",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],BS);
_.Y(BS,"ytd-download-button-renderer",function(){if(etJ!==void 0)return etJ;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return etJ=y},{mode:2});var ikz;var fm2,TB2=function(){if(fm2!==void 0)return fm2;var y=document.createElement("template");_.T(y,'\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 fm2=y};var mvK=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live"),M5r=_.pB("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,JW=function(){var y=_.u.apply(this,arguments)||this;y.isPressed=!1;y.forceIconButton=!1;y.forceIconOnly=!1;y.forceModernIconButton=!1;y.alignByText=!1;y.isShorts=!1;y.animatedText=!1;y.shouldAnimate=!1;y.JSC$14377_browserSupportsAnimation=_.e("web_supports_animations_api");y.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};y.onTap=function(){var W;if((W=y.data)==null||!W.defaultNavigationEndpoint){var V;W=!((V=y.data)==null?0:V.isToggled);var w;if((w=y.data)==null||!w.preventAutoToggle){y.shouldAnimate=!1;y.disableTextUpdateJobId&&_.HU.cancelJob(y.disableTextUpdateJobId);y.disableTextUpdateJobId=_.HU.addLowPriorityJob(function(){y.disableTextUpdateJobId=void 0},M5r);
var t;y.set("data.isToggled",!((t=y.data)==null?0:t.isToggled));V=y.getInnertubeIcon();w={toggled:W,actions:{}};V&&(w.actions[V.toLowerCase()]=W);_.h1(y.hostElement,"yt-toggle-button",w)}}};
return y};
_.p(JW,_.u);_.E=JW.prototype;_.E.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.HU.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.toggle=function(y){var W;this.set("data.isToggled",y!==void 0?y:!((W=this.data)==null?0:W.isToggled))};
_.E.handleUpdateToggleButtonStateCommand=function(y){if(this.data){y=_.h(y,z0r);var W,V,w,t=(W=this.data)==null?void 0:(V=W.toggleButtonSupportedData)==null?void 0:(w=V.toggleButtonIdData)==null?void 0:w.id;t&&y&&t===(y==null?void 0:y.buttonId)&&this.set("data.isToggled",y.toggled)}};
_.E.handleUpdateToggleButtonTextAction=function(y){if(this.data){y=_.h(y,Vtr);var W,V,w,t=(W=this.data)==null?void 0:(V=W.toggleButtonSupportedData)==null?void 0:(w=V.toggleButtonIdData)==null?void 0:w.id;t&&y&&t===(y==null?void 0:y.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=y.defaultNumericalValue,this.set("data.defaultText",y.defaultText),this.set("data.toggledText",y.toggledText),this.shouldAnimate=!1)}};
_.E.getInnertubeIcon=function(){var y=this.data;if(y){var W,V,w=((W=y.defaultIcon)==null?0:W.iconType)?(V=y.defaultIcon)==null?void 0:V.iconType:null,t,F;W=((t=y.toggledIcon)==null?0:t.iconType)?(F=y.toggledIcon)==null?void 0:F.iconType:w;return y.isToggled?W:w}};
_.E.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.CM.Object.defineProperties(JW.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y={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$14377_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var W=y.renderer;var V=y.element;var w=y.toggled;var t=y.onTapCallback;var F=y.commandClientArgs;var I=y.overrides;var P=y.forceIcon;var C=y.forceModernIconButton;var d=y.forceDisabled;var L=y.useAnimatedText;var z=y.animatedTextProps;y=lFj(W,w);P=!W.defaultIcon||!P&&W.defaultText?W.defaultIcon?"leading":void 0:C?"icon-only":"icon-only-40";P==="icon-only-40"&&(y.type="text");var c;C=Object;var K=C.assign,f;a:switch((f=
W.style)==null?void 0:f.styleType){case "STYLE_COMPACT_GRAY":f={size:"S"};break a;default:f={size:"M"}}var U=!!w;var l=(l=w&&W.toggledText||W.defaultText)?_.y4(l):void 0;L?(L=_.OT(w&&W.toggledText||W.defaultText))&&z&&!isNaN(Number(z.numberValue))?(z.numberText=L,w&&(z.numberValue+=1),L=z):L=void 0:L=void 0;var x,B,r,H;var a=(z=((B=w?W.toggledAccessibilityData||((a=W.toggledText)==null?void 0:a.accessibility):W.accessibilityData||((x=W.defaultText)==null?void 0:x.accessibility))==null?void 0:(r=B.accessibilityData)==
null?void 0:r.label)||((H=W.accessibility)==null?void 0:H.label))?z:_.OT(w&&W.toggledText||W.defaultText);d=d===void 0?W.isDisabled:d;V=DQb(W,w,t,V,F);w=S5P(W,w);w!=null&&w.length?(w=_.EU({innertubeCommand:v4n(w),forceNewState:!0}),w=N4(w)?w:void 0):w=void 0;W=K.call(C,{},y,f,{iconPosition:P},I,{focused:!1,toggled:U,toggleable:!0,formattedButtonText:l,animatedTextProps:L,accessibilityLabel:a,disabled:d,onTap:V,aTagConfig:w},HYn((c=W.colorData)==null?void 0:c.basicColorPaletteData));W.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(W.type="filled");return W}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var y=this.getInnertubeIcon();if(y)return _.D8(y)}}});
JW.prototype.resetAnimation=JW.prototype.resetAnimation;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],JW.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],JW.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],JW.prototype,"isPressed",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"forceIconButton",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"forceIconOnly",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"forceModernIconButton",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"alignByText",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"overrides",void 0);
_.J([_.q(),_.R("design:type",Boolean)],JW.prototype,"disabled",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"isShorts",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"buttonTooltipPosition",void 0);_.J([_.q(),_.R("design:type",Object)],JW.prototype,"animatedText",void 0);_.J([_.q(),_.R("design:type",String)],JW.prototype,"textNumberValue",void 0);_.J([_.q({computed:"computeTooltip(data, data.isToggled)"}),_.R("design:type",Object)],JW.prototype,"tooltip",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JW.prototype,"resetAnimation",null);_.J([_.M("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.R("design:type",Object),_.R("design:paramtypes",[])],JW.prototype,"computedButtonShape",null);_.J([_.M("data.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],JW.prototype,"computedIcon",null);
_.J([_.k({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],JW);mvK&&_.Y(JW,"ytd-toggle-button-renderer",TB2,{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var PZv=_.eY(function(y){function W(d){var L;return _.g(function(z){if(z.nextAddress==1)return(L=!klG(d,P())||!P().enabled)?z.jumpTo(2):z.yield(J5G(),3);z.nextAddress!=2&&(L=z.yieldResult);if(L)return z.return();V();setTimeout(function(){I(!1)},1500);
_.B7(z)})}
function V(){setTimeout(function(){I(!0);var d;(d=w.lottieEl)==null||d.goToAndPlay(0)},150)}
var w=_.D1(),t=_.N(_.M1(!1,void 0,"JJXzp")),F=t.next().value,I=t.next().value,P=_.LD(y.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.a8(function(){var d,L;((d=y.settings)==null?void 0:(L=d.call(y))==null?void 0:L.uniqueId)==="this is not intended behavior"&&_.rQ(new _.Js("Smartimation Settings is undefined"))});
_.H1(function(){P().experimentEnabled&&(P().enabled?snR(W):(I(!1),A5n(W)),_.XT(function(){A5n(W)}))},"FRiAUe");
_.H1(function(){P().timings.join("");P().experimentEnabled&&(Y5y(P()),_.XT(function(){BMy(P())}))},"VKiJOe");
var C=_.DZ(function(){var d=w,L=P().uniqueId+"-border",z,c;var K="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((c=(z=_.hs().resolve(_.eX(_.va)))==null?void 0:z())!=null&&c?"dark":"light")+"_v2.json";return{animationRef:d,animationConfig:{name:L,autoplay:!1,loop:!1,path:K}}},void 0,"tgykab");
t={};return _.O("yt-smartimation",{class:_.kS(y.className,"smartimation",(t["smartimation--experiment-enabled"]=function(){return P().experimentEnabled},t["smartimation--active-border"]=F,t["smartimation--enable-masking"]=RNG(),t))},_.O(_.v,{cond:function(){return P().experimentEnabled},
then:function(){return _.O("div",{class:"smartimation__border"},_.O(_.fh,{className:"smartimation__border-gradient",data:C,animationName:function(){return C().animationConfig.name}}))}}),_.O("div",{class:"smartimation__content"},y.children))},"D");
PZv.idomCompat=!0;_.iF(PZv,"yt-smartimation",{props:{className:_.vB,settings:_.vB}});var Rj=function(){var y=_.u.apply(this,arguments)||this;y.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};y.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};y.shouldEnableSmartimation=!1;return y};
_.p(Rj,_.u);Rj.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Rj.prototype.onDataChanged=function(){var y,W;this.shouldEnableSmartimation=(((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Rj.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var y=_.h(this.data.likeButton,_.tg),W=_.h(this.data.dislikeButton,_.tg);return!!((y==null?0:y.isToggled)||(W==null?0:W.isToggled))};
Rj.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]]"}}}}}};
_.CM.Object.defineProperties(Rj.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var y,W,V=((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:this.shouldEnableSmartimation,experimentEnabled:V.length>0}}}});
Rj.prototype.onDataChanged=Rj.prototype.onDataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Rj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Rj.prototype,"likeButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],Rj.prototype,"dislikeButtonOverride",void 0);
_.J([_.M("shouldEnableSmartimation"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rj.prototype,"smartimationSettings",null);_.J([_.xA("data"),_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rj.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Rj);
_.Y(Rj,"ytd-segmented-like-dislike-button-renderer",function(){if(ikz!==void 0)return ikz;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ikz=y},{mode:1});var qqz;var UvJ;(UvJ=document.body)==null||UvJ.setAttribute("rounded-container","");var uCf={};uCf.YtToggleButtonBehavior=[_.ik.YtActionHandlerBehavior,RY.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 y=this.data.isToggled;if(!this.isModal_(y)){if(!this.data.preventAutoToggle){this.toggle();var W={toggled:this.data.isToggled,actions:{}};W.actions[this.buttonIcon]=this.data.isToggled;_.h1(this.hostElement,"yt-toggle-button",W)}W=this.data.defaultServiceEndpoint||null;var V=this.data.toggledServiceEndpoint||null;if(W&&V||W&&this.data.preventAutoToggle)y=y?V:W,W=this.disableCommandHandlerOverride,_.e("killswitch_toggle_button_behavior_resolve_command")||W?_.i5(this.hostElement,
[y]):_.kc(y,this.hostElement),_.h1(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:y})}},
stateChanged_:function(){var y=this.data;if(y){var W=y.isToggled;this._setEndpoint(this.computeEndpoint_(y));this._setServiceEndpoint(this.computeServiceEndpoint_(y));this._setButtonIcon(this.computeButtonIcon_(y,W));this._setButtonText(this.computeButtonText_(y,W));this._setButtonAccessibility(this.computeAccessibility_(y,W));this._setButtonTooltip(this.computeTooltip_(y,W));this._setButtonClass(this.computeButtonClass_(y,W));this._setIconPositionType(this.computeIconPositionType_(y));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=W):this.elements_.button.setAttribute("aria-pressed",W));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=W)}},
shouldSetIconActiveState_:function(){return _.e("kevlar_system_icons")},
toggle:function(y){this.set("data.isToggled",y!==void 0?y:!this.data.isToggled);_.e("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(y){if(y){var W,V;return!!((W=this.data)==null?0:(V=W.toggledServiceEndpoint)==null?0:V.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(y){return y&&y.defaultNavigationEndpoint||null},
computeButtonIcon_:function(y,W){var V=y&&y.defaultIcon?_.D8(y.defaultIcon.iconType):null;y=y&&y.toggledIcon?_.D8(y.toggledIcon.iconType):V;return W?y:V},
handleUpdateToggleButtonStateCommand_:function(y){y=y.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==y.buttonId&&this.toggle(y.toggled)},
computeButtonText_:function(y,W){return y?W&&y.toggledText||y.defaultText||null:null},
computeAccessibility_:function(y,W){return y?(W?this.get("toggledAccessibilityData.accessibilityData",y):this.get("accessibilityData.accessibilityData",y))||y.accessibility||null:null},
computeTooltip_:function(y,W){return y?W&&y.toggledTooltip||y.defaultTooltip||null:null},
computeButtonClass_:function(y,W){if(!y)return"";var V="",w=y.toggledStyle||y.style;if(W=W?w:y.style){W.styleType&&(W=W.styleType);try{V+=W.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.bb(t,W,typeof W),_.rQ(t)}}if(y=y.size){y.sizeType&&(y=y.sizeType);try{V+=y.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.bb(t,y,typeof y),_.rQ(t)}}return V.trim()},
computeIconPositionType_:function(y){return y&&y.iconPosition||null},
computeServiceEndpoint_:function(y){var W=y&&y.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:V&&y.command?y.command:null},
handleUpdateToggleButtonTextAction_:function(y){y=y.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==y.buttonId&&(this.set("data.defaultText",y.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",y.toggledText),this.notifyPath("data.toggledText"))}}];_.ZQ("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Sqi=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live"),jU=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.roundedContainer=!0;return y};
_.p(jU,_.u);jU.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
jU.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var y=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var W={toggled:!!this.data.isToggled,actions:{}};W.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var V,w;W.actions.playlistId=(V=this.data.defaultServiceEndpoint)==null?void 0:(w=V.playlistEditEndpoint)==null?void 0:w.playlistId;_.h1(this.hostElement,"yt-toggle-button",W)}(y=y?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(y)}};
jU.prototype.onYtNavigate=function(y){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.CM.Object.defineProperties(jU,{template:{configurable:!0,enumerable:!0,get:function(){if(qqz===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);qqz=y}y=qqz;return y}}});
jU.prototype.onYtNavigate=jU.prototype.onYtNavigate;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],jU.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],jU.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(uCf.YtToggleButtonBehavior),_.R("design:type",Object)],jU.prototype,"ytToggleButtonBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],jU.prototype,"data",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],jU.prototype,"showTooltips",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jU.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jU.prototype,"roundedContainer",void 0);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],jU.prototype,"onYtNavigate",null);
_.J([_.k({is:"ytd-toggle-button-renderer",disableElementRegistration:Sqi})],jU);var DvA;_.$t=new _.e9("PANEL_CONTROLLER_TOKEN");_.nr=new _.e9("SHEET_CONTROLLER_TOKEN");_.HS=new _.e9("DIALOG_CONTROLLER_TOKEN");DvA=new _.e9("DIALOG_CONTAINER_TOKEN");var b0n=_.u5("DOWNLOAD",{},"Download"),Qnv=_.u5("DOWNLOADING",{},"Downloading"),Z0z=_.u5("DOWNLOADED",{},"Downloaded"),y9d=_.u5("RETRY",{},"Retry");var V5v=[],wnP=!1;var lmQ=_.eY(function(y){var W=gLy,V=function(){return""},w=Frb(y.data),t=ELv(y.data),F=NBv(y.data),I=Ima(y.data);
W=function(){var P=y.data(),C=Gld(P,w(),t(),F(),I()),d=!!P.videoId,L=C.text;return{title:d?L:void 0,tooltip:d?void 0:L,accessibilityText:L,onTap:C.onTap,iconName:C.iconType,style:P.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:C.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:P.buttonSize}};
V={};V=_.kS("ytDownloadButtonViewModelHost",(V.ytDownloadButtonViewModelIsHidden=function(){var P=y.data(),C=I();return P.playlistId||C()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||C()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},V));
return _.O("download-button-view-model",{class:V},_.O(_.lk,{data:W}))},"E");
lmQ.idomCompat=!0;var kaA=_.eY(function(y){var W=y.backgroundLottieRef;var V=y.foregroundLottieRef;var w=y.children;var t=y.wrapperClass;var F=y.disableAnimation;y=function(){return(_.e("web_animated_actions")||_.e("web_animated_actions_v2"))&&!(F==null?0:F())};
return _.O("yt-animated-action",{class:_.kS("animated-action__container",t)},_.O("div",{class:"animated-action__content-with-background"},_.O(_.v,{cond:y,then:function(){return _.O(xvQ,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:W==null?void 0:W(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Pm4()?"dark":"light")+"_v5.json"}}}})}}),w),_.O(_.v,{cond:y,
then:function(){return _.O(xvQ,{lottiePlayerProps:function(){return{animationRef:V==null?void 0:V(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Pm4()?"dark":"light")+"_v4.json"}}}})}}))},"F");
kaA.idomCompat=!0;var xvQ=_.eY(function(y){var W=y.wrapperClass;var V=y.lottieClass;var w=y.lottiePlayerProps;return _.O("div",{class:_.kS("animated-action__lottie",W),"aria-hidden":"true"},_.O(_.fh,{className:V,data:w,animationName:function(){return w().animationConfig.name}}))},"G");var Cma={isOpen:!1};var vLL={isAllowed:!1};var Lrt={errorMessage:"",title:"",privacy:"",isDisabled:!0};var c9b={isOpen:!1};var htv={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var sWR={response:void 0};var KrG=function(y,W){y=y===void 0?sWR:y;switch(W.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},y,{response:W.payload});default:return y}};var A9f={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var pnn=function(y,W){y=y===void 0?A9f:y;switch(W.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},y,{nextDisabled:W.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},y,{nextCommand:W.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},y,{footerSubmissionData:W.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},y,{isImpersonationValid:W.payload});default:return y}};var YqK={reportFormData:void 0,reportDetailsFormData:void 0};var iky=function(y,W){y=y===void 0?YqK:y;switch(W.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},y,{reportFormData:W.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},y,{reportDetailsFormData:W.payload});default:return y}};var BBq=void 0;_.e("mweb_enable_redux_store_on_demand")||(BBq=new v9(fmn()));var Xq=_.e("enable_web_delhi_icons");var J9R=_.eY(function(y){y=_.zb(y,{themeOverride:void 0,animationRef:{}});var W=y.animatedIconType,V=y.active,w=y.themeOverride,t=y.animationRef;y=y.staticIconFn;var F=_.N(_.M1(void 0,void 0,"P5a72b")),I=F.next().value,P=F.next().value,C=function(){a:{var l=W();var x=w==null?void 0:w();var B;x=(x==null?void 0:x.useDarkTheme)||((B=_.hs().resolve(_.eX(_.va)))==null?void 0:B());switch(l){case "LIKE":BBq||(BBq=new v9(fmn()));l=(l=K24(BBq.getState()))&&l.animationLightUrl&&l.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:x?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:x?l.animationDarkUrl:l.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(l){x=l;break a}x="animated_like_icon_"+(x?"dark":"light")+"_"+(Xq?"v5":"v4");x={lottiePlayerProps:{animationConfig:{name:x,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+x+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Xq?" animated-like-icon-delhi":"")}}},totalFrames:Xq?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":x={lottiePlayerProps:{animationConfig:{name:x?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(x?"dark":"light")+(Xq?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Xq?" animated-subscribe-icon-delhi":"")}}},totalFrames:Xq?120:79,lazyLoad:!1};break a}x=
void 0}return x},d=function(){var l,x;
return(x=(l=C())==null?void 0:l.lottiePlayerProps.animationConfig.name)!=null?x:""},L=function(){if(C()){var l=C().lottiePlayerProps.animationConfig.path;
return xS.get(l)||I()}};
F=_.N(_.M1(!1,void 0,"h6xR3c"));var z=F.next().value;F=F.next().value;var c=mvj(F),K=function(){var l=C(),x,B,r;return(r=l==null?void 0:(x=l.lottiePlayerProps.animationConfig)==null?void 0:(B=x.rendererSettings)==null?void 0:B.className)!=null?r:""},f=void 0,U=void 0;
_.H1(function(){var l=C(),x=d(),B=L(),r=z(),H=V();if(l&&(U!==x&&(U=x,f=H,x=t(),c.animationConfig=l.lottiePlayerProps.animationConfig,c.animationRef=x,B&&(c.animationConfig.animationData=B,c.animationConfig.path=void 0),x=l.lottiePlayerProps.animationConfig.path,!xS.get(x)&&l.lazyLoad&&x&&TBn(x,P)),!(r||l.lazyLoad&&!B))){if(B=!t().lottieEl)H?(r=l.totalFrames,c.animationConfig.initialSegment=[r-1,r]):c.animationConfig.initialSegment=void 0;if(f!==H&&!B)if(B=t(),H){var a;(a=B.lottieEl)==null||a.playSegments([0,
l.totalFrames],!0)}else{var b;(b=B.lottieEl)==null||b.playSegments([0,1],!0)}f=H}},"YCYOCe");
return _.O("animated-icon",{class:"ytAnimatedIconHost"},_.O(_.v,{cond:function(){var l,x;return!((l=C())==null||!l.lottiePlayerProps.animationConfig.path||((x=C())==null?0:x.lazyLoad)&&!L()||z())},
then:function(){return _.O(_.fh,{data:c,animationName:d,className:K,animationRef:t})},
else:y}))},"H");_.aj=_.eY(function(y){var W=_.I0("yt-subscribe-button-view-model"),V=_.I0("div"),w=_.I0("div"),t=_.D1(),F=_.D1(),I=_.D1(),P=_.Yn(i0G,function(){return y.data().stateEntityStoreKey}),C=_.Yn(fFa,function(){var Qj,Kq;
return(Kq=(Qj=y.data().notificationStateEntityStoreKeys)==null?void 0:Qj.subsNotificationStateKey)!=null?Kq:""}),d=function(){return!y.data().enableSubscribeButtonPostClickAnimation},L=_.N(_.M1(0,void 0,"eTsWvc")),z=L.next().value,c=L.next().value;
L=_.N(_.M1(0,void 0,"dniDQ"));var K=L.next().value,f=L.next().value;L=_.N(_.M1(!1,void 0,"EluPic"));var U=L.next().value,l=L.next().value;L=_.N(_.M1(!1,void 0,"r0jnre"));var x=L.next().value,B=L.next().value;L=_.N(_.M1(!1,void 0,"KMvoQe"));var r=L.next().value,H=L.next().value,a;L=_.N(_.M1(!1,void 0,"aSENce"));var b=L.next().value,Fv=L.next().value,Py=function(){B(!0);_.jf(_.HU,function(){B(!1)},1500)};
_.H1(function(){var Qj=x();mT(function(){Qj&&!d()&&P()&&sWG(t,F,I)})},"LgmX6c");
_.H1(function(){var Qj=P();mT(function(){if(!d()&&Qj){var Kq;((Kq=y.animateWidth)==null?0:Kq.call(y))&&kav(W.value,!!Qj.subscribed,z(),K());var zR,l2;((zR=a)==null?0:zR.subscribed)||!Qj.subscribed||Qj.key!==((l2=a)==null?void 0:l2.key)||Py();a=Qj}})},"iZzoUb");
L=_.DZ(function(){var Qj,Kq,zR,l2=y.data(),lt=!((Qj=P())==null||!Qj.subscribed);Qj=!((Kq=y.isOverlay)==null||!Kq.call(y));Kq=U()?W:void 0;var yu=(zR=C())==null?void 0:zR.state;zR=b();xv4(l2,yu);return UvP({model:l2,subscribed:lt,isOverlay:Qj,element:Kq,notificationState:yu,disableTextEllipsis:!0,focused:zR})},void 0,"yGQGue");
var du=function(){var Qj;if(!d()&&((Qj=y.animateWidth)==null?0:Qj.call(y))&&(V==null?0:V.value)&&(w==null?0:w.value)&&!r()){Qj=P();var Kq=_.N((Qj==null?0:Qj.subscribed)?[V,w]:[w,V]),zR=Kq.next().value;Kq=Kq.next().value;zR=Math.ceil(zR.value.getBoundingClientRect().width);Kq=Math.ceil(Kq.value.getBoundingClientRect().width);c(zR);f(Kq);kav(W.value,!(Qj==null||!Qj.subscribed),zR,Kq);H(!0)}},mL=_.YS(function(Qj){du();
var Kq=P();Kq&&(Qj.detail.endpoint.subscribeEndpoint||Qj.detail.endpoint.unsubscribeEndpoint)&&Sqb(W.value,!Kq.subscribed,Kq)}),un=function(){var Qj=_.hs().resolve(_.eX(_.MC));
Qj&&Fv(Qj.isKeyBoardInUse())},hv=function(){Fv(!1)};
_.NT("yt-player-subscribe",function(Qj){var Kq=P();Kq&&Qj===y.data().channelId&&Sqb(W.value,!0,Kq)});
_.NT("yt-player-unsubscribe",function(Qj){var Kq=P();Kq&&Qj===y.data().channelId&&Sqb(W.value,!1,Kq)});
_.NT("yt-update-subscribe-button-action",function(Qj){Qj=_.h(Qj,Wx6);var Kq=P();Kq&&Qj&&Qj.channelId===y.data().channelId&&Sqb(W.value,!!Qj.subscribed,Kq)});
_.a8(function(){W.value&&(W.value.addEventListener("focusin",un),W.value.addEventListener("focusout",hv));var Qj=_.Jt(_.HU,function(){du()});
l(!0);_.XT(function(){_.HU.cancelJob(Qj);W.value&&(W.value.removeEventListener("focusin",un),W.value.removeEventListener("focusout",hv))})});
var $P=function(){var Qj,Kq,zR;if(zR=!((Qj=P())==null||!Qj.subscribed))Qj=!!y.data().disableNotificationBell,zR=(Kq=C())==null?void 0:Kq.state,zR=!Qj&&!!zR;return zR},sz=function(){var Qj;
return!((Qj=P())==null?0:Qj.subscribed)},Wz=function(){var Qj,Kq;
if(Kq=sz()){Kq=!!y.data().disableNotificationBell;var zR=(Qj=C())==null?void 0:Qj.state;Kq=!Kq&&!!zR}return Kq},mf={},OE={};
return _.O("yt-subscribe-button-view-model",{class:_.kS(y.className,"yt-subscribe-button-view-model-wiz",(mf["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Qj,Kq;return!((Qj=P())==null||!Qj.subscribed)&&((Kq=y.animateWidth)==null?void 0:Kq.call(y))&&x()},mf["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Qj;
return!((Qj=P())==null?0:Qj.subscribed)&&y.data().hideWhenUnsubscribed},mf)),
el:W,"on:yt-service-request-sent":mL},_.O(kaA,{backgroundLottieRef:t,foregroundLottieRef:F,wrapperClass:_.kS("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(OE["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Qj;return((Qj=y.animateWidth)==null?void 0:Qj.call(y))&&x()},OE["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Qj;
return!((Qj=y.animateWidth)==null?0:Qj.call(y))},OE)),
disableAnimation:d},_.O("div",{el:V,class:"yt-subscribe-button-view-model-wiz__container"},_.O(zr,{data:L,icon:function(){return _.O(_.v,{cond:$P,then:function(){var Qj=function(){var Kq;return uCL((Kq=C())==null?void 0:Kq.state)};
return _.O(_.v,{cond:function(){return d()||Qj()!=="NOTIFICATIONS_NONE"},
then:function(){return _.O(_.jl,{icon:Qj})},
else:function(){return _.O(J9R,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:I})}})}})},
secondaryIconName:function(){return $P()?"EXPAND":void 0}}))),_.O("div",{el:w,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.O(_.v,{cond:function(){var Qj;return((Qj=y.animateWidth)==null?void 0:Qj.call(y))&&!d()&&!r()},
then:function(){return _.O(zr,{data:_.DZ(function(){var Qj;return UvP({model:y.data(),subscribed:sz(),isOverlay:!((Qj=y.isOverlay)==null||!Qj.call(y)),element:W,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Qj;return Wz()?uCL((Qj=C())==null?void 0:Qj.state):void 0},
secondaryIconName:function(){return Wz()?"EXPAND":void 0}})}})))},"I");
_.aj.idomCompat=!0;var A9L=new _.e9("RENDERER_STAMPER_OPTIONS_TOKEN");var Rt6=_.eY(function(y){var W=y.data;var V=_.Yn(i0G,function(){return W().subscriptionStateEntityKey});
return _.O(_.v,{cond:function(){var w=W(),t=V();return!w.hideWhenUnsubscribed||(t==null?0:t.subscribed)?_.h(W().button,_.H5):void 0},
then:function(w){return _.O("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.O(_.lk,{data:w,buttonOverrides:function(){return{toggled:!0}}}))}})},"J");
Rt6.idomCompat=!0;var amu=_.nn({buttonViewModel:_.lk,subscribeButtonViewModel:_.aj,downloadButtonViewModel:lmQ,toggleButtonViewModel:_.XV,subscribePlusButtonViewModel:Rt6});_.zY(r9L);var gMn=new _.e9("RENDERER_LOGGER_TOKEN");var rp;_.G$=new BcI;rp=new Map;var EMb="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),IWt=["notificationTextRenderer","notificationMultiActionRenderer"],Njd="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Fen=bkv(function(y){return _.Gt(y==null?void 0:y.targetId)}).useUpdatableData;var tRG=0;_.Q7.debugName="EjJbCe";var jWf=_.eY(function(y){return _.O(_.Q7,{data:function(){return y.actionRow().actions}},{buttonViewModel:function(W){var V=W.data;
return _.O(GQ,{isRow:y.isRow,isIconOnlyButton:function(){return PGn(V())},
useIntrinsicWidth:y.useIntrinsicWidth},_.O(_.lk,{data:V}))},
subscribeButtonViewModel:function(W){return _.O(GQ,{isRow:y.isRow},_.O(_.aj,{data:W.data,isOverlay:!1,animateWidth:function(){return!y.isRow()}}))},
downloadButtonViewModel:function(W){var V=W.data;return _.O(GQ,{isRow:y.isRow,isIconOnlyButton:function(){return!!V().playlistId}},_.O(lmQ,{data:V}))},
toggleButtonViewModel:function(W){var V=W.data;return _.O(GQ,{isRow:y.isRow,isIconOnlyButton:function(){var w=V();return PGn(_.h(w.isToggled?w.toggledButtonViewModel:w.defaultButtonViewModel,_.H5))}},_.O(_.XV,{data:V}))},
subscribePlusButtonViewModel:function(W){return _.O(GQ,{isRow:y.isRow},_.O(Rt6,{data:W.data}))}})},"K"),GQ=_.eY(function(y){var W={};
return _.O("div",{class:_.kS("yt-flexible-actions-view-model-wiz__action",(W["yt-flexible-actions-view-model-wiz__action--row-action"]=y.isRow,W["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=y.useIntrinsicWidth,W["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,W["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=y.isIconOnlyButton,W))},y.children)},"L"),$vI=_.eY(function(y){var W=function(){var w;
return((w=y.layout)==null?void 0:w.call(y))===1},V={};
return _.O("yt-flexible-actions-view-model",{class:_.kS("yt-flexible-actions-view-model-wiz",y.className,(V["yt-flexible-actions-view-model-wiz--inline"]=function(){return!W()},V["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return y.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},V))},_.O(_.YV,{each:function(){return y.data().actionsRows||[]}},function(w){return _.O(_.v,{cond:W,
then:function(){return _.O("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.O(jWf,{actionRow:w,isRow:W,useIntrinsicWidth:function(){return!!y.data().respectActionIntrinsicWidth}}))},
else:function(){return _.O(jWf,{actionRow:w,isRow:W})}})}))},"M"),rZ=_.e("web_enable_sink_yt_flexible_actions_view_model")?$vI:_.Al(r9L);
$vI.idomCompat=!0;_.iF(rZ,"yt-flexible-actions-view-model",{props:{data:_.vB,layout:_.vB,justifyContentOverride:_.vB,className:_.vB}});_.ba=_.eY(function(y){var W=_.Yn(FR,function(){var t;return(t=y.data().dislikeEntityKey)!=null?t:""}),V=_.DZ(function(){var t=W();
return t?t.likeStatus==="DISLIKE":_.h(y.data().toggleButtonViewModel,_.aJ).isToggled},void 0,"B2tgKf"),w=_.DZ(function(){return Object.assign({},_.h(y.data().toggleButtonViewModel,_.aJ),{isToggled:V()})},void 0,"otfIbf");
return _.O("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.O(_.XV,{data:w,buttonShapeOverrides:y.buttonShapeOverrideables,onToggle:function(t){var F=W();F&&t!==(F.likeStatus==="DISLIKE")&&F.key&&_.dc(_.Z6("likeStatusEntity",F.key,{likeStatus:t?"DISLIKE":"INDIFFERENT",hadUserInteraction:t}))}}))},"N");
_.ba.idomCompat=!0;_.Q$=_.eY(function(y){var W=_.e("web_supports_animations_api"),V=od(function(c){var K=d();if(!c){var f,U;return{numberText:(U=K==null?void 0:(f=K.likeCountIfIndifferent)==null?void 0:f.content)!=null?U:"",numberValue:Number(K==null?void 0:K.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var l;f=(K==null?void 0:(l=K.likeCountIfIndifferent)==null?void 0:l.content)!==c.numberText;if(P()||!f)return c;var x;return{numberText:(K==null?void 0:(x=K.likeCountIfIndifferent)==null?void 0:x.content)||
"",numberValue:Number(K==null?void 0:K.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!K}}),w=od(function(c){var K=d();
if(!c){var f,U;return{numberText:(U=K==null?void 0:(f=K.likeCountIfLiked)==null?void 0:f.content)!=null?U:"",numberValue:Number(K==null?void 0:K.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var l;f=(K==null?void 0:(l=K.likeCountIfIndifferent)==null?void 0:l.content)!==c.numberText;if(P()||!f)return c;var x;return{numberText:(K==null?void 0:(x=K.likeCountIfLiked)==null?void 0:x.content)||"",numberValue:Number(K==null?void 0:K.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!K}}),t=_.N(_.M1(void 0,
void 0,"xYSlUe")),F=t.next().value,I=t.next().value,P=F,C=_.Yn(FR,function(){var c,K;
return(K=(c=y.data())==null?void 0:c.likeStatusEntityKey)!=null?K:""}),d=_.Yn(yFy,function(){var c,K;
return((c=y.likeCountEntity)==null?void 0:(K=c.call(y))==null?void 0:K.key)||""}),L=_.DZ(function(){var c;
return((c=C())==null?void 0:c.likeStatus)==="LIKE"},void 0,"DG5Osd"),z=function(){var c;
return W&&!((c=y.likeCountEntity)==null||!c.call(y))};
return _.O("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.O(_.XV,{data:function(){var c=Object,K=c.assign,f;var U=_.h((f=y.data())==null?void 0:f.toggleButtonViewModel,_.aJ);return K.call(c,{},U||{},{isToggled:L()})},
buttonShapeOverrides:y.buttonShapeOverrideables,animatedTextPropsDefault:function(){return z()?V():void 0},
animatedTextPropsToggled:function(){return z()?w():void 0},
onToggle:function(c){CGG(c,C(),P(),I)},
style:function(){var c;return((c=y.disableIconAnimation)==null?0:c.call(y))?void 0:{animateIcon:"true"}}}))},"O");
_.Q$.idomCompat=!0;var nLA=_.eY(function(y){var W=function(){return _.h(y.data().likeButtonViewModel,_.QJ)},V=function(){var t;
return((t=W())==null?void 0:t.likeStatusEntityKey)||""},w=_.DZ(function(){var t,F;
var I=(F=_.Yn(FR,V)())!=null?F:(t=W())==null?void 0:t.likeStatusEntity;t=y.data();var P;t=(t==null?void 0:(P=t.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:(I==null?void 0:I.likeStatus)==="INDIFFERENT"&&t.length>0,experimentEnabled:t.length>0}},void 0,"hGh9Td");
return _.O("segmented-like-dislike-button-view-model",{class:_.kS("ytSegmentedLikeDislikeButtonViewModelHost",y.className),"button-renderer":!0},_.O(PZv,{settings:w},_.O("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.O(_.v,{cond:W,then:function(t){return _.O(_.Q$,{data:t,likeCountEntity:function(){return y.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.O(_.v,{cond:function(){return _.h(y.data().dislikeButtonViewModel,_.bI)},
then:function(t){return _.O(_.ba,{data:t,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"P");
nLA.idomCompat=!0;_.iF(nLA,"segmented-like-dislike-button-view-model",{props:{data:_.vB,className:_.vB}});var Hks=_.eY(function(y){var W=y.data;var V=y.className;var w=y.setMinWidth;var t=y.forceIconOnly;var F=_.I0("account-link-button-view-model"),I=_.Yn(_.OPP,function(){var c;return(c=W().accountLinkStatusEntityKey)!=null?c:""}),P=_.Yn(_.OPP,function(){var c;
return(c=W().accountLinkStatusSecondaryEntityKey)!=null?c:""}),C=function(){if(!_.e("web_account_link_secondary_killswitch")){var c,K;
return((c=I())==null?void 0:c.linked)||((K=P())==null?void 0:K.linked)}var f;return(f=I())==null?void 0:f.linked};
_.H1(function(){var c=I();if(c){var K=yqI(new Zo6,bo6(new rRA,!!c.linked));_.u8().then(function(f){f&&(f.setAccountLinkState(_.Gj(K.JSC$12044_serializeBinary(),4)),f.updateAccountLinkingConfig(!!c.linked))})}},"b9pSsf");
var d=function(){return _.h(W().toggleButtonViewModel,_.aJ)};
_.NT("yt-signal-action-show-account-link-dialog",function(){if(d()){var c=C()?d().toggledButtonViewModel:d().defaultButtonViewModel;c=_.h(c,_.H5);var K;if((K=I())==null?0:K.isWarning){K=_.h(W().warningButtonViewModel,_.H5);if(!K){_.FU(Error("Jh"));return}c=K}var f;(K=_.tl((f=c)==null?void 0:f.onTap))&&_.M8([K],F.value)}else _.FU(Error("Kh"))});
var L=function(){var c=d();return Object.assign({},c,{isToggled:C()})},z=function(){return(t==null?0:t())?{iconPosition:"icon-only"}:{}};
return _.O("account-link-button-view-model",{class:_.kS("ytwAccountLinkButtonViewModelHost",V,function(){return(w==null?0:w())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:F,"button-renderer":!0},_.O("div",null,_.O(_.v,{cond:function(){var c;if((c=I())==null?0:c.isWarning)return(c=_.h(W().warningButtonViewModel,_.H5))||_.FU(Error("Jh")),c},
then:function(c){return _.O(_.lk,{data:c,buttonOverrides:z})},
else:function(){return _.O(_.XV,{data:L,buttonShapeOverrides:z})}})))},"Q");_.iF(Hks,"account-link-button-view-model",{props:{data:_.vB,className:_.p5,setMinWidth:_.p5,forceIconOnly:_.p5}});_.ZQ("menuRenderer","menuRenderer","ytd-menu-renderer");
var Xns={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"}},
amm=_.e("web_fix_missing_action_buttons")?100:200,ZO=function(){var y=_.u.apply(this,arguments)||this;y.safeArea=!_.e("kevlar_flex_menu_safe_area_killswitch");y.tonalOverride=!1;y.threeDotSize="M";y.isOverlay=!1;y.useOverlayDark=!1;y.topLevelIconsOnly=!1;y.JSC$14511_lastWidth=0;y.maybeUpdateFlexibleMenu=function(){_.e("web_fix_missing_action_buttons")?requestAnimationFrame(y.maybeUpdateFlexibleMenuImpl):y.maybeUpdateFlexibleMenuImpl()};
y.maybeUpdateFlexibleMenuImpl=function(){var W;if((W=y.data)!=null&&W.flexibleItems){y.maybeFlushDebouncer();W=y.hostElement.clientWidth;var V=W>y.JSC$14511_lastWidth,w,t=((w=y.topLevelButtonsContainer)==null?void 0:w.scrollHeight)||0,F;w=((F=y.flexibleItemButtonsContainer)==null?void 0:F.scrollHeight)||0;F=y.hostElement.scrollHeight>Math.max(t,w)+8;V?(y.resetFlexibleItems(),y.JSC$14511_lastWidth=y.hostElement.clientWidth,y.maybeUpdateFlexibleMenu()):F&&(y.shrinkFlexibleMenu(),y.JSC$14511_lastWidth=
W)}};
y.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){y.onOverflowTap()},
iconPosition:"icon-only",style:y.isOverlay?y.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:y.threeDotSize,state:"active",accessibilityLabel:y.computeAccessibilityLabel(y.data)},y.threeDotButtonOverride)};
y.onOverflowTap=function(){if(y.data.fetchMenuCommand)_.hs().resolve(_.oA).resolveCommand(y.data.fetchMenuCommand,{form:{element:y.hostElement}});else if(y.data.isDisabled&&y.data.disabledCommand)_.kc(y.data.disabledCommand,y.hostElement);else{var W=y.createMenuRendererVe(),V={items:y.items};y.data.menuPopupAccessibility&&(V.menuPopupAccessibility=y.data.menuPopupAccessibility);y.data.footer&&(V.footer=y.data.footer);W={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V},veData:W}};
_.hs().resolve(_.nr).openSheet({openPopupActionCommand:W},y.hostElement)}};
return y};
_.p(ZO,_.u);_.E=ZO.prototype;_.E.updateButtonOverrides=function(){if(!_.e("menu_renderer_label_update_upkillswitch")){var y=_.i6(this.hostElement).querySelector("yt-button-view-model");y&&(y.buttonOverrides=this.buttonOverrides)}};
_.E.computeHasItems=function(){var y;return((y=this.topLevelButtonData)==null?void 0:y.length)||this.hasFlexibleItems};
_.E.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.E.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.qg(this.hostElement,{"--ytd-menu-renderer-button-color":_.V2(this.data.iconColor)}))};
_.E.onStamperFinished=function(){this.JSC$14511_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.E.setupFlexibleMenu=function(){var y=this,W;(W=this.data)!=null&&W.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.d7(this.maybeUpdateFlexibleMenu,amm,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){y.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))};
_.E.maybeFlushDebouncer=function(){if(_.e("web_replace_formatted_with_attributed_string")){var y;(y=this.topLevelButtons)==null||y.forEach(function(V){var w;(V=(w=V.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&Li4(V)});
var W;(W=this.flexibleItemButtons)==null||W.forEach(function(V){var w;(V=(w=V.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&Li4(V)})}};
_.E.resetFlexibleItems=function(){var y;if((y=this.data)!=null&&y.flexibleItems){_.e("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var W;this.flexAsTopLevelButtons=(W=this.data.flexibleItems)==null?void 0:W.map(function(V){return _.h(V,_.mn6).topLevelButton});
_.e("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.E.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.E.shrinkFlexibleMenu=function(){var y;(y=this.flexAsTopLevelButtons)!=null&&y.length&&(this.flexAsTopLevelButtons=[].concat(_.GC(this.flexAsTopLevelButtons.slice(0,-1))))};
_.E.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Xns,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Xns,events:!0}}};
_.E.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.E.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.E.detached=function(){this.icon="MORE_VERT"};
_.E.computeTopLevelButtonData=function(y){if(!y)return[];var W;y=(W=y==null?void 0:y.topLevelButtons)!=null?W:[];return _.Gc.unsafeClone([].concat(_.GC(y)))};
_.E.computeItems=function(y,W){if(!y)return[];var V=[];if(W){var w=(y.flexibleItems||[]).map(function(I){return _.h(I,_.mn6)});
w=_.N(w);for(var t=w.next();!t.done;t=w.next())t=t.value,W.includes(t.topLevelButton)||(t=t.menuItem)&&V.push(t)}var F;y=(F=y==null?void 0:y.items)!=null?F:[];return[].concat(_.GC(V),_.GC(y))};
_.E.computeMenuActive=function(y,W){return y||W};
_.E.onPopupOpened=function(){this.overlayOpen=!0;_.h1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.E.onPopupClosed=function(){this.overlayOpen=!1;_.h1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.E.onPopupCanceled=function(){this.overlayOpen=!1;_.h1(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.E.computeAccessibilityLabel=function(y){return this.get("accessibility.accessibilityData.label",y)};
_.E.isHidden=function(y,W){return this.tonalOverride||!y?!0:y.fetchMenuCommand||y.isDisabled&&y.disabledCommand?!1:!(W==null?0:W.length)};
_.E.isModernOverflowHidden=function(y,W){return this.tonalOverride&&y?y.fetchMenuCommand?!1:!(W==null?0:W.length):!0};
_.E.createMenuRendererVe=function(){var y=this.data.trackingParams,W=_.Xn(),V=_.Hf();return y&&W&&V?(y=_.nD(y),V=_.ad(7591),_.e("combine_ve_grafts")?_.U8(_.BC(),V,y):_.Fr(W,y,V),V):null};
_.CM.Object.defineProperties(ZO.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.flexAsTopLevelButtons)==null||!y.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
ZO.prototype.onPopupCanceled=ZO.prototype.onPopupCanceled;ZO.prototype.onPopupClosed=ZO.prototype.onPopupClosed;ZO.prototype.onPopupOpened=ZO.prototype.onPopupOpened;ZO.prototype.tonalOverrideChanged=ZO.prototype.tonalOverrideChanged;ZO.prototype.resetFlexibleItems=ZO.prototype.resetFlexibleItems;ZO.prototype.setupFlexibleMenu=ZO.prototype.setupFlexibleMenu;ZO.prototype.iconButtonColorChanged=ZO.prototype.iconButtonColorChanged;ZO.prototype.updateButtonOverrides=ZO.prototype.updateButtonOverrides;
_.J([_.m(_.LK),_.R("design:type",Object)],ZO.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#button-shape"),_.R("design:type",HTMLElement)],ZO.prototype,"buttonShape",void 0);_.J([_.s$("#button"),_.R("design:type",Object)],ZO.prototype,"button",void 0);
_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"data",void 0);_.J([_.q({computed:"computeTopLevelButtonData(data)"}),_.R("design:type",Array)],ZO.prototype,"topLevelButtonData",void 0);_.J([_.q(),_.R("design:type",Array)],ZO.prototype,"flexAsTopLevelButtons",void 0);_.J([_.q({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.R("design:type",Array)],ZO.prototype,"items",void 0);_.J([_.q({value:"MORE_VERT"}),_.R("design:type",String)],ZO.prototype,"icon",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZO.prototype,"safeArea",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.R("design:type",Boolean)],ZO.prototype,"menuActive",void 0);_.J([_.q(),_.R("design:type",Boolean)],ZO.prototype,"menuFocused",void 0);_.J([_.q({value:"bottom"}),_.R("design:type",String)],ZO.prototype,"buttonTooltipPosition",void 0);_.J([_.q(),_.R("design:type",Boolean)],ZO.prototype,"overlayOpen",void 0);
_.J([_.q({value:!0}),_.R("design:type",Boolean)],ZO.prototype,"forceIconButton",void 0);_.J([_.q(),_.R("design:type",Boolean)],ZO.prototype,"styleActionButton",void 0);_.J([_.q(),_.R("design:type",Boolean)],ZO.prototype,"disableTextTransformOnButtons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZO.prototype,"tonalOverride",void 0);_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"threeDotSize",void 0);
_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"threeDotButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"isOverlay",void 0);_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"useOverlayDark",void 0);_.J([_.q({computed:"computeButtonOverride(tonalOverride)"}),_.R("design:type",Object)],ZO.prototype,"buttonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],ZO.prototype,"hasCustomIconColor",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("flexAsTopLevelButtons"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZO.prototype,"hasFlexibleItems",null);_.J([_.q({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.R("design:type",Boolean)],ZO.prototype,"hasItems",void 0);_.J([_.q(),_.R("design:type",Object)],ZO.prototype,"topLevelIconsOnly",void 0);
_.J([_.xA("topLevelIconsOnly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"updateButtonOverrides",null);_.J([_.M("topLevelIconsOnly"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZO.prototype,"buttonOverrides",null);_.J([_.s$("#top-level-buttons-computed"),_.R("design:type",HTMLElement)],ZO.prototype,"topLevelButtonsContainer",void 0);_.J([_.Ac(".top-level-buttons > *"),_.R("design:type",Array)],ZO.prototype,"topLevelButtons",void 0);
_.J([_.s$("#flexible-item-buttons"),_.R("design:type",HTMLElement)],ZO.prototype,"flexibleItemButtonsContainer",void 0);_.J([_.Ac("#flexible-item-buttons > *"),_.R("design:type",Array)],ZO.prototype,"flexibleItemButtons",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"iconButtonColorChanged",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"setupFlexibleMenu",null);_.J([_.Jc("topLevelIconsOnly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"resetFlexibleItems",null);_.J([_.xA("tonalOverride"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"tonalOverrideChanged",null);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"onPopupOpened",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"onPopupClosed",null);_.J([_.l6("yt-popup-canceled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZO.prototype,"onPopupCanceled",null);
_.Y(ZO,"ytd-menu-renderer",function(){if(dvr===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);dvr=y}y=dvr;return y},{mode:_.qM("kevlar_poly_si_batch_j030")?1:2});var GaQ;var r9f;_.yF=_.eY(function(y){var W=y.data;var V=function(){if(W().icon)a:{var w={iconName:W().icon};for(var t=_.hs().resolve(_.lE),F=_.N([12,24]),I=F.next();!I.done;I=F.next()){var P=I.value;I=Object.assign({},w,{iconStyle:"youtube_fill",iconSize:P});P=Object.assign({},w,{iconStyle:"youtube_outline",iconSize:P});if(t.resolveIcon(I)){w=I;break a}if(t.resolveIcon(P)){w=P;break a}}w=void 0}else w=void 0;return w};
y={};return _.O("badge-shape",{class:_.kS("badge-shape-wiz",function(){return evd(W().type)},(y["badge-shape-wiz--overlay"]=function(){return W().isOverlay},y["badge-shape-wiz--ads-include-dot"]=function(){return W().adsIncludeDot},y["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(W().type){case 16:case 17:case 18:var w=!0;
break a;default:w=!1}return w},y["badge-shape-wiz--status-badge"]=function(){a:switch(W().type){case 11:case 12:case 13:case 14:case 15:var w=!0;
break a;default:w=!1}return w},y["badge-shape-wiz--no-text"]=function(){return!W().text},y["badge-shape-wiz--modern"]=function(){return W().modern||_.e("web_modern_badge_shape")},y)),
style:_.Rd({"background-color":function(){var w;return(w=W().customColors)==null?void 0:w.backgroundColor}}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},_.O(_.v,{cond:function(){return W().animation},
then:function(w){return _.O(_.fh,{className:"badge-shape-wiz__icon",data:w,animationName:function(){return w().animationConfig.name||""}})}}),_.O(_.v,{cond:function(){var w;
return V()&&!((w=W())==null?0:w.animation)},
then:function(){return _.O("div",{class:"badge-shape-wiz__icon"},_.O(DLG,{data:function(){return V()}}))}}),_.O("div",{class:"badge-shape-wiz__text"},function(){var w;
return(w=W())==null?void 0:w.text}))},"R");
_.yF.idomCompat=!0;_.iF(_.yF,"badge-shape",{props:{data:_.vB}});var W_=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.animated=_.e("animated_live_badge_icon");y.useBadgeShape=_.e("web_badge_shape_defrag");return y};
_.p(W_,_.u);_.E=W_.prototype;_.E.addTooltips=function(){for(var y=_.i6(this.hostElement).querySelectorAll(".badge"),W=0,V;V=y[W++];){var w=this.repeatElement.itemForElement(V);V=_.i6(V);V.lastChild&&V.lastChild.is==="tp-yt-paper-tooltip"&&V.removeChild(V.lastChild);if(w=w.metadataBadgeRenderer&&w.metadataBadgeRenderer.tooltip){var t=_.hZ("tp-yt-paper-tooltip");(0,_.Mg)(t).textContent=w;t.setAttribute("position","top");t.setAttribute("aria-hidden","true");V.appendChild(t)}}};
_.E.badgesChanged=function(){var y=this;_.FS().parkOrScheduleJob(function(){y.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.E.standaloneRoundedBadgeChanged=function(){var y=this.useRoundedBadge?this.useRoundedBadge:void 0;y&&(this.useRoundedBadge=y)};
_.E.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.E.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.E.computeStyle=function(y){_.e("enable_html5_teal_ad_badge")&&y==="BADGE_STYLE_TYPE_AD"&&(y="badge-style-type-ad-alternate");_.e("kevlar_ytb_live_badges")&&y==="BADGE_STYLE_TYPE_LIVE_NOW"&&(y="badge-style-type-live-now-alternate");return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeRole=function(y){return this.computeAriaLabel(y)?"img":"status"};
_.E.computeAriaLabel=function(y){var W;return(y==null?void 0:(W=y.accessibilityData)==null?void 0:W.label)||(y==null?void 0:y.label)};
_.E.computeBadgeShape=function(y){var W;if(y){var V,w=zvP(y.style),t=cwy(y.style),F=y.label,I=((V=y.accessibilityData)==null?void 0:V.label)||y.label;y=(W=y.icon)==null?void 0:W.iconType;W={type:w,brNzRatingBadgeType:t,text:F,accessibilityText:I,icon:y!=="PREMIUM"?y:void 0}}else W={};return W};
_.E.updateComputedBadges=function(y,W,V){var w=this;(W=W?[W]:V?[V]:void 0)?this.computedBadges=W:this.computedBadges=y==null?void 0:y.filter(function(t){var F;if((F=t.metadataBadgeRenderer)==null?0:F.groups){F=!1;t=_.N(t.metadataBadgeRenderer.groups);for(var I=t.next();!I.done;I=t.next()){I=I.value;var P=void 0;F=F||((P=w.hiddenBadgeGroups)==null?void 0:P.includes(I))}return!F}return!0})};
_.E.useFilledIcons=function(y){return _.e("kevlar_system_icons")&&(y==="AUDIO_BADGE"||y==="CHECK_CIRCLE_THICK"||y==="OFFICIAL_ARTIST_BADGE"||y==="SPONSORSHIP_STAR"||y==="PERSON_RADAR_FILLED"||y==="PERSON_RADAR")};
_.E.computeBadgeShapeStyle=function(y){return this.useBadgeShape?y==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||y==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.E.computeIcon=function(y){var W,V;y=y==null?void 0:(W=y.metadataBadgeRenderer)==null?void 0:(V=W.icon)==null?void 0:V.iconType;if(y!=="PREMIUM"&&y)return _.D8(y)};
_.E.computeStandaloneBadge=function(y){var W;y=y==null?void 0:(W=y.icon)==null?void 0:W.iconType;return y==="PREMIUM_STANDALONE"||y==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
W_.prototype.hiddenBadgeGroupsChanged=W_.prototype.hiddenBadgeGroupsChanged;W_.prototype.standaloneBadgeChanged=W_.prototype.standaloneBadgeChanged;W_.prototype.standaloneRoundedBadgeChanged=W_.prototype.standaloneRoundedBadgeChanged;W_.prototype.badgesChanged=W_.prototype.badgesChanged;_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"hidden",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],W_.prototype,"componentBehavior",void 0);
_.J([_.q(),_.R("design:type",Array)],W_.prototype,"badges",void 0);_.J([_.q(),_.R("design:type",Object)],W_.prototype,"topStandaloneBadge",void 0);_.J([_.q(),_.R("design:type",Object)],W_.prototype,"bottomStandaloneBadge",void 0);_.J([_.q(),_.R("design:type",Object)],W_.prototype,"computedBadges",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"mediumFontAdBadge",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"useRoundedBadge",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"largeFontAdBadge",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"overlayAd",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"overlayPremium",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"noDotAdBadge",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"collectionTruncate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"isThumbnailBadge",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],W_.prototype,"wrapBadges",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],W_.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],W_.prototype,"animated",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],W_.prototype,"useBadgeShape",void 0);_.J([_.q({value:[]}),_.R("design:type",Array)],W_.prototype,"hiddenBadgeGroups",void 0);_.J([_.s$("#repeat"),_.R("design:type",GA)],W_.prototype,"repeatElement",void 0);_.J([_.Jc("badges"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],W_.prototype,"badgesChanged",null);
_.J([_.Jc("useRoundedBadge"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],W_.prototype,"standaloneRoundedBadgeChanged",null);_.J([_.Jc("topStandaloneBadge","bottomStandaloneBadge"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],W_.prototype,"standaloneBadgeChanged",null);_.J([_.Jc("hiddenBadgeGroups"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],W_.prototype,"hiddenBadgeGroupsChanged",null);
_.J([_.k({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],W_);
var bkA=_.MM()(W_,"ytd-badge-supported-renderer",function(){if(r9f===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);r9f=y}y=r9f;return y},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.qM("kevlar_poly_si_batch_j053")?1:2});var VF=function(){var y=_.u.apply(this,arguments)||this;y.iconType="STAR";y.standardizeIconSize=_.e("kevlar_system_icons");y.mediaHoverOverlayInitialVisibility=_.e("enable_top_landscape_image_button_command_web");y.noBottomMargin=!1;y.thumbnailObjectFit="CONTAIN";y.thumbnailFitHeight=!0;y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.p(VF,_.u);_.E=VF.prototype;
_.E.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"}}}};
_.E.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",VF.JSC$14523_DEFAULT_CLICK_LOCATION_BEHAVIOR,VF.JSC$14523_CLICK_LOCATION_ID_MAP))};
_.E.onTap=function(y){if(!_.e("use_on_click_for_desktop_display_ad"))this.onTapOrClick(y)};
_.E.onClick=function(y){if(_.e("use_on_click_for_desktop_display_ad"))this.onTapOrClick(y)};
_.E.onTapOrClick=function(y){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,y,!1)};
_.E.updateMediaBackgroundImage=function(){var y=this.get("data.image.thumbnail.thumbnails");y&&(y=_.f5(y,0))&&_.qg(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+y+")"})};
_.E.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var y=0;y<this.data.impressionEndpoints.length;y++){var W=this.data.impressionEndpoints[y];W.clickTrackingParams&&delete W.clickTrackingParams;_.hs().resolve(_.oA).resolveCommand(W,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var V;((V=this.data)==null?0:V.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.E.handleMuteAd=function(){};
_.E.attached=function(){var y=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.CM.Object.defineProperties(VF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.titleText)return"";var W;return _.u5("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.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 y;return!((y=this.data)==null||!y.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"}}});
VF.prototype.onClick=VF.prototype.onClick;VF.prototype.onTap=VF.prototype.onTap;VF.prototype.dataChanged=VF.prototype.dataChanged;
VF.JSC$14523_CLICK_LOCATION_ID_MAP=_.e("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"]]);
VF.JSC$14523_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.e("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"}];_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.V$),_.R("design:type",Object)],VF.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],VF.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],VF.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],VF.prototype,"ytdActiveViewBehavior",void 0);_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],VF.prototype,"actionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],VF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],VF.prototype,"clickCommand",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],VF.prototype,"miniMode",void 0);_.J([_.q(),_.R("design:type",String)],VF.prototype,"iconType",void 0);_.J([_.M("data.titleText"),_.R("design:type",String),_.R("design:paramtypes",[])],VF.prototype,"titleAriaLabel",null);
_.J([_.M("data.rating"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"getRating",null);_.J([_.M("data.price"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"getPrice",null);_.J([_.M("data.thirdLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"getThirdLine",null);_.J([_.M("data.fourthLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"getFourthLine",null);
_.J([_.M("data.fifthLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"getFifthLine",null);_.J([_.M("getRating"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computeRatingHidden",null);_.J([_.M("getPrice"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computePriceHidden",null);_.J([_.M("getThirdLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computeThirdLineHidden",null);
_.J([_.M("getFourthLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computeFourthLineHidden",null);_.J([_.M("getFifthLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computeFifthLineHidden",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.energyIcon"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"hasEnergyIcon",null);
_.J([_.M("computePriceHidden","computeRatingHidden"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"computeSecondaryTextHidden",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VF.prototype,"standardizeIconSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VF.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VF.prototype,"noBottomMargin",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.layout"),_.R("design:type",String),_.R("design:paramtypes",[])],VF.prototype,"layout",null);_.J([_.M("data.layout"),_.R("design:type",Object),_.R("design:paramtypes",[])],VF.prototype,"mediaThumbnailWidth",null);_.J([_.M("layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VF.prototype,"useRoundedBadge",null);_.J([_.q(),_.R("design:type",String)],VF.prototype,"thumbnailObjectFit",void 0);
_.J([_.q(),_.R("design:type",Object)],VF.prototype,"thumbnailFitHeight",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VF.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],VF.prototype,"onTap",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],VF.prototype,"onClick",null);
_.J([_.k({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],VF);
_.Y(VF,"ytd-display-ad-renderer",function(){if(GaQ!==void 0)return GaQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return GaQ=y},{mode:1});var QWi;var ZkR;var ywf;var hvu=new Map;var WeI=!1;var wa=function(){var y=_.u.apply(this,arguments)||this;y.DEFAULT_TOOLTIP_OFFSET="10";y.TOOLTIP_OFFSET_NO_BANNER="-8";y.badges=null;y.noEndpoints=!1;y.wrapText=!1;y.forceVerified=!1;y.tooltipPosition="top";y.compactStyle=!1;y.height=0;y.lineHeight=0;return y};
_.p(wa,_.u);_.E=wa.prototype;_.E.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.E.attached=function(){var y=this;this.observer=new MutationObserver(function(W,V){y.handleResized();V.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.E.detached=function(){this.observer&&this.observer.disconnect()};
_.E.logTooltipEvent=function(){_.e("kevlar_wiz_tooltip_event_killswitch")||WeI||(_.oMv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),WeI=!0)};
_.E.handleWindowResized=function(){this.handleResized()};
_.E.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")))};
_.E.onHeightChanged=function(){if(this.verified){var y=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.yC("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=y:this.textContainerEl.style.marginRight=y}};
_.E.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.yC("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.E.handleResized=function(){var y=this;this.verified&&_.HU.addLowPriorityJob(function(){y.fitBackgroundToText();var W=getComputedStyle(y.hostElement).lineHeight;W&&(W=W.match(/\d+/))&&W.length&&(y.lineHeight=Number(W[0]));y.height=y.lineHeight&&!y.wrapText?y.lineHeight:y.textEl.offsetHeight})};
_.E.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var y=document.createRange(),W=_.i6(this.textEl).children;W.length>0?y.selectNodeContents(W[0]):y.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(y.getBoundingClientRect().width)+"px"}};
_.E.computeChannelBadgeStyle=function(y){var W;if((y==null?0:(W=y.runs)==null?0:W.length)&&y.runs[0].textColor)return"--ytd-badge-icon-color:"+_.V2(y.runs[0].textColor)+";"};
_.CM.Object.defineProperties(wa.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"?_.CO(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var y=this.get("badges.0.metadataBadgeRenderer.tooltip");if(y)return y}return _.OT(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
wa.prototype.onLineHeightChanged=wa.prototype.onLineHeightChanged;wa.prototype.onHeightChanged=wa.prototype.onHeightChanged;wa.prototype.onChannelNameChanged=wa.prototype.onChannelNameChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"badges",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"channelName",void 0);
_.J([_.q(),_.R("design:type",Object)],wa.prototype,"noEndpoints",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"wrapText",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"forceVerified",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"tooltipPosition",void 0);_.J([_.q(),_.R("design:type",String)],wa.prototype,"tooltip",void 0);_.J([_.q(),_.R("design:type",Boolean)],wa.prototype,"hasChannelArt",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wa.prototype,"compactStyle",void 0);_.J([_.s$("#text-container"),_.R("design:type",HTMLElement)],wa.prototype,"textContainerEl",void 0);_.J([_.s$("#text"),_.R("design:type",Object)],wa.prototype,"textEl",void 0);_.J([_.s$("#verified-tooltip"),_.R("design:type",HTMLElement)],wa.prototype,"verifiedTooltip",void 0);_.J([_.q(),_.R("design:type",Object)],wa.prototype,"height",void 0);
_.J([_.q(),_.R("design:type",Object)],wa.prototype,"lineHeight",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("badges","forceVerified"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wa.prototype,"verified",null);_.J([_.M("badges","verified"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wa.prototype,"hideBadges",null);_.J([_.M("channelName"),_.R("design:type",Object),_.R("design:paramtypes",[])],wa.prototype,"formattedName",null);
_.J([_.M("badges","verified","formattedName"),_.R("design:type",String),_.R("design:paramtypes",[])],wa.prototype,"tooltipText",null);_.J([_.M("hasChannelArt"),_.R("design:type",String),_.R("design:paramtypes",[])],wa.prototype,"tooltipOffset",null);_.J([_.xA("channelName"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wa.prototype,"onChannelNameChanged",null);
_.J([_.xA("height"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wa.prototype,"onHeightChanged",null);_.J([_.xA("lineHeight","height"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wa.prototype,"onLineHeightChanged",null);_.J([_.k({is:"ytd-channel-name",disableElementRegistration:!0})],wa);
_.Y(wa,"ytd-channel-name",function(){if(ywf!==void 0)return ywf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ywf=y},{mode:_.qM("kevlar_poly_si_batch_j036")?1:2});var tj=function(){var y=_.u.apply(this,arguments)||this;y.standardizeIconSize=_.e("kevlar_system_icons");return y};
_.p(tj,_.u);tj.prototype.basicPaletteChanged=function(){var y;(y=this.data.color)!=null&&y.basicColorPaletteData&&_.bF(this.hostElement,this.data.color.basicColorPaletteData)};
tj.prototype.useFilledIcons=function(y){return _.e("kevlar_system_icons")&&(y==="CHECK_CIRCLE_THICK"||y==="OFFICIAL_ARTIST_BADGE")};
_.CM.Object.defineProperties(tj.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return this.data.authorCreator||((y=this.data)==null?void 0:(W=y.color)==null?void 0:(V=W.basicColorPaletteData)==null?void 0:V.backgroundColor)}}});
tj.prototype.basicPaletteChanged=tj.prototype.basicPaletteChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],tj.prototype,"standardizeIconSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.authorUnifiedVerified"),_.R("design:type",Object),_.R("design:paramtypes",[])],tj.prototype,"verified",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],tj.prototype,"creator",null);_.J([_.xA("data.color.basicColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tj.prototype,"basicPaletteChanged",null);_.J([_.k({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],tj);
_.Y(tj,"ytd-author-comment-badge-renderer",function(){if(ZkR!==void 0)return ZkR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ZkR=y},{mode:1});var VRK;var F7=function(){return _.u.apply(this,arguments)||this};
_.p(F7,_.u);F7.prototype.computeThumbnailWidth=function(y){if(y==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],F7.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],F7.prototype,"icon",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],F7.prototype,"surface",void 0);
_.J([_.q({reflectToAttribute:!0,value:_.e("enable_shrink_image_size_on_web_posts_singleton")}),_.R("design:type",Boolean)],F7.prototype,"searchSxsUx",void 0);_.J([_.k({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],F7);
_.Y(F7,"ytd-backstage-image-renderer",function(){if(VRK!==void 0)return VRK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return VRK=y},{mode:1});var wom;var E_=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;y.selectedItemIndex=-1;return y};
_.p(E_,_.u);_.E=E_.prototype;_.E.computeIsChannelOwner=function(y){if(!y)return!0;y=y[0];return!(y&&(y.signinEndpoint||y.selectServiceEndpoint))};
_.E.computeIsImagePoll=function(y){return(y==null?void 0:y.type)==="POLL_TYPE_IMAGE"};
_.E.computeIsTotalVotesDisabled=function(y){return!(y==null?0:y.totalVotes)};
_.E.thumbnailSrc=function(y){var W,V,w,t;return(y==null?0:(W=y.thumbnails)==null?0:(V=W[0])==null?0:V.url)?_.ye((w=y.thumbnails)==null?void 0:(t=w[0])==null?void 0:t.url):void 0};
_.E.progressWidth=function(y){return"width:"+(y?y*100:0)+"%;"};
_.E.textAreaWidth=function(y){return this.isImagePoll?null:"width:"+(y?y*100:0)+"%;"};
_.E.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.E.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var y=this.data.choices,W=0;W<y.length;W++)if(y[W].selected){this.selectedItemIndex=W;break}};
_.E.onPopupClosed=function(y,W){y=Number(this.pollVotes.selected);W.confirmed&&(this.selectChoice(y,!1),_.ow(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.E.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.E.onYtCommentPollRevert=function(y,W){W&&(this.selectChoice(W.selectedChoiceIndex,!0),this.set("data.totalVotes",W.totalVotes))};
_.E.onYtServiceRequestSent=function(y,W){if(W.actions)for(y=0;y<W.actions.length;y++){var V=W.actions[y];_.h(V,n$)&&this.set("data.totalVotes",_.h(V,n$).totalVotes)}};
_.E.onYtServiceRequestCompleted=function(y){var W=this.get("detail.data.actionResults.0.feedback",y);y=this.get("detail.data.actionResults.0.status",y);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,y==="STATUS_FAILED"?_.h1(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.E.getEndpoint=function(y,W){return W===y?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[y].selectServiceEndpoint||null};
_.E.selectChoice=function(y,W){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var V=0;V<this.data.choices.length;V++){var w;if(y===this.selectedItemIndex){var t=!1;var F=w=null}else w=(t=V===y)?this.data.choices[V].voteRatioIfSelected:this.data.choices[V].voteRatioIfNotSelected,F=t?this.data.choices[V].votePercentageIfSelected:this.data.choices[V].votePercentageIfNotSelected;this.set("data.choices."+V+".voteRatio",w);
this.set("data.choices."+V+".votePercentage",F);this.set("data.choices."+V+".selected",t)}W||(this.isLoading=!0,(W=this.getEndpoint(y,this.selectedItemIndex))&&_.hs().resolve(_.oA).resolveCommand(W,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===y?-1:y};
_.CM.Object.defineProperties(E_.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
E_.prototype.onYtServiceRequestCompleted=E_.prototype.onYtServiceRequestCompleted;E_.prototype.onYtServiceRequestSent=E_.prototype.onYtServiceRequestSent;E_.prototype.onYtCommentPollRevert=E_.prototype.onYtCommentPollRevert;E_.prototype.onPopupClosed=E_.prototype.onPopupClosed;E_.prototype.dataChanged=E_.prototype.dataChanged;_.J([_.m(_.vq),_.R("design:type",Object)],E_.prototype,"paperItemBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],E_.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],E_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],E_.prototype,"isLoading",void 0);_.J([_.q({computed:"computeIsChannelOwner(data.choices)"}),_.R("design:type",Boolean)],E_.prototype,"isChannelOwner",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.R("design:type",Boolean)],E_.prototype,"isImagePoll",void 0);_.J([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.R("design:type",Boolean)],E_.prototype,"isTotalVotesDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],E_.prototype,"previousPollInfo",void 0);_.J([_.q(),_.R("design:type",Object)],E_.prototype,"selectedItemIndex",void 0);_.J([_.s$("#poll-votes"),_.R("design:type",Object)],E_.prototype,"pollVotes",void 0);
_.J([_.M("isChannelOwner"),_.R("design:type",Object),_.R("design:paramtypes",[])],E_.prototype,"endpointStyle",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],E_.prototype,"dataChanged",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],E_.prototype,"onPopupClosed",null);
_.J([_.l6("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],E_.prototype,"onYtCommentPollRevert",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],E_.prototype,"onYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],E_.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],E_);
_.Y(E_,"ytd-backstage-poll-renderer",function(){if(wom!==void 0)return wom;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wom=y},{mode:2});var tRR;var Fe2={autoplay:!1,loop:!1},EMi={simpleText:""},NJ=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;y.usesPanelLockup=!1;y.selectedItemIndex=-1;y.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Fe2,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});y.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Fe2,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});y.correctnessAnimationProps=[];y.correctnessAnimationRefs=[];return y};
_.p(NJ,_.u);_.E=NJ.prototype;_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.E.computeIsChannelOwner=function(y){if(!y)return!0;y=y[0];return!(y&&(y.signinEndpoint||y.selectServiceEndpoint))};
_.E.computeIsTotalVotesDisabled=function(y){return!(y==null?0:y.totalVotes)};
_.E.computeIsImageQuiz=function(y){return(y==null?void 0:y.type)==="POLL_TYPE_IMAGE"};
_.E.onExplanationChanged=function(){this.expander.reset()};
_.E.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var y=this.data.choices;if(y){this.maybeInitializeQuizLotties(y);for(var W=0;W<y.length;W++)if(y[W].isSelected||this.isChannelOwner&&y[W].isCorrect){this.selectedItemIndex=W;return}this.selectedItemIndex=-1}}};
_.E.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var y=this.selectedItemIndex,W=Number(this.quizVotes.selected);this.selectChoice(W);this.sendVoteAction(W,y);this.quizVotes.selected=-1;var V;y=!((V=this.data)==null?0:V.enableAnimation);this.maybePlayAnswerAnimations(y)}};
_.E.onYtCommentPollRevert=function(y,W){W&&(this.selectChoice(W.selectedChoiceIndex),this.set("data.totalVotes",W.totalVotes))};
_.E.onYtServiceRequestSent=function(y,W){if(W.actions)for(y=_.N(W.actions),W=y.next();!W.done;W=y.next())(W=_.h(W.value,n$))&&this.set("data.totalVotes",W.totalVotes)};
_.E.onYtServiceRequestCompleted=function(y){var W=this.get("detail.data.actionResults.0.feedback",y);y=this.get("detail.data.actionResults.0.status",y);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,y==="STATUS_FAILED"?_.h1(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.E.getAnimationPropsForChoiceIndex=function(y,W){return W[y]};
_.E.maybePlayAnswerAnimations=function(y){y=y===void 0?!1:y;var W;if((W=this.data)!=null&&W.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){W=_.N(this.correctnessAnimationRefs);for(var V=W.next();!V.done;V=W.next()){var w=void 0,t=void 0;(w=V.value)==null||(t=w.lottieEl)==null||t.stop()}if(!(this.selectedItemIndex<0)){W=0;y&&(W=this.isCorrect?37:25);var F,I;(F=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(I=F.lottieEl)==null||I.goToAndPlay(y?W:0,!0);if(!(this.isCorrect||
(F=this.data.choices.findIndex(function(L){return L.isCorrect}),F<0))){var P,C;
(C=(P=this.correctnessAnimationRefs[F])==null?void 0:P.lottieEl)==null||C.goToAndPlay(37,!0);var d;P=(d=this.fadeContainers)==null?void 0:d.item(F);!y&&P&&this.fadeIn(P)}}}};
_.E.thumbnailSrc=function(y){var W,V,w,t;return(y==null?0:(W=y.thumbnails)==null?0:(V=W[0])==null?0:V.url)?_.ye((w=y.thumbnails)==null?void 0:(t=w[0])==null?void 0:t.url):void 0};
_.E.a11yVotedText=function(y,W){var V,w,t=((V=this.data)==null?void 0:(w=V.correctVotedText)==null?void 0:w.simpleText)||"",F,I;V=((F=this.data)==null?void 0:(I=F.votedText)==null?void 0:I.simpleText)||"";if(!W)return"";var P,C;if((P=this.data)==null?0:(C=P.choices)==null?0:C[y].isCorrect)return t;var d,L;return((d=this.data)==null?0:(L=d.choices)==null?0:L[y].isSelected)?V:""};
_.E.getEndpoint=function(y,W){return W===y?this.data.choices[y].deselectServiceEndpoint||null:this.data.choices[y].selectServiceEndpoint||null};
_.E.sendVoteAction=function(y,W){if(y=this.getEndpoint(y,W))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(y)};
_.E.selectChoice=function(y){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var W=0;W<this.data.choices.length;W++)this.set("data.choices."+W+".isSelected",y===this.selectedItemIndex?!1:W===y);this.selectedItemIndex=this.selectedItemIndex===y?-1:y};
_.E.maybeInitializeQuizLotties=function(y){var W=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=y.map(function(V){return{animationConfig:V.isCorrect?W.baseCorrectLottiePlayerAnimationConfig:W.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){W.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(V){return V.animationRef||{}})};
_.E.fadeIn=function(y){y.classList.add("fade-in");_.q4(_.HU,function(){y.classList.remove("fade-in")},900)};
_.CM.Object.defineProperties(NJ.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.OT(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 y,W;return((y=this.data)==null?void 0:(W=y.choices)==null?void 0:W.some(function(V){return V.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null||!y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?EMi:this.data.choices[this.selectedItemIndex].explanation||EMi}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null||!y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
NJ.prototype.onYtServiceRequestCompleted=NJ.prototype.onYtServiceRequestCompleted;NJ.prototype.onYtServiceRequestSent=NJ.prototype.onYtServiceRequestSent;NJ.prototype.onYtCommentPollRevert=NJ.prototype.onYtCommentPollRevert;NJ.prototype.dataChanged=NJ.prototype.dataChanged;NJ.prototype.onExplanationChanged=NJ.prototype.onExplanationChanged;_.J([_.m(_.vq),_.R("design:type",Object)],NJ.prototype,"paperItemBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.et.YtTaskEmitterBehavior),_.R("design:type",Object)],NJ.prototype,"ytTaskEmitterBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],NJ.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],NJ.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],NJ.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Object)],NJ.prototype,"usesPanelLockup",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.R("design:type",Boolean)],NJ.prototype,"isChannelOwner",void 0);_.J([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.R("design:type",Boolean)],NJ.prototype,"isTotalVotesDisabled",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.R("design:type",Boolean)],NJ.prototype,"isImageQuiz",void 0);_.J([_.q(),_.R("design:type",Object)],NJ.prototype,"previousQuizInfo",void 0);_.J([_.q(),_.R("design:type",Object)],NJ.prototype,"selectedItemIndex",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data","usesPanelLockup"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"shouldUseModernUi",null);
_.J([_.Ac(".fade-container"),_.R("design:type",Object)],NJ.prototype,"fadeContainers",void 0);_.J([_.q(),_.R("design:type",Array)],NJ.prototype,"correctnessAnimationProps",void 0);_.J([_.M("explanation","showCorrectAnswer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"showExplanation",null);_.J([_.M("isChannelOwner","isAttempted"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"showCorrectAnswer",null);
_.J([_.M("isChannelOwner","isAttempted","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"isQuizAnsweringDisabled",null);_.J([_.M("isQuizAnsweringDisabled"),_.R("design:type",Object),_.R("design:paramtypes",[])],NJ.prototype,"endpointStyle",null);_.J([_.M("data","selectedItemIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"isAttempted",null);
_.J([_.M("data","selectedItemIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],NJ.prototype,"explanation",null);_.J([_.M("data","selectedItemIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NJ.prototype,"isCorrect",null);_.J([_.s$("ytd-expander"),_.R("design:type",Object)],NJ.prototype,"expander",void 0);_.J([_.s$("#quiz-votes"),_.R("design:type",Object)],NJ.prototype,"quizVotes",void 0);
_.J([_.xA("explanation"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NJ.prototype,"onExplanationChanged",null);_.J([_.xA("data","isChannelOwner"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NJ.prototype,"dataChanged",null);_.J([_.l6("yt-comment-quiz-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],NJ.prototype,"onYtCommentPollRevert",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],NJ.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],NJ.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],NJ);
_.Y(NJ,"ytd-backstage-quiz-renderer",function(){if(tRR!==void 0)return tRR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return tRR=y},{mode:1});var Njq;var I5=function(){return _.u.apply(this,arguments)||this};
_.p(I5,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],I5.prototype,"data",void 0);_.J([_.k({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],I5);
_.Y(I5,"ytd-post-uploaded-video-renderer",function(){if(Njq!==void 0)return Njq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Njq=y},{mode:1});var IWI;var P_=function(){return _.u.apply(this,arguments)||this};
_.p(P_,_.u);P_.prototype.useFilledIcons=function(y){return y==="SPONSORSHIP_STAR"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],P_.prototype,"data",void 0);_.J([_.k({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],P_);
var gM2=_.MM()(P_,"ytd-sponsors-only-badge-renderer",function(){if(IWI===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);IWI=y}y=IWI;return y},{allowedProps:["data"],
mode:1});var PG2;var Cs=function(){return _.u.apply(this,arguments)||this};
_.p(Cs,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Cs.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Cs.prototype,"data",void 0);_.J([_.k({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Cs);
_.Y(Cs,"ytd-child-video-renderer",function(){if(PG2!==void 0)return PG2;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return PG2=y},{mode:1});var CGR;var OPJ;var O_=function(){var y=_.u.apply(this,arguments)||this;y.size=0;y.enableWebModernCollectionsV2=_.e("web_modern_collections_v2");y.fallbackImageSize={height:void 0,width:9999};y.webModernCollections=!1;return y};
_.p(O_,_.u);_.E=O_.prototype;_.E.computeBlurredImageSize=function(y){return y?{height:y*2,width:y*2}:this.fallbackImageSize};
_.E.computeImageSize=function(y){return y?{height:y,width:y}:this.fallbackImageSize};
_.E.computeObjectFit=function(y){return y?"FILL":"CONTAIN"};
_.E.computePreserve=function(y){return y?!0:!1};
_.E.setBackground=function(){var y,W;_.e("web_modern_collections_v2")&&((y=this.data)==null?0:(W=y.thumbnail)==null?0:W.sampledThumbnailColor)&&(y=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+y.red+","+y.green+","+y.blue+",1)")};
O_.prototype.setBackground=O_.prototype.setBackground;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],O_.prototype,"watchFeedThumbnail",void 0);_.J([_.q(),_.R("design:type",Object)],O_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],O_.prototype,"size",void 0);
_.J([_.q({computed:"computeBlurredImageSize(size)"}),_.R("design:type",Object)],O_.prototype,"blurredImageSize",void 0);_.J([_.q({computed:"computeImageSize(size)"}),_.R("design:type",Object)],O_.prototype,"imageSize",void 0);_.J([_.q({computed:"computePreserve(size)"}),_.R("design:type",String)],O_.prototype,"preserve",void 0);_.J([_.q({computed:"computeObjectFit(size)"}),_.R("design:type",String)],O_.prototype,"objectFit",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],O_.prototype,"enableWebModernCollectionsV2",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],O_.prototype,"webModernCollections",void 0);_.J([_.xA("data.thumbnail.sampledThumbnailColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],O_.prototype,"setBackground",null);_.J([_.k({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],O_);
_.Y(O_,"ytd-playlist-custom-thumbnail-renderer",function(){if(OPJ!==void 0)return OPJ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return OPJ=y},{mode:1});var vMf;var v_=function(){return _.u.apply(this,arguments)||this};
_.p(v_,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],v_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],v_.prototype,"width",void 0);_.J([_.k({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],v_);
_.Y(v_,"ytd-playlist-video-thumbnail-renderer",function(){if(vMf!==void 0)return vMf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vMf=y},{mode:1});var dyr;var da=function(){return _.u.apply(this,arguments)||this};
_.p(da,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],da.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],da.prototype,"width",void 0);_.J([_.k({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],da);
_.Y(da,"ytd-show-custom-thumbnail-renderer",function(){if(dyr!==void 0)return dyr;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dyr=y},{mode:1});var LeQ;var Ls=function(){return _.u.apply(this,arguments)||this};
_.p(Ls,_.u);Ls.prototype.useFilledIcons=function(y){return y==="MUSIC"||y==="COURSE"};
Ls.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=tc(this.overlayColor,"0.8");else if(this.overlayColor){var y=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+y.red+","+y.green+","+y.blue+",0.8)"}};
_.CM.Object.defineProperties(Ls.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)}}});
Ls.prototype.overlayColorChanged=Ls.prototype.overlayColorChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ls.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Ls.prototype,"overlayColor",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ls.prototype,"overlayStyle",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ls.prototype,"overlayTextStyle",null);_.J([_.xA("overlayColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ls.prototype,"overlayColorChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Ls);
_.Y(Ls,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(LeQ!==void 0)return LeQ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return LeQ=y},{mode:1});var zvJ;var zh=function(){var y=_.u.apply(this,arguments)||this;y.active=!1;return y};
_.p(zh,_.u);zh.prototype.computeIsSpinnerHidden=function(y){return(y==null?void 0:y.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
zh.prototype.computeOverlayIcon=function(y){return(y==null?void 0:y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(y==null?void 0:y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zh.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],zh.prototype,"active",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],zh);
_.Y(zh,"ytd-thumbnail-overlay-downloading-renderer",function(){if(zvJ!==void 0)return zvJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zvJ=y},{mode:1});var cwz;var c_=function(){return _.u.apply(this,arguments)||this};
_.p(c_,_.u);_.CM.Object.defineProperties(c_.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],c_.prototype,"data",void 0);_.J([_.M("data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],c_.prototype,"text",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],c_);
_.Y(c_,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(cwz!==void 0)return cwz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cwz=y},{mode:1});var evq,hvm=function(){if(evq!==void 0)return evq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return evq=y};var ew=function(){return _.u.apply(this,arguments)||this};
_.p(ew,_.u);_.CM.Object.defineProperties(ew,{template:{configurable:!0,enumerable:!0,get:function(){return hvm()}}});
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],ew.prototype,"animateEqualizer",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ew);_.MM()(ew,"ytd-thumbnail-overlay-equalizer",function(){return hvm()},{allowedProps:["animateEqualizer"],
mode:1});var oM6;var hj=function(){var y=_.u.apply(this,arguments)||this;y.nowPlayingBadge=_.e("web_now_playing_badge");y.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return y};
_.p(hj,_.u);hj.prototype.activeChanged=function(){var y=this;_.e("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.gy(this,function(){_.h1(y.hostElement,"yt-playlist-lockup-now-playing-active",y)})};
hj.prototype.onMiniplayerPlayStateChanged=function(y){var W,V=(W=_.h(_.s8().currentEndpoint,_.Iw))==null?void 0:W.videoId;this.isVideoPlaying=y&&(_.e("web_limit_now_playing_animation_killswitch")||this.videoId===V)};
hj.prototype.activeChanged=hj.prototype.activeChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],hj.prototype,"isVideoPlaying",void 0);_.J([_.q(),_.R("design:type",String)],hj.prototype,"videoId",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],hj.prototype,"equalizerOnly",void 0);_.J([_.q(),_.R("design:type",Boolean)],hj.prototype,"isActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"nowPlayingBadge",void 0);_.J([_.xA("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hj.prototype,"activeChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],hj);
_.Y(hj,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(oM6!==void 0)return oM6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return oM6=y},{mode:1});var Kes;var o5=function(){return _.u.apply(this,arguments)||this};
_.p(o5,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],o5.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],o5);
_.Y(o5,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Kes!==void 0)return Kes;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Kes=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var por;var Ks=function(){return _.u.apply(this,arguments)||this};
_.p(Ks,_.u);Ks.prototype.onDurationChanged=function(){var y,W;_.i6(this.hostElement).querySelector("#progress").style.width=((W=(y=this.data)==null?void 0:y.percentDurationWatched)!=null?W:0)+"%"};
Ks.prototype.onDurationChanged=Ks.prototype.onDurationChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ks.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ks.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Ks.prototype,"isLive",void 0);_.J([_.xA("data.percentDurationWatched"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ks.prototype,"onDurationChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Ks);
_.Y(Ks,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(por!==void 0)return por;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return por=y},{mode:1});var iPf;var ps=function(){var y=_.u.apply(this,arguments)||this;y.bottomPanel=!1;y.richGridOverlay=!1;y.watchFeedOverlay=!1;y.isCompact=!1;return y};
_.p(ps,_.u);ps.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.CM.Object.defineProperties(ps.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType)==="PLAY_ALL"&&_.e("kevlar_system_icons")}}});
ps.prototype.widthChanged=ps.prototype.widthChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ps.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],ps.prototype,"width",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ps.prototype,"bottomPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ps.prototype,"richGridOverlay",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ps.prototype,"watchFeedOverlay",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ps.prototype,"isCompact",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ps.prototype,"isIconFilled",null);_.J([_.xA("width","watchFeedOverlay"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ps.prototype,"widthChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],ps);
_.Y(ps,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(iPf!==void 0)return iPf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return iPf=y},{mode:1});var fWi;var Tjs=["CLIP","SHORTS"],iV=function(){var y=_.u.apply(this,arguments)||this;y.animated=_.e("animated_live_badge_icon");y.hasIcon=!1;y.updateTimerIntervalId=0;y.timeSinceLive=0;return y};
_.p(iV,_.u);_.E=iV.prototype;_.E.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.E.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.E.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.E.hasIconOrText=function(){var y,W;return!!(((y=this.data)==null?0:y.icon)||((W=this.data)==null?0:W.text))};
_.E.initializeLiveBadgeTimer=function(){var y=this,W,V=(W=this.liveBadgeData)==null?void 0:W.startTimestampSec;if(V&&this.canShowLiveBadgeTimer()){var w;W=Number((w=this.liveBadgeData)==null?void 0:w.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(V);this.updateTimerIntervalId=_.MO(function(){y.canShowLiveBadgeTimer()?y.timeSinceLive++:(y.timeSinceLive=0,window.clearInterval(y.updateTimerIntervalId))},W)}else this.timeSinceLive=0};
_.E.canShowLiveBadgeTimer=function(){var y=Date.now(),W,V;return y<(Number((W=this.liveBadgeData)==null?void 0:W.endTimestampSec)-1)*1E3&&y>Number((V=this.liveBadgeData)==null?void 0:V.startTimestampSec)*1E3};
_.CM.Object.defineProperties(iV.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data;var W=this.timeSinceLive;var V,w,t,F;a:{var I=y.style;if(I===void 0)I=16;else switch(I){case "LIVE":I=17;break a;default:I=16}}W={type:I,text:W?rg4({seconds:W}):_.OT(y.text),accessibilityText:(V=y.text)==null?void 0:(w=V.accessibility)==null?void 0:(t=w.accessibilityData)==null?void 0:t.label,icon:(F=y.icon)==null?void 0:F.iconType}}else W={};return W}},
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 y;return(y=this.data)==null?void 0:y.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 Tjs.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
iV.prototype.initializeLiveBadgeTimer=iV.prototype.initializeLiveBadgeTimer;iV.prototype.dataChanged=iV.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],iV.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iV.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],iV.prototype,"icon",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],iV.prototype,"animated",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.R("design:type",Boolean)],iV.prototype,"hideTimeStatus",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iV.prototype,"hasIcon",void 0);_.J([_.q(),_.R("design:type",Object)],iV.prototype,"timeSinceLive",void 0);_.J([_.M("data","timeSinceLive"),_.R("design:type",Object),_.R("design:paramtypes",[])],iV.prototype,"badgeShapeData",null);
_.J([_.M("data","overlayType"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iV.prototype,"hideBadgeShape",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iV.prototype,"dataChanged",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],iV.prototype,"overlayStyle",null);
_.J([_.M("data.liveBadgeData"),_.R("design:type",Object),_.R("design:paramtypes",[])],iV.prototype,"liveBadgeData",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.type"),_.R("design:type",Object),_.R("design:paramtypes",[])],iV.prototype,"overlayType",null);_.J([_.M("overlayType","overlayStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iV.prototype,"useFilledIcon",null);
_.J([_.Jc("liveBadgeData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iV.prototype,"initializeLiveBadgeTimer",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],iV);
_.Y(iV,"ytd-thumbnail-overlay-time-status-renderer",function(){if(fWi!==void 0)return fWi;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fWi=y},{mode:_.qM("kevlar_poly_si_batch_j035")?1:2});var myi;var Th=function(){return _.u.apply(this,arguments)||this};
_.p(Th,_.u);Th.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"}}}}};
Th.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(y){if(this.hasPlaybackProgressBar)return{percentDurationWatched:y.percentDurationWatched}};
Th.prototype.computeHasPlaybackProgressBar=function(y){return!!y.percentDurationWatched&&y.percentDurationWatched>0};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Th.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.R("design:type",Boolean)],Th.prototype,"hasPlaybackProgressBar",void 0);
_.J([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Th);
_.Y(Th,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(myi!==void 0)return myi;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return myi=y},{mode:1});var MRq;var q7R=_.eY(function(y){var W=y.data;var V=y.children;var w=function(){return!!W().doubleStack};
return _.O("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!W().experimentEnabled}},_.O(_.v,{cond:W,
then:function(){return _.O("div",null,_.O(_.v,{cond:w,then:function(){var t={};return _.O("div",{class:_.kS("collections-stack-wiz__collection-stack2",function(){return W().customClassName2ndStack},(t["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return W().enableResponsiveMode},t)),
style:_.Rd({"background-color":function(){return poa(W())}})})}}),_.O("div",{class:_.kS("collections-stack-wiz__collection-stack1",function(){return W().customClassName1stStack},function(){return KeR(W().thumbnailSize?W().thumbnailSize:"medium")}),
style:_.Rd({"background-color":function(){return poa(W())}})}),V)}}))},"S");_.iF(q7R,"yt-collections-stack",{props:{data:_.vB}});var m3=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};y.webModernCollections=!1;y.isSearch=!1;y.isDoubleStack=!1;y.thumbnailSize="medium";y.enableWebModernCollectionsV2=_.e("web_modern_collections_v2");return y};
_.p(m3,_.u);_.E=m3.prototype;
_.E.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]]"}}}}}};
_.E.getThumbnailDetails=function(y){if(y!=null&&y.thumbnailRenderer){var W=y.thumbnailRenderer,V;if((V=W.playlistVideoThumbnailRenderer)==null?0:V.thumbnail)return W.playlistVideoThumbnailRenderer.thumbnail;var w;if((w=W.playlistCustomThumbnailRenderer)==null?0:w.thumbnail)return W.playlistCustomThumbnailRenderer.thumbnail;y=y.thumbnailRenderer;var t;if((t=y.showCustomThumbnailRenderer)==null?0:t.thumbnail)return y.showCustomThumbnailRenderer.thumbnail}};
_.E.computeOverlayColor=function(y){var W,V;if((W=this.getThumbnailDetails(y))==null?0:(V=W.darkColorPalette)==null?0:V.section2Color)return this.getThumbnailDetails(y).darkColorPalette.section2Color;var w;return(w=this.getThumbnailDetails(y))==null?void 0:w.sampledThumbnailColor};
_.E.computeWebModernCollections=function(y){if(y==null||!y.thumbnailOverlays)return!1;y=_.N(y.thumbnailOverlays);for(var W=y.next();!W.done;W=y.next()){var V=void 0;if((V=W.value)==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.E.computeNavigationEndpoint=function(y){return Ufy(y==null?void 0:y.navigationEndpoint)};
_.CM.Object.defineProperties(m3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:y==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:y==null?void 0:y.vibrantColorPalette,darkColorPalette:y==null?void 0:y.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],m3.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(YII),_.R("design:type",Object)],m3.prototype,"ytdThumbnailBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],m3.prototype,"componentBehavior",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],m3.prototype,"watchFeedThumbnail",void 0);_.J([_.q(),_.R("design:type",Number)],m3.prototype,"customThumbnailSize",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],m3.prototype,"hideAria",void 0);_.J([_.q(),_.R("design:type",Object)],m3.prototype,"data",void 0);_.J([_.q({computed:"computeOverlayColor(data)"}),_.R("design:type",Object)],m3.prototype,"overlayColor",void 0);
_.J([_.q({computed:"computeWebModernCollections(data)"}),_.R("design:type",Object)],m3.prototype,"webModernCollections",void 0);_.J([_.q({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],m3.prototype,"computedNavigationEndpoint",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],m3.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],m3.prototype,"isDoubleStack",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],m3.prototype,"thumbnailSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m3.prototype,"enableWebModernCollectionsV2",void 0);_.J([_.M("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],m3.prototype,"collectionStack",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],m3);
_.Y(m3,"ytd-playlist-thumbnail",function(){if(MRq!==void 0)return MRq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return MRq=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var UyR;var MJ=function(){var y=_.u.apply(this,arguments)||this;y.noEndpoints=!1;y.amsterdamPostMvp=_.e("web_amsterdam_post_mvp_playlists");y.badges=[];y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.p(MJ,_.u);_.E=MJ.prototype;_.E.getMetadata=function(y){if(!y)return[];var W=[],V=y.shortViewCountText||y.viewCountText;V&&W.push(_.OT(V));y.publishedTimeText&&W.push(_.OT(y.publishedTimeText));y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&W.push(_.Z1(_.OT(y.upcomingEventData.upcomingEventText),Number(y.upcomingEventData.startTime)));return W};
_.E.observeDataForBylineSeparator=function(){this.data&&_.TA(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.E.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.V2(this.metadataColor)};
_.E.getSimpleString=function(y){return _.OT(y)};
_.E.isBylineHidden=function(y){return this.noByline||!((y==null?0:y.longBylineText)||(y==null?0:y.shortBylineText))};
_.E.isMetadataHidden=function(y){var W;return((W=this.getMetadata(y))==null?void 0:W.length)===0};
_.E.isBylineMetadataSeparatorHidden=function(y){return this.isMetadataHidden(y)||!this.shouldShowVideoInfo};
_.E.isLongByline=function(y,W){return W&&!(y==null||!y.longBylineText)};
_.CM.Object.defineProperties(MJ.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var y;return this.amsterdamPostMvp&&!((y=this.data)==null||!y.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
MJ.prototype.metadataColorChanged=MJ.prototype.metadataColorChanged;MJ.prototype.observeDataForBylineSeparator=MJ.prototype.observeDataForBylineSeparator;_.J([_.m(_.y$),_.R("design:type",Object)],MJ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],MJ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],MJ.prototype,"noEndpoints",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"isSlimShort",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"radioMeta",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],MJ.prototype,"isGridViewEnabled",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"richMeta",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],MJ.prototype,"amsterdamPostMvp",void 0);_.J([_.q(),_.R("design:type",Boolean)],MJ.prototype,"noByline",void 0);
_.J([_.q({computed:"isLongByline(data, radioMeta)"}),_.R("design:type",Boolean)],MJ.prototype,"longByline",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"truncateMetadataLine",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"miniMode",void 0);_.J([_.q(),_.R("design:type",Number)],MJ.prototype,"metadataColor",void 0);_.J([_.q(),_.R("design:type",Array)],MJ.prototype,"badges",void 0);
_.J([_.q({selector:_.yY,selectorArgs:["data.videoId"]}),_.R("design:type",String)],MJ.prototype,"transferState",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"isDownloading",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MJ.prototype,"typographyBump",void 0);_.J([_.s$("#metadata-line"),_.R("design:type",HTMLElement)],MJ.prototype,"metadataLine",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MJ.prototype,"observeDataForBylineSeparator",null);_.J([_.xA("metadataColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MJ.prototype,"metadataColorChanged",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],MJ.prototype,"shouldShowVideoInfo",null);
_.J([_.M("badges"),_.R("design:type",String),_.R("design:paramtypes",[])],MJ.prototype,"inlineBadgeClass",null);_.J([_.M("longByline"),_.R("design:type",String),_.R("design:paramtypes",[])],MJ.prototype,"longBylineClass",null);_.J([_.M("data","longByline"),_.R("design:type",Object),_.R("design:paramtypes",[])],MJ.prototype,"bylineText",null);_.J([_.M("isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],MJ.prototype,"watchFeedBigThumbs",null);
_.J([_.k({is:"ytd-video-meta-block",disableElementRegistration:!0})],MJ);
_.Y(MJ,"ytd-video-meta-block",function(){if(UyR!==void 0)return UyR;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UyR=y},{mode:_.qM("kevlar_poly_si_batch_j080")?1:2});_.ZQ("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var qJ=function(){var y=_.u.apply(this,arguments)||this;y.displayItemCount=2;y.isBackstagePlaylist=!1;y.isPostCompactPlaylist=!1;y.shouldShowChannelThumbnail=!1;y.useModernCollectionsV2=_.e("web_modern_collections_v2");return y};
_.p(qJ,_.u);_.E=qJ.prototype;_.E.computeFirstVideos=function(y,W){return y===void 0||W===void 0?[]:y.slice(0,W)};
_.E.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var y=this.data.thumbnailRenderer;y.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",y.playlistVideoThumbnailRenderer.thumbnail);y.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",y.playlistCustomThumbnailRenderer.thumbnail)}};
_.E.computeThumbnailHeight=function(y,W,V,w,t){return w?t==="BIG"?280:t==="MASSIVE"?337:234:V?240:W?72:y?118:138};
_.E.computeThumbnailWidth=function(y,W,V,w,t){return w?t==="MEDIUM"?450:t==="BIG"?500:t==="MASSIVE"?600:420:V?360:W?128:y?210:246};
_.E.computeUseBiggerThumbs=function(y){return y&&_.e("enable_desktop_search_bigger_thumbs")};
_.E.computeShouldShowChannelThumbnail=function(y,W){return y&&!(W==null||!W.channelThumbnail)};
_.CM.Object.defineProperties(qJ.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
qJ.prototype.dataChanged=qJ.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],qJ.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],qJ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qJ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],qJ.prototype,"displayItemCount",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],qJ.prototype,"isBackstagePlaylist",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],qJ.prototype,"isPostCompactPlaylist",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],qJ.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.R("design:type",Boolean)],qJ.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],qJ.prototype,"biggerThumbsStyle",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],qJ.prototype,"isDownloads",void 0);_.J([_.q({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.R("design:type",Object)],qJ.prototype,"shouldShowChannelThumbnail",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],qJ.prototype,"useModernCollectionsV2",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qJ.prototype,"dataChanged",null);_.J([_.M("isSearch"),_.R("design:type",String),_.R("design:paramtypes",[])],qJ.prototype,"stackThumbnailSize",null);_.J([_.k({is:"ytd-playlist-renderer",disableElementRegistration:!0})],qJ);
_.Y(qJ,"ytd-playlist-renderer",function(){if(CGR===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);CGR=y}y=CGR;return y},{mode:1});var uAq;var S7K;var U_=function(){var y=_.u.apply(this,arguments)||this;y.collections=!!_.e("web_modern_collections_v2");y.startX=0;return y};
_.p(U_,_.u);U_.prototype.onEndpointMouseDown=function(y){this.startX=y.clientX};
U_.prototype.onEndpointClick=function(y){this.startX!==y.clientX&&(y.preventDefault(),y.stopPropagation())};
U_.prototype.computeObjectFit=function(y){return y==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||y==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||y==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
U_.prototype.computeCardStyle=function(y){return y?y.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.CM.Object.defineProperties(U_.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.collections&&((y=this.data)==null?void 0:(W=y.searchRefinementCardRendererStyle)==null?void 0:W.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],U_.prototype,"data",void 0);_.J([_.q({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.R("design:type",Number)],U_.prototype,"objectFit",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.R("design:type",String)],U_.prototype,"cardStyle",void 0);
_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],U_.prototype,"roundContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],U_.prototype,"collections",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],U_.prototype,"isAlbumCard",null);_.J([_.M("data","collections","isAlbumCard"),_.R("design:type",Object),_.R("design:paramtypes",[])],U_.prototype,"collectionStack",null);
_.J([_.k({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],U_);
_.Y(U_,"ytd-search-refinement-card-renderer",function(){if(S7K!==void 0)return S7K;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return S7K=y},{mode:1});var DyA;var uV=function(){var y=_.u.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.p(uV,_.u);_.J([_.q(),_.R("design:type",Object)],uV.prototype,"data",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],uV.prototype,"componentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],uV.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],uV.prototype,"isRichGrid",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],uV.prototype,"miniMode",void 0);
_.J([_.k({is:"ytd-game-details-renderer",disableElementRegistration:!0})],uV);
_.Y(uV,"ytd-game-details-renderer",function(){if(DyA!==void 0)return DyA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DyA=y},{mode:1});var lWq;var xys;var Sw=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return y};
_.p(Sw,_.u);_.E=Sw.prototype;_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.currentStateData=function(y){var W=y||this.data;return W&&W.states&&W.currentStateId!=null?W.states.find(function(V){return V.stateId===W.currentStateId})||null:null};
_.E.currentStateRendererData=function(y){return(y=this.currentStateData(y))&&y.state&&y.state.buttonRenderer?y.state.buttonRenderer:null};
_.E.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())};
_.E.computeButtonIcon=function(y){y=this.currentStateRendererData(y);var W;return(y==null?0:(W=y.icon)==null?0:W.iconType)?y.icon.iconType.toLowerCase():null};
_.E.computeAccessibility=function(y){return(y=this.currentStateRendererData(y))&&y.accessibilityData?y.accessibilityData.accessibilityData||null:null};
_.E.computeButtonClass=function(y){var W=this.currentStateRendererData(y);if(!W)return"";y="";var V=W.style;V&&(y+=V.toLowerCase().replace(/_/g,"-")+" ");(W=W.size)&&(y+=W.toLowerCase().replace(/_/g,"-")+" ");return y.trim()};
_.E.computeServiceEndpoint=function(y){if(!y)return null;var W=y&&y.serviceEndpoint,V=this.get("command.commandMetadata.webCommandMetadata.sendPost",y);return W?W:V&&y.command?y.command:null};
_.E.computeBellMenuItemParams=function(y){var W;y=(W=_.h(y==null?void 0:y.command,_.mR))==null?void 0:W.commands;if(!y||y.length===0)return null;W=_.h(y[0],_.Hq);var V,w;return(W==null?0:(V=W.popup)==null?0:(w=V.menuPopupRenderer)==null?0:w.items)?W.popup.menuPopupRenderer.items.map(function(t){return t.menuServiceItemRenderer.trackingParams}):null};
_.E.handleBellMenuOpenSelectedAction=function(y){var W=y.trackingParams,V=this.computeBellMenuItemParams(this.data);this.data&&W&&V&&V.includes(W)&&this.ytRenderButtonBehavior._setButtonIcon(y.icon.iconType.toLowerCase())};
_.E.onYtServiceRequestCompleted=function(y,W){(y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))&&this.set("data",y)};
_.E.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.E.resetState=function(){this.set("data.currentStateId",3)};
_.E.onYtButtonTapHandler=function(){if(this.data){var y=this.currentStateRendererData(this.data);y&&this.ytRendererBehavior.logExplicitClick(y)}};
Sw.prototype.onYtServiceRequestError=Sw.prototype.onYtServiceRequestError;Sw.prototype.onYtServiceRequestCompleted=Sw.prototype.onYtServiceRequestCompleted;Sw.prototype.stateChanged=Sw.prototype.stateChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Sw.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(RY.YtRenderButtonBehavior),_.R("design:type",Object)],Sw.prototype,"ytRenderButtonBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sw.prototype,"data",void 0);_.J([_.Jc("data","data.currentStateId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sw.prototype,"stateChanged",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],Sw.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sw.prototype,"onYtServiceRequestError",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Sw);
_.Y(Sw,"ytd-subscription-notification-toggle-button-renderer",function(){if(xys!==void 0)return xys;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return xys=y},{mode:1});var kLs;var Du=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};y.tapHandler=function(){if(y.data){var W=y.currentStateRendererData();W&&y.ytRendererBehavior.logExplicitClick(W)}};
return y};
_.p(Du,_.u);_.E=Du.prototype;_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.currentStateData=function(){var y=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(W){return W.stateId===y.data.currentStateId})||null:null};
_.E.currentStateRendererData=function(){var y=this.currentStateData();return y&&y.state&&y.state.buttonRenderer?y.state.buttonRenderer:null};
_.E.computeAccessibilityLabel=function(){var y,W,V;return(y=this.currentStateRendererData())==null?void 0:(W=y.accessibilityData)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label};
_.E.computeBellMenuItemParams=function(){var y,W,V=(W=_.h((y=this.data)==null?void 0:y.command,_.mR))==null?void 0:W.commands;if(!V||V.length===0)return null;y=_.h(V[0],_.Hq);var w,t;return(y==null?0:(w=y.popup)==null?0:(t=w.menuPopupRenderer)==null?0:t.items)?y.popup.menuPopupRenderer.items.map(function(F){return F.menuServiceItemRenderer.trackingParams}):null};
_.E.handleBellMenuOpenSelectedAction=function(y){var W=y.trackingParams,V=this.computeBellMenuItemParams();if(this.data&&W&&V&&V.includes(W)&&(y==null||!y.isDisabled)){var w;((w=_.h(y.serviceEndpoint,_.q8))==null?void 0:w.signal)!=="CLIENT_SIGNAL"&&(this.icon=y.icon.iconType)}};
_.E.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.E.onYtServiceRequestCompleted=function(y,W){if(y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))this.icon=void 0,this.set("data",y)};
_.E.onYtServiceRequestError=function(){this.icon=void 0};
_.CM.Object.defineProperties(Du.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data,W=this.textLabel,V=this.hostElement,w=this.computeAccessibilityLabel(),t=this.tapHandler,F=this.isOverlay?"overlay":"mono",I=(y==null?0:y.disableButton)?"disabled":"active";W=W?_.y4(W):void 0;return{style:F,type:"tonal",state:I,size:"M",focused:!1,formattedButtonText:W,iconPosition:"leading-trailing",onTap:fWb(y,t,V),accessibilityLabel:w}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var y=this.currentStateRendererData(),W,V,w=(V=this.icon)!=null?V:y==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(w)return _.D8(w)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.secondaryIcon)==null?void 0:W.iconType;if(V)return _.D8(V)}}});
Du.prototype.onYtServiceRequestError=Du.prototype.onYtServiceRequestError;Du.prototype.onYtServiceRequestCompleted=Du.prototype.onYtServiceRequestCompleted;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Du.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Du.prototype,"textLabel",void 0);
_.J([_.q(),_.R("design:type",String)],Du.prototype,"icon",void 0);_.J([_.q(),_.R("design:type",Boolean)],Du.prototype,"isOverlay",void 0);_.J([_.M("data.*","textLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Du.prototype,"computedButtonShape",null);_.J([_.M("data.*","icon"),_.R("design:type",Object),_.R("design:paramtypes",[])],Du.prototype,"computedIcon",null);_.J([_.M("data.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],Du.prototype,"computedSecondaryIcon",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],Du.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Du.prototype,"onYtServiceRequestError",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Du);
_.Y(Du,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(kLs!==void 0)return kLs;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return kLs=y},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var sMJ;_.iF(kaA,"yt-animated-action",{props:{backgroundLottieRef:_.vB,foregroundLottieRef:_.vB,wrapperClass:_.vB,disableAnimation:_.vB},unsafeExternallySettableAttributes:new Set(["key"])});var lV=function(){var y=_.u.apply(this,arguments)||this;y.animatedActionEnabled=_.e("web_animated_actions");y.foregroundLottieRef={};y.backgroundLottieRef={};y.forceIconOnly=!1;y.showTextWhileAnimating=!1;y.keyboardFocused=!1;y.isAnimating=!1;y.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return y};
_.p(lV,_.u);_.E=lV.prototype;_.E.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.E.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]]"}}}}}};
_.E.attached=function(){this.keyboardFocused=!1};
_.E.onYtServiceRequestSent=function(y,W){(this.get("endpoint.subscribeEndpoint",W)||this.get("endpoint.unsubscribeEndpoint",W))&&this.updateSubscriptionState(!this.subscribed)};
_.E.onYtServiceRequestCompleted=function(y,W){(y=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",W.data))&&this.bellButton&&(this.bellButton.data=y)};
_.E.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.qg(this.hostElement)};
_.E.onPlayerSubscribe=function(y){this.isCompactRed()||y!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.E.onPlayerUnsubscribe=function(y){this.isCompactRed()||y!==this.data.channelId||this.updateSubscriptionState(!1)};
_.E.handleUpdateSubscribeButtonAction=function(y){y=_.h(y,Wx6);var W;y&&y.channelId===((W=this.data)==null?void 0:W.channelId)&&this.updateSubscriptionState(!!y.subscribed)};
_.E.computeButtonStyle=function(y){return this.get("style.styleType",y)||null};
_.E.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.E.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.E.updateSubscriptionState=function(y){if(y!==this.subscribed){this.set("data.subscribed",y);var W,V=(W=this.data)==null?void 0:W.subscribedEntityKey;V&&this.ytdReduxBehavior.dispatch(_.B5("subscriptionStateEntity",V,{key:V,subscribed:y}));this.isCompactRed()||_.h1(this.hostElement,"yt-subscription-changed",y);y||(_.ow(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!y),y&&this.hasBellButton&&this.startAnimation())}};
_.E.startAnimation=function(){var y=this;if(!this.isAnimating){var W=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var V;(V=this.backgroundLottieRef.lottieEl)==null||V.goToAndPlay(0);var w;(w=this.foregroundLottieRef.lottieEl)==null||w.goToAndPlay(0);_.HU.addJob(function(){y.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.HU.addJob(function(){y.updateContainerToFitContent(!!y.subscribed,!0)},2,1500);
_.HU.addJob(function(){y.isAnimating=!1},2,W)}};
_.E.maybeAnimateBellIcon=function(){var y=_.f6(this.hostElement).querySelector("yt-animated-icon");if(y){var W;(W=y.animationRef.lottieEl)==null||W.goToAndPlay(0)}};
_.E.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.E.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.E.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var y;this.unsubscribedWidth=(y=this.subscribeButtonShape)==null?void 0:y.getBoundingClientRect().width}var W;this.subscribedWidth=(W=this.bellButton)==null?void 0:W.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.E.updateContainerToFitContent=function(y,W){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(y?(y=this.subscribedWidth,W=this.isAnimating&&!W,this.subscribedIconOnlyWidth===void 0||W||(y=this.subscribedIconOnlyWidth),this.hostElement.style.width=y+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.E.clearContainerSize=function(){this.hostElement.style.width=""};
_.E.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.E.maybeSetSubscribedButtonIconOnlyWidth=function(){var y=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 W;y.subscribedIconOnlyWidth=(W=y.bellButton)==null?void 0:W.getBoundingClientRect().width;requestAnimationFrame(function(){if(y.bellButton){var V;y.bellButton.textLabel=
(V=y.data)==null?void 0:V.subscribedButtonText}})})))};
_.CM.Object.defineProperties(lV.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 y;return(y=this.data)==null?void 0:y.subscribedButtonText}var W;return this.forceIconOnly?void 0:(W=this.data)==null?void 0:W.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var y,W,V=((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"subscribe",timings:V,enabled:V.length>0&&!this.subscribed,experimentEnabled:V.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!this.subscribed&&((y=this.data)==null?void 0:y.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 y={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var W=y.renderer;var V=y.element;var w=y.subscribed;var t=y.commandController;var F=y.isOverlay;y=y.stopPropagation;var I=q7G(W,w);F&&(I.style="overlay");F=Object;var P=F.assign,C;a:switch((C=W.style)==null?void 0:C.styleType){case "COMPACT_GRAY":case "COMPACT_RED":C={size:"S"};break a;default:C={size:"M"}}var d=MRd(W,
w);var L=(L=w?W.subscribedButtonText:W.unsubscribedButtonText)?_.y4(L):void 0;return P.call(F,{},I,C,{focused:!1,toggled:w,accessibilityLabel:d,formattedButtonText:L,onTap:myb(W,w,V,t,y)})}}}});
lV.prototype.onMouseDown=lV.prototype.onMouseDown;lV.prototype.onDataChanged=lV.prototype.onDataChanged;lV.prototype.observedSubscribed=lV.prototype.observedSubscribed;lV.prototype.onYtServiceRequestCompleted=lV.prototype.onYtServiceRequestCompleted;lV.prototype.onYtServiceRequestSent=lV.prototype.onYtServiceRequestSent;lV.prototype.maybeUpdateBellButtonText=lV.prototype.maybeUpdateBellButtonText;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],lV.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],lV.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lV.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.subscribedEntityKey"],selector:i0G}),_.R("design:type",Object)],lV.prototype,"subscriptionStateEntity",void 0);_.J([_.q({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lV.prototype,"subscribed",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],lV.prototype,"branded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lV.prototype,"animatedActionEnabled",void 0);
_.J([_.q(),_.R("design:type",Object)],lV.prototype,"foregroundLottieRef",void 0);_.J([_.q(),_.R("design:type",Object)],lV.prototype,"backgroundLottieRef",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],lV.prototype,"overlayButton",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.R("design:type",Object)],lV.prototype,"buttonStyle",void 0);_.J([_.q(),_.R("design:type",Object)],lV.prototype,"forceIconOnly",void 0);
_.J([_.q(),_.R("design:type",Object)],lV.prototype,"showTextWhileAnimating",void 0);_.J([_.q({value:function(){return!!_.hs().resolve(_.eX(_.MC))&&_.e("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.R("design:type",Boolean)],lV.prototype,"useKeyboardFocused",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lV.prototype,"keyboardFocused",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lV.prototype,"isAnimating",void 0);_.J([_.M("data.notificationPreferenceButton.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"hasBellButton",null);
_.J([_.xA("subscribedButtonText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lV.prototype,"maybeUpdateBellButtonText",null);_.J([_.M("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"subscribedButtonText",null);_.J([_.M("data.timedAnimationData.animationTiming","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"smartimationSettings",null);
_.J([_.q({reflectToAttribute:!0}),_.M("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"subscribeButtonHidden",null);_.J([_.q({reflectToAttribute:!0}),_.M("subscribed","hasBellButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"subscribeButtonInvisible",null);
_.J([_.q({reflectToAttribute:!0}),_.M("subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"unsubscribeButtonHidden",null);_.J([_.s$("ytd-subscription-notification-toggle-button-renderer-next"),_.R("design:type",Object)],lV.prototype,"bellButton",void 0);_.J([_.s$("#subscribe-button-shape"),_.R("design:type",HTMLElement)],lV.prototype,"subscribeButtonShape",void 0);
_.J([_.M("overlayButton","subscribed","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],lV.prototype,"buttonShape",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],lV.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],lV.prototype,"onYtServiceRequestCompleted",null);
_.J([_.xA("subscribed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lV.prototype,"observedSubscribed",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lV.prototype,"onDataChanged",null);_.J([_.l6("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lV.prototype,"onMouseDown",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],lV);
_.Y(lV,"ytd-subscribe-button-renderer",function(){if(sMJ!==void 0)return sMJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sMJ=y},{mode:1});var xq=function(){var y=_.u.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.p(xq,_.u);xq.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xq.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xq.prototype,"isRichGrid",void 0);_.J([_.k({is:"ytd-game-card-renderer",disableElementRegistration:!0})],xq);
_.Y(xq,"ytd-game-card-renderer",function(){if(lWq!==void 0)return lWq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lWq=y},{mode:1});var kq={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.e("defer_menus")&&!p6i?0:void 0,waitForSignal:"eocs"};var AwQ;var Y7r;var s_=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return y};
_.p(s_,_.u);_.E=s_.prototype;_.E.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.E.onSeriesReminderStateEntityChange=function(){var y,W,V;((y=this.eventReminderStateEntity)==null?0:y.key)&&((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((V=this.eventReminderStateEntity)==null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.B5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.E.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.E.onYtServiceRequestError=function(){var y;this.updateReminderStateEntitiesFromButtonState((y=this.data)==null?void 0:y.currentState)};
_.E.handleUpdateUpcomingEventReminderButtonStateCommand=function(y){if(y=_.h(y,oKr)){var W,V=(W=this.data)==null?void 0:W.targetId;V&&y.targetId===V&&_.Er(this.updateReminderStateEntitiesFromButtonState.bind(this,y.state))}};
_.E.getButtonStateFromReminderState=function(){var y;if(((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var W;if(((W=this.eventReminderStateEntity)==null?void 0:W.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var V,w;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((w=this.eventReminderStateEntity)==
null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var t;return(t=this.data)==null?void 0:t.currentState};
_.E.updateReminderStateEntitiesFromButtonState=function(y){if(y){switch(y){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":y="UPCOMING_EVENT_REMINDER_STATE_NONE";var W="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":y="UPCOMING_EVENT_REMINDER_STATE_SINGLE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":y="UPCOMING_EVENT_REMINDER_STATE_NONE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var V;
((V=this.eventReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.B5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:y})));var w;((w=this.seriesReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.B5("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:W})))}};
_.CM.Object.defineProperties(s_.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var y=this.getButtonStateFromReminderState(),W,V;if(y&&((W=this.data)==null?0:(V=W.states)==null?0:V.length))for(W=_.N(this.data.states),V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;if(((w=_.h(V,KPE))==null?void 0:w.state)===y)return _.h(V,KPE)}}}});
s_.prototype.onYtServiceRequestError=s_.prototype.onYtServiceRequestError;s_.prototype.onYtServiceRequestCompleted=s_.prototype.onYtServiceRequestCompleted;s_.prototype.onSeriesReminderStateEntityChange=s_.prototype.onSeriesReminderStateEntityChange;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],s_.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],s_.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],s_.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:TMR}),_.R("design:type",Object)],s_.prototype,"eventReminderStateEntity",void 0);
_.J([_.q({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(y,W){return _.UB(y.entities,"sportsSeriesReminderStateEntity",W)}}),
_.R("design:type",Object)],s_.prototype,"seriesReminderStateEntity",void 0);_.J([_.M("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],s_.prototype,"currentButtonStateRenderer",null);_.J([_.xA("seriesReminderStateEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],s_.prototype,"onSeriesReminderStateEntityChange",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],s_.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],s_.prototype,"onYtServiceRequestError",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],s_);
_.Y(s_,"ytd-upcoming-event-reminder-button-renderer",function(){if(Y7r!==void 0)return Y7r;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return Y7r=y},{mode:1});var BjQ;var Aj=function(){return _.u.apply(this,arguments)||this};
_.p(Aj,_.u);Aj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.CM.Object.defineProperties(Aj.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(_.e("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Aj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Aj.prototype,"shelfDismissal",void 0);_.J([_.M("data.responseText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Aj.prototype,"text",null);
_.J([_.M("data.responseText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Aj.prototype,"textAriaLabel",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Aj);
_.Y(Aj,"ytd-notification-multi-action-renderer",function(){if(BjQ!==void 0)return BjQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return BjQ=y},{mode:1});var Jwr;var Yq=function(){return _.u.apply(this,arguments)||this};
_.p(Yq,_.u);Yq.prototype.ready=function(){var y=this;_.i6(this.hostElement).querySelector("#undo").addEventListener("tap",function(){y.onUndoTap()})};
Yq.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yq.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Yq);
_.Y(Yq,"ytd-notification-text-renderer",function(){if(Jwr!==void 0)return Jwr;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Jwr=y},{mode:1});var Rvz;var B_=function(){var y=_.u.apply(this,arguments)||this;y.mouseOverDelayJobId=0;y.fadeInImageDelayJobId=0;y.startTimeMs=-1;y.loadingStartTimeMs=-1;y.loadingEndTimeMs=-1;y.hasVideoPreview=!1;return y};
_.p(B_,_.u);_.E=B_.prototype;_.E.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.E.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.E.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.E.showThumbnail=function(){var y=this;this.csn=_.Xn();_.G2("fmth");_.HU.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.q4(_.HU,function(){y.loadingStartTimeMs=(0,_.cU)();var W=_.i6(y.hostElement).querySelector("#thumbnail");W.complete?y.displayMouseOverImage():W.addEventListener("load",_.Dp(y,y.displayMouseOverImage))},150):_.TA(_.i6(this.hostElement).querySelector("#play"),"show",!0)};
_.E.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.E.onTap=function(){this.removeVideoPreview()};
_.E.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var y=this.videoId,W=this.csn,V=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,w=this.startTimeMs,t=this.hasVideoPreview,F=_.nD(this.trackingParams),I={isMovingThumbnail:t};t&&w>0&&(V>0&&(I.movingThumbnailLoadingDurationMs=Math.round(V)),I.durationHoveredMs=Math.round((0,_.cU)()-w));y&&(I.videoId=y);_.vE(W,F,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:I});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.E.removeVideoPreview=function(){_.HU.cancelJob(this.mouseOverDelayJobId);_.HU.cancelJob(this.fadeInImageDelayJobId);var y=_.i6(this.hostElement).querySelector("#thumbnail");_.TA(y,"fade-in",!1);y.removeEventListener("load",_.Dp(this,this.displayMouseOverImage));y=_.i6(this.hostElement).querySelector("#play");_.TA(y,"fade-in",!1);_.TA(y,"show",!1)};
_.E.displayMouseOverImage=function(){var y=_.i6(this.hostElement).querySelector("#thumbnail"),W=_.i6(this.hostElement).querySelector("#play");this.isImageAvailable(y)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.cU)(),this.startTimeMs=(0,_.cU)(),this.fadeInImageDelayJobId=_.q4(_.HU,function(){_.TA(y,"fade-in",!0)},50)):_.TA(W,"fade-in",!0)};
_.E.computeThumbnail=function(y,W){var V;y&&y.movingThumbnailDetails&&y.movingThumbnailDetails.thumbnails&&W?V=_.f5(y.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):V=W?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(V)return _.ye(V)};
_.E.isImageAvailable=function(y){return!(!y.src||y.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||y.naturalWidth===120)};
B_.prototype.onTap=B_.prototype.onTap;B_.prototype.dataChanged=B_.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],B_.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],B_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],B_.prototype,"csn",void 0);_.J([_.q(),_.R("design:type",Object)],B_.prototype,"trackingParams",void 0);
_.J([_.q(),_.R("design:type",String)],B_.prototype,"videoId",void 0);_.J([_.q(),_.R("design:type",Boolean)],B_.prototype,"isAttachedAndDataSet",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],B_.prototype,"dataChanged",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],B_.prototype,"onTap",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],B_);
_.Y(B_,"ytd-moving-thumbnail-renderer",function(){if(Rvz!==void 0)return Rvz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Rvz=y},{mode:1});var jM6;_.qE=function(y){this.hostElement=y;this.eventSink=null;this.eventList=[]};
_.qE.prototype.shouldForward=function(){var y,W;return(W=(y=this.eventSink)==null?void 0:y.isConnected)!=null?W:document.body.contains(this.eventSink)};
_.qE.prototype.start=function(y,W){this.eventSink&&this.stop();for(var V=0;V<y.length;V++)this.hostElement.addEventListener(y[V],_.Dp(this,this.forwardEvent));var w;this.eventSink=(w=W.hostElement)!=null?w:W;this.eventList=y};
_.qE.prototype.stop=function(){for(var y=0;y<this.eventList.length;y++)this.hostElement.removeEventListener(this.eventList[y],_.Dp(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.qE.prototype.forwardEvent=function(y,W){this.shouldForward()&&(y.stopPropagation(),this.eventSink instanceof Element?_.h1(this.eventSink,y.type,W):_.rQ(new _.Js("eventSink is not an element")))};_.Jj={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.qE(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(y,W){this.forwarder_.start(y,W)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var R5=function(){return _.u.apply(this,arguments)||this};
_.p(R5,_.u);_.E=R5.prototype;_.E.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=_.yC("HTML_DIR")==="rtl"?"right":"left"};
_.E.dataChanged=function(){this.popupOpen=!1};
_.E.computeAriaLabel=function(y){return _.h(y,ilA).label};
_.E.onTap=function(y){y.stopPropagation();y.preventDefault();this.data.command&&_.hs().resolve(_.oA).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.E.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.E.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
R5.prototype.onPopupClosed=R5.prototype.onPopupClosed;R5.prototype.onPopupOpened=R5.prototype.onPopupOpened;R5.prototype.onTap=R5.prototype.onTap;R5.prototype.dataChanged=R5.prototype.dataChanged;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],R5.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.bd),_.R("design:type",Object)],R5.prototype,"ironButtonState",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],R5.prototype,"componentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],R5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:-1}),_.R("design:type",Number)],R5.prototype,"tabindex",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.R("design:type",Object)],R5.prototype,"ariaLabel",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],R5.prototype,"disableTooltips",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],R5.prototype,"popupOpen",void 0);
_.J([_.q(),_.R("design:type",Element)],R5.prototype,"eventSink",void 0);_.J([_.s$("#tooltip"),_.R("design:type",Object)],R5.prototype,"tooltip",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R5.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],R5.prototype,"onTap",null);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R5.prototype,"onPopupOpened",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R5.prototype,"onPopupClosed",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],R5);
_.Y(R5,"ytd-thumbnail-overlay-button-renderer",function(){if(jM6!==void 0)return jM6;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return jM6=y},{mode:1});var $yf;var jw=function(){return _.u.apply(this,arguments)||this};
_.p(jw,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jw.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jw.prototype,"disableAnimation",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jw.prototype,"rounded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jw.prototype,"transparentBackground",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jw.prototype,"noPadding",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],jw);
_.Y(jw,"ytd-thumbnail-overlay-endorsement-renderer",function(){if($yf!==void 0)return $yf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return $yf=y},{mode:1});var nME;var $q=function(){return _.u.apply(this,arguments)||this};
_.p($q,_.u);$q.prototype.computeIconPosition=function(y){return this.get("iconPosition",y)||null};
$q.prototype.computeIconStyle=function(y){return this.get("iconStyle",y)||null};
$q.prototype.computeIsIconStyleFilled=function(y){if(!y)return!1;var W;return y.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((W=y.icon)==null?void 0:W.iconType)==="ERROR_BLACK"};
_.J([_.q(),_.R("design:type",Object)],$q.prototype,"data",void 0);_.J([_.q({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.R("design:type",Object)],$q.prototype,"iconPosition",void 0);_.J([_.q({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.R("design:type",Object)],$q.prototype,"iconStyle",void 0);_.J([_.q({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],$q.prototype,"iconStyleFilled",void 0);
_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],$q);
_.Y($q,"ytd-thumbnail-overlay-icon-renderer",function(){if(nME!==void 0)return nME;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nME=y},{mode:1});var HPR;var ns=function(){return _.u.apply(this,arguments)||this};
_.p(ns,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ns.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],ns);
_.Y(ns,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(HPR!==void 0)return HPR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HPR=y},{mode:1});var XoR;var H_=function(){var y=_.u.apply(this,arguments)||this;y.isPreviewLoading=!1;return y};
_.p(H_,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],H_.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],H_.prototype,"isPreviewLoading",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],H_);
_.Y(H_,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(XoR!==void 0)return XoR;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return XoR=y},{mode:1});var aWm;var X7=function(){return _.u.apply(this,arguments)||this};
_.p(X7,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],X7.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],X7);
_.Y(X7,"ytd-thumbnail-overlay-pinking-renderer",function(){if(aWm!==void 0)return aWm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return aWm=y},{mode:1});var GLq;var a5=function(){var y=_.u.apply(this,arguments)||this;y.disableTooltips=!1;y.isLoading=!1;y.useExpandableTooltip=!1;y.toggled=!1;y.hovered=!1;y.mouseoverDelayJobId=0;y.toggleDelayJobId=0;y.expandAnimationDelayJobId=0;return y};
_.p(a5,_.u);_.E=a5.prototype;_.E.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");_.i6(this.hostElement).querySelector("#tooltip").position=_.yC("HTML_DIR")==="rtl"?"right":"left"};
_.E.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.HU.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.HU.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.HU.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.E.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.HU.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.HU.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.HU.cancelJob(this.expandAnimationDelayJobId)};
_.E.computeIcon=function(y,W,V){return(y=V?W:y)&&y.iconType?_.D8(y.iconType):void 0};
_.E.computeAriaLabel=function(y,W,V){return _.h(V?W:y,ilA).label};
_.E.computeTooltip=function(y,W,V){return V?W:y};
_.E.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.E.computeIconOnHover=function(y,W){if((y==null?0:y.iconType)&&!W)return _.D8(y.iconType)};
_.E.onTap=function(y){var W=this;y.stopPropagation();y.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(y),this.useExpandableTooltip&&(this.toggleDelayJobId=_.q4(_.HU,function(){W.hovered=!1;W.data&&!W.data.toggledServiceEndpoint&&(W.expandAnimationDelayJobId=_.q4(_.HU,function(){W.set("data.isToggled",
!1)},200))},2E3))};
_.E.onMouseenter=function(){var y=this;this.mouseoverDelayJobId=_.q4(_.HU,function(){y.hovered=!0},300)};
_.E.onMouseleave=function(){_.HU.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.E.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.E.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.E.onServiceRequestCompleted=function(y,W){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(W)||this.set("data.isToggled",!this.data.isToggled)};
_.E.serviceRequestWasSuccessful=function(y){return _.h(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.yB)?y.data.status==="STATUS_SUCCEEDED":!0};
a5.prototype.onServiceRequestCompleted=a5.prototype.onServiceRequestCompleted;a5.prototype.onPopupClosed=a5.prototype.onPopupClosed;a5.prototype.onPopupOpened=a5.prototype.onPopupOpened;a5.prototype.onMouseleave=a5.prototype.onMouseleave;a5.prototype.dataChanged=a5.prototype.dataChanged;_.J([_.m(_.bd),_.R("design:type",Object)],a5.prototype,"ironButtonState",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],a5.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],a5.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],a5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.R("design:type",Object)],a5.prototype,"ariaLabel",void 0);_.J([_.q(),_.R("design:type",Object)],a5.prototype,"disableTooltips",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],a5.prototype,"popupOpen",void 0);_.J([_.q(),_.R("design:type",Object)],a5.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Element)],a5.prototype,"eventSink",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a5.prototype,"useExpandableTooltip",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.R("design:type",Object)],a5.prototype,"toggled",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a5.prototype,"hovered",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.R("design:type",Object)],a5.prototype,"iconOnHover",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a5.prototype,"dataChanged",null);
_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a5.prototype,"onMouseleave",null);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a5.prototype,"onPopupOpened",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a5.prototype,"onPopupClosed",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],a5.prototype,"onServiceRequestCompleted",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],a5);
_.Y(a5,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(GLq!==void 0)return GLq;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return GLq=y},{mode:_.qM("kevlar_poly_si_batch_j053")?1:2});var rws;var bPf=_.eY(function(y){var W=y.data;var V=y.thumbnailSize;var w=function(){return W().enableSegmentView};
return _.O("yt-thumbnail-overlay-progress-bar-view-model",{class:_.kS("ytThumbnailOverlayProgressBarHost",function(){return UyG(V==null?void 0:V())})},_.O(_.v,{cond:w,
then:function(){return _.O("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.O("div",{class:_.sU("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+W().startPercent+"%"}}),_.O("div",{class:_.sU("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+W().segmentDurationPercent+"%"}},_.O("div",{class:_.sU("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.O("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.O("div",null," ",function(){return W().segmentLabel})),_.O("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.O("div",{class:_.sU("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.O(_.v,{cond:function(){return!w()&&W().startPercent},
then:function(){var t={};return _.O("div",{class:_.sU("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(t.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.e("web_enable_modern_progress_bar_overlay"),t))},_.O("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+W().startPercent+"%"}}))}}))},"T");
bPf.idomCompat=!0;var QMQ=_.eY(function(y){var W=_.D1(),V=_.tn(function(t){var F,I,P;a:{var C=(F=y.data())==null?void 0:F.animationActivationTargetId;F=((I=y.data())==null?void 0:I.animationActivationEntityKey)||"";I=(P=y.data())==null?void 0:P.animationActivationEntitySelectorType;if(F&&C)switch(I){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":t=_.UB(t.entities,"playerStateEntity",F);P=_.hs().resolve(_.eX(_.VH));C=!!(t&&t.videoId===C&&(P==null?0:P.isMiniplayerActive()));C={activated:C,playAnimation:C&&
t.playerState==="PLAYER_STATE_PLAYING"};break a}C=void 0}return C});
_.H1(function(){var t;if((t=V())==null?0:t.activated){var F;if((F=V())==null?0:F.playAnimation){var I;(I=W.lottieEl)==null||I.goToAndPlay(0)}else{var P;(P=W.lottieEl)==null||P.goToAndStop(0)}}},"MDTl2e");
var w=function(){var t,F=!((t=V())==null||!t.activated);if(y.data()){t=y.data();var I=void 0;t.icon&&(I=_.VGv(t.icon),I=gaP(I));var P=void 0,C;if((C=t.backgroundColor)==null?0:C.lightTheme){var d;P={backgroundColor:tc((d=t.backgroundColor)==null?void 0:d.lightTheme,"0.8")}}if(t.text||I||F){if(F&&t.lottieData&&W){d=t.lottieData;var L,z,c;C={animationConfig:{name:d.url,path:d.url,autoplay:(L=d.settings)==null?void 0:L.autoplay,loop:(c=(z=d.settings)==null?void 0:z.loop)!=null?c:!0},animationRef:W}}else C=
void 0;if(F)L=16;else b:switch(t.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":L=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":L=18;break b;default:L=16}F={type:L,text:F&&t.animatedText?t.animatedText:t.text,icon:I,customColors:P,animation:C}}else F=void 0}else F=void 0;return F};
return _.O("yt-thumbnail-badge-view-model",{class:_.kS("yt-thumbnail-badge-view-model-wiz",y.class)},_.O(_.v,{cond:w,then:function(){return _.O(_.yF,{data:function(){return w()}})}}))},"U");var ZPK=_.eY(function(y){var W={},V={};return _.O("yt-thumbnail-bottom-overlay-view-model",{class:_.kS("ytThumbnailBottomOverlayViewModelHost",(W.ytThumbnailBottomOverlayViewModelHostBackground=function(){return y.data().enableGradientBackground},W))},_.O(_.Q7,{data:function(){return y.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(w){return _.O(bPf,{data:w.data,
thumbnailSize:y.thumbnailSize})}}),_.O("div",{class:_.kS("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var w;
return uAd((w=y.thumbnailSize)==null?void 0:w.call(y))},(V.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var w;
return(w=y.isClip)==null?void 0:w.call(y)},V.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var w;
return!_.e("web_enable_modern_progress_bar_overlay")&&((w=y.thumbnailSize)==null?void 0:w.call(y))==="small"},V))},_.O(_.Q7,{data:function(){return y.data().badge}},{thumbnailBadgeViewModel:function(w){return _.O(QMQ,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.O(_.Q7,{data:function(){return y.data().badges}},{thumbnailBadgeViewModel:function(w){return _.O(QMQ,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"V");
ZPK.idomCompat=!0;_.iF(ZPK,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.p5,thumbnailSize:_.p5,isClip:_.p5}});var Jwa={calledOnce:!1,state:"visible"},Rvy={calledOnce:!1,state:"hidden"};var Gh=_.eY(function(y){var W=y.data;var V=y.className;y=y.alwaysShow;var w=_.lWd(),t={};return _.O("thumbnail-hover-overlay-view-model",{el:_.hl(_.FW(function(){return W().rendererContext})),
class:_.kS("ytThumbnailHoverOverlayViewModelHost",V,(t.ytThumbnailHoverOverlayViewModelHostForceHover=y,t)),"aria-label":function(){var F;return(F=_.h(W().rendererContext,_.Bq))==null?void 0:F.label},
role:function(){return _.w7(W().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.w7(W().rendererContext)!==void 0?0:void 0},
"on:keypress":w},_.O("div",{class:_.kS("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(W().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var F="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:F="ytThumbnailHoverOverlayViewModelStyleCover"}return F})},_.O(_.v,{cond:function(){return W().icon},
then:function(F){return _.O(_.ca,{data:F,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.O(_.v,{cond:function(){return W().text},
then:function(F){return _.O(_.Lv,{text:F,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"W");
Gh.idomCompat=!0;var yhA=_.eY(function(y){var W=y.data;return _.O(_.Q7,{data:function(){return W==null?void 0:W().overlays}},{thumbnailHoverOverlayViewModel:Gh})},"X");
yhA.idomCompat=!0;var WDs={};var Vqi=_.eY(function(y){var W=y.data;var V=y.image;var w=y.state;var t=y.iconType;var F=y.overlays;var I=y.isOverlay;var P=_.gS("div");y=_.N(_.M1(!0,void 0,"sUzEZ"));var C=y.next().value,d=y.next().value,L=function(){return!!W().onTap},z=_.LD(t,"LIVE");
_.H1(function(){var K=W();requestAnimationFrame(function(){if(P.value===null)var f=!0;else{var U=P.value;f=K.badgeText;var l=nMz(K.size);f in WDs?U=WDs[f]:(U=U.clientWidth,WDs[f]=U);(f=U>l)?P.value.style.display="none":P.value.style.visibility="visible"}d(f)})},"SpVcNb");
var c=function(){var K={};return K["yt-spec-avatar-shape__image"]=!0,K["yt-spec-avatar-shape__image--ads-app"]=W().type===1,K};
return _.O("yt-avatar-shape",null,_.O("div",{el:_.hl(XoG(L,{keydown:function(K){if(K.key==="Enter"){var f;(f=K.currentTarget)==null||f.click()}},
click:function(K){var f,U;return void((U=(f=W()).onTap)==null?void 0:U.call(f,K))}})),
class:function(){var K={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},f=W();K=(K[f.clusterLayoutConfig?rwR(f.clusterLayoutConfig):bPL(f.size)]=!0,K["yt-spec-avatar-shape__button--tappable"]=L(),K);(f=W().avatarButtonCustomClassName)&&(K[f]=!0);return _.sU(K)},
"aria-label":function(){return L()?W().accessibilityText:""},
role:function(){return L()?"button":void 0},
tabindex:function(){return L()?0:void 0}},_.O("div",{class:function(){var K,f=W(),U=w==null?void 0:w(),l=I==null?void 0:I(),x=!((K=f.decorations)==null||!K.includes(2)||f.size!=="medium"&&f.size!=="large"),B=f.size==="tiny"||f.size==="extra-small",r,H,a,b,Fv={};
K=(Fv["yt-spec-avatar-shape--live-ring"]=!!(((r=f.decorations)==null?0:r.includes(0))&&ZPj(f.size)),Fv["yt-spec-avatar-shape--stories-watched"]=x&&!(U==null||!U.storiesWatched),Fv["yt-spec-avatar-shape--stories-unwatched"]=x&&!(U==null?0:U.storiesWatched),Fv["yt-spec-avatar-shape--background-border"]=yhv(f.decorations)&&!B,Fv["yt-spec-avatar-shape--background-border-thin"]=yhv(f.decorations)&&B,Fv["yt-spec-avatar-shape__on-select-border"]=!((H=f.decorations)==null||!H.includes(4)),Fv["yt-spec-avatar-shape__white-border"]=
!((a=f.decorations)==null||!a.includes(5)),Fv["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((b=f.decorations)==null?0:b.includes(5))&&B),Fv["yt-spec-avatar-shape--is-overlay"]=!!l,Fv);return _.sU(K)},
style:function(){a:{var K=W().clusterLayoutConfig;if(K){b:{var f=K.numAvatarsInCluster;var U=K.avatarIndex;if(U!==f-1){switch(K.clusterSize){case "small":K="32";break;case "medium":K="36";break;case "40":K="40";break;default:f=void 0;break b}f="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+K+"x"+K+"_avatars_"+f+"_index_"+U+".svg"}else f=void 0}if(f){f=_.Rd({"-webkit-mask-image":"url("+f+")","mask-image":"url("+f+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}f=void 0}return f}},_.O("div",{class:function(){var K={};
var f=W();K=(K[f.clusterLayoutConfig?aWu(f.clusterLayoutConfig):GLd(f.size)]=!0,K["yt-spec-avatar-shape--no-margin"]=yhv(W().decorations),K);return _.sU(K)}},_.O(_.ca,{data:V,
alt:function(){return!L()&&W().accessibilityText?W().accessibilityText:""},
targetWidth:function(){return QM4(W().size)},
targetHeight:function(){return QM4(W().size)},
className:function(){return _.sU(c())}}),_.O(_.v,{cond:function(){var K;
return((K=W().decorations)==null?void 0:K.includes(0))&&ZPj(W().size)},
then:function(){return _.O("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape__live-badge"]=!0,K["yt-spec-avatar-shape__live-badge--badge-small"]=W().size==="small",K["yt-spec-avatar-shape__live-badge--badge-medium"]=W().size==="medium"||W().size==="48",K["yt-spec-avatar-shape__live-badge--badge-large"]=W().size==="large",K["yt-spec-avatar-shape__live-badge--badge-extra-large"]=W().size==="extra-large"||W().size==="extra-extra-large"||W().size==="giant",K);return _.sU(K)}},_.O(_.v,{cond:function(){return W().badgeText},
then:function(K){return _.O("div",{class:"yt-spec-avatar-shape__badge-text",el:P},K)}}),_.O(_.v,{cond:C,
then:function(){return _.O("div",{class:"yt-spec-avatar-shape__badge-icon"},_.O(_.jl,{icon:z,size:function(){a:switch(W().size){case "extra-large":var K=16;break a;default:K=13}return K}}))}}))}}),_.O(_.v,{cond:function(){var K,f;
return((K=W().decorations)==null?void 0:K.includes(1))||((f=W().decorations)==null?void 0:f.includes(0))&&!ZPj(W().size)},
then:function(){return _.O("div",{class:function(){var K=W(),f,U,l={};var x=(l["yt-spec-avatar-shape__live-dot"]=!((f=K.decorations)==null||!f.includes(0)||ZPj(K.size)),l["yt-spec-avatar-shape__new-content"]=!((U=K.decorations)==null||!U.includes(1)),l);return _.sU(x)}})}}),_.O(_.v,{cond:function(){return!!F},
then:function(){return _.O("div",{class:function(){var K={};K=Object.assign((K["yt-spec-avatar-shape__image-overlays"]=!0,K),c());return _.sU(K)}},F==null?void 0:F())}})))))},"Y");
Vqi.idomCompat={callbacks:{overlays:!0}};_.ra=_.eY(function(y){function W(){V().endpoint&&_.Id(V().endpoint)}
var V=y.data;var w=y.decorations;var t=y.avatarButtonCustomClassName;var F=y.isOverlay;var I=y.clusterLayoutConfig;return _.O("avatar-view-model",null,_.O(_.v,{cond:function(){return V().image},
then:function(P){return _.O(Vqi,{data:function(){return Vqb({data:V(),onTap:V().endpoint?W:void 0,decorations:w==null?void 0:w(),badgeText:void 0,accessibilityText:V().accessibilityText,avatarButtonCustomClassName:t==null?void 0:t(),clusterLayoutConfig:I==null?void 0:I()})},
image:P,iconType:"RADAR_LIVE",overlays:function(){return _.O(yhA,{data:V})},
isOverlay:F})}}))},"Z");
_.ra.idomCompat=!0;_.bV=_.eY(function(y){var W=y.data;y=y.className;var V=_.gS("yt-decorated-avatar-view-model"),w=function(){return _.h(W().avatar,_.EZ)},t=_.DZ(function(){var F,I=W(),P=w(),C=_.w7(W().rendererContext),d=(F=V.value)!=null?F:void 0,L;
if(P){d={data:I,avatar:P,onTap:C,element:d};F=d.data;I=d.avatar;P=d.onTap;C=d.element;d=d.commandController;P=P?EDj(P,C,d):void 0;C=[];F.liveData&&C.push(0);var z;d=(z=F.liveData)==null?void 0:z.liveBadgeText;z=(L=_.h(F.rendererContext,_.Bq))==null?void 0:L.label;L=Vqb({data:I,onTap:P,decorations:C,badgeText:d,accessibilityText:z?z:F.a11yLabel})}else L={size:"medium"};return L},void 0,"H8tk9d");
return _.O("yt-decorated-avatar-view-model",{class:_.kS("yt-decorated-avatar-view-model-wiz",y),el:V},_.O(_.v,{cond:function(){var F;return(F=w())==null?void 0:F.image},
then:function(F){return _.O(Vqi,{data:t,image:F,iconType:"RADAR_LIVE",overlays:function(){return _.O(yhA,{data:w})}})}}))},"$");
_.bV.idomCompat=!0;_.QF=_.eY(function(y){var W=function(){var P;return Object.assign({},y.data(),(P=y.overrides)==null?void 0:P.call(y))},V=function(){return _.tO(W().rendererContext)},w=function(){var P=W().avatars,C,d;
return(d=(C=(P==null?0:P[0])?_.h(P[0],_.EZ):void 0)==null?void 0:C.avatarImageSize)!=null?d:"AVATAR_SIZE_UNKNOWN"},t=function(){return FDG(W())},F=function(){if(W().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var P=void 0;
else if((P=y.decorations)==null?0:P.call(y))P=y.decorations();else{P=W();var C=0;P.avatars&&(C+=P.avatars.length);P.decoratedText&&(C+=1);P=C>1?[3]:[]}return P},I={};
return _.O("yt-avatar-stack-view-model",{el:_.hl(_.FW(function(){return W().rendererContext})),
class:_.kS("yt-avatar-stack-view-model-wiz",y.className,(I["yt-avatar-stack-view-model-wiz--tappable"]=V,I["yt-avatar-stack-view-model-wiz--is-overlay"]=y.isOverlay,I["yt-avatar-stack-view-model-wiz--medium-text"]=y.useMediumText,I)),tabindex:function(){return V()?0:void 0},
role:function(){return V()?"link":void 0},
"aria-label":function(){var P,C;return(C=(P=_.h(W().rendererContext,_.Bq))==null?void 0:P.label)!=null?C:""}},_.O(_.v,{cond:function(){var P;
return W().avatars&&!((P=y.hideAvatar)==null?0:P.call(y))},
then:function(){return _.O("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.O(_.v,{cond:function(){return W().decoratedText},
then:function(P){var C={};return _.O("div",{class:_.kS("yt-avatar-stack-view-model-wiz__text-container",(C["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS"},C["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var d;
return((d=y.isOverlay)==null?void 0:d.call(y))&&(w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS")},C)),
style:_.Rd({width:function(){return t().avatarSizeInPx+"px"},
height:function(){return t().avatarSizeInPx+"px"}})},_.O(_.Lv,{text:P,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.O("div",{style:function(){return _.Rd(t().avatarStackStyle)()},
class:function(){return t().avatarStackClass}},_.O(_.Q7,{data:function(){return t().avatars.reverse()}},{avatarViewModel:function(P,C){return _.O("div",{style:function(){var d,L;
return _.Rd((L=(d=t()).avatarStyle)==null?void 0:L.call(d,C()))()},
class:function(){return t().avatarClass}},_.O(_.ra,{data:P.data,
decorations:F,avatarButtonCustomClassName:function(){return t().avatarButtonCustomClassName},
isOverlay:y.isOverlay,clusterLayoutConfig:function(){var d,L;return(L=(d=t()).clusterLayoutConfig)==null?void 0:L.call(d,C())}}))},
decoratedAvatarViewModel:function(P,C){return _.O("div",{style:function(){var d,L;return _.Rd((L=(d=t()).avatarStyle)==null?void 0:L.call(d,C()))()},
class:function(){return t().avatarClass}},_.O(_.bV,{data:P.data}))}})))}}),_.O(_.v,{cond:function(){return W().text},
then:function(P){return _.O(_.Lv,{text:P,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"aa");
_.QF.idomCompat=!0;_.iF(_.eY(function(y){var W=y.data;var V=y.thumbnailSize;return _.O("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.O("div",{class:_.kS("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Nvt(V==null?void 0:V())})},_.O(_.Q7,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(w){return _.O(_.QF,{data:w.data,
decorations:[5]})}})))},"ba"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.vB,
thumbnailSize:_.vB}});var wII=_.eY(function(y){y=_.zb(y,{hidden:!1});var W=y.data;return _.O("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:y.hidden},_.O(_.Lv,{text:function(){return W().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.O(_.v,{cond:function(){return W().subtitle},
then:function(){return _.O(_.Lv,{text:function(){return W().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ca");
wII.idomCompat=!0;_.iF(wII,"yt-thumbnail-overlay-title-view-model",{props:{data:_.vB,hidden:_.vB}});var tqq=_.eY(function(y){y=_.zb(y,{isClip:!1});var W=y.data,V=y.thumbnailSize,w={};return _.O("yt-thumbnail-overlay-badge-view-model",{class:_.kS("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(W().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var t="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:t="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return t},function(){return ILa(V==null?void 0:V())},(w["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
y.isClip,w))},_.O(_.Q7,{data:function(){return W().thumbnailBadges}},{thumbnailBadgeViewModel:function(t){return _.O(QMQ,{data:t.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"da");
tqq.idomCompat=!0;_.iF(tqq,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.vB,thumbnailSize:_.vB,isClip:_.vB}});_.zY(gDn);_.Sl(gDn,"yt-page-indicator-view-model",{propNames:["data"]});var Zu=function(){var y=_.u.apply(this,arguments)||this;y.eventSink=function(){return y};
y.disableInteraction=!1;y.noRoundedCorners=!1;y.isPreviewLoading=!1;y.isOriginalAspectRatio=!1;y.computedObjectFit=!1;y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return y};
_.p(Zu,_.u);_.E=Zu.prototype;
_.E.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:_.e("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"}}};
_.E.onImageLoaded=function(){this.loaded=!0};
_.E.onImageUnloaded=function(){this.loaded=!1};
_.E.computeRichThumbnail=function(y,W,V,w){if(y&&W&&!w&&!_.e("disable_moving_thumbs_handling")&&!V)return W};
_.E.computeImageWidth=function(y,W){return W||9999};
_.E.computeIsOriginalAspectRatio=function(y){return y};
_.E.computeIsLive=function(y){if(y==null?0:y.badges)for(var W=0;W<y.badges.length;W++){var V=y.badges[W];if(V.metadataBadgeRenderer&&V.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(y==null?0:y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(V=y.thumbnailOverlays[W],V.thumbnailOverlayTimeStatusRenderer&&V.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.E.computeObjectFit=function(y,W){return W||(y?"CONTAIN":"")};
_.E.computeNavigationEndpoint=function(y,W,V){return y?W:V};
_.E.computeHasClip=function(y){y=_.N(y||[]);for(var W=y.next();!W.done;W=y.next())if(W.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.E.computeOverlayColor=function(y){var W;return(y==null?0:(W=y.darkColorPalette)==null?0:W.section2Color)?y.darkColorPalette.section2Color:y==null?void 0:y.sampledThumbnailColor};
_.CM.Object.defineProperties(Zu.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return lM4(this.width)}}});
Zu.prototype.onImageUnloaded=Zu.prototype.onImageUnloaded;Zu.prototype.onImageLoaded=Zu.prototype.onImageLoaded;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Zu.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zu.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(YII),_.R("design:type",Object)],Zu.prototype,"ytdThumbnailBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Zu.prototype,"componentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Zu.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zu.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zu.prototype,"circular",void 0);
_.J([_.q({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.R("design:type",Object)],Zu.prototype,"richThumbnail",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.R("design:type",Boolean)],Zu.prototype,"hasClip",void 0);_.J([_.q(),_.R("design:type",Object)],Zu.prototype,"eventSink",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Zu.prototype,"queued",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zu.prototype,"richGridThumbnail",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zu.prototype,"useExpandableTooltip",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zu.prototype,"useUntranslatedNavigationEndpoint",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Zu.prototype,"disableInteraction",void 0);
_.J([_.q({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.R("design:type",Object)],Zu.prototype,"computedNavigationEndpoint",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Zu.prototype,"nowPlayingEqualizerOnly",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Zu.prototype,"hidePlaybackStatus",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],Zu.prototype,"objectFit",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Zu.prototype,"noRoundedCorners",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zu.prototype,"watchFeedThumbnail",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Zu.prototype,"isPreviewLoading",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.R("design:type",Object)],Zu.prototype,"isOriginalAspectRatio",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.R("design:type",Object)],Zu.prototype,"computedObjectFit",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.R("design:type",Boolean)],Zu.prototype,"isLiveVideo",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Zu.prototype,"loaded",void 0);_.J([_.q({computed:"computeOverlayColor(data.thumbnail)"}),_.R("design:type",Object)],Zu.prototype,"overlayColor",void 0);_.J([_.q({selector:_.Mnv}),_.R("design:type",Boolean)],Zu.prototype,"inlinePreviewIsEnabled",void 0);_.J([_.q(),_.R("design:type",Number)],Zu.prototype,"width",void 0);
_.J([_.M("inlinePreviewIsEnabled"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zu.prototype,"isPreviewDisabled",null);_.J([_.M("width"),_.R("design:type",String),_.R("design:paramtypes",[])],Zu.prototype,"thumbnailSize",null);_.J([_.l6("image-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zu.prototype,"onImageLoaded",null);
_.J([_.l6("image-unloaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zu.prototype,"onImageUnloaded",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-thumbnail"})],Zu);
var FDR=_.MM()(Zu,"ytd-thumbnail",function(){if(rws===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);rws=y}y=rws;return y},{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 vDt=function(y){var W=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14786_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14786_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(V){EDK(W,V)};
this.onLockupMouseLeaveFn=function(V){V=V.relatedTarget;var w,t;((w=document.getElementsByTagName("ytd-video-preview"))==null?0:(t=w.item(0))==null?0:t.contains(V))||(W.terminateVideoPreview(),yw(W))};
this.onThumbnailMouseDownFn=function(){W.terminateVideoPreview();yw(W)};
this.onTouchStart=function(){W.JSC$14786_touched=!0};
this.mediaRenderer=y.mediaRenderer;this.thumbnailElement=y.thumbnailElement;this.lockupElement=y.lockupElement;this.videoPreviewOptsInput=y.videoPreviewOpts;NvI(this);WG(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)):
_.rQ(Error("Lh")):_.rQ(Error("Mh")):ILr(this)},cm=function(y){ILr(y);
var W;(W=y.lockupElement)==null||W.removeEventListener("mouseenter",y.onMouseMoveFn);var V;(V=y.lockupElement)==null||V.removeEventListener("mouseleave",y.onLockupMouseLeaveFn);var w;(w=y.lockupElement)==null||w.removeEventListener("touchstart",y.onTouchStart);var t;(t=y.thumbnailElement)==null||t.removeEventListener("mousedown",y.onThumbnailMouseDownFn);yw(y)},NvI=function(y){y.inlinePreviewIsEnabledForUser=_.dP().getState().ui.inlinePreviewIsEnabled;
y.unsubscribeFromInlinePreviewIsEnabled=_.Y0(_.dP(),_.Mnv,function(W){(y.inlinePreviewIsEnabledForUser=W)||yw(y)});
y.JSC$14786_unsubscribeFromInlinePreviewIsActive=_.Y0(_.dP(),_.mxj,function(W){(y.inlinePreviewIsActive=W)||yw(y)})},ILr=function(y){y.unsubscribeFromInlinePreviewIsEnabled();
y.unsubscribeFromInlinePreviewIsEnabled=function(){};
y.JSC$14786_unsubscribeFromInlinePreviewIsActive();y.JSC$14786_unsubscribeFromInlinePreviewIsActive=function(){}},EDK=function(y,W){W.buttons>0||(W=_.pB("kevlar_lockup_hover_delay",-1),y.JSC$14786_touched&&W>=0?(_.HU.cancelJob(y.videoPreviewJobId),y.videoPreviewJobId=_.q4(_.HU,function(){gD2(y)},W),y.JSC$14786_touched=!1):gD2(y))},obn=function(y){y.videoPreviewJobId=_.q4(_.HU,function(){var W,V,w,t;
return _.g(function(F){if(F.nextAddress==1){if(!WG(y))return F.return();W=y.getVideoPreviewOpts();if(!W)return F.return();W.isAutoplay=!0;return(w=(V=_.Kg(y.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&V[0])?F.yield(V[0],3):F.jumpTo(2)}F.nextAddress!=2&&(w=F.yieldResult===1);w&&Ce4((t=y.mediaRenderer)==null?void 0:t.data);_.B7(F)})})},gD2=function(y){!y.previewTriggered&&WG(y)&&(y.inlinePreviewIsActive&&y.terminateVideoPreview(),y.previewTriggered=!0,y.mediaRenderer.isInlinePreviewTriggered=
!0,_.HU.cancelJob(y.videoPreviewJobId),y.videoPreviewJobId=_.q4(_.HU,function(){var W,V,w,t;
return _.g(function(F){if(F.nextAddress==1){if(!WG(y))return F.return();W=y.getVideoPreviewOpts();return W?(w=(V=_.Kg(y.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&V[0])?F.yield(V[0],3):F.jumpTo(2):F.return()}F.nextAddress!=2&&(w=F.yieldResult===1);w&&Ce4((t=y.mediaRenderer)==null?void 0:t.data);_.B7(F)})}))};
vDt.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var y,W;if((W=(y=this.videoPreviewOptsInput)==null?void 0:y.videoPreviewData)!=null)y=W;else if(y=this.mediaRenderer.data)if(Peb(y))y={inlinePlaybackEndpoint:_.tl(y.inlinePlayerData.onVisible),navigationEndpoint:_.tl(y.onTap),thumbnail:"image"in y?y.image:y.thumbnail,thumbnailOverlays:void 0,accessibilityText:OXP(y)};else if("multipleInlinePlaybackEndpoint"in y){var V=_.h(_.h(y.multipleInlinePlaybackEndpoint,xYR),kFE);if(V!=
null&&V.playerDescriptors){W=[];V=_.N(V.playerDescriptors);for(var w=V.next();!w.done;w=V.next())w=w.value,W.push({inlinePlaybackEndpoint:w.inlinePlaybackEndpoint,navigationEndpoint:w.navigationEndpoint,thumbnail:w.thumbnail,thumbnailOverlays:w.thumbnailOverlays,accessibilityText:OXP(y)});y=W}else y=void 0}else y={inlinePlaybackEndpoint:y.inlinePlaybackEndpoint,navigationEndpoint:y.navigationEndpoint,thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays,accessibilityText:OXP(y)};else y=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:y,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var WG=function(y){var W;if(W=y.inlinePreviewIsEnabledForUser)W=(y=y.mediaRenderer.data)?"inlinePlaybackEndpoint"in y&&y.inlinePlaybackEndpoint||Peb(y)&&y.inlinePlayerData||"multipleInlinePlaybackEndpoint"in y&&y.multipleInlinePlaybackEndpoint?!0:!1:!1;return W};
vDt.prototype.terminateVideoPreview=function(){_.ow(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var yw=function(y){_.HU.cancelJob(y.videoPreviewJobId);y.inlinePreviewIsActive=!1;y.previewTriggered=!1;y.mediaRenderer.isInlinePreviewTriggered=!1};var Pei=_.CF(["#"]),tk=function(){var y=_.u.apply(this,arguments)||this;y.isDisabled=!1;return y};
_.p(tk,_.u);_.E=tk.prototype;_.E.configureRendererStamper=function(){return{"data.menu":kq,"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"}}}};
_.E.attached=function(){this.updateInlinePreviewHoverListeners()};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.getMetadata=function(y){var W=[];if(y.metadataText&&Object.keys(y.metadataText).length>0){var V=this.ytRendererBehavior.getSimpleString(y.metadataText);y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&(V=_.Z1(V,Number(y.upcomingEventData.startTime)));W.push(V)}else y.shortViewCountText&&W.push(this.ytRendererBehavior.getSimpleString(y.shortViewCountText)),y.publishedTimeText&&W.push(this.ytRendererBehavior.getSimpleString(y.publishedTimeText)),y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&
(V=this.ytRendererBehavior.getSimpleString(y.upcomingEventData.upcomingEventText),W.push(_.Z1(V,Number(y.upcomingEventData.startTime))));return W};
_.E.calculateBylineText=function(y){return y.shortBylineText?y.shortBylineText:y.bylineText?y.bylineText:null};
_.E.calculateIsDisabled=function(y){return!!y.isDisabled};
_.E.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y)||_.A_u(Pei)};
_.E.onDetailsTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.e("kevlar_grid_video_renderer_killswitch")?_.h1(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.E.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14791_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:_.i6(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.i6(this.hostElement).querySelector("ytd-thumbnail")})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$14791_inlinePreviewHoverListener)==null||cm(y)};
_.E.computeThumbnailWidth=function(y,W){return W&&W>0?W:y?360:210};
_.E.computeShowChannelThumbnail=function(y,W){var V;return W&&!!(y==null?0:(V=y.channelThumbnailSupportedRenderers)==null?0:V.channelThumbnailWithLinkRenderer)};
_.CM.Object.defineProperties(tk.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$14791_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tk.prototype.dataChanged=tk.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],tk.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],tk.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.gZ),_.R("design:type",Object)],tk.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],tk.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tk.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],tk.prototype,"noEndpoints",void 0);_.J([_.q({computed:"calculateBylineText(data)"}),_.R("design:type",Object)],tk.prototype,"bylineText",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],tk.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],tk.prototype,"isDownloading",void 0);_.J([_.q({reflectToAttribute:!0,value:0}),_.R("design:type",Number)],tk.prototype,"width",void 0);_.J([_.q({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.R("design:type",Object)],tk.prototype,"isDisabled",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tk.prototype,"dataChanged",null);_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tk.prototype,"isHovered",null);_.J([_.k({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],tk);
_.Y(tk,"ytd-grid-video-renderer",function(){if(AwQ!==void 0)return AwQ;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AwQ=y},{mode:_.qM("kevlar_poly_si_batch_j047")?1:2});var CeQ;var FH=function(){var y=_.u.apply(this,arguments)||this;y.roundedContainer=!0;y.skipRoundingTop=!1;y.disableTopPadding=!1;y.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return y};
_.p(FH,_.u);FH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
FH.prototype.onClick=function(y){var W,V=(W=this.data)==null?void 0:W.sourceEndpoint;!_.c5(_.O$(y),this.hostElement,["A".toString()])&&V&&_.h1(this.hostElement,"yt-navigate",{endpoint:V})};
_.CM.Object.defineProperties(FH.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 y;return!((y=this.data)==null||!y.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.paragraphMaxLines)!=null?W:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],FH.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FH.prototype,"showVerticalDividers",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FH.prototype,"roundedContainer",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FH.prototype,"skipRoundingTop",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FH.prototype,"disableTopPadding",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],FH.prototype,"amsterdamEnabled",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],FH.prototype,"showMetadataAtTop",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],FH.prototype,"showMetadataBelowTitle",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],FH.prototype,"hasMenu",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.truncateParagraphs"),_.R("design:type",Object),_.R("design:paramtypes",[])],FH.prototype,"truncateParagraphs",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.paragraphMaxLines"),_.R("design:type",Number),_.R("design:paramtypes",[])],FH.prototype,"paragraphMaxLines",null);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.R("design:type",Object),_.R("design:paramtypes",[])],FH.prototype,"background",null);_.J([_.k({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],FH);
_.Y(FH,"ytd-info-panel-content-renderer",function(){if(CeQ!==void 0)return CeQ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return CeQ=y},{mode:_.qM("kevlar_poly_si_batch_j076")?1:2});var OXJ;var vDI;var dqq;var LDz;var ES=function(){return _.u.apply(this,arguments)||this};
_.p(ES,_.u);ES.prototype.computeStyle=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ES.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],ES.prototype,"style_",void 0);_.J([_.Zp({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],ES);
_.Y(ES,"yt-channel-thumbnail-with-link-renderer",function(){if(LDz===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;dqq===void 0&&(dqq=document.createElement("template"));var w=dqq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);LDz=y}y=LDz;return y},{mode:2});var ND=function(){var y=_.u.apply(this,arguments)||this;y.modernTypography=_.e("web_modern_typography");return y};
_.p(ND,_.u);ND.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"}}}};
ND.prototype.computeTitleStyle=function(y){return y||null};
ND.prototype.computeAvatarStyle=function(y){return y||null};
ND.prototype.computeShowNavigationButton=function(y,W){return!(y==null||!y.navigationButton||W)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ND.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.R("design:type",String)],ND.prototype,"titleStyle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.R("design:type",String)],ND.prototype,"avatarStyle",void 0);_.J([_.q(),_.R("design:type",Boolean)],ND.prototype,"hideNavigationButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],ND.prototype,"isModernSd",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ND.prototype,"modernTypography",void 0);
_.J([_.k({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],ND);
_.Y(ND,"ytd-rich-list-header-renderer",function(){if(vDI!==void 0)return vDI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vDI=y},{mode:_.qM("kevlar_poly_si_batch_j058")?1:2});var Iz=function(){return _.u.apply(this,arguments)||this};
_.p(Iz,_.u);Iz.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]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Iz.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Iz.prototype,"isSearch",void 0);_.J([_.k({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Iz);
_.Y(Iz,"ytd-preview-card-renderer",function(){if(OXJ!==void 0)return OXJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return OXJ=y},{mode:1});var zsI;var gX=function(){return _.u.apply(this,arguments)||this};
_.p(gX,_.u);gX.prototype.configureRendererStamper=function(){return{"data.menu":kq}};
gX.prototype.dataChanged=function(){var y=this.get("colorExtractionPalette.section1Color",this.data);y=_.V2(y);_.qg(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":y})};
gX.prototype.computeCardStyle=function(y){return this.get("style.value",y)||null};
gX.prototype.dataChanged=gX.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],gX.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gX.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.R("design:type",String)],gX.prototype,"cardStyle",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gX.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],gX);
_.Y(gX,"ytd-compact-channel-recommendation-card-renderer",function(){if(zsI!==void 0)return zsI;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return zsI=y},{mode:1});var chA;var esK;var PG=function(){var y=_.u.apply(this,arguments)||this;y.alignAuto=!1;y.collapsed=!0;y.isToggled=!1;y.alwaysCollapsed=!1;y.canToggle=!0;y.collapsedHeight=80;y.disableToggle=!1;y.alwaysToggleable=!1;y.reversed=!1;y.shouldUseNumberOfLines=!1;y.recomputeOnResize=!1;y.canToggleJobId=0;y.lastReversed=!1;return y};
_.p(PG,_.u);_.E=PG.prototype;_.E.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.E.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.E.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var y=_.i6(this.hostElement),W=y.childNodes,V=document.createDocumentFragment(),w=y.childNodes.length-1;w>=0;w--)_.i6(V).appendChild(W[w]);_.e("enable_shadydom_free_scoped_node_methods")?_.f6(this.hostElement).appendChild(V):y.appendChild(V)}};
_.E.ready=function(){var y=this;_.Er(function(){y.initChildrenObserver()},1)};
_.E.detached=function(){this.detachObserver()};
_.E.toggle=function(y,W){this.canToggle&&(this.isToggled=W,_.h1(this.hostElement,"yt-refit"),y&&y.stopPropagation())};
_.E.reset=function(){this.childrenChanged()};
_.E.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.E.computeIsMoreVisible=function(y,W){return y&&!W};
_.E.computeShouldUseNumberOfLines=function(y){try{return!!y&&window.CSS.supports("-webkit-line-clamp","1")}catch(W){}return!1};
_.E.computeIsLessVisible=function(y,W){return y&&W};
_.E.observeCollapsedHeightAndMaxLines=function(){var y=this.collapsedHeight,W=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.qg(this.hostElement,{"--ytd-expander-max-lines":""+W,"--ytd-expander-collapsed-height":""}):_.qg(this.hostElement,{"--ytd-expander-collapsed-height":y+"px","--ytd-expander-max-lines":""})};
_.E.handleMoreTap=function(y){this.disableToggle||(_.h1(this.hostElement,"yt-expander-more-tapped"),this.toggle(y,!0))};
_.E.handleLessTap=function(y){_.h1(this.hostElement,"yt-expander-less-tapped");this.toggle(y,!1)};
_.E.initChildrenObserver=function(){var y=this;this.observer=new MutationObserver(function(){y.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.E.childrenChanged=function(){var y=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){M4(function(){y.canToggleJobId=0;y.calculateCanCollapse()})}))};
_.E.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};
_.E.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.E.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("collapsed-changed",this.collapsed))};
_.E.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("is-toggled-changed",this.isToggled))};
_.E.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("can-toggle-changed",this.canToggle))};
_.CM.Object.defineProperties(PG.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
PG.prototype.canToggleChangedForBinding=PG.prototype.canToggleChangedForBinding;PG.prototype.isToggledChangedForBinding=PG.prototype.isToggledChangedForBinding;PG.prototype.collapsedChangedForBinding=PG.prototype.collapsedChangedForBinding;PG.prototype.observeCollapsedHeightAndMaxLines=PG.prototype.observeCollapsedHeightAndMaxLines;PG.prototype.onIronResize=PG.prototype.onIronResize;PG.prototype.reversedChanged=PG.prototype.reversedChanged;PG.prototype.toggledChanged=PG.prototype.toggledChanged;
PG.prototype.alwaysToggleableChanged=PG.prototype.alwaysToggleableChanged;_.J([_.m(_.Gm),_.R("design:type",Object)],PG.prototype,"ironResizableBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],PG.prototype,"alignAuto",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],PG.prototype,"collapsed",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"isToggled",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"alwaysCollapsed",void 0);
_.J([_.q(),_.R("design:type",Object)],PG.prototype,"canToggle",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"collapsedHeight",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"disableToggle",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"alwaysToggleable",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"reversed",void 0);_.J([_.q(),_.R("design:type",Number)],PG.prototype,"maxNumberOfLines",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.R("design:type",Object)],PG.prototype,"shouldUseNumberOfLines",void 0);_.J([_.q(),_.R("design:type",Object)],PG.prototype,"recomputeOnResize",void 0);_.J([_.s$("#content"),_.R("design:type",HTMLDivElement)],PG.prototype,"content",void 0);_.J([_.Jc("alwaysToggleable"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"alwaysToggleableChanged",null);
_.J([_.Jc("isToggled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"toggledChanged",null);_.J([_.M("canToggleJobId"),_.R("design:type",Object),_.R("design:paramtypes",[])],PG.prototype,"isResetting",null);_.J([_.xA("reversed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"reversedChanged",null);
_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"onIronResize",null);_.J([_.xA("maxNumberOfLines","collapsedHeight"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"observeCollapsedHeightAndMaxLines",null);_.J([_.xA("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"collapsedChangedForBinding",null);
_.J([_.xA("isToggled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"isToggledChangedForBinding",null);_.J([_.xA("canToggle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PG.prototype,"canToggleChangedForBinding",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-expander"})],PG);
_.Y(PG,"ytd-expander",function(){if(esK!==void 0)return esK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return esK=y},{mode:1});var C9=function(){return _.u.apply(this,arguments)||this};
_.p(C9,_.u);C9.prototype.computeIsCarousel=function(y){return!!y.isCarousel};
C9.prototype.observeLightsourcePalette=function(){var y,W=(y=this.data)==null?void 0:y.vibrantsourceColorPaletteData;W&&_.bF(this.hostElement,W)};
C9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
C9.prototype.observeLightsourcePalette=C9.prototype.observeLightsourcePalette;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],C9.prototype,"data",void 0);_.J([_.q({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],C9.prototype,"isCarousel",void 0);
_.J([_.xA("data.vibrantsourceColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C9.prototype,"observeLightsourcePalette",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],C9);
_.Y(C9,"ytd-media-upsell-renderer",function(){if(chA!==void 0)return chA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return chA=y},{mode:2});var hsE;var OS=function(){var y=_.u.apply(this,arguments)||this;y.JSC$14819_playerEvents=new Map;y.listeningToPlayer=!1;y.startX=0;y.active=!1;y.shouldShowButtons=_.e("web_buttons_hidden_killswitch");y.isHighlighted=!1;y.useHighlightStyling=_.e("web_enable_deeper_metadata_highlight_styling");y.modern=_.e("kevlar_modern_sd");y.enableProblemWalkthrough=_.e("problem_walkthrough_sd");return y};
_.p(OS,_.u);_.E=OS.prototype;
_.E.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}}}}}};
_.E.created=function(){this.JSC$14819_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.E.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Dp(this,this.onRepeatButtonToggle));_.e("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Dp(this,this.onActiveUpdate))};
_.E.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Dp(this,this.onRepeatButtonToggle));_.e("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Dp(this,this.onActiveUpdate))};
_.E.onDataChanged=function(){this.removePlayerListeners()};
_.E.onColorPaletteChange=function(){var y={},W;if(_.H9()==="USER_INTERFACE_THEME_DARK"&&((W=this.data)==null?0:W.darkColorPalette)){var V=this.data.darkColorPalette;y["--ytd-macro-markers-list-item-background-color"]=_.wg(this.get("section2Color",V))}else{var w;_.H9()==="USER_INTERFACE_THEME_LIGHT"&&((w=this.data)==null?0:w.lightColorPalette)&&(V=this.data.lightColorPalette,y["--ytd-macro-markers-list-item-background-color"]=_.wg(this.get("section3Color",V)))}V?(y["--ytd-macro-markers-list-item-title-color"]=
_.wg(this.get("primaryTitleColor",V)),y["--ytd-macro-markers-list-item-secondary-color"]=_.wg(this.get("secondaryTitleColor",V)),y["--ytd-macro-markers-list-item-timestamp-background-color"]=_.wg(this.get("section1Color",V)),this.customButtonProperties={customColors:{color:_.wg(this.get("primaryTitleColor",V))}},this.useColorSampling=!0):(y["--ytd-macro-markers-list-item-background-color"]="initial",y["--ytd-macro-markers-list-item-title-color"]="initial",y["--ytd-macro-markers-list-item-secondary-color"]=
"initial",y["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.qg(this.hostElement,y)};
_.E.onEndpointMouseDown=function(y){this.startX=y.clientX};
_.E.onEndpointClick=function(y){var W=this,V,w,t;return _.g(function(F){if(F.nextAddress==1){if(W.startX!==y.clientX)return y.preventDefault(),F.return();W.data&&W.ytRendererBehavior.logExplicitClick(W.data);if(!W.seekWithAnimationOnClick)return F.jumpTo(0);if(y.button!==0||y.shiftKey||y.altKey||y.metaKey||y.ctrlKey||_.c5(_.O$(y),W.hostElement,["BUTTON".toString()]))return F.return();y.stopPropagation();y.preventDefault();return W.data?F.yield(_.pn().getPlayerPromise(),3):F.return()}V=F.yieldResult;
t=(w=_.h(W.data.onTap,_.Iw))==null?void 0:w.startTimeSeconds;t!==void 0&&V.seekToTimeWithAnimation(t*1E3,_.OT(W.data.title));_.B7(F)})};
_.E.computeLayout=function(y){return y};
_.E.computeIsHighlighted=function(y){return!!y};
_.E.computeCarouselType=function(y){return y};
_.E.hideModernCarousel=function(y){return this.modern&&this.hideThumbnail(y)};
_.E.hideThumbnail=function(y){return this.enableProblemWalkthrough&&y!==null&&y==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.E.onRepeatButtonToggle=function(y){var W=this;y.detail.toggled&&_.pn().getPlayerPromise().then(function(V){W.ytPlayerListenerBehavior.listenToPlayerEvents(V,W.JSC$14819_playerEvents);W.listeningToPlayer=!0})};
_.E.onLoopRangeChange=function(y){var W=_.i6(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(W){var V=W.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",W.polymerController.data);if(V){var w=Number(V.endTimeMs);if(Number(V.startTimeMs)!==(y==null?void 0:y.startTimeMs)||w!==(y==null?void 0:y.endTimeMs))W.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.E.removePlayerListeners=function(){var y=this;this.listeningToPlayer&&_.pn().getPlayerPromise().then(function(W){y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(W,y.JSC$14819_playerEvents);y.listeningToPlayer=!1})};
_.E.onActiveUpdate=function(y){this.active=y.detail.active};
OS.prototype.onColorPaletteChange=OS.prototype.onColorPaletteChange;OS.prototype.onDataChanged=OS.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],OS.prototype,"ytPlayerListenerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],OS.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],OS.prototype,"useCustomColors",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],OS.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],OS.prototype,"shouldShowButtons",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.R("design:type",String)],OS.prototype,"layout",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.R("design:type",Object)],OS.prototype,"isHighlighted",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],OS.prototype,"useHighlightStyling",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],OS.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],OS.prototype,"enableProblemWalkthrough",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.R("design:type",String)],OS.prototype,"carouselType",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],OS.prototype,"useColorSampling",void 0);_.J([_.q(),_.R("design:type",Boolean)],OS.prototype,"seekWithAnimationOnClick",void 0);_.J([_.q(),_.R("design:type",Object)],OS.prototype,"customButtonProperties",void 0);
_.J([_.s$("#repeat-button"),_.R("design:type",HTMLElement)],OS.prototype,"repeatButton",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OS.prototype,"onDataChanged",null);_.J([_.xA("data.lightColorPalette","data.darkColorPalette"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OS.prototype,"onColorPaletteChange",null);_.J([_.k({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],OS);
_.Y(OS,"ytd-macro-markers-list-item-renderer",function(){if(hsE!==void 0)return hsE;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hsE=y},{mode:1});var oDR;var KDI;var vG=function(){var y=_.u.apply(this,arguments)||this;y.modernTypography=_.e("web_modern_typography");return y};
_.p(vG,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vG.prototype,"modernTypography",void 0);_.J([_.q(),_.R("design:type",Object)],vG.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],vG);
_.Y(vG,"ytd-title-and-button-list-header-renderer",function(){if(KDI!==void 0)return KDI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return KDI=y},{mode:1});var pIJ;var iXf=new _.e9("BUTTON_RENDERER_WIZ_TOKEN"),fLi=new _.e9("BUTTON_RENDERER_TOKEN");_.dX=_.eY(function(y){var W=_.hs().resolve(_.eX(iXf));if(W)return _.O(W,Object.assign({},y));var V=_.hs().resolve(fLi);return V?_.O(Vy4,null,function(){return _.O(Pl,null,function(){var w,t,F,I,P,C,d,L,z,c,K,f;return void V(y.data(),{onButtonClickCallback:y.onButtonClickCallback,shouldShowIcons:(w=y.shouldShowIcons)==null?void 0:w.call(y),icon:(t=y.icon)==null?void 0:t.call(y),processAllEndpoints:(F=y.processAllEndpoints)==null?void 0:F.call(y),preventDefault:(I=y.preventDefault)==null?void 0:I.call(y),
stopPropagation:(P=y.stopPropagation)==null?void 0:P.call(y),disableButtonRendererClickHandling:(C=y.disableButtonRendererClickHandling)==null?void 0:C.call(y),className:(d=y.className)==null?void 0:d.call(y),buttonOverrides:(L=y.buttonOverrides)==null?void 0:L.call(y),forceModernIconButton:(z=y.forceModernIconButton)==null?void 0:z.call(y),isSubscribe:(c=y.isSubscribe)==null?void 0:c.call(y),alignByText:(K=y.alignByText)==null?void 0:K.call(y),forceDisabled:(f=y.forceDisabled)==null?void 0:f.call(y)})})}):
_.O(_.o8,null)},"ea");
_.dX.idomCompat=!0;var Tv2=_.eY(function(y){var W=y.data,V=_.LD(y.useSquareAspectRatio,!1);return _.O("dismissed-mini-game-card-view-model",null,_.O(_.v,{cond:function(){var w,t;return(w=W().responseText)==null?void 0:(t=w.runs)==null?void 0:t.length},
then:function(){var w={};return _.O("div",{class:_.kS("yt-mini-game-card-view-model__dismissed-card",(w["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!V()},w["yt-mini-game-card-view-model--dismissed-square-card"]=V,w))},_.O("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.O(_.v,{cond:function(){return W().responseText.runs[0].text},
then:function(t){return _.O("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:t},t)}}),_.O(_.Q7,{data:function(){return W().buttons}},{buttonRenderer:_.dX,
buttonViewModel:_.lk})))}}))},"fa");var Dqs=_.eY(function(y){y=_.zb(y,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var W=y.data,V=y.useFullWidth,w=y.isDesktopWeb,t=y.addSearchResultTopMargin,F=function(){return W().layout},I=function(){return W().title},P=function(){return W().metadataText?W().metadataText:W().genre},C=function(){return W().channelName},d=function(){return W().image},L=function(){return W().colorPalette},z=function(){return W().actionButton},c=function(){return W().overflowButton},
K=function(){return W().avatar},f=function(){var B={};
B=_.kS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(B["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return w()},B));
return _.O("div",{class:B},_.O(mqJ,{imageData:d,colorPalette:L}),_.O(Mqi,{onTap:function(){return W().onTap},
imageData:d,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.O(_.v,{cond:function(){return!w()},
then:function(){return _.O(_.o8,null,_.O(qMi,{layout:F,colorPalette:L,isDesktopWeb:w,overflowButton:c,avatar:K,onTap:function(){return W().onTap},
genre:P,title:I,channelName:C}),_.O(UqA,{actionButton:z}))}}))},U=function(){var B={};
B=_.kS((B["yt-mini-game-card-view-model--search-result-desktop"]=function(){return w()},B["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!w()},B["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return t()},B));
return _.O("div",{class:B},f(),_.O(uiK,{description:function(){return W().description},
isDesktopWeb:w,title:I,genre:P,onTap:function(){return W().onTap},
actionButton:z,overflowButton:c,avatar:K,channelName:C}))},l=function(){var B={};
B=_.kS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(B["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return w()},B["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return w()&&W().width===135},B["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return w()},B["yt-mini-game-card-view-model--big-metadata-font"]=function(){return W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},B["yt-mini-game-card-view-model--use-full-width"]=
function(){return V()},B["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!z()},B));
return _.O("div",{class:B},_.O(SMf,{colorPalette:L,isDesktopWeb:w,onTap:function(){return W().onTap},
accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
actionButton:z,imageData:d}),_.O(qMi,{layout:F,colorPalette:L,isDesktopWeb:w,overflowButton:c,avatar:K,onTap:function(){return W().onTap},
genre:P,title:I,channelName:C}))},x=function(){var B={};
B=_.kS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(B["yt-mini-game-card-view-model--square-card-desktop"]=function(){return w()},B["yt-mini-game-card-view-model--use-full-width"]=function(){return V()},B));
return _.O("div",{class:B},_.O(Mqi,{onTap:function(){return W().onTap},
imageData:d,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.O(qMi,{layout:F,colorPalette:L,isDesktopWeb:w,overflowButton:c,avatar:K,onTap:function(){return W().onTap},
genre:P,title:I,channelName:C}))};
return _.O("mini-game-card-view-model",{class:y.className},_.O(_.$V,null,_.O(_.BV,{when:function(){return F()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return l()}),_.O(_.BV,{when:function(){return F()==="MINI_APP_LAYOUT_SQUARE"}},function(){return x()}),_.O(_.BV,{when:function(){return F()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return U()})))},"ga");
Dqs.idomCompat=!0;var UqA=_.eY(function(y){var W=_.LD(y.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.O(_.Q7,{data:y.actionButton},{buttonViewModel:function(V){return _.O("div",{class:W},_.O(_.lk,{data:V.data}))}})},"ha"),Mqi=_.eY(function(y){var W=y.onTap;
var V=y.imageData;var w=y.accessibilityText;var t=y.overlayBadgeText;var F=y.iconName;var I=y.unplayableInlinePlaybackIconName;y=y.isDesktopWeb;return _.O(_.It,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:W},_.O(_.ca,{data:V,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(w==null?void 0:w())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.O(lL6,{overlayBadgeText:t,iconName:F,unplayableInlinePlaybackIconName:I,isDesktopWeb:y}))},"ia"),lL6=_.eY(function(y){var W=y.overlayBadgeText;
var V=y.iconName;var w=y.unplayableInlinePlaybackIconName;var t=y.isDesktopWeb;return _.O("div",{class:"yt-mini-game-card-view-model__badge-container"},_.O(_.v,{cond:V,then:function(F){return _.O("div",{class:"yt-mini-game-card-view-model__badge"},_.O("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.O(_.jl,{icon:F,className:"yt-mini-game-card-view-model__icon",size:12}),_.O("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},W)))}}),_.O(_.v,{cond:function(){return!V()&&
W()},
then:function(){return _.O("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},W)}}),_.O(_.v,{cond:function(){return w()&&t()},
then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.O(_.jl,{icon:w,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ja"),mqJ=_.eY(function(y){var W=y.colorPalette;
var V=y.imageData;var w=function(){return W().vibrantColorPalette?W().vibrantColorPalette.section2Color:W().sectionTwoColor};
return _.O(_.o8,null,_.O("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Rd({"background-color":function(){return tc(w(),"1")}})}),_.O("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Rd({"background-image":function(){return"url("+V().sources[0].url+")"}})}),_.O("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Rd({background:function(){return"linear-gradient(180deg,\n    "+tc(w(),".8")+" 0%,\n    "+tc(w(),".4")+" 25%,\n    "+tc(W().vibrantColorPalette?W().vibrantColorPalette.section4Color:W().sectionFourColor,".8")+" 100%)"}})}))},"ka"),qMi=_.eY(function(y){var W=y.layout;
var V=y.colorPalette;var w=y.overflowButton;var t=y.avatar;var F=y.onTap;var I=y.title;var P=y.channelName;var C=y.genre;var d=function(){var L;return W()!=="MINI_APP_LAYOUT_SQUARE"&&((L=V())==null?0:L.textPrimaryColor)?"color: "+tc(V().textPrimaryColor,".7"):""};
return _.O("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.O(_.v,{cond:t,then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__avatar"},_.O(_.Q7,{data:t},{avatarViewModel:_.ra}))}}),_.O(_.It,{command:F,
className:"yt-mini-game-card-view-model__metadata-details"},_.O("h3",{class:"yt-mini-game-card-view-model__title",title:I},I),_.O(_.v,{cond:t,then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.O("span",{class:"yt-mini-game-card-view-model__genre",title:P,style:d},P),_.O("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:d},C))},
else:function(){return _.O("span",{class:"yt-mini-game-card-view-model__genre",title:C},C)}})),_.O("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.O(_.Q7,{data:w},{buttonViewModel:function(L){var z=L.data;
return _.O(_.lk,{data:function(){return Object.assign({},z(),{customFontColor:W()==="MINI_APP_LAYOUT_SINGLETON"?z().customFontColor:void 0})}})}})))},"la"),SMf=_.eY(function(y){var W=y.colorPalette;
var V=y.isDesktopWeb;var w=y.onTap;var t=y.accessibilityText;var F=y.overlayBadgeText;var I=y.iconName;var P=y.unplayableInlinePlaybackIconName;var C=y.actionButton;y=y.imageData;return _.O("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.O(mqJ,{imageData:y,colorPalette:W}),_.O(Mqi,{onTap:w,imageData:y,accessibilityText:t,overlayBadgeText:F,iconName:I,unplayableInlinePlaybackIconName:P,isDesktopWeb:V}),_.O(_.v,{cond:function(){return C==null?void 0:C()},
then:function(){return _.O(UqA,{actionButton:C})}}))},"ma"),uiK=_.eY(function(y){var W=y.description;
var V=y.isDesktopWeb;var w=y.title;var t=y.genre;var F=y.onTap;var I=y.actionButton;var P=y.overflowButton;var C=y.avatar;y=y.channelName;var d={};d=_.kS("yt-mini-game-card-view-model--search-result-metadata-wrapper",(d["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=V,d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=V,d["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!V()},d));
var L={};L=_.kS("yt-mini-game-card-view-model__search-result-info-row",(L["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!V()},L));
return _.O("div",{class:d},_.O("div",{class:L},_.O(_.It,{command:F,className:"yt-mini-game-card-view-model__metadata-details"},_.O("h3",{class:"yt-mini-game-card-view-model__title",title:w},w),_.O("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)),_.O(UqA,{actionButton:I,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.O("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.O(_.Q7,{data:P},{buttonViewModel:_.lk}))),_.O("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.O("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.O("div",{class:"yt-mini-game-card-view-model__avatar"},_.O(_.Q7,{data:C},{avatarViewModel:function(z){var c=z.data;return _.O(_.ra,{data:function(){return Object.assign({},c(),{avatarImageSize:V()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.O(_.It,{command:F,
className:"yt-mini-game-card-view-model__description"},_.O("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},y)),_.O(_.It,{command:F,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.O("div",null)))),_.O(_.v,{cond:V,then:function(){return _.O(_.It,{command:F,className:"yt-mini-game-card-view-model__description"},W)}}))},"na");_.iF(Dqs,"mini-game-card-view-model",{props:{data:_.vB,className:_.vB,useFullWidth:_.vB,isDesktopWeb:_.vB,addSearchResultTopMargin:_.vB}});_.iF(Tv2,"dismissed-mini-game-card-view-model",{props:{data:_.vB,useSquareAspectRatio:_.vB}});var L9=function(){var y=_.u.apply(this,arguments)||this;y.isSearch=!1;y.isRichGrid=!1;return y};
_.p(L9,_.u);_.E=L9.prototype;_.E.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.E.dismissibleItemOnYtServiceRequestSent=function(y,W){W.actions&&this.dismissibleItemProcessActions(y,W.actions)};
_.E.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.E.dataChanged=function(){this.dismissibleItemReset()};
_.E.dismissibleItemProcessActions=function(y,W){for(var V=0;V<W.length;V++){var w=W[V];_.h(w,_.Rx)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.h(w,_.Rx)),y.stopPropagation())}};
_.E.dismissibleItemHandleReplaceEnclosingAction=function(y){this.dismissedRenderer=y.item;this.isDismissed=!0};
_.CM.Object.defineProperties(L9.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var y;return!!this.data&&!((y=this.dismissedRenderer)==null?0:y.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.dismissedRenderer)==null||!y.notificationMultiActionRenderer)}}});
L9.prototype.dataChanged=L9.prototype.dataChanged;L9.prototype.dismissibleItemOnRequestSent=L9.prototype.dismissibleItemOnRequestSent;L9.prototype.dismissibleItemOnYtServiceRequestSent=L9.prototype.dismissibleItemOnYtServiceRequestSent;_.J([_.q(),_.R("design:type",Object)],L9.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],L9.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],L9.prototype,"isDismissed",void 0);
_.J([_.q(),_.R("design:type",Object)],L9.prototype,"dismissedRenderer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],L9.prototype,"isRichGrid",void 0);_.J([_.M("data.layout"),_.R("design:type",Object),_.R("design:paramtypes",[])],L9.prototype,"useSquareAspectRatio",null);_.J([_.M("data","dismissedRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],L9.prototype,"showCard",null);
_.J([_.M("data","dismissedRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],L9.prototype,"showDismissed",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],L9.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],L9.prototype,"dismissibleItemOnRequestSent",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L9.prototype,"dataChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],L9);
_.Y(L9,"ytd-mini-game-card-view-model",function(){if(pIJ!==void 0)return pIJ;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return pIJ=y},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var xqA;var kV6;var zX=function(){return _.O0.apply(this,arguments)||this};
_.p(zX,_.O0);zX.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
zX.prototype.getContinuationUrl=function(y){var W={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.O1(y,W)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zX.prototype,"data",void 0);_.J([_.Zp({is:"yt-reload-continuation",noInjection:!0})],zX);var sH6;var AhK;var cG=function(){var y=_.u.apply(this,arguments)||this;y.notificationData={};return y};
_.p(cG,_.u);_.E=cG.prototype;_.E.isMenuExpanded=function(y){return y&&y.length<=1?"undefined":"false"};
_.E.dataChanged_=function(){this.selected=void 0;var y=this.computeSelectedIndex_(this.data);y>=0&&(this.selected=y);y=this.data&&this.data.length>1;_.TA(this.hostElement,"has-items",y);_.i6(this.hostElement).querySelector("#label").tabIndex=y?0:-1};
_.E.onDropdownOpen=function(){var y=_.Xn();if(this.parentTrackingParams&&this.data){var W=_.nD(this.parentTrackingParams);this.data.forEach(function(V){y&&W&&V.trackingParams&&(V=_.nD(V.trackingParams),_.Fr(y,W,V),_.IB(y,[V]))})}else this.parentTrackingParams||_.rQ(new _.Js("No parent tracking params passed in for yt-dropdown-menu."))};
_.E.hasNotification=function(y){var W;if(y.targetId&&((W=this.notificationData)==null?0:W.targetId)){var V;return y.targetId===((V=this.notificationData)==null?void 0:V.targetId)}};
_.E.computeSelectedIndex_=function(y){if(y)for(var W=0,V=y.length;W<V;W++)if(y[W].selected)return W;return-1};
_.E.computeLabel_=function(y){return this.data&&y!=void 0?this.data[y].title:""};
_.E.computeShowIcon_=function(y,W){return!W&&!!y};
_.E.computeVerticalOffset_=function(y){return y?36:0};
_.E.computeEndpoint_=function(y){return y.endpoint||y.navigationEndpoint};
_.E.onLabelClick_=function(y){this.data&&this.data.length<=1?y.stopPropagation():this.menuExpanded="true"};
_.E.onIronActivate_=function(y){y=y.detail.item;var W=_.i6(this.hostElement).querySelector("#repeat").itemForElement(y);if(W&&W.trackingParams){var V=_.Xn(),w=_.nD(W.trackingParams);V&&_.PE(V,w)}if(W&&W.serviceEndpoint)_.e("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(W.serviceEndpoint):_.i5(this.hostElement,[W.serviceEndpoint]),_.h1(this.hostElement,"yt-playlist-reloading");else a:{if((W=y.querySelector("yt-supported-renderers"))&&
(W=W.rendererElement)&&W.is=="yt-reload-continuation"){W.trigger();break a}(y=y.querySelector("yt-reload-continuation"))&&y.trigger()}};
_.E.onTap_=function(y){y.preventDefault()};
_.E.onItemTap_=function(y){this.ytEndpointBehavior.onEndpointTap_(y)};
_.E.onLinkFocus_=function(y){try{var W=y.target}catch(w){}if(W){var V=W.querySelector("tp-yt-paper-item");V&&_.NM(this,"focus",function(){V.focus()})}};
_.E.onMenuClose_=function(){this.menuExpanded="false"};
_.E.isLabelIconActive_=function(y){return y==="true"};
_.E.computeHasSubtitle_=function(y){return!!y};
_.E.computeHrefForItem_=function(y){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(y))};
_.E.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
_.CM.Object.defineProperties(cG.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
cG.prototype.onMenuClose_=cG.prototype.onMenuClose_;cG.prototype.onTap_=cG.prototype.onTap_;cG.prototype.onIronActivate_=cG.prototype.onIronActivate_;cG.prototype.onDropdownOpen=cG.prototype.onDropdownOpen;cG.prototype.dataChanged_=cG.prototype.dataChanged_;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cG.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],cG.prototype,"ytEndpointBehavior",void 0);
_.J([_.q(),_.R("design:type",Array)],cG.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],cG.prototype,"parentTrackingParams",void 0);_.J([_.q(),_.R("design:type",Object)],cG.prototype,"selected",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],cG.prototype,"useLabel",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],cG.prototype,"useComputedAriaLabel",void 0);_.J([_.q(),_.R("design:type",String)],cG.prototype,"icon",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],cG.prototype,"iconLabel",void 0);_.J([_.q(),_.R("design:type",String)],cG.prototype,"ariaLabel",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],cG.prototype,"disabled",void 0);_.J([_.q({computed:"isMenuExpanded(data)"}),_.R("design:type",String)],cG.prototype,"menuExpanded",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],cG.prototype,"closeOnActivate",void 0);
_.J([_.q({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.R("design:type",Boolean)],cG.prototype,"modernButtons",void 0);_.J([_.q(),_.R("design:type",Object)],cG.prototype,"notificationData",void 0);_.J([_.M("ariaLabel, selected"),_.q(),_.R("design:type",String),_.R("design:paramtypes",[])],cG.prototype,"computedAriaLabel",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cG.prototype,"dataChanged_",null);
_.J([_.l6("paper-dropdown-open"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],cG.prototype,"onDropdownOpen",null);_.J([_.l6("iron-activate"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],cG.prototype,"onIronActivate_",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cG.prototype,"onTap_",null);
_.J([_.l6("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],cG.prototype,"onMenuClose_",null);_.J([_.Zp({is:"yt-dropdown-menu",disableElementRegistration:!0})],cG);
_.Y(cG,"yt-dropdown-menu",function(){if(AhK===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;sH6===void 0&&(sH6=document.createElement("template"));var w=sH6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);AhK=y}y=AhK;return y},{mode:2});var eF=function(){var y=_.u.apply(this,arguments)||this;y.hasNotification=!1;return y};
_.p(eF,_.u);eF.prototype.computeId=function(y){return y};
eF.prototype.computeHorizontalAlign=function(y){return y?"right":"left"};
eF.prototype.computeAccessibilityLabel=function(y){var W,V;return((W=y.accessibility)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label)||null};
eF.prototype.notificationDataChanged=function(){var y;this.hasNotification=!!this.notificationData&&!((y=this.data)==null?0:y.icon)};
eF.prototype.notificationDataChanged=eF.prototype.notificationDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.FV.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],eF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eF.prototype,"data",void 0);_.J([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",String)],eF.prototype,"id",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],eF.prototype,"isRightAligned",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],eF.prototype,"disabled",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],eF.prototype,"closeOnActivate",void 0);_.J([_.q(),_.R("design:type",Object)],eF.prototype,"notificationData",void 0);_.J([_.q(),_.R("design:type",Object)],eF.prototype,"hasNotification",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],eF.prototype,"useComputedAriaLabel",void 0);_.J([_.xA("notificationData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eF.prototype,"notificationDataChanged",null);_.J([_.Zp({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],eF);
_.Y(eF,"yt-sort-filter-sub-menu-renderer",function(){if(kV6===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;xqA===void 0&&(xqA=document.createElement("template"));var w=xqA;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kV6=y}y=kV6;return y},{mode:2});var YM2=_.Al(dqd);_.zY(dqd);_.iF(YM2,"place-data-view-model",{props:{data:_.vB}});var Bvq=new _.e9("INLINE_PLAYBACK_HOOK_TOKEN");var Jhm=function(y){this.setActiveSlideIndex=y;this.jobIds=[];this.isSlideshowPlaying=!1},$qQ=function(y,W){y.isSlideshowPlaying||(y.isSlideshowPlaying=!0,Rs2(y),jHA(y,W,0))},Rs2=function(y){_.q4(_.HU,function(){y.setActiveSlideIndex(0)},1)},jHA=function(y,W,V){y.jobIds.push(_.q4(_.HU,function(){var w=V<W-1?V+1:0;
y.setActiveSlideIndex(w);jHA(y,W,w)},1800))};var nDK=new _.e9("IMAGE_ON_LOAD_HANDLER_TOKEN");var HXJ=_.eY(function(y){return _.O("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.O(_.v,{cond:function(){var W;return(W=y.data())==null?void 0:W.thumbnail},
then:function(W){return _.O(_.ca,{data:W,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"oa");_.XIz=_.eY(function(y){var W=y.data;var V=y.lockupExperiments;y={};return _.O("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.O("div",{class:_.kS("ytThumbnailOverlayButtonViewModelButton",(y.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var w;return V&&((w=V())==null?void 0:w.useLegacySizedIconButton)},y))},_.O(_.Q7,{data:function(){return W().overlayButton}},{buttonViewModel:function(w){return _.O(_.lk,{data:w.data,
buttonOverrides:function(){var t;return V&&((t=V())==null?0:t.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"pa");
_.XIz.idomCompat=!0;var aLf=_.eY(function(y){return _.O("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.YS(function(W){W.preventDefault();return!1})},_.O(_.Q7,{data:function(){return y.data().buttons}},{toggleButtonViewModel:function(W){return _.O("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.O(_.XV,{data:W.data}))}}))},"qa");
aLf.idomCompat=!0;var GVr=_.eY(function(y){var W=function(){var V;return((V=_.h(y.data().rendererContext,_.Bq))==null?void 0:V.label)||""};
return _.O("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.O(_.v,{cond:function(){return y.data().image},
then:function(){return _.O("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.O(_.ca,{data:function(){return y.data().image},
alt:W}))}}),_.O(_.v,{cond:function(){return y.data().text},
then:function(){return _.O("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return y.data().text})}}))},"ra");_.hk=_.eY(function(y){var W=[],V=function(){var c,K;return lM4((c=y.width)==null?void 0:c.call(y),(K=y.height)==null?void 0:K.call(y))},w=_.hs().resolve(_.eX(nDK)),t=_.I0("yt-thumbnail-view-model",function(){W.push("elRef.value set");
var c;(c=y.playbackRef)==null||c.call(y,{thumbnailElRef:t,thumbnail:y.data().image,thumbnailOverlays:y.data().overlays,thumbnailSize:V()})});
_.a8(function(){W.push("onInit");_.XT(function(){W.push("onCleanup")})});
var F=_.tn(zst),I=function(){var c,K;return(K=(c=y.aspectRatio)==null?void 0:c.call(y))!=null?K:0},P=function(){return(y.data().image?_.W44(y.data().image):I())<=1&&I()===0},C=function(){return P()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},d=function(){t.value||_.rQ(new _.Js("Thumbnail elRef.value is null",W.join("\n")));
w&&t.value&&w(t.value)},L=function(){var c,K;
return((c=y.hovered)==null?void 0:c.call(y))&&V()!=="large"&&((K=y.data().overlays)==null?void 0:K.some(function(f){return _.h(f,RYE)}))},z={};
return _.O("yt-thumbnail-view-model",{class:_.kS("yt-thumbnail-view-model",y.className,function(){return hsz(I())},function(){var c,K;
a:{var f=V(),U=(c=y.disableRounding)==null?void 0:c.call(y);c=(K=y.isClip)==null?void 0:K.call(y);if(!U&&!c)switch(f){case "large":K="yt-thumbnail-view-model--large";break a;case "small":K="yt-thumbnail-view-model--small";break a;default:K="yt-thumbnail-view-model--medium";break a}K=void 0}return K},(z["yt-thumbnail-view-model--cinematic"]=P,z)),
style:_.Rd({"background-color":function(){var c,K=P()?(c=y.data().backgroundColor)==null?void 0:c.lightTheme:void 0;return K?tc(K,"1"):void 0}}),
el:t},_.O(_.v,{cond:P,then:function(){return _.O("div",{class:"yt-thumbnail-view-model__blurred-image"},_.O(_.ca,{data:function(){return y.data().image},
alt:"",contentMode:C,targetWidth:y.width,onload:d}))}}),_.O("div",{class:"yt-thumbnail-view-model__image"},_.O(_.ca,{data:function(){return y.data().image},
alt:"",contentMode:C,targetWidth:y.width,onload:d}),null),_.O(_.Q7,{data:function(){return L()?void 0:y.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:wII,thumbnailOverlayBadgeViewModel:function(c){return _.O(tqq,{data:c.data,thumbnailSize:V,isClip:y.isClip})},
thumbnailBottomOverlayViewModel:function(c){return _.O(ZPK,{data:c.data,thumbnailSize:V,isClip:y.isClip})},
thumbnailOverlayFullViewModel:GVr,thumbnailOverlayButtonViewModel:function(c){return _.O(_.XIz,{data:c.data,lockupExperiments:y.lockupExperiments})}}),_.O(_.Q7,{data:function(){var c;
return((c=y.hovered)==null?0:c.call(y))?y.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(c){return _.O(Gh,{data:c.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:aLf}),_.O(_.Q7,{data:function(){var c;return((c=y.hovered)==null?0:c.call(y))&&F()?y.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:HXJ}),_.O(_.v,{cond:y.isClip,then:function(){return _.O("div",{class:"yt-pinking"},_.O("svg",{class:"yt-pinking__pinking-left"},_.O("defs",null,_.O("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.O("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.O("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.O("svg",{class:"yt-pinking__pinking-right"},_.O("defs",null,_.O("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.O("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.O("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"sa");
_.hk.idomCompat={callbacks:{playbackRef:!0}};var rhi=_.eY(function(y){var W=_.N(_.M1(-1,void 0,"IOLZ0b")),V=W.next().value,w=W.next().value;_.a8(function(){var t=new Jhm(w);$qQ(t,y.data().thumbnails.length);_.XT(function(){if(t.isSlideshowPlaying){t.isSlideshowPlaying=!1;for(var F=t.jobIds,I=0,P=F.length;I<P;I++)_.HU.cancelJob(F[I]);t.jobIds.length=0}})});
return _.O("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.O(_.Q7,{data:function(){return y.data().thumbnails}},{thumbnailViewModel:function(t,F){return _.O("div",{class:function(){var I=!y.data().primaryThumbnail,P=F(),C=V(),d=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
I&&P===0&&d.push("yt-collection-thumbnail-slideshow--first-slide");P<=C&&d.push("yt-collection-thumbnail-slideshow--show-slide");return d.join(" ")}},_.O(_.hk,{data:t.data,
disableRounding:y.disableRounding}))}}))},"ta");
rhi.idomCompat=!0;var oDG=new _.e9("DWELL_DETECTOR_REGISTRY_TOKEN");var QH6=_.eY(function(y){var W=KDt(y.triggeringElement),V=function(){return!!y.data().primaryThumbnail};
return _.O("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.O(bXq,{stackEnabled:V,thumbnailSize:function(){var w,t;return lM4((w=y.width)==null?void 0:w.call(y),(t=y.height)==null?void 0:t.call(y))},
doubleStack:y.doubleStack,stackColor:function(){return y.data().stackColor}},_.O("div",null,_.O(_.Q7,{data:function(){return y.data().primaryThumbnail}},{thumbnailViewModel:function(w){var t={};
return _.O(_.hk,{data:w.data,width:y.width,height:y.height,aspectRatio:y.aspectRatio,disableRounding:y.disableRounding,className:_.kS((t["yt-collection-thumbnail-view-model--has-stacks"]=V,t)),hovered:y.hovered,playbackRef:y.playbackRef})}}),_.O(_.v,{cond:function(){var w;
return W()&&((w=y.data().thumbnails)==null?void 0:w.length)},
then:function(){return _.O("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.O(rhi,{data:y.data,disableRounding:function(){return!V()}}))}}))))},"ua");
QH6.idomCompat={callbacks:{playbackRef:!0}};
var bXq=_.eY(function(y){var W=y.children;var V=y.stackEnabled;var w=y.thumbnailSize;var t=y.doubleStack;var F=y.stackColor;var I,P=(I=_.hs().resolve(_.eX(_.va)))==null?void 0:I();return _.O(_.v,{cond:V,then:function(){return _.O(q7R,{data:function(){var C,d;return{experimentEnabled:!0,thumbnailSize:w(),doubleStack:t==null?void 0:t(),color:P?F==null?void 0:(C=F())==null?void 0:C.darkTheme:F==null?void 0:(d=F())==null?void 0:d.lightTheme,enableResponsiveMode:!1}}},W)},
else:function(){return W}})},"va");var ZX6=new _.e9("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var K9;_.oz={calledOnce:!0,state:"visible"};K9={calledOnce:!0,state:"hidden"};_.p9=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;var w=y.className;var t=y.delayedClassName;var F=y.animationEntityKey;var I=y.isCompactWidth;var P=_.LD(F,""),C=_.Yn(hOd,P),d=function(){var Py,du;return(du=(Py=C())==null?void 0:Py.value)!=null?du:!1},L=function(){_.dc(_.B5("booleanEntity",P(),{key:P(),
value:!0}));B=void 0};
y=_.N(_.Jl(d));var z=y.next().value,c=y.next().value;y=_.N(_.Jl(d));var K=y.next().value,f=y.next().value;y=_.N(_.Jl(function(){var Py;return d()?(Py=W().styleTransitionConfig)==null?void 0:Py.destinationStyle:void 0}));
var U=y.next().value,l=y.next().value,x=function(){var Py=Object.assign({},W(),U()&&{style:U()}),du,mL,un=Py.label,hv=(du=Py.interaction)==null?void 0:(mL=du.accessibility)==null?void 0:mL.label;du=Py.iconImage?Py.label&&Py.label.content?Py.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:un,accessibilityLabel:hv,style:Tvn(Py.style),type:mqP(Py.style),state:"active",size:fLb(Py.size),iconPosition:du,disabled:!1,aTagConfig:iXL(Py,V)}},B;
y=_.L7({visibilityCallback:function(Py){var du,mL=(du=W().interaction)==null?void 0:du.onFirstVisible;Py&&mL&&_.Id(mL)},
showOption:_.oz});var r=function(){return $S(x(),!!W().iconImage)};
F={};w=_.kS(function(){return"ytwAdButtonViewModelHost"},function(){return W().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Py=!!W().delayedAppearanceConfig,du=z();
return Py?du?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Py=!!W().delayedAppearanceConfig,du=K();
return Py?du?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!W().delayedAppearanceConfig||z()?t==null?void 0:t():""},(F.ytwAdButtonViewModelHostCompactWidth=function(){return I==null?void 0:I()},F),w!=null?w:"");
var H=function(){var Py,du=(Py=W().delayedAppearanceConfig)==null?void 0:Py.delayedInvisibleSeconds;du&&(B=_.jf(_.HU,function(){c(!0);a()},du*1E3))},a=function(){var Py,du=(Py=W().delayedAppearanceConfig)==null?void 0:Py.delayedVisibleSeconds;
du&&(B=_.jf(_.HU,function(){f(!0);b()},du*1E3))},b=function(){var Py,du=(Py=W().styleTransitionConfig)==null?void 0:Py.styleTransitionSeconds,mL,un=(mL=W().styleTransitionConfig)==null?void 0:mL.destinationStyle;
du&&un?B=_.jf(_.HU,function(){l(un);L()},du*1E3):L()},Fv=function(){var Py;
return(Py=W().delayedAppearanceConfig)==null?void 0:Py.transitionDurationSeconds};
_.a8(function(){H()});
_.XT(function(){B&&_.HU.cancelJob(B)});
return _.O("ad-button-view-model",{class:w,el:_.hl(y),style:_.Rd({"transition-duration":function(){return Fv()?Fv()+"s":void 0}})},_.O(_.v,{cond:x,
then:function(){return _.O(zr,{data:x,icon:function(){return _.O(_.v,{cond:function(){return W().iconImage},
then:function(Py){return _.O(_.ca,{data:Py,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"wa");var yTJ=_.eY(function(y){var W=y.data;y=_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz});var V={};return _.O("ad-button-group-view-model",{class:_.kS("ytwAdButtonGroupViewModelHost",(V.ytwAdButtonGroupViewModelHostCompactWidth=function(){return W().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},V)),
el:_.hl(y)},_.O("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.O(_.Q7,{data:function(){return W().secondaryAdButton}},{adButtonViewModel:function(w){return _.O(_.p9,{data:w.data})}})),_.O("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.O(_.Q7,{data:function(){return W().primaryAdButton}},{adButtonViewModel:function(w){return _.O(_.p9,{data:w.data})}})))},"xa");var Wvm=_.eY(function(y){var W=function(){var V;return((V=y.data())==null?void 0:V.answers)||[]};
return _.O("yt-survey-icons",{class:"ytSurveyIconsHost"},_.O("div",{class:"ytSurveyIconsHeader"},_.O("div",{class:"ytSurveyIconsTitle"},function(){var V;return(V=y.data())==null?void 0:V.text}),_.O("div",null,_.O(zr,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var V;(V=y.onDismiss)==null||V.call(y)}}},
iconName:"DISMISSAL"}))),_.O("div",null,_.O("div",{class:"ytSurveyIconsAnswers"},_.O(_.YV,{each:function(){return W()},
keyBy:"INDEX"},function(V,w){return _.O("div",null,_.O(zr,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var t;(t=y.onSelect)==null||t.call(y,V(),w)}}},
icon:function(){return _.O(_.jl,{icon:function(){var t,F;return(t=V())==null?void 0:(F=t.icon)==null?void 0:F.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.O("div",{class:"ytSurveyIconsAnswersText"},_.O("div",null,function(){return W().length?W()[0].text:""}),_.O("div",null,function(){return W().length?W()[W().length-1].text:""}))))},"ya");var Vvq=_.eY(function(y){var W=_.hl(_.FW(function(){var C;return(C=y.data())==null?void 0:C.rendererContext},void 0,void 0,void 0,!0)),V=_.N(_.M1(!1,void 0,"YxWRNc")),w=V.next().value,t=V.next().value,F=_.Yn(vML,function(){var C;
return(C=y.data().keys)==null?void 0:C.surveyEntityKey}),I=_.Yn(dya,function(){var C;
return(C=y.data().keys)==null?void 0:C.surveyStateEntityKey});
_.NT("ytd-slimline-survey-show-action",function(){t(!1)});
var P=function(){var C,d;var L=(C=I())==null?void 0:(d=C.questionStack)==null?void 0:d[0];if(L!==void 0){var z,c;return(z=F())==null?void 0:(c=z.questions)==null?void 0:c[L]}};
V={};return _.O("yt-slimline-survey-view-model",{el:W,class:_.kS("ytSlimlineSurveyViewModelHost",(V.ytSlimlineSurveyViewModelCollapsed=function(){return w()},V))},_.O("div",{class:"ytSlimlineSurveyViewModelContainer"},_.O(_.v,{cond:function(){var C;
return((C=P())==null?void 0:C.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.O(Wvm,{data:function(){return P()},
onSelect:function(C,d){var L,z;return _.g(function(c){t(!0);if(z=(L=y.data())==null?void 0:L.onSelectRating)_.Id(z),_.dc(grs(d));_.B7(c)})},
onDismiss:function(){t(!0);var C;var d=(C=F())==null?void 0:C.dismissalFeedbackToken;C=d?{feedbackEndpoint:{feedbackToken:d}}:void 0;C&&_.F2(C,{form:{element:W.value}})}})}})))},"za");var wrf=_.eY(function(y){return _.O("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.O(_.Q7,{data:function(){var W;return(W=y.data())==null?void 0:W.attachments}},{flexibleActionsViewModel:function(W){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O($vI,{data:W.data,
layout:function(){var V;return((V=y.lockupStyle())==null?void 0:V.arrangement)===1?0:1},
justifyContentOverride:function(){var V;return((V=y.lockupStyle())==null?void 0:V.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(W){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(Vvq,{data:W.data}))},
expandableMetadataViewModel:function(W){W=W.data;var V;return _.O("div",{class:_.kS("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(V=_.hs().resolve(_.eX(ZX6)))==null?void 0:V({data:W}))},
adButtonGroupViewModel:function(W){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(yTJ,{data:W.data}))},
adButtonViewModel:function(W){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(_.p9,{data:W.data,isCompactWidth:!0}))}}))},"Aa");var DqR=_.pB("rich_grid_min_item_width",310),uij=_.pB("rich_grid_max_item_width",500);var tvA=_.eY(function(y){var W=y.data;return _.O("br-nz-badge-shape",{class:_.kS(function(){return Jhu(W().brNzRatingBadgeType)}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},function(){var V;
return(V=W())==null?void 0:V.text})},"Ba");_.ip=_.eY(function(y){var W=function(){var V=y.data(),w,t;if(V){var F=!((w=y.workaroundShortsIsThumbnailBadge)==null||!w.call(y));w=(t=y.modern)==null?void 0:t.call(y);a:switch(V.badgeStyle){case "BADGE_OVERLAY":t=!0;break a;default:t=!1}V={type:F?16:Rsn(V.badgeStyle),brNzRatingBadgeType:jHv(V.badgeStyle),text:V.badgeText,icon:V.iconName,isOverlay:t,modern:w||_.e("web_modern_badge_view_model"),accessibilityText:V.accessibilityLabel}}else V=void 0;return V};
return _.O("yt-badge-view-model",{class:_.kS("yt-badge-view-model-wiz",y.class)},_.O(_.$V,null,_.O(_.BV,{when:function(){var V;return!((V=W())==null||!V.brNzRatingBadgeType)}},function(){return _.O(tvA,{data:function(){return W()}})}),_.O(_.BV,{when:function(){return!!W()&&!W().brNzRatingBadgeType}},function(){return _.O(_.yF,{data:function(){return W()}})})))},"Ca");
_.ip.idomCompat=!0;var nDj,$q4;nDj=16/9;$q4=2/3;_.f9=_.eY(function(y){var W=y.data;var V=y.className;var w=y.imageSizeConfig;var t=y.notifyOnLoaded;var F=function(){return W().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},I=function(){var c;
return _.tO((c=W())==null?void 0:c.rendererContext)};
y={};y=(y["yt-content-preview-image-view-model-wiz"]=!0,y["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return F()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},y["yt-content-preview-image-view-model-wiz--tappable"]=function(){return I()},y);
var P=function(){var c,K;return(K=(c=_.h(W().rendererContext,_.Bq))==null?void 0:c.label)!=null?K:""},C=function(){return XIy(W())},d=function(){var c=HXP(F(),W().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",w==null?void 0:w(),aLL(C()),W().layoutWidth,W().layoutHeight),K=Object.assign({},c);
c.width&&(K.width=Math.round(c.width));c.height&&(K.height=Math.round(c.height));c.maxWidth&&(K.maxWidth=Math.round(c.maxWidth));c.maxHeight&&(K.maxHeight=Math.round(c.maxHeight));return K},L=_.DZ(function(){return d().height},void 0,"Cn10Ce"),z=_.DZ(function(){return d().width},void 0,"laoove");
return _.O("yt-content-preview-image-view-model",{el:_.hl(_.FW(function(){var c;return(c=W())==null?void 0:c.rendererContext})),
role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.kS(V,y,function(){var c=F();var K=w==null?void 0:w();c=c==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||c==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(K==null?void 0:K.size)!=null&&K.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(K==null?void 0:K.size)!=null&&K.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return c}),
style:function(){var c=d(),K=[];c.width&&K.push("width: "+c.width+"px");c.height&&K.push("height: "+c.height+"px");c.maxWidth&&K.push("max-width: "+c.maxWidth+"px");c.maxHeight&&K.push("max-height: "+c.maxHeight+"px");c.fullWidth&&K.push("width: 100%");return K.join(";")}},_.O(_.v,{cond:C,
then:function(c){return _.O(_.ca,{data:c,alt:P,"data-disabled$":function(){return!P()},
notifyOnLoaded:t,targetWidth:z,targetHeight:L,preserveWidth:function(){return!!z()},
preserveHeight:function(){return!!L()}})}}),_.O(_.Q7,{data:function(){var c;
return(c=W())==null?void 0:c.overlays}},{thumbnailHoverOverlayViewModel:Gh,
thumbnailOverlayButtonViewModel:_.XIz}))},"Da");
_.f9.idomCompat=!0;var E7s=_.eY(function(y){var W=y.data;var V=y.className;var w=y.useSmallLayout;y=y.useMediumText;var t={};y=(t["yt-attribution-view-model-wiz"]=!0,t["yt-attribution-view-model-wiz--medium-text"]=y,t);return _.O("yt-attribution-view-model",{el:_.hl(_.FW(function(){var F;return(F=W())==null?void 0:F.rendererContext})),
class:_.kS(V,y)},_.O(_.v,{cond:function(){return _.tO(W().rendererContext)},
then:function(){return _.O("button",{class:"yt-attribution-view-model-wiz--tappable"},_.O(Fv2,{data:W,useSmallLayout:w}))},
else:function(){return _.O(Fv2,{data:W,useSmallLayout:w})}}))},"Ea"),Fv2=_.eY(function(y){var W=y.data;
var V=y.useSmallLayout;var w=function(){return{size:(V==null?0:V())?16:24}};
return _.O(_.o8,null,_.O(_.Q7,{data:function(){return W().contentPreviewImage}},{contentPreviewImageViewModel:function(t){return _.O(_.f9,{data:t.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:w})}}),_.O(_.Q7,{data:function(){return W().badge}},{badgeViewModel:function(t){return _.O(_.ip,{data:t.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.O(_.v,{cond:function(){return W().text},
then:function(){return _.O(_.Lv,{text:function(){return W().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.O(_.v,{cond:function(){return W().suffix},
then:function(){return _.O(_.Lv,{text:function(){return W().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Fa");
E7s.idomCompat=!0;var NbR,IKJ,g72,PRR,CRA;NbR=_.eY(function(y){var W=y.delimiter;var V=y.max;var w=y.index;var t=y.isStandalone;return _.O(_.v,{cond:function(){return V()-1>w()},
then:function(){var F={};return _.O("span",{class:_.kS("yt-content-metadata-view-model-wiz__delimiter",(F["yt-content-metadata-view-model-wiz__delimiter--standalone"]=t,F)),"aria-hidden":!0},W)}})},"Ga");
IKJ=_.eY(function(y){var W=y.metadataPart;var V=y.maxLines;return _.O(_.Lv,{text:function(){return W().text},
linkInheritColor:!0,className:function(){return GVa(V())},
userInput:!0})},"Ha");
g72=_.eY(function(y){var W=y.metadataPart;var V=y.maxLines;return _.O(_.v,{cond:function(){return W().tooltip},
then:function(w){return _.O("span",{title:w,role:"tooltip"},_.O(IKJ,{metadataPart:W,maxLines:V}))},
else:function(){return _.O(IKJ,{metadataPart:W,maxLines:V})}})},"Ia");
PRR=_.eY(function(y){var W=y.metadataPart;var V=y.isOverlay;var w=y.useMediumText;var t=y.hideAvatar;var F=function(){return W().maxLines!==void 0?W().maxLines:1};
return _.O(_.o8,null,_.O(_.Q7,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(I){return _.O(_.QF,{data:I.data,
isOverlay:V,useMediumText:w,hideAvatar:t})},
badgeViewModel:_.ip}),_.O(_.v,{cond:function(){return W().leadingIcon},
then:function(I){return _.O(_.jl,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return I().name},
size:function(){return I().width}})}}),_.O(_.v,{cond:function(){return W().text},
then:function(){return _.O(g72,{metadataPart:W,maxLines:F})}}),_.O(_.v,{cond:function(){return W().icon},
then:function(I){return _.O(_.jl,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return I().name},
size:function(){return I().width}})}}))},"Ja");
CRA=_.eY(function(y){var W=y.metadataRow;var V=y.isInline;var w=y.delimiter;var t=y.isOverlay;var F=y.useMediumText;var I=y.extensions;var P=function(){var d,L=I==null?void 0:(d=I())==null?void 0:d.lockupMetadata;d=W();var z,c;return!!((L==null?0:(z=L.byline)==null?0:z.hideAvatar)&&((c=_.h(d,lkJ))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},C=function(){return W().metadataParts||[]};
y={};return _.O("div",{class:_.kS("yt-content-metadata-view-model-wiz__metadata-row",(y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=V,y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var d,L=I==null?void 0:(d=I())==null?void 0:d.lockupMetadata;d=W();var z,c;return!!((L==null?0:(z=L.byline)==null?0:z.addPadding)&&((c=_.h(d,lkJ))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var d;
return!!(I==null?0:(d=I())==null?0:d.lockupMetadata)&&W().badges&&!W().metadataParts},y))},_.O(_.Q7,{data:function(){return W().badges}},{badgeViewModel:function(d){return _.O("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.O(_.ip,{data:d.data}))}}),_.O(_.YV,{each:C},function(d,L){return _.O(_.o8,null,_.O(PRR,{metadataPart:d,
isOverlay:t,useMediumText:F,hideAvatar:P}),_.O(NbR,{delimiter:w,max:function(){return C().length},
index:L,isStandalone:!1}))}),_.O(_.v,{cond:function(){return W().isSpacerRow&&!V()},
then:function(){return _.O("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ka");
_.TX=_.eY(function(y){y=_.zb(y,{layout:0,isOverlay:!1});var W=y.data,V=y.layout,w=y.isOverlay,t=y.useMediumText,F=y.extensions,I=function(){return V()===0},P=function(){var d;
return((d=W().metadataRows)==null?void 0:d.filter(function(L){var z,c=F==null?void 0:(z=F())==null?void 0:z.lockupMetadata,K,f;z=!!((c==null?0:(K=c.description)==null?0:K.hideDescription)&&((f=_.h(L,lkJ))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var U,l;return!((c==null?0:(U=c.spacer)==null?0:U.hideSpacer)&&((l=_.h(L,lkJ))==null?void 0:l.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||z)}))||[]},C={};
return _.O("yt-content-metadata-view-model",{class:_.kS(y.className,"yt-content-metadata-view-model-wiz",(C["yt-content-metadata-view-model-wiz--inline"]=I,C["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.tO(W().rendererContext)},C["yt-content-metadata-view-model-wiz--medium-text"]=t,C)),
el:_.hl(_.FW(function(){return W().rendererContext}))},_.O(_.YV,{each:P},function(d,L){return _.O(_.o8,null,_.O(CRA,{metadataRow:d,
isInline:I,delimiter:function(){return W().delimiter},
isOverlay:w,useMediumText:t,extensions:F}),_.O(_.v,{cond:function(){return I()&&!d.isSpacerRow},
then:function(){return _.O(NbR,{delimiter:function(){return W().delimiter},
max:function(){return P().length},
index:L,isStandalone:!0})}}))}))},"La");
_.TX.idomCompat=!0;var OQs=_.eY(function(y){var W={};return _.O("yt-lockup-metadata-view-model",{class:_.kS("yt-lockup-metadata-view-model-wiz",function(){a:{var V=y.lockupStyle();if(V==null?0:V.isOverlay)V="yt-lockup-metadata-view-model-wiz--overlay";else switch(V==null?void 0:V.arrangement){case 1:V="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:V="yt-lockup-metadata-view-model-wiz--vertical"}}return V},function(){a:{var V=y.lockupStyle();
if(V==null?0:V.isTiny)V="yt-lockup-metadata-view-model-wiz--tiny";else switch(V==null?void 0:V.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":V="yt-lockup-metadata-view-model-wiz--compact";break a;default:V="yt-lockup-metadata-view-model-wiz--standard"}}return V},(W["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.isOverlay},W["yt-lockup-metadata-view-model-wiz--card"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.isCard},W["yt-lockup-metadata-view-model-wiz--centered"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.isCentered},W["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.typographyBump},W["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.useLegacyTypography},W["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var V;
return(V=y.lockupStyle())==null?void 0:V.useRichGridLegacyTypography},W))},_.O(_.Q7,{data:function(){return y.data().image}},{avatarStackViewModel:function(V){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.QF,{data:V.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(V){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.ra,{data:V.data}))},
decoratedAvatarViewModel:function(V){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.bV,{data:V.data}))}}),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.O("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var V;return(V=y.data().title)==null?void 0:V.content}},_.O(_.v,{cond:function(){return y.data().title},
then:function(V){return _.O(_.It,{command:y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:y.lockupAccessibilityLabel},_.O(_.Lv,{text:V,userInput:!0}))}})),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.O(_.Q7,{data:function(){return y.data().metadata}},{contentMetadataViewModel:function(V){return _.O(_.TX,{data:V.data,
layout:1,useMediumText:function(){var w,t;return((w=y.lockupStyle())==null?void 0:w.typographyBump)||((t=y.lockupStyle())==null?void 0:t.useRichGridLegacyTypography)},
extensions:function(){var w,t,F,I;return{lockupMetadata:{byline:{hideAvatar:((w=y.lockupStyle())==null?void 0:w.arrangement)===0,addPadding:((t=y.lockupStyle())==null?void 0:t.arrangement)===1},description:{hideDescription:!((F=y.lockupStyle())==null||!F.compactMetadata)},spacer:{hideSpacer:!((I=y.lockupStyle())==null||!I.compactMetadata)}}}}})}})),_.O(_.Q7,{data:function(){return y.data().attribution}},{attributionViewModel:function(V){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.O(E7s,{data:V.data,
useSmallLayout:!0}))}})),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.O(_.Q7,{data:function(){return y.data().menuButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
buttonOverrides:function(){var w;return((w=y.lockupStyle())==null?0:w.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ma");
OQs.idomCompat=!0;var v7Q=_.eY(function(y){var W=_.I0("notification-multi-action-renderer");_.HV(function(){requestAnimationFrame(function(){_.Ci(W.value)})});
var V={},w={},t={};return _.O("notification-multi-action-renderer",{class:_.kS("ytNotificationMultiActionRendererHost",(V.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var F;return(F=y.useLegacyShelfStyle)==null?void 0:F.call(y)},V)),
el:W},_.O("span",{"aria-live":"polite",class:_.kS("ytNotificationMultiActionRendererTextContainer",(w.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var F;return(F=y.useLegacyShelfStyle)==null?void 0:F.call(y)},w))},_.O(_.Lv,{text:function(){return y.data().responseText}})),_.O("div",{class:_.kS("ytNotificationMultiActionRendererButtonContainer",(t.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var F;
return(F=y.useLegacyShelfStyle)==null?void 0:F.call(y)},t))},_.O(_.Q7,{data:function(){var F;
return(F=y.data().buttons)==null?void 0:F.map(function(I){if(I=I.buttonRenderer){var P,C=Object,d=C.assign,L=(P=I.icon)==null?void 0:P.iconType;P=(P=I.command||I.serviceEndpoint||I.navigationEndpoint)?{innertubeCommand:P}:void 0;I={buttonViewModel:d.call(C,{},{iconName:L,onTap:P,trackingParams:I.trackingParams,titleFormatted:I.text?_.y4(I.text):void 0},rhb(I))}}else I=void 0;return I}).filter(function(I){return!!I})}},{buttonViewModel:function(F,I){return _.O("div",null,_.O(_.lk,{data:F.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var P;return((P=y.useModernStyles)==null?0:P.call(y))?{type:I()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Na");var d0R=_.eY(function(y){var W=_.I0("notification-text-renderer");_.HV(function(){requestAnimationFrame(function(){_.Ci(W.value)})});
return _.O("notification-text-renderer",{el:W,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.O(_.Lv,{text:function(){return y.data().successResponseText}}))},"Oa");_.ml=_.eY(function(y){var W=_.Yn(usL,function(){var w;return bXd((w=y.contentId)==null?void 0:w.call(y))}),V=function(){var w;
return _.h((w=W())==null?void 0:w.command,_.Rx)};
return _.O(_.v,{cond:function(){var w;if(!(w=V())){var t;w=_.h((t=W())==null?void 0:t.command,uh6)}return w},
then:function(){return _.O(_.v,{cond:V,then:function(){var w={};return _.O("div",{class:_.kS("ytDismissibleItemReplacedContent",function(){var t;return QHv((t=y.aspectRatio)==null?void 0:t.call(y))})},_.O("div",{class:_.kS((w.ytDismissibleItemAspectRatioContainer=function(){var t;
return((t=y.aspectRatio)==null?void 0:t.call(y))!==void 0},w))},_.O(_.Q7,{data:function(){var t;
return(t=V())==null?void 0:t.item}},{notificationMultiActionRenderer:function(t){return _.O(v7Q,{data:t.data,
useModernStyles:y.useModernStyle,useLegacyShelfStyle:y.useLegacyShelfStyle})},
notificationTextRenderer:d0R})))}})},
else:y.children})},"Pa");_.Lvi=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;y=_.hl(_.L7({visibilityCallback:function(F){var I,P=(I=W().interaction)==null?void 0:I.onFirstVisible;F&&P&&_.Id(P)},
showOption:_.oz}));var w=function(){var F;return((F=W().interaction)==null?0:F.onTap)?function(I){var P;pIP(I,(P=W().interaction)==null?void 0:P.onTap,V)}:void 0},t=function(){var F,I=W(),P=w(),C=(F=_.h(W().rendererContext,_.Bq))==null?void 0:F.label;
a:switch(I.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":F=1;break a;default:F=0}return{size:Wvu(I.size),type:F,onTap:P,accessibilityText:C}};
return _.O("ad-avatar-view-model",{class:function(){var F;return((F=W().interaction)==null?0:F.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:y},_.O(_.v,{cond:function(){return W().image},
then:function(F){return _.O(Vqi,{data:t,image:F})}}))},"Qa");_.MD=_.eY(function(y){var W=_.zb(y,{hasDot:!1});y=Object.assign({},W);var V=W.data,w=W.hasDot;W=W.customCommandResolver;var t=(delete y.data,delete y.hasDot,delete y.customCommandResolver,y);y=function(){return V().style};
y!==void 0&&y!==null||_.FU(Error("Nh"));y=_.Pe(function(){return V().interaction},W);
return _.O("ad-badge-view-model",{class:_.kS(function(){var F;return((F=V().interaction)==null?0:F.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var F=t.adRenderingContextType();
V();return F==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.hl(y)},_.O(_.yF,{data:function(){var F;V();return{type:2,text:(F=V().label)==null?void 0:F.content,adsIncludeDot:w(),isOverlay:V().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ra");var zPQ;_.qD=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;var w=y.adRenderingContextType;return _.O("ad-details-line-view-model",{class:function(){var t;return((t=W().interaction)==null?0:t.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(t){var F,I=(F=W().interaction)==null?void 0:F.onFirstVisible;t&&I&&_.Id(I)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V))},_.O(_.v,{cond:function(){return W().style},
then:function(t){return _.O(_.YV,{each:function(){var F;return((F=W())==null?void 0:F.attributes)||[]},
keyBy:"INDEX"},function(F){return _.O(zPQ,{attribute:F,style:t,adRenderingContextType:function(){return w()}})})}}))},"Sa");
zPQ=_.eY(function(y){var W=y.attribute;var V=y.style;var w=y.adRenderingContextType;return _.O(_.v,{cond:function(){return W().text},
then:function(t){return _.O(_.Lv,{text:t,className:function(){var F=w();V();return F==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ta");var cTJ=_.eY(function(y){var W=y.data;var V=y.typographyBump;var w=function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
y={};return _.O(_.o8,null,_.O("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.O(_.Lv,{text:function(){return W().headline},
className:_.kS("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return w==null?void 0:w()},y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(V==null?void 0:V())&&!(w==null?0:w())},y)),
linkInheritColor:!0}),_.O(_.v,{cond:function(){return W().description},
then:function(t){var F={};return _.O(_.Lv,{text:t,className:_.kS("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return w==null?void 0:w()},F.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(V==null?void 0:V())&&!(w==null?0:w())},F)),
linkInheritColor:!0})}}),_.O(_.v,{cond:function(){return W().secondaryDescription},
then:function(t){var F={};return _.O(_.Lv,{text:t,className:_.kS("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return V==null?void 0:V()},F)),
linkInheritColor:!0})}}),_.O("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.O(_.v,{cond:function(){return W().adAvatar},
then:function(){return _.O("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.O(_.Q7,{data:function(){return W().adAvatar}},{adAvatarViewModel:_.Lvi}))}}),_.O(_.Q7,{data:function(){return W().adBadge}},{adBadgeViewModel:function(t){return _.O(_.MD,{data:t.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.O(_.Q7,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(t){return _.O(_.qD,{data:t.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}}))),_.O("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
buttonOverrides:function(){a:switch(W().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var F="S";break a;default:F="M"}return{size:F}}})}})))},"Ua"),ePr=_.eY(function(y){var W=y.data;
var V=y.noBottomMargin;var w=y.useVideoLockupTopPadding;var t=y.typographyBump;y={};y=_.kS("ytwFeedAdMetadataViewModelHostMetadata",(y.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return V==null?void 0:V()},y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},y));
var F=function(){return W().adBadge};
F!==void 0&&F!==null||_.FU(Error("Oh"));F={};var I={};return _.O(_.o8,null,_.O(_.v,{cond:function(){return W().adAvatar},
then:function(){return _.O("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.O(_.Q7,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(P){return _.O(_.Lvi,{data:P.data})}}))}}),_.O("div",{class:y},_.O("div",{class:_.kS("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(F.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return t==null?void 0:t()},F.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(t==
null?void 0:t())&&_.e("web_enable_typography_bump_v2")},F))},_.O(_.Lv,{text:function(){return W().headline},
linkInheritColor:!0})),_.O(_.v,{cond:function(){return W().description},
then:function(P){return _.O(_.Lv,{text:P,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.O("div",{class:function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.e("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.O(_.Q7,{data:function(){return W().adBadge}},
{adBadgeViewModel:function(P){return _.O(_.MD,{data:P.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.O(_.Q7,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(P){return _.O(_.qD,{data:P.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}})),_.O(_.v,{cond:function(){return W().secondaryDescription},
then:function(P){return _.O(_.Lv,{text:P,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.O("div",{class:_.kS("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(I.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},I))},_.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:_.lk})))},"Va"),hPK=_.eY(function(y){var W=y.data;
var V=y.noBottomMargin;var w=y.listenToTapEvent;var t=y.setTouchEndHandler;var F=y.useVideoLockupTopPadding;var I=y.typographyBump;y=_.L7({visibilityCallback:function(z){var c,K=(c=W().interaction)==null?void 0:c.onFirstVisible;z&&K&&_.Id(K)},
showOption:_.oz});var P=_.Pe(function(){return W().interaction},void 0,function(){return w==null?void 0:w()}),C=_.N(_.M1(!1,void 0,"p7Js8e")),d=C.next().value,L=C.next().value;
C=_.YS(function(z){(t==null?0:t())&&!d()&&(z.currentTarget.click(),L(!0),setTimeout(function(){L(!1)},100));
return!1});
return _.O("feed-ad-metadata-view-model",{class:function(){var z;return((z=W().interaction)==null?0:z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.hl(y,P),"on:touchend":C},_.O(_.$V,null,_.O(_.BV,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.O(cTJ,{data:W,
typographyBump:I})}),_.O(_.BV,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.O(ePr,{data:W,
noBottomMargin:V,useVideoLockupTopPadding:F,typographyBump:I})})))},"Wa");var o76;_.US=_.eY(function(y){return _.O("yt-lockup-view-model",{class:_.kS(y.className)},_.O(_.ml,{contentId:function(){return y.data().contentId},
useModernStyle:!0,aspectRatio:function(){var W,V;return((W=y.containerType)==null?void 0:W.call(y))!==3?YMn(y.data().contentType,(V=y.force16By9ThumbnailAspectRatio)==null?void 0:V.call(y)):void 0}},function(){return _.O(o76,Object.assign({},y))}))},"Xa");
o76=_.eY(function(y){y=_.zb(y,{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 W=y.data,V=y.containerLayoutConfig,w=y.containerType,t=y.sizing,F=y.protectBackground,I=y.typographyBump,P=y.force16By9ThumbnailAspectRatio,C=y.thumbnailFixedWidth,d=y.thumbnailTargetWidth,L=y.lockupExperiments,z=y.elementsPerRow;
y=_.hl(_.FW(function(){var hv;return(hv=W())==null?void 0:hv.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 c=_.tn(chv),K=_.hs().resolve(_.eX(Bvq)),f=K?{}:void 0,U=function(){var hv,$P,sz;return(sz=($P=_.h((hv=W())==null?void 0:hv.rendererContext,_.Bq))==null?void 0:$P.label)!=null?sz:void 0},l=function(){var hv=V==null?void 0:V(),$P;
if(hv==null?0:hv.containerType){var sz=($P=W())==null?void 0:$P.contentType;$P=L();var Wz=I(),mf=d(),OE=F();hv=Object.assign({},Bvd(kVv(hv),lLv(hv.responsiveSize),Wz,sz,hv.force16By9ThumbnailAspectRatio,mf,OE,$P),{thumbnailFixedWidth:hv.contentPreviewWidth})}else hv=Bvd(w(),t(),I(),(sz=W())==null?void 0:sz.contentType,P(),d(),F(),L());return hv};
K&&f&&K({enabled:function(){return c()},
itemPlaybackModel:function(){return W().itemPlayback},
thumbnailElRef:function(){return f.thumbnailElRef},
containerElRef:y,options:function(){var hv,$P=(hv=_.h(W().metadata,xii))==null?void 0:hv.endorsement;hv=f.thumbnailOverlays||[];$P&&hv.push($P);var sz,Wz;return{thumbnail:f.thumbnail,thumbnailOverlays:hv,accessibilityText:U(),thumbnailSize:f.thumbnailSize,enableRounding:l().isCollection,containPlayerWithinThumbnail:l().isCollection,trackingParams:(sz=_.h(W().rendererContext,_.JY))==null?void 0:(Wz=sz.loggingDirectives)==null?void 0:Wz.trackingParams}}});
var x=0;K=_.N(_.M1(!1,void 0,"GH4i8d"));var B=K.next().value,r=K.next().value;K=_.N(_.M1(!1,void 0,"hS52Ob"));var H=K.next().value,a=K.next().value;K=_.YS(function(){var hv=c()&&W().itemPlayback;H()?(_.HU.cancelJob(x),x=_.HU.addJob(function(){r(!hv)},8,32)):r(!hv);
return!0});
var b=_.YS(function(){x&&(_.HU.cancelJob(x),x=0);r(!1)});
_.XT(function(){x&&(_.HU.cancelJob(x),x=0)});
var Fv=yTP(function(){a(!0)}),Py=Fv.touchFeedbackEvents,du=Fv.touchFeedbackOnPointerUp,mL=Fv.touchFeedbackOnPointerDown;
Fv=Fv.touchFeedbackOnPointerLeave;var un={};return _.O("div",{el:y,class:_.kS("yt-lockup-view-model-wiz",function(){a:{var hv=l();if(hv.isOverlay)hv="yt-lockup-view-model-wiz--overlay";else switch(hv.arrangement){case 1:hv="yt-lockup-view-model-wiz--horizontal";break a;default:hv="yt-lockup-view-model-wiz--vertical"}}return hv},function(){a:{var hv=l();
if(hv.isOverlay)hv="yt-lockup-view-model-wiz--overlay";else{switch(hv.collectionStackNumber){case 1:hv="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:hv="yt-lockup-view-model-wiz--collection-stack-2";break a}hv=void 0}}return hv},(un["yt-lockup-view-model-wiz--card"]=function(){return l().isCard},un["yt-lockup-view-model-wiz--compact"]=function(){return l().isTiny||l().sizing!=="STANDARD"},un["yt-lockup-view-model-wiz--protect-background"]=F,un["yt-lockup-view-model-wiz--add-margins"]=
function(){return l().addMarginForFullbleed},un["yt-lockup-view-model-wiz--centered"]=function(){return l().isCentered},un["yt-lockup-view-model-wiz--fullbleed"]=function(){return l().fullbleed},un["yt-lockup-view-model-wiz--single-column-grid"]=function(){return z()===1&&w()===2},un["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var hv;
return(hv=L())==null?void 0:hv.useRichGridLegacyMargin},un)),
"on:mousedown":mL,"on:mouseleave":b,"on:mouseup":du,"on:mouseover":K,"on:touchstart":mL,"on:touchend":du,"on:pointerleave":Fv},_.O(_.It,{command:function(){var hv;return _.w7((hv=W())==null?void 0:hv.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return C()&&l().arrangement===1?"width: "+C():""}},_.O(_.Q7,{data:function(){var hv;
return(hv=W())==null?void 0:hv.contentImage}},{thumbnailViewModel:function(hv){return _.O(_.hk,{data:hv.data,
aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:d,hovered:B,isClip:function(){var $P;return(($P=W())==null?void 0:$P.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:LDy(f),lockupExperiments:function(){return L()}})},
collectionThumbnailViewModel:function(hv){return _.O(QH6,{data:hv.data,aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:d,doubleStack:function(){return l().collectionStackNumber===2},
hovered:B,playbackRef:LDy(f)})},
decoratedAvatarViewModel:_.bV})),_.O("div",{class:"yt-lockup-view-model-wiz__metadata"},_.O(_.Q7,{data:function(){var hv;return(hv=W())==null?void 0:hv.metadata}},{lockupMetadataViewModel:function(hv){return _.O(OQs,{data:hv.data,
lockupStyle:l,lockupCommand:function(){var $P;return _.w7(($P=W())==null?void 0:$P.rendererContext)},
lockupAccessibilityLabel:function(){return U()}})},
feedAdMetadataViewModel:function(hv){return _.O(hPK,{data:hv.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:I})}}),_.O(_.Q7,{data:function(){var hv;
return(hv=W())==null?void 0:hv.attachmentSlot}},{lockupAttachmentsViewModel:function(hv){return _.O(wrf,{data:hv.data,
lockupStyle:l})}})),_.O(_.Ha,{model:function(){a:{switch(l().collectionStackNumber){case 1:var hv=8;
break a;case 2:hv=12;break a}hv=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:hv}},
pointerDownEvent:Py.pointerDownEvent,pointerUpEvent:Py.pointerUpEvent,pointerLeaveEvent:Py.pointerLeaveEvent}))},"Ya");
_.US.idomCompat=!0;_.iF(_.US,"yt-lockup-view-model",{props:{data:_.vB,containerLayoutConfig:_.vB,containerType:_.vB,sizing:_.vB,protectBackground:_.vB,typographyBump:_.vB,thumbnailFixedWidth:_.vB,thumbnailTargetWidth:_.vB,force16By9ThumbnailAspectRatio:_.vB,className:_.vB,lockupExperiments:_.vB,elementsPerRow:_.vB}});var Fvn;_.zY(PRG);var d0G,Kv2=_.eY(function(y){var W=_.zb(y,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),V=W.text,w=W.alwaysShowTruncationText;y=W.truncationText;var t=W.onTextClick,F=W.maxLines,I=W.disableTextMask,P=W.textStyle,C=W.accessibilityLabel,d=W.textSize,L=W.alwaysTruncateAtMaxLines,z=W.expandOnClick;W=_.N(_.M1(!1,void 0,"Qz8MWe"));var c=W.next().value,K=W.next().value;W=_.YS(function(){z()&&K(!c());t==null||t()});
var f=function(){a:switch(d()){case "medium":var b=2;break a;case "large":b=2.2;break a;default:b=1.8}return b},U=ePa(V,function(){return c()?Infinity:F()},f,I,L),l=U.isTruncated;
V=U.displayText;L=U.contentRef;var x=U.hiddenRef,B=U.placeholderTruncationTextRef,r=U.hiddenTruncationTextRef;U=U.truncationTextRef;var H={},a={};return _.O("truncated-text",{class:_.kS((H["truncated-text-wiz"]=!0,H["truncated-text-wiz--overlay"]=function(){return P()==="overlay"},H["truncated-text-wiz--medium-text"]=function(){return d()==="medium"},H["truncated-text-wiz--large-text"]=function(){return d()==="large"},H["truncated-text-wiz--primary-text"]=function(){return P()==="primary-text"},H)),
"on:click":W,style:function(){return"line-height: "+f()+"rem;"}},_.O("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:L,style:function(){return c()?"":"max-height: "+F()*f()+"rem;"}},_.O(_.Lv,{text:V}),_.O("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:B,style:function(){return"line-height: "+f()+"rem;"}},_.O(_.Lv,{text:y}))),_.O("truncated-text-content",{class:_.kS("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:x,style:function(){return c()?"":"max-height: "+F()*f()+"rem;"},
"aria-hidden":"true"},_.O(_.Lv,{text:V}),_.O("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:r,style:function(){return"line-height: "+f()+"rem;"}},_.O(_.Lv,{text:y}))),_.O("button",{"aria-label":C,
class:_.kS((a["truncated-text-wiz__absolute-button"]=function(){return!I()},a["truncated-text-wiz__bottom-button"]=function(){return I()},a["truncated-text-wiz--hidden"]=function(){return!(!c()&&(w!=null&&w()||l()))},a)),
el:U,style:function(){return"line-height: "+f()+"rem;"}},_.O(_.Lv,{text:y})))},"Za"),MvL=_.e("web_enable_sink_truncated_text")?Kv2:PRG,prQ=_.e("web_enable_sink_truncated_text")?Kv2:_.Al(MvL,{callbacks:{onTextClick:!0}});
Kv2.idomCompat={callbacks:{onTextClick:!0}};_.zY(o7v);var qCu=_.nn({buttonViewModel:_.lk});_.zY(Tba);_.zY(iQP);_.zY(fKa);var Tbr=_.eY(function(y){var W=y.data;y=y.className;var V=_.DZ(function(){return u3n(W())},void 0,"Db3J3e");
return _.O("yt-video-attribute-view-model",{class:y},_.O("div",{class:function(){var w=W();a:switch(w.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var t="yt-video-attribute-view-model--vertical";break a;default:t="yt-video-attribute-view-model--horizontal"}a:switch(w.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var F="yt-video-attribute-view-model--image-small";break a;default:F="yt-video-attribute-view-model--image-large"}a:switch(w.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var I=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":I="yt-video-attribute-view-model--image-avatar";break a;default:I=""}a:switch(w.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var P="yt-video-attribute-view-model--metadata-header";break a;default:P=""}a:switch(w.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var C="yt-video-attribute-view-model--container-card";break a;default:C=""}return["yt-video-attribute-view-model",t,F,
I,P,C,u3n(w)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Rd({"background-color":function(){var w=W();if(w.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else{t=w.lightColorPalette;w=w.darkColorPalette;var F,I=((F=_.hs().resolve(_.eX(_.va)))==null?0:F())&&w?w:t;t=(t=I==null?void 0:I.section2Color)?_.wg(t):""}return t}})},_.O(_.v,{cond:function(){return V()||!_.e("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.O(_.It,{className:"yt-video-attribute-view-model__content-container",command:V,role:"group",ariaLabel:function(){return W().title}},_.O(_.v,{cond:function(){return W().heroText||W().image},
then:function(){return _.O(iQJ,{data:W})}}),_.O(fKr,{data:W,
sizeSmall:function(){return W().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.O("div",{class:"yt-video-attribute-view-model__content-container"},_.O(_.v,{cond:function(){return W().heroText||W().image},
then:function(){return _.O(iQJ,{data:W})}}),_.O(fKr,{data:W,
sizeSmall:function(){return W().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
Tbr.idomCompat=!0;var m0i=_.e("web_enable_sink_yt_video_attribute_view_model")?Tbr:_.Al(Tba),iQJ=_.eY(function(y){var W=y.data;var V,w=(V=_.hs().resolve(_.eX(_.va)))==null?void 0:V(),t=function(){return w&&W().darkThemeImage?W().darkThemeImage:W().image},F=_.DZ(function(){return SC4(W())},void 0,"Mkm2tb");
return _.O("div",{class:"yt-video-attribute-view-model__hero-section"},_.O(_.$V,null,_.O(_.BV,{when:t},function(){return _.O(_.ca,{data:function(){return t()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.O(_.BV,{when:function(){return W().heroText}},function(){return _.O("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.O("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return W().heroText}))})),_.O(_.v,{cond:function(){return W().overflowMenuOnTap},
then:function(){return _.O("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.O(zr,{data:F,iconName:"MORE_VERT"}))}}))},"bb");
iQJ.idomCompat=!0;var fKr=_.eY(function(y){var W=y.data;y=y.sizeSmall;var V=function(){return W().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},w=_.DZ(function(){return N4(_.EU({innertubeCommand:u3n(W())}))?"link":"group"},void 0,"tvI7S"),t={};
return _.O("div",{class:_.kS("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=y,t)),role:w},_.O("h1",{class:"yt-video-attribute-view-model__title"},function(){return W().title}),_.O(_.v,{cond:function(){return W().subtitle},
then:function(){return _.O("h4",{class:"yt-video-attribute-view-model__subtitle"},_.O(_.v,{cond:V,then:function(){return _.O(prQ,{text:function(){return U0y(W().subtitle)},
truncationText:function(){return U0y(W().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.O("span",null,function(){return W().subtitle})}}))}}),_.O(_.v,{cond:function(){return W().secondarySubtitle},
then:function(F){return _.O("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.O(_.Lv,{text:function(){var I=F();if(I!=null&&I.attachmentRuns){for(var P=[],C=_.N(I.attachmentRuns),d=C.next();!d.done;d=C.next())d=d.value,d.element&&P.push(Object.assign({},d,{element:Object.assign({},d.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));I=Object.assign({},I,{attachmentRuns:P})}return I}}))}}),_.O(_.Q7,
{data:function(){return W().buttonViewModel}},{buttonViewModel:function(F){return _.O(_.lk,{data:F.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
fKr.idomCompat=!0;_.iF(m0i,"yt-video-attribute-view-model",{props:{data:_.vB,className:_.vB}});var up=function(){var y=_.u.apply(this,arguments)||this;y.useHighlightStyling=_.e("web_enable_deeper_metadata_highlight_styling");y.isSearch=!1;y.JSC$15028_lastScrollContainerWidth=NaN;y.pageLoadingFromNavigation=!1;y.currentIndex=0;y.supportComponentResize=!1;return y};
_.p(up,_.u);_.E=up.prototype;
_.E.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}}}}}};
_.E.attached=function(){document.addEventListener("yt-page-type-changed",_.Dp(this,this.onPageChange))};
_.E.detached=function(){document.removeEventListener("yt-page-type-changed",_.Dp(this,this.onPageChange))};
_.E.getItemsPath=function(){return"data.cards"};
_.E.onIronResize=function(){this.updateListStyles()};
_.E.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var y;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(y=this.data)==null?void 0:y.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.e("problem_walkthrough_sd")&&!!this.centerItems};
_.E.computeCardListStyle=function(y){return y||null};
_.E.computeEmpty=function(y){return!this.get("cards.length",y)};
_.E.computeThumbnailStyle=function(y){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",y)||null};
_.E.computeHasSubtitle=function(y){return!!this.get("header.richListHeaderRenderer.subtitle",y)};
_.E.computeInitialCountNumber=function(y){return this.hasSquareMiniApp&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.E.computeUseFloorScrolling=function(y){return y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.E.computeHasGameCard=function(y){return(y=this.get("cards",y))?y.some(function(W){return W.gameCardRenderer}):!1};
_.E.computeCenterHeaderTitle=function(y){return!(y==null||!y.centerHeaderTitle)};
_.E.computeHasPortraitMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.E.computeHasSquareMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.E.computeHasSkinnyWidthPortraitMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.width===135}):!1};
_.E.computeCenterItems=function(y){return!!y};
_.E.computeHasInfoPanel=function(y){var W;return y==null?void 0:(W=y.cards)==null?void 0:W.some(function(V){return V.infoPanelContentRenderer})};
_.E.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.E.getItemByIndex=function(y){var W=this.items.children;return W&&W.length>y?W[y]:void 0};
_.E.onPageChange=function(){var y=this;this.pageLoadingFromNavigation=!0;_.HU.addJob(function(){y.pageLoadingFromNavigation=!1;_.Kg(y.hostElement,"yt-terminate-video-preview-action")},8)};
_.E.updateListStyles=function(){if(_.e("problem_walkthrough_sd")&&this.JSC$15028_scrollContainer!==void 0){var y=this.JSC$15028_scrollContainer.clientWidth;y!==this.JSC$15028_lastScrollContainerWidth&&(this.JSC$15028_lastScrollContainerWidth=y,_.qg(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(y*.8,415)+"px"}),_.h1(this.hostElement,"iron-resize"))}};
_.CM.Object.defineProperties(up.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.e("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.cards)==null?0:(V=W[0])==null?0:V.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.cards)==null?0:(V=W[0])==null?0:V.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return _.e("enable_desktop_amsterdam_info_panels")&&!!((y=this.data)==null?0:(W=y.cards)==null?0:(V=W[0])==null?0:V.infoPanelContentRenderer)}}});
up.prototype.dataChanged=up.prototype.dataChanged;up.prototype.onIronResize=up.prototype.onIronResize;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],up.prototype,"ytdHorizontalListBehavior",void 0);
_.J([_.m(_.V$),_.R("design:type",Object)],up.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],up.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],up.prototype,"useCustomColors",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],up.prototype,"useHighlightStyling",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.R("design:type",Object)],up.prototype,"cardListStyle",void 0);_.J([_.q({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.R("design:type",Boolean)],up.prototype,"empty",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.R("design:type",Boolean)],up.prototype,"hasSubtitle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.R("design:type",Boolean)],up.prototype,"thumbnailStyle",void 0);_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.R("design:type",Boolean)],up.prototype,"hasGameCard",void 0);_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.R("design:type",Boolean)],up.prototype,"centerHeaderTitle",void 0);
_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.R("design:type",Boolean)],up.prototype,"hasPortraitMiniApp",void 0);_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.R("design:type",Boolean)],up.prototype,"hasSquareMiniApp",void 0);_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.R("design:type",Boolean)],up.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.J([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.R("design:type",Boolean)],up.prototype,"hasInfoPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],up.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],up.prototype,"inlineStructuredDescription",void 0);_.J([_.s$("#scroll-container"),_.R("design:type",HTMLDivElement)],up.prototype,"JSC$15028_scrollContainer",void 0);
_.J([_.q({computed:"computeInitialCountNumber(data.style.type)"}),_.R("design:type",Number)],up.prototype,"initialCount",void 0);_.J([_.q({computed:"computeUseFloorScrolling(data.style.type)"}),_.R("design:type",Boolean)],up.prototype,"useFloorScrolling",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.R("design:type",Boolean)],up.prototype,"centerItems",void 0);_.J([_.q(),_.R("design:type",Object)],up.prototype,"pageLoadingFromNavigation",void 0);
_.J([_.q(),_.R("design:type",Object)],up.prototype,"currentIndex",void 0);_.J([_.q(),_.R("design:type",Number)],up.prototype,"scrollCount",void 0);_.J([_.q(),_.R("design:type",Object)],up.prototype,"supportComponentResize",void 0);_.J([_.s$("#items"),_.R("design:type",HTMLDivElement)],up.prototype,"items",void 0);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],up.prototype,"onIronResize",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],up.prototype,"dataChanged",null);_.J([_.q({reflectToAttribute:!0}),_.M("inlineStructuredDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"hideNavigationButton",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"modernChapters",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"hasVideoAttributeViewModels",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"modernInfoPanels",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],up);
_.Y(up,"ytd-horizontal-card-list-renderer",function(){if(oDR!==void 0)return oDR;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return oDR=y},{mode:_.qM("kevlar_poly_si_batch_j072")?1:2});var Mvf=_.eY(function(y){var W=y.data;var V={};return _.O("video-summary-content-view-model",{class:_.kS("video-summary-content-view-model-wiz",y.className,(V["video-summary-content-view-model-wiz--is-search"]=y.isSearch,V))},_.O(_.YV,{each:function(){var w=[],t=W().paragraphs;if(t==null||!t.length)return[];for(var F=0;F<t.length;F++){var I=_.h(t[F],YeA),P=void 0;F>0&&(P=_.h(t[F-1],YeA));P&&!!P.marker===!!I.marker?w[w.length-1].paragraphs.push(I):w.push({isList:!!I.marker,paragraphs:[I]})}return w},
keyBy:"INDEX"},function(w){return _.O(_.v,{cond:function(){return w().isList},
then:function(){return _.O("ul",{class:"video-summary-content-view-model-wiz__list"},_.O(_.YV,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(t){return _.O("li",{class:"video-summary-content-view-model-wiz__list-item"},_.O(_.Lv,{text:function(){return t().text}}))}))},
else:function(){return _.O(_.YV,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(t){return _.O("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.O(_.Lv,{text:function(){return t().text}}))})}})}),_.O(_.v,{cond:function(){return!!_.h(W().likeButtonViewModel,_.QJ)&&!!_.h(W().dislikeButtonViewModel,_.bI)},
then:function(){return _.O("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.O("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.O(_.Q$,{data:function(){return _.h(W().likeButtonViewModel,_.QJ)},
disableIconAnimation:!0})),_.O(_.ba,{data:function(){return _.h(W().dislikeButtonViewModel,_.bI)}}))}}))},"db");
Mvf.idomCompat=!0;_.iF(Mvf,"video-summary-content-view-model",{props:{data:_.vB,isSearch:_.vB,className:_.vB}});var SF=function(){var y=_.u.apply(this,arguments)||this;var W,V;y.isExpanded=(V=(W=y.data)==null?void 0:W.isExpanded)!=null?V:!1;y.disableExpand=!1;y.showProminentLabel=!1;y.showRightSideLabel=!0;y.toggleExpandableContent=function(w){y.disableExpand||(w.stopPropagation(),_.ef(_.O$(w),y.hostElement,["info","expanded-subtitle"])||(y.isExpanded=!y.isExpanded,y.ytRendererBehavior.logExplicitClick(y.data),y.JSC$15039_cardList&&!_.e("expandable_metadata_a11y_fix_ks")&&_.gy(y,function(){_.Pp(y.hostElement)})))};
y.useSquareThumbnail=!1;y.contentHiddenWithDisplayNone=_.e("web_expandable_metadata_content_hidden_with_display_none");y.startX=0;return y};
_.p(SF,_.u);_.E=SF.prototype;_.E.computeUseSquareThumbnail=function(){var y;return(y=this.data)==null?void 0:y.useSquareThumbnail};
_.E.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"}}}}};
_.E.dataChanged=function(){if(this.data){var y,W;this.isExpanded=(W=(y=this.data)==null?void 0:y.isExpanded)!=null?W:!1;var V,w,t,F;if(y=this.isDarkTheme()?(V=this.data)==null?void 0:(w=V.colorData)==null?void 0:w.darkColorPalette:(t=this.data)==null?void 0:(F=t.colorData)==null?void 0:F.lightColorPalette){var I,P;if((I=this.data)==null?0:(P=I.colorData)==null?0:P.vibrantColorPalette)y.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.bF(this.hostElement,y)}}};
_.E.isExpandedChanged=function(){this.isExpanded&&this.JSC$15039_cardList&&_.h1(this.JSC$15039_cardList,"iron-resize")};
_.E.computeIsExpanded=function(y){return!!y.isExpanded};
_.E.computeShowProminentLabel=function(y,W){var V;return!!(y==null?0:(V=y.header)==null?0:V.showLeadingCollapsedLabel)&&!W};
_.E.computeShowRightSideLabel=function(y,W){var V;return!(y==null?0:(V=y.header)==null?0:V.showLeadingCollapsedLabel)&&!W};
_.E.captureContentClick=function(y){if(!this.disableExpand)if(_.e("expandable_metadata_fix_killswitch")){var W=y.target;_.CtK(W,"ytd-macro-markers-list-item-renderer")||y.stopPropagation();(W==null?void 0:W.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.ef(_.O$(y),this.hostElement,["items"])||_.c5(_.O$(y),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.E.timestampClick=function(y){y.stopPropagation();var W,V;(y=(W=this.data)==null?void 0:(V=W.header)==null?void 0:V.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(y)};
_.E.onDown=function(y){y.stopPropagation();this.startX=y.detail?y.detail.x:0};
_.E.onUp=function(y){this.skipKeyInteraction(y)&&y.stopPropagation()};
_.E.skipKeyInteraction=function(y){var W=y.target;if((W==null?void 0:W.id)==="scroll-container"||(W==null?void 0:W.id)==="items"||y.detail&&y.detail.x!==this.startX)return!0;y=_.O$(y);y=_.N(y);for(W=y.next();!W.done;W=y.next()){W=W.value;if(W===this.hostElement)break;if(W.hasAttribute&&W.hasAttribute("skip-key-interaction"))return!0}return!1};
_.E.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.CM.Object.defineProperties(SF.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.h((y=this.data)==null?void 0:y.expandedContent,AqI)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.h((y=this.data)==null?void 0:y.expandedContent,_.kqi)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.useCustomColors)&&!((W=this.data)==null||!W.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.e("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
SF.prototype.onUp=SF.prototype.onUp;SF.prototype.onDown=SF.prototype.onDown;SF.prototype.isExpandedChanged=SF.prototype.isExpandedChanged;SF.prototype.dataChanged=SF.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],SF.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],SF.prototype,"isExpanded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],SF.prototype,"disableExpand",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],SF.prototype,"isSearch",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],SF.prototype,"isWatch",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.R("design:type",Object)],SF.prototype,"showProminentLabel",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.R("design:type",Object)],SF.prototype,"showRightSideLabel",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"hasVideoSummary",null);_.J([_.q({value:!1,reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"hasLockupViewModel",null);_.J([_.q({reflectToAttribute:!0}),_.M("data","isWatch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"useCustomColors",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"showInfoButton",null);_.J([_.M("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"showTimestamp",null);_.J([_.M("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"showExpandedSubtitle",null);
_.J([_.M("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"showThumbnail",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],SF.prototype,"useVppShoppingDestinationStyle",null);_.J([_.q(),_.R("design:type",Object)],SF.prototype,"toggleExpandableContent",void 0);_.J([_.s$("ytd-horizontal-card-list-renderer"),_.R("design:type",Object)],SF.prototype,"JSC$15039_cardList",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.R("design:type",Object)],SF.prototype,"useSquareThumbnail",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],SF.prototype,"contentHiddenWithDisplayNone",void 0);_.J([_.M("isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SF.prototype,"contentHidden",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],SF.prototype,"dataChanged",null);_.J([_.xA("isExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],SF.prototype,"isExpandedChanged",null);_.J([_.l6("down"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],SF.prototype,"onDown",null);
_.J([_.l6("up"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],SF.prototype,"onUp",null);_.J([_.k({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],SF);
_.Y(SF,"ytd-expandable-metadata-renderer",function(){if(uAq!==void 0)return uAq;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return uAq=y},{mode:1});var qCm,U0z=function(){if(qCm!==void 0)return qCm;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return qCm=y};_.iF(_.QF,"yt-avatar-stack-view-model",{props:{className:_.vB,data:_.vB,overrides:_.vB,isOverlay:_.vB,useMediumText:_.vB,decorations:_.vB,hideAvatar:_.vB}});_.ZQ("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Dr=function(){var y=_.u.apply(this,arguments)||this;y.disableExpand=!1;y.shouldShowChannelInfo=!1;y.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return y};
_.p(Dr,_.u);_.E=Dr.prototype;_.E.computeUseSearchUi=function(){var y,W;return this.isSearch||((y=this.data)==null?void 0:(W=y.style)==null?void 0:W.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.E.computeUseThreeLineTitle=function(){var y;return((y=this.data)==null?void 0:y.maxTitleLines)===3};
_.E.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.e("polymer_video_renderer_defer_menu")&&!p6i?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"}}}};
_.E.attached=function(){_.TA(this.hostElement,"blue-links",_.e("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.mg(_.i6(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;y&&((W=_.h(y.commandMetadata,_.Xf))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(y);this.updateInlinePreviewHoverListeners()};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15044_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.JSC$15044_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15044_inlinePreviewHoverListener)==null||cm(y)};
_.E.onTextWrapperClick=function(y){var W,V,w=this.hideTranslation?(W=this.data)==null?void 0:W.untranslatedNavigationEndpoint:(V=this.data)==null?void 0:V.navigationEndpoint;W=_.ef(_.O$(y),this.hostElement,["expandable-metadata"]);!w||W&&!_.e("expandable_metadata_fix_killswitch")||_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.h1(this.hostElement,"yt-navigate",{endpoint:w})};
_.E.computeThumbnailWidth=function(y,W,V,w,t){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:w?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:V?360:W?128:y?210:246};
_.E.computeUseBiggerThumbs=function(y){return y&&_.e("enable_desktop_search_bigger_thumbs")};
_.E.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.E.computeVideoStyle=function(){if(_.e("enable_video_style")){var y,W;return(y=this.data)==null?void 0:(W=y.style)==null?void 0:W.value}};
_.E.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.E.handleHideItemSectionVideosByIdCommand=function(y){var W;y=(W=_.h(y,EgR))==null?void 0:W.videoId;this.data&&this.data.videoId===y&&(this.isHidden=!0)};
_.E.getMetadataSnippetContainerClass=function(y){return y?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.E.computeTitleText=function(y,W,V){return y?V:W};
_.E.computeDescriptionSnippet=function(y,W,V){return y?V:W};
_.E.computeSnippetText=function(y,W,V){return y?V:W};
_.E.computeNavigationEndpoint=function(y,W){return y?W==null?void 0:W.untranslatedNavigationEndpoint:W==null?void 0:W.navigationEndpoint};
_.E.hideInlineTitleIcon=function(y,W){return y||!W};
_.CM.Object.defineProperties(Dr.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 y;return(y=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?y:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!(this==null?0:(y=this.data)==null?0:(W=y.channelThumbnailSupportedRenderers)==null?0:(V=W.channelThumbnailWithLinkRenderer)==null?0:V.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.h((y=this.data)==null?void 0:y.avatar,sbm)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15044_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.CM.Object.defineProperties(Dr,{template:{configurable:!0,enumerable:!0,get:function(){return U0z()}}});
Dr.prototype.dataChanged=Dr.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Dr.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Dr.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.gZ),_.R("design:type",Object)],Dr.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Dr.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Dr.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dr.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Dr.prototype,"isBackstageVideo",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Dr.prototype,"isPostCompactVideo",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Dr.prototype,"isHistory",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Dr.prototype,"isRichGridVideoPost",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Dr.prototype,"isHidden",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Dr.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.R("design:type",Boolean)],Dr.prototype,"useSearchUi",void 0);_.J([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.R("design:type",Boolean)],Dr.prototype,"useThreeLineTitle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.R("design:type",Boolean)],Dr.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.R("design:type",Object)],Dr.prototype,"videoStyle",void 0);_.J([_.q({computed:"computeDisableExpand(videoStyle)"}),_.R("design:type",Object)],Dr.prototype,"disableExpand",void 0);
_.J([_.q({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.R("design:type",Object)],Dr.prototype,"shouldShowChannelInfo",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],Dr.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.R("design:type",String)],Dr.prototype,"inlineTitleIcon",void 0);_.J([_.q({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.R("design:type",Object)],Dr.prototype,"computedNavigationEndpoint",void 0);_.J([_.q({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(y,W){return _.UB(y.entities,"searchVideoResultEntity",W)}}),
_.R("design:type",Object)],Dr.prototype,"searchVideoResultEntity",void 0);_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],Dr.prototype,"thumbnail",void 0);_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],Dr.prototype,"JSC$15044_dismissibleMedia",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dr.prototype,"dataChanged",null);
_.J([_.M("searchVideoResultEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dr.prototype,"hideTranslation",null);_.J([_.M("searchVideoResultEntity"),_.R("design:type",Array),_.R("design:paramtypes",[])],Dr.prototype,"hiddenBadgeGroups",null);_.J([_.M("data","useAvatar"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dr.prototype,"shouldShowChannelThumbnail",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dr.prototype,"useAvatar",null);
_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dr.prototype,"isHovered",null);_.J([_.k({is:"ytd-video-renderer",disableElementRegistration:!0})],Dr);_.Y(Dr,"ytd-video-renderer",function(){return U0z()},{mode:_.qM("kevlar_poly_si_batch_j047")?1:2});var lp=function(){var y=_.u.apply(this,arguments)||this;y.editDialog=null;y.roundedContainer=!0;y.isLoading=!1;y.isRichGrid=!1;y.isRichGridRepost=!1;y.reduceSidePaddings=_.e("reduce_side_paddings_in_shelf");y.JSC$15051_spinnerEl=null;return y};
_.p(lp,_.u);_.E=lp.prototype;
_.E.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"}}}};
_.E.contentTextChanged=function(){this.expander.reset()};
_.E.dataChanged=function(){var y=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var W=0,V=this.data.actions&&this.data.actions.length;W<V;W++)this.openEditDialog(_.h(this.data.actions[W],K$K));if((W=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(W=this.get("buttonRenderer.hint.hintRenderer.hintId",W))&&W.startsWith("share-post-hint")){var w=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(w){_.Kc.getInstance();var t=pc(_.CO(_.u5("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.HU.addLowPriorityJob(function(){_.fg(y.hostElement,t,w)})}}}};
_.E.updatePoll=function(y){y>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.E.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15051_spinnerEl||(this.JSC$15051_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.i6(this.hostElement).appendChild(this.JSC$15051_spinnerEl));this.JSC$15051_spinnerEl&&(this.JSC$15051_spinnerEl.active=this.isLoading)};
_.E.onYtNavigate=function(y){var W=this.get("updateCommentDialogEndpoint",y.detail.endpoint);W&&(this.openEditDialog(W),y.stopPropagation())};
_.E.onYtCommentboxDismiss=function(){this.editDialog=null};
_.E.onYtCommentPollRevert=function(y,W){W&&this.updatePoll(W.selectedChoiceIndex)};
_.E.onYtServiceRequestSent=function(y,W){var V;W.endpoint&&(_.h(W.endpoint,asz)||_.h(W.endpoint,XqJ)&&((V=_.h(W.endpoint,XqJ))==null||!V.clientActions))&&(this.isLoading=!0);if(W.actions)for(y=0;y<W.actions.length;y++)V=W.actions[y],_.h(V,n$)&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V==void 0&&(V=-1),this.updatePoll(V))};
_.E.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.E.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.editDialogEl.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.E.computeIsPostHidden=function(y,W){return!!y||W};
_.E.computeSurfaceType=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeUsesCompactLockup=function(y){return y==="BACKSTAGE_SURFACE_TYPE_HOME"||y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.E.computeShowWithoutToolbar=function(y){return!y.actionButtons&&!y.actionMenu};
_.E.computePostAttachment=function(y){if(y.backstageAttachment){if(_.h(y.backstageAttachment,MZI))return"poll";if(_.h(y.backstageAttachment,CIz))return"quiz";if(_.h(y.backstageAttachment,_.FB))return"video";if(_.h(y.backstageAttachment,O$r))return"uploaded-videos";if(_.h(y.backstageAttachment,Hls))return y.contentText?"image":"image-only";if(_.h(y.backstageAttachment,N1R))return"playlist"}return"none"};
_.E.computePostTabIndex=function(y){return y?0:-1};
_.E.computeButtonTooltipPosition=function(y){return this.computeUsesCompactLockup(y)?"top":"bottom"};
_.E.computeHasText=function(y){return!(y==null||!y.contentText)};
_.E.onTap=function(y){var W,V;if(((W=this.data)==null?0:W.navigationEndpoint)&&((V=this.data)==null?void 0:V.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.CM.Object.defineProperties(lp.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.CO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,MZI))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,O$r))}}});
lp.prototype.onYtServiceRequestCompleted=lp.prototype.onYtServiceRequestCompleted;lp.prototype.onYtServiceRequestSent=lp.prototype.onYtServiceRequestSent;lp.prototype.onYtCommentPollRevert=lp.prototype.onYtCommentPollRevert;lp.prototype.onYtCommentboxDismiss=lp.prototype.onYtCommentboxDismiss;lp.prototype.onYtNavigate=lp.prototype.onYtNavigate;lp.prototype.isLoadingChanged=lp.prototype.isLoadingChanged;lp.prototype.dataChanged=lp.prototype.dataChanged;lp.prototype.contentTextChanged=lp.prototype.contentTextChanged;
_.J([_.m(_.V$),_.R("design:type",Object)],lp.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lp.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],lp.prototype,"editDialog",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lp.prototype,"roundedContainer",void 0);_.J([_.q(),_.R("design:type",Object)],lp.prototype,"isLoading",void 0);_.J([_.q({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.R("design:type",String)],lp.prototype,"surface",void 0);
_.J([_.q({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lp.prototype,"usesCompactLockup",void 0);_.J([_.q({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lp.prototype,"showWithoutToolbar",void 0);_.J([_.q({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.R("design:type",String)],lp.prototype,"attachment",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lp.prototype,"isRichGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lp.prototype,"isRichGridRepost",void 0);_.J([_.q({reflectToAttribute:!0,value:_.e("use_better_post_dismissals")}),_.R("design:type",Boolean)],lp.prototype,"useBetterPostDismissals",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lp.prototype,"reduceSidePaddings",void 0);
_.J([_.q({computed:"computeHasText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lp.prototype,"hasText",void 0);_.J([_.s$("#expander"),_.R("design:type",Object)],lp.prototype,"expander",void 0);_.J([_.s$("#action-buttons"),_.R("design:type",Object)],lp.prototype,"actionButtons",void 0);_.J([_.s$("#edit-dialog"),_.R("design:type",HTMLElement)],lp.prototype,"editDialogEl",void 0);
_.J([_.xA("data.contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lp.prototype,"contentTextChanged",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lp.prototype,"dataChanged",null);_.J([_.xA("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lp.prototype,"isLoadingChanged",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lp.prototype,"onYtNavigate",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lp.prototype,"onYtCommentboxDismiss",null);_.J([_.l6("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],lp.prototype,"onYtCommentPollRevert",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],lp.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],lp.prototype,"onYtServiceRequestCompleted",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],lp.prototype,"voteCount",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],lp.prototype,"commentCount",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lp.prototype,"hasPoll",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lp.prototype,"hasUploadedVideo",null);_.J([_.k({is:"ytd-post-renderer",disableElementRegistration:!0})],lp);
_.Y(lp,"ytd-post-renderer",function(){if(QWi!==void 0)return QWi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return QWi=y},{mode:1});var u32;var SCQ;var xr=function(){return _.u.apply(this,arguments)||this};
_.p(xr,_.u);xr.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],xr.prototype,"ytdHorizontalListBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],xr.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xr.prototype,"data",void 0);
_.J([_.q({value:"$.items.children"}),_.R("design:type",String)],xr.prototype,"itemsPath",void 0);_.J([_.q({value:1}),_.R("design:type",Number)],xr.prototype,"initialCount",void 0);_.J([_.q(),_.R("design:type",String)],xr.prototype,"surface",void 0);_.J([_.k({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],xr);
_.Y(xr,"ytd-post-multi-image-renderer",function(){if(SCQ!==void 0)return SCQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return SCQ=y},{mode:_.qM("kevlar_poly_si_batch_j079")?1:2});var D0m={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},kr=function(){var y=_.u.apply(this,arguments)||this;y.hasInlineCommentSection=!1;y.editDialog=null;y.isLoading=!1;y.shouldHideAuthor=!1;y.shouldShowVideoTime=!1;
y.isInEngagementPanel=!1;y.hideBorder=!1;y.usesFullLockup=!1;y.shouldShowMenuInCompactView=!1;y.JSC$15067_spinnerEl=null;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.p(kr,_.u);_.E=kr.prototype;_.E.configureRendererStamper=function(){return D0m};
_.E.computeIsPollHeaderEnabled=function(y){return(y==null?void 0:y.pollMetadataIcon)!=null};
_.E.getPublishTimeStampString=function(y,W){W=new Date((Number(W)-60*((new Date).getTimezoneOffset()-(new Date(Number(W)*1E3)).getTimezoneOffset()))*1E3);W=(new gP(10)).format(W);if(y&&y.runs&&y.runs.length)for(var V=0;V<y.runs.length;V++)y.runs[V].text&&(y.runs[V].text=y.runs[V].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",W));return y};
_.E.created=function(){this.JSC$15067_spinnerEl=null};
_.E.contentTextChanged=function(){this.expander.reset()};
_.E.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var y;if((y=this.data)==null?0:y.actions){y=_.N(this.data.actions);for(var W=y.next();!W.done;W=y.next())this.openEditDialog(_.h(W.value,K$K))}};
_.E.handleSignalActionOpenPostCommentDialogAction=function(){_.i6(this.hostElement).querySelector("#action-buttons").reply()};
_.E.updatePoll=function(y,W){W&&this.set("data.pollMetadataVoteCountText",W);this.hasInlineCommentSection&&(y=y>=0,W=_.i6(this.hostElement).querySelector("#action-buttons"),y?W.reply():W.hideReplyDialog())};
_.E.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15067_spinnerEl||(this.JSC$15067_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.i6(this.hostElement).appendChild(this.JSC$15067_spinnerEl));this.JSC$15067_spinnerEl&&(this.JSC$15067_spinnerEl.active=this.isLoading)};
_.E.onYtNavigate=function(y){var W=this.get("updateCommentDialogEndpoint",y.detail.endpoint);W&&(this.openEditDialog(W),y.stopPropagation())};
_.E.onYtCommentboxDismiss=function(){this.editDialog=null};
_.E.onYtCommentPollRevert=function(y,W){W&&this.updatePoll(W.selectedChoiceIndex,W.totalVotes)};
_.E.onYtServiceRequestSent=function(y,W){y.stopPropagation();y=_.h(W.endpoint,XqJ);if(_.h(W.endpoint,asz)||y&&!y.clientActions)this.isLoading=!0;if(W.actions)for(y=0;y<W.actions.length;y++){var V=W.actions[y],w=_.h(V,n$);w&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V===void 0&&(V=-1),this.updatePoll(V,w.totalVotes))}};
_.E.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.E.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.editDialogElement.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.E.computeIsBodyHidden=function(y,W){return!!y||W};
_.CM.Object.defineProperties(kr.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.pollMetadataIcon)==null?0:W.iconType)return _.D8(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.CO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,MZI))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,CIz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,O$r))}}});
kr.prototype.onYtServiceRequestCompleted=kr.prototype.onYtServiceRequestCompleted;kr.prototype.onYtServiceRequestSent=kr.prototype.onYtServiceRequestSent;kr.prototype.onYtCommentPollRevert=kr.prototype.onYtCommentPollRevert;kr.prototype.onYtCommentboxDismiss=kr.prototype.onYtCommentboxDismiss;kr.prototype.onYtNavigate=kr.prototype.onYtNavigate;kr.prototype.isLoadingChanged=kr.prototype.isLoadingChanged;kr.prototype.dataChanged=kr.prototype.dataChanged;kr.prototype.contentTextChanged=kr.prototype.contentTextChanged;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],kr.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kr.prototype,"rendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],kr.prototype,"rendererstamperBehavior",void 0);_.J([_.s$("#contentTextExpander"),_.R("design:type",Object)],kr.prototype,"expander",void 0);
_.J([_.s$("#edit-dialog"),_.R("design:type",Element)],kr.prototype,"editDialogElement",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"hasInlineCommentSection",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"editDialog",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"isLoading",void 0);
_.J([_.q({computed:"computeIsPollHeaderEnabled(data)"}),_.R("design:type",Boolean)],kr.prototype,"isPollHeaderEnabled",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"shouldHideAuthor",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"shouldShowVideoTime",void 0);_.J([_.q(),_.R("design:type",Object)],kr.prototype,"isInEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],kr.prototype,"hideBorder",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],kr.prototype,"usesFullLockup",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],kr.prototype,"shouldShowMenuInCompactView",void 0);_.J([_.M("isInEngagementPanel"),_.R("design:type",Number),_.R("design:paramtypes",[])],kr.prototype,"postTextMaxLines",null);_.J([_.M("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],kr.prototype,"pollIcon",null);
_.J([_.xA("data.contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kr.prototype,"contentTextChanged",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kr.prototype,"dataChanged",null);_.J([_.xA("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kr.prototype,"isLoadingChanged",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],kr.prototype,"onYtNavigate",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kr.prototype,"onYtCommentboxDismiss",null);_.J([_.l6("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],kr.prototype,"onYtCommentPollRevert",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],kr.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],kr.prototype,"onYtServiceRequestCompleted",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],kr.prototype,"voteCount",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],kr.prototype,"commentCount",null);_.J([_.M("data.backstageAttachment"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],kr.prototype,"hasPoll",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],kr.prototype,"hasQuiz",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],kr.prototype,"hasUploadedVideo",null);
_.J([_.k({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],kr);
_.Y(kr,"ytd-backstage-post-renderer",function(){if(u32!==void 0)return u32;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return u32=y},{mode:1});var lKm;var sS=function(){var y=_.u.apply(this,arguments)||this;y.editDialog=null;y.showExpandButton=!1;y.isRichGrid=!1;y.usesFullLockup=!1;return y};
_.p(sS,_.u);_.E=sS.prototype;_.E.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"}}}};
_.E.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.E.computeShowExpandButton=function(y){return this.usesCompactLockup||y&&y.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.E.computeUsesCompactLockup=function(y){return!!y.condensedContent};
_.E.computeShowFullContentText=function(y){return!y};
_.E.onYtNavigate=function(y){y=this.get("updateCommentDialogEndpoint",y.detail.endpoint);this.openEditDialog(y)};
_.E.onYtCommentboxDismiss=function(){this.editDialog=null};
_.E.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.repostEditDialogEl.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.E.onTap=function(y){if(this.data){var W=null;this.usesCompactLockup&&!_.c5(_.O$(y)||[],this.hostElement,["YT-IMG-SHADOW"])?W=this.get("navigationEndpoint",this.data):y.target===this.moreButtonEl&&(W=this.get("navigationEndpoint",y.target.data));W&&_.h1(this.hostElement,"yt-navigate",{endpoint:W})}};
sS.prototype.onYtCommentboxDismiss=sS.prototype.onYtCommentboxDismiss;sS.prototype.onYtNavigate=sS.prototype.onYtNavigate;sS.prototype.dataChanged=sS.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sS.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],sS.prototype,"editDialog",void 0);_.J([_.q({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],sS.prototype,"usesCompactLockup",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],sS.prototype,"showExpandButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],sS.prototype,"isRichGrid",void 0);
_.J([_.q({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.R("design:type",Boolean)],sS.prototype,"showFullContentText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],sS.prototype,"usesFullLockup",void 0);_.J([_.s$("#more"),_.R("design:type",Object)],sS.prototype,"moreButtonEl",void 0);_.J([_.s$("#repost-content-text"),_.R("design:type",HTMLElement)],sS.prototype,"repostContentTextEl",void 0);
_.J([_.s$("#repost-edit-dialog"),_.R("design:type",HTMLElement)],sS.prototype,"repostEditDialogEl",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sS.prototype,"dataChanged",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sS.prototype,"onYtNavigate",null);
_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sS.prototype,"onYtCommentboxDismiss",null);_.J([_.k({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],sS);
_.Y(sS,"ytd-shared-post-renderer",function(){if(lKm!==void 0)return lKm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lKm=y},{mode:1});var x0s;var k9A;var Ak=function(){return _.u.apply(this,arguments)||this};
_.p(Ak,_.u);Ak.prototype.attached=function(){var y=this;this.networkStatusManager||(this.networkStatusManager=new _.NN,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){y.onlineHandler()}))};
Ak.prototype.detached=function(){var y=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){y.onlineHandler()}),delete this.networkStatusManager)};
Ak.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ak.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ak.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ak);
_.Y(Ak,"ytd-reload-page-button-renderer",function(){if(k9A!==void 0)return k9A;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return k9A=y},{mode:1});var srJ={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"},Yr=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(Yr,_.u);_.E=Yr.prototype;_.E.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.E.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E.computeHasBodyText=function(y){return!!y.bodyText};
_.E.computeButtons=function(y){var W=[];y.ctaButton&&W.push(y.ctaButton);y.secondaryButton&&W.push(y.secondaryButton);return W};
_.E.computeRendererStyle=function(y){return y.style?y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():y.icon?"":"no-icon"};
_.E.getIconName=function(y,W){W=W===void 0?!1:W;if(y===void 0)return"";y=this.get("icon.iconType",y);var V;_.e("enable_hlp_client_icon_pick")?V=this.getThemedIcon(y,W):V=y;(W=srJ[V])||(W="yt-icons");return[W,V].join(":")};
_.E.getThemedIcon=function(y,W){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(y)?W?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(y)?W?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":y};
_.E.isThumbnail=function(y){return!!y.thumbnail};
_.E.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.E.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Yr.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yr.prototype,"data",void 0);
_.J([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],Yr.prototype,"rendererStyle",void 0);_.J([_.q({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.R("design:type",String)],Yr.prototype,"iconName",void 0);_.J([_.q({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Yr.prototype,"thumbnail",void 0);_.J([_.q({computed:"computeButtons(data)"}),_.R("design:type",Array)],Yr.prototype,"buttons",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Yr.prototype,"isDarkTheme",void 0);_.J([_.q({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Yr.prototype,"hasBodyText",void 0);_.J([_.k({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Yr);
_.Y(Yr,"ytd-background-promo-renderer",function(){if(x0s!==void 0)return x0s;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return x0s=y},{mode:1});var ATz;var BG=function(){var y=_.u.apply(this,arguments)||this;y.collections=_.e("web_modern_collections_v2");return y};
_.p(BG,_.u);_.CM.Object.defineProperties(BG.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(w=V.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(F=t.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:this.collections}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BG.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],BG.prototype,"collections",void 0);_.J([_.M("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],BG.prototype,"collectionStack",null);_.J([_.k({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],BG);
_.Y(BG,"ytd-compact-station-renderer",function(){if(ATz!==void 0)return ATz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ATz=y},{mode:1});var YCE;var Jk=function(){var y=_.u.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.p(Jk,_.u);Jk.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]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Jk.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Jk.prototype,"isRichGrid",void 0);_.J([_.k({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Jk);
_.Y(Jk,"ytd-grid-channel-renderer",function(){if(YCE!==void 0)return YCE;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return YCE=y},{mode:1});var Bb6;var Rz=function(){return _.u.apply(this,arguments)||this};
_.p(Rz,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Rz.prototype,"data",void 0);_.J([_.k({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Rz);
_.Y(Rz,"ytd-grid-movie-playlist-renderer",function(){if(Bb6!==void 0)return Bb6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Bb6=y},{mode:1});var JT2;var jF=function(){var y=_.u.apply(this,arguments)||this;y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.modernButtons=_.e("web_modern_buttons");y.useModernCollectionsV2=_.e("web_modern_collections_v2");return y};
_.p(jF,_.u);jF.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
jF.prototype.configureRendererStamper=function(){return{"data.menu":kq}};
jF.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
jF.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.e("woffle_playlist_renderer_killswitch")){var y,W=KPz(this.entityInfo,this.transferState,this.downloadProgress,(y=this.data)==null?void 0:y.playlistId,this.isOnline);y=W.viewPlaylistText;var V=W.badges;W=W.thumbnailOverlays;this.isDownloads=!!y||!!V;this.set("data.viewPlaylistText",y);V&&V.length>0&&this.set("data.badges",V);W&&W.length>0&&this.set("data.thumbnailOverlays",
W)}};
_.CM.Object.defineProperties(jF.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 y;return!((y=this.data)==null?0:y.menu)}}});
jF.prototype.transferStateChanged=jF.prototype.transferStateChanged;jF.prototype.dataChanged=jF.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],jF.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],jF.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q({selector:_.kd4,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],jF.prototype,"downloadProgress",void 0);_.J([_.q({selector:_.W9,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],jF.prototype,"transferState",void 0);_.J([_.q({selector:xxj,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],jF.prototype,"entityInfo",void 0);_.J([_.q({selector:_.ZH}),_.R("design:type",Boolean)],jF.prototype,"isOnline",void 0);
_.J([_.q(),_.R("design:type",Object)],jF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],jF.prototype,"downloadRenderData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jF.prototype,"modernButtons",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],jF.prototype,"isDownloads",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jF.prototype,"useModernCollectionsV2",void 0);
_.J([_.M("transferState"),_.q({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],jF.prototype,"downloadState",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jF.prototype,"menuHidden",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jF.prototype,"dataChanged",null);
_.J([_.Jc("transferState","downloadProgress","isOnline"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jF.prototype,"transferStateChanged",null);_.J([_.k({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],jF);
_.Y(jF,"ytd-grid-playlist-renderer",function(){if(JT2!==void 0)return JT2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return JT2=y},{mode:1});var RPA;var $r=function(){var y=_.u.apply(this,arguments)||this;y.collections=_.e("web_modern_collections_v2");return y};
_.p($r,_.u);$r.prototype.configureRendererStamper=function(){return{"data.menu":kq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.CM.Object.defineProperties($r.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(w=V.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(F=t.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:this.collections}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],$r.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],$r.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$r.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],$r.prototype,"collections",void 0);_.J([_.M("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],$r.prototype,"collectionStack",null);_.J([_.k({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],$r);
_.Y($r,"ytd-grid-radio-renderer",function(){if(RPA!==void 0)return RPA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return RPA=y},{mode:1});var jrJ;var n9=function(){var y=_.u.apply(this,arguments)||this;y.useModernCollectionsV2=_.e("web_modern_collections_v2");return y};
_.p(n9,_.u);n9.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
n9.prototype.computeNavigationEndpoint=function(y){return Ufy(y==null?void 0:y.navigationEndpoint)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],n9.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],n9.prototype,"data",void 0);_.J([_.q({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],n9.prototype,"computedNavigationEndpoint",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],n9.prototype,"useModernCollectionsV2",void 0);_.J([_.k({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],n9);
_.Y(n9,"ytd-grid-show-renderer",function(){if(jrJ!==void 0)return jrJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jrJ=y},{mode:1});var $0R;_.HG=function(y){this.playerClient=y};
_.n7f=function(y,W,V){V=V===void 0?{}:V;return y.playerClient.setOption("ad",W,V)};
_.HG.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.HG.prototype.executeCommand=function(y,W){this.getOptions().includes("executeCommand")?_.n7f(this,"executeCommand",{command:y,layoutId:W}):_.ce("Calling executeCommand when adModule is not loaded")};var XH=function(){return _.u.apply(this,arguments)||this};
_.p(XH,_.u);XH.prototype.getLayoutId=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
XH.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var y=_.Kn(),W=this.getLayoutId(),V=this.data.clickthroughEndpoint;y&&W&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(w){(new _.HG(w)).executeCommand(V,W)}):_.h1(this.hostElement,"yt-navigate",{endpoint:V})}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XH.prototype,"data",void 0);_.J([_.k({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],XH);
_.Y(XH,"ytd-shopping-companion-item-renderer",function(){if($0R!==void 0)return $0R;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return $0R=y},{mode:1});var HQE;var az=function(){var y=_.u.apply(this,arguments)||this;y.isExpandableContent=!1;return y};
_.p(az,_.u);_.CM.Object.defineProperties(az.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?void 0:y.price)||((W=this.data)==null?void 0:(V=W.dealsData)==null?void 0:V.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)!=null&&y.dealsData&&((W=this.data)==null||!W.priceReplacementText)){y=this.data.dealsData;var V,w,t;return((V=y.salesData)==null?void 0:V.originalPrice)||((w=y.priceDropData)==null?void 0:w.referencePrice)||((t=y.promotionData)==null?void 0:t.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return(y=this.data)==null?void 0:(W=y.dealsData)==null?void 0:W.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],az.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],az.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],az.prototype,"isExpandableContent",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"showCta",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"ctaText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"hasPriceTopPosition",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"hasPriceBottomPosition",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"useNewStyle",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"showPriceReplacementText",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"priceValue",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"showDeal",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"showAffiliateDisclaimer",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"useSaleStyle",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"useFromBrandCtaStyle",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"useFromVendorCtaStyle",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],az.prototype,"useShoppingCollectionCtaStyle",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],az);
_.Y(az,"ytd-vertical-product-card-renderer",function(){if(HQE!==void 0)return HQE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HQE=y},{mode:1});var Xrs;var GX=function(){return _.u.apply(this,arguments)||this};
_.p(GX,_.u);GX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],GX.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],GX.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],GX);
_.Y(GX,"ytd-grid-movie-renderer",function(){if(Xrs!==void 0)return Xrs;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Xrs=y},{mode:1});var aKQ;var rX=function(){var y=_.u.apply(this,arguments)||this;y.rounded=!0;y.itemStyle="small-item";return y};
_.p(rX,_.u);rX.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var y,W,V,w,t=(W=_.h((y=this.data)==null?void 0:y.buttonCommand,_.Jr))==null?void 0:(V=W.item)==null?void 0:(w=V.notificationTextRenderer)==null?void 0:w.successResponseText;t&&_.D0u(this.hostElement,t)}};
_.CM.Object.defineProperties(rX.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.isProductPlaceholder)!==void 0&&((W=this.data)==null?void 0:W.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],rX.prototype,"rounded",void 0);_.J([_.q(),_.R("design:type",Object)],rX.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],rX.prototype,"itemStyle",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"hasPrice",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"hasPriceReplacementText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"hasAdditionalFeesText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"hasAffiliateDisclaimer",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"isProductPlaceholder",null);
_.J([_.q(),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"hideOpenInNewIcon",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rX.prototype,"ariaLabel",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],rX);
_.Y(rX,"ytd-merch-shelf-item-renderer",function(){if(aKQ!==void 0)return aKQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return aKQ=y},{mode:1});var G9E=_.eY(function(y){return _.O("button-card-view-model",{el:_.hl(_.FW(function(){return y.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return y.data().title},
role:"button"},_.O(_.Ha,{model:{}}),_.O("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.O("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.O(_.v,{cond:function(){return y.data().image},
then:function(W){return _.O(_.ca,{data:W,alt:function(){var V;return(V=y.data().title)!=null?V:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.O("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return y.data().title})))},"eb");_.e("web_button_view_model_wcw_registration_killswitch")||_.iF(G9E,"button-card-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){y=_.zb(y,{className:void 0});var W=y.data;y=y.className;var V=_.DZ(function(){return W().onTapCommand},void 0,"NprDr");
return _.O("ytd-shopping-item-card",{class:_.kS("ytdShoppingItemCardHost",y)},_.O(_.It,{command:V,className:"ytdShoppingItemCardHostLink"},_.O("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.O(_.Q7,{data:function(){return W().thumbnailViewModel}},{thumbnailViewModel:function(w){return _.O(_.hk,{data:w.data,
aspectRatio:3})}})),_.O("div",null,_.O("p",{class:"ytdShoppingItemCardHostItemTitle"},_.O(_.Lv,{text:function(){return W().itemTitle}})),_.O("p",{class:"ytdShoppingItemCardHostPrice"},_.O(_.Lv,{text:function(){return W().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.vB,
className:_.vB}});var rTK={isAdsVideo:!0},bQr={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Qr6={showPlayerControls:!1,videoPreviewDurationMs:15E3},ZQq={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.e("web_shorts_imp_fullwidth_killswitch")};var hO=null,lKu={};var srP="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(" "),bp={},ATy=(bp.FEwhat_to_watch="home",bp.FEhashtag="hashtag",bp.FEtrending="trending",bp.FEhistory="history",bp.SPunlimited="premium",bp.FEmemberships_and_purchases="paid_memberships",bp.SPredeem_code="redeem",bp.SPverify_location="locate",bp.SPminor_moment="minor_moment",
bp.FEmini_app_container="mini_app",bp.FEnews_destination="news",bp.SPopen_in_app="open_in_app",bp.FEexplore="explore",bp.FEsubscriptions="subscriptions",bp.FEsfv_audio_pivot="sfv_audio_pivot",bp.FEplaylist_aggregation="playlist_aggregation",bp);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");_.T2("init");var yaK=function(){},tzq=_.eY(function(y){var W=y.data;
var V=y.inlineMetadata;var w=y.aspectRatio;var t=y.scrimStyle;var F=y.className;var I=y.useDefaultStyle;var P=new yaK,C=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.DZ(function(){return(I==null?0:I())?C==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),L=_.DZ(function(){return _.Gt(V)||d()||!1},void 0,"x8cr8b"),z=function(){return(t==null?void 0:t())!==void 0?t==null?void 0:t():1},c=_.DZ(function(){return W().belowThumbnailMetadata||
!L()},void 0,"Q84Mmb");
y=_.L7({visibilityCallback:function(a){var b=W().onFirstVisible;a&&b&&_.Id(b)},
showOption:{calledOnce:!0,state:"visible"}});var K=_.hl(),f={};f=_.kS(function(){return d(),"shortsLockupViewModelHostThumbnailContainer"},(f.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Gt(w)===1},f.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Gt(w)===2},f.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!d()},f.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.e("web_shorts_2_by_3_lockups_study")&&
!_.e("desktop_search_enable_two_by_three_shorts_aspect_ratio")},f));
var U,l=function(){if(P){var a;(a=U)==null||cm(a);var b;P.hostElement&&((b=P.data)==null?0:b.inlinePlayerData)&&(U=NU({mediaRenderer:P,lockupElement:P.hostElement,thumbnailElement:K.value,videoPreviewOpts:ZQq}))}};
_.H1(function(){P&&(P.data=W(),l())},"RII9Hf");
var x=_.DZ(function(){return W().thumbnail},void 0,"QlEII"),B=_.DZ(function(){return W().badge},void 0,"ODd68c"),r=_.DZ(function(){return W().onTap},void 0,"lgNBIc"),H={};
return _.O("ytm-shorts-lockup-view-model",{el:_.hl(function(a){P&&(P.hostElement=a)},l,y),
class:_.kS("shortsLockupViewModelHost",F)},_.O(_.o8,null,_.O(_.It,{command:r,className:_.kS("shortsLockupViewModelHostEndpoint",(H.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!c()},H),"reel-item-endpoint",""),
ariaHidden:function(){return!L()},
tabIndex:function(){return L()?0:-1}},_.O("div",{el:K,
class:f},_.O(_.v,{cond:x,then:function(){return _.O(_.ca,{data:function(){var a;return(a=x==null?void 0:x())!=null?a:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.O(_.v,{cond:L,
then:function(){return _.O(W5I,{data:W,scrimStyle:z,useDefaultStyle:I})}}),_.O(_.Q7,{data:B},{badgeViewModel:function(a){return _.O(_.ip,{data:a.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.O(_.v,{cond:function(){return L()&&W().menuOnTap},
then:function(){return _.O(Vzf,{data:W,inlineMetadata:!0})}}),_.O(_.v,{cond:c,
then:function(){return _.O(wAr,{data:W,useDefaultStyle:I,inlineMetadata:L})}})))},"gb"),W5I=_.eY(function(y){var W=y.data;
var V=y.scrimStyle;var w=y.useDefaultStyle;var t=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=w&&_.e("web_hide_primary_text_for_pivot_panel"),I=_.DZ(function(){return(w==null?0:w())?t==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
y={};y=_.kS("shortsLockupViewModelHostInlineMetadata",(y.shortsLockupViewModelHostMetadataRounded=function(){return!I()},y.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(V==null?void 0:V())===3&&!_.e("enable_shorts_lockup_new_scrim")},y.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(V==null?void 0:V())===3&&_.e("enable_shorts_lockup_new_scrim")},y.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(V==null?void 0:V())===2||(V==null?void 0:
V())===4},y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},y),"image-overlay-text");
var P={};return _.O("div",{class:y},_.O("h3",{class:_.kS("shortsLockupViewModelHostMetadataTitle",(P.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(V==null?void 0:V())===4},P)),
"aria-label":function(){return W().accessibilityText}},_.O(_.v,{cond:function(){var C;
return!((C=W().overlayMetadata)==null||!C.primaryText)&&!F},
then:function(){return _.O(_.Lv,{text:function(){var C;return(C=W().overlayMetadata)==null?void 0:C.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.O(_.v,{cond:function(){var C;
return(C=W().overlayMetadata)==null?void 0:C.secondaryText},
then:function(){return _.O(F5A,{data:W,scrimStyle:V,className:void 0})}}))},"hb"),wAr=_.eY(function(y){var W=y.data;
var V=y.useDefaultStyle;var w=y.inlineMetadata;var t=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.DZ(function(){return(V==null?0:V())?t==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KburAe");
y=_.kS(function(){return F()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var I=_.hl(),P,C=_.YS(function(f){if(_.VS(_.We(f),I.value,["AVATAR-VIEW-MODEL"]))return!1;var U;(U=P)==null||U.click();return!1}),d=_.DZ(function(){return W().belowThumbnailMetadata||W().overlayMetadata},void 0,"c3tkld"),L=function(){return W().menuOnTap&&!w()},z=function(){var f;
return(f=d())==null?void 0:f.avatar},c={},K={};
return _.O("div",{class:_.kS(y,(c.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!z()},c.shortsLockupViewModelHostOutsideMetadataHasMenu=L,c)),
"on:click":C,el:I},_.O(_.Q7,{data:z},{avatarViewModel:function(f){return _.O("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.O(_.ra,{data:f.data}))}}),_.O("div",null,_.O("h3",{class:_.kS("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(K.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var f,U;
return!((f=d())==null?0:(U=f.primaryText)==null?0:U.content)},K)),
"aria-label":function(){return W().accessibilityText}},_.O(_.It,{ref:function(f){return void(P=f)},
command:function(){return W().onTap},
className:_.kS("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var f,U;return(f=d())==null?void 0:(U=f.primaryText)==null?void 0:U.content}},_.O(_.v,{cond:function(){var f;
return(f=d())==null?void 0:f.primaryText},
then:function(f){return _.O(_.Lv,{text:f,noEndpoints:!0,noStyleRuns:!0})}}))),_.O(_.v,{cond:function(){var f;
return(f=d())==null?void 0:f.secondaryText},
then:function(f){return _.O("div",{class:_.kS("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.O(_.Lv,{text:f,noStyleRuns:!0}))}})),_.O(_.v,{cond:L,
then:function(){return _.O(Vzf,{data:W,inlineMetadata:!1})}}))},"ib"),F5A=_.eY(function(y){var W=y.data;
var V=y.scrimStyle;y=y.className;var w={};return _.O("div",{class:_.kS((w.shortsLockupViewModelHostMetadataSubhead=function(){return(V==null?void 0:V())!==4},w.shortsLockupViewModelHostMetadataSubheadNew=_.e("enable_shorts_lockup_new_scrim"),w.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(V==null?void 0:V())===4},w),y),
"aria-hidden":"true"},_.O(_.Lv,{text:function(){var t;return(t=W().overlayMetadata)==null?void 0:t.secondaryText},
noStyleRuns:!0}))},"jb"),Vzf=_.eY(function(y){var W=y.data;
var V=y.inlineMetadata;y={};y=_.kS((y.shortsLockupViewModelHostInlineMetadataMenu=function(){return V()},y.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!V()},y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},y),"image-overlay-text");
return _.O("div",{class:y},_.O(zr,{data:function(){return{style:V()?"overlay":"mono",accessibilityLabel:W().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(w){w.preventDefault();w.stopPropagation();var t=_.EU({elementsCommand:W().menuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(w)}}},
iconName:"MORE_VERT"}))},"kb");var Em2=_.eY(function(y){var W=y.data;var V=y.inlineMetadata;var w=y.aspectRatio;var t=y.scrimStyle;var F=y.className;var I=y.useDefaultStyle;y=_.DZ(function(){var P=W().entityId;return P?P.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.O("ytm-shorts-lockup-view-model-v2",{class:_.kS("shortsLockupViewModelHost",F)},_.O(_.ml,{contentId:y,aspectRatio:function(){return(w==null?void 0:w())===1?1:(w==null?void 0:w())===2?2:4}},function(){return _.O(tzq,{data:W,
inlineMetadata:V,aspectRatio:w,scrimStyle:t,className:F,useDefaultStyle:I})}))},"lb");_.iF(Em2,"ytm-shorts-lockup-view-model-v2",{props:{data:_.p5,inlineMetadata:_.p5,aspectRatio:_.p5,scrimStyle:_.p5,className:_.p5,useDefaultStyle:_.p5}});var N8z=16/9*210,Qw=function(){var y=_.u.apply(this,arguments)||this;y.isExpandableContent=!1;y.hideShelfHeader=!1;y.engagementPanel=!1;y.buttonClasses=["arrow"];y.isSearch=!1;y.disableScrollEventListener=!1;y.containsLockup=!1;y.overrideArrowPositionForProductCard=!1;y.overrideArrowPositionForShoppingItemCard=!1;y.overrideArrowPositionForReelItems=!1;y.overrideArrowPositionForGridMovie=!1;y.overrideArrowPositionToCenter=!1;y.isSearchPostShelf=!1;y.overrideArrowPositionForMixedShelf=!1;y.overrideArrowPositionForMixedShelfShortsOnly=
!1;y.hasBigThumbsReelItems=!1;y.shouldUseMixedListHeight=!1;y.shouldUseShortsListHeight=!1;y.gridVideoWidth=0;y.isSearchVodShelf=!1;y.disableWheelScroll=!1;y.sizing="COMPACT";y.shortsLockupAspectRatio=0;return y};
_.p(Qw,_.u);_.E=Qw.prototype;
_.E.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]]"}}}}};
_.E.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.e("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.E.computeInitialCountNumber=function(y){if(!y)return 6;var W=y.items.some(function(F){return!!F.topicRecommendationsChipRenderer}),V=y.items.some(function(F){return!!F.displayAdRenderer}),w=this.computeShouldListItemsHaveEqualHeight(y),t=y.items.some(function(F){return!!F.gridPlaylistRenderer});
y=y.items.some(function(F){return!!F.shoppingItemCardViewModel});
return W?9:V?8:t||w?10:y?7:6};
_.E.computeContainsPost=function(y){return!!y&&!!y.items&&y.items.some(function(W){return!!W.postRenderer})};
_.E.computeContainsLockup=function(){if(_.e("web_horizontal_list_lockup_arrow_killswitch"))return!1;var y,W;return(y=this.data)==null?void 0:(W=y.items)==null?void 0:W.some(function(V){return!!V.lockupViewModel})};
_.E.maybeUpdateLockupAspectRatio=function(){var y,W;if(this.computeContainsLockup()&&((y=this.data)==null?0:(W=y.items)==null?0:W.length)){var V;y=YMn((V=this.data.items[0].lockupViewModel)==null?void 0:V.contentType,this.data.force16By9ThumbnailAspectRatio);V=x3G(y);V=this.computeLockupWidth()/V;_.qg(this.hostElement,{"--yt-horizontal-list-content-height":V+"px"})}};
_.E.computeOverrideArrowPositionForProductCard=function(y){if(this.isExpandableContent)return!1;var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){return!!V.verticalProductCardRenderer}))};
_.E.computeOverrideArrowPositionForShoppingItemCard=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){return!!V.shoppingItemCardViewModel}))};
_.E.computeOverrideArrowPositionForReelItemRenderer=function(y){return this.containsReelItemRenderer(y)};
_.E.computeHasBigThumbsReelItems=function(y,W){return y&&this.containsReelItemRenderer(W)};
_.E.computeShouldListItemsHaveEqualHeight=function(y){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(y==null?void 0:y.itemSizeConstraint)};
_.E.computeShouldListItemsHaveShortsHeight=function(y){return this.computeShouldListItemsHaveEqualHeight(y)&&!this.containsGridVideoRenderer(y)};
_.E.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.E.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.E.containsReelItemRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){return!(!V.reelItemRenderer&&!V.shortsLockupViewModel)}))};
_.E.containsGridVideoRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){return!!V.gridVideoRenderer||!!V.lockupViewModel}))};
_.E.computeContainsGridMovieRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){return!!V.gridMovieRenderer}))};
_.E.computeOverrideArrowPositionToCenter=function(y){return this.computeIsSearchPostShelf(y)};
_.E.computeIsSearchPostShelf=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){var w,t;return((t=(w=V.postRenderer)==null?void 0:w.surface)!=null?t:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.E.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(V){var w,t,F;return((F=(w=V.backgroundPromoRenderer)==null?void 0:(t=w.style)==null?void 0:t.value)!=null?F:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.E.computeIsSearchVodShelf=function(y,W){return y&&this.containsGridVideoRenderer(W)};
_.E.computeDisableWheelScroll=function(y,W){return this.computeIsSearchVodShelf(y,W)};
_.E.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.E.computeShortsLockupAspectRatio=function(){return 1};
_.E.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.qg(this.hostElement,{"--ytd-reel-item-thumbnail-height":N8z+"px"})};
Qw.prototype.dataChanged=Qw.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],Qw.prototype,"ytdHorizontalListBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qw.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],Qw.prototype,"isExpandableContent",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"hideShelfHeader",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Array)],Qw.prototype,"buttonClasses",void 0);_.J([_.q(),_.R("design:type",Object)],Qw.prototype,"isSearch",void 0);
_.J([_.q(),_.R("design:type",Object)],Qw.prototype,"disableScrollEventListener",void 0);_.J([_.q({computed:"computeInitialCountNumber(data)"}),_.R("design:type",Number)],Qw.prototype,"initialCount",void 0);_.J([_.q({computed:"computeContainsPost(data)"}),_.R("design:type",Boolean)],Qw.prototype,"supportComponentResize",void 0);_.J([_.q({computed:"computeContainsPost(data)"}),_.R("design:type",Boolean)],Qw.prototype,"containsPost",void 0);
_.J([_.q({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"containsLockup",void 0);_.J([_.q({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Qw.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.J([_.q({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForProductCard",void 0);_.J([_.q({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.J([_.q({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForReelItems",void 0);_.J([_.q({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForGridMovie",void 0);
_.J([_.q({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionToCenter",void 0);_.J([_.q({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"isSearchPostShelf",void 0);_.J([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.J([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.J([_.q({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"hasBigThumbsReelItems",void 0);
_.J([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"shouldUseMixedListHeight",void 0);_.J([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"shouldUseShortsListHeight",void 0);_.J([_.q({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"gridVideoWidth",void 0);
_.J([_.q({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"isSearchVodShelf",void 0);_.J([_.q({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],Qw.prototype,"disableWheelScroll",void 0);_.J([_.q({computed:"computeSizing(isSearch)"}),_.R("design:type",Object)],Qw.prototype,"sizing",void 0);
_.J([_.q({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.R("design:type",Object)],Qw.prototype,"shortsLockupAspectRatio",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qw.prototype,"dataChanged",null);
_.Y(Qw,"yt-horizontal-list-renderer",function(){if(vLf===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);vLf=y}y=vLf;return y},{mode:1});var I$E;var gmJ=[10,12,14,16,18,20,24,28,32,36],Psi=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Zr=function(){var y=_.u.apply(this,arguments)||this;y.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";y.hideOverflow=!1;y.useRoboto=!1;y.fontClass="";y.overflown=!1;y.actionMap={"yt-window-resized":"resize"};return y};
_.p(Zr,_.u);_.E=Zr.prototype;
_.E.attached=function(){var y=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();_.gy(this,function(){y.resize()});
if(!_.mU){var W,V,w;(W=document)==null||(V=W.fonts)==null||(w=V.ready)==null||w.then(function(){y.resize()})}};
_.E.dataChanged=function(){this.resize()};
_.E.guideIsExpandedChanged=function(){this.resize()};
_.E.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 y=this.getMaxNumLines(),W=this.getMinFont(),V=this.getMaxFont(),w=this.useRoboto?gmJ:Psi;for(w=w.filter(function(F){return F<=V&&F>=W});w.length>1;){var t=Math.floor(w.length/2);
this.updateFontSize(w[t]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=y)w=w.slice(t,w.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>y)w=w.slice(0,t);else break}this.updateFontSize(w[w.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(y)}};
_.E.handleOverflow=function(y){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>y&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",y.toString()))};
_.E.updateFontSize=function(y){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+y;this.textNode.classList.add(this.fontClass)};
_.E.getMaxFont=function(){var y=this.useRoboto?gmJ:Psi;y=y[y.length-1];return this.maxFontSize&&this.maxFontSize<=y?this.maxFontSize:y};
_.E.getMinFont=function(){var y=(this.useRoboto?gmJ:Psi)[0];return this.minFontSize&&this.minFontSize>=y?this.minFontSize:y};
_.E.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.E.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.E.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.OT(this.text).split("\n").length-1:Infinity};
_.E.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("Ph`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Zr.prototype.guideIsExpandedChanged=Zr.prototype.guideIsExpandedChanged;Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Zr.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Zr.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zr.prototype,"text",void 0);
_.J([_.q(),_.R("design:type",String)],Zr.prototype,"fontFamily",void 0);_.J([_.q(),_.R("design:type",Number)],Zr.prototype,"maxWidth",void 0);_.J([_.q(),_.R("design:type",Number)],Zr.prototype,"maxHeight",void 0);_.J([_.q(),_.R("design:type",Number)],Zr.prototype,"maxFontSize",void 0);_.J([_.q(),_.R("design:type",Number)],Zr.prototype,"minFontSize",void 0);_.J([_.q(),_.R("design:type",Number)],Zr.prototype,"maxLines",void 0);_.J([_.q(),_.R("design:type",Object)],Zr.prototype,"hideOverflow",void 0);
_.J([_.q({selector:_.i3y}),_.R("design:type",Boolean)],Zr.prototype,"guideIsExpanded",void 0);_.J([_.s$("#container"),_.R("design:type",HTMLElement)],Zr.prototype,"containerNode",void 0);_.J([_.s$("#text"),_.R("design:type",HTMLElement)],Zr.prototype,"textNode",void 0);_.J([_.Jc("text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zr.prototype,"dataChanged",null);
_.J([_.Jc("guideIsExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zr.prototype,"guideIsExpandedChanged",null);_.J([_.k({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Zr);
_.Y(Zr,"yt-dynamic-sizing-formatted-string",function(){if(I$E!==void 0)return I$E;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return I$E=y},{mode:1});var Css;_.OTR=function(y){_.yj.call(this,y)};
_.p(_.OTR,_.yj);var vmA=function(y){_.yj.call(this,y)};
_.p(vmA,_.OTR);var yZ=function(){return _.u.apply(this,arguments)||this};
_.p(yZ,_.u);yZ.prototype.onTapSuspendedChannel=function(){var y;if((y=this.data)!=null&&y.serviceEndpoint){var W,V;(y=(V=_.h((W=this.data)==null?void 0:W.serviceEndpoint,_.wS))==null?void 0:V.url)?_.Ng(y,void 0,void 0,window.top):(W=new vmA("Did not handle suspended account tap. No appealUrl."),_.ap(W))}else W=new vmA("Did not handle suspended account tap. No serviceEndpoint."),_.ap(W)};
yZ.prototype.onTap=function(){var y=this,W=_.BC(),V,w=(V=_.Yc(W,{veType:7116}))!=null?V:void 0;_.gp(W,{visualElement:w});_.Fe();this.saveRoleText();var t;if((t=this.data)==null?0:t.youtubeSuspended)this.onTapSuspendedChannel();else{var F=!1,I,P;(W=(P=_.h((I=this.data)==null?void 0:I.serviceEndpoint,_.ygE))==null?void 0:P.supportedTokens)&&W.forEach(function(C){if(C.accountSigninToken)if(F=!0,y.onAccountItemTap)y.onAccountItemTap(C.accountSigninToken.signinUrl);else _.Ng(C.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!F){if(I=this.get("serviceEndpoint",this.data))F=!0,this.ytComponentBehavior.resolveCommand(I);F||_.GD(new vmA("Did not handle account switch tap. No token."))}}};
yZ.prototype.saveRoleText=function(){if(this.data){var y=this.data,W=y.channelDelegationRole;if(W){var V,w=(V=_.h(y==null?void 0:y.serviceEndpoint,_.ygE))==null?void 0:V.supportedTokens;if(!w){var t,F,I,P;w=(t=_.h(y==null?void 0:y.serviceEndpoint,_.Hq))==null?void 0:(F=t.popup)==null?void 0:(I=F.confirmDialogRenderer)==null?void 0:(P=I.confirmButton)==null?void 0:P.buttonRenderer;var C;w=(C=_.h(w==null?void 0:w.command,_.mR))==null?void 0:C.commands;if(!w)return;var d;w=(d=_.h(w[1],_.ygE))==null?
void 0:d.supportedTokens}if(w){C=void 0;d=_.N(w);for(w=d.next();!w.done;w=d.next())if(w=w.value,w.datasyncIdToken){C=w.datasyncIdToken.datasyncIdToken;break}if(C){var L;a:{if(_.$dP()&&(d=_.VEP(C+"::pom"))){d=new HP(d);break a}d=void 0}(L=d)==null||L.set("role_text",W);if((w_b?w_b:window.location).href.indexOf("studio")!==-1&&(L=ntP())){d=L.src?(new URL(L.src)).origin:"*";var z;(z=L.contentWindow)==null||z.postMessage({action:"save_pom_role",datasyncId:C,roleText:W},d)}}}}}};
_.CM.Object.defineProperties(yZ.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.accountPhoto)==null?void 0:W.thumbnails;return V&&V.length>0&&(V[0].height===36||V[0].height===48)?V[0].height:40}}});
yZ.prototype.onTap=yZ.prototype.onTap;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Function)],yZ.prototype,"onAccountItemTap",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],yZ.prototype,"enableRingForActiveAccount",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],yZ.prototype,"thumbnailSize",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yZ.prototype,"onTap",null);_.J([_.k({is:"ytd-account-item-renderer",disableElementRegistration:!0})],yZ);
_.Y(yZ,"ytd-account-item-renderer",function(){if(Css!==void 0)return Css;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Css=y},{mode:1});var dbf;var Wv=function(){return _.u.apply(this,arguments)||this};
_.p(Wv,_.u);Wv.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.hs().resolve(_.oA).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Wv.prototype,"data",void 0);_.J([_.k({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Wv);
_.Y(Wv,"ytd-identity-chip-renderer",function(){if(dbf!==void 0)return dbf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dbf=y},{mode:1});var L5f;var z2i;var caq;var e22;var VZ=function(){var y=_.u.apply(this,arguments)||this;y.richItemMinWidth=_.pB("wn_grid_min_item_width",310);y.isShorts=!1;y.isWatchNext=!1;y.isExploreHub=!1;return y};
_.p(VZ,_.u);_.CM.Object.defineProperties(VZ.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var y=[],W=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.qg(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var V;if(((V=this.data)==null?0:V.rows)&&W)for(W*=this.data.rows,V=0;V<W;V++)y.push({});return y}}});
_.J([_.m(_.y$),_.R("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],VZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.r5,value:3}),_.R("design:type",Number)],VZ.prototype,"itemsPerRow",void 0);_.J([_.q({selector:_.phd,value:6}),_.R("design:type",Number)],VZ.prototype,"slimItemsPerRow",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Number)],VZ.prototype,"richItemMinWidth",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],VZ.prototype,"miniMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VZ.prototype,"isShorts",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VZ.prototype,"isWatchNext",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VZ.prototype,"isExploreHub",void 0);
_.J([_.M("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.R("design:type",Array),_.R("design:paramtypes",[])],VZ.prototype,"cardItems",null);_.J([_.k({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],VZ);
_.h2f=_.MM()(VZ,"ytd-ghost-grid-renderer",function(){if(e22===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);e22=y}y=e22;return y},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.iF(_.eY(function(y){var W=_.zb(y,{numberOfComments:3}).numberOfComments,V=_.zb(y,{isInitialLoad:!1}).isInitialLoad,w=_.zb(y,{engagementPanel:!1}).engagementPanel,t=function(){return Math.min(Number(W==null?void 0:W())||20,20)};
return _.O("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.O(_.v,{cond:function(){return!(w==null?0:w())&&(V==null?void 0:V())},
then:function(){return _.O("div",{class:"ytGhostCommentsComments"},_.O("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.O("div",{class:_.kS("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.O("div",{class:_.kS("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.O("div",{class:"ytGhostCommentsGhostCard"},_.O("div",{class:"ytGhostCommentsAvatar"},_.O("div",{class:"ytGhostCommentsCircle"})),_.O("div",{class:"ytGhostCommentsComments"},_.O("div",{class:"ytGhostCommentsMeta"},
_.O("div",{class:_.kS("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.O("div",{class:_.kS("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.O("div",{class:"ytGhostCommentsComments"},_.O(_.YV,{each:function(){return Array((t==null?void 0:t())||3)}},function(){return _.O("div",{class:"ytGhostCommentsGhostCard"},_.O("div",{class:"ytGhostCommentsAvatar"},_.O("div",{class:"ytGhostCommentsCircle"})),_.O("div",{class:"ytGhostCommentsHost"},_.O("div",{class:"ytGhostCommentsMeta"},
_.O("div",{class:_.kS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.O("div",{class:_.kS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:_.kS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:"ytGhostCommentsGhostLikeDislike"},_.O("div",{class:_.kS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:_.kS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.vB,
isInitialLoad:_.vB,engagementPanel:_.vB}});_.ZQ("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var wk=function(){var y=_.u.apply(this,arguments)||this;y.isOverridable=!1;y.spinnerActive=!1;y.showButton=!1;y.isCommentsSection=!1;y.engagementPanel=!0;y.isShortsGrid=!1;y.isShortsPage=!1;y.isWatchPage=!1;y.ghostCardExperimentEnabled=_.e("show_ghost_comments_shorts_watch")||_.e("show_ghost_comments_desktop_watch");y.originalShowButton=!1;y.endOfList=!1;return y};
_.p(wk,_.u);_.E=wk.prototype;_.E.resetIntersectionObserver=function(){var y;(y=this.observer)==null||y.disconnect();this.observer=void 0};
_.E.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var y,W;((y=this.data)==null?void 0:y.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((W=this.data)==null?0:W.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.E.initializeIntersectionObserver=function(){var y=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(W){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V.value.isIntersecting&&(y.triggerContinuation(),y.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.E.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.E.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var y;((y=this.data)==null?0:y.continuationEndpoint)&&(y=_.h(this.data.continuationEndpoint,_.EP))&&this.ytdReduxBehavior.dispatch(_.ig({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:y}}))};
_.E.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.E.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.E.onServiceRequestCompleted=function(y,W){if(!_.e("kevlar_hide_spinner_on_empty_continuation_killswitch")){var V;(V=W.actions)!=null&&V.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.E.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.E.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.E.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.E.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var y=3;if(this.engagementPanel){var W,V,w;y=Math.floor(((((W=this.hostElement)==null?void 0:(V=W.parentElement)==null?void 0:(w=V.parentElement)==null?void 0:w.scrollHeight)||108)-108)/108);y=this.isInitialLoad?Math.max(y,3):3}W=[].concat(_.GC(this.hostElement.querySelectorAll("yt-ghost-comments")));W=_.N(W);for(V=W.next();!V.done;V=W.next())V=V.value,V.numberOfComments=y,V.isInitialLoad=this.isInitialLoad,V.engagementPanel=
this.engagementPanel}};
_.E.detached=function(){this.resetIntersectionObserver()};
_.CM.Object.defineProperties(wk.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.e("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.e("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
wk.prototype.numberOfGhostCommentsChanged=wk.prototype.numberOfGhostCommentsChanged;wk.prototype.continuationTriggerOffsetChanged=wk.prototype.continuationTriggerOffsetChanged;wk.prototype.showButtonChanged=wk.prototype.showButtonChanged;wk.prototype.onYtServiceRequestCompletedForButtonRenderer=wk.prototype.onYtServiceRequestCompletedForButtonRenderer;wk.prototype.onServiceRequestCompleted=wk.prototype.onServiceRequestCompleted;wk.prototype.onYtServiceRequestSentForButtonRenderer=wk.prototype.onYtServiceRequestSentForButtonRenderer;
wk.prototype.observeData=wk.prototype.observeData;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],wk.prototype,"ytVisibilityBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],wk.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],wk.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"isOverridable",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"spinnerActive",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"showButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wk.prototype,"isCommentsSection",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wk.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"isShortsGrid",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.Tzu}),_.R("design:type",Object)],wk.prototype,"isShortsPage",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.QD}),_.R("design:type",Object)],wk.prototype,"isWatchPage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wk.prototype,"ghostCardExperimentEnabled",void 0);
_.J([_.q(),_.R("design:type",Number)],wk.prototype,"continuationTriggerOffset",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"endOfList",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],wk.prototype,"isInitialLoad",void 0);_.J([_.s$("ytd-button-renderer"),_.R("design:type",_.cK)],wk.prototype,"buttonRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],wk.prototype,"buttonOverrides",void 0);
_.J([_.q(),_.M("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.R("design:type",Object),_.R("design:paramtypes",[])],wk.prototype,"isShortsCommentsSection",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"observeData",null);
_.J([_.l6("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],wk.prototype,"onServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-completed-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.J([_.Jc("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"showButtonChanged",null);
_.J([_.Jc("continuationTriggerOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"continuationTriggerOffsetChanged",null);_.J([_.xA("isInitialLoad","engagementPanel"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wk.prototype,"numberOfGhostCommentsChanged",null);_.J([_.k({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],wk);
_.Y(wk,"ytd-continuation-item-renderer",function(){if(caq!==void 0)return caq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return caq=y},{mode:1});var omi;var t4=function(){var y=_.u.apply(this,arguments)||this;y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.downloadState="DOWNLOAD_STATE_UNKNOWN";y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";y.offlineVideoPolicyExpirationTimestamp=0;y.downloadedVideoPlaybackPosition=0;return y};
_.p(t4,_.u);t4.prototype.dataChanged=function(){var y;this.videoData=_.h((y=this.data)==null?void 0:y.renderer,Dni);this.transferStateChanged()};
t4.prototype.downloadProgressChanged=function(){if(this.entityInfo){var y=Object.assign({},this.videoData),W=pPj(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=W.publishedTimeText,w=W.badges;y.shortViewCountText=W.shortViewCountText;y.publishedTimeText=V;y.badges=w;this.set("videoData",y)}};
t4.prototype.transferStateChanged=function(){if(this.entityInfo){var y=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",W=_.YC(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Az(this.entityInfo.policyEntity),V=Object.assign({},this.videoData),w=pPj(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=w.publishedTimeText,F=w.badges;V.shortViewCountText=
w.shortViewCountText;V.publishedTimeText=t;V.badges=F;V.isDisabled=W;V.isWatched=this.downloadedVideoPlaybackPosition>0;V.navigationEndpoint=W?void 0:MxL(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var I;y&&((I=this.videoData)==null?0:I.videoId)&&!_.e("dl_resume_click_killswitch")&&(V.isDisabled=!1,V.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});V.thumbnailOverlays=oKa(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",V)}};
t4.prototype.transferStateChanged=t4.prototype.transferStateChanged;t4.prototype.downloadProgressChanged=t4.prototype.downloadProgressChanged;t4.prototype.dataChanged=t4.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],t4.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],t4.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],t4.prototype,"videoData",void 0);_.J([_.q({selector:VY,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"downloadProgress",void 0);_.J([_.q(),_.R("design:type",Number)],t4.prototype,"relativeDateReference",void 0);_.J([_.q({selector:_.yY,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"transferState",void 0);
_.J([_.q({selector:H3R,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"downloadState",void 0);_.J([_.q({selector:uBv,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"offlinePolicyAction",void 0);_.J([_.q({selector:S8a,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.J([_.q({selector:wP,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"downloadedVideoPlaybackPosition",void 0);_.J([_.q({selector:lNn,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],t4.prototype,"entityInfo",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],t4.prototype,"isDownloading",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t4.prototype,"dataChanged",null);
_.J([_.Jc("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t4.prototype,"downloadProgressChanged",null);_.J([_.Jc("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t4.prototype,"transferStateChanged",null);
_.J([_.k({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],t4);
_.Y(t4,"ytd-downloaded-video-grid-video-renderer",function(){if(omi!==void 0)return omi;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return omi=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var K5Q;var FN=function(){};
FN.prototype.resolve=function(y,W){var V=this;return _.g(function(w){return w.yield(V.resolveCommand(y,W),0)})};var pAq,Et;pAq=bkv(function(y){return y.targetId},{shouldPersist:!1});
Et=pAq.updateData;_.iT2=pAq.useUpdatableData;var f$m,T86;f$m=bkv(function(y){return y.targetId});
T86=f$m.updateData;_.mbi=f$m.useUpdatableData;var MzA=JTn.bind(null,Et),qWQ=JTn.bind(null,T86);(function(y,W,V){var w=_.h(V==null?void 0:V.updatedRenderer,_.Ism);return w?y({targetId:W},function(){return w}):!1}).bind(null,Et);var NF=function(){};
_.p(NF,FN);NF.prototype.resolveCommand=function(y){var W;return _.g(function(V){W=_.h(y,_.iId);if(!W)return V.return();MzA(W.targetId,W);_.B7(V)})};var I_=function(){var y=_.YA.apply(this,arguments)||this;y.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return y};
_.p(I_,_.YA);_.E=I_.prototype;_.E.configureContinuationPathMap=function(){return{}};
_.E.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.E.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.E.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.E.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.E.handleAppendContinuationItemsAction=function(y){var W=_.h(y,_.sym);if(this.data&&this.data.targetId&&W&&this.continuationPathMap&&W.targetId===this.data.targetId){var V=onu(y),w=V&&this.continuationPathMap[V];if(w&&V)if(y=this.get(w,this.data)){a:{for(V=0;V<y.length;V++){var t=y[V],F=void 0,I=!!_.h((F=_.h(t,KxQ))==null?void 0:F.content,_.qVz);if(_.h(t,_.e3)||I)break a}V=y.length}w="data."+w;W.continuationItems?V===y.length-1?(this.pop(w),this.push.apply(this,[w].concat(_.GC(W.continuationItems)))):
V===y.length?this.push.apply(this,[w].concat(_.GC(W.continuationItems))):this.splice.apply(this,[w,V,1].concat(_.GC(W.continuationItems))):this.splice(w,V,1);(_.e("web_enable_voting_animation")||_.e("enable_music_web_cairo_voting_animation"))&&_.h1(this.hostElement,"yt-append-continuation-items-action-finished");_.h1(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.rQ(new _.Js("append continuation items does not exist",V));else _.rQ(new _.Js("append continuation path does not exist",
V))}};
_.E.handleReloadContinuationItemsCommand=function(y){var W=_.h(y,_.iId);if(this.data&&W){if(_.e("web_explore_hub")||_.e("web_client_explore_hub")||_.e("web_explore_hub_on_hover")||_.e("web_client_explore_hub_on_hover"))try{_.hs().resolve(NF).resolveCommand(y)}catch(F){}if(this.data.targetId&&this.continuationPathMap&&W.targetId===this.data.targetId&&(!_.e("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||W.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var V,w=
(V=W.slot)==null?void 0:V.replace("RELOAD_CONTINUATION_SLOT_","");V=(y=onu(y)+"-"+(w==null?void 0:w.toLowerCase()))&&this.continuationPathMap[y];if(!V||!y||!w)_.rQ(new _.Js("reload continuation path does not exist",y));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(W)){if(W.replaceWithFirstItem){var t;this.set("data."+V,((t=W.continuationItems)==null?0:t.length)?W.continuationItems[0]:{})}else this.set("data."+V,W.continuationItems?W.continuationItems:
[]);this.continuationIsReloading=!1;_.h1(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.E.handleShowReloadUiCommand=function(y){y=_.h(y,QyQ);var W;((W=this.data)==null?0:W.targetId)&&(y==null?0:y.targetId)&&y.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
I_.prototype.observeData=I_.prototype.observeData;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],I_.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],I_.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],I_.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],I_.prototype,"continuationIsReloading",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],I_.prototype,"observeData",null);_.J([_.BW()],I_);_.gk=[_.Em.YtComponentBehavior,_.ik.YtActionHandlerBehavior,I_.prototype];_.Pv={};_.Pv.YtNextContinuationBehavior=[_.et.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",_.Dp(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Dp(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(y,W){y.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,W,{}):(y={locationRetrieved:function(V){this.makeNextContinuationRequest_(V,W,{})}.bind(this)},_.h1(this.hostElement,"yt-retrieve-location",y))},
makeNextContinuationRequest_:function(y,W,V){_.G2("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();y=W(y);var w;this.canUseContextualNetworkManager_()&&(w=this.getNetworkManager());w||(w=_.hs().resolve(_.bN));W=_.P5.instance;if(_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&W){w=_.LO([y.startsWith("/")?y.substr(1):y]);var t,F;V=_.Vo(W,{},w,V==null?void 0:(t=V.context)==null?void 0:(F=t.clickTracking)==null?void 0:F.clickTrackingParams).then(function(I){return{response:I}})}else V=
this.nextContinuation.usePost?w.postData(y,V):w.fetchData(y);
V.then(this.updateNextContinuationData_.bind(this,y));this.pendingContinuationRequest_=V;this.startListeningForNavigate_()},
updateNextContinuationData_:function(y,W){var V=this;_.G2("ncl");this.pendingContinuationRequest_=void 0;if(W){var w={};this.nextContinuation&&(w=this.nextContinuation);if(W.response&&W.response.continuationContents&&W.response.continuationContents[w.continuationType]){y=W.response.continuationContents[w.continuationType];var t=w.header||"data.header",F=y[w.responseHeaderKey||"header"];F&&this.set(t,F);t=w.contentsArray||"data.contents";F=this.getContents_(y,w.responseContentsKey||"contents")||[];
this.pathExists_(t)?(F.unshift(t),this.push.apply(this,F)):this.set(t,F);F&&(RPv(_.BC(),W.response,this.hostElement,function(I){_.ow(V.hostElement,"yt-store-grafted-ve-action",[I])}),_.h1(this.hostElement,"yt-next-continuation-data-updated",{continuationData:W,
page:this,contentsArray:t}));this.set(w.continuationsArray||"data.continuations",y[w.responseContinuationsKey||"continuations"]||[])}else W.reload?_.rQ(new _.Js("Reloading from continuation is unsupported")):W.responseContext&&W.responseContext.errors||(delete W.xsrf_token,delete W.timing,delete W.endpoint,delete W.csn,W.responseContext&&delete W.responseContext.serviceTrackingParams,t={request:_.CB(y,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(W).sort()},W.response&&(t.responseContentKeys=
Object.keys(W.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(t.continuationType=this.nextContinuation.continuationType.substr(0,256)),W=new _.Js("Malformed continuation",t),y.indexOf("/comment_service_ajax")==0?_.rQ(W):_.ap(W)),this.set(w.continuationsArray||"data.continuations",[])}else _.GD(new _.Js("Missing continuation response",y))},
getContents_:function(y,W){W=W.split(".");return _.Gc.getValueByKeys(y,W)},
pathExists_:function(y){var W=this;y=y.toString().split(".");for(var V=0;V<y.length;V++)if(W=W[y[V]],W===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Ubf;var uz2;var Ct=function(){var y=_.u.apply(this,arguments)||this;y.triggered_=!1;return y};
_.p(Ct,_.u);_.E=Ct.prototype;_.E.attached=function(){this.maybeTriggerAutoload()};
_.E.detached=function(){this.hasBeenTriggered_=!1};
_.E.onPrescanVisible=function(){this.onShow()};
_.E.onShow=function(){this.showButton||this.trigger()};
_.E.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.h1(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.E.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.E.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.E.computeLabel_=function(y,W){return y===void 0?null:y.label||!W?y.label:this.showMoreText_};
_.E.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.E.getContinuationUrl=function(y){var W={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.O1(y,W)};
_.E.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ct.prototype.showButtonChanged_=Ct.prototype.showButtonChanged_;Ct.prototype.observeData_=Ct.prototype.observeData_;_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],Ct.prototype,"ytVisibilityBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ct.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ct.prototype,"showButton",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ct.prototype,"showIcon",void 0);_.J([_.q({computed:"computeLabel_(data, showButton)"}),_.R("design:type",Object)],Ct.prototype,"label",void 0);_.J([_.q({value:_.CO(_.u5("SHOW_MORE",void 0,"Show More"))}),_.R("design:type",Object)],Ct.prototype,"showMoreText_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ct.prototype,"spinnerActive_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ct.prototype,"hasBeenTriggered_",void 0);
_.J([_.q({value:void 0}),_.R("design:type",String)],Ct.prototype,"observeVisibleOption",void 0);_.J([_.q({value:void 0}),_.R("design:type",String)],Ct.prototype,"observeHiddenOption",void 0);_.J([_.q({value:"observe_once"}),_.R("design:type",Object)],Ct.prototype,"observePrescanOption",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ct.prototype,"observeData_",null);
_.J([_.xA("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ct.prototype,"showButtonChanged_",null);_.J([_.Zp({is:"yt-next-continuation",disableElementRegistration:!0})],Ct);
_.Y(Ct,"yt-next-continuation",function(){if(uz2===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Ubf===void 0&&(Ubf=document.createElement("template"));var w=Ubf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);uz2=y}y=uz2;return y},{mode:2});var SW6;var DbK;var Ot=function(){return _.u.apply(this,arguments)||this};
_.p(Ot,_.u);Ot.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ot.prototype,"data",void 0);_.J([_.Zp({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Ot);
_.Y(Ot,"yt-music-pass-small-feature-info-renderer",function(){if(DbK===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;SW6===void 0&&(SW6=document.createElement("template"));var w=SW6;V.call(W,w.content.cloneNode(!0),y.content.firstChild);DbK=y}y=DbK;return y},{mode:2});_.ZQ("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var vv=function(){var y=_.u.apply(this,arguments)||this;y.isCollapsible=!1;y.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return y};
_.p(vv,_.u);_.E=vv.prototype;_.E.computeIsCollapsible=function(y){return!!(((y==null?0:y.showMoreText)||(y==null?0:y.visibleRowCount))&&(y==null?0:y.isCollapsible))};
_.E.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"}}}};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.E.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.E.onIronResize=function(){var y=this;_.NM(this,"updateGridInitItems",function(){y.maybeUpdateInitialItemsDisplayed()})};
_.E.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var y=this.getVisibleWidth();y!==0&&(y=Math.floor(y/214)*(this.data.visibleRowCount||2),y!==this.initialCount&&(this.initialCount=y,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.E.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.E.computeExpandVisible=function(y,W,V,w){return y&&W&&V&&!!w&&!!w.showMoreText};
_.E.computeShowMoreButton=function(y){return{text:y,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.E.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.E.initCollapsed=function(){var y=this;this.ytLazyListBehavior.canShowMore=!1;var W;(this.collapsed=!((W=this.data)==null||!W.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.gy(this,function(){_.Kg(y.hostElement,"yt-refit-popups-action")})};
_.E.fillRestIfNotCollapsible=function(){var y=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!y||this.ytLazyListBehavior.fillRemainingListItems()};
_.E.computeViewAllHidden=function(y,W){return y||!W.viewAllEndpoint};
vv.prototype.fillRestIfNotCollapsible=vv.prototype.fillRestIfNotCollapsible;vv.prototype.initCollapsed=vv.prototype.initCollapsed;vv.prototype.onIronResize=vv.prototype.onIronResize;vv.prototype.persistentGuideChanged=vv.prototype.persistentGuideChanged;_.J([_.m(_.Gm),_.R("design:type",Object)],vv.prototype,"ironResizableBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],vv.prototype,"ytLazyListBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],vv.prototype,"ytNextContinuationBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],vv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.m(_.gk),_.R("design:type",Object)],vv.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vv.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],vv.prototype,"collapsed",void 0);_.J([_.q(),_.R("design:type",Number)],vv.prototype,"initialCount",void 0);_.J([_.q({computed:"computeShowMoreButton(data.showMoreText)"}),_.R("design:type",Object)],vv.prototype,"showMoreButton",void 0);
_.J([_.q({computed:"computeIsCollapsible(data)"}),_.R("design:type",Object)],vv.prototype,"isCollapsible",void 0);_.J([_.s$("#items"),_.R("design:type",HTMLElement)],vv.prototype,"items",void 0);_.J([_.Jc("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vv.prototype,"persistentGuideChanged",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vv.prototype,"onIronResize",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vv.prototype,"initCollapsed",null);_.J([_.Jc("canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vv.prototype,"fillRestIfNotCollapsible",null);_.J([_.k({is:"ytd-grid-renderer",disableElementRegistration:!0})],vv);
_.Y(vv,"ytd-grid-renderer",function(){if(K5Q!==void 0)return K5Q;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return K5Q=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var dk=function(){return _.u.apply(this,arguments)||this};
_.p(dk,_.u);
dk.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"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dk.prototype,"data",void 0);_.J([_.k({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],dk);
_.Y(dk,"ytd-carousel-ad-renderer",function(){if(z2i!==void 0)return z2i;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return z2i=y},{mode:1});var l$Q;var Lt=function(){return _.u.apply(this,arguments)||this};
_.p(Lt,_.u);_.E=Lt.prototype;_.E.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"}}}};
_.E.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Lt.JSC$15241_CLICK_LOCATION_ID_MAP))};
_.E.onSitelinkTap=function(y){y.stopPropagation();var W,V,w=y==null?void 0:(W=y.model)==null?void 0:(V=W.item)==null?void 0:V.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,y,!1)};
_.E.onTap=function(y){var W=this.data&&this.data.content&&this.data.content.navigationEndpoint;W&&this.ytSparklesClickLocationBehavior.handleClick(W,y,!1)};
_.E.sendImpression=function(){if(this.data&&this.data.content)for(var y=_.N(this.data.content.impressionEndpoints||[]),W=y.next();!W.done;W=y.next()){W=_.N(W.value.loggingUrls||[]);for(var V=W.next();!V.done;V=W.next())V=V.value,V.baseUrl&&Eg(V.baseUrl,V.attributionSrcMode)}};
Lt.prototype.onTap=Lt.prototype.onTap;Lt.prototype.dataChanged=Lt.prototype.dataChanged;Lt.JSC$15241_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"]]);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Lt.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Lt.prototype,"data",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lt.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Lt.prototype,"onTap",null);_.J([_.k({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Lt);
_.Y(Lt,"ytd-promoted-sparkles-text-search-renderer",function(){if(l$Q!==void 0)return l$Q;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return l$Q=y},{mode:1});var xbK;var zi=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.p(zi,_.u);_.E=zi.prototype;
_.E.configureRendererStamper=function(){return{"data.menu":{id:_.e("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]]"}}}}}};
_.E.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.E.computeHasAdBadge=function(y){return!(y==null||!y.adBadge)};
_.E.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",zi.JSC$15250_DEFAULT_AD_BADGE_RENDERER),_.TA(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,zi.JSC$15250_CLICK_LOCATION_ID_MAP))};
_.E.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var y;(((y=this.data)==null?void 0:y.impressionCommands)||[]).forEach(function(W){W=_.N(W.loggingUrls||[]);for(var V=W.next();!V.done;V=W.next())V=V.value,V.baseUrl&&Eg(V.baseUrl,V.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.E.onTap=function(y){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint,w;(W=(w=this.data)==null?void 0:w.thumbnailNavigationEndpoint)&&_.ef(_.O$(y),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(W,y,!1):V&&this.ytSparklesClickLocationBehavior.handleClick(V,y,!1)};
_.E.handleMuteAd=function(){this.collapsed=!0};
_.E.attached=function(){var y=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.CM.Object.defineProperties(zi.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var y;return!(((y=this.data)==null?void 0:y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var y;return!(((y=this.data)==null?void 0:y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
zi.prototype.dataChanged=zi.prototype.dataChanged;
zi.JSC$15250_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"]]);
zi.JSC$15250_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.u5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],zi.prototype,"ytdActiveViewBehavior",void 0);
_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],zi.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],zi.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zi.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],zi.prototype,"collapsed",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],zi.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],zi.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.R("design:type",Boolean)],zi.prototype,"fixAlignmentSmallScreens",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs_square")}}),
_.R("design:type",Boolean)],zi.prototype,"useBiggerThumbsSquare",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.mediaHoverOverlay"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"hideHoverOverlay",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"webSearchLayout",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"webSearchLayoutLandscape",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"webSearchLayoutSquare",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"sparklesCtaNoBackground",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.actionButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"hideActionButton",null);_.J([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.R("design:type",Object)],zi.prototype,"buttonOverride",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.R("design:type",Boolean)],zi.prototype,"hasNewAdBadge",void 0);_.J([_.M("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zi.prototype,"useRoundedBadge",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zi.prototype,"dataChanged",null);_.J([_.k({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],zi);
_.Y(zi,"ytd-promoted-sparkles-web-renderer",function(){if(xbK!==void 0)return xbK;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return xbK=y},{mode:1});var kzA;var cv=function(){var y=_.u.apply(this,arguments)||this;y.isInlinePreviewTriggered=!1;y.enableMonoStyle=_.e("enable_default_mono_cta_migration_web_client");return y};
_.p(cv,_.u);_.E=cv.prototype;_.E.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]]"}}}}}};
_.E.computeShowCta=function(y){return!(y==null||!y.ctaRenderer)};
_.E.onCtaClick=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.ctaRenderer)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.E.onWatchButtonClick=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.watchButtonRenderer)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.E.onTap=function(){};
_.E.dataChanged=function(){if(this.data){var y;_.e("enable_inline_muted_playback_on_web_search")&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",cv.JSC$15254_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",cv.JSC$15254_DEFAULT_CLICK_LOCATION_BEHAVIOR,cv.JSC$15254_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href"))}};
_.E.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var y=_.N(this.data.impressionUrls),W=y.next();!W.done;W=y.next())W=W.value,tYv(W,Ecb(W));this.data.impressionsFired=!0}};
_.E.maybeComputeHref=function(){return null};
_.E.computeIsShortDR=function(y){return!(y==null||!y.watchButtonRenderer)&&!(y==null||!y.ctaRenderer)&&!!this.enableShortDR};
_.E.computeIsNewUiOrShortDr=function(y){return!!this.enableUiUpdate||this.computeIsShortDR(y)};
_.E.computeIsNewUiAndNotShortDr=function(y){return!!this.enableUiUpdate&&!this.computeIsShortDR(y)};
_.E.computeHideAvatar=function(y){return!((y==null?0:y.channelThumbnail)&&this.computeIsNewUiOrShortDr(y))};
_.E.onClick=function(y){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;if(this.enableShortDR&&V&&(_.h(V,_.Iw)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(V,y,!!_.h(V,_.Iw)),y.stopPropagation();else if(V&&_.h(V,_.Iw))this.ytSparklesClickLocationBehavior.handleClick(V,y,!0),y.stopPropagation();else if(V){var w,t;((w=this.data)==null?0:w.navigationEndpoint)&&((t=this.data)==null?0:t.adPlaybackContextParams)&&agP(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(V)}};
_.E.computeButtonOverride=function(y){if(this.computeIsNewUiOrShortDr(y))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.E.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.E.onThumbnailContainerClick=function(y){this.onClick(y)};
_.E.computeThumbnailWidth=function(y,W){return y?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:360};
_.E.attached=function(){var y=this,W;_.e("enable_inline_muted_playback_on_web_search")&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.detached=function(){var y;_.e("enable_inline_muted_playback_on_web_search")&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15255_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:rTK})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15255_inlinePreviewHoverListener)==null||cm(y)};
cv.prototype.dataChanged=cv.prototype.dataChanged;cv.prototype.onTap=cv.prototype.onTap;cv.JSC$15254_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.u5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};cv.JSC$15254_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
cv.JSC$15254_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"}];_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],cv.prototype,"ytdActiveViewBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],cv.prototype,"ytSparklesClickLocationBehavior",void 0);
_.J([_.s$("#main-container"),_.R("design:type",HTMLElement)],cv.prototype,"mainContainer",void 0);_.J([_.q(),_.R("design:type",Object)],cv.prototype,"isInlinePreviewTriggered",void 0);_.J([_.q(),_.R("design:type",Object)],cv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],cv.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_video_display_compact_button_group_for_desktop_search")}}),
_.R("design:type",Boolean)],cv.prototype,"enableShortDR",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_vac_ui_update_for_desktop_search")}}),
_.R("design:type",Boolean)],cv.prototype,"enableUiUpdate",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],cv.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.R("design:type",Boolean)],cv.prototype,"showCta",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.R("design:type",Boolean)],cv.prototype,"isShortDr",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.R("design:type",Boolean)],cv.prototype,"isShortDrOrNewUi",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.R("design:type",Boolean)],cv.prototype,"isNewUiAndNotShortDr",void 0);_.J([_.q({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],cv.prototype,"buttonOverride",void 0);_.J([_.q({computed:"computeSecondaryButtonOverride(data)"}),_.R("design:type",Object)],cv.prototype,"secondaryButtonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cv.prototype,"enableMonoStyle",void 0);
_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],cv.prototype,"thumbnail",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cv.prototype,"onTap",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cv.prototype,"dataChanged",null);_.J([_.k({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],cv);
_.Y(cv,"ytd-promoted-video-renderer",function(){if(kzA!==void 0)return kzA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return kzA=y},{mode:1});var sqQ;var ec=function(){var y=_.u.apply(this,arguments)||this;y.useRoundedBadge=!0;y.sitelinkIds=[];return y};
_.p(ec,_.u);_.E=ec.prototype;
_.E.configureRendererStamper=function(){return{"data.menu":{id:_.e("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]]"}}}}}};
_.E.dataChanged=function(){var y;(y=this.data)!=null&&y.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ec.JSC$15260_CLICK_LOCATION_ID_MAP)};
_.E.onTap=function(y){var W,V=(W=this.data)==null?void 0:W.navigationCommand;V&&!_.ef(_.O$(y),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(V,y,!1)};
_.E.onSitelinkTap=function(y){var W,V,w=y==null?void 0:(W=y.model)==null?void 0:(V=W.item)==null?void 0:V.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,y,!1)};
_.E.configureSitelinkClickTargets=function(){var y=this,W,V,w=(W=this.data)==null?void 0:(V=W.clickLocationTargets)==null?void 0:V.find(function(t){return t.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
w&&_.i6(this.hostElement).querySelectorAll(".sitelink").forEach(function(t){_.TA(t,"yt-simple-endpoint",!0);y.sitelinkIds.push(t.id);var F,I;(F=y.ytSparklesClickLocationBehavior)==null||(I=F.clickTargetMap)==null||I.set(t.id,w)})};
_.E.sendImpression=function(){var y,W,V=((y=this.data)==null?void 0:(W=y.impressionCommand)==null?void 0:W.loggingUrls)||[];y=_.N(V);for(W=y.next();!W.done;W=y.next())W=W.value,W.baseUrl&&Eg(W.baseUrl,W.attributionSrcMode)};
_.E.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.CM.Object.defineProperties(ec.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
ec.prototype.onTap=ec.prototype.onTap;ec.prototype.dataChanged=ec.prototype.dataChanged;ec.JSC$15260_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"]]);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],ec.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ec.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ec.prototype,"showFavicon",null);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],ec.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],ec.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.R("design:type",Boolean)],ec.prototype,"enableThumbnailScalingFix",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ec.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ec.prototype,"onTap",null);_.J([_.k({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],ec);
_.Y(ec,"ytd-text-image-no-button-layout-renderer",function(){if(sqQ!==void 0)return sqQ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return sqQ=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var AaJ;var h4=function(){var y=_.u.apply(this,arguments)||this;y.isInlinePlaybackState=!1;y.uiUpdate=_.e("web_modern_buttons");y.hideCta=_.e("hide_cta_for_home_web_video_ads");y.noBottomMargin=!1;y.animateInTimeStamp=_.pB("hide_cta_for_home_web_video_ads_animate_in_time");y.animateInCta=!1;y.isHovered=!1;y.enableMonoStyle=_.e("enable_default_mono_cta_migration_web_client");y.player=null;y.JSC$15267_playerEvents=new Map;y.JSC$15267_preventProgressSaveTimer=null;y.delayedCtaJobId=null;return y};
_.p(h4,_.u);_.E=h4.prototype;_.E.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]]"}}}}}};
_.E.attached=function(){this.JSC$15267_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15267_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.e("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.E.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15267_playerEvents)};
_.E.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",h4.JSC$15266_DEFAULT_CLICK_LOCATION_BEHAVIOR,h4.JSC$15266_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.E.hoverChanged=function(){var y=this;this.delayedCtaJobId&&(_.HU.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.e("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.jf(_.HU,function(){y.buttonContainer.classList.add("show-delayed-buttons")},_.pB("delayed_cta_on_web_delay_milliseconds")))};
_.E.setPlayer=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return(W=_.Kg(y.hostElement,"yt-get-inline-preview-player-action"))&&W[0]?V.yield(W[0].getPlayerPromise(),3):V.jumpTo(0);y.player=V.yieldResult;y.ytPlayerListenerBehavior.listenToPlayerEvents(y.player,y.JSC$15267_playerEvents);_.B7(V)})};
_.E.onPlaybackStart=function(){var y=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15267_preventProgressSaveTimer=_.q4(_.HU,function(){y.JSC$15267_preventProgressSaveTimer=null},1E4))};
_.E.onVideoProgress=function(y){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&y>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.E.resetPreventProgressSaveTimer=function(){_.HU.cancelJob(this.JSC$15267_preventProgressSaveTimer);this.JSC$15267_preventProgressSaveTimer=null};
_.E.getSimpleString=function(y){return _.OT(y)};
_.E.onClick=function(y){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint,w;W=(w=this.data)==null?void 0:w.channelEndpoint;var t,F;(w=(F=_.h((t=this.data)==null?void 0:t.adCtaButton,_.wz))==null?void 0:F.command)&&_.ef(_.O$(y),this.hostElement,["call-to-action"])?_.e("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(w,y,!1):W&&_.ef(_.O$(y),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(W,y,!1):!_.ef(_.O$(y),this.hostElement,["secondary-button"])&&V&&(_.e("enable_short_dr_for_desktop_launchable")?(t=!!_.h(V,_.Iw),this.isInlinePlaybackState&&t&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,y,t)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,y,!0)))}};
_.E.updateWatchEndpointStartTime=function(){var y,W;this.player&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&((W=this.data)==null?0:W.navigationEndpoint)&&!this.JSC$15267_preventProgressSaveTimer&&(y=Math.floor(this.player.getCurrentTime()),_.h(this.data.navigationEndpoint,_.Iw).startTimeSeconds=y,_.h(this.data.inlinePlaybackEndpoint,_.Iw).startTimeSeconds=y)};
_.E.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.E.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.CM.Object.defineProperties(h4.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.e("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.watchButton)&&!((W=this.data)==null||!W.adCtaButton)}}});
h4.prototype.hoverChanged=h4.prototype.hoverChanged;h4.prototype.dataChanged=h4.prototype.dataChanged;
h4.JSC$15266_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"]]);
h4.JSC$15266_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"}];
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],h4.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],h4.prototype,"ytSparklesClickLocationBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],h4.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],h4.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"isInlinePlaybackState",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],h4.prototype,"miniMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"uiUpdate",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"hideCta",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"noBottomMargin",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"animateInCta",void 0);_.J([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.R("design:type",Object)],h4.prototype,"buttonOverride",void 0);
_.J([_.q({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.R("design:type",Object)],h4.prototype,"secondaryButtonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"isHovered",void 0);_.J([_.s$("#button-container"),_.R("design:type",HTMLElement)],h4.prototype,"buttonContainer",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],h4.prototype,"typographyBump",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("typographyBump"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],h4.prototype,"typographyBumpV2",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h4.prototype,"enableMonoStyle",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h4.prototype,"dataChanged",null);
_.J([_.xA("isHovered"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h4.prototype,"hoverChanged",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],h4.prototype,"isButtonGroup",null);_.J([_.k({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],h4);
_.Y(h4,"ytd-ad-inline-playback-meta-block",function(){if(AaJ!==void 0)return AaJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AaJ=y},{mode:_.qM("kevlar_poly_si_batch_j065")?1:2});var YWs;var o_=function(){var y=_.u.apply(this,arguments)||this;y.noBottomMargin=!1;y.isInlinePreviewTriggered=!1;y.JSC$15272_activeViewMeasurementDataResolver=_.v5();return y};
_.p(o_,_.u);_.E=o_.prototype;_.E.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.E.attached=function(){var y=this;this.updateInlinePreviewHoverListeners();this.JSC$15272_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.detached=function(){this.clearInlinePreviewHoverListeners();_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15272_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.JSC$15272_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rTK})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15272_inlinePreviewHoverListener)==null||cm(y)};
_.E.onDataChanged=function(){var y;((y=this.data)==null?0:y.activeView)&&this.JSC$15272_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",o_.JSC$15271_DEFAULT_CLICK_LOCATION_BEHAVIOR,o_.JSC$15271_CLICK_LOCATION_ID_MAP);this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href"));var W;if((W=this.data)==
null?0:W.forceImpAutoplay){var V;(V=this.JSC$15272_inlinePreviewHoverListener)==null||obn(V)}};
_.E.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.E.onThumbnailContainerClick=function(y){if(this.data&&this.data.navigationEndpoint){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,y,!!_.h(V,_.Iw));y.stopPropagation()}};
_.E.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.E.impressionLog=function(){var y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,V,w=(V=_.h((W=this.data)==null?void 0:W.onImpression,_.mR))==null?void 0:V.commands;w&&(w.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;y.ytComponentBehavior.resolveCommand(t)}),this.data.impressionsFired=!0)}};
_.CM.Object.defineProperties(o_.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15272_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
o_.prototype.onTypographyBumpChanged=o_.prototype.onTypographyBumpChanged;o_.prototype.onDataChanged=o_.prototype.onDataChanged;o_.JSC$15271_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);o_.JSC$15271_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"}];
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],o_.prototype,"ytComponentBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],o_.prototype,"ytdActiveViewBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],o_.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.gZ),_.R("design:type",Object)],o_.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],o_.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],o_.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],o_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],o_.prototype,"noBottomMargin",void 0);
_.J([_.q(),_.R("design:type",Object)],o_.prototype,"isInlinePreviewTriggered",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],o_.prototype,"miniMode",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],o_.prototype,"typographyBump",void 0);_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],o_.prototype,"thumbnail",void 0);_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],o_.prototype,"JSC$15272_dismissibleMedia",void 0);
_.J([_.s$("ytd-ad-inline-playback-meta-block"),_.R("design:type",HTMLElement)],o_.prototype,"adInlinePlaybackMetaBlock",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o_.prototype,"onDataChanged",null);_.J([_.Jc("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o_.prototype,"onTypographyBumpChanged",null);
_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],o_.prototype,"isHovered",null);_.J([_.k({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],o_);
_.Y(o_,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(YWs!==void 0)return YWs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YWs=y},{mode:1});var B8r;var Kt=function(){var y=_.u.apply(this,arguments)||this;y.isInlinePreviewTriggered=!1;y.JSC$15275_activeViewMeasurementDataResolver=_.v5();return y};
_.p(Kt,_.u);_.E=Kt.prototype;_.E.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.E.attached=function(){var y=this;this.updateInlinePreviewHoverListeners();this.JSC$15275_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)})};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15275_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.JSC$15275_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rTK})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15275_inlinePreviewHoverListener)==null||cm(y)};
_.E.onDataChanged=function(){var y;((y=this.data)==null?0:y.activeView)&&this.JSC$15275_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Kt.JSC$15274_DEFAULT_CLICK_LOCATION_BEHAVIOR,Kt.JSC$15274_CLICK_LOCATION_ID_MAP);this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href"))};
_.E.onThumbnailContainerClick=function(y){if(this.data&&this.data.navigationEndpoint){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,y,!0);y.stopPropagation()}};
_.E.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.E.impressionLog=function(){var y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,V,w=(V=_.h((W=this.data)==null?void 0:W.onImpression,_.mR))==null?void 0:V.commands;w&&(w.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.hs().resolve(_.oA).resolveCommand(t,{form:{element:y.hostElement}})}),this.data.impressionsFired=!0)}};
_.CM.Object.defineProperties(Kt.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15275_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Kt.prototype.onDataChanged=Kt.prototype.onDataChanged;Kt.JSC$15274_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Kt.JSC$15274_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"}];_.J([_.m(Z9),_.R("design:type",Object)],Kt.prototype,"ytdActiveViewBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Kt.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],Kt.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Kt.prototype,"ytdReduxBehavior",void 0);
_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Kt.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Kt.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Kt.prototype,"isInlinePreviewTriggered",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],Kt.prototype,"miniMode",void 0);_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],Kt.prototype,"thumbnail",void 0);
_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],Kt.prototype,"JSC$15275_dismissibleMedia",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Kt.prototype,"onDataChanged",null);_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Kt.prototype,"isHovered",null);_.J([_.k({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Kt);
_.Y(Kt,"ytd-video-display-full-buttoned-renderer",function(){if(B8r!==void 0)return B8r;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return B8r=y},{mode:1});var mH=function(y,W,V,w){w=w===void 0?!1:w;_.yj.call(this,y);this.adsClientErrorMessage=V;this.aggressivelySample=w;this.args=[];W&&this.args.push(W)};
_.p(mH,_.yj);var fv=function(y,W,V,w){w=w===void 0?!1:w;_.yj.call(this,y);this.adsClientErrorMessage=V;this.aggressivelySample=w;this.args=[];W&&this.args.push(W)};
_.p(fv,_.yj);var JaA=function(y){_.Ru.call(this);var W=this;this.initializationFunction=y;this.instance=null;this.addOnDisposeCallback(function(){_.La(W.instance);W.instance=null})};
_.p(JaA,_.Ru);JaA.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.ce("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var rTj=function(){var y=new Map;[].forEach(function(W){y.set(W.JSC$30110_getType(),W)});
this.getters=y};new Promise(function(){});var n7L=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"]]),jrP=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"}]]),R2E=function(y){this.experimentApiProvider=y;y=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=y<.1};var pt=function(y,W,V,w){_.Ru.call(this);this.adsControlFlowEventListeners=W;this.adEventLogger=V;this.experimentApiProvider=w;this.adsControlFlowManagerHelper=y(this,this,this,this,this);_.Uf(this,this.adsControlFlowManagerHelper);y=_.N(W);for(W=y.next();!W.done;W=y.next())_.Uf(this,W.value)};
_.p(pt,_.Ru);var jqz=function(y,W,V,w){iq(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",W,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w);y=_.N(y.adsControlFlowEventListeners);for(w=y.next();!w.done;w=y.next())jqz(w.value,W,V)};
_.E=pt.prototype;_.E.onOpportunityProcessedExternallyManaged=function(y,W,V,w){iq(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",y,V,W,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w)};
_.E.onSlotReceivedExternallyManaged=function(y,W){ft(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",y,W)};
_.E.onSlotEntered=function(y){if(uq(this.adsControlFlowManagerHelper,y)!=null){ft(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",y);this.adsControlFlowManagerHelper.onSlotEntered(y);for(var W=_.N(this.adsControlFlowEventListeners),V=W.next();!V.done;V=W.next())V.value.onSlotEntered(y);if(uq(this.adsControlFlowManagerHelper,y)!=null&&uq(this.adsControlFlowManagerHelper,y).isOccupyingSlotType()&&Sc(this.adsControlFlowManagerHelper,y)&&!$bz(this.adsControlFlowManagerHelper,y)){var w;DU(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",y,(w=Sc(this.adsControlFlowManagerHelper,y))!=null?w:void 0);y=uq(this.adsControlFlowManagerHelper,y);y.slotLifecycleStage!=="entered"&&lq(y.slot,y.slotLifecycleStage,"enterLayoutForSlot");y.slotLifecycleStage="rendering";y.registeredLayoutRenderingAdapter.startRendering(y.layout)}}};
_.E.onSlotExited=function(y){if(uq(this.adsControlFlowManagerHelper,y)!=null){ft(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",y);this.adsControlFlowManagerHelper.onSlotExited(y);for(var W=_.N(this.adsControlFlowEventListeners),V=W.next();!V.done;V=W.next())V.value.onSlotExited(y);uq(this.adsControlFlowManagerHelper,y)!=null&&uq(this.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests&&nm6(this,y)}};
_.E.onLayoutReceivedExternallyManaged=function(y,W,V){y.managerLayer!=="core"&&DU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",y,W,V)};
var HTz=function(y,W,V){if(uq(y.adsControlFlowManagerHelper,W)!=null){DU(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,V);y=_.N(y.adsControlFlowEventListeners);for(var w=y.next();!w.done;w=y.next())HTz(w.value,W,V)}};
pt.prototype.onLayoutExited=function(y,W,V){if(uq(this.adsControlFlowManagerHelper,y)!=null){DU(this.adEventLogger,$0G(V),y,W);this.adsControlFlowManagerHelper.onLayoutExited(y,W);for(var w=_.N(this.adsControlFlowEventListeners),t=w.next();!t.done;t=w.next())t.value.onLayoutExited(y,W,V);(V=Sc(this.adsControlFlowManagerHelper,y))&&W.layoutId===V.layoutId&&XAi(this,y)}};
pt.prototype.disposeInternal=function(){var y=a$r(this.adsControlFlowManagerHelper);y=_.N(y);for(var W=y.next();!W.done;W=y.next())nm6(this,W.value);_.Ru.prototype.disposeInternal.call(this)};
var nm6=function(y,W){if(uq(y.adsControlFlowManagerHelper,W)!=null)if(uq(y.adsControlFlowManagerHelper,W).JSC$30140_isSlotExitRequested()||uq(y.adsControlFlowManagerHelper,W).JSC$30140_isLayoutExitRequested())uq(y.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(uq(y.adsControlFlowManagerHelper,W).isOccupyingSlotType())uq(y.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0,XAi(y,W);else if(uq(y.adsControlFlowManagerHelper,W).JSC$30140_isSlotFillRequested())uq(y.adsControlFlowManagerHelper,
W).markedForUnscheduleAfterOutboundAdapterRequests=!0,uq(y.adsControlFlowManagerHelper,W)!=null&&(ft(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),W=uq(y.adsControlFlowManagerHelper,W),W.fulfillmentLifecycleStage="fill_cancel_requested",W.registeredFulfillmentAdapter.cancelSlotFilling());else{var V=Sc(y.adsControlFlowManagerHelper,W),w;y.experimentApiProvider.get();(w=_.e("h5_enable_layout_unscheduling_events"))&&(V?Gz6(y,W,V):_.ce(Error("Rh"),W,V,void 0,!1));ft(y.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);var t=uq(y.adsControlFlowManagerHelper,W),F=W.slotEntryTrigger,I=t.registeredSlotEntryTriggerAdapters.get(F.triggerId);I&&(I.unregisterTrigger(F),t.registeredSlotEntryTriggerAdapters.delete(F.triggerId));F=_.N(W.slotFulfillmentTriggers);for(I=F.next();!I.done;I=F.next()){I=I.value;var P=t.registeredFulfillmentTriggerAdapters.get(I.triggerId);P&&(P.unregisterTrigger(I),t.registeredFulfillmentTriggerAdapters.delete(I.triggerId))}F=_.N(W.slotExpirationTriggers);
for(I=F.next();!I.done;I=F.next())if(I=I.value,P=t.registeredExpirationTriggerAdapters.get(I.triggerId))P.unregisterTrigger(I),t.registeredExpirationTriggerAdapters.delete(I.triggerId);t.hasLayout()&&(F=t.layout,xh(t,F.layoutExitNormalTriggers),xh(t,F.layoutExitSkipTriggers),xh(t,F.layoutExitMuteTriggers),xh(t,F.layoutExitUserInputSubmittedTriggers),xh(t,F.layoutExitUserCancelledTriggers));t.registeredFulfillmentAdapter=void 0;t.registeredSlotAdapter!=null&&(t.registeredSlotAdapter.release(),t.registeredSlotAdapter=
void 0);t.registeredLayoutRenderingAdapter!=null&&(t.registeredLayoutRenderingAdapter.release(),t.registeredLayoutRenderingAdapter=void 0);t=y.adsControlFlowManagerHelper;uq(t,W)&&(t=raQ(t,W.slotType+"_"+W.slotPhysicalPosition))&&t.delete(W.slotId);ft(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);y=_.N(y.adsControlFlowEventListeners);for(t=y.next();!t.done;t=y.next())t=t.value,t.onSlotUnscheduled(W),V&&!w&&Gz6(t,W,V)}},Gz6=function(y,W,V){DU(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
W,V);
DU(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",W,V);y=_.N(y.adsControlFlowEventListeners);for(var w=y.next();!w.done;w=y.next())w=w.value,V&&Gz6(w,W,V)},XAi=function(y,W){if(uq(y.adsControlFlowManagerHelper,W)!=null&&uq(y.adsControlFlowManagerHelper,W).isOccupyingSlotType()){var V=Sc(y.adsControlFlowManagerHelper,W);
if(V&&$bz(y.adsControlFlowManagerHelper,W)){if(uq(y.adsControlFlowManagerHelper,W)!=null){var w=y.adEventLogger,t;var F=((t=jrP.get("abandoned"))==null?void 0:t.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";DU(w,F,W,V);y=uq(y.adsControlFlowManagerHelper,W);y.slotLifecycleStage!=="rendering"&&lq(y.slot,y.slotLifecycleStage,"exitLayout");y.slotLifecycleStage="rendering_stop_requested";y.registeredLayoutRenderingAdapter.stopRendering(V,"abandoned")}}else{ft(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
W);try{w=uq(y.adsControlFlowManagerHelper,W);if(!w)throw new fv("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");w.slotLifecycleStage!=="enter_requested"&&w.slotLifecycleStage!=="entered"&&w.slotLifecycleStage!=="rendering"&&lq(w.slot,w.slotLifecycleStage,"exitSlot");w.slotLifecycleStage="exit_requested";if(w.registeredSlotAdapter===void 0)throw w.slotLifecycleStage="scheduled",new fv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
w.registeredSlotAdapter.exit()}catch(I){I instanceof fv&&I.adsClientErrorMessage?(bTE(y.adEventLogger,I.adsClientErrorMessage,W),_.ce(I,W,void 0,void 0,I.aggressivelySample)):(bTE(y.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),_.ce(I,W))}}}};var kh=function(y,W,V,w,t,F){_.Ru.call(this);this.registry=y;this.experimentApiProvider=F;this.slotMap=new Map};
_.p(kh,_.Ru);var raQ=function(y,W){return(y=y.slotMap.get(W))?y:new Map},uq=function(y,W){return raQ(y,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)},a$r=function(y){var W=[];
y.slotMap.forEach(function(V){V=_.N(V.values());for(var w=V.next();!w.done;w=V.next())W.push(w.value.slot)});
return W};
kh.prototype.onSlotEntered=function(y){y=uq(this,y);y.slotLifecycleStage!=="enter_requested"&&lq(y.slot,y.slotLifecycleStage,"onSlotEntered");y.slotLifecycleStage="entered"};
var $bz=function(y,W){y=uq(y,W);return y.hasLayout()&&y.isRendering()},Sc=function(y,W){(y=uq(y,W))?y.hasLayout()&&!y.layout&&_.ce("Unexpected empty layout",W):_.ce("Unexpected undefined slotState",W);
return(y==null?void 0:y.layout)||null};
kh.prototype.onSlotExited=function(y){y=uq(this,y);y.slotLifecycleStage!=="exit_requested"&&lq(y.slot,y.slotLifecycleStage,"onSlotExited");y.slotLifecycleStage="scheduled"};
kh.prototype.onLayoutExited=function(y,W){y=uq(this,y);y.isPrimaryLayout(W)&&(y.slotLifecycleStage!=="rendering_stop_requested"&&lq(y.slot,y.slotLifecycleStage,"onLayoutExited"),y.slotLifecycleStage="entered")};
var xh=function(y,W){W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=y.registeredLayoutExitTriggerAdapters.get(V.triggerId);w&&(w.unregisterTrigger(V),y.registeredLayoutExitTriggerAdapters.delete(V.triggerId))}},lq=function(y,W,V){_.ce("Slot stage was "+W+" when calling method "+V,y)};var ZTQ=function(y){_.Ru.call(this);this.deps=y;this.JSC$15325_adsControlFlowManager=Qqi(this)};
_.p(ZTQ,_.Ru);var Qqi=function(y){var W=new pt(function(V,w,t,F){return new kh(y.deps.registry,V,w,t,F,y.deps.experimentApiProvider)},new Set(G9z(y.deps.registry).concat(y.deps.listeners)),y.deps.adEventLogger,y.deps.experimentApiProvider);
_.Uf(y,W);return W};var y2R=function(y,W){_.Ru.call(this);this.experimentApiProvider=y;this.eventLoggingSettingsProvider=W;this.eventCount=0};
_.p(y2R,_.Ru);y2R.prototype.logEvent=function(y){iq(this,y)};
var ft=function(y,W,V,w){iq(y,W,void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,void 0,w)},DU=function(y,W,V,w,t){iq(y,W,void 0,void 0,void 0,V,w?w:void 0,void 0,void 0,V.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,void 0,t)},bTE=function(y,W,V){iq(y,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:W})},iq=function(y,W,V,w,t,F,I,P,C,d,L,z,c){c=c===void 0?0:c;
WnE(y.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",F,"layout:",I,"ping:",P,"Opportunity:",{opportunityType:V,associatedSlotId:w,slotsFromOpportunity:t,triggerBundle:C,adSlotLoggingData:d,adLayoutLoggingData:L});try{var K=function(){y.experimentApiProvider.get();if(W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||_.ce("Empty PACF event type",F,I);var f=y.eventLoggingSettingsProvider.get();var U;(U=f.alwaysIncludeDebugData)||(f.experimentApiProvider.get(),U=
!1);f=U;U={eventType:W,eventOrder:++y.eventCount};var l={};F&&(l.slotData=XrR(f,F));if(I){var x={type:I.layoutType,controlFlowManagerLayer:n7L.get(I.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f&&(x.debugData={layoutId:I.layoutId});l.layoutData=x}P&&(l.pingData={pingDispatchStatus:P.dispatchStatus,serializedAdPingMetadata:P.ping.serializedAdPingMetadata,pingIndex:P.index});C&&(l.triggerData=HQz(C.trigger,C.category));V&&(l.opportunityData=aK4(f,V,w,t));U.adClientData=l;d&&(U.serializedSlotAdServingData=
d.serializedSlotAdServingDataEntry);L&&(U.serializedAdServingData=L.serializedAdServingDataEntry);z&&(U.errorInfo=z);_.Hp("adsClientStateChange",{adsClientEvent:U})}};
c&&c>0?_.Jt(_.Xu(),function(){return K()},c):K()}catch(f){WnE(y.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Jt(_.Xu(),function(){_.ce(f instanceof Error?f:String(f),F,I,{pacf_message:"exception during pacf logging"})})}};var VS6=function(y,W){y2R.call(this,y,W)};
_.p(VS6,y2R);var wkq=function(){},WnE=function(y,W){return _.e(W)};var Fnz=function(){var y=new tSJ;this.JSC$15344_adsControlFlowManager=(new ZTQ(y)).JSC$15325_adsControlFlowManager},tSJ=function(){_.Ru.call(this);
var y=this;this.experimentApiProvider=new JaA(function(){return new wkq});
var W=new JaA(function(){return new R2E(y.experimentApiProvider)});
this.adEventLogger=new VS6(this.experimentApiProvider,W);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.p(tSJ,_.Ru);var EH6=function(){},NGE,st=function(){NGE||(NGE=new EH6);
return NGE},A4=function(y){if(!y.JSC$15355_externallyManagedSlotAdapterCallback){var W=(new Fnz).JSC$15344_adsControlFlowManager;
y.JSC$15355_externallyManagedSlotAdapterCallback=W}return y.JSC$15355_externallyManagedSlotAdapterCallback},IlK=function(y,W,V){var w=W.opportunityType,t=Error("Sh");
if(w!==void 0){var F=A4(y);jqz(F,w,void 0,V)}else _.ce(t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});F=[];if(W.adSlotAndLayoutMetadata!==void 0){W=_.N(W.adSlotAndLayoutMetadata);for(var I=W.next();!I.done;I=W.next()){var P=I.value;if(I=P.adSlotMetadata)if(F.push(I),y.onSlotReceivedExternallyManaged(I,V),P.adLayoutMetadata){P=_.N(P.adLayoutMetadata);for(var C=P.next();!C.done;C=P.next())y.onLayoutReceivedExternallyManaged(I,C.value,V)}else V>0&&_.ce("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else V>0&&_.ce("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else V>0&&_.ce("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(w!==void 0)y.onOpportunityProcessedExternallyManaged(w,F,void 0,V);else _.ce(t,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
EH6.prototype.onSlotReceivedExternallyManaged=function(y,W){y=Tr(y);if(y instanceof fv)_.ce(y,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else A4(this).onSlotReceivedExternallyManaged(y,W)};
EH6.prototype.onLayoutReceivedExternallyManaged=function(y,W,V){y=Tr(y);W=bQa(W);if(y instanceof fv)_.ce(y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(W instanceof mH)_.ce(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else A4(this).onLayoutReceivedExternallyManaged(y,W,V)};
EH6.prototype.onOpportunityProcessedExternallyManaged=function(y,W,V,w){var t=[];W=_.N(W);for(var F=W.next();!F.done;F=W.next())F=Tr(F.value),F instanceof fv?_.ce(F,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):t.push(F);A4(this).onOpportunityProcessedExternallyManaged(y,t,V,w)};
var gHq=function(y,W){W=Tr(W);if(W instanceof fv)_.ce(W,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var V=A4(y);ft(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",W);V=_.N(V.adsControlFlowEventListeners);for(var w=V.next();!w.done;w=V.next())w=uq(w.value,W),w.slotLifecycleStage!=="not_scheduled"&&lq(w.slot,w.slotLifecycleStage,"onSlotScheduled"),w.slotLifecycleStage="scheduled";y=A4(y);ft(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);y=_.N(y.adsControlFlowEventListeners);
for(V=y.next();!V.done;V=y.next())V.value.onSlotEntered(W)}},PBf=function(y,W){W=Tr(W);
if(W instanceof fv)_.ce(W,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var V=A4(y);ft(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);V=_.N(V.adsControlFlowEventListeners);for(var w=V.next();!w.done;w=V.next())w.value.onSlotExited(W);y=A4(y);ft(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);y=_.N(y.adsControlFlowEventListeners);for(V=y.next();!V.done;V=y.next())V.value.onSlotUnscheduled(W)}},CBf=function(y,W,V){W=Tr(W);
V=bQa(V);if(W instanceof fv)_.ce(W,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(V instanceof mH)_.ce(V,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var w=A4(y);DU(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,V);w=_.N(w.adsControlFlowEventListeners);for(var t=w.next();!t.done;t=w.next())t.value.onLayoutScheduled(W,V);y=A4(y);DU(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,V);y=_.N(y.adsControlFlowEventListeners);
for(w=y.next();!w.done;w=y.next())HTz(w.value,W,V)}},Yh=function(y,W,V){W=Tr(W);
V=bQa(V);if(W instanceof fv)_.ce(W,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(V instanceof mH)_.ce(V,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var w=A4(y);DU(w.adEventLogger,$0G("normal"),W,V);w=_.N(w.adsControlFlowEventListeners);for(var t=w.next();!t.done;t=w.next())t.value.onLayoutExited(W,V,"normal");y=A4(y);y=_.N(y.adsControlFlowEventListeners);for(w=y.next();!w.done;w=y.next())Gz6(w.value,W,V)}};_.Bv=_.eY(function(y){var W=_.zb(y,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});y=Object.assign({},W);var V=W.data;W=W.customCommandResolver;var w=(delete y.data,delete y.customCommandResolver,y);y=_.L7({visibilityCallback:function(P,C){var d,L=(d=V().interaction)==null?void 0:d.onFirstVisible;P&&(L&&_.Id(L),w.setOnErrorHandler()&&Qrv(C))},
showOption:_.oz});W=_.Pe(function(){return V().interaction},W,function(){var P;
return(P=w.listenToTapEvent)==null?void 0:P.call(w)});
var t=_.N(_.M1(!1,void 0,"nqIeMd")),F=t.next().value,I=t.next().value;t=_.YS(function(P){var C;((C=w.setTouchEndHandler)==null?0:C.call(w))&&!F()&&(P.currentTarget.click(),I(!0),setTimeout(function(){I(!1)},100));
return!1});
return _.O("ad-image-view-model",{class:function(){var P,C=[((P=V().interaction)==null?0:P.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],d;((d=w.isGridViewEnabled)==null?0:d.call(w))&&C.push("ytwAdImageViewModelHostInGridView");return C.join(" ")},
el:_.hl(y,W),"on:touchend":t},_.O("div",{class:"ytwAdImageViewModelHostImageContainer"},_.O(_.ca,{data:function(){var P;return{sources:V().imageSources,contentMode:(P=V().imageProperties)==null?void 0:P.contentMode}},
alt:function(){var P,C;return((P=V().interaction)==null?void 0:(C=P.accessibility)==null?void 0:C.label)||""},
targetHeight:w.targetHeight,targetWidth:w.targetWidth,preserveHeight:w.preserveHeight,preserveWidth:w.preserveWidth,useWidth:w.useWidth,style:function(){var P,C;return"vertical-align: bottom;"+(((P=V().background)==null?0:P.color)?"background-color:"+_.V2((C=V().background)==null?void 0:C.color)+";":"")},
className:function(){return w.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var P,C;return(C=(P=w.setDraggable)==null?void 0:P.call(w))!=null?C:void 0}})))},"nb");var O_m=_.eY(function(y){var W=y.data,V=y.listenToTapEvent,w=function(){};
return _.O("ad-button-hover-overlay-view-model",{"on:click":_.YS(function(t){if(_.e("enable_web_home_top_landscape_image_layout_legacy_click_command")){var F,I=(F=W().interaction)==null?void 0:F.onTap;I&&_.h1(t.currentTarget,"yt-navigate",{endpoint:_.tl(I)})}}),
class:function(){var t;return((t=W().interaction)==null?0:t.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(t){var F,I=(F=W().interaction)==null?void 0:F.onFirstVisible;t&&I&&_.Id(I)},
showOption:_.oz}),_.Pe(function(){return W().interaction},void 0,function(){return!_.e("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(V==null?void 0:V())}))},function(){return _.e("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.O(_.Q7,{data:function(){return W().button}},{adButtonViewModel:function(t){return _.O(_.p9,{data:t.data,
customCommandResolver:w})}}):_.O(_.Q7,{data:function(){return W().button}},{adButtonViewModel:_.p9})}())},"ob");var MU;_.iF(_.eY(function(y){var W=y.data;y=_.L7({visibilityCallback:function(P,C){if(P){var d;(P=(d=W().interaction)==null?void 0:d.onFirstVisible)&&_.Id(P);var L;if(d=(L=W().adLayoutData)==null?void 0:L.activeViewData)qU(C,d),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&UZ(C)})}else _.e("stop_av_measurement_on_detach")&&UZ(C)},
showOption:_.oz,hideOption:K9});var V=_.Pe(function(){return W().interaction},void 0,function(){return!0}),w=_.N(_.M1(!1,void 0,"K1MNM")),t=w.next().value,F=w.next().value;
w=_.YS(function(){F(!0)});
var I=_.YS(function(){F(!1)});
return _.O("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.hl(y,F5v,V),"on:mouseenter":w,"on:mouseleave":I},_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Rd({"max-width":function(){return _.e("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.O("div",{class:function(){var P;
a:{var C;switch((P=_.h(W().thumbnailImage,R3R))==null?void 0:(C=P.imageProperties)==null?void 0:C.renderingAspect){case "RENDERING_ASPECT_SQUARE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}P=void 0}return P}},_.O(_.Q7,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(P){return _.O(_.Bv,
{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.e("enable_top_landscape_image_experiment_dom_id_web")})}})),_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.O(_.v,{cond:function(){var P,C,d;
return(P=_.h(W().thumbnailImage,R3R))==null?void 0:(C=P.imageProperties)==null?void 0:(d=C.overlayIcon)==null?void 0:d.iconImage},
then:function(P){return _.O(_.ca,{data:P,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.O("div",{class:function(){return t()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.O(_.Q7,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(P){return _.O(O_m,
{data:P.data,
listenToTapEvent:!0})}}))),_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.O(_.Q7,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.O(hPK,{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.e("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;y=_.L7({visibilityCallback:function(P,C){if(P){var d;(P=(d=W().interaction)==null?void 0:d.onFirstVisible)&&_.Id(P);var L;if(d=(L=W().adLayoutData)==null?void 0:L.activeViewData)qU(C,d),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&UZ(C)})}else _.e("stop_av_measurement_on_detach")&&UZ(C)},
showOption:_.oz,hideOption:K9});var V=_.tn(_.wp),w=_.Pe(function(){return W().interaction}),t={},F={},I={};
return _.O("square-image-layout-view-model",{class:_.kS("ytwSquareImageLayoutViewModelHost",(t.ytwSquareImageLayoutViewModelHostColumn=V,t)),el:_.hl(y,Emn,w)},_.O("div",{class:_.kS("ytwSquareImageLayoutViewModelHostImage",(F.ytwSquareImageLayoutViewModelHostColumnImage=V,F))},function(){return _.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(P){return _.O(_.Bv,{data:P.data,
isGridViewEnabled:V,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.O("div",{class:_.kS("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(I.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=V,I))},_.O(_.Q7,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:hPK}),function(){return _.O(_.Q7,{data:function(){return W().adButton}},{adButtonViewModel:function(P){var C={};
return _.O(_.p9,{data:P.data,className:_.kS((C.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=V,C))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.noBottomMargin;var w=y.typographyBump;y=_.L7({visibilityCallback:function(z,c){if(z){var K;(z=(K=W().interaction)==null?void 0:K.onFirstVisible)&&_.Id(z);var f;if(K=(f=W().adLayoutData)==null?void 0:f.activeViewData)qU(c,K),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&UZ(c)})}else _.e("stop_av_measurement_on_detach")&&UZ(c)},
showOption:_.oz,hideOption:K9});var t=_.Pe(function(){return W().interaction},void 0,function(){return _.e("enable_web_home_top_landscape_image_layout_level_click")}),F=function(){return W().interaction};
F!==void 0&&F!==null||_.FU(Error("Th"));var I=function(){var z,c,K;return(z=_.h(W().thumbnailImage,R3R))==null?void 0:(c=z.background)==null?void 0:(K=c.backgroundImageSource)==null?void 0:K.imageSources};
F=_.N(_.M1(!1,void 0,"pZPLOd"));var P=F.next().value,C=F.next().value;F=_.YS(function(){C(!0)});
var d=_.YS(function(){C(!1)}),L=function(){return P()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.O("top-landscape-image-layout-view-model",{class:function(){var z;return((z=W().interaction)==null?0:z.onTap)&&_.e("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.hl(y,N8y,t),"on:mouseenter":F,"on:mouseleave":d},_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.O(_.v,{cond:function(){return I()&&I().length>0},
then:function(){return _.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Rd({top:"0","background-image":function(){return"url("+String(I()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.O(_.v,{cond:function(){return!!W().adButtonHoverOverlay},
then:function(){return _.O("div",{class:L},_.O(_.Q7,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:O_m}))}}),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.O(_.Q7,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(z){return _.O(_.Bv,{data:z.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.e("enable_web_home_top_landscape_image_layout_level_click")})}})),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.O(_.ca,{data:{sources:[{clientResource:{imageName:_.e("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.O(_.Q7,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(z){return _.O(hPK,{data:z.data,
noBottomMargin:function(){return V==null?void 0:V()},
listenToTapEvent:function(){return _.e("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return w==null?void 0:w()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.vB,
noBottomMargin:_.vB,typographyBump:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.typographyBump;return _.O("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.hl(_.L7({visibilityCallback:function(w,t){if(w){var F;(w=(F=W().interaction)==null?void 0:F.onFirstVisible)&&_.Id(w);var I;F=(I=W().adLayoutData)==null?void 0:I.activeViewData;!_.e("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&F&&qU(t,F)}},
showOption:_.oz,hideOption:K9}))},_.O("div",null,_.O(_.Q7,{data:function(){return W().videoLockup}},{lockupViewModel:function(w){return _.O(_.US,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.vB,
noBottomMargin:_.vB,typographyBump:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.className;var w=y.typographyBump;return _.O("video-display-compact-button-group-layout-view-model",{el:_.hl(_.L7({visibilityCallback:function(t,F){if(t){var I;(t=(I=W().interaction)==null?void 0:I.onFirstVisible)&&_.Id(t);var P;(I=(P=W().adLayoutData)==null?void 0:P.activeViewData)&&qU(F,I)}},
showOption:_.oz})),class:_.kS("videoDisplayCompactButtonGroupLayoutViewModelHost",V)},_.O(_.Q7,{data:function(){return W().videoLockup}},{lockupViewModel:function(t){return _.O(_.US,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.vB,
className:_.vB,typographyBump:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.className;var w=y.typographyBump;return _.O("video-display-compact-buttoned-layout-view-model",{el:_.hl(_.L7({visibilityCallback:function(t,F){if(t){var I;(t=(I=W().interaction)==null?void 0:I.onFirstVisible)&&_.Id(t);var P;(I=(P=W().adLayoutData)==null?void 0:P.activeViewData)&&qU(F,I)}},
showOption:_.oz})),class:_.kS("videoDisplayCompactButtonedLayoutViewModelHost",V)},_.O(_.Q7,{data:function(){return W().videoLockup}},{lockupViewModel:function(t){return _.O(_.US,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.vB,
className:_.vB,typographyBump:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.className;var w=y.typographyBump;var t=function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},F=_.tn(_.wp);
y=_.L7({visibilityCallback:function(d,L){if(d){var z=W();d=z.adLayoutData;var c;(z=(c=z.interaction)==null?void 0:c.onFirstVisible)&&_.Id(z);(c=d==null?void 0:d.activeViewData)&&qU(L,c)}},
showOption:_.oz});var I=_.DZ(function(){return{containerType:t()&&F()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),P=_.DZ(function(){return t()&&F()?"":t()?"168px":"50%"},void 0,"ikSkm"),C=_.DZ(function(){return t()&&F()?9999:void 0},void 0,"M8rucc");
return _.O("video-display-compact-layout-view-model",{el:_.hl(y),class:_.kS("videoDisplayCompactLayoutViewModelHost",V)},_.O(_.Q7,{data:function(){return W().videoLockup}},{lockupViewModel:function(d){return _.O(_.US,{data:d.data,
containerLayoutConfig:I,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:P,thumbnailTargetWidth:C,typographyBump:w})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.vB,
className:_.vB,typographyBump:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=y.typographyBump;return _.O("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.hl(_.L7({visibilityCallback:function(w,t){if(w){var F;(w=(F=W().interaction)==null?void 0:F.onFirstVisible)&&_.Id(w);var I;F=(I=W().adLayoutData)==null?void 0:I.activeViewData;!_.e("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&F&&qU(t,F)}},
showOption:_.oz,hideOption:K9}))},_.O("div",null,_.O(_.Q7,{data:function(){return W().videoLockup}},{lockupViewModel:function(w){return _.O(_.US,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.vB,
noBottomMargin:_.vB,typographyBump:_.vB}});_.vHR=_.eY(function(y){var W=y.data;y=_.I0("ad-card-badge-view-model");return _.O("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:y},_.O(_.v,{cond:function(){return W().imageBadge},
then:function(V){return _.O(_.ca,{data:V,alt:""})}}))},"xb");var djm=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;return _.O("carousel-ad-card-image-view-model",{class:function(){var w;return((w=W().interaction)==null?0:w.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V)),
"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.O(_.Bv,{data:w.data,
customCommandResolver:V})}}),_.O("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.O(_.Q7,{data:function(){return W().badge}},{adCardBadgeViewModel:_.vHR})),_.O(_.Ha,{model:{color:4}}))},"yb");var Lnr=_.eY(function(y){var W=_.N(_.M1(0,void 0,"o9Bzd")),V=W.next().value;W.next();var w=W.next().value,t=_.N(_.M1(!1,void 0,"KLdzYe"));W=t.next().value;var F=t.next().value,I;_.XT(function(){clearTimeout(I)});
t=_.YS(function(){var d;((d=y.animate)==null?0:d.call(y))?(F(!0),I=setTimeout(function(){F(!1);P()},200)):P();
return!1});
var P=function(){w(function(d){return(d+y.numShownItems())%y.data().length})},C={};
return _.O("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.O("div",{class:_.kS("ytwHorizontalCarouselCarouselWrapper")},_.O("div",{class:_.kS("ytwHorizontalCarouselCarouselInnerWrapper",(C.ytwHorizontalCarouselAnimating=W,C))},_.O(_.YV,{each:y.data,keyBy:"INDEX"},function(d,L){return _.O("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Rd({"flex-basis":function(){return"calc((100% - (8px * "+(y.numShownItems()-1)+")) / "+y.numShownItems()+")"},
order:function(){var z=L-V();z<0&&(z+=y.data().length);return z}})},y.children(d,L))}))),_.O("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":t},y.nextButton()))},"zb");var zX6=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;var w=y.expansive;return _.O("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.hl(_.L7({visibilityCallback:function(t){var F,I=(F=W().interaction)==null?void 0:F.onFirstVisible;t&&I&&_.Id(I)},
showOption:_.oz}))},_.O(Lnr,{data:function(){var t;return((t=W())==null?void 0:t.carouselAdCards)||[]},
nextButton:function(){return _.O(_.Q7,{data:function(){return W().nextButton}},{buttonViewModel:function(t){var F=t.data;
return _.O(_.lk,{data:function(){return(w==null?0:w())?Object.assign({},F(),{style:"mono"}):F()},
className:_.e("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(t){return _.O(_.Q7,{data:t},{carouselAdCardImageViewModel:function(F){return _.O(djm,{data:F.data,customCommandResolver:V})}})}))},"Ab");var c2Q=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;var w=y.className;var t=y.buttonClassName;var F=y.animationEntityKey;var I=y.expansive;return _.O("carousel-button-view-model",{class:_.kS("ytwCarouselButtonViewModelHost",w)},_.O(_.Q7,{data:function(){return W().carousel}},{carouselAdCardCollectionViewModel:function(P){return _.O(zX6,{data:P.data,
customCommandResolver:V,expansive:I})}}),_.O(_.Q7,{data:function(){return W().button}},{adButtonViewModel:function(P){var C=P.data;
return _.O(_.p9,{data:function(){return(I==null?0:I())?Object.assign({},C(),{style:"AD_BUTTON_STYLE_TONAL"}):C()},
className:t,customCommandResolver:V,animationEntityKey:F})}}))},"Bb");_.eXz=_.eY(function(y){var W=y.data;y=y.className;var V=_.I0("pivot-button-view-model");_.a8(function(){var w;((w=W())==null?0:w.backgroundColor)&&V.value.setAttribute("data-background-color",String(W().backgroundColor))});
return _.O("pivot-button-view-model",{el:V,class:_.kS("ytwPivotButtonViewModelHost",y)},_.O(_.It,{command:function(){var w=W();w=w.onClickCommand?_.tl(w.onClickCommand):w.contentDescription?_.eW(w.contentDescription):void 0;return w},
ariaLabel:function(){return W().contentDescription}},_.O(_.v,{cond:function(){return W().thumbnail},
then:function(w){return _.O(_.ca,{data:w,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.O(_.v,{cond:function(){return W().icon},
then:function(w){return _.O(_.jl,{icon:function(){return w().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.hXE=_.eY(function(y){var W=y.data;var V=y.buttonShapeOverrideables;return _.O("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.O(_.Q7,{data:function(){return W().buttonViewModels}},{buttonViewModel:function(w){return _.O(_.lk,{data:w.data,
buttonOverrides:V})},
likeButtonViewModel:function(w){return _.O(_.Q$,{data:w.data,buttonShapeOverrideables:V})},
dislikeButtonViewModel:function(w){return _.O(_.ba,{data:w.data,buttonShapeOverrideables:V})},
toggleButtonViewModel:function(w){return _.O(_.XV,{data:w.data,buttonShapeOverrides:V})}}))},"Db");var oHz=_.eY(function(y){var W=y.avatar;var V=y.headline;var w=y.badge;var t=y.description;var F=y.expansive;y={};return _.O("yt-ad-metadata-shape",{class:_.kS("ytAdMetadataShapeHost",(y.ytAdMetadataShapeHostLarge=F,y))},_.O("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.O(_.v,{cond:W,then:function(I){return _.O(_.Lvi,{data:function(){return(F==null?0:F())?Object.assign({},I(),{size:"AD_AVATAR_SIZE_MPLUS"}):I()}})}}),_.O("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.O(_.Lv,{text:V,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.O(_.v,{cond:w,then:function(I){return _.O(_.MD,{data:function(){return(F==null?0:F())?Object.assign({},I(),{style:"AD_BADGE_STYLE_STARK"}):I()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.O("h2",{class:"ytAdMetadataShapeHostDescription"},_.O(_.Lv,{text:t,
linkInheritColor:!0})))},"Eb");var Knq=_.eY(function(y){var W=y.data;var V=y.onShow;var w=y.expansive;y=_.Pe(function(){return W().interaction});
_.a8(function(){var F,I=(F=W().animatedRenderingConfig)==null?void 0:F.delayedSecondsToVisible;if(I){var P=setTimeout(V,I*1E3);_.XT(function(){clearTimeout(P)})}});
var t={};return _.O("reels-ad-card-buttoned-view-model",{class:_.kS(function(){var F;return((F=W().interaction)==null?0:F.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(t.ytwReelsAdCardButtonedViewModelHostExpansive=w,t)),
el:_.hl(y)},_.O(oHz,{avatar:function(){return _.h(W().avatar,B4Q)},
headline:function(){return W().headline},
badge:function(){return _.h(W().adBadge,J$Q)},
description:function(){return W().description},
expansive:w}),_.O(_.Q7,{data:function(){return W().ctaButton}},{adButtonViewModel:function(F){var I=F.data;
return _.O(_.p9,{data:function(){return(w==null?0:w())?Object.assign({},I(),{style:"AD_BUTTON_STYLE_FILLED"}):I()}})}}))},"Fb");var pk6=_.eY(function(y){var W=y.data;y=y.expansive;var V=_.e("web_ad_metadata_clickable")?_.Pe(function(){return W().interaction},void 0,function(){return _.e("web_ad_metadata_clickable")}):void 0,w={};
w=_.sU("ytwReelsAdMetadataViewModelHost",(w.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.e("web_ad_metadata_clickable"),w));return _.O("reels-ad-metadata-view-model",{class:w,el:_.hl(V)},_.O(oHz,{avatar:function(){return _.h(W().avatar,B4Q)},
headline:function(){return W().headline},
badge:function(){return _.h(W().adBadge,J$Q)},
description:function(){return W().description},
expansive:y}))},"Gb");var i_R={iconPosition:"icon-with-label",size:"L"},flK=_.eY(function(y){var W=y.data;var V=y.overlayDensity;y=_.I0("reels-player-overlay-layout-view-model");var w=_.LD(V,0),t=function(){var z;return(z=W().reelsAdCardButtonedEntityKey)!=null?z:""},F=function(){return t()+"/ad_button"},I=_.Yn(hOd,t),P=function(){var z,c;
return(c=(z=I())==null?void 0:z.value)!=null?c:!1},C=_.tn(I$z),d=function(){return Object.assign({},i_R,(C()||w()===2)&&{style:"overlay-dark"})};
V={};var L={};return _.O("reels-player-overlay-layout-view-model",{class:_.kS("ytwReelsPlayerOverlayLayoutViewModelHost",(V.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!W().extension},V.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},V)),
"overlay-density":function(){return String(w())},
el:y},_.O("div",{class:_.kS("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(L.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},L))},_.O("div",{"aria-hidden":function(){return P()},
class:_.kS("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Rd({"transition-duration":function(){return OTG(W())}})},_.O(_.Q7,{data:function(){return W().adMetadata}},{reelsAdMetadataViewModel:function(z){return _.O(pk6,{data:z.data,
expansive:function(){return w()===1}})}}),_.O(_.v,{cond:function(){return W().extension},
then:function(z){return _.O("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.O(_.Q7,{data:z},{adButtonViewModel:function(c){return _.O(_.p9,{data:c.data,animationEntityKey:F,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(c){return _.O(c2Q,{data:c.data,animationEntityKey:F,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return w()===1}})}}))}})),_.O("div",{"aria-hidden":function(){return!P()},
class:_.kS("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Rd({"transition-duration":function(){return OTG(W())}})},_.O(_.Q7,{data:function(){return W().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(z){return _.O(Knq,{data:z.data,
onShow:function(){_.dc(_.B5("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){return w()===1}})}}))),_.O("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.O(_.Q7,{data:function(){return W().actions}},{reelActionBarViewModel:function(z){return _.O(_.hXE,{data:z.data,
buttonShapeOverrideables:d})}}),_.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:function(z){return _.O(_.lk,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},d(),{type:"tonal"})}})}}),_.O(_.Q7,{data:function(){return W().pivotButton}},{pivotButtonViewModel:function(z){return _.O(_.eXz,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.iF(flK,"reels-player-overlay-layout-view-model",{props:{data:_.vB,overlayDensity:_.vB}});var J4=function(){var y=_.u.apply(this,arguments)||this;y.noBottomMargin=!1;y.overlayDensity=0;return y};
_.p(J4,_.u);_.E=J4.prototype;
_.E.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.e("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]]"}}}}}};
_.E.ready=function(){var y=this;WzG(function(){y.isAttached&&pv(y.JSC$15399_storedAdSlotMetadata,y.JSC$15399_storedAdLayoutMetadata,y.adSlotMetadata,y.adLayoutMetadata)&&Yh(st(),y.JSC$15399_storedAdSlotMetadata,y.JSC$15399_storedAdLayoutMetadata)})};
_.E.attached=function(){pv(this.JSC$15399_storedAdSlotMetadata,this.JSC$15399_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&CBf(st(),this.JSC$15399_storedAdSlotMetadata,this.JSC$15399_storedAdLayoutMetadata)};
_.E.detached=function(){pv(this.JSC$15399_storedAdSlotMetadata,this.JSC$15399_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Yh(st(),this.JSC$15399_storedAdSlotMetadata,this.JSC$15399_storedAdLayoutMetadata)};
_.E.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.E.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15399_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15399_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15399_storedAdLayoutMetadata!==void 0&&this.JSC$15399_storedAdSlotMetadata!==void 0&&Yh(st(),this.JSC$15399_storedAdSlotMetadata,this.JSC$15399_storedAdLayoutMetadata),CBf(st(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15399_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15399_storedAdSlotMetadata=this.adSlotMetadata)};
_.CM.Object.defineProperties(J4.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.adLayoutMetadata}}});
J4.prototype.onAdMetadataChanged=J4.prototype.onAdMetadataChanged;J4.prototype.onTypographyBumpChanged=J4.prototype.onTypographyBumpChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],J4.prototype,"rendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],J4.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],J4.prototype,"noBottomMargin",void 0);_.J([_.q(),_.R("design:type",Object)],J4.prototype,"overlayDensity",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],J4.prototype,"typographyBump",void 0);_.J([_.M("data.adLayoutMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],J4.prototype,"adLayoutMetadata",null);_.J([_.q(),_.R("design:type",Object)],J4.prototype,"adSlotMetadata",void 0);
_.J([_.s$("ytd-video-display-full-buttoned-and-button-group-renderer"),_.R("design:type",HTMLElement)],J4.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.J([_.xA("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],J4.prototype,"onTypographyBumpChanged",null);_.J([_.xA("adLayoutMetadata","adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],J4.prototype,"onAdMetadataChanged",null);
_.J([_.k({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],J4);
_.Y(J4,"ytd-in-feed-ad-layout-renderer",function(){if(L5f!==void 0)return L5f;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return L5f=y},
{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var TG6;var mjq;var R_=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return y};
_.p(R_,_.u);_.E=R_.prototype;_.E.computeHasLiveDescription=function(y){return!(y==null||!y.liveDescription)};
_.E.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.E.onYtToggleButton=function(y){var W,V=(W=this.data)==null?void 0:W.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.B5("upcomingEventReminderStateEntity",V,{key:V,state:y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.E.attached=function(){this.updateChannelBanner()};
_.E.dataChanged=function(){this.updateChannelBanner()};
_.E.videoReminderStateChanged=function(){var y;this.videoReminderState&&_.h((y=this.data)==null?void 0:y.cta,_.tg)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.E.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var y=_.f5(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);y&&(y.startsWith("//")&&(y="https:"+y),this.hostElement.classList.add("channel-banner"),_.qg(this.hostElement,{"--ytvmh-channel-banner":"url("+y+")"}))}else _.e("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.E.onPlayerReady=function(){this.onIronResize()};
_.E.maybeFlushDebouncer=function(){_.e("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(y){var W;y=(W=y.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0];Li4(y==null?void 0:y.polymerController)})};
_.E.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var y=_.i6(this.hostElement).querySelector("#live-description"),W;y&&((W=this.data)==null?0:W.shortLiveDescription)&&y.clientWidth<y.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
R_.prototype.onIronResize=R_.prototype.onIronResize;R_.prototype.videoReminderStateChanged=R_.prototype.videoReminderStateChanged;R_.prototype.dataChanged=R_.prototype.dataChanged;R_.prototype.onYtToggleButton=R_.prototype.onYtToggleButton;_.J([_.m(_.Gm),_.R("design:type",Object)],R_.prototype,"ironResizableBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],R_.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],R_.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:TMR}),_.R("design:type",Object)],R_.prototype,"videoReminderState",void 0);
_.J([_.q({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.R("design:type",Boolean)],R_.prototype,"rounded",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.R("design:type",Boolean)],R_.prototype,"hasLiveDescription",void 0);_.J([_.q({reflectToAttribute:!0,value:_.e("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.R("design:type",Boolean)],R_.prototype,"resizableAdBannerSafariFix",void 0);
_.J([_.q({reflectToAttribute:!0,value:_.e("align_three_dot_menu_with_title_description")}),_.R("design:type",Boolean)],R_.prototype,"menuFix",void 0);_.J([_.Ac("yt-formatted-string"),_.R("design:type",Array)],R_.prototype,"formattedStrings",void 0);_.J([_.s$("#cta-button"),_.R("design:type",HTMLElement)],R_.prototype,"ctaButton",void 0);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],R_.prototype,"onYtToggleButton",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R_.prototype,"dataChanged",null);_.J([_.xA("videoReminderState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R_.prototype,"videoReminderStateChanged",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R_.prototype,"onIronResize",null);
_.J([_.k({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],R_);
_.Y(R_,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(mjq!==void 0)return mjq;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mjq=y},{mode:1});var MSi;var jc=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};y.isLocked=!1;return y};
_.p(jc,_.u);_.E=jc.prototype;_.E.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.E.onExpandedChanged=function(){this.expanded&&_.Kg(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.E.onMouseOver=function(){this.maybeExpand()};
_.E.onTap=function(){this.maybeExpand()};
_.E.onExpandableTileExpanding=function(y){y!==this&&(this.expanded=!1)};
_.E.onExpandableTileLockAndCollapse=function(y){this.isLocked=!0;y!==this&&(this.expanded=!1)};
_.E.onExpandableTileUnlock=function(){this.isLocked=!1};
jc.prototype.onTap=jc.prototype.onTap;jc.prototype.onMouseOver=jc.prototype.onMouseOver;jc.prototype.onExpandedChanged=jc.prototype.onExpandedChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jc.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jc.prototype,"expanded",void 0);_.J([_.Jc("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jc.prototype,"onExpandedChanged",null);_.J([_.l6("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jc.prototype,"onMouseOver",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jc.prototype,"onTap",null);
_.J([_.k({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],jc);
_.Y(jc,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(MSi!==void 0)return MSi;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return MSi=y},{mode:1});var quK;var $h=function(){var y=_.u.apply(this,arguments)||this;y.buttonOverrides={style:"overlay"};y.useYtdPlayer=_.e("use_ytd_player_for_desktop_masthead");y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};y.playbackFinished=!1;y.JSC$15411_playerManager=null;y.JSC$15411_mastheadCounter=new YfA;return y};
_.p($h,_.u);_.E=$h.prototype;_.E.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"}}}};
_.E.created=function(){this.JSC$15411_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15411_playerManager=new XS)};
_.E.ready=function(){var y=this;this.JSC$15411_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var W=_.i6(this.hostElement).querySelector("#player");this.useYtdPlayer?W.style.display="none":(this.ytdPlayer.style.display="none",kEA(this.JSC$15411_playerManager,W,function(){y.onPlaybackEnded()}),_.i6(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var V;
((V=y.data)==null?0:V.navigationEndpoint)&&_.h1(y.hostElement,"yt-navigate",{endpoint:y.data.navigationEndpoint})}))};
_.E.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15411_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.E.attached=function(){var y=this;_.Er(function(){y.maybePlayVideo()})};
_.E.maybePlayVideo=function(){var y=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$15411_playerManager.playVideo(),this.getPlayerPromise().then(function(){y.JSC$15411_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.E.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15411_playerManager.stopVideo()};
_.E.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var y,W={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((y=this.data.playbackStartMs)!=null?y:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(W);this.setupYtdPlayer()}else A3K(this.JSC$15411_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(s7m(this.JSC$15411_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.E.getPlayerPromise=function(){return this.JSC$15411_playerManager.getPlayerPromise()};
_.E.onYtToggleButton=function(y){this.useYtdPlayer?this.toggleMute(y.detail.toggled):y.detail.toggled?this.JSC$15411_playerManager.mute():this.JSC$15411_playerManager.unMute()};
_.E.onYtNavigate=function(y){var W=Eqv(y.detail.endpoint),V=NaG(this.data.clickthroughReportingData);W&&V&&(y.detail.endpoint.watchEndpoint?y.detail.tempData=V:_.On(W,V,30))};
_.E.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.E.onExpandedChanged=function(){this.expanded?(_.Kg(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.E.onMouseOver=function(){this.maybeExpand()};
_.E.onTap=function(){this.maybeExpand()};
_.E.onExpandableTileExpanding=function(y){y!==this&&(this.stopVideo(),this.expanded=!1)};
_.E.onExpandableTileLockAndCollapse=function(y){y!==this&&(this.isLocked=!0,this.expanded=!1)};
_.E.onExpandableTileUnlock=function(){this.isLocked=!1};
_.E.lockAndCollapseExpandableTiles=function(){_.ow(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.E.unlockExpandableTiles=function(){_.ow(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.E.setupYtdPlayer=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.ytdPlayer.getPlayerPromise(),2);W=V.yieldResult;W.addEventListener("onStateChange",function(w){y.onPlayerStateChange(w)});
W.addEventListener("onCueRangeExit",function(w){y.onCueRangeExit(w)});
_.B7(V)})};
_.E.onPlayerStateChange=function(y){if(y===1&&(y=this.ytdPlayer.getPlayer())){var W=y.getCurrentTime(),V,w,t=W+((w=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?w:0)/1E3;y.addCueRange("playback",W,t);this.JSC$15411_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.E.onCueRangeExit=function(y){y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.E.toggleMute=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.ytdPlayer.getPlayerPromise(),2);V=w.yieldResult;y?V.mute():V.unMute();_.B7(w)})};
$h.prototype.onTap=$h.prototype.onTap;$h.prototype.onMouseOver=$h.prototype.onMouseOver;$h.prototype.onExpandedChanged=$h.prototype.onExpandedChanged;$h.prototype.onYtNavigate=$h.prototype.onYtNavigate;$h.prototype.onYtToggleButton=$h.prototype.onYtToggleButton;$h.prototype.dataChanged=$h.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],$h.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$h.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],$h.prototype,"expanded",void 0);_.J([_.q(),_.R("design:type",Object)],$h.prototype,"buttonOverrides",void 0);
_.J([_.q(),_.R("design:type",Object)],$h.prototype,"useYtdPlayer",void 0);_.J([_.s$("#ytd-player"),_.R("design:type",Object)],$h.prototype,"ytdPlayer",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$h.prototype,"dataChanged",null);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$h.prototype,"onYtToggleButton",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$h.prototype,"onYtNavigate",null);_.J([_.Jc("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$h.prototype,"onExpandedChanged",null);_.J([_.l6("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$h.prototype,"onMouseOver",null);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$h.prototype,"onTap",null);_.J([_.k({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],$h);
_.Y($h,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(quK!==void 0)return quK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return quK=y},{mode:1});var UjE;var nt=function(){return _.u.apply(this,arguments)||this};
_.p(nt,_.u);nt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
nt.prototype.onShow=function(){var y=_.i6(this.hostElement).querySelector("#live-description"),W;y&&((W=this.data)==null?0:W.shortLiveDescription)&&y.clientWidth<y.scrollWidth&&this.hostElement.classList.add("short-live-description")};
nt.prototype.onYtToggleButton=function(y){var W,V=(W=this.data)==null?void 0:W.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.B5("upcomingEventReminderStateEntity",V,{key:V,state:y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
nt.prototype.videoReminderStateChanged=function(){var y;this.videoReminderState&&_.h((y=this.data)==null?void 0:y.cta,_.tg)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
nt.prototype.videoReminderStateChanged=nt.prototype.videoReminderStateChanged;nt.prototype.onYtToggleButton=nt.prototype.onYtToggleButton;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],nt.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nt.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:TMR}),_.R("design:type",Object)],nt.prototype,"videoReminderState",void 0);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nt.prototype,"onYtToggleButton",null);_.J([_.xA("videoReminderState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nt.prototype,"videoReminderStateChanged",null);
_.J([_.k({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],nt);
_.Y(nt,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(UjE!==void 0)return UjE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UjE=y},{mode:_.qM("kevlar_poly_si_batch_j065")?1:2});var uwi;var Hv=function(){var y=_.u.apply(this,arguments)||this;y.useYtdPlayer=_.e("use_ytd_player_for_desktop_masthead");y.buttonOverrides={style:"overlay"};y.JSC$15419_playerManager=null;y.JSC$15419_mastheadCounter=new YfA;y.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return y};
_.p(Hv,_.u);_.E=Hv.prototype;_.E.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"}}}};
_.E.created=function(){this.JSC$15419_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15419_playerManager=new XS)};
_.E.ready=function(){var y=this;this.JSC$15419_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var W;(W=this.embeddedPlayer)==null||W.remove()}else{var V;(V=this.ytdPlayer)==null||V.remove();kEA(this.JSC$15419_playerManager,this.embeddedPlayer,function(){y.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){y.data&&y.data.navigationEndpoint&&_.h1(y.hostElement,"yt-navigate",{endpoint:y.data.navigationEndpoint})})}};
_.E.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15419_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.E.dataChanged=function(){var y=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var W=!this.data.disableAutoPlayback,V,w={autoplay:W,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((V=this.data.playbackStartMs)!=null?V:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(W?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(w);this.setupYtdPlayer()}else A3K(this.JSC$15419_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(s7m(this.JSC$15419_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15419_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ow(y.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");y.JSC$15419_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.E.getPlayerPromise=function(){return this.JSC$15419_playerManager.getPlayerPromise()};
_.E.onYtToggleButton=function(y){this.useYtdPlayer?this.toggleMute(y.detail.toggled):y.detail.toggled?this.JSC$15419_playerManager.mute():this.JSC$15419_playerManager.unMute()};
_.E.onYtNavigate=function(y){var W=Eqv(y.detail.endpoint),V=NaG(this.data.clickthroughReportingData);W&&V&&(y.detail.endpoint.watchEndpoint?y.detail.tempData=V:_.On(W,V,30))};
_.E.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15419_playerManager.stopVideo()};
_.E.setupYtdPlayer=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.ytdPlayer.getPlayerPromise(),2);W=V.yieldResult;W.addEventListener("onStateChange",function(w){y.onPlayerStateChange(w)});
W.addEventListener("onCueRangeExit",function(w){y.onCueRangeExit(w)});
_.B7(V)})};
_.E.onPlayerStateChange=function(y){if(y===1&&(y=this.ytdPlayer.getPlayer())){var W=y.getCurrentTime(),V,w,t=W+((w=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?w:0)/1E3;y.addCueRange("playback",W,t);_.ow(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15419_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.E.onCueRangeExit=function(y){y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.E.toggleMute=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.ytdPlayer.getPlayerPromise(),2);V=w.yieldResult;y?V.mute():V.unMute();_.B7(w)})};
_.CM.Object.defineProperties(Hv.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.accessibilityData)==null?0:W.label))return"Ad primary link";var V,w;return _.u5("AD_TITLE",{title:(V=this.data)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label})}}});
Hv.prototype.onYtMastheadHidden=Hv.prototype.onYtMastheadHidden;Hv.prototype.onYtNavigate=Hv.prototype.onYtNavigate;Hv.prototype.onYtToggleButton=Hv.prototype.onYtToggleButton;Hv.prototype.dataChanged=Hv.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Hv.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hv.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Hv.prototype,"useYtdPlayer",void 0);_.J([_.s$("ytd-toggle-button-renderer"),_.R("design:type",Object)],Hv.prototype,"muteButton",void 0);_.J([_.q(),_.R("design:type",Object)],Hv.prototype,"buttonOverrides",void 0);
_.J([_.M("data.accessibilityData.label"),_.R("design:type",String),_.R("design:paramtypes",[])],Hv.prototype,"titleAriaLabel",null);_.J([_.s$("#replay-button"),_.R("design:type",Object)],Hv.prototype,"replayButton",void 0);_.J([_.s$("#player-container"),_.R("design:type",Object)],Hv.prototype,"playerContainer",void 0);_.J([_.s$("#player"),_.R("design:type",Object)],Hv.prototype,"embeddedPlayer",void 0);_.J([_.s$("#ytd-player"),_.R("design:type",Object)],Hv.prototype,"ytdPlayer",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hv.prototype,"dataChanged",null);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Hv.prototype,"onYtToggleButton",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Hv.prototype,"onYtNavigate",null);
_.J([_.l6("yt-masthead-hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hv.prototype,"onYtMastheadHidden",null);_.J([_.k({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Hv);
_.Y(Hv,"ytd-video-masthead-ad-primary-video-renderer",function(){if(uwi!==void 0)return uwi;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return uwi=y},{mode:2});var Su2;var XN=function(){var y=_.u.apply(this,arguments)||this;y.collapsed=!1;y.impressionResolver=_.v5();y.JSC$15423_activeViewMeasurementDataResolver=_.v5();y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.p(XN,_.u);_.E=XN.prototype;_.E.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"}}}};
_.E.ready=function(){var y=this;_.i6(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){y.expandAd()});
this.hostElement.addEventListener("yt-action",function(W){if(W.detail.actionName==="yt-service-request"){var V=W.detail.args[1];V.videoMastheadAdMuteCommand&&(y.collapseAd(V.videoMastheadAdMuteCommand.encryptedMastheadId),W.stopPropagation())}})};
_.E.attached=function(){var y=this;_.Er(function(){y.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(W){if(!y.collapsed){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,Eg(V.baseUrl,V.attributionSrcMode);y.data.impressionCommand=void 0}});
this.JSC$15423_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.dataChanged=function(){var y;((y=this.data.impressionCommand)==null?0:y.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var W;((W=this.data)==null?0:W.activeView)&&this.JSC$15423_activeViewMeasurementDataResolver.resolve(this.data.activeView);(y=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(y.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.E.computeWidescreen=function(y){var W;return!!(y&&((W=_.h(y,x_s))==null?0:W.isWidescreen))};
_.E.computeExpandable=function(y){return!!(y&&y.length>0)};
_.E.onIronResize=function(){if(this.expandable){var y=_.i6(this.hostElement).querySelector("#expandable-tile-container :first-child");y&&!y.expanded&&(y.expanded=!0)}};
_.E.handleMuteAd=function(){this.collapseAd(null)};
_.E.restoreCollapsedState=function(y){this.collapsed=_.l5().get("HIDDEN_MASTHEAD_ID")===y};
_.E.collapseAd=function(y){if(y){var W=_.l5();W.set("HIDDEN_MASTHEAD_ID",y);W.save()}(y=_.i6(this.hostElement).querySelector("#video"))&&_.h1(y,"yt-masthead-hidden");this.collapsed=!0};
_.E.expandAd=function(){var y=_.l5();y.set("HIDDEN_MASTHEAD_ID",!1);y.save();location.reload()};
_.E.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
XN.prototype.onIronResize=XN.prototype.onIronResize;XN.prototype.dataChanged=XN.prototype.dataChanged;_.J([_.m(_.Gm),_.R("design:type",Object)],XN.prototype,"ironResizableBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],XN.prototype,"ytdActiveViewBehavior",void 0);_.J([_.m(_.tW),_.R("design:type",Object)],XN.prototype,"ytdGridStateAwareBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],XN.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XN.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.R("design:type",Boolean)],XN.prototype,"widescreen",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.R("design:type",Boolean)],XN.prototype,"expandable",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],XN.prototype,"collapsed",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XN.prototype,"dataChanged",null);
_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XN.prototype,"onIronResize",null);_.J([_.k({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],XN);
_.Y(XN,"ytd-video-masthead-ad-v3-renderer",function(){if(Su2!==void 0)return Su2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Su2=y},{mode:2});var a_=function(){return _.u.apply(this,arguments)||this};
_.p(a_,_.u);_.E=a_.prototype;_.E.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.E.ready=function(){var y=this;WzG(function(){y.isAttached&&pv(y.JSC$15428_storedAdSlotMetadata,y.JSC$15428_storedAdLayoutMetadata,y.adSlotMetadata,y.adLayoutMetadata)&&Yh(st(),y.JSC$15428_storedAdSlotMetadata,y.JSC$15428_storedAdLayoutMetadata)})};
_.E.attached=function(){pv(this.JSC$15428_storedAdSlotMetadata,this.JSC$15428_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&CBf(st(),this.JSC$15428_storedAdSlotMetadata,this.JSC$15428_storedAdLayoutMetadata)};
_.E.detached=function(){pv(this.JSC$15428_storedAdSlotMetadata,this.JSC$15428_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Yh(st(),this.JSC$15428_storedAdSlotMetadata,this.JSC$15428_storedAdLayoutMetadata)};
_.E.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15428_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15428_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15428_storedAdLayoutMetadata!==void 0&&this.JSC$15428_storedAdSlotMetadata!==void 0&&Yh(st(),this.JSC$15428_storedAdSlotMetadata,this.JSC$15428_storedAdLayoutMetadata),CBf(st(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15428_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15428_storedAdSlotMetadata=this.adSlotMetadata)};
_.CM.Object.defineProperties(a_.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.adLayoutMetadata}}});
a_.prototype.onAdMetadataChanged=a_.prototype.onAdMetadataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],a_.prototype,"data",void 0);_.J([_.M("data.adLayoutMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],a_.prototype,"adLayoutMetadata",null);
_.J([_.q(),_.R("design:type",Object)],a_.prototype,"adSlotMetadata",void 0);_.J([_.xA("adLayoutMetadata","adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a_.prototype,"onAdMetadataChanged",null);_.J([_.k({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],a_);
_.Y(a_,"ytd-page-top-ad-layout-renderer",function(){if(TG6!==void 0)return TG6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return TG6=
y},{mode:_.qM("kevlar_poly_si_batch_j070")?1:2});var DjJ;var Gi=function(){var y=_.u.apply(this,arguments)||this;y.noBottomMargin=!1;y.overlayDensity=0;y.typographyBump=!1;return y};
_.p(Gi,_.u);_.E=Gi.prototype;
_.E.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.E.ready=function(){var y=this;WzG(function(){y.isAttached&&y.adSlotMetadata&&PBf(st(),y.adSlotMetadata)})};
_.E.attached=function(){if(this.adSlotMetadata){var y;if(this.adSlotMetadata===((y=this.data)==null?void 0:y.adSlotMetadata))gHq(st(),this.adSlotMetadata);else{var W;_.rQ(Error("Uh`"+this.adSlotMetadata+"`"+((W=this.data)==null?void 0:W.adSlotMetadata)))}}};
_.E.detached=function(){this.adSlotMetadata&&PBf(st(),this.adSlotMetadata)};
_.E.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.E.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&PBf(st(),this.adSlotMetadata),gHq(st(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.CM.Object.defineProperties(Gi.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.fulfillmentContent)==null?void 0:W.fulfilledLayout,_.s1m),w;return(y=(w=_.h(V==null?void 0:V.renderingContent,k7m))==null?void 0:w.layout)?y.toLowerCase().replace(/_/g,"-"):""}}});
Gi.prototype.onAdSlotMetadataChanged=Gi.prototype.onAdSlotMetadataChanged;Gi.prototype.onTypographyBumpChanged=Gi.prototype.onTypographyBumpChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Gi.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Gi.prototype,"rendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Gi.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Gi.prototype,"noBottomMargin",void 0);_.J([_.q(),_.R("design:type",Object)],Gi.prototype,"overlayDensity",void 0);_.J([_.q(),_.R("design:type",Object)],Gi.prototype,"typographyBump",void 0);_.J([_.s$("ytd-in-feed-ad-layout-renderer"),_.R("design:type",HTMLElement)],Gi.prototype,"inFeedAdLayoutRenderer",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],Gi.prototype,"layout",null);_.J([_.xA("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gi.prototype,"onTypographyBumpChanged",null);_.J([_.xA("data.adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gi.prototype,"onAdSlotMetadataChanged",null);
_.J([_.k({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Gi);
_.Y(Gi,"ytd-ad-slot-renderer",function(){if(DjJ!==void 0)return DjJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return DjJ=y},{mode:_.qM("kevlar_poly_si_batch_j077")?
1:2});var llm;var rk=function(){return _.u.apply(this,arguments)||this};
_.p(rk,_.u);_.E=rk.prototype;_.E.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"}}}};
_.E.maybeComputeHref=function(y){return _.e("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(y)};
_.E.onTap=function(){_.e("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&agP(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.E.onThumbnailContainerClick=function(y){this.onClick(y)};
_.E.onClick=function(y){if(_.e("enable_handle_watch_endpoint_click_for_vdc")){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;V&&_.h(V,_.Iw)&&(this.ytSparklesClickLocationBehavior.handleClick(V,y,!1),y.stopPropagation())}};
_.E.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var y=_.N(this.data.impressionUrls),W=y.next();!W.done;W=y.next())W=W.value,tYv(W,Ecb(W));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.e("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",rk.JSC$15436_DEFAULT_CLICK_LOCATION_BEHAVIOR,rk.JSC$15436_CLICK_LOCATION_ID_MAP),this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),
y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href")))}};
_.E.attached=function(){var y=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.E.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.CM.Object.defineProperties(rk.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
rk.prototype.dataChanged=rk.prototype.dataChanged;rk.prototype.onTap=rk.prototype.onTap;rk.JSC$15436_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
rk.JSC$15436_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"}];_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.J([_.m(Z9),_.R("design:type",Object)],rk.prototype,"ytdActiveViewBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rk.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],rk.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],rk.prototype,"ytSparklesClickLocationBehavior",void 0);
_.J([_.q({selector:_.wp}),_.R("design:type",Object)],rk.prototype,"isGridViewEnabled",void 0);_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rk.prototype,"watchFeedBigThumbs",null);_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],rk.prototype,"thumbnailWidth",null);_.J([_.q(),_.R("design:type",Object)],rk.prototype,"data",void 0);
_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],rk.prototype,"thumbnail",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rk.prototype,"onTap",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rk.prototype,"dataChanged",null);_.J([_.k({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],rk);
_.Y(rk,"ytd-compact-promoted-video-renderer",function(){if(llm!==void 0)return llm;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return llm=y},{mode:1});var xjK;_.ZQ("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var bq=function(){return _.u.apply(this,arguments)||this};
_.p(bq,_.u);bq.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bq.prototype,"data",void 0);_.J([_.k({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],bq);
_.Y(bq,"ytd-search-pyv-renderer",function(){if(xjK!==void 0)return xjK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return xjK=y},{mode:1});var kB6;_.ZQ("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var QZ=function(){var y=_.u.apply(this,arguments)||this;y.roundedContainer=!0;y.JSC$15444_handleOpenPostCommentDialogActionAfterStamp=!1;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.p(QZ,_.u);_.E=QZ.prototype;
_.E.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}}};
_.E.onStampFinished=function(){this.JSC$15444_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.E.handleSignalActionOpenPostCommentDialogAction=function(){var y=_.i6(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");y?y.openDialog():this.JSC$15444_handleOpenPostCommentDialogActionAfterStamp=!0};
_.E.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.E.computeHideBorder=function(){return this.isInEngagementPanel};
_.E.computeIsCompact=function(){return this.isInEngagementPanel};
_.E.computeUsesCompactLockup=function(y){return y==="BACKSTAGE_SURFACE_TYPE_HOME"||y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.E.computeUsesFullLockup=function(){var y,W=(y=this.data)==null?void 0:y.post,V;y=(V=_.h(W,X8J))==null?void 0:V.surface;var w;V=(w=_.h(W,r$2))==null?void 0:w.originalPost;var t;if(w=y||((t=_.h(V,X8J))==null?void 0:t.surface))return!this.computeUsesCompactLockup(w)&&this.useUpdatedRepostUi;var F;return((F=_.h(W,r$2))==null?void 0:F.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.CM.Object.defineProperties(QZ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((W=_.h((y=this.data)==null?void 0:y.post,X8J))==null?void 0:W.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.useUpdatedRepostUi}}});
QZ.prototype.onYtCommentModerationPanelEmpty=QZ.prototype.onYtCommentModerationPanelEmpty;QZ.prototype.onStampFinished=QZ.prototype.onStampFinished;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QZ.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],QZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QZ.prototype,"roundedContainer",void 0);_.J([_.q({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.R("design:type",Boolean)],QZ.prototype,"hideBorder",void 0);_.J([_.q({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.R("design:type",Boolean)],QZ.prototype,"isCompact",void 0);
_.J([_.q({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.R("design:type",Boolean)],QZ.prototype,"usesFullLockup",void 0);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QZ.prototype,"onStampFinished",null);
_.J([_.l6("ytd-comment-moderation-panel-empty"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],QZ.prototype,"onYtCommentModerationPanelEmpty",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QZ.prototype,"isInEngagementPanel",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QZ.prototype,"useUpdatedRepostUi",null);
_.J([_.k({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],QZ);
_.Y(QZ,"ytd-backstage-post-thread-renderer",function(){if(kB6!==void 0)return kB6;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return kB6=y},{mode:1});var sKA;var ZU=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(ZU,_.u);ZU.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
ZU.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var y=this.data.thumbnail.thumbnails;this.isDarkTheme&&(y=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(y=_.f5(y,24,void 0,"height"))?y:void 0}};
ZU.prototype.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
ZU.prototype.computeHasText=function(){var y;return!((y=this.data)==null||!y.text)};
_.CM.Object.defineProperties(ZU.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ye(this.bannerImageUrl))+'");'}}});
ZU.prototype.computeHasText=ZU.prototype.computeHasText;ZU.prototype.computeBannerImageUrl=ZU.prototype.computeBannerImageUrl;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ZU.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ZU.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],ZU.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],ZU.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",String)],ZU.prototype,"bannerImageUrl",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.R("design:type",Boolean)],ZU.prototype,"hasText",void 0);_.J([_.xA("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZU.prototype,"computeBannerImageUrl",null);
_.J([_.xA("data.text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZU.prototype,"computeHasText",null);_.J([_.M("bannerImageUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZU.prototype,"bannerStyle",null);_.J([_.k({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],ZU);
_.Y(ZU,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(sKA!==void 0)return sKA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return sKA=y},{mode:1});var A2m;var yP=function(){return _.u.apply(this,arguments)||this};
_.p(yP,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yP.prototype,"data",void 0);_.J([_.k({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],yP);
_.Y(yP,"ytd-backstage-zero-state-renderer",function(){if(A2m!==void 0)return A2m;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return A2m=y},{mode:1});var Yu6;var W6=function(){return _.u.apply(this,arguments)||this};
_.p(W6,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],W6.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],W6.prototype,"icon",void 0);_.J([_.k({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],W6);
_.Y(W6,"ytd-post-filter-zero-state-renderer",function(){if(Yu6!==void 0)return Yu6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Yu6=y},{mode:1});var BGi;var J2E={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},VP=function(){return _.u.apply(this,arguments)||this};
_.p(VP,_.u);VP.prototype.configureRendererStamper=function(){return J2E};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],VP.prototype,"rendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],VP.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],VP.prototype,"icon",void 0);_.J([_.k({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],VP);
_.Y(VP,"ytd-post-scheduling-zero-state-renderer",function(){if(BGi!==void 0)return BGi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return BGi=y},{mode:1});var RXm;var wR=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return y};
_.p(wR,_.u);wR.prototype.onTabsActivate=function(y){this.data&&this.data.tabs&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[y.detail.selected].navigationEndpoint})};
wR.prototype.shouldShowTotalCount=function(y){return y&&y.totalCount!==void 0};
wR.prototype.handleUpdatePostsTotalCountAction=function(y){var W=this.get(["data.tabs",1,"totalCount"]),V=this.get("updatePostsTotalCountAction.updateType",y);y=this.get("updatePostsTotalCountAction.number",y);W!==void 0&&V!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&y&&(V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(W)+y):V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(W)-y))};
_.CM.Object.defineProperties(wR.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var y=0,W=this.data.tabs.length;y<W;y++)if(this.data.tabs[y].selected)return y;return 0}}});
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],wR.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wR.prototype,"rendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wR.prototype,"data",void 0);_.J([_.M("data.tabs"),_.R("design:type",Number),_.R("design:paramtypes",[])],wR.prototype,"selected",null);_.J([_.k({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],wR);
_.Y(wR,"ytd-post-stream-filter-renderer",function(){if(RXm!==void 0)return RXm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return RXm=y},{mode:1});var jKI;var t3=function(){return _.u.apply(this,arguments)||this};
_.p(t3,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],t3.prototype,"kevlarBehaviors",void 0);_.J([_.q(),_.R("design:type",Object)],t3.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],t3);
_.Y(t3,"ytd-channel-age-gate-renderer",function(){if(jKI!==void 0)return jKI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jKI=y},{mode:1});var $jz;_.ZQ("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var F9=function(){var y=_.u.apply(this,arguments)||this;y.data=null;return y};
_.p(F9,_.u);F9.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.CM.Object.defineProperties(F9.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?0:(W=y.title)==null?0:(V=W.runs)==null?0:V.length)?147:160}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],F9.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],F9.prototype,"imageSizePx",null);_.J([_.k({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],F9);
_.Y(F9,"ytd-channel-owner-empty-state-renderer",function(){if($jz!==void 0)return $jz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return $jz=y},{mode:1});var nH2;var H_Q;var Ej=function(){var y=_.u.apply(this,arguments)||this;y.boundSubmitSearch=function(){y.submitSearch()};
y.boundClearSearch=function(){y.clearSearch()};
return y};
_.p(Ej,_.u);_.E=Ej.prototype;_.E.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]]"}}}}}};
_.E.toggleClearButton=function(){this.hideClearButton=pjy||!this.input.value};
_.E.submitOnEnterKeyUp=function(y){y.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.E.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.E.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.E.submit=function(){_.h1(this.hostElement,"search-query-changed",this.input.value)};
Ej.prototype.toggleClearButton=Ej.prototype.toggleClearButton;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ej.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Ej.prototype,"hideClearButton",void 0);_.J([_.q(),_.R("design:type",Object)],Ej.prototype,"boundSubmitSearch",void 0);_.J([_.q(),_.R("design:type",Object)],Ej.prototype,"boundClearSearch",void 0);_.J([_.s$("#input"),_.R("design:type",Object)],Ej.prototype,"input",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ej.prototype,"toggleClearButton",null);
_.J([_.k({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Ej);
_.Y(Ej,"ytd-channel-switcher-search-box-renderer",function(){if(H_Q!==void 0)return H_Q;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return H_Q=y},{mode:1});var XkR;var Nh=function(){var y=_.u.apply(this,arguments)||this;y.boundSubmit=function(){y.submit()};
return y};
_.p(Nh,_.u);_.E=Nh.prototype;_.E.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"}}}}};
_.E.ready=function(){var y=this;this.form.addEventListener("submit",function(W){return y.onSubmit(W)})};
_.E.onSubmit=function(y){y.preventDefault();return!1};
_.E.toggleClearButton=function(){this.hideClearButton=pjy||!this.input.value};
_.E.submitOnEnterKeyUp=function(y){y.keyCode===13&&this.submit()};
_.E.submit=function(){var y=this.data.endpoint,W=(0,_.Gc.unsafeClone)(y);_.h(W,_.sT)?_.h(W,_.sT).query=this.input.value:_.h(W,_.Ax)&&(_.h(W,_.Ax).query=this.input.value);var V=_.h(W.commandMetadata,_.dw);(V==null?0:V.url)?(V.url=_.ZY(V.url,"query",this.input.value),_.h1(this.hostElement,"yt-navigate",{endpoint:W})):_.h(W,U_2)?(_.h(W,U_2).channelSwitcherQuery=this.input.value,_.hs().resolve(_.oA).resolveCommand(W,{form:{element:this.hostElement}})):(y=Error("Vh`"+JSON.stringify(y)),_.ap(y))};
_.E.getUrl=function(y){return this.get("commandMetadata.webCommandMetadata.url",y)};
Nh.prototype.toggleClearButton=Nh.prototype.toggleClearButton;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Nh.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Nh.prototype,"hideClearButton",void 0);
_.J([_.q(),_.R("design:type",Object)],Nh.prototype,"boundSubmit",void 0);_.J([_.s$("#form"),_.R("design:type",HTMLFormElement)],Nh.prototype,"form",void 0);_.J([_.s$("#input"),_.R("design:type",Object)],Nh.prototype,"input",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Nh.prototype,"toggleClearButton",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Nh);
_.Y(Nh,"ytd-search-box-renderer",function(){if(XkR!==void 0)return XkR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return XkR=y},{mode:2});var I7=function(){var y=_.u.apply(this,arguments)||this;y.showSearchBox=!0;return y};
_.p(I7,_.u);I7.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],I7.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],I7.prototype,"showSearchBox",void 0);_.J([_.k({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],I7);
_.Y(I7,"ytd-channel-switcher-header-renderer",function(){if(nH2!==void 0)return nH2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return nH2=y},{mode:1});var al2;var GBR;var gR=function(){var y=_.u.apply(this,arguments)||this;y.isDisplayed=!0;return y};
_.p(gR,_.u);_.E=gR.prototype;_.E.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.dataChanged=function(){this.isDisplayed=!0};
_.E.computeType=function(y){return y||"UNKNOWN"};
_.E.onYtServiceRequestCompleted=function(y){y.stopPropagation();this.isDisplayed=!1};
_.E.onClose=function(){this.isDisplayed=!1};
gR.prototype.onYtServiceRequestCompleted=gR.prototype.onYtServiceRequestCompleted;gR.prototype.dataChanged=gR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gR.prototype,"data",void 0);
_.J([_.q({computed:"computeType(data.type)",reflectToAttribute:!0}),_.R("design:type",String)],gR.prototype,"type",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gR.prototype,"isDisplayed",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gR.prototype,"dataChanged",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],gR.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],gR);
_.Y(gR,"ytd-alert-with-button-renderer",function(){if(GBR!==void 0)return GBR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return GBR=y},{mode:1});var P6=function(){var y=_.u.apply(this,arguments)||this;y.noResult=!1;y.enableAlertBanner=!1;y.dismissedAlertBanner=!1;y.hideCreateChannelButton=!1;y.boundDismissAlertBanner=function(){y.dismissAlertBanner()};
y.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return y};
_.p(P6,_.u);_.E=P6.prototype;_.E.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.E.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.E.updateChannelSwitcherAction=function(y){var W;y=(W=_.h(y,oGE))==null?void 0:W.page;_.h(y,h0z)!==void 0&&(this.data=_.h(y,h0z))};
_.E.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]]"}}}}}};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E.searchQueryChanged=function(y,W){if(this.data&&this.data.contents&&this.data.contents.length){y=[];var V=[];this.hideCreateChannelButton=this.noResult=!1;for(var w=document.querySelectorAll("ytd-account-item-renderer"),t=_.N(w),F=t.next();!F.done;F=t.next())F=F.value,V.push(F),F.style.display="block";this.resetRightBorder(V);if(W){this.hideCreateChannelButton=!0;for(V=1;V<this.data.contents.length;V++)if(F=this.data.contents[V],_.h(F,m_A)){var I=void 0,P=void 0;t=(I=_.h(F,m_A))==null?void 0:(P=
I.accountName)==null?void 0:P.simpleText;P=I=void 0;F=(I=_.h(F,m_A))==null?void 0:(P=I.channelHandle)==null?void 0:P.simpleText;(I=w[V-1])&&t&&_.Oz(t,W)?y.push(I):_.e("enable_handle_search_on_channel_switcher")&&I&&F&&_.Oz(F.toString(),W.toString())?y.push(I):I.style.display="none"}y.length===0&&(this.noResult=!0);this.resetRightBorder(y)}}};
_.E.resetRightBorder=function(y){for(var W=0;W<y.length;W++)y[W].style.borderRight=!this.hideCreateChannelButton&&(W+2)%3===0||this.hideCreateChannelButton&&(W+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.E.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.E.setShowSearchBox=function(y){if(y&&y.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var W=0;W<y.contents.length;W++)_.h(y.contents[W],_.e3)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.E.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.CM.Object.defineProperties(P6.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null?0:y.contents)}}});
P6.prototype.onContinuationItemsUpdated=P6.prototype.onContinuationItemsUpdated;P6.prototype.searchQueryChanged=P6.prototype.searchQueryChanged;P6.prototype.onDataChanged=P6.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],P6.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],P6.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],P6.prototype,"data",void 0);_.J([_.s$("ytd-channel-switcher-header-renderer"),_.R("design:type",Object)],P6.prototype,"channelSwitcherHeaderRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],P6.prototype,"noResult",void 0);
_.J([_.q(),_.R("design:type",Object)],P6.prototype,"enableAlertBanner",void 0);_.J([_.q(),_.R("design:type",Object)],P6.prototype,"dismissedAlertBanner",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],P6.prototype,"hideCreateChannelButton",void 0);_.J([_.M("data.contents"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],P6.prototype,"isLoading",null);_.J([_.q(),_.R("design:type",Object)],P6.prototype,"boundDismissAlertBanner",void 0);
_.J([_.q({computed:"computeButtonOverride()"}),_.R("design:type",Object)],P6.prototype,"buttonOverride",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],P6.prototype,"onDataChanged",null);_.J([_.l6("search-query-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],P6.prototype,"searchQueryChanged",null);
_.J([_.l6("yt-next-continuation-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],P6.prototype,"onContinuationItemsUpdated",null);_.J([_.k({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],P6);
_.Y(P6,"ytd-channel-switcher-page-renderer",function(){if(al2!==void 0)return al2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return al2=y},{mode:1});var r22;var b_s;var Cm=function(){var y=_.u.apply(this,arguments)||this;y.images=[];y.selectedImageIndex=0;return y};
_.p(Cm,_.u);_.E=Cm.prototype;
_.E.ready=function(){_.XZ(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.XZ(this.JSC$15489_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.XZ(this.JSC$15489_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.XZ(this.JSC$15489_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.E.onThumbnailClick=function(y){if(y=y.event_.detail)this.selectedImageIndex=this.images.indexOf(y)};
_.E.updateImageThumbnails=function(y){y=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:y.event_.detail});this.images.splice(this.selectedImageIndex,1,y);this.images=[].concat(_.GC(this.images))};
_.E.cancelImageRepositions=function(){this.selectedImageIndex=0;_.h1(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.E.saveImageRepositions=function(){this.selectedImageIndex=0;_.h1(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.CM.Object.defineProperties(Cm.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var y=this;return(this.images||[]).map(function(W,V){return{image:W,selected:V===y.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("ytd-backstage-image-preview-renderer"),_.R("design:type",Object)],Cm.prototype,"JSC$15489_imagePreviewContainer",void 0);_.J([_.s$(".thumbnail-images-container"),_.R("design:type",HTMLElement)],Cm.prototype,"thumbnailImagesContainer",void 0);_.J([_.q(),_.R("design:type",Array)],Cm.prototype,"images",void 0);
_.J([_.q(),_.R("design:type",Object)],Cm.prototype,"repositionInstructions",void 0);_.J([_.q(),_.R("design:type",Object)],Cm.prototype,"selectedImageIndex",void 0);_.J([_.M("images","selectedImageIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],Cm.prototype,"thumbnailRendererDatas",null);_.J([_.M("images","selectedImageIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"selectedImageData",null);
_.J([_.k({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Cm);
_.Y(Cm,"ytd-backstage-multi-image-reposition-renderer",function(){if(b_s!==void 0)return b_s;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return b_s=y},{mode:1});var Oj=function(y,W){_.Bg.call(this);this.uploadUrl=y;this.channelId=W;this.imagesUploadData=[]};
_.p(Oj,_.Bg);Oj.prototype.getAllUploadStatuses=function(){var y=this,W,V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(QK2(y),2);W=t.yieldResult;V=W.get("succeed");w=W.get("failed");return t.return(V.concat(w))})};
var yKs=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(QK2(y),2);W=w.yieldResult;V=W.get("failed");V.length>0&&Z_s(y,V);return w.return(y.getAllUploadStatuses())})},QK2=function(y){var W,V,w,t,F,I,P;
return _.g(function(C){if(C.nextAddress==1)return W=new Map,C.yield(Promise.allSettled(y.imagesUploadData.map(function(d){return d.uploadPromise})),2);
V=C.yieldResult;w=[];t=_.N(V);for(F=t.next();!F.done;F=t.next())I=F.value,I.status==="fulfilled"&&w.push(I.value);P=y.imagesUploadData.map(function(d){return d.image}).filter(function(d){return w.every(function(L){return L.id!==d.id})});
W.set("succeed",w);W.set("failed",P);return C.return(W)})},Z_s=function(y,W){W=_.N(W);
for(var V=W.next();!V.done;V=W.next()){var w=y;V=V.value;WEr(w,V.id)>=0&&w.cancel(V.id);var t=new VkE(V),F=_.d_i(w.uploadUrl,{"X-YouTube-ChannelId":w.channelId},V.imageBlob);t.transfer=F;t.uploadPromise=wJ2(F,V);w.imagesUploadData.push(t);F.run()}};
Oj.prototype.cancel=function(y){var W=WEr(this,y);W!==-1&&((W=this.imagesUploadData[W].transfer)&&W.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(V){return V.image.id!==y}))};
var WEr=function(y,W){return y.imagesUploadData.findIndex(function(V){return V.image.id===W})},wJ2=function(y,W){return new Promise(function(V,w){y.listen("l",function(){var t=y.getResponseText();
t?(t=JSON.parse(t).encryptedBlobId,W.encryptedBlobId=t,V(W)):w("upload failed")});
y.listen("n",function(){w("upload failed")})})},VkE=function(y){this.image=y};var vmv=function(y,W,V,w,t){this.id=y;this.imageBlob=W;this.localImageSrc=V;this.naturalWidth=w;this.naturalHeight=t;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 tkI=[".jpeg",".jpg",".png"],v6=function(){var y=_.u.apply(this,arguments)||this;y.showImagesPreview=!1;y.pollOptions=[];y.errorMessage="";y.optionPlaceholderText="";y.optionDefaultText="";y.JSC$15500_imageId=0;y.maxFileSizeMb=0;y.maxAspectRatio=0;y.invalidFileSizeError="";y.invalidAspectRatioError="";y.invalidFileTypeError="";y.imageSelector=new SZ(null,"single_file",tkI);return y};
_.p(v6,_.u);_.E=v6.prototype;_.E.ready=function(){_.XZ(this.imageSelector,"j",this.onImageSelect,!1,this);_.XZ(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.XZ(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.E.dataChanged=function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.cellTemplate)==null?void 0:W.onEmptyCellTap,KBi);if(V&&V.uploadUrl&&V.channelId){var w;this.maxFileSizeMb=((w=V.imageValidationInfo)==null?void 0:w.maxFileSizeMb)||0;var t;this.maxAspectRatio=((t=V.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0;var F;this.invalidFileSizeError=this.getSimpleString((F=this.data)==null?void 0:F.invalidFileSizeError);var I;this.invalidAspectRatioError=this.getSimpleString((I=this.data)==
null?void 0:I.invalidAspectRatioError);var P;this.invalidFileTypeError=this.getSimpleString((P=this.data)==null?void 0:P.invalidFileTypeError);this.uploadManager=new Oj(V.uploadUrl,V.channelId)}};
_.E.onEditorInfoChange=function(){this.optionPlaceholderText=_.OT(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.OT(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.E.observeAddImageError=function(){this.errorMessage!==""&&_.h1(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.E.onPollOptionsChange=function(){for(var y=!1,W=[],V=0;V<this.pollOptions.length;V++){var w=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(V+1);this.pollOptions[V].placeholderText!==w?(y=!0,W.push(Object.assign({},this.pollOptions[V],{placeholderText:w}))):W.push(this.pollOptions[V])}y&&(this.pollOptions=W);this.isValid()?_.h1(this.hostElement,"yt-commentbox-post-enable"):_.h1(this.hostElement,"yt-commentbox-post-disable")};
_.E.createPollOptions=function(y){var W=[],V;y=(V=y==null?void 0:y.minPollOptions)!=null?V:0;for(V=0;V<y;V++)W.push(this.createPollOption());return W};
_.E.onImageSelect=function(y){var W=this,V,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1){if(W.selectedImageIndex===void 0)return C.jumpTo(0);V=y.files[0];W.errorMessage="";w=W.validateImage(V);if(w!=="")return W.errorMessage=w,C.return();t=new vh(W.maxAspectRatio,!1,!0);return C.yield(t.transform(V),3)}if(C.nextAddress!=4)return F=C.yieldResult,F.transformedData?F.invalidAspectRatio?(W.errorMessage=W.invalidAspectRatioError,C.return()):C.yield(dbL(W.JSC$15500_imageId,y.files[0],F.transformedData),
4):(W.errorMessage=W.invalidFileTypeError,C.return());I=C.yieldResult;W.JSC$15500_imageId++;Z_s(W.uploadManager,[I]);P=Object.assign({},W.pollOptions[W.selectedImageIndex],{image:I});W.pollOptions.splice(W.selectedImageIndex,1,P);W.refreshPollOptions();_.h1(W.hostElement,"yt-backstage-poll-image-select");_.B7(C)})};
_.E.validateImage=function(y){return y.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.E.refreshPollOptions=function(){this.pollOptions=[].concat(_.GC(this.pollOptions))};
_.E.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.GC(this.pollOptions),[this.createPollOption()]))};
_.E.onRemovePollOption=function(y){var W=this.pollOptions[y.model.index];W&&W.image&&this.uploadManager.cancel(W.image.id);this.pollOptions.splice(y.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.h1(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.E.onTextInput=function(){this.refreshPollOptions()};
_.E.onImageButtonClick=function(y){this.selectedImageIndex=y.model.index;this.imageSelector.click()};
_.E.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.E.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.E.saveImageRepositions=function(y){y=y.event_.detail;for(var W=0,V=[],w=_.N(this.pollOptions),t=w.next();!t.done;t=w.next())t=t.value,t.image!==void 0?(t=Object.assign({},t,{image:y[W]}),V.push(t),W++):V.push(t);this.showImagesPreview=!1;this.pollOptions=[].concat(_.GC(V))};
_.E.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 y=0,W=_.N(this.pollOptions),V=W.next();!V.done;V=W.next())if(V=V.value,V.optionText.trim()!==""||V.image!==void 0){if(!V.image||this.hasCustomOptionText&&V.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;y++}return y>=Number(this.editorInfo.minPollOptions)};
_.E.getAllUploadStatuses=function(){var y=this,W,V,w,t;return _.g(function(F){if(F.nextAddress==1)return F.yield(y.uploadManager.getAllUploadStatuses(),2);W=F.yieldResult;V=_.N(W);for(w=V.next();!w.done;w=V.next())if(t=w.value,t.encryptedBlobId===void 0)return F.return(yKs(y.uploadManager));return F.return(W)})};
_.E.getPostCreateOptions=function(){for(var y=[],W=_.N(this.pollOptions),V=W.next();!V.done;V=W.next())V=V.value,V.image!==void 0&&y.push({text:this.hasCustomOptionText?V.optionText:V.placeholderText,image:V.image});return y};
_.E.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.E.createButtonRenderer=function(y,W){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleString(y)}},isDisabled:W}};
_.E.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.E.computeThumbnailRendererData=function(y){return y?{image:y,selected:!1}:void 0};
_.E.getSimpleString=function(y){return _.OT(y)};
_.E.updateOptionTextFromBinding=function(y){if(y.target){var W=Array.from(_.i6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(y.target);if(W>=0){var V;this.pollOptions[W].optionText=(V=y.detail.value)!=null?V:""}}};
_.CM.Object.defineProperties(v6.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.pollOptions.length<((W=(y=this.editorInfo)==null?void 0:y.maxPollOptions)!=null?W:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(y){return y.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(y){return y.image}).map(function(y){return y.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(y){return y.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.addOptionButtonText;return W?this.createButtonRenderer(W,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.repositionImagesButtonLabel;return W?this.createButtonRenderer(W,!this.hasImages):void 0}}});
v6.prototype.onPollOptionsChange=v6.prototype.onPollOptionsChange;v6.prototype.observeAddImageError=v6.prototype.observeAddImageError;v6.prototype.onEditorInfoChange=v6.prototype.onEditorInfoChange;v6.prototype.dataChanged=v6.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("ytd-backstage-multi-image-reposition-renderer"),_.R("design:type",Object)],v6.prototype,"imageRepositionContainer",void 0);
_.J([_.q(),_.R("design:type",Object)],v6.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],v6.prototype,"editorInfo",void 0);_.J([_.q(),_.R("design:type",Oj)],v6.prototype,"uploadManager",void 0);_.J([_.q(),_.R("design:type",Object)],v6.prototype,"showImagesPreview",void 0);_.J([_.q(),_.R("design:type",Array)],v6.prototype,"pollOptions",void 0);_.J([_.q(),_.R("design:type",Object)],v6.prototype,"errorMessage",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v6.prototype,"dataChanged",null);_.J([_.Jc("editorInfo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v6.prototype,"onEditorInfoChange",null);_.J([_.xA("errorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v6.prototype,"observeAddImageError",null);
_.J([_.Jc("pollOptions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v6.prototype,"onPollOptionsChange",null);_.J([_.M("pollOptions","editorInfo"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"isAllowedToAddOption",null);_.J([_.M("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"hasImages",null);
_.J([_.M("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"imagesToReposition",null);_.J([_.M("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"hasCustomOptionText",null);_.J([_.M("data","isAllowedToAddOption"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"addOptionButton",null);_.J([_.M("data","hasImages"),_.R("design:type",Object),_.R("design:paramtypes",[])],v6.prototype,"repositionImagesButton",null);
_.J([_.k({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],v6);
_.Y(v6,"ytd-backstage-image-poll-editor-renderer",function(){if(r22!==void 0)return r22;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return r22=y},{mode:2});var FEz={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 E3q;var dR=function(){var y=_.u.apply(this,arguments)||this;y.a11yConfig=FEz;y.imageDisplayOffsetTop=0;y.imageDisplayOffsetLeft=0;y.pickerDisplayOffsetTop=0;y.pickerDisplayOffsetLeft=0;y.showPreviewContainer=!0;y.startPicker=!1;y.repositionOptional=!1;y.editOnlyMode=!1;y.savedImageDisplayOffsetTop=0;y.savedImageDisplayOffsetLeft=0;return y};
_.p(dR,_.u);_.E=dR.prototype;_.E.created=function(){_.Ff.requestAvailability()};
_.E.ready=function(){};
_.E.onArrowKeysDown=function(y){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){y.detail.keyboardEvent.preventDefault();var W=0,V=0,w="";switch(y.detail.keyboardEvent.key){case "ArrowUp":L5L(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":L5L(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":L5L(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":L5L(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}w&&_.u5(w)&&_.h1(this.hostElement,"iron-announce",{text:_.u5(w)});if(V||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),y=_.u5(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),y=_.u5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})),y&&_.h1(this.hostElement,"iron-announce",{text:y})}};
_.E.getPreviewPosition=function(y,W,V,w){return Math.round(100*(y+W*.5-V)/w)};
_.E.calculateDisplayPosition=function(){var y=this.imageData.naturalWidth,W=this.imageData.naturalHeight;this.displayScale=Math.max(200/y,200/W);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var V=y*this.displayScale*this.imageData.previewCoordinates.left,w=W*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=W>y?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-V;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=y>W?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-w;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=y*this.displayScale;this.imageHeight=W*this.displayScale};
_.E.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.E.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.E.getSignedPosition=function(y,W,V){return W==="X"&&_.yC("HTML_DIR")==="rtl"?V==="-"?y+"px":y*-1+"px":V==="-"?y*-1+"px":y+"px"};
_.E.pickerMove=function(y){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-y.clientX,V=this.pickerOffsetY-y.clientY;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.E.pickerMoveStart=function(y){this.startPicker=!0;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY};
_.E.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var y=this.generateCropPreview();y&&_.h1(this.hostElement,"ytd-backstage-image-preview-coordinates-update",y)};
_.E.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.h1(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.E.deleteImage=function(){_.h1(this.hostElement,"ytd-backstage-image-preview-delete")};
_.E.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.E.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var y=this.generateCropPreview();y&&_.h1(this.hostElement,"ytd-backstage-image-preview-coordinates-save",y)};
_.E.getPreviewOffset=function(y,W,V){return W&&y?(V==="X"&&_.yC("HTML_DIR")==="rtl"?300/W*y:300/W*y*-1)+"px":"0px"};
_.E.getSimpleText=function(y){return y?_.OT(y):""};
_.E.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}};
_.CM.Object.defineProperties(dR.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.u5(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.u5(this.a11yConfig.verticalRepositionInstruction)}y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.u5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.u5(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 y,W,V=(y=this.instruction)==null?void 0:(W=y.previewInstruction)==null?void 0:W.editButtonLabel;return V?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t=this.editOnlyMode?(y=this.instruction)==null?void 0:(W=y.editInstruction)==null?void 0:W.saveImagesButtonLabel:(V=this.instruction)==null?void 0:(w=V.editInstruction)==null?void 0:w.saveButtonLabel;return t?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.instruction)==null?void 0:(W=y.previewInstruction)==null?void 0:W.deleteButtonLabel;return V?{size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.instruction)==null?void 0:(W=y.editInstruction)==null?void 0:W.cancelButtonLabel;y=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return V?{style:y,size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}: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"}}});
dR.prototype.onEditOnlyModeUpdate=dR.prototype.onEditOnlyModeUpdate;dR.prototype.onImageChange=dR.prototype.onImageChange;_.J([_.q(),_.R("design:type",vmv)],dR.prototype,"imageData",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"instruction",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"a11yConfig",void 0);_.J([_.q(),_.R("design:type",Number)],dR.prototype,"imageWidth",void 0);_.J([_.q(),_.R("design:type",Number)],dR.prototype,"imageHeight",void 0);
_.J([_.q(),_.R("design:type",Number)],dR.prototype,"displayScale",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"imageDisplayOffsetTop",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"imageDisplayOffsetLeft",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"pickerDisplayOffsetTop",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"pickerDisplayOffsetLeft",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"showPreviewContainer",void 0);
_.J([_.q(),_.R("design:type",Object)],dR.prototype,"startPicker",void 0);_.J([_.q(),_.R("design:type",Number)],dR.prototype,"pickerOffsetX",void 0);_.J([_.q(),_.R("design:type",Number)],dR.prototype,"pickerOffsetY",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"repositionOptional",void 0);_.J([_.q(),_.R("design:type",Object)],dR.prototype,"editOnlyMode",void 0);_.J([_.s$("#picker-container"),_.R("design:type",HTMLElement)],dR.prototype,"JSC$15513_pickerContainer",void 0);
_.J([_.s$("#picker"),_.R("design:type",HTMLElement)],dR.prototype,"picker",void 0);_.J([_.s$("#preview-clipper"),_.R("design:type",HTMLElement)],dR.prototype,"previewClipper",void 0);_.J([_.s$("#image-in-picker-background"),_.R("design:type",HTMLImageElement)],dR.prototype,"JSC$15513_imageInBackground",void 0);_.J([_.s$("#image-in-picker"),_.R("design:type",HTMLImageElement)],dR.prototype,"JSC$15513_imageInPicker",void 0);
_.J([_.s$("#image-in-preview-clipper"),_.R("design:type",HTMLImageElement)],dR.prototype,"JSC$15513_imageInPreviewClipper",void 0);_.J([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"altLabelForImage",null);_.J([_.M("imageHeight","imageWidth"),_.R("design:type",Number),_.R("design:paramtypes",[])],dR.prototype,"pickerSize",null);
_.J([_.M("imageHeight","imageWidth"),_.R("design:type",Object),_.R("design:paramtypes",[])],dR.prototype,"imageOrientationStyle",null);_.J([_.M("instruction"),_.R("design:type",Object),_.R("design:paramtypes",[])],dR.prototype,"editButton",null);_.J([_.M("instruction","editOnlyMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],dR.prototype,"saveButton",null);_.J([_.M("instruction"),_.R("design:type",Object),_.R("design:paramtypes",[])],dR.prototype,"deleteButton",null);
_.J([_.M("instruction","editOnlyMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],dR.prototype,"cancelButton",null);_.J([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.R("design:type",Number),_.R("design:paramtypes",[])],dR.prototype,"cropOffsetTop",null);_.J([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.R("design:type",Number),_.R("design:paramtypes",[])],dR.prototype,"cropOffsetLeft",null);
_.J([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"pickerBackgroundStyle",null);_.J([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"pickerDisplayStyle",null);_.J([_.M("cropOffsetLeft","cropOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"imageInPickerStyle",null);
_.J([_.M("cropOffsetLeft","cropOffsetTop","pickerSize"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"previewClipperStyle",null);_.J([_.Jc("imageData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dR.prototype,"onImageChange",null);_.J([_.Jc("editOnlyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dR.prototype,"onEditOnlyModeUpdate",null);
_.J([_.M("showPreviewContainer"),_.R("design:type",String),_.R("design:paramtypes",[])],dR.prototype,"pickerModeStyle",null);_.J([_.k({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],dR);
_.Y(dR,"ytd-backstage-image-preview-renderer",function(){if(E3q!==void 0)return E3q;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return E3q=y},{mode:1});var Nl6;var IjA={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 g3Q;var PXE;var Lm=function(){var y=_.u.apply(this,arguments)||this;y.a11yConfig=IjA;y.imageDisplayOffsetTop=0;y.imageDisplayOffsetLeft=0;y.pickerDisplayOffsetTop=0;y.pickerDisplayOffsetLeft=0;y.cropCoordinatesSaved=!1;y.previewSize=0;y.startPicker=!1;y.repositionOptional=!1;return y};
_.p(Lm,_.u);_.E=Lm.prototype;_.E.created=function(){_.Ff.requestAvailability()};
_.E.ready=function(){};
_.E.onArrowKeysDown=function(y){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){y.detail.keyboardEvent.preventDefault();var W=0,V=0,w="";switch(y.detail.keyboardEvent.key){case "ArrowUp":z2b(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":z2b(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":z2b(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":z2b(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}w&&_.u5(w)&&_.h1(this.hostElement,"iron-announce",{text:_.u5(w)});if(V||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),y=_.u5(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),y=_.u5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})),y&&_.h1(this.hostElement,"iron-announce",{text:y})}};
_.E.getPreviewPosition=function(y,W,V,w){return Math.round(100*(y+W*.5-V)/w)};
_.E.displayImage=function(){var y=this.JSC$15524_pickerContainer.getBoundingClientRect().width,W=this.JSC$15524_pickerContainer.getBoundingClientRect().height,V=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),w=this.JSC$15524_imageInBackground.naturalWidth,t=this.JSC$15524_imageInBackground.naturalHeight;this.displayScale=Math.max(V/w,V/t);this.imageWidth=w*this.displayScale;this.imageHeight=t*this.displayScale;this.pickerDisplayOffsetLeft=(y-V)/2;this.pickerDisplayOffsetTop=
(W-V)/2;this.imageDisplayOffsetLeft=t>w?this.pickerDisplayOffsetLeft:(y-this.imageWidth)/2;this.imageDisplayOffsetTop=w>t?this.pickerDisplayOffsetTop:(W-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.E.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15524_imageInBackground.src=this.imageData.toString(),this.JSC$15524_imageInPicker.src=this.imageData.toString(),this.JSC$15524_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.E.getSignedPosition=function(y,W,V){return W==="X"&&_.yC("HTML_DIR")==="rtl"?V==="-"?y+"px":y*-1+"px":V==="-"?y*-1+"px":y+"px"};
_.E.pickerMove=function(y){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-y.clientX,V=this.pickerOffsetY-y.clientY;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.E.pickerMoveStart=function(y){this.startPicker=!0;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY};
_.E.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.E.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.h1(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.E.getPreviewOffset=function(y,W,V,w){return W&&y&&V?(w==="X"&&_.yC("HTML_DIR")==="rtl"?V/W*y:V/W*y*-1)+"px":"0px"};
_.E.getSimpleText=function(y){return y?_.OT(y):""};
_.E.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var y=this.cropOffsetTop/this.imageHeight,W=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,V=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,w=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.i6(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.h1(this.hostElement,"yt-img-crop-coordinates-update",{top:y,right:W,bottom:V,left:w})}};
_.CM.Object.defineProperties(Lm.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.u5(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.u5(this.a11yConfig.verticalRepositionInstruction)}y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.u5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.u5(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 y,W=(y=this.learnMore.runs[0])==null?void 0:y.navigationEndpoint,V;return((V=_.h(W,_.wS))==null?void 0:V.url)||void 0}}}});
Lm.prototype.onImageDataChange=Lm.prototype.onImageDataChange;_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"imageData",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"instruction",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"a11yConfig",void 0);_.J([_.q(),_.R("design:type",Number)],Lm.prototype,"imageWidth",void 0);_.J([_.q(),_.R("design:type",Number)],Lm.prototype,"imageHeight",void 0);_.J([_.q(),_.R("design:type",Number)],Lm.prototype,"displayScale",void 0);
_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"imageDisplayOffsetTop",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"imageDisplayOffsetLeft",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"pickerDisplayOffsetTop",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"pickerDisplayOffsetLeft",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"cropCoordinatesSaved",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"previewSize",void 0);
_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"startPicker",void 0);_.J([_.q(),_.R("design:type",Number)],Lm.prototype,"pickerOffsetX",void 0);_.J([_.q(),_.R("design:type",Number)],Lm.prototype,"pickerOffsetY",void 0);_.J([_.q(),_.R("design:type",Object)],Lm.prototype,"repositionOptional",void 0);_.J([_.s$("#picker-container"),_.R("design:type",HTMLElement)],Lm.prototype,"JSC$15524_pickerContainer",void 0);_.J([_.s$("#picker"),_.R("design:type",HTMLElement)],Lm.prototype,"picker",void 0);
_.J([_.s$("#image-in-picker-background"),_.R("design:type",HTMLImageElement)],Lm.prototype,"JSC$15524_imageInBackground",void 0);_.J([_.s$("#image-in-picker"),_.R("design:type",HTMLImageElement)],Lm.prototype,"JSC$15524_imageInPicker",void 0);_.J([_.s$("#image-in-preview-clipper"),_.R("design:type",HTMLImageElement)],Lm.prototype,"JSC$15524_imageInPreviewClipper",void 0);_.J([_.s$("#full-image-as-preview"),_.R("design:type",HTMLImageElement)],Lm.prototype,"imageAsPreview",void 0);
_.J([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"altLabelForImage",null);_.J([_.M("imageHeight","imageWidth"),_.R("design:type",Number),_.R("design:paramtypes",[])],Lm.prototype,"pickerSize",null);_.J([_.M("imageHeight","imageWidth"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lm.prototype,"imageOrientationStyle",null);
_.J([_.M("instruction.previewInstruction.editButtonLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lm.prototype,"editButton",null);_.J([_.M("instruction.editInstruction.saveButtonLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lm.prototype,"saveButton",null);_.J([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.R("design:type",Number),_.R("design:paramtypes",[])],Lm.prototype,"cropOffsetTop",null);
_.J([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.R("design:type",Number),_.R("design:paramtypes",[])],Lm.prototype,"cropOffsetLeft",null);_.J([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"pickerBackgroundStyle",null);_.J([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"pickerDisplayStyle",null);
_.J([_.M("cropOffsetLeft","cropOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"imageInPickerStyle",null);_.J([_.M("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"previewClipperStyle",null);_.J([_.xA("imageData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"onImageDataChange",null);
_.J([_.M("cropCoordinatesSaved"),_.R("design:type",String),_.R("design:paramtypes",[])],Lm.prototype,"pickerModeStyle",null);_.J([_.M("instruction.editInstruction.learnMore"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lm.prototype,"learnMore",null);_.J([_.M("learnMore"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lm.prototype,"learnMoreUrl",null);_.J([_.Zp({is:"yt-img-crop-picker",disableElementRegistration:!0})],Lm);
_.Y(Lm,"yt-img-crop-picker",function(){if(PXE===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;g3Q===void 0&&(g3Q=document.createElement("template"));var w=g3Q;V.call(W,w.content.cloneNode(!0),y.content.firstChild);PXE=y}y=PXE;return y},{mode:2});var zE=function(){var y=_.u.apply(this,arguments)||this;y.errorMessage="";y.hasPreview=!1;y.isBackstagePost=!1;y.dismissButtonOverrides={size:"XS"};return y};
_.p(zE,_.u);_.E=zE.prototype;_.E.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"}}}};
_.E.detached=function(){this.removeOverlay()};
_.E.setPreview=function(y){_.i6(this.hostElement).querySelector("#preview-picker").imageData=y;this.hasPreview=!0;_.h1(this.hostElement,"yt-backstage-image-select-preview")};
_.E.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var y=_.i6(this.hostElement).querySelector("#dropzone");y.classList.remove("dragover");y.classList.remove("error");_.h1(this.hostElement,"yt-backstage-image-select-cancel")};
_.E.setupOverlay=function(){var y=this.imageUploadEndpoint;this.removeOverlay();if(y&&y.imageValidationInfo){var W=_.i6(this.hostElement).querySelector("#dropzone"),V=_.i6(this.hostElement).querySelector("#select");this.overlay=new L3(y.uploadUrl,y.channelId,y.imageValidationInfo.maxFileSizeMb,y.imageValidationInfo.allowedMaxAspectRatio,W,V,!0);_.XZ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.XZ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.XZ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.XZ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.XZ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.E.removeOverlay=function(){this.overlay&&(_.Ys(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Ys(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Ys(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Ys(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Ys(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.E.onDragOver=function(y){var W=_.i6(this.hostElement).querySelector("#dropzone");_.TA(W,"dragover",y.value)};
_.E.onPreview=function(y){this.setPreview(y.value)};
_.E.onImageError=function(y){if(y.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var W;y=(W=this.data)==null?void 0:W.fileSizeError}else if(y.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var V;y=(V=this.data)==null?void 0:V.invalidError}else if(y.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var w;y=(w=this.data)==null?void 0:w.invalidAspectRatioError}else return;this.errorMessage=_.OT(y);_.i6(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.E.onImageAlert=function(y){this.onImageError(y)};
_.E.uploadPromise=function(){var y=this,W=this.overlay&&this.overlay.uploadPromise();if(W)return W.catch(function(){throw Error(y.data?_.OT(y.data.uploadFailureError):"");})};
_.CM.Object.defineProperties(zE.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return _.D8(this.data.icon.iconType)}}});
zE.prototype.setupOverlay=zE.prototype.setupOverlay;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],zE.prototype,"rendererStamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],zE.prototype,"imageUploadEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],zE.prototype,"errorMessage",void 0);
_.J([_.q(),_.R("design:type",L3)],zE.prototype,"overlay",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],zE.prototype,"hasPreview",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],zE.prototype,"isBackstagePost",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],zE.prototype,"selectionCancel",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],zE.prototype,"previewCancel",null);
_.J([_.M("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],zE.prototype,"icon",null);_.J([_.q(),_.R("design:type",Object)],zE.prototype,"dismissButtonOverrides",void 0);_.J([_.xA("imageUploadEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zE.prototype,"setupOverlay",null);_.J([_.k({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],zE);
_.Y(zE,"ytd-backstage-image-select-renderer",function(){if(Nl6!==void 0)return Nl6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Nl6=y},{mode:1});var CX6;var OLq;var c6=function(){var y=_.u.apply(this,arguments)||this;y.selected=!1;return y};
_.p(c6,_.u);_.E=c6.prototype;_.E.computeSelected=function(y){return y==null?void 0:y.selected};
_.E.computeTransform=function(y,W,V){var w,t,F=(t=(w=this.imageContainer)==null?void 0:w.getBoundingClientRect())!=null?t:{width:0,height:0};w=Math.max(F.width/W,F.height/V);V=V*w*y.top;return"translateX("+this.getSignedPosition(W*w*y.left,"X","-")+") translateY("+this.getSignedPosition(V,"Y","-")+")"};
_.E.getSignedPosition=function(y,W,V){return W==="X"&&_.yC("HTML_DIR")==="rtl"?V==="-"?y+"px":y*-1+"px":V==="-"?y*-1+"px":y+"px"};
_.E.onClick=function(){var y;_.h1(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(y=this.data)==null?void 0:y.image)};
_.E.onKeyPress=function(y){if(y.keyCode===13)this.onClick()};
_.CM.Object.defineProperties(c6.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.image)==null?void 0:W.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.image){var W;y=(W=this.data)==null?void 0:W.image;return y.previewCoordinates.top!==0||y.previewCoordinates.left!==0?(W=this.computeTransform(y.previewCoordinates,y.naturalWidth,y.naturalHeight),y.naturalHeight>=y.naturalWidth?"width:inherit;transform:"+W+";":"height:inherit;transform:"+W+";"):y.naturalHeight>=y.naturalWidth?"width:inherit;":"height:inherit;"}}}});
c6.prototype.onKeyPress=c6.prototype.onKeyPress;_.J([_.s$(".image-container"),_.R("design:type",HTMLElement)],c6.prototype,"imageContainer",void 0);_.J([_.q(),_.R("design:type",Object)],c6.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.R("design:type",Object)],c6.prototype,"selected",void 0);_.J([_.M("data.image"),_.R("design:type",Object),_.R("design:paramtypes",[])],c6.prototype,"thumbnailUrl",null);
_.J([_.M("data.image","data.image.previewCoordinates"),_.R("design:type",Object),_.R("design:paramtypes",[])],c6.prototype,"thumbnailStyle",null);_.J([_.l6("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],c6.prototype,"onKeyPress",null);_.J([_.k({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],c6);
_.Y(c6,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(OLq!==void 0)return OLq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return OLq=y},{mode:2});var ej=function(y,W,V){V=V===void 0?!1:V;_.Bg.call(this);var w=this;this.dropZoneOverlay=new uI(y);this.selectOverlay=V?new SZ(W,"multiple_file",["image/*"]):new SZ(W,"single_file",["image/*"]);this.handler=new _.eK(this);_.Uf(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(W,"click",function(){w.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.p(ej,_.Bg);ej.prototype.onChange=function(y){var W;(W=y.files)!=null&&W.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:y.files}))};var h3=function(){var y=_.u.apply(this,arguments)||this;y.addImageErrorMessage="";y.errorMessage="";y.images=[];y.selectedImageIndex=0;y.modern=_.e("web_modern_buttons");y.maxNumImagesPerPost=_.pB("max_num_images_per_post_web_ui");y.JSC$15539_imageId=0;return y};
_.p(h3,_.u);_.E=h3.prototype;_.E.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.h1(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.E.observeDragToReorder=function(){var y=this;if(this.showImagesPreview){var W,V=TkE(_.Kc.getInstance(),(W=this.data)==null?void 0:W.dragToReorderTooltip);_.HU.addLowPriorityJob(function(){_.fg(y.hostElement,V,y.thumbnailDragDropArea)})}};
_.E.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}}};
_.E.computeThumbnail=function(y){return(y==null?void 0:y.localImageSrc)||void 0};
_.E.onRendererstamperFinished=function(){_.zNR(this.ytReorderableBehavior,_.i6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.i6(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.E.handleDrop=function(y){var W=y.currDragItem;if(W!=null&&W.data){y=this.images[this.selectedImageIndex];var V=W.data.image,w=this.images.indexOf(V)||0;W=_.RR(W.parentNode.children,W);this.images.splice(w,1);this.images.splice(W,0,V);this.images=[].concat(_.GC(this.images));this.selectedImageIndex=this.images.indexOf(y)}};
_.E.setUpImagePicker=function(){var y=this.imageUploadEndpoint;y&&y.imageValidationInfo&&(this.uploadManager=new Oj(y.uploadUrl,y.channelId),this.initialPicker||(this.initialPicker=new ej(this.dropzone,this.selectLink,!0),_.XZ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new ej(this.addImageButtonContainer,this.addImageSelectButton),_.XZ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.XZ(this.JSC$15539_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.XZ(this.JSC$15539_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.XZ(_.i6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.E.detached=function(){this.initialPicker&&(_.Ys(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Ys(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.E.onInitialSelectImages=function(y){var W=this;return _.g(function(V){return V.yield(W.onSelectImages(y,!1),0)})};
_.E.onAddImage=function(y){var W=this;return _.g(function(V){return V.yield(W.onSelectImages(y,!0),0)})};
_.E.onSelectImages=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b;return _.g(function(Fv){switch(Fv.nextAddress){case 1:W?V.addImageErrorMessage="":(V.images=[],V.errorMessage="");w=y.detail;t=V.validateImages([].concat(_.GC(w)));if(t!=="")return W?V.addImageErrorMessage=t:V.errorMessage=t,Fv.return();F=[].concat(_.GC(w)).map(function(Py){return(new vh(V.maxAspectRatio,!1,!0)).transform(Py)});
return Fv.yield(Promise.allSettled(F),2);case 2:I=Fv.yieldResult,P=_.N(I.entries()),C=P.next();case 3:if(C.done){Fv.jumpTo(5);break}d=C.value;L=_.N(d);z=L.next().value;c=L.next().value;K=z;f=c;if(f.status!=="fulfilled"){x=l=U=void 0;W?V.addImageErrorMessage=_.OT((U=V.data)==null?void 0:U.invalidError):V.errorMessage=V.errorMessage===""?_.OT((l=V.data)==null?void 0:l.invalidError):_.OT((x=V.data)==null?void 0:x.multiFileError);Fv.jumpTo(4);break}B=f.value;B.cropped&&_.h1(V.hostElement,"yt-backstage-multi-image-cropped");
if(B.invalidAspectRatio){a=H=r=void 0;W?V.addImageErrorMessage=_.OT((r=V.data)==null?void 0:r.invalidAspectRatioError):V.errorMessage=V.errorMessage===""?_.OT((H=V.data)==null?void 0:H.invalidAspectRatioError):_.OT((a=V.data)==null?void 0:a.multiFileError);Fv.jumpTo(4);break}return Fv.yield(dbL(V.JSC$15539_imageId,y.detail[K],B.transformedData),8);case 8:b=Fv.yieldResult,V.images.push(b),V.JSC$15539_imageId++;case 4:C=P.next();Fv.jumpTo(3);break;case 5:if(V.errorMessage!==""||V.addImageErrorMessage!==
"")return Fv.return();W?Z_s(V.uploadManager,[V.images[V.images.length-1]]):Z_s(V.uploadManager,V.images);V.images=[].concat(_.GC(V.images));V.selectedImageIndex=W?Math.max(V.images.length-1,0):0;_.h1(V.hostElement,"yt-backstage-multi-image-select");_.B7(Fv)}})};
_.E.onThumbnailClick=function(y){if(y=y.event_.detail)this.selectedImageIndex=this.images.indexOf(y)};
_.E.validateImages=function(y){if(y.length>this.maxNumImagesPerPost){var W;return _.OT((W=this.data)==null?void 0:W.multiImageExceedMaxImageCountError)}var V=1048576*this.maxFileSizeMb;y=y.filter(function(F){return F.size>V}).length;
if(y===0)return"";var w,t;y=y>1?(w=this.data)==null?void 0:w.multiFileError:(t=this.data)==null?void 0:t.fileSizeError;return _.OT(y)};
_.E.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.GC(this.images));this.selectedImageIndex=0};
_.E.repositionImage=function(y){this.images[this.selectedImageIndex].previewCoordinates=y.event_.detail;this.images=[].concat(_.GC(this.images))};
_.E.getAllUploadStatuses=function(){var y=this,W,V,w,t;return _.g(function(F){if(F.nextAddress==1)return F.yield(y.uploadManager.getAllUploadStatuses(),2);W=F.yieldResult;V=_.N(W);for(w=V.next();!w.done;w=V.next())if(t=w.value,t.encryptedBlobId===void 0)return F.return(yKs(y.uploadManager));return F.return(W)})};
_.E.hasImages=function(){return this.images.length>0};
_.E.cancel=function(){for(var y=this.uploadManager,W=_.N(y.imagesUploadData),V=W.next();!V.done;V=W.next())y.cancel(V.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.h1(this.hostElement,"yt-backstage-multi-image-cancel")};
_.CM.Object.defineProperties(h3.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.imageUploadEndpoint)==null?void 0:(W=y.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.imageUploadEndpoint)==null?void 0:(W=y.imageValidationInfo)==null?void 0:W.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return _.D8(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.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 y=this;return(this.images||[]).map(function(W,V){return{renderer:{image:W,selected:V===y.selectedImageIndex}}})}}});
h3.prototype.setUpImagePicker=h3.prototype.setUpImagePicker;h3.prototype.onRendererstamperFinished=h3.prototype.onRendererstamperFinished;h3.prototype.observeDragToReorder=h3.prototype.observeDragToReorder;h3.prototype.observeAddImageError=h3.prototype.observeAddImageError;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],h3.prototype,"rendererStamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.c5z),_.R("design:type",Object)],h3.prototype,"ytReorderableBehavior",void 0);_.J([_.s$("#dropzone"),_.R("design:type",HTMLElement)],h3.prototype,"dropzone",void 0);_.J([_.s$("#select-link"),_.R("design:type",HTMLElement)],h3.prototype,"selectLink",void 0);_.J([_.s$("#thumbnail-drag-drop-area"),_.R("design:type",HTMLElement)],h3.prototype,"thumbnailDragDropArea",void 0);_.J([_.s$("#add-image-button-container"),_.R("design:type",HTMLElement)],h3.prototype,"addImageButtonContainer",void 0);
_.J([_.s$("#add-image-button"),_.R("design:type",HTMLElement)],h3.prototype,"addImageSelectButton",void 0);_.J([_.s$("#image-preview-container"),_.R("design:type",Object)],h3.prototype,"JSC$15539_imagePreviewContainer",void 0);_.J([_.q(),_.R("design:type",Object)],h3.prototype,"addImageErrorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],h3.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],h3.prototype,"errorMessage",void 0);
_.J([_.q(),_.R("design:type",Object)],h3.prototype,"imageUploadEndpoint",void 0);_.J([_.q(),_.R("design:type",Array)],h3.prototype,"images",void 0);_.J([_.q(),_.R("design:type",ej)],h3.prototype,"initialPicker",void 0);_.J([_.q(),_.R("design:type",ej)],h3.prototype,"addImagePicker",void 0);_.J([_.q(),_.R("design:type",Oj)],h3.prototype,"uploadManager",void 0);_.J([_.q(),_.R("design:type",Object)],h3.prototype,"selectedImageIndex",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h3.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],h3.prototype,"maxNumImagesPerPost",void 0);_.J([_.M("imageUploadEndpoint"),_.R("design:type",Number),_.R("design:paramtypes",[])],h3.prototype,"maxAspectRatio",null);_.J([_.M("imageUploadEndpoint"),_.R("design:type",Number),_.R("design:paramtypes",[])],h3.prototype,"maxFileSizeMb",null);
_.J([_.M("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],h3.prototype,"dropIcon",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],h3.prototype,"selectionCancel",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],h3.prototype,"previewCancel",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],h3.prototype,"dataForAddImageButton",null);
_.J([_.M("errorMessage"),_.R("design:type",String),_.R("design:paramtypes",[])],h3.prototype,"dropzoneClass",null);_.J([_.M("images"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],h3.prototype,"showImagesPreview",null);_.J([_.M("images"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],h3.prototype,"containMaxImages",null);_.J([_.xA("addImageErrorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h3.prototype,"observeAddImageError",null);
_.J([_.xA("showImagesPreview"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h3.prototype,"observeDragToReorder",null);_.J([_.M("images","selectedImageIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],h3.prototype,"selectedImageData",null);_.J([_.M("images","selectedImageIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],h3.prototype,"thumbnailRenderers",null);
_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h3.prototype,"onRendererstamperFinished",null);_.J([_.xA("imageUploadEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h3.prototype,"setUpImagePicker",null);_.J([_.k({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],h3);
_.Y(h3,"ytd-backstage-multi-image-select-renderer",function(){if(CX6!==void 0)return CX6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return CX6=y},{mode:1});var v3A;var dpK;var LEm;var o7=function(){var y=_.u.apply(this,arguments)||this;y.boundCaptureFocus=function(W){y.onCaptureFocus(W)};
return y};
_.p(o7,_.u);_.E=o7.prototype;_.E.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.E.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.E.onCaptureFocus=function(y){_.O$(y).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.E.getIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
_.E.onSelect=function(){var y;if((y=this.data)==null?0:y.onSelectCommand)if(_.e("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var W;((W=_.h(this.data.onSelectCommand.commandMetadata,_.dw))==null?0:W.url)?_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.hs().resolve(_.oA).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.CM.Object.defineProperties(o7.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.OT(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}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],o7.prototype,"data",void 0);_.J([_.s$("#item"),_.R("design:type",HTMLElement)],o7.prototype,"item",void 0);_.J([_.M("data.label"),_.R("design:type",String),_.R("design:paramtypes",[])],o7.prototype,"label",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],o7.prototype,"value",null);_.J([_.k({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],o7);
_.Y(o7,"ytd-privacy-dropdown-item-renderer",function(){if(LEm!==void 0)return LEm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return LEm=y},{mode:1});var Km=function(){var y=_.u.apply(this,arguments)||this;y.value="";y.label="";y.disabled=!1;return y};
_.p(Km,_.u);_.E=Km.prototype;_.E.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"}}}};
_.E.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.E.dataChanged=function(){this.reset()};
_.E.valueChanged=function(){var y;if(this.value&&(y=this.data)!=null&&y.entries){y=_.N(this.data.entries);for(var W=y.next();!W.done;W=y.next())if((W=this.getRendererForEntry(W.value))&&this.getItemRendererValue(W)===this.value){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}}};
_.E.setInitialLabel=function(){if(this.data&&this.data.entries)for(var y=_.N(this.data.entries),W=y.next();!W.done;W=y.next())if(W=this.getRendererForEntry(W.value)){if(W.isSelected){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}this.data.label&&(this.label=this.data.label)}};
_.E.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var y=_.N(this.data.entries),W=y.next();!W.done;W=y.next()){W=this.getRendererForEntry(W.value);var V=void 0;if((V=W)==null?0:V.isSelected)return this.getItemRendererValue(W)||-1}return-1};
_.E.getItemRendererValue=function(y){return"stringValue"in y||"int32Value"in y?y.stringValue||y.int32Value||null:null};
_.E.getRendererForEntry=function(y){return y.dropdownItemRenderer||y.privacyDropdownItemRenderer||y.navigationDropdownItemRenderer||null};
_.E.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("value-changed",this.value))};
_.E.updateValueFromBinding=function(y){this.value=y.detail.value};
Km.prototype.valueChangedForBinding=Km.prototype.valueChangedForBinding;Km.prototype.valueChanged=Km.prototype.valueChanged;Km.prototype.dataChanged=Km.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Km.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Km.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Km.prototype,"value",void 0);_.J([_.q(),_.R("design:type",Object)],Km.prototype,"label",void 0);_.J([_.s$("#entries"),_.R("design:type",Object)],Km.prototype,"entries",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Km.prototype,"disabled",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Km.prototype,"dataChanged",null);
_.J([_.Jc("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Km.prototype,"valueChanged",null);_.J([_.xA("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Km.prototype,"valueChangedForBinding",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Km);
_.Y(Km,"ytd-flat-dropdown-renderer",function(){if(dpK!==void 0)return dpK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dpK=y},{mode:1});var zqE;var pm=function(){var y=_.u.apply(this,arguments)||this;y.quizOptions=[];y.explanationPlaceholderText="";y.optionPlaceholderText="";y.correctAnswerIndex=-1;y.isMarkAnswerTooltipShown=!1;y.timer=0;return y};
_.p(pm,_.u);_.E=pm.prototype;_.E.dataChanged=function(){this.optionPlaceholderText=_.OT(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.OT(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.E.onMarkCorrectAnswer=function(y){var W,V=((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[y.model.index]=Object.assign({},this.quizOptions[y.model.index],{explanationText:V,isCorrect:!0});this.correctAnswerIndex=y.model.index;this.quizOptions=[].concat(_.GC(this.quizOptions))};
_.E.updatePlaceholderTexts=function(){for(var y=!1,W=[],V=0;V<this.quizOptions.length;V++){var w=this.optionPlaceholderText+" "+(V+1),t=void 0;((t=this.quizOptions[V])==null?void 0:t.placeholderText)!==w?(y=!0,W.push(Object.assign({},this.quizOptions[V],{placeholderText:w}))):W.push(this.quizOptions[V])}y&&(this.quizOptions=W);this.isValid()?_.h1(this.hostElement,"yt-commentbox-post-enable"):_.h1(this.hostElement,"yt-commentbox-post-disable")};
_.E.getSimpleString=function(y){return _.OT(y)};
_.E.createQuizOptions=function(y){var W=[],V;y=(V=y==null?void 0:y.minQuizOptions)!=null?V:0;for(V=0;V<y;V++)W.push(this.createQuizOption());return W};
_.E.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.GC(this.quizOptions),[this.createQuizOption()]))};
_.E.onInput=function(){this.quizOptions=[].concat(_.GC(this.quizOptions))};
_.E.onExplanationInput=function(){_.h1(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.E.onRemoveQuizOption=function(y){this.quizOptions.splice(y.model.index,1);y.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:y.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.GC(this.quizOptions));this.quizOptions.length===0&&_.h1(this.hostElement,"yt-quiz-attachment-dismiss")};
_.E.updateHintRenderer=function(){var y=this;clearTimeout(this.timer);this.timer=setTimeout(function(){y.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.E.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var y=0,W=0,V=_.N(this.quizOptions),w=V.next();!w.done;w=V.next()){w=w.value;var t=void 0;if(((t=w.optionText)==null?void 0:t.trim())!==""||w.isCorrect){w.isCorrect&&W++;t=void 0;if(this.hasCustomOptionText&&((t=w.optionText)==null?void 0:t.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;y++}}return y>=
Number(this.editorInfo.minQuizOptions)&&W===1};
_.E.getPostCreateOptions=function(){for(var y=[],W=_.N(this.quizOptions),V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;((w=V.optionText)==null?void 0:w.trim())!==""&&y.push({pollOption:{text:V.optionText,explanation:V.explanationText},isCorrect:V.isCorrect})}return y};
_.E.getExplanationText=function(){var y;return((y=this.quizOptions[this.correctAnswerIndex])==null?void 0:y.explanationText)||""};
_.E.maybeDisplayMarkAnswerEduToolTip=function(){var y,W,V,w,t,F,I;this.shouldShowMarkAnswerTooltip()&&((y=this.editorInfo)==null?0:(W=y.markAnswerButton)==null?0:(V=W.buttonRenderer)==null?0:(w=V.hint)==null?0:(t=w.hintRenderer)==null?0:(F=t.content)==null?0:(I=F.bubbleHintRenderer)==null?0:I.text)&&(_.Kc.getInstance(),y=pc(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,(y==null?void 0:y.length)>0&&this.optionSelectors&&_.kc(y[0],this.optionSelectors[0]))};
_.E.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var y=0,W=_.N(this.quizOptions),V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;((w=V.optionText)==null?void 0:w.trim())!==""&&y++;if(V.isCorrect)return!1}return y<2?!1:!0};
_.E.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.E.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.E.updateOptionTextFromBinding=function(y){if(y.target){var W=Array.from(_.i6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(y.target);if(W>=0){var V;this.quizOptions[W].optionText=(V=y.detail.value)!=null?V:""}}};
_.CM.Object.defineProperties(pm.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.editorInfo)==null?void 0:(W=y.addOptionButton)==null?void 0:W.buttonRenderer;V&&(V.style="STYLE_SUGGESTIVE",V.size="SIZE_SMALL",V.isDisabled=!this.isAllowedToAddOption);return(V==null?0:V.text)?V:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.quizOptions.length<((W=(y=this.editorInfo)==null?void 0:y.maxQuizOptions)!=null?W:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(y){var W;return(W=y.optionText)==null?void 0:W.trim()})}}});
pm.prototype.updatePlaceholderTexts=pm.prototype.updatePlaceholderTexts;pm.prototype.dataChanged=pm.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],pm.prototype,"editorInfo",void 0);_.J([_.q(),_.R("design:type",Array)],pm.prototype,"quizOptions",void 0);_.J([_.q(),_.R("design:type",Object)],pm.prototype,"explanationPlaceholderText",void 0);_.J([_.Ac(".option-selector-button"),_.R("design:type",Array)],pm.prototype,"optionSelectors",void 0);
_.J([_.Jc("editorInfo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pm.prototype,"dataChanged",null);_.J([_.M("editorInfo","isAllowedToAddOption","quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],pm.prototype,"addAnswerButton",null);_.J([_.M("editorInfo","quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],pm.prototype,"isAllowedToAddOption",null);
_.J([_.Jc("quizOptions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pm.prototype,"updatePlaceholderTexts",null);_.J([_.M("quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],pm.prototype,"hasCustomOptionText",null);_.J([_.k({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],pm);
_.Y(pm,"ytd-backstage-quiz-editor-renderer",function(){if(zqE!==void 0)return zqE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zqE=y},{mode:2});var cKi;var eqI=(JO.FIRSTDAYOFWEEK+1)%7;var hq6;var o3R=[],KE6=0,pJR=0;KE6=0;pJR=24;if(.25*(pJR-KE6)<0)hq6=[];else{for(var iL2=KE6;iL2<pJR;iL2+=.25)o3R.push(iL2);hq6=o3R}var fj6=hq6.map(function(y){y=y*60*60;return{secondsSinceMidnight:y,text:(new gP(7)).format(new Date(0,0,0,0,0,y))}});var TlA;var ix=function(){var y=_.u.apply(this,arguments)||this;y.skipNextOpenDialog=!1;y.errorMessage="";return y};
_.p(ix,_.u);_.E=ix.prototype;_.E.attached=function(){var y=this,W=new MutationObserver(function(){y.JSC$15582_calendarMain.scrollHeight>0&&(W.disconnect(),y.calendarConfig&&y.calendarConfig.selectedDate&&y.scrollToDate())});
W.observe(this.JSC$15582_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){W.disconnect()},1E3)};
_.E.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.E.onDateTextChange=function(){if(this.calendarConfig){var y=this.validateDateText();y.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(y.details)):this.textbox.setAttribute("invalid","")}};
_.E.handleDayClick=function(y){y.model.day.date&&(this.commitDate(y.model.day.date),this.dialog.close())};
_.E.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var y=T8v(this.calendarConfig.selectedDate,this.renderData);y!==void 0&&this.JSC$15582_calendarMain.scrollToIndex(y)}};
_.E.scrollToNextMonth=function(){this.JSC$15582_calendarMain.scrollToIndex(this.JSC$15582_calendarMain.firstVisibleIndex+1)};
_.E.scrollToPrevMonth=function(){this.JSC$15582_calendarMain.firstVisibleIndex===0&&this.JSC$15582_calendarMain.scrollTo(0,0);this.JSC$15582_calendarMain.scrollToIndex(this.JSC$15582_calendarMain.firstVisibleIndex-1)};
_.E.onFormSubmit=function(y){y.preventDefault();this.calendarConfig&&(y=this.validateDateText(),y.isValid&&(this.commitDate(y.details),this.dialog.close()))};
_.E.onEscOrClickingOutside=function(y){y=y.detail.path&&!!y.detail.path.length&&y.detail.path[0];if(y.classList.contains("ytd-calendar-date-picker")){y===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var W=0;W<this.dropdownButton.children.length;W++)this.dropdownButton.children[W]===y&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}y=this.textbox.value!==this.dateText;W=this.validateDateText();y&&W.isValid&&this.commitDate(W.details);this.dialog.close();this.textbox.value=
this.dateText};
_.E.commitDate=function(y){this.calendarConfig&&(this.set("calendarConfig.selectedDate",y),_.h1(this.hostElement,"ytd-calendar-date-selected",y))};
_.E.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var y=this.textbox.value;var W=new Date;y=(new nmv(2)).parse(y,W,{validate:!0})===y.length?iTn(W):void 0;if(!y)return this.errorMessage=_.u5("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};W=this.calendarConfig.start;var V=this.calendarConfig.end;if(e2n(y,W))return this.errorMessage=_.u5("ENTER_DATE_OR_LATER",{allowed_date:pAd(W)}),{isValid:!1,details:void 0};if(e2n(V,y))return this.errorMessage=
_.u5("ENTER_DATE_OR_EARLIER",{allowed_date:pAd(V)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:y}};
_.CM.Object.defineProperties(ix.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?pAd(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var y=this.calendarConfig,W=[],V=0;V<7;V++)W.push(JO.NARROWWEEKDAYS[(V+eqI)%7]);V=[];for(var w=new Date(y.start.year,y.start.month);w.getFullYear()<y.end.year||w.getFullYear()===y.end.year&&w.getMonth()<=y.end.month;){var t=V,F=t.push,I=w.getFullYear(),P=w.getMonth(),C=y,d=void 0,L=[],z=Object.freeze({extraCssClass:"invisible",debugClass:""}),c=new Date(I,P),K=iTn(c);c=c.getDay();for(var f=iTn(new Date);K.month===
P;){c!==eqI&&d||(d=Array.from({length:7}).fill(z),L.push(d));var U={date:{year:I,month:P,day:K.day},extraCssClass:"",debugClass:""};C.selectedDate&&U.date&&cad(U.date,C.selectedDate)&&(U.extraCssClass+=" selected");if(e2n(K,C.start)||e2n(C.end,K))U.extraCssClass+=" disabled";cad(K,f)&&(U.extraCssClass+=" today");U.extraCssClass=U.extraCssClass.trim();d[(c-eqI+7)%7]=U;K=omb(K);c=(c+1)%7}F.call(t,{weeks:L,monthLabel:JO.SHORTMONTHS[P]+" "+I,year:I,month:P,monthLabelExtraCssClass:L[0][2]===z?"shift-down-label":
""});w.setMonth(w.getMonth()+1)}return{months:V,daysOfWeekLabel:W}}}}});
ix.prototype.onEscOrClickingOutside=ix.prototype.onEscOrClickingOutside;ix.prototype.scrollToDate=ix.prototype.scrollToDate;_.J([_.q(),_.R("design:type",Object)],ix.prototype,"calendarConfig",void 0);_.J([_.q(),_.R("design:type",Object)],ix.prototype,"skipNextOpenDialog",void 0);_.J([_.q(),_.R("design:type",Object)],ix.prototype,"errorMessage",void 0);_.J([_.s$("#textbox"),_.R("design:type",HTMLInputElement)],ix.prototype,"textbox",void 0);
_.J([_.s$("#calendar-dialog"),_.R("design:type",Object)],ix.prototype,"dialog",void 0);_.J([_.s$("#calendar-main"),_.R("design:type",Object)],ix.prototype,"JSC$15582_calendarMain",void 0);_.J([_.s$("#date-picker"),_.R("design:type",HTMLElement)],ix.prototype,"dropdownButton",void 0);_.J([_.M("calendarConfig.selectedDate"),_.R("design:type",String),_.R("design:paramtypes",[])],ix.prototype,"dateText",null);
_.J([_.M("calendarConfig","calendarConfig.selectedDate"),_.R("design:type",Object),_.R("design:paramtypes",[])],ix.prototype,"renderData",null);_.J([_.xA("renderData","calendarConfig.selectedDate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ix.prototype,"scrollToDate",null);_.J([_.l6("iron-overlay-canceled"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ix.prototype,"onEscOrClickingOutside",null);
_.J([_.Zp({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ix);
_.Y(ix,"ytd-calendar-date-picker",function(){if(TlA!==void 0)return TlA;var y=document.createElement("template");_.T(y,'\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" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TlA=y},{mode:2});var mpK=_.u5("UTC_OFFSET_FORMAT",{utc_offset:(new gP("Z")).format(new Date)}),Mki=(new Date).getTimezoneOffset()*-60,qYf=new Date,Upz,upJ=Ic(qYf.getTimezoneOffset());Upz=oAq(pWi(upJ,qYf));var SYE=_.u5("LOCAL_TIME_GMT_LABEL",{gmt_text:Upz.replace("+0","+").replace("-0","-").replace(":00","")}),fm=function(){var y=_.u.apply(this,arguments)||this;y.selectedTimeIndex=0;y.selectedTimezoneIndex=0;y.timeOfDayOptions=fj6;return y};
_.p(fm,_.u);_.E=fm.prototype;_.E.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var y=K54();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=y,this.selectedTimeIndex=0;else{var W=f$u(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},y,{selectedDate:W.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(V){return V.secondsSinceMidnight===W.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.E.onDatePicked=function(y){this.selectedDate=y.detail};
_.E.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.h1(this.hostElement,"ytd-date-time-selection-cancelled")};
_.E.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var y=this.selectedDate;y=new Date(y.year,y.month,y.day);_.h1(this.hostElement,"ytd-date-time-selection-update",Math.floor(y.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+y.getTimezoneOffset()*60))}};
_.E.getTimezoneFormat=function(y){return y.localizedDisplayText?y.localizedDisplayText:_.u5("TIMEZONE_FORMAT",{utc_offset_text:""+y.localizedUtcOffset,city_name:""+y.localizedName})};
_.E.updateSelectedTimeIndexFromBinding=function(y){this.selectedTimeIndex=y.detail.value};
_.E.updateSelectedTimezoneIndexFromBinding=function(y){this.selectedTimezoneIndex=y.detail.value};
_.CM.Object.defineProperties(fm.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data.timezoneOptions;var W={name:"Etc/Unknown",localizedName:_.u5("LOCAL_TIME_LABEL"),localizedUtcOffset:mpK,utcOffsetSec:""+Mki,localizedDisplayText:SYE};y?y.length&&y[0].name!==W.name&&(y[0].localizedDisplayText||(W.localizedDisplayText=""),y.unshift(W)):y=[W];return y}}},
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]}}});
fm.prototype.onDateTimeTimezoneChange=fm.prototype.onDateTimeTimezoneChange;fm.prototype.onDatePicked=fm.prototype.onDatePicked;fm.prototype.updateDefaultSelectedValue=fm.prototype.updateDefaultSelectedValue;_.J([_.q(),_.R("design:type",Object)],fm.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],fm.prototype,"calendarConfig",void 0);_.J([_.q(),_.R("design:type",Object)],fm.prototype,"selectedDate",void 0);_.J([_.q(),_.R("design:type",Object)],fm.prototype,"selectedTimeIndex",void 0);
_.J([_.q(),_.R("design:type",Object)],fm.prototype,"selectedTimezoneIndex",void 0);_.J([_.s$("#time-listbox"),_.R("design:type",Object)],fm.prototype,"timeListBox",void 0);_.J([_.s$("#timezone-listbox"),_.R("design:type",Object)],fm.prototype,"timezoneListBox",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fm.prototype,"rendererStamperBehavior",void 0);_.J([_.M("data.timezoneOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],fm.prototype,"timeZones",null);
_.J([_.Jc("data","timeZones"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fm.prototype,"updateDefaultSelectedValue",null);_.J([_.M("selectedTimezoneIndex","timeZones"),_.R("design:type",Object),_.R("design:paramtypes",[])],fm.prototype,"selectedTimezone",null);_.J([_.M("selectedTimeIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],fm.prototype,"selectedTime",null);
_.J([_.l6("ytd-calendar-date-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],fm.prototype,"onDatePicked",null);_.J([_.xA("selectedTimezone","selectedTime","selectedDate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fm.prototype,"onDateTimeTimezoneChange",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],fm);
_.Y(fm,"ytd-date-time-picker-renderer",function(){if(cKi!==void 0)return cKi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cKi=y},{mode:1});var DpR;var TE=function(){var y=_.u.apply(this,arguments)||this;y.boundOnTapDismissButton=function(){y.dismissTapHandler()};
y.dismissButtonOverrides={size:"XS"};return y};
_.p(TE,_.u);TE.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}}}}}};
TE.prototype.dismissTapHandler=function(){_.h1(this.hostElement,"yt-backstage-attachment-dismissed")};
TE.prototype.computeAttachmentType=function(y){return y?y.backstageImageRenderer?"image":y.videoRenderer?"video":"none":"none"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],TE.prototype,"attachmentPreview",void 0);_.J([_.q(),_.R("design:type",Object)],TE.prototype,"dismissButton",void 0);_.J([_.q(),_.R("design:type",Object)],TE.prototype,"boundOnTapDismissButton",void 0);
_.J([_.q(),_.R("design:type",Object)],TE.prototype,"dismissButtonOverrides",void 0);_.J([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.R("design:type",String)],TE.prototype,"attachmentType",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],TE);
_.Y(TE,"ytd-backstage-dismissable-attachment",function(){if(DpR!==void 0)return DpR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DpR=y},{mode:1});var lj6;var mi=function(){var y=_.u.apply(this,arguments)||this;y.selectedVideoId=void 0;y.picker=void 0;y.dismissButtonOverrides={size:"XS"};y.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return y};
_.p(mi,_.u);_.E=mi.prototype;_.E.onServiceRequestCompleted=function(y){y.stopPropagation()};
_.E.handleAddVideoPreviewAction=function(y){y=this.get("addVideoPreviewAction",y);this.onGetVideoPreviewSuccess(y)};
_.E.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}}}}}};
_.E.onLaunchVideoPicker=function(y){var W=this,V=_.OT(this.get("addVideoLinkAction.title",y)),w=this.get("addVideoLinkAction.onePickHostId",y);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",y);w&&(this.picker||(V=_.zLz(_.gtj(w).setTitle(V).addView(OBi()).addView(CCi()),function(t){W.onPickVideo(t)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",y)||V.addView("youtube"),this.picker=V.build()),this.picker.setVisible(!0))};
_.E.onPickVideo=function(y){if(y)if(y.action==="cancel")_.h1(this.hostElement,"yt-video-link-button-cancel");else if(y.action==="picked"){y=y.docs;if(!y||y.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(y=(y==null?0:y.length)?y[0]:void 0)?y.id:void 0;this.setVideoPreview()}};
_.E.setVideoPreview=function(){var y=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){y.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.E.onGetVideoPreviewSuccess=function(y){if(y&&y.videoPreview&&y.cancelButton)this.videoPreview=y.videoPreview,this.cancelButton=y.cancelButton,_.h1(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.E.onGetVideoPreviewError=function(){this.cancel()};
_.E.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.h1(this.hostElement,"yt-video-link-cancel")};
_.E.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
mi.prototype.onServiceRequestCompleted=mi.prototype.onServiceRequestCompleted;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],mi.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],mi.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mi.prototype,"videoPreview",void 0);_.J([_.q(),_.R("design:type",Object)],mi.prototype,"cancelButton",void 0);_.J([_.q(),_.R("design:type",Object)],mi.prototype,"getVideoPreviewCommand",void 0);_.J([_.q(),_.R("design:type",Object)],mi.prototype,"dismissButtonOverrides",void 0);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],mi.prototype,"onServiceRequestCompleted",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],mi);
_.Y(mi,"ytd-backstage-video-link-attachment",function(){if(lj6!==void 0)return lj6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lj6=y},{mode:1});var xpE;var ku2;var sQi;var Mh=function(){return _.u.apply(this,arguments)||this};
_.p(Mh,_.u);Mh.prototype.dataChanged=function(){this.active=!1};
Mh.prototype.onTap=function(){_.h1(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Mh.prototype.identity=function(y){return y};
_.CM.Object.defineProperties(Mh.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;if((y=this.data)==null?0:(W=y.image)==null?0:(V=W.thumbnails)==null?0:(w=V[0])==null?0:w.url)return y=this.data.image.thumbnails[0].url,y.startsWith("data:image/svg+xml")?XM(y):_.ye(y)}}});
Mh.prototype.dataChanged=Mh.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],Mh.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Mh.prototype,"active",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mh.prototype,"dataChanged",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Mh.prototype,"imageSrc",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Mh);
_.Y(Mh,"ytd-emoji-suggestion",function(){if(sQi!==void 0)return sQi;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sQi=y},{mode:1});var AKm=/.*([:@#].*?)$/,qh=function(){var y=_.u.apply(this,arguments)||this;y.suggestions=[];y.suggestionIndex=-1;y.JSC$15610_lastSuggestionRange=null;return y};
_.p(qh,_.u);_.E=qh.prototype;_.E.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.E.getSuggestions=function(y){var W=[],V=eOm(this.emojiManager,y.substr(0,3));if(V)for(var w in V)if(w.toLocaleLowerCase().indexOf(y)===0){var t=V[w];if(t&&t.emojiId){t=tC(this.emojiManager,t.emojiId);var F=void 0,I=void 0,P=void 0,C=void 0,d=((F=t)==null?0:F.isCustomEmoji)?(I=t)==null?void 0:(P=I.shortcuts)==null?void 0:P[0]:(C=t)==null?void 0:C.emojiId;F=void 0;W.push({suggestion:{image:(F=t)==null?void 0:F.image,alt:d,text:w}});if(W.length>=64)break}}return W?W.sort(function(L,z){return z.suggestion.text<
L.suggestion.text?-1:z.suggestion.text===L.suggestion.text?0:1}):null};
_.E.insertSuggestion=function(y){_.h1(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15610_lastSuggestionRange,text:y.alt});this.dropdown.opened=!1};
_.E.updateSuggestionsAtCaret=function(y){this.updateSuggestions(y,this.retrieveTextBeforeRange(y))};
_.E.offsetStartOfRangeBy=function(y,W){y.startOffset>=W&&y.setStart(y.startContainer,y.startOffset-W)};
_.E.updateSuggestions=function(y,W){var V=this;this.JSC$15610_lastSuggestionRange&&(this.JSC$15610_lastSuggestionRange.detach(),this.JSC$15610_lastSuggestionRange=null);if((W=AKm.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2||W===":_")&&(this.offsetStartOfRangeBy(y,W.length),this.JSC$15610_lastSuggestionRange=y,(y=this.getSuggestions(W))&&y.length)){this.suggestions=y;_.gy(this,function(){V.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(y.length-1);return}this.dropdown.opened=!1};
_.E.onKeyDown=function(y){if(this.dropdown.opened)switch(y.key){case "Escape":this.dropdown.opened=!1;y.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);y.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);y.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),y.preventDefault()}};
_.E.onKeyUp=function(y,W){switch(y.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(W);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(W)}};
_.E.onKeyPress=function(y){y.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),y.preventDefault())};
_.E.changeSuggestionIndex=function(y){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(y+this.suggestions.length)%this.suggestions.length,y=this.dropdownContent.children[this.suggestionIndex],y.active=!0,this.dropdownContent.scrollTop=y.offsetTop)};
_.E.retrieveTextBeforeRange=function(y){var W=y.startContainer;return W&&W.nodeType===Node.TEXT_NODE?W.textContent.substr(0,y.startOffset):""};
qh.prototype.onKeyPress=qh.prototype.onKeyPress;qh.prototype.onKeyUp=qh.prototype.onKeyUp;qh.prototype.onKeyDown=qh.prototype.onKeyDown;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Array)],qh.prototype,"suggestions",void 0);_.J([_.q(),_.R("design:type",_.Vf)],qh.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Number)],qh.prototype,"verticalSuggestionsOffset",void 0);
_.J([_.s$("#dropdown"),_.R("design:type",Object)],qh.prototype,"dropdown",void 0);_.J([_.s$("#dropdown-content"),_.R("design:type",HTMLDivElement)],qh.prototype,"dropdownContent",void 0);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],qh.prototype,"onKeyDown",null);_.J([_.l6("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent,Range]),_.R("design:returntype")],qh.prototype,"onKeyUp",null);
_.J([_.l6("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],qh.prototype,"onKeyPress",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-emoji-input"})],qh);
_.Y(qh,"ytd-emoji-input",function(){if(ku2!==void 0)return ku2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ku2=y},{mode:2});var YYm;var Uj=function(){var y=_.u.apply(this,arguments)||this;y.hasMaxOptions=!1;return y};
_.p(Uj,_.u);_.E=Uj.prototype;_.E.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.E.setPrefilledChoices=function(y){var W=this;this.set("pollOptions",[]);var V;for(V=0;V<Math.min(y.length,this.data.maxPollOptions);V++)this.push("pollOptions",y[V].substring(0,this.data.maxPollOptionChars));for(;V<this.data.minPollOptions;V++)this.push("pollOptions","");this.hasMaxOptions=V>=this.data.maxPollOptions;_.gy(this,function(){for(var w=W.pollOptions,t=_.i6(W.hostElement).querySelectorAll(".poll-option-input"),F=0;F<t.length;F++)t[F].value=w[F]})};
_.E.focusChanged=function(){_.qg(this.hostElement)};
_.E.onInput=function(){var y=this;_.NM(this,"onInput",function(){y.isValid()?_.h1(y.hostElement,"yt-commentbox-post-enable"):_.h1(y.hostElement,"yt-commentbox-post-disable")},300)};
_.E.setPollOptions=function(){var y=[],W,V=((W=this.data)==null?0:W.minPollOptions)?this.data.minPollOptions:0;for(W=0;W<V;W++)y.push("");return y};
_.E.addPollOption=function(){var y=this;_.h1(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.HU.addLowPriorityJob(function(){var W;(W=_.i6(y.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||W.focus()})};
_.E.onRemovePollOption=function(y){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.h1(this.hostElement,"yt-poll-attachment-dismiss")):(y=this.repeat.indexForElement(y.target.parentNode),y!==null&&(this.splice("pollOptions",y,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.h1(this.hostElement,"yt-commentbox-post-enable"))))};
_.E.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.E.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var y=0,W=this.pollOptions.length;y<W;y++)if(this.pollOptions[y].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.E.getPollOptions=function(){return this.pollOptions};
_.E.setPollOptionsFromInputs=function(){for(var y=_.i6(this.hostElement).querySelectorAll(".poll-option-input"),W=0;W<y.length;W++)this.pollOptions[W]=y[W].value.trim()};
_.E.clearPollOptions=function(){var y=_.i6(this.hostElement).querySelectorAll(".poll-option-input");y=_.N(y);for(var W=y.next();!W.done;W=y.next())W.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.E.getSimpleString=function(y){return _.OT(y)};
_.E.updateValueFromBinding=function(y){if(y.target&&this.pollOptions){var W=Array.from(_.i6(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(y.target);if(W>=0){var V;this.pollOptions[W]=(V=y.detail.value)!=null?V:"";this.notifyPath("pollOptions."+W)}}};
Uj.prototype.dataChanged=Uj.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Uj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],Uj.prototype,"pollOptions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Uj.prototype,"hasMaxOptions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Uj.prototype,"enableCreationBox",void 0);
_.J([_.s$("#repeat"),_.R("design:type",GA)],Uj.prototype,"repeat",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Uj.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Uj);
_.Y(Uj,"ytd-poll-attachment",function(){if(YYm!==void 0)return YYm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YYm=y},{mode:2});var BlI;var JKK;var RqJ;var jQR;var ux=function(){return _.u.apply(this,arguments)||this};
_.p(ux,_.u);_.CM.Object.defineProperties(ux.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ux.prototype,"rendererBehaviors",void 0);_.J([_.q(),_.R("design:type",Object)],ux.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],ux.prototype,"focused",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("focused"),_.R("design:type",Object),_.R("design:paramtypes",[])],ux.prototype,"ariaSelected",null);_.J([_.Zp({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ux);
_.Y(ux,"yt-user-mention-suggestion-renderer",function(){if(jQR===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;RqJ===void 0&&(RqJ=document.createElement("template"));var w=RqJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);jQR=y}y=jQR;return y},{mode:2});var $p2;var n3J;var Sj=function(){var y=_.u.apply(this,arguments)||this;y.focusedSuggestionIndex=-1;return y};
_.p(Sj,_.u);_.E=Sj.prototype;_.E.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.E.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.E.setFocusedSuggestionIndex=function(y){!this.data||!this.data.suggestions||y<0||y>=this.data.suggestions.length||(this.focusedSuggestionIndex=y,y=this.getSuggestionId(y),this._setFocusedSuggestionId(y))};
_.E.advanceSuggestion=function(y){this.focusedSuggestionIndex===-1||y!==-1&&y!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+y),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.E.ensureSuggestionVisible=function(y){y=this.getSuggestionId(y);y=_.i6(this.hostElement).querySelector("[id="+y+"]");y!=null&&(y.offsetTop<this.hostElement.scrollTop?y.scrollIntoView(!0):y.offsetTop+y.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&y.scrollIntoView(!1))};
_.E.getSuggestionId=function(y){return"user-mention-suggestion-"+y};
_.E.onSuggestionTap=function(y){var W=_.h(y.model.item,zYA);this.ytRendererBehavior.logExplicitClick(W);_.h1(this.hostElement,"yt-user-mention-suggestion-selected",{data:W,index:y.model.index})};
_.E.onSuggestionMouseMove=function(y){y.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(y.model.index)};
_.E.isSuggestionFocused=function(y,W){return y===W};
_.E.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.E.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("focused-suggestion-id-changed",this.focusedSuggestionId))};
Sj.prototype.focusedSuggestionIdChangedForBinding=Sj.prototype.focusedSuggestionIdChangedForBinding;Sj.prototype.onDomChange=Sj.prototype.onDomChange;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Sj.prototype,"focusedSuggestionIndex",void 0);_.J([_.q({readOnly:!0}),_.R("design:type",String)],Sj.prototype,"focusedSuggestionId",void 0);
_.J([_.l6("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sj.prototype,"onDomChange",null);_.J([_.xA("focusedSuggestionId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sj.prototype,"focusedSuggestionIdChangedForBinding",null);_.J([_.Zp({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Sj);
_.Y(Sj,"yt-user-mention-suggestions-dropdown",function(){if(n3J===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;$p2===void 0&&($p2=document.createElement("template"));var w=$p2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);n3J=y}y=n3J;return y},{mode:2});var Di=function(){var y=_.u.apply(this,arguments)||this;y.suggestionsResponse=null;y.activeMention=null;y.selectionChangeListener=y.onSelectionChange.bind(y);y.handlesEnabled=_.e("enable_handles_in_mention_suggest_posts");y.handlesInMentionSuggestionsEnabled=_.e("handles_in_mention_suggest_posts");y.zeroPrefixMentionSuggestionEnabled=_.e("enable_zero_prefix_mention_suggestion_web");y.pendingQuery=null;y.flowNonce=null;return y};
_.p(Di,_.u);_.E=Di.prototype;_.E.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.E.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.E.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.E.hasSuggestions=function(y){return!!(y&&y.suggestions&&y.suggestions.length>0)};
_.E.onInput=function(){var y=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var W=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),V=this.activeMention.JSC$11221_getText().slice(-1)===" ",w=this.activeMention.JSC$11221_getText().slice(-2,-1)===" ",t="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11221_getText().slice(-2,
-1))>=0;t=this.zeroPrefixMentionSuggestionEnabled&&t;if(this.activeMention.isCollapsed()||(W||w||t)&&V)this.cancelActiveMention();else{var F=this.activeMention.JSC$11221_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.NM(this,"requestSuggestions",function(){y.requestSuggestions(F)},100)}}}};
_.E.onServiceRequestSent=function(y){y.stopPropagation()};
_.E.onServiceRequestCompleted=function(y){y.stopPropagation();y=y.detail.data;y.query&&(!this.pendingQuery||this.pendingQuery!==y.query)||!this.zeroPrefixMentionSuggestionEnabled&&y.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=y,this.hasSuggestions(y)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.E.onServiceRequestError=function(y){y.stopPropagation()};
_.E.onUserMentionSuggestionSelected=function(y){this.selectSuggestion(y.detail.data,y.detail.index)};
_.E.onSelectionChange=function(){if(this.activeMention){var y=_.k9(),W=this.activeMention.JSC$11221_containsRange(y);y=y&&this.containsHelper(this.dropdown,y.getContainer());W||y||this.cancelActiveMention()}};
_.E.containsHelper=function(y,W){var V;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)===!0)return y.contains(W);for(;W;){if(W===y)return!0;W=W instanceof ShadowRoot?W.host:W.parentNode}return!1};
_.E.maybeStartSuggest=function(){var y=_.k9();if(y&&y.isCollapsed()){var W=y.JSC$11221_getStartNode(),V=y.JSC$11221_getStartOffset();if(W instanceof Text&&!(V<1)){var w=W.textContent;!(w=w&&w.charAt(V-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(w)<0||(this.activeMention=_.Ww(W,V-1,y.JSC$11221_getEndNode(),y.JSC$11221_getEndOffset()),this.flowNonce=$y(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.E.updateActiveMention=function(){if(this.activeMention){var y=_.k9();y&&y.isCollapsed()&&(this.activeMention=_.Ww(this.activeMention.JSC$11221_getStartNode(),this.activeMention.JSC$11221_getStartOffset(),y.JSC$11221_getEndNode(),y.JSC$11221_getEndOffset()))}};
_.E.requestSuggestions=function(y){if(this.activeMention){var W={suggestions_query:y};this.pendingQuery=y;_.i5(this.hostElement,[this.suggestionsEndpoint,W])}};
_.E.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()};
_.E.focusPreviousSuggestion=function(y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),y.preventDefault())};
_.E.focusNextSuggestion=function(y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),y.preventDefault())};
_.E.selectFocusedSuggestion=function(y){if(this.hasSuggestions(this.suggestionsResponse)){var W=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.h(W,zYA)&&(this.selectSuggestion(_.h(W,zYA),this.dropdown.focusedSuggestionIndex),y.preventDefault())}};
_.E.selectSuggestion=function(y,W){if(y){var V=this.activeMention;if(V){var w=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&y.handle?_.Zx(w,"\u00a0\u2068@"+y.handle+"\u2069\u00a0"):this.handlesEnabled?_.Zx(w,"\u00a0"+y.displayName+"\u00a0"):_.Zx(w,"\u00a0@"+y.displayName+"\u00a0");tX(w,"/channel/"+y.channelId);w.classList.add("yt-formatted-string","yt-simple-endpoint");w.setAttribute("spellcheck","false");V.isCollapsed()||V.JSC$11221_removeContents();V.insertNode(w,!0);y=document.createTextNode(" ");
w.parentNode.insertBefore(y,w.nextSibling);window.getSelection().collapse(y,1);W={suggestionSelected:{suggestionIndex:W}};if(this.zeroPrefixMentionSuggestionEnabled){var t;W.suggestionSelected.isZeroPrefix=((t=this.suggestionsResponse)==null?void 0:t.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",W);this.cancelActiveMention();_.h1(this.hostElement,"yt-mention-inserted")}}};
_.E.getPositionTarget=function(y){return y&&y.getBrowserRangeObject()};
_.E.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.E.onFocusedSuggestionIdChanged=function(y){var W=_.vrL(this.hostElement)[0];W&&(y.detail.value?W.setAttribute("aria-activedescendant",y.detail.value):W.removeAttribute("aria-activedescendant"))};
_.E.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.E.logGELEvent=function(y,W){y={eventType:y,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};W&&(y=Object.assign(y,W));_.Hp("userMentionAutoCompleteBoxEvent",y)};
Di.prototype.onDomChange=Di.prototype.onDomChange;Di.prototype.onUserMentionSuggestionSelected=Di.prototype.onUserMentionSuggestionSelected;Di.prototype.onServiceRequestError=Di.prototype.onServiceRequestError;Di.prototype.onServiceRequestCompleted=Di.prototype.onServiceRequestCompleted;Di.prototype.onServiceRequestSent=Di.prototype.onServiceRequestSent;Di.prototype.onInput=Di.prototype.onInput;_.J([_.m(_.Bw),_.R("design:type",Object)],Di.prototype,"ironA11yKeysBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Di.prototype,"suggestionsEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],Di.prototype,"suggestionsResponse",void 0);_.J([_.q(),_.R("design:type",Object)],Di.prototype,"activeMention",void 0);_.J([_.s$("#dropdown"),_.R("design:type",Object)],Di.prototype,"dropdown",void 0);_.J([_.s$("#iron-dropdown"),_.R("design:type",Object)],Di.prototype,"ironDropdown",void 0);
_.J([_.l6("input"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Di.prototype,"onInput",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Di.prototype,"onServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Di.prototype,"onServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Di.prototype,"onServiceRequestError",null);_.J([_.l6("yt-user-mention-suggestion-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Di.prototype,"onUserMentionSuggestionSelected",null);
_.J([_.l6("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Di.prototype,"onDomChange",null);_.J([_.Zp({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Di);
_.Y(Di,"yt-user-mention-autosuggest-input",function(){if(JKK===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;BlI===void 0&&(BlI=document.createElement("template"));var w=BlI;V.call(W,w.content.cloneNode(!0),y.content.firstChild);JKK=y}y=JKK;return y},{mode:2});var lx=null;
_.a6({is:"ytd-commentbox",_template:function(){if(xpE!==void 0)return xpE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xpE=y},
behaviors:[_.nrR.YtHostElementBehavior,_.Bw,_.ik.YtActionHandlerBehavior,_.Em.YtComponentBehavior,_.ph.YtRendererstamperBehavior,_.AFz.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(y,W){return _.UB(y.entities,"aadcGuidelinesStateEntityPayload",W)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(y,W){return _.UB(y.entities,"commentboxStateEntity",W)},
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 _.FX}},
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:_.e("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.e("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",_.Dp(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(y){this.fire(y?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(y){this.set("submitButtonDisabled",void 0);this.clear();y&&this.computeIsEmojiButtonDisplayed_(y)&&(y=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&y.updateEmojiCategories()},
observePrefilledImage_:function(y,W,V){this.isValidPrefilledImage_(y,W,V)&&(this.prefilledAttachment_="image",this.prefilledImageData_=W,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(y,W){this.isValidPrefilledVideo_(y,W)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(y){y&&y.pollData&&y.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(y.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.uJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.Dp(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(y){y=y.detail;y=y.isCustomEmoji?y.shortcuts[0]:y.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,y);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var y=_.k9();if(y){y=y.getBrowserRangeObject();for(var W=y.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return y;W=W.parentNode}}y=this.getEditableTextArea_();y=_.yO(y,y.childNodes.length);y.select();return y.getBrowserRangeObject()},
insertTextWithEmojis_:function(y,W,V){(W=this.emojiManager.createDocumentFragment(W,!0,!1,V===void 0?!0:V))&&W.childNodes.length!==0&&(y.collapsed||y.deleteContents(),V=W.lastChild,y.insertNode(W),_.RdR(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var y=_.k9();if(y){var W=y.JSC$11221_getStartNode(),V=y.JSC$11221_getEndNode();if(mbb(W)&&mbb(V)){var w=y.JSC$11221_getStartOffset(),t;if(_.uP&&W.nodeType===Node.ELEMENT_NODE&&(t=_.RiQ(W)))_.yO(t,0).select();else{t=D6(W)?W:_.WM(W,D6);var F=D6(V)?V:_.WM(V,D6);if(t||F)if(y.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){y=!0;w===W.length&&(y=!1);if(lx==="end"||lx==="right")y=!1;W=W.parentNode;y=[].concat(_.GC(W.parentNode.childNodes)).indexOf(W)+(y?0:1);_.yO(W.parentNode,
y).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.Ww(V,y.JSC$11221_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),t.parentNode.insertBefore(W,t),_.Ww(V,y.JSC$11221_getEndOffset(),W,0).select()):F&&(F.nextSibling&&F.nextSibling.length>0?_.Ww(W,y.JSC$11221_getStartOffset(),F.nextSibling,1).select():(V=document.createTextNode("\u200b"),F.parentNode.insertBefore(V,F.nextSibling),_.Ww(W,y.JSC$11221_getStartOffset(),V,V.length).select()));
lx=null}}else lx=null}else lx=null},
leftKeyPressed_:function(){lx="left"},
rightKeyPressed_:function(){lx="right"},
endKeyPressed_:function(){lx="end"},
maybeDeleteChip_:function(){var y=Dbj(!0);if(y){var W=_.k9(),V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();_.Gn(V,W,y,y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var y=Dbj(!1);if(y){var W=_.k9(),V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();_.Gn(V,W,y,0).select()}},
maybeBackspaceChipWordMode_:function(y){var W=_.k9();if(W.isCollapsed()){var V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();var w=l$4(V,W,!0);w&&(_.Gn(V,W,w,0).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(y){var W=_.k9();if(W.isCollapsed()){var V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();var w=l$4(V,W,!1);w&&(_.Gn(V,W,w,w.childNodes.length).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
onTap_:function(y){if(!y.defaultPrevented&&(y.currentTarget.tagName==="YTD-COMMENTBOX"&&D6(y.target)&&y.preventDefault(),this.isEmojiPickerDisplayed)){var W=this.$$("#emojis"),V=this.$$("#emoji-button"),w=this.getEditableTextArea_();if((y=y.path?y.path:y.composedPath&&y.composedPath())&&!y.includes(W)&&!y.includes(w)&&!y.includes(V))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(y,W,V){return y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W!==void 0&&W.encryptedBlobId!==null&&W.sourceExternalVideoId!==null&&V!==void 0&&V.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(y,W){return y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!W&&!!W.videoRenderer&&!!W.videoRenderer.videoId},
isValidPrefilledAttachment_:function(y,W,V){return this.isValidPrefilledImage_(y,W,V)||this.isValidPrefilledVideo_(y,V)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.e("enable_multi_image_post_creation")){var y=this.$$("ytd-backstage-multi-image-select-renderer");y&&y.hasImages()&&y.cancel()}else(y=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&y.cancel();(y=this.$["poll-attachment"])&&this.hasPoll_&&y.clearPollOptions();(y=this.$["image-poll-attachment"])&&this.hasImagePoll_&&y.resetPollOptions();(y=this.$["quiz-attachment"])&&this.hasQuiz_&&y.resetQuizOptions();
(y=this.$["video-link-attachment"])&&this.hasVideo_&&y.cancel();(y=this.$["access-restrictions-selector"].firstElementChild)&&y.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 _.i6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.i6(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(y,W){y=qW4(y,this.emojiManager,W).cloneNode(!0);for(W=y.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var V=_.Xh();_.rAR(V,W);W=V.nextSibling;break;case "DIV":(V=W.lastChild)&&W.nextSibling&&_.bQ(_.Xh(),V);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.r4(_.Xh(),W);V&&V.nodeName==="BR"&&_.ku(V);V=W;W.hasChildNodes()?(W=W.firstChild,
_.bqQ(V)):(W=W.nextSibling,_.ku(V));break;default:W=W.nextSibling}return xbj(y)},
onAddImageError_:function(y){y.stopPropagation();this.errorMessage_=_.CO(y.detail)},
setTextAreaValue_:function(y){y||(y="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof y==="string"&&(y={runs:[{text:y}]});W.text=y},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();lx=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var y=this.getEditableTextArea_();y&&(_.yO(y,y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.yC("HTML_DIR")==="rtl"){var y=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";y.setAttribute("dir",W)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var y;return bHv((y=this.$["quiz-attachment"])==null?void 0:y.getExplanationText())||bHv(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var y=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(y=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(y,!0);this.updateCharCount_();this.setSubmitButton_();y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=y.scrollHeight>y.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:y})},
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(y){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(y)},
onPasteEmoji_:function(y){y.preventDefault();y.stopImmediatePropagation();y=y.clipboardData.getData("text/plain");this.insertText_(y,!1,!1)},
insertText_:function(y,W,V){W=W===void 0?!1:W;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&y){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(W&&this.emojiInput.offsetStartOfRangeBy(w,y.length),this.insertTextWithEmojis_(w,y,V),Mzv(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,y),this.updateSuggestionOffset_(w)))}},
setSubmitButton_:function(){if(this.data){var y=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",W=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(y||W){var V=this.getTextAreaValue().trim();W=V===this.previousText_;V=!V||this.aboveCharLimit_;y&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=this.aboveCharLimit_);this.submitButtonDisabled=
W||V||!this.getTextLength();y&&_.e("enable_post_scheduling")&&(this.submitButtonDisabled=W&&!this.scheduledPublishTimeSec_||V)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.OT,computeCreationBoxClass_:function(y){return y?"focused":"not-focused"},
computeFooterMessageClass_:function(y,W){return W?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(y,W){return W?W:y},
computeFooterMessageHidden_:function(y,W){return!W&&!y},
computePlaceholderText_:function(y,W,V){return(V==="video"||V==="image")&&(y==null?0:y.prefilledPlaceholderText)?y==null?void 0:y.prefilledPlaceholderText:W==="poll"||W==="image-poll"?y==null?void 0:y.pollPostPlaceholderText:W==="quiz"?y==null?void 0:y.quizPostPlaceholderText:W==="image"?y==null?void 0:y.imagePostPlaceholderText:y==null?void 0:y.placeholderText},
computeHideAttachmentButtons_:function(y,W,V,w){return y===void 0?!1:w&&this.getSimpleString(w)===this.getSimpleString(y.rateLimitErrorMessage)?!0:W!=="none"||V!=="none"||!y.videoLinkButton&&!y.pollButton&&!y.imagePollButton&&!y.quizButton&&!y.imageButton},
computeHideDismissableAttachment_:function(y){return y!=="image"&&y!=="video"},
computeHasVideo_:function(y){return y==="video"},
computeHasImage_:function(y){return y==="image"},
computeHasPoll_:function(y){return y==="poll"},
computeHasImagePoll_:function(y){return y==="image-poll"},
computeHasQuiz_:function(y){return y==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(y){return y&&y.backstageAttachment?y.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!y.backstageAttachment.quizRenderer&&!y.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(y){if(this.isValidPrefilledAttachment_(y.purpose,y.prefilledImageData,y.backstageAttachment))return y.backstageAttachment},
computeEditAttachment_:function(y){if(this.computePrefilledContent_(y)===void 0)return y.backstageAttachment},
computeAuthorThumbnailDimension_:function(y,W){return y&&!W?24:40},
computeImageUploadEndpoint_:function(y){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",y)},
computeRateLimitErrorCommands_:function(y){var W,V;return y==null?void 0:(W=y.advancedTierFeatures)==null?void 0:(V=W.rateLimit)==null?void 0:V.rateLimitCommands},
computeIsBackstageComment_:function(y){return!(!y||y!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(y){return this.get("submitButton.buttonRenderer.serviceEndpoint",y)||this.get("replyButton.buttonRenderer.serviceEndpoint",y)||this.get("postButton.buttonRenderer.serviceEndpoint",y)},
computeSubmitButtonOverride:function(){if(_.e("web_modern_buttons")){var y,W;return{segmentedPosition:this.dropdownSchedulePanel_||!((y=this.data)==null?0:(W=y.postOptionsMenu)==null?0:W.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.e("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(y,W){y=this.get("submitButton.buttonRenderer",y)||this.get("replyButton.buttonRenderer",y)||this.get("postButton.buttonRenderer",y);W&&(y=W);y&&(y=Object.assign({},y),y.serviceEndpoint=void 0,y.isDisabled=this.submitButtonDisabled);return y},
computeHasExternalLinksAccess_:function(y){if(_.e("enable_rfa_external_links")){var W,V,w;return(w=y==null?void 0:(W=y.advancedTierFeatures)==null?void 0:(V=W.externalLinks)==null?void 0:V.allowExternalLinks)!=null?w:!0}return!0},
computeIsEmojiButtonDisplayed_:function(y){return y.emojiButton&&y.emojiPicker&&y.emojiPicker.emojiPickerRenderer&&y.emojiPicker.emojiPickerRenderer.categories?y.emojiPicker.emojiPickerRenderer.categories.find(function(W){return W.emojiPickerCategoryRenderer?W.emojiPickerCategoryRenderer.emojiIds&&W.emojiPickerCategoryRenderer.emojiIds.length>0:W.emojiPickerUpsellCategoryRenderer?W.emojiPickerUpsellCategoryRenderer.emojis&&W.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(y){return y.charLimit?y.charLimit:null},
computeDropdownSchedulingPanel_:function(y,W){if(y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W)return W},
computeInlineSchedulingPanel_:function(y,W){if(y==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&W)return W},
computeHideAuthorThumbnail_:function(y,W){return y||this.computeUseIdentityChip_(W)},
computeHideIdentityChipRenderer_:function(y,W){return y||!this.computeUseIdentityChip_(W)},
computeUseIdentityChip_:function(y){return!!y&&!!y.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(y){var W,V,w,t;(y==null?0:(W=y.detail)==null?0:(V=W.endpoint)==null?0:V.ypcGetOffersEndpoint)||(y==null?0:(w=y.detail)==null?0:(t=w.endpoint)==null?0:t.ypcOffersEndpoint)?(y.stopPropagation(),_.i5(this,[y.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",y)&&(y.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(y){this.addedAttachment="video";this.selectedVideoId_=y.detail.videoId},
commentboxStateEntityChanged_:function(y){var W=this;(y==null?void 0:y.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(y==null?void 0:y.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){W.focus()})},
onYtServiceRequestSent_:function(y,W){if(W.actions)for(y=_.N(W.actions),W=y.next();!W.done;W=y.next())W.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(y){this.isLoading=!1;var W=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",y),V,w,t,F=y==null?void 0:(V=y.detail)==null?void 0:(w=V.data)==null?void 0:(t=w.actionResult)==null?void 0:t.commentboxStateEntityKey;if(W)this.errorMessage_=W;else if(F){var I;this.dismissData_=y==null?void 0:(I=y.detail)==null?void 0:I.data;this.commentboxStateKey_=F}else{this.clear();var P;this.fire("yt-commentbox-dismiss",y==null?void 0:(P=y.detail)==
null?void 0:P.data)}},
onYtServiceRequestError_:function(y){y.stopPropagation();this.isLoading=!1;var W,V;if(((W=this.data)==null?void 0:W.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((V=this.data)==null?void 0:V.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(W=this.get("detail.error.args",y)||[],W.length>1&&W[1].message){this.handlePostsServiceRequestError_(W[1].message);return}(y=this.get("detail.error.message",y))?this.errorMessage_=this.data.errorMessage||_.CO(y):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(y){if(_.e("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var W=_.N(this.rateLimitErrorCommands),V=W.next();!V.done;V=W.next())if(V=V.value,V.errorLabel===y){_.kc(V.command,this.hostElement);return}this.errorMessage_=_.CO(y)},
submitIfNotBackstagePost_:function(y){if(!this.isBackstagePost)this.onSubmit_(y)},
onSubmit_:function(y){var W=this,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l;return _.g(function(x){switch(x.nextAddress){case 1:y.stopPropagation();if(!W.serviceEndpoint||!W.isValidInput_())return x.return();if(W.shouldShowPostAadcNotice_())return W.showPostAadcNotice_(),x.return();if(W.shouldShowCommentAadcNotice_())return W.showCommentAadcNotice_(),x.return();if(!(W.$$("ytd-backstage-multi-image-select-renderer")&&W.hasImage_&&_.e("enable_multi_image_post_creation"))){x.jumpTo(2);break}V=W.$$("ytd-backstage-multi-image-select-renderer");
return x.yield(V.getAllUploadStatuses(),3);case 3:w=x.yieldResult;if(!w)return x.return();t=_.N(w);for(F=t.next();!F.done;F=t.next())if(I=F.value,I.encryptedBlobId===void 0)return W.isLoading=!1,C=P=void 0,W.errorMessage_=(C=(P=W.imageUploadEndpoint_)==null?void 0:P.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?C:null,x.return();return x.return(W.submitForm_(void 0,void 0,void 0,void 0,V.images,W.taggedVideoId_));case 2:if(!W.hasImagePoll_||!W.$["image-poll-attachment"]){x.jumpTo(4);
break}return x.yield(W.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:d=x.yieldResult;if(!d)return x.return();L=_.N(d);for(z=L.next();!z.done;z=L.next())if(c=z.value,!c.encryptedBlobId)return W.isLoading=!1,K=void 0,W.errorMessage_=(K=W.data.errorMessage)!=null?K:null,x.return();case 4:U=(f=W.$$("ytd-backstage-image-select-renderer"))&&f.uploadPromise(),l=W.getSharedPostId_(),U?U.then(function(){W.submitForm_.apply(W,_.GC(_.Ve.apply(0,arguments)))}).catch(function(B){W.isLoading=!1;
W.errorMessage_=_.CO(B.message)}):W.selectedVideoId_?W.submitForm_(void 0,W.selectedVideoId_):W.prefilledAttachment_==="image"?W.submitForm_(W.prefilledImageData_.encryptedBlobId,void 0,void 0,W.prefilledImageData_.sourceExternalVideoId,void 0,W.taggedVideoId_):W.prefilledAttachment_==="video"?W.submitForm_(void 0,W.data.backstageAttachment.videoRenderer.videoId):l?W.submitForm_(void 0,void 0,l):W.taggedVideoId_!==void 0?W.submitForm_(void 0,void 0,void 0,void 0,void 0,W.taggedVideoId_):W.submitForm_(),
_.B7(x)}})},
openSchedulingPanel:function(y){y&&y.scheduleButton&&y.scheduleButton.buttonRenderer&&(this.scheduleButton_=y.scheduleButton.buttonRenderer);y&&y.dateTimePicker&&this.set("data.schedulingDateTimePicker",y.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(y){y.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(y){y.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(y){y.stopPropagation();y.detail.alertMessage&&(this.alertMessage_=y.detail.alertMessage)},
onImageSelected_:function(y){y.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(y){y.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(y){y.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(y.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(y){y.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(y){var W=this.$["video-link-attachment"];W&&W.onLaunchVideoPicker(y)},
onAttachmentDismiss_:function(y){y.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"&&_.e("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.e("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 y;if(this.addedAttachment==="image-poll"&&((y=this.$["image-poll-attachment"])==null||!y.isValid()))return!1;var W;if(this.addedAttachment==="quiz"&&((W=this.$["quiz-attachment"])==null||!W.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;y=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(y=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")y=!0;return y||!!this.getTextAreaValue().trim()},
submitForm_:function(y,W,V,w,t,F){var I=this.getTextAreaValue().trim(),P={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&I===this.previousText_&&(I=void 0);I!==void 0&&(P.comment_text=I);this.isLoading=!0;F!=void 0&&(P.tagged_video_id=F);y?(P.image_blob_id=y,this.imagePreviewCoordinates_&&(P.image_preview_coordinates=this.imagePreviewCoordinates_)):W?P.attached_video_id=W:V?P.shared_post_id=V:t&&t.length>0&&(P.images_data=t.map(function(C){return{encryptedBlobId:C.encryptedBlobId,
previewCoordinates:C.previewCoordinates}}));
w&&(P.source_video_id=w);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(P.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(P.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(P.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.e("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(P.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.e("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(P.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.i5(this,[this.serviceEndpoint,P])},
onIsInputFocusChanged_:function(y,W){y?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(y){var W=this.getEditableTextArea_();[].concat(_.GC(y.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(w){W.appendChild(document.createTextNode(w))})});
y.preventDefault()},
preventDefault_:function(y){y.preventDefault()},
onSuggestionInsert_:function(y){this.insertTextWithEmojis_(y.detail.range,y.detail.text)},
onEmojiSuggestionClick_:function(y){this.emojiInput.insertSuggestion(y.detail)},
computeSubmitButtonClass_:function(y,W){return!W||y?"":"with-options"},
updateSuggestionOffset_:function(y){if(this.emojiInput&&_.i6(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,V=y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-V)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;y=y.getBoundingClientRect().left-W;_.i6(this.emojiInput).querySelector("#dropdown").style.marginLeft=y+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(y){if(_.e("enable_post_scheduling")&&this.data&&this.data.purpose){y=y.detail;if(Math.floor(Date.now()/1E3)>=y)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var W=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(W)||W!==y?this.scheduledPublishTimeSec_=y:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=y;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var y=["image-button","image-poll-button","poll-button"];_.e("enable_quiz_creation")&&y.push("quiz-button");_.e("auto_convert_posts_video_tag")||y.push("video-link-button");return y},
getButtonRenderer:function(y,W){if(y)switch(W){case "video-link-button":var V;return((V=y.videoLinkButton)==null?void 0:V.buttonRenderer)||void 0;case "image-button":var w;return((w=y.imageButton)==null?void 0:w.buttonRenderer)||void 0;case "poll-button":var t;return((t=y.pollButton)==null?void 0:t.buttonRenderer)||void 0;case "image-poll-button":var F;return((F=y.imagePollButton)==null?void 0:F.buttonRenderer)||void 0;case "quiz-button":var I;return((I=y.quizButton)==null?void 0:I.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var y;return(y=this.data)==null||!y.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var y,W;return!((y=this.data)==null||!y.openAadcDialog)&&!((W=this.aadcGuidelinesState_)==null||!W.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.yC("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var y;((y=this.data)==null?0:y.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Zb("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(y){y.clickTrackingParams&&_.BC().clickCommand(y);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ow(this,"yt-close-popup-action")},
onHideIdentityChip:function(y){var W;this.set("data.placeholderText",(W=y.hideIdentityChipAction)==null?void 0:W.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var xw=function(){var y=_.u.apply(this,arguments)||this;y.isOpen=!1;y.modern=_.e("web_modern_buttons");y.roundedContainer=!0;y.dropdownButtonOverride=_.e("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;y.inPopupContainer=!1;y.isCommentboxLoading=!1;var W=["image-button","image-poll-button","poll-button"];_.e("enable_quiz_creation")&&W.push("quiz-button");_.e("auto_convert_posts_video_tag")||W.push("video-link-button");y.attachmentButtonIds=W;y.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 y};
_.p(xw,_.u);_.E=xw.prototype;_.E.computeButtonOverride=function(){var y;return((y=this.data)==null?0:y.postOptionsMenu)&&_.e("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.E.configureRendererStamper=function(){var y={"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]]"}}}}};_.e("auto_convert_posts_video_tag")||(y["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return y};
_.E.ready=function(){var y=this,W=_.i6(this.hostElement).querySelector("#placeholder-area"),V=function(w){y.onOpen(w)};
W.addEventListener("tap",V);W.addEventListener("keypress",V)};
_.E.showButtonEduTooltip=function(){var y,W,V,w,t,F,I;if(_.e("enable_quiz_creation")&&((y=this.data)==null?0:(W=y.quizButton)==null?0:(V=W.buttonRenderer)==null?0:(w=V.hint)==null?0:(t=w.hintRenderer)==null?0:(F=t.content)==null?0:(I=F.bubbleHintRenderer)==null?0:I.text)&&(_.Kc.getInstance(),y=pc(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(y==null?void 0:
y.length)>0)){this.ytComponentBehavior.resolveCommand(y[0],{form:{element:this.quizButton}});return}var P;if((P=this.data)==null?0:P.imagePollButtonTooltip)if(_.Kc.getInstance(),P=pc(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(P==null?void 0:P.length)>0){this.ytComponentBehavior.resolveCommand(P[0],{form:{element:this.imagePollButton}});return}var C;_.e("enable_multi_image_post_creation")&&
((C=this.data)==null?0:C.multiImageButtonTooltip)&&(_.Kc.getInstance(),C=pc(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(C==null?void 0:C.length)>0&&this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.imageButton}}))};
_.E.onCreatePollAction=function(y){_.h(y,hSI)&&(this.JSC$15665_commentbox.addedAttachment="poll",this.openDialog())};
_.E.onAddVideoLinkAction=function(y){if(_.h(y,L$J))this.JSC$15665_commentbox.onAddVideoLink(y)};
_.E.onShowSchedulingPanelCommand=function(y){(y=_.h(y,$_i))&&this.openSchedulingPanel(y)};
_.E.onCreateImagePollCommand=function(y){_.h(y,go6)&&(this.JSC$15665_commentbox.openImagePollComponent(),this.openDialog())};
_.E.onCreateQuizCommand=function(y){_.h(y,PIs)&&(this.JSC$15665_commentbox.openQuizComponent(),this.openDialog())};
_.E.openSchedulingPanel=function(y){_.e("enable_post_scheduling")&&(this.openDialog(),this.JSC$15665_commentbox.openSchedulingPanel(y))};
_.E.onCreateCommentAction=function(y){this.get("createCommentAction.contents",y)&&(this.JSC$15665_commentbox.clear(),this.closeDialog())};
_.E.onOpen=function(y){y instanceof KeyboardEvent&&y.type==="keypress"&&y.keyCode!==13&&y.keyCode!==32||(this.data.prepareAccountEndpoint?_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.E.onYtCommentboxDismiss=function(){this.closeDialog()};
_.E.onYtCommentboxLoadingStart=function(y){y.stopPropagation();this.isCommentboxLoading=!0};
_.E.onYtCommentboxLoadingEnd=function(y){y.stopPropagation();this.isCommentboxLoading=!1};
_.E.onYtVideoLinkButtonCancel=function(y){y.stopPropagation();this.onOpen(y)};
_.E.onYtVideoLinkSelected=function(y){y.stopPropagation();this.onOpen(y)};
_.E.onIronSelect=function(y){y.stopPropagation();y.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=y.detail.item.value&&(this.accessRestriction?(this.accessRestriction=y.detail.item.value,this.onOpen(y)):this.accessRestriction=y.detail.item.value)};
_.E.onYtNavigate=function(y){this.get("detail.endpoint.backstageImageUploadEndpoint",y)&&(this.JSC$15665_commentbox.addedAttachment="image",this.JSC$15665_commentbox.submitButtonDisabled=!0,this.onOpen(y))};
_.E.onRequestSent=function(y){if(_.e("web_button_rework"))for(var W=_.N(y.detail),V=W.next();!V.done;V=W.next())_.h(V.value,KBi)&&(this.JSC$15665_commentbox.addedAttachment="image",this.JSC$15665_commentbox.submitButtonDisabled=!0,this.onOpen(y))};
_.E.openDialog=function(){this.JSC$15665_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15665_commentbox.focus()};
_.E.onPopupClosed=function(){_.Kc.getInstance()};
_.E.computeCreationDisabled=function(y){return!!y};
_.E.computeIsCreationDialog=function(y){return!!y&&y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.E.computeDisabledPostButton=function(y){if(!y)return null;y.isDisabled=!0;return y};
_.E.computeIsCreationDialogWithHeader=function(y){return!this.inPopupContainer&&!!y&&!!y.authorText&&y.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.E.computeIsHeaderHidden=function(y,W){return!y||W};
_.E.computeDropdownRendererClasses=function(y){return y?["text-secondary-style"]:[]};
_.E.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var y=_.i6(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;y&&y.reset()};
xw.prototype.onPopupClosed=xw.prototype.onPopupClosed;xw.prototype.onRequestSent=xw.prototype.onRequestSent;xw.prototype.onYtNavigate=xw.prototype.onYtNavigate;xw.prototype.onIronSelect=xw.prototype.onIronSelect;xw.prototype.onYtVideoLinkSelected=xw.prototype.onYtVideoLinkSelected;xw.prototype.onYtVideoLinkButtonCancel=xw.prototype.onYtVideoLinkButtonCancel;xw.prototype.onYtCommentboxLoadingEnd=xw.prototype.onYtCommentboxLoadingEnd;xw.prototype.onYtCommentboxLoadingStart=xw.prototype.onYtCommentboxLoadingStart;
xw.prototype.onYtCommentboxDismiss=xw.prototype.onYtCommentboxDismiss;xw.prototype.showButtonEduTooltip=xw.prototype.showButtonEduTooltip;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],xw.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xw.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xw.prototype,"isOpen",void 0);_.J([_.q({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],xw.prototype,"buttonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xw.prototype,"modern",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xw.prototype,"roundedContainer",void 0);_.J([_.q(),_.R("design:type",Object)],xw.prototype,"dropdownButtonOverride",void 0);_.J([_.q({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.R("design:type",Boolean)],xw.prototype,"creationDisabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],xw.prototype,"enableCreationBox",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.R("design:type",Boolean)],xw.prototype,"isCreationDialog",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xw.prototype,"inPopupContainer",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.R("design:type",Boolean)],xw.prototype,"isCreationDialogWithHeader",void 0);_.J([_.q(),_.R("design:type",Object)],xw.prototype,"accessRestriction",void 0);
_.J([_.q({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.R("design:type",Array)],xw.prototype,"dropdownRendererClasses",void 0);_.J([_.q(),_.R("design:type",Object)],xw.prototype,"isCommentboxLoading",void 0);_.J([_.q(),_.R("design:type",Array)],xw.prototype,"attachmentButtonIds",void 0);_.J([_.s$("#image-button"),_.R("design:type",HTMLElement)],xw.prototype,"imageButton",void 0);
_.J([_.s$("#image-poll-button"),_.R("design:type",HTMLElement)],xw.prototype,"imagePollButton",void 0);_.J([_.s$("#quiz-button"),_.R("design:type",HTMLElement)],xw.prototype,"quizButton",void 0);_.J([_.s$("#commentbox"),_.R("design:type",Object)],xw.prototype,"JSC$15665_commentbox",void 0);_.J([_.xA("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xw.prototype,"showButtonEduTooltip",null);
_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtCommentboxDismiss",null);_.J([_.l6("yt-commentbox-loading-start"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtCommentboxLoadingStart",null);
_.J([_.l6("yt-commentbox-loading-end"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtCommentboxLoadingEnd",null);_.J([_.l6("yt-video-link-button-cancel"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtVideoLinkButtonCancel",null);
_.J([_.l6("yt-video-link-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtVideoLinkSelected",null);_.J([_.l6("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onIronSelect",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onYtNavigate",null);
_.J([_.l6("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onRequestSent",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xw.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],xw);
_.Y(xw,"ytd-backstage-post-dialog-renderer",function(){if(v3A!==void 0)return v3A;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return v3A=y},{mode:1});var HLE;var XJA;var kw=function(){return _.u.apply(this,arguments)||this};
_.p(kw,_.u);_.E=kw.prototype;_.E.computeHeartButtonStyle=function(y){return(y==null?0:y.styleType)?y.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.E.onYtButtonTap=function(){if(this.data.isEnabled){var y=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(y=this.getEndpoint(y))&&_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})}else(y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(y)};
_.E.toggle=function(y){this.set("data.isHearted",y!==void 0?y:!this.data.isHearted)};
_.E.getEndpoint=function(y){var W,V=(W=this.data)==null?void 0:W.heartEndpoint,w;W=(w=this.data)==null?void 0:w.unheartEndpoint;if(V&&W)return y?W:V};
_.E.computeButtonAccessibility=function(y,W){var V,w,t=y==null?void 0:(V=y.heartedAccessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label,F,I;y=y==null?void 0:(F=y.unheartedAccessibility)==null?void 0:(I=F.accessibilityData)==null?void 0:I.label;return W?t:y};
_.CM.Object.defineProperties(kw.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 y;return _.e("kevlar_system_icons")&&!((y=this.data)==null||!y.isHearted)}}});
kw.prototype.onYtButtonTap=kw.prototype.onYtButtonTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],kw.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kw.prototype,"data",void 0);_.J([_.M("data.isHearted"),_.R("design:type",Object),_.R("design:paramtypes",[])],kw.prototype,"heartTooltip",null);
_.J([_.M("data.isHearted"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],kw.prototype,"iconFilled",null);_.J([_.q({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.R("design:type",String)],kw.prototype,"buttonAccessibility",void 0);_.J([_.q({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],kw.prototype,"heartButtonStyle",void 0);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kw.prototype,"onYtButtonTap",null);_.J([_.k({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],kw);
_.Y(kw,"ytd-creator-heart-renderer",function(){if(XJA!==void 0)return XJA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return XJA=y},{mode:1});var sj=function(){var y=_.u.apply(this,arguments)||this;y.hasCreatorReply=!1;y.buttonOverrides={size:"S",iconPosition:"icon-only"};y.replyButtonOverrides={size:"S",type:"text"};y.forceIconButton=!_.e("web_modern_buttons");y.modern=_.e("web_modern_buttons");y.buttonTooltipPosition="bottom";y.systemIcons=_.e("kevlar_system_icons");y.replyDialog=null;return y};
_.p(sj,_.u);_.E=sj.prototype;
_.E.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]]"}}}}}};
_.E.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.E.dataChange=function(){this.replyDialog&&_.i6(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var y,W,V;this.isLiked=this.systemIcons&&!!((y=this.data)==null?0:(W=y.likeButton)==null?0:(V=W.toggleButtonRenderer)==null?0:V.isToggled)};
_.E.computeShowVoteCountBeginning=function(y,W){return y===void 0||W===void 0?!0:y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.E.computeShowVoteCountEnd=function(y,W){return y===void 0||W===void 0?!0:y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.E.computeShowCommentCount=function(y,W){return y===void 0||W===void 0?!0:y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.E.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.E.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.E.showReplyDialog=function(y){y&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.i6(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=y,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.E.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.E.onRequestSent=function(y){if(_.e("web_button_rework")){y=_.N(y.detail);for(var W=y.next();!W.done;W=y.next())(W=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",W.value))&&this.showReplyDialog(W)}};
_.E.onYtNavigate=function(y){var W,V;(y=(W=_.h(y.detail.endpoint,_.i8Q))==null?void 0:(V=W.dialog)==null?void 0:V.commentReplyDialogRenderer)&&this.showReplyDialog(y)};
_.E.onYtServiceRequestSent=function(y,W){y.stopPropagation();if(W.actions)for(y=0;y<W.actions.length;y++){var V=_.h(W.actions[y],TDI);V&&this.handleUpdateCommentVoteAction(V)}};
_.E.handleUpdateCommentVoteAction=function(y){this.voteCount=y.voteCount||_.CO("0");y.voteStatus==="LIKE"?this.JSC$15676_ytdDislikeToggleButtonRenderer.toggle(!1):y.voteStatus==="DISLIKE"?this.JSC$15676_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15676_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15676_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.E.computeReplyButtonHidden=function(y){return y};
_.E.computeReplyButtonBeginning=function(y){return(y==null?0:y.replyButton)&&y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?y.replyButton:void 0};
_.E.computeReplyButtonEnd=function(y){return(y==null?0:y.replyButton)&&y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?y.replyButton:void 0};
_.E.computeActionButtonStyle=function(y){return(y==null?0:y.style)?y.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.E.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.E.onYtToggleButton=function(y){var W,V;this.isLiked=this.systemIcons&&!!((W=y.detail)==null?0:(V=W.actions)==null?0:V.like)};
sj.prototype.onYtToggleButton=sj.prototype.onYtToggleButton;sj.prototype.onButtonTooltipPositionChanged=sj.prototype.onButtonTooltipPositionChanged;sj.prototype.onYtServiceRequestSent=sj.prototype.onYtServiceRequestSent;sj.prototype.onYtNavigate=sj.prototype.onYtNavigate;sj.prototype.onRequestSent=sj.prototype.onRequestSent;sj.prototype.onYtCommentboxDismiss=sj.prototype.onYtCommentboxDismiss;sj.prototype.dataChange=sj.prototype.dataChange;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"voteCount",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"commentCount",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"replyThumbnail",void 0);
_.J([_.q(),_.R("design:type",Object)],sj.prototype,"hasCreatorReply",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sj.prototype,"enableCreationBox",void 0);_.J([_.q({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],sj.prototype,"actionButtonsStyle",void 0);_.J([_.q({computed:"computeReplyButtonBeginning(data)"}),_.R("design:type",Object)],sj.prototype,"replyButtonBeginning",void 0);
_.J([_.q({computed:"computeReplyButtonEnd(data)"}),_.R("design:type",Object)],sj.prototype,"replyButtonEnd",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"buttonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"replyButtonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"forceIconButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sj.prototype,"useCommentIcon",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],sj.prototype,"modern",void 0);_.J([_.q(),_.R("design:type",Object)],sj.prototype,"buttonTooltipPosition",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],sj.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sj.prototype,"isLiked",void 0);_.J([_.s$("ytd-button-renderer"),_.R("design:type",Object)],sj.prototype,"ytdReplyButtonRenderer",void 0);
_.J([_.s$("#like-button"),_.R("design:type",Object)],sj.prototype,"JSC$15676_ytdLikeToggleButtonRenderer",void 0);_.J([_.s$("#dislike-button"),_.R("design:type",Object)],sj.prototype,"JSC$15676_ytdDislikeToggleButtonRenderer",void 0);_.J([_.s$("#reply-dialog"),_.R("design:type",HTMLElement)],sj.prototype,"replyDialogElement",void 0);_.J([_.s$("#reply-button"),_.R("design:type",HTMLElement)],sj.prototype,"replyButtonElement",void 0);
_.J([_.s$("#reply-button-end"),_.R("design:type",HTMLElement)],sj.prototype,"replyButtonEndElement",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sj.prototype,"dataChange",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sj.prototype,"onYtCommentboxDismiss",null);
_.J([_.l6("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sj.prototype,"onRequestSent",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sj.prototype,"onYtNavigate",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],sj.prototype,"onYtServiceRequestSent",null);_.J([_.xA("buttonTooltipPosition"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sj.prototype,"onButtonTooltipPositionChanged",null);
_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sj.prototype,"onYtToggleButton",null);_.J([_.k({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],sj);
_.Y(sj,"ytd-comment-action-buttons-renderer",function(){if(HLE!==void 0)return HLE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HLE=y},{mode:1});var aji;var A3=function(){return _.u.apply(this,arguments)||this};
_.p(A3,_.u);A3.prototype.focus=function(){_.i6(this.hostElement).querySelector("#commentbox").focus()};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],A3.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],A3.prototype,"zeroStepChannelCreationRenderer",void 0);_.J([_.k({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],A3);
_.Y(A3,"ytd-comment-dialog-renderer",function(){if(aji!==void 0)return aji;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return aji=y},{mode:1});var Guz;var Yw=function(){var y=_.u.apply(this,arguments)||this;y.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.e("enable_web_delhi_icons")};y.replyButtonOverrides={size:"S",type:"text"};return y};
_.p(Yw,_.u);_.E=Yw.prototype;_.E.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.E.detached=function(){this.replyBox&&this.replyBox.remove()};
_.E.showReplyDialog=function(y){if(y){var W=this.replyBox;W||(W=document.createElement("ytd-comment-reply-dialog-renderer"),W.id="replybox",_.i6(this.replyDialogDiv).appendChild(W));W.data=y;this.replyDialogDiv.hidden=!1;W.openDialog()}};
_.E.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.E.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var y,W=_.h((y=this.toolbarSurface)==null?void 0:y.subscribersOnlyDisclaimerSnackbarCommand,_.wL);W&&_.h1(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:W})}};
_.E.onYtServiceRequestSent=function(y,W){y.stopPropagation();if(W.actions)for(var V=0;V<W.actions.length;V++){var w=_.h(W.actions[V],TDI);w?this.handleUpdateCommentVoteAction(w):y.target===this.heartButton&&this.toggleHeartState()}};
_.E.handleUpdateCommentVoteAction=function(y){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.Z6("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:y.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":y.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.E.toggleHeartState=function(){var y;(y=this.toolbarState)!=null&&y.key&&this.ytdReduxBehavior.dispatch(_.Z6("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.CM.Object.defineProperties(Yw.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return(((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(W=this.toolbarData)==null?void 0:W.likeCountLiked:(V=this.toolbarData)==null?void 0:V.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand)!==void 0&&!_.e("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W=_.h((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand,_.wL),V,w,t,F,I,P,C,d,L;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:W!=null?W:_.h((t=this.toolbarSurface)==null?void 0:t.likeCommand,_.wL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.h((F=this.toolbarSurface)==null?void 0:F.unlikeCommand,_.wL),defaultCommand:this.isVisiblyDisabled?_.h((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.wL):void 0,defaultTooltip:(P=this.toolbarData)==null?void 0:P.likeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:C.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(d=this.toolbarData)==null?void 0:d.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W=_.h((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand,_.wL),V,w,t,F,I,P,C,d,L,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.h((t=this.toolbarSurface)==null?void 0:t.dislikeCommand,_.wL),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.h((F=this.toolbarSurface)==null?void 0:F.undislikeCommand,_.wL),defaultCommand:this.isVisiblyDisabled?_.h((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.wL):void 0,defaultTooltip:(P=this.toolbarData)==null?void 0:P.dislikeInactiveTooltip,toggledTooltip:(C=this.toolbarData)==null?void 0:
C.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(d=this.toolbarSharedData)==null?void 0:d.dislikeReplyButtonA11y:(L=this.toolbarSharedData)==null?void 0:L.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,V;if(((y=this.toolbarState)==null?void 0:y.heartState)!==void 0&&((W=this.toolbarState)==null?void 0:W.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((V=this.toolbarState)==null?void 0:V.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var w,t,F,I,P,C,d,L,z,c,K,f,U,l;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(w=this.toolbarData)==null?void 0:w.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((F=this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((I=this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.h((C=this.toolbarSurface)==null?void 0:C.heartCommand,
_.wL),unheartEndpoint:this.isVisiblyDisabled?void 0:_.h((d=this.toolbarSurface)==null?void 0:d.unheartCommand,_.wL),disabledEndpoint:this.isVisiblyDisabled?_.h((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand,_.wL):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(z=this.toolbarData)==null?void 0:z.heartActiveTooltip,unheartedTooltip:(c=this.toolbarData)==null?void 0:c.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((K=
this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(f=this.toolbarSharedData)==null?void 0:f.unheartButtonA11y:(U=this.toolbarSharedData)==null?void 0:U.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.toolbarSurface)==null||!y.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(y=this.commentStrings)==null?void 0:y.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.h((W=this.toolbarSurface)==null?void 0:W.replyCommand,_.wL),command:this.isVisiblyDisabled?_.h((V=this.toolbarSurface)==null?
void 0:V.commentDisabledActionCommand,_.wL):this.isSubsOnlyCommentsIneligibleUser?_.h((w=this.toolbarSurface)==null?void 0:w.subscribersOnlySnackbarCommand,_.wL):void 0}}}});
Yw.prototype.onYtServiceRequestSent=Yw.prototype.onYtServiceRequestSent;Yw.prototype.hideReplyDialogDiv=Yw.prototype.hideReplyDialogDiv;_.J([_.q(),_.R("design:type",Object)],Yw.prototype,"commentStrings",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yw.prototype,"isReply",void 0);_.J([_.q(),_.R("design:type",Object)],Yw.prototype,"toolbarData",void 0);_.J([_.q(),_.R("design:type",Object)],Yw.prototype,"toolbarSharedData",void 0);
_.J([_.q(),_.R("design:type",String)],Yw.prototype,"toolbarStateKey",void 0);_.J([_.q(),_.R("design:type",String)],Yw.prototype,"toolbarSurfaceKey",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Yw.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Yw.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.LK),_.R("design:type",Object)],Yw.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.s$("#reply-dialog"),_.R("design:type",HTMLElement)],Yw.prototype,"replyDialogDiv",void 0);_.J([_.s$("#replybox"),_.R("design:type",Object)],Yw.prototype,"replyBox",void 0);_.J([_.s$("ytd-creator-heart-renderer"),_.R("design:type",Object)],Yw.prototype,"heartButton",void 0);_.J([_.q({selector:function(y,W){return _.UB(y.entities,"engagementToolbarStateEntityPayload",W)},
selectorArgs:["toolbarStateKey"]}),_.R("design:type",Object)],Yw.prototype,"toolbarState",void 0);_.J([_.q({selector:mQL,selectorArgs:["toolbarSurfaceKey"]}),_.R("design:type",Object)],Yw.prototype,"toolbarSurface",void 0);_.J([_.q(),_.R("design:type",Object)],Yw.prototype,"buttonOverrides",void 0);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yw.prototype,"hideReplyDialogDiv",null);
_.J([_.M("toolbarData","toolbarState"),_.R("design:type",String),_.R("design:paramtypes",[])],Yw.prototype,"likeCount",null);_.J([_.M("likeCount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"showLikeCount",null);_.J([_.M("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"isVisiblyDisabled",null);_.J([_.M("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.J([_.M("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"isSubsOnlyCommentsEligibleUser",null);_.J([_.M("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"hasPrepareAccountCommand",null);_.J([_.M("toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yw.prototype,"likeToggleButtonRenderer",null);
_.J([_.M("isReply","toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yw.prototype,"dislikeToggleButtonRenderer",null);_.J([_.M("toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yw.prototype,"creatorHeartSupportedRenderer",null);_.J([_.M("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Yw.prototype,"hasReplyCommand",null);
_.J([_.M("toolbarSurface","commentStrings","isVisiblyDisabled"),_.R("design:type",Object),_.R("design:paramtypes",[])],Yw.prototype,"replyButtonRenderer",null);_.J([_.q(),_.R("design:type",Object)],Yw.prototype,"replyButtonOverrides",void 0);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],Yw.prototype,"onYtServiceRequestSent",null);_.J([_.k({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Yw);
_.Y(Yw,"ytd-comment-engagement-bar",function(){if(Guz!==void 0)return Guz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Guz=y},{mode:1});var rKm;var B6=function(){return _.u.apply(this,arguments)||this};
_.p(B6,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],B6.prototype,"data",void 0);_.J([_.k({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],B6);
_.Y(B6,"ytd-comment-inline-thumbnail-renderer",function(){if(rKm!==void 0)return rKm;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return rKm=y},{mode:1});var bLf;var J3=function(){return _.u.apply(this,arguments)||this};
_.p(J3,_.u);J3.prototype.onMessageTap=function(){if(this.onTapCommand){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);y&&this.ytdOpenPopupBehavior.openPopup(y)}};
_.CM.Object.defineProperties(J3.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return(y=this.data)==null?void 0:(W=y.button)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.command}}});
_.J([_.m(_.LK),_.R("design:type",Object)],J3.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],J3.prototype,"data",void 0);_.J([_.M("data.button.buttonRenderer.command"),_.R("design:type",Object),_.R("design:paramtypes",[])],J3.prototype,"onTapCommand",null);_.J([_.k({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],J3);
_.Y(J3,"ytd-comment-pause-composer-renderer",function(){if(bLf!==void 0)return bLf;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return bLf=y},{mode:1});var QQA;var ZLm;var R7=function(){var y=_.u.apply(this,arguments)||this;y.isOpen=!1;return y};
_.p(R7,_.u);_.E=R7.prototype;_.E.dataChanged=function(){this.isOpen=!1};
_.E.onTap=function(){this.data&&(this.data.navigationEndpoint?_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.E.focus=function(){this.JSC$15706_commentbox.focus()};
_.E.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.E.openDialog=function(){this.isOpen=!0;this.JSC$15706_commentbox.focus();this.JSC$15706_commentbox.maybeHeightChanged()};
R7.prototype.onYtCommentboxDismiss=R7.prototype.onYtCommentboxDismiss;R7.prototype.dataChanged=R7.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],R7.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],R7.prototype,"isOpen",void 0);_.J([_.s$("#commentbox"),_.R("design:type",Object)],R7.prototype,"JSC$15706_commentbox",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R7.prototype,"dataChanged",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],R7.prototype,"onYtCommentboxDismiss",null);_.J([_.k({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],R7);
_.Y(R7,"ytd-comment-reply-dialog-renderer",function(){if(ZLm!==void 0)return ZLm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ZLm=y},{mode:1});var yeA;var jj=function(){return _.u.apply(this,arguments)||this};
_.p(jj,_.u);_.CM.Object.defineProperties(jj.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;return V?"yt-icons:"+V.toLowerCase():null}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jj.prototype,"data",void 0);_.J([_.q(),_.M("data.icon"),_.R("design:type",Object),_.R("design:paramtypes",[])],jj.prototype,"icon",null);_.J([_.k({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],jj);
_.Y(jj,"ytd-pinned-comment-badge-renderer",function(){if(yeA!==void 0)return yeA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return yeA=y},{mode:1});var Wcm;var V8f={},wT2={input:!0,meta:!0,br:!0,link:!0,img:!0},$w=null;V8f.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(){$w==null&&($w=document.createElement("tp-yt-paper-tooltip"),$w.offset=8,$w.fitToVisibleBounds=!0)},
onMouseOver_:function(y){if(y=_.WM(y.target,function(t){return t==this||t.getAttribute&&t.getAttribute("shared-tooltip-text")}.bind(this),!0)){var W=y.getAttribute("shared-tooltip-text");
if(W){var V=this,w=null;y!=this&&(y.tagName.toLowerCase()in wT2?V=y.parentElement:V=y,y.id&&(w=y.id));this.polymerController.createTooltipIfRequired_();if($w.parentElement!=V||$w.for!=w)(0,_.Mg)($w).textContent=W,_.i6(V).appendChild($w),$w.for=w,$w.animationDelay=this.polymerController.sharedTooltipAnimationDelay,$w.position=this.polymerController.sharedTooltipPosition}}}};var nm=function(){return _.u.apply(this,arguments)||this};
_.p(nm,_.u);nm.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]]"}}}}}};
nm.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
nm.prototype.colorChanged=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.color)==null?void 0:(V=W.basicColorPaletteData)==null?void 0:V.foregroundBodyColor;w&&(this.rgbBadgeColor=_.V2(w));_.i6(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
nm.prototype.tooltipChanged=function(){var y;((y=this.data)==null?0:y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
nm.prototype.tooltipChanged=nm.prototype.tooltipChanged;nm.prototype.colorChanged=nm.prototype.colorChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(V8f.YtSharedTooltipBehavior),_.R("design:type",Object)],nm.prototype,"ytSharedTooltipBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nm.prototype,"data",void 0);
_.J([_.q({value:"#4285F4"}),_.R("design:type",String)],nm.prototype,"rgbBadgeColor",void 0);_.J([_.xA("data.color"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nm.prototype,"colorChanged",null);_.J([_.xA("data.tooltip"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nm.prototype,"tooltipChanged",null);_.J([_.k({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],nm);
_.Y(nm,"ytd-sponsor-comment-badge-renderer",function(){if(Wcm!==void 0)return Wcm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Wcm=y},{mode:1});var t86;var FcR;var H6=function(){return _.u.apply(this,arguments)||this};
_.p(H6,_.u);H6.prototype.computeState=function(y){switch(y==null?void 0:y.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"}};
H6.prototype.updateStateIdentifier=function(y){if(this.viewModel.triStateKey){var W=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Z6("triStateButtonStateEntityPayload",W,{key:W,stateIdentifier:y}))}};
H6.prototype.onClick=function(){var y=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(){y.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){y.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.CM.Object.defineProperties(H6.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 y;return((y=this.data)==null?void 0:y.buttonText)||""}}});
_.J([_.q(),_.R("design:type",Object)],H6.prototype,"viewModel",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],H6.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.J([_.q({selector:MJa,selectorArgs:["viewModel.triStateKey"]}),_.R("design:type",Object)],H6.prototype,"triStateButtonStateEntity",void 0);
_.J([_.q({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.R("design:type",String)],H6.prototype,"state",void 0);_.J([_.M("viewModel","state"),_.R("design:type",Object),_.R("design:paramtypes",[])],H6.prototype,"data",null);_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],H6.prototype,"buttonText",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],H6);
_.Y(H6,"ytd-tri-state-button-view-model",function(){if(FcR!==void 0)return FcR;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return FcR=y},{mode:1});var EzA;var NNE;var X9=function(){var y=_.u.apply(this,arguments)||this;y.defaultIconToFilled=!_.e("kevlar_fill_comment_chip_icon_killswitch");return y};
_.p(X9,_.u);X9.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
X9.prototype.dataChanged=function(){if(this.data){var y,W;((y=this.data.chipColorPalette)==null?0:y.backgroundColor)&&((W=this.data.chipColorPalette)==null?0:W.foregroundTitleColor)&&_.qg(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.wg(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.wg(this.data.chipColorPalette.foregroundTitleColor)});var V;((V=this.data)==null?0:V.command)?(_.qg(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.qg(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}};
X9.prototype.onTap=function(){var y;if(this.data&&(y=this.data)!=null&&y.command){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.command)}};
X9.prototype.getIconSize=function(){return _.e("kevlar_fill_comment_chip_icon_killswitch")?24:12};
X9.prototype.onTap=X9.prototype.onTap;X9.prototype.dataChanged=X9.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],X9.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Bw),_.R("design:type",Object)],X9.prototype,"ironA11yKeysBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],X9.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],X9.prototype,"basePriceText",void 0);_.J([_.q(),_.R("design:type",Object)],X9.prototype,"chipIcon",void 0);_.J([_.q(),_.R("design:type",Object)],X9.prototype,"defaultIconToFilled",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X9.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X9.prototype,"onTap",null);
_.J([_.Zp({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],X9);
_.Y(X9,"yt-pdg-comment-chip-renderer",function(){if(NNE===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;EzA===void 0&&(EzA=document.createElement("template"));var w=EzA;V.call(W,w.content.cloneNode(!0),y.content.firstChild);NNE=y}y=NNE;return y},{mode:2});var a7=function(){var y=_.u.apply(this,arguments)||this;y.useSmallAvatars=_.e("small_avatars_for_comments");y.webWatchCompactComments=_.e("web_watch_compact_comments");y.editDialog=null;return y};
_.p(a7,_.u);_.E=a7.prototype;_.E.onShow=function(){_.G2("cmv",void 0,"wn_comments")};
_.E.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"}}}};
_.E.detached=function(){this.editDialog=null;this.expander.reset()};
_.E.updateBackgroundColor=function(){if(this.backgroundColor){var y={"--ytd-comment-paid-background-color":_.wg(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.qg(this.hostElement,y)}else _.qg(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.E.resetExpander=function(){var y;(y=this.expander)==null||y.reset()};
_.E.openEditDialog=function(y){y.dialog&&(this.editDialog=y.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.E.onYtNavigate=function(y){var W=y.detail.endpoint;if(W=_.h(W,_.f4J)||_.h(W,_.ToA))y.stopPropagation(),this.openEditDialog(W)};
_.E.onYtCommentboxDismiss=function(){this.editDialog=null;_.qg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.E.onAuthorThumbnailClicked=function(){var y=this;_.e("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(W,V){y.onAuthorThumbnailEndpointSuccess(V)},
onServerError:function(W,V){_.rQ(new _.Js("Failed to resolve the command",V))}}})};
_.E.onAuthorThumbnailEndpointSuccess=function(y){if((y=y==null?void 0:y.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(y,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();y=y==null?void 0:y.clickTrackingParams;var W=_.Hf();y&&W&&_.BC().graftServerVe(y,W)}};
_.E.logScreenVe=function(){_.qx(_.BC(),66557)};
_.E.onYtCommentboxResize=function(y){var W;(y==null?0:(W=y.detail)==null?0:W.height)&&_.qg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":y.detail.height+"px"})};
_.CM.Object.defineProperties(a7.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 y,W=(y=this.commentEntity)==null?void 0:y.author;return W&&(W.isCreator||W.isVerified||W.isArtist)?{renderer:{authorEndpoint:W.channelPageEndpoint?_.h(W.channelPageEndpoint,_.wL):_.h(W.channelCommand,_.wL),authorText:{runs:[{text:W.displayName}]},color:W.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:W.isArtist?{iconType:"AUDIO_BADGE"}:
W.isVerified?{iconType:W.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:W.isArtist||W.isVerified?W.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.commentEntity)==null?void 0:y.author;return W!=null&&W.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:W.sponsorBadgeUrl}]},tooltip:W.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return _.h((y=this.commentSurfaceEntity)==null?void 0:y.pdgCommentChip,_.yr6)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var y;return this.voiceReplyContainerViewModel&&((y=this.voiceReplyContainerViewModel)==null?void 0:y.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return _.h((y=this.commentSurfaceEntity)==null?void 0:y.voiceReplyContainerViewModel,xIz)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var y;return this.voiceReplyContainerViewModel&&(y=this.voiceReplyContainerViewModel)!=null&&y.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.commentSurfaceEntity)==null?void 0:y.commentBackgroundColor)!=null?W:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.e("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var y,W;return(((y=this.commentEntity)==null?void 0:(W=y.properties)==null?void 0:W.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var y,W;if(_.e("enable_profile_cards_on_comments")&&((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.profileCardEndpoint)&&this.viewModel.allowProfileCard){var V,w;return _.h((V=this.commentEntity)==null?void 0:(w=V.author)==null?void 0:w.profileCardEndpoint,_.wL)}var t,F;return _.h((t=this.commentEntity)==null?void 0:(F=t.avatar)==null?void 0:F.endpoint,_.wL)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var y,W;if(_.e("enable_profile_cards_on_comments")&&((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.channelPageEndpoint)){var V,w;return _.h((V=this.commentEntity)==null?void 0:(w=V.author)==null?void 0:w.channelPageEndpoint,_.wL)}var t,F;return _.h((t=this.commentEntity)==null?void 0:(F=t.avatar)==null?void 0:F.endpoint,_.wL)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t=(y=this.commentEntity)==null?void 0:(W=y.avatar)==null?void 0:(V=W.image)==null?void 0:(w=V.sources)==null?void 0:w[0];return t?{thumbnails:[{url:t.url,width:t.width,height:t.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?void 0:(W=y.author)==null?void 0:W.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?void 0:(W=y.properties)==null?void 0:W.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var y;return _.h((y=this.commentSurfaceEntity)==null?void 0:y.publishedTimeCommand,_.wL)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var y,W;if(((y=this.commentEntity)==null?0:y.translatedContent)&&((W=this.translateButtonState)==null?void 0:W.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var V;if((V=this.voiceReplyContainerViewModel)==null?0:V.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var w,t;return((w=this.commentEntity)==null?void 0:(t=w.properties)==null?void 0:t.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentSharedEntity)==null?void 0:(W=y.strings)==null?void 0:W.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentSharedEntity)==null?void 0:(W=y.strings)==null?void 0:W.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.commentEntity)==null||!y.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var y,W,V=(W=_.h((y=this.viewModel)==null?void 0:y.translateButton,lCQ))!=null?W:{},w,t,F,I,P,C,d,L,z,c,K;return Object.assign({},V,{untoggledStateData:Object.assign({},V.untoggledStateData,{buttonText:(w=this.commentEntity)==null?void 0:(t=w.translateData)==null?void 0:t.text}),togglingStateData:Object.assign({},V.togglingStateData,{buttonText:(F=this.commentSharedEntity)==null?
void 0:(I=F.strings)==null?void 0:I.translatingText}),toggledStateData:Object.assign({},V.toggledStateData,{buttonText:(P=this.commentSharedEntity)==null?void 0:(C=P.strings)==null?void 0:C.seeOriginalText}),transitionCommand:((d=this.commentEntity)==null?0:d.translatedContent)?void 0:_.h((L=this.commentEntity)==null?void 0:(z=L.translateData)==null?void 0:z.translateComment,_.wL),triStateKey:(c=this.commentEntity)==null?void 0:(K=c.properties)==null?void 0:K.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((W=_.h(_.h((y=this.toolbarSurface)==null?void 0:y.menuCommand,_.wL),mff))==null?void 0:(V=W.menu)==null?void 0:V.menuRenderer)||null}}});
a7.prototype.onYtCommentboxResize=a7.prototype.onYtCommentboxResize;a7.prototype.onYtCommentboxDismiss=a7.prototype.onYtCommentboxDismiss;a7.prototype.onYtNavigate=a7.prototype.onYtNavigate;a7.prototype.resetExpander=a7.prototype.resetExpander;a7.prototype.updateBackgroundColor=a7.prototype.updateBackgroundColor;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],a7.prototype,"ytdReduxBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],a7.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#author-thumbnail > button"),_.R("design:type",HTMLElement)],a7.prototype,"authorThumbnailAnchor",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a7.prototype,"linked",null);
_.J([_.M("viewModel","linked"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"linkedCommentBadge",null);_.J([_.q({reflectToAttribute:!0}),_.M("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a7.prototype,"pinned",null);_.J([_.M("viewModel","pinned"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"pinnedCommentBadge",null);
_.J([_.M("commentEntity","commentSharedEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"authorCommentBadge",null);_.J([_.q({reflectToAttribute:!0}),_.M("authorCommentBadge"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"hasAuthorBadge",null);_.J([_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"sponsorCommentBadge",null);
_.J([_.q({reflectToAttribute:!0}),_.M("sponsorCommentBadge"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"hasSponsorBadge",null);_.J([_.M("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"pdgCommentChipRenderer",null);_.J([_.q({reflectToAttribute:!0}),_.M("voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"hasVoiceReply",null);
_.J([_.M("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"voiceReplyContainerViewModel",null);_.J([_.M("voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"voiceReplyUnavailableText",null);_.J([_.q(),_.R("design:type",Object)],a7.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"viewModel",null);
_.J([_.q({selector:function(y,W){return _.UB(y.entities,"commentSharedEntityPayload",W)},
selectorArgs:["viewModel.sharedKey"]}),_.R("design:type",Object)],a7.prototype,"commentSharedEntity",void 0);_.J([_.q({selector:function(y,W){return _.UB(y.entities,"commentEntityPayload",W)},
selectorArgs:["viewModel.commentKey"]}),_.R("design:type",Object)],a7.prototype,"commentEntity",void 0);_.J([_.q({selector:function(y,W){return _.UB(y.entities,"commentSurfaceEntityPayload",W)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.R("design:type",Object)],a7.prototype,"commentSurfaceEntity",void 0);_.J([_.q({selector:mQL,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.R("design:type",Object)],a7.prototype,"toolbarSurface",void 0);_.J([_.q({selector:MJa,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.R("design:type",Object)],a7.prototype,"translateButtonState",void 0);
_.J([_.M("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"backgroundColor",null);_.J([_.q({reflectToAttribute:!0}),_.M("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a7.prototype,"optimalReadingWidthComments",null);_.J([_.s$("ytd-expander"),_.R("design:type",Object)],a7.prototype,"expander",void 0);
_.J([_.xA("backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a7.prototype,"updateBackgroundColor",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a7.prototype,"useSmallAvatars",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a7.prototype,"webWatchCompactComments",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"isReply",null);
_.J([_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"authorThumbnailEndpoint",null);_.J([_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"authorNameEndpoint",null);_.J([_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"authorThumbnail",null);_.J([_.M("commentEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],a7.prototype,"authorTextClass",null);
_.J([_.M("commentEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],a7.prototype,"authorChannelName",null);_.J([_.M("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"publishedTime",null);_.J([_.M("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"publishedTimeCommand",null);
_.J([_.M("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"contentText",null);_.J([_.xA("contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a7.prototype,"resetExpander",null);_.J([_.M("commentEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a7.prototype,"shouldShowReadMoreInitially",null);
_.J([_.M("commentSharedEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],a7.prototype,"expandText",null);_.J([_.M("commentSharedEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],a7.prototype,"collapseText",null);_.J([_.M("commentEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a7.prototype,"shouldShowTranslateButton",null);
_.J([_.M("commentEntity","commentSharedEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"translateButton",null);_.J([_.M("toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"overflowMenuRenderer",null);_.J([_.q(),_.R("design:type",Object)],a7.prototype,"editDialog",void 0);_.J([_.s$("ytd-comment-dialog-renderer"),_.R("design:type",Object)],a7.prototype,"editCommentDialogContainer",void 0);
_.J([_.s$("ytd-comment-reply-dialog-renderer"),_.R("design:type",Object)],a7.prototype,"editReplyDialogContainer",void 0);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],a7.prototype,"onYtNavigate",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],a7.prototype,"onYtCommentboxDismiss",null);
_.J([_.l6("yt-commentbox-resize"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],a7.prototype,"onYtCommentboxResize",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-comment-view-model"})],a7);
_.Y(a7,"ytd-comment-view-model",function(){if(t86!==void 0)return t86;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return t86=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var GE=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_modern_buttons");y.commentThreadingEnabled=_.e("web_delhi_comment_threads");y.isWatchGrid=_.e("kevlar_watch_grid");y.buttonOverrides=y.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};y.JSC$15753_spinnerEl=null;return y};
_.p(GE,_.u);_.E=GE.prototype;_.E.configureContinuationPathMap=function(){return _.e("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.E.shouldShowExpandedThreads=function(y,W){return this.commentThreadingEnabled&&!W&&(y==null?void 0:y.length)>0};
_.E.shouldShowCollapsedThreads=function(y,W){return this.commentThreadingEnabled&&W&&y};
_.E.computeThreadRenderer=function(y){return _.h(y,mIR)};
_.E.computeIsContinuationItem=function(y){return!!this.computeContinuationItemRenderer(y)};
_.E.computeButtonRenderer=function(y){return _.h(y,_.wz)};
_.E.computeContinuationItemRenderer=function(y){return _.h(y,_.e3)};
_.E.handleButtonClick=function(){this.toggleCollapsed&&this.toggleCollapsed()};
_.E.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]]"}}}}}};
_.E.attached=function(){this.isShowRepliesVisible=!0};
_.E.dataChanged=function(){var y=this.expanderContents;y&&(y.hidden=!0);this.isLoading=!1};
_.E.endsInContinuation=function(y){return!!y&&y.length>0&&!!this.computeContinuationItemRenderer(y[y.length-1])};
_.E.computeShouldShowHideRepliesButton=function(y,W){return!y&&W};
_.E.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.E.isLoadingChanged=function(){this.isLoading&&!this.JSC$15753_spinnerEl&&(this.JSC$15753_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.i6(this.expanderContents).appendChild(this.JSC$15753_spinnerEl));this.JSC$15753_spinnerEl&&(this.JSC$15753_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var y;(y=this.contents)==null||y.classList.remove("reloading")}};
_.E.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var y=_.h(this.data.viewReplies,_.wz);y&&this.ytRendererBehavior.logExplicitClick(y)};
_.E.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var y=_.h(this.data.hideReplies,_.wz);y&&this.ytRendererBehavior.logExplicitClick(y)};
_.E.isShowMoreChanged=function(){var y=_.i6(this.hostElement).querySelector("#expander-contents");y&&(y.hidden=this.isShowRepliesVisible)};
_.E.computeAlign=function(){if(this.modern){var y;return!((y=this.data)==null?0:y.viewRepliesCreatorThumbnail)}};
_.CM.Object.defineProperties(GE.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.endsInContinuation((y=this.data)==null?void 0:y.contents)||this.commentThreadingEnabled&&this.endsInContinuation((W=this.data)==null?void 0:W.subThreads)}}});
GE.prototype.isShowMoreChanged=GE.prototype.isShowMoreChanged;GE.prototype.isLoadingChanged=GE.prototype.isLoadingChanged;GE.prototype.triggerFirstContinuation=GE.prototype.triggerFirstContinuation;GE.prototype.dataChanged=GE.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.gk),_.R("design:type",Object)],GE.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],GE.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],GE.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],GE.prototype,"commentThreadingEnabled",void 0);_.J([_.q(),_.R("design:type",Boolean)],GE.prototype,"collapsed",void 0);
_.J([_.q(),_.R("design:type",Function)],GE.prototype,"toggleCollapsed",void 0);_.J([_.q(),_.R("design:type",Boolean)],GE.prototype,"isLoading",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],GE.prototype,"isShowRepliesVisible",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],GE.prototype,"useNewFormatting",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],GE.prototype,"isWatchGrid",void 0);_.J([_.q(),_.R("design:type",Object)],GE.prototype,"buttonOverrides",void 0);
_.J([_.s$("#expander-contents"),_.R("design:type",HTMLElement)],GE.prototype,"expanderContents",void 0);_.J([_.s$("ytd-continuation-item-renderer"),_.R("design:type",Object)],GE.prototype,"continuationItemRenderer",void 0);_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],GE.prototype,"contents",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GE.prototype,"dataChanged",null);
_.J([_.M("data.contents","data.subThreads.*"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GE.prototype,"hasContinuation",null);_.J([_.l6("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GE.prototype,"triggerFirstContinuation",null);_.J([_.xA("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GE.prototype,"isLoadingChanged",null);
_.J([_.xA("isShowRepliesVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GE.prototype,"isShowMoreChanged",null);_.J([_.k({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],GE);
_.Y(GE,"ytd-comment-replies-renderer",function(){if(QQA!==void 0)return QQA;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleButtonClick" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleButtonClick" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return QQA=y},{mode:1});var IcA;var rR=function(){var y=_.u.apply(this,arguments)||this;y.isOpen=!1;y.commentDialog=null;y.useSmallAvatars=_.e("small_avatars_for_comments");y.useSmallAvatarsEngagementPanelOnly=_.e("small_avatars_for_comments_ep");y.placeholderFocusListener=null;y.hasOpenedDialog=!1;y.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return y};
_.p(rR,_.u);_.E=rR.prototype;_.E.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]]"}}}}}};
_.E.ready=function(){var y=this,W=_.i6(this.hostElement).querySelector("#placeholder-area"),V=_.i6(this.hostElement).querySelector("#simplebox-placeholder"),w=function(t){t.stopPropagation();t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||y.openDialog()};
this.placeholderFocusListener=w;V.addEventListener("focus",this.placeholderFocusListener);W.addEventListener("tap",w);W.addEventListener("keypress",w)};
_.E.maybeRemoveFocusEventListener=function(){var y;(y=this.data)!=null&&y.prepareAccountEndpoint&&!_.e("web_comments_simplebox_modal_focus_on_tap_ks")&&(y=_.i6(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(y.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.E.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.E.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.e("web_comment_simplebox_resolve_polymer_command_ks")?_.xc.instance.resolveCommand(this.data.prepareAccountEndpoint):_.kc(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);y&&this.ytdOpenPopupBehavior.openPopup(y);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.i6(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.E.onYtCommentboxDismiss=function(y){y.stopPropagation();this.isOpen=!1};
_.E.onCreateCommentAction=function(y){this.get("createCommentAction.contents",y)&&(this.isOpen=!1)};
_.E.computeCommentDialog=function(y){return{placeholderText:y.placeholderText,authorThumbnail:y.authorThumbnail,submitButton:y.submitButton,imageButton:y.imageButton,cancelButton:y.cancelButton,emojiButton:y.emojiButton,emojis:y.emojis,emojiPicker:y.emojiPicker,aadcGuidelinesStateEntityKey:y.aadcGuidelinesStateEntityKey,openAadcDialog:y.openAadcDialog,unicodeEmojisUrl:y.unicodeEmojisUrl}};
_.E.onHideIdentityChip=function(y){_.h(y,osA)&&this.set("data.placeholderText",_.h(y,osA).placeholderText)};
rR.prototype.onYtCommentboxDismiss=rR.prototype.onYtCommentboxDismiss;rR.prototype.dataChanged=rR.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],rR.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],rR.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rR.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],rR.prototype,"isOpen",void 0);_.J([_.q(),_.R("design:type",Object)],rR.prototype,"commentDialog",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],rR.prototype,"engagementPanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],rR.prototype,"useSmallAvatars",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],rR.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],rR.prototype,"enableCreationBox",void 0);_.J([_.q(),_.R("design:type",Boolean)],rR.prototype,"showCreateDialog",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rR.prototype,"dataChanged",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rR.prototype,"onYtCommentboxDismiss",null);_.J([_.k({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],rR);
_.Y(rR,"ytd-comment-simplebox-renderer",function(){if(IcA!==void 0)return IcA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return IcA=y},{mode:1});var gzi;_.ZQ("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var bx=function(){var y=_.u.apply(this,arguments)||this;y.addHoverEffect=_.e("swatcheroo_comments_hover_effect");y.useSmallAvatars=_.e("small_avatars_for_comments");y.threadHovered=!1;y.collapsed=!1;y.toggleCollapsed=function(){y.collapsed=!y.collapsed;y.collapsed&&_.e("web_comment_threading_scroll_on_collapse")&&_.ow(y.hostElement,"yt-scroll-to-watch-element",[y.commentElement])};
return y};
_.p(bx,_.u);bx.prototype.onTap=function(y){if(this.addHoverEffect&&!this.engagementPanel&&!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||_.kc({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
bx.prototype.attached=function(){var y=this,W;(W=this.commentThreadHitbox)==null||W.addEventListener("mouseover",function(){y.threadHovered=!0});
var V;(V=this.commentThreadHitbox)==null||V.addEventListener("mouseout",function(){y.threadHovered=!1});
var w;(w=this.commentThreadHitbox)==null||w.addEventListener("click",function(){y.toggleCollapsed()})};
_.CM.Object.defineProperties(bx.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.commentViewModel)return _.h(this.data.commentViewModel,DII)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return _.e("web_delhi_comment_threads")&&!!((y=this.data)==null?0:(W=y.replies)==null?0:(V=W.commentRepliesRenderer)==null?0:V.subThreads)}}});
bx.prototype.onTap=bx.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bx.prototype,"addHoverEffect",void 0);_.J([_.q(),_.R("design:type",Object)],bx.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bx.prototype,"useSmallAvatars",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],bx.prototype,"isSubThread",void 0);_.J([_.s$(".thread-hitbox"),_.R("design:type",HTMLElement)],bx.prototype,"commentThreadHitbox",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bx.prototype,"threadHovered",void 0);_.J([_.s$("#comment"),_.R("design:type",HTMLElement)],bx.prototype,"commentElement",void 0);
_.J([_.q(),_.R("design:type",Object)],bx.prototype,"collapsed",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],bx.prototype,"commentViewModel",null);_.J([_.M("data.replies"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bx.prototype,"hasSubThreading",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],bx.prototype,"engagementPanel",void 0);
_.J([_.l6("tap"),_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],bx.prototype,"onTap",null);_.J([_.k({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],bx);
_.Y(bx,"ytd-comment-thread-renderer",function(){if(gzi!==void 0)return gzi;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return gzi=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var PZ6;var QP=function(){var y=_.u.apply(this,arguments)||this;y.modernTypography=_.e("web_modern_typography");y.compactHeader=_.e("web_watch_compact_comments_header");y.hidePanelButton=!1;y.isPostSchedulingEnabled=_.e("enable_post_scheduling");y.hasFinishedStamping=!1;y.JSC$15771_handleOpenPostCommentDialogActionAfterStamp=!1;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.p(QP,_.u);_.E=QP.prototype;
_.E.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"}}}};
_.E.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.E.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15771_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.E.onYtServiceRequestSent=function(y,W){if(!_.e("kevlar_command_handler")&&W.actions)for(y=0;y<W.actions.length;y++){var V=W.actions[y];_.h(V,$_i)&&_.i6(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.h(V,$_i))}};
_.E.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var y;if(this.getPrefilledBackstagePostDialog((y=this.data)==null?void 0:y.actions)){_.i6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var W=_.i6(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;W&&_.gy(this,function(){W.focus();W.openDialog&&W.openDialog()})}}else this.hasActionsChange=!0};
_.E.computeIsBackstage=function(y){return y};
_.E.onYtCommentboxDismiss=function(){_.i6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.E.removePrefilledDialog=function(y){if(y==null?0:y.actions){for(var W=y.actions.length-1;W>=0;W--){var V=void 0;((V=_.h(y.actions[W],pws))==null?0:V.dialog)&&delete y.actions[W]}this.set("data",void 0);this.set("data",y)}};
_.E.getPrefilledBackstagePostDialog=function(y){if(y)for(var W=0;W<y.length;W++){var V=y[W],w=void 0;if((w=_.h(V,pws))==null?0:w.dialog)return _.h(V,pws).dialog}return null};
_.E.computeBackstagePostDialog=function(y){return y&&(this.getPrefilledBackstagePostDialog(y.actions)||y.createRenderer)};
_.E.dataChanged=function(){if(this.data){var y=this.data.customEmojis,W=this.data.unicodeEmojisUrl;_.FX.clear();W&&_.vQs(_.FX,W);y&&_.FX.load(y)}};
_.E.handleSignalActionOpenPostCommentDialogAction=function(){var y=_.i6(this.hostElement).querySelector("ytd-comment-simplebox-renderer");y?y.openDialog():this.JSC$15771_handleOpenPostCommentDialogActionAfterStamp=!0};
_.CM.Object.defineProperties(QP.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.e("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F,I;return!this.hidePanelButton&&_.e("kevlar_watch_comments_panel_button")&&((I=_.h((y=this.data)==null?void 0:(W=y.sortMenu)==null?void 0:(V=W.sortFilterSubMenuRenderer)==null?void 0:(w=V.subMenuItems)==null?void 0:(t=w[0])==null?void 0:(F=t.serviceEndpoint)==null?void 0:F.commandMetadata,_.dw))==null?void 0:I.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.u5("MINIPLAYER_EXPAND_LABEL"),text:_.CO(_.u5("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
QP.prototype.dataChanged=QP.prototype.dataChanged;QP.prototype.onYtCommentboxDismiss=QP.prototype.onYtCommentboxDismiss;QP.prototype.observePrefilledBackstagePostDialog=QP.prototype.observePrefilledBackstagePostDialog;QP.prototype.onYtServiceRequestSent=QP.prototype.onYtServiceRequestSent;QP.prototype.onStampFinished=QP.prototype.onStampFinished;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],QP.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QP.prototype,"modernTypography",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QP.prototype,"compactHeader",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],QP.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Object)],QP.prototype,"hidePanelButton",void 0);_.J([_.q({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.R("design:type",Boolean)],QP.prototype,"isBackstage",void 0);_.J([_.q({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.R("design:type",Object)],QP.prototype,"backstagePostDialog",void 0);
_.J([_.q(),_.R("design:type",Object)],QP.prototype,"isPostSchedulingEnabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data","showCommentsPanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],QP.prototype,"useSpaceBetween",null);_.J([_.q({reflectToAttribute:!0}),_.M("data","hidePanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],QP.prototype,"showCommentsPanelButton",null);
_.J([_.M("data","showCommentsPanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],QP.prototype,"commentsPanelButtonData",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QP.prototype,"onStampFinished",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],QP.prototype,"onYtServiceRequestSent",null);
_.J([_.xA("data.actions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QP.prototype,"observePrefilledBackstagePostDialog",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],QP.prototype,"onYtCommentboxDismiss",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QP.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],QP);
_.Y(QP,"ytd-comments-header-renderer",function(){if(PZ6!==void 0)return PZ6;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return PZ6=y},{mode:1});var CZ6;var Zi=function(){return _.u.apply(this,arguments)||this};
_.p(Zi,_.u);_.J([_.q(),_.R("design:type",Object)],Zi.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.J([_.k({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Zi);
_.Y(Zi,"ytd-destination-button-renderer",function(){if(CZ6!==void 0)return CZ6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return CZ6=y},{mode:1});var OZK;var yI=function(){var y=_.u.apply(this,arguments)||this;y.isRichGrid=!1;y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};y.modernTypography=_.e("web_modern_typography");return y};
_.p(yI,_.u);_.E=yI.prototype;_.E.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.E.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.E.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.E.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var y;if((y=this.data)==null||!y.isExpanded){y=this.hostElement.clientWidth;var W;if(y&&(W=this.data)!=null&&W.destinationButtons){W=Math.floor((y+4)/214);y=this.data.destinationButtons.length;var V=Math.ceil(y/W);this.fullyVisibleRows=y%W===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}}}};
_.E.updateRichGridDestinationButtonsVisibility=function(){var y,W;if(this.isRichGrid&&((y=this.data)==null||!y.isExpanded)&&(W=this.data)!=null&&W.destinationButtons){y=this.richGridItemsPerRow+1;W=this.data.destinationButtons.length;var V=Math.ceil(W/y);this.fullyVisibleRows=W%y===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
_.E.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
yI.prototype.updateRichGridDestinationButtonsVisibility=yI.prototype.updateRichGridDestinationButtonsVisibility;_.J([_.q(),_.R("design:type",Object)],yI.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Number)],yI.prototype,"fullyVisibleRows",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],yI.prototype,"isShowMoreVisible",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yI.prototype,"isRichGrid",void 0);
_.J([_.q({selector:_.r5,value:0}),_.R("design:type",Number)],yI.prototype,"richGridItemsPerRow",void 0);_.J([_.q(),_.R("design:type",Object)],yI.prototype,"gridStateActionMap",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],yI.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],yI.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yI.prototype,"modernTypography",void 0);_.J([_.xA("data","richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yI.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.J([_.k({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],yI);
_.Y(yI,"ytd-destination-shelf-renderer",function(){if(OZK!==void 0)return OZK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return OZK=y},{mode:1});var vz2;var WD=function(){return _.u.apply(this,arguments)||this};
_.p(WD,_.u);WD.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],WD.prototype,"data",void 0);_.J([_.k({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],WD);
_.Y(WD,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(vz2!==void 0)return vz2;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return vz2=y},{mode:1});var dA6;var VI=function(){var y=_.u.apply(this,arguments)||this;y.disableAnimation=!1;y.isSlimlineSurvey=!1;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;return y};
_.p(VI,_.u);VI.prototype.onTap=function(y){y.preventDefault();this.data&&_.h1(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.CM.Object.defineProperties(VI.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 y,W,V,w,t;return((y=this.data)==null?0:y.checked)?(W=this.data)==null?void 0:(V=W.onStateIcon)==null?void 0:V.iconType:(w=this.data)==null?void 0:(t=w.defaultStateIcon)==null?void 0:t.iconType}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],VI.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],VI.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],VI.prototype,"disableAnimation",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VI.prototype,"isSlimlineSurvey",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VI.prototype,"isSlimlineSurveyFollowUp",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VI.prototype,"isShortsStyle",void 0);_.J([_.M("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VI.prototype,"isAnimatedIcon",null);
_.J([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Number),_.R("design:paramtypes",[])],VI.prototype,"iconSize",null);_.J([_.M("isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VI.prototype,"isDarkTheme",null);_.J([_.M("data.checked"),_.R("design:type",Object),_.R("design:paramtypes",[])],VI.prototype,"icon",null);_.J([_.k({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],VI);
_.Y(VI,"ytd-rating-survey-option-renderer",function(){if(dA6!==void 0)return dA6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return dA6=y},{mode:2});var Lcq;var wO=function(){var y=_.u.apply(this,arguments)||this;y.firstResponseText=null;y.lastResponseText=null;y.selectedNonStarOption=null;y.hideOptions=!1;y.hideUndoButton=!0;y.disableAnimation=!1;y.showResponseRangeText=!1;y.selectedRatingIndex=-1;y.isSlimlineSurvey=!1;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;y.slimlineSurveyRatingSelectedIndex=-1;return y};
_.p(wO,_.u);_.E=wO.prototype;_.E.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.E.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.E.onOptionChange=function(y,W){var V=this;y=W.onStateIcon&&W.defaultStateIcon&&W.onStateIcon.iconType===W.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(I,P){I.responseText===W.responseText?V.isSlimlineSurvey?(V.selectedRatingIndex=P,V.ytdReduxBehavior.dispatch(grs(P))):(V.setSurveyOptionValue(P,!0,"checked"),V.setSurveyOptionValue(P,!0,"selected")):(V.setSurveyOptionValue(P,!1,"checked"),V.setSurveyOptionValue(P,
!1,"selected"))});
else if(y)this.selectedNonStarOption=W,this.hideOptions=!0;else{var w=this.ytRendererBehavior.getSimpleString(W.responseText),t=!0;this.getOptionRenderers().forEach(function(I,P){V.setSurveyOptionValue(P,t,"checked");V.setSurveyOptionValue(P,!1,"selected");V.ytRendererBehavior.getSimpleString(I.responseText)===w&&(t=!1,V.setSurveyOptionValue(P,!0,"selected"))})}y=W.responseEndpoint;
var F;W.followUpCommand&&(F=_.h(W.followUpCommand,ae6));this.isSlimlineSurvey?(this.resetComponent(),_.ow(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ow(this.hostElement,"ytd-inline-survey-rating-select-action",[y,F])};
_.E.showSelectedOption=function(){var y=this;_.HU.addJob(function(){var W=y.getOptionRenderers()[y.slimlineSurveyRatingSelectedIndex];y.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),W)},8,100)};
_.E.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(y){var W;return(W=_.h(y,r0J))!=null?W:{}}):[]};
_.E.onUndoClick=function(){this.resetComponent();_.ow(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.E.setSurveyOptionValue=function(y,W,V){this.notifyPath("data.ratings."+y+".ratingSurveyOptionRenderer."+V);this.set("data.ratings."+y+".ratingSurveyOptionRenderer."+V,W)};
_.E.resetComponent=function(){var y=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var W=this.getOptionRenderers(),V,w;this.firstResponseText=(w=(V=W[0])==null?void 0:V.responseText)!=null?w:null;var t,F;this.lastResponseText=(F=(t=W[W.length-1])==null?void 0:t.responseText)!=null?F:null;W.forEach(function(I,P){y.setSurveyOptionValue(P,!1,"checked");y.setSurveyOptionValue(P,!1,"selected")})};
_.CM.Object.defineProperties(wO.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
wO.prototype.onOptionChange=wO.prototype.onOptionChange;wO.prototype.dataChanged=wO.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],wO.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],wO.prototype,"firstResponseText",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"lastResponseText",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"selectedNonStarOption",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"hideOptions",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"hideUndoButton",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"disableAnimation",void 0);
_.J([_.q(),_.R("design:type",Object)],wO.prototype,"showResponseRangeText",void 0);_.J([_.q(),_.R("design:type",Object)],wO.prototype,"selectedRatingIndex",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wO.prototype,"isSlimlineSurvey",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wO.prototype,"isSlimlineSurveyFollowUp",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],wO.prototype,"isShortsStyle",void 0);_.J([_.q({selector:function(y){return y.ui.slimlineSurveyRatingSelectedIndex}}),
_.R("design:type",Object)],wO.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.J([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wO.prototype,"isSingleSelect",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wO.prototype,"dataChanged",null);
_.J([_.l6("ytd-rating-survey-option-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],wO.prototype,"onOptionChange",null);_.J([_.k({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],wO);
_.Y(wO,"ytd-rating-survey-renderer",function(){if(Lcq!==void 0)return Lcq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Lcq=y},{mode:1});var zoQ;var ceR;var eoI;var R2z=(JO.FIRSTDAYOFWEEK+1)%7,hoR=function(y,W,V,w){var t="";if(w.selection&&AaP(w.selection))AO(y,w.selection)&&(t+=" selected");else if(w.selection&&YWR(w.selection)){var F=w.selection.selectionState||"START_DATE";AO(y,w.selection.start)&&(t+=" period-start ",F==="START_DATE"&&(t+="selected"));AO(y,w.selection.end)&&(t+=" period-end ",F==="END_DATE"&&(t+="selected"));Y9(y,w.selection.start)||Y9(w.selection.end,y)||(t+=" highlighted")}if(Y9(W,w.start)||Y9(w.end,W))t+=" disabled";w.circleToday&&
AO(W,V)&&(t+=" today");return t};var tE=function(){return _.u.apply(this,arguments)||this};
_.p(tE,_.u);_.E=tE.prototype;_.E.attached=function(){var y=this;_.gy(this,function(){y.JSC$15805_calendarMain.scrollHeight>0&&(y.calendarConfig.selection?y.scrollToDate(B8a(y.calendarConfig.selection)):y.scrollToDate(y.calendarConfig.end))})};
_.E.updateSelection=function(y){y=jqy(Object.assign({},this.calendarConfig,{selection:y}),hoR);this.splice.apply(this,["renderData.months",0,y.length].concat(_.GC(y)))};
_.E.scrollToDate=function(y){this.renderData&&(y=$by(y,this.renderData),y!==void 0&&this.JSC$15805_calendarMain.scrollToIndex(y))};
_.E.scrollToNextMonth=function(){this.JSC$15805_calendarMain.scrollToIndex(this.JSC$15805_calendarMain.firstVisibleIndex+1)};
_.E.scrollToPrevMonth=function(){this.JSC$15805_calendarMain.firstVisibleIndex===0&&this.JSC$15805_calendarMain.scrollTo(0,0);this.JSC$15805_calendarMain.scrollToIndex(this.JSC$15805_calendarMain.firstVisibleIndex-1)};
_.E.handleDayClick=function(y){_.ow(this.hostElement,"ytd-calendar-date-clicked",[y.model.day.date])};
_.E.handleDayMouseDown=function(y){y.preventDefault();_.ow(this.hostElement,"ytd-calendar-date-mousedown",[y.model.day.date])};
_.E.handleDayMouseUp=function(y){_.ow(this.hostElement,"ytd-calendar-date-mouseup",[y.model.day.date])};
_.E.handleDayMouseEnter=function(y){y.preventDefault();_.ow(this.hostElement,"ytd-calendar-date-mouseenter",[y.model.day.date])};
_.E.handleDayMouseLeave=function(y){_.ow(this.hostElement,"ytd-calendar-date-mouseleave",[y.model.day.date])};
_.CM.Object.defineProperties(tE.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var y=this.calendarConfig,W=hoR;W=W===void 0?hoR:W;for(var V=[],w=0;w<7;w++)V.push(JO.NARROWWEEKDAYS[(w+R2z)%7]);return{months:jqy(y,W),daysOfWeekLabel:V}}}});
_.J([_.q(),_.R("design:type",Object)],tE.prototype,"calendarConfig",void 0);_.J([_.s$("#calendar-main"),_.R("design:type",Object)],tE.prototype,"JSC$15805_calendarMain",void 0);_.J([_.M("calendarConfig"),_.R("design:type",Object),_.R("design:paramtypes",[])],tE.prototype,"renderData",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],tE);
_.Y(tE,"ytd-scrollable-calendar",function(){if(eoI!==void 0)return eoI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return eoI=y},{mode:2});var ozi;var Kc6;var FQ=function(){var y=_.u.apply(this,arguments)||this;y.hideCharCounter=!1;y.hideLabel=!1;y.noLabelFloat=!1;y.autoValidate=!0;y.invalid=!1;y.disabled=!1;y.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return y};
_.p(FQ,_.u);_.E=FQ.prototype;_.E.reset=function(y){this.value=y&&this.data?this.data.value=y:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.E.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.E.focusTextInput=function(){this.input.focus()};
_.E.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()};
_.E.valueChanged=function(){var y,W;if(((y=this.data)==null?0:y.value)||((W=this.data)==null?void 0:W.value)==="")this.value=this.data.value;else{var V;((V=this.data)==null?void 0:V.value)!==void 0||this.value||(this.value="")}};
_.E.computeLabel=function(y,W){return W?"":_.OT(y)};
_.E.computeAriaLabel=function(y,W){return W?_.OT(y):""};
_.E.computeErrorMessage=function(y,W,V,w){!y&&W?y=V||this.strings.REQUIRED_LABEL:(y=_.OT(w),y=_.Cd(y,"&")?"document"in _.Vj?ltR(y):xaA(y):y);return y};
_.E.computeType=function(y){return y==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.E.onTextValueChanged=function(y){this.value=y.detail.value;var W;(W=this.onValueChanged)==null||W.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.E.handleUpdateTextInputFormFieldRendererCommand=function(y){(y=_.h(y,Lxr))&&this.data&&this.data.id===y.id&&(y.invalid!==void 0&&(this.invalid=y.invalid),y.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",y.invalidValueErrorMessage))};
_.E.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("value-changed",this.value))};
_.E.updateInvalidFromBinding=function(y){this.invalid=y.detail.value};
_.CM.Object.defineProperties(FQ.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var y;return!((y=this.data)==null||!y.isMultiline)}}});
FQ.prototype.valueChangedForBinding=FQ.prototype.valueChangedForBinding;FQ.prototype.valueChanged=FQ.prototype.valueChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],FQ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],FQ.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],FQ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],FQ.prototype,"value",void 0);_.J([_.q(),_.R("design:type",String)],FQ.prototype,"pattern",void 0);_.J([_.q(),_.R("design:type",String)],FQ.prototype,"errorMessage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],FQ.prototype,"componentStyle",void 0);_.J([_.q(),_.R("design:type",Object)],FQ.prototype,"hideCharCounter",void 0);
_.J([_.q(),_.R("design:type",Object)],FQ.prototype,"hideLabel",void 0);_.J([_.q(),_.R("design:type",Object)],FQ.prototype,"noLabelFloat",void 0);_.J([_.q(),_.R("design:type",Function)],FQ.prototype,"onValueChanged",void 0);_.J([_.q(),_.R("design:type",Boolean)],FQ.prototype,"isMultilineOverride",void 0);_.J([_.q(),_.R("design:type",Object)],FQ.prototype,"autoValidate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FQ.prototype,"invalid",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FQ.prototype,"disabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],FQ.prototype,"enableOverlayTheme",void 0);_.J([_.q({value:{REQUIRED_LABEL:_.u5("REQUIRED_LABEL",void 0,"Required")}}),_.R("design:type",Object)],FQ.prototype,"strings",void 0);_.J([_.s$("#input"),_.R("design:type",Object)],FQ.prototype,"input",void 0);
_.J([_.M("data","isMultilineOverride"),_.R("design:type",Object),_.R("design:paramtypes",[])],FQ.prototype,"isMultiline",null);_.J([_.Jc("data.value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FQ.prototype,"valueChanged",null);_.J([_.xA("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FQ.prototype,"valueChangedForBinding",null);_.J([_.Zp({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],FQ);
_.Y(FQ,"yt-text-input-form-field-renderer",function(){if(Kc6===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ozi===void 0&&(ozi=document.createElement("template"));var w=ozi;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Kc6=y}y=Kc6;return y},{mode:2});var Eb=function(){var y=_.u.apply(this,arguments)||this;y.data=void 0;y.selectionState="START_DATE";y.isStartDateInvalid=!1;y.isEndDateInvalid=!1;y.autoapply=!1;y.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 y};
_.p(Eb,_.u);_.E=Eb.prototype;_.E.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"}}}}};
_.E.focus=function(){this.startDateInput.focus()};
_.E.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Be(this.data.selection.start),end:Be(this.data.selection.end)})};
_.E.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.E.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.gW(this.selectionState)}};
_.E.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.E.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.E.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.E.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var y=this.calendar.calendarConfig,W=y.end;y=HTy({start:y.start,end:this.endDate||W},this.startDateInput.value||"");this.isStartDateInvalid=!y.isValid;y.isValid&&(y=y.value,this.selection=this.endDate?{start:y,end:this.endDate}:y,this.calendar.scrollToDate(y));this.updateInvalidState()}};
_.E.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var y=this.calendar.calendarConfig,W=y.start;y=HTy({start:this.startDate||W,end:y.end},this.endDateInput.value||"");this.isEndDateInvalid=!y.isValid;y.isValid&&(y=y.value,this.selection={start:this.startDate,end:y},this.calendar.scrollToDate(y));this.updateInvalidState()}};
_.E.handleCalendarDateClicked=function(y){var W=this.selection&&B8a(this.selection),V=this.selection&&Jav(this.selection);W&&!Y9(y,W)&&this.selectionState==="END_DATE"?(this.selection={start:W,end:y},this.selectionState="START_DATE"):(V&&!Y9(V,y)?this.selection={start:y,end:V}:this.selection=y,this.selectionState="END_DATE")};
_.E.handleCalendarDateMouseDown=function(y){this.selection&&!AaP(this.selection)&&(this.dragPivot=AO(y,this.selection.start)?this.selection.end:AO(y,this.selection.end)?this.selection.start:y)};
_.E.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.E.handleCalendarDateMouseEnter=function(y){this.dragPivot&&(this.selection={start:function(W,V){return Y9(W,V)?W:V}(this.dragPivot,y),
end:function(W,V){return Y9(W,V)?V:W}(this.dragPivot,y)},this.dragPivot||(this.selectionState="START_DATE"))};
_.E.handleCalendarDateMouseLeave=function(){};
_.E.handleCalendarSubmitDateRange=function(){this.selection&&!AaP(this.selection)&&_.ow(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.E.updateInvalidState=function(){var y=function(W,V){V?W.setAttribute("invalid",""):W.removeAttribute("invalid")};
y(this.startDateInput,this.isStartDateInvalid);y(this.endDateInput,this.isEndDateInvalid)};
_.E.updateDateStrings=function(){this.selection&&(AaP(this.selection)?sq4(this.selection):(sq4(this.selection.start),sq4(this.selection.end)))};
_.E.updateCalendarSelection=function(y){this.calendar.updateSelection(Object.assign({},y,{selectionState:this.selectionState}))};
_.E.updateIsStartDateInvalidFromBinding=function(y){this.isStartDateInvalid=y.detail.value};
_.E.updateIsEndDateInvalidFromBinding=function(y){this.isEndDateInvalid=y.detail.value};
_.E.updateStartDateStringFromBinding=function(){};
_.E.updateEndDateStringFromBinding=function(){};
_.CM.Object.defineProperties(Eb.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Be(this.data.dateRangeStart),end:Be(this.data.dateRangeEnd),selection:{start:Be(this.data.selection.start),end:Be(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&B8a(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Jav(this.selection)}}});
Eb.prototype.resetTextboxes=Eb.prototype.resetTextboxes;Eb.prototype.observeSelection=Eb.prototype.observeSelection;Eb.prototype.dataChanged=Eb.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Eb.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#calendar"),_.R("design:type",Object)],Eb.prototype,"calendar",void 0);
_.J([_.s$("#start-date"),_.R("design:type",Object)],Eb.prototype,"startDateInput",void 0);_.J([_.s$("#end-date"),_.R("design:type",Object)],Eb.prototype,"endDateInput",void 0);_.J([_.q(),_.R("design:type",Object)],Eb.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Eb.prototype,"selection",void 0);_.J([_.q(),_.R("design:type",String)],Eb.prototype,"selectionState",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eb.prototype,"calendarConfig",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eb.prototype,"errorMessage",null);_.J([_.M("selection"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eb.prototype,"startDate",null);_.J([_.M("selection"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eb.prototype,"endDate",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Eb.prototype,"dataChanged",null);
_.J([_.xA("selection","selectionState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Eb.prototype,"observeSelection",null);_.J([_.xA("selectionState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Eb.prototype,"resetTextboxes",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Eb);
_.Y(Eb,"ytd-date-period-picker-renderer",function(){if(ceR!==void 0)return ceR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ceR=y},{mode:1});var Nw=function(){var y=_.u.apply(this,arguments)||this;var W={};y.actionMap=(W["ytd-date-period-picker-apply"]="handleDateRangeUpdated",W);return y};
_.p(Nw,_.u);Nw.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Nw.prototype.handleDateRangeUpdated=function(){};
_.J([_.q(),_.R("design:type",Object)],Nw.prototype,"data",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Nw.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Nw.prototype,"rendererstamperBehavior",void 0);_.J([_.k({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Nw);
_.Y(Nw,"ytd-report-history-section-header-renderer",function(){if(zoQ!==void 0)return zoQ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return zoQ=y},{mode:1});var pT6;var iZ2;var fcq;var IE=function(){return _.u.apply(this,arguments)||this};
_.p(IE,_.u);_.CM.Object.defineProperties(IE.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)?_.D8(this.data.icon.iconType):""}}});
_.J([_.q(),_.R("design:type",Object)],IE.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],IE.prototype,"icon",null);_.J([_.k({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],IE);
_.Y(IE,"ytd-report-history-table-text-cell-renderer",function(){if(fcq!==void 0)return fcq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fcq=y},{mode:1});var gO=function(){return _.u.apply(this,arguments)||this};
_.p(gO,_.u);gO.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gO.prototype,"data",void 0);_.J([_.k({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],gO);
_.Y(gO,"ytd-report-history-table-reason-cell-renderer",function(){if(iZ2!==void 0)return iZ2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return iZ2=y},{mode:1});var PD=function(){return _.u.apply(this,arguments)||this};
_.p(PD,_.u);PD.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"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],PD.prototype,"rendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PD.prototype,"data",void 0);_.J([_.k({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],PD);
_.Y(PD,"ytd-report-history-table-cell-renderer",function(){if(pT6!==void 0)return pT6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return pT6=y},{mode:1});var TNs;var CN=function(){var y=_.u.apply(this,arguments)||this;y.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 y};
_.p(CN,_.u);CN.prototype.onDataChanged=function(){var y;if((y=this.data)==null?0:y.style)this.componentStyle=this.getStyleName(this.data.style)};
CN.prototype.getCellForColumn=function(y){return this.cells.find(function(W){var V;return((V=_.h(W==null?void 0:W.cell,ZHR)||_.h(W==null?void 0:W.cell,QPf))==null?void 0:V.columnId)===y.type})};
CN.prototype.getClassForColumn=function(y){switch(y){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
CN.prototype.getStyleName=function(y){switch(y){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.CM.Object.defineProperties(CN.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.cells)||[]).map(function(W){return _.h(W,bHA)})}}});
CN.prototype.onDataChanged=CN.prototype.onDataChanged;_.J([_.q(),_.R("design:type",Object)],CN.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],CN.prototype,"columnRenderData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],CN.prototype,"componentStyle",void 0);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],CN.prototype,"cells",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CN.prototype,"onDataChanged",null);_.J([_.k({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],CN);
_.Y(CN,"ytd-report-history-table-row-renderer",function(){if(TNs!==void 0)return TNs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TNs=y},{mode:1});var mAf;var M8E;var XAb={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},a$a={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Ob=function(){return _.u.apply(this,arguments)||this};
_.p(Ob,_.u);Ob.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"}}}}}};
Ob.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.CM.Object.defineProperties(Ob.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.columns)?ZT4(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return bTz(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var y=this.tableSpec,W=XAb;W=W===void 0?a$a:W;W=Qqb(y.columnDimensions,y.columnsToShow||[],W);y=0;W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,y+=V.minWidth+V.paddingLeft+V.paddingRight;return y}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.J([_.m(_.gk),_.R("design:type",Object)],Ob.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ob.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ob.prototype,"tableSpec",null);_.J([_.M("tableSpec"),_.R("design:type",Array),_.R("design:paramtypes",[])],Ob.prototype,"columnRenderData",null);
_.J([_.M("tableSpec"),_.R("design:type",Number),_.R("design:paramtypes",[])],Ob.prototype,"totalMinWidth",null);_.J([_.M("totalMinWidth"),_.R("design:type",String),_.R("design:paramtypes",[])],Ob.prototype,"tableWidthStyle",null);_.J([_.k({is:"ytd-table-renderer",disableElementRegistration:!0})],Ob);
_.Y(Ob,"ytd-table-renderer",function(){if(M8E!==void 0)return M8E;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return M8E=y},{mode:1});var vD=function(){return _.u.apply(this,arguments)||this};
_.p(vD,_.u);vD.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}}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vD.prototype,"data",void 0);_.J([_.k({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],vD);
_.Y(vD,"ytd-report-reason-history-modal-renderer",function(){if(mAf!==void 0)return mAf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mAf=y},{mode:1});var qaQ;var UA6;var u5q;var dO=function(){return _.u.apply(this,arguments)||this};
_.p(dO,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dO.prototype,"data",void 0);_.J([_.k({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],dO);
_.Y(dO,"ytd-profile-column-stats-entry-renderer",function(){if(u5q!==void 0)return u5q;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return u5q=y},{mode:1});var Sai;var LN=function(){return _.u.apply(this,arguments)||this};
_.p(LN,_.u);LN.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LN.prototype,"data",void 0);_.J([_.k({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],LN);
_.Y(LN,"ytd-profile-column-stats-renderer",function(){if(Sai!==void 0)return Sai;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Sai=y},{mode:1});var DAI;var z_=function(){return _.u.apply(this,arguments)||this};
_.p(z_,_.u);_.CM.Object.defineProperties(z_.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.useThumbnailSize)return 80;var W,V;y=(W=this.data)==null?void 0:(V=W.thumbnail)==null?void 0:V.thumbnails;var w;return y&&((w=y[0])==null?void 0:w.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.useThumbnailSize)return 80;var W,V;y=(W=this.data)==null?void 0:(V=W.thumbnail)==null?void 0:V.thumbnails;var w;return y&&((w=y[0])==null?void 0:w.height)||80}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],z_.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],z_.prototype,"componentStyle",void 0);_.J([_.M("data.useThumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],z_.prototype,"thumbnailWidth",null);
_.J([_.M("data.useThumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],z_.prototype,"thumbnailHeight",null);_.J([_.k({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],z_);
_.Y(z_,"ytd-profile-column-user-info-renderer",function(){if(DAI!==void 0)return DAI;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DAI=y},{mode:1});var cD=function(){return _.u.apply(this,arguments)||this};
_.p(cD,_.u);cD.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]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cD.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],cD.prototype,"componentStyle",void 0);_.J([_.k({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],cD);
_.Y(cD,"ytd-profile-column-renderer",function(){if(UA6!==void 0)return UA6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return UA6=y},{mode:1});var e$=function(){var y=_.u.apply(this,arguments)||this;y.componentStyle="NON_CENTERED_PROFILE";return y};
_.p(e$,_.u);e$.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
e$.prototype.getIcon=function(y){return y?"settings:"+y.toLowerCase():null};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],e$.prototype,"data",void 0);_.J([_.k({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],e$);
_.Y(e$,"ytd-page-introduction-renderer",function(){if(qaQ!==void 0)return qaQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qaQ=y},{mode:1});var lcm;var hE=function(){return _.u.apply(this,arguments)||this};
_.p(hE,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hE.prototype,"data",void 0);_.J([_.k({is:"ytd-report-description-renderer",disableElementRegistration:!0})],hE);
_.Y(hE,"ytd-report-description-renderer",function(){if(lcm!==void 0)return lcm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lcm=y},{mode:1});var xAA;var k1A;var oE=function(){return _.u.apply(this,arguments)||this};
_.p(oE,_.u);oE.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oE.prototype,"data",void 0);_.J([_.k({is:"ytd-video-report-renderer",disableElementRegistration:!0})],oE);
_.Y(oE,"ytd-video-report-renderer",function(){if(k1A!==void 0)return k1A;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return k1A=y},{mode:1});var s9s;_.ZQ("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.ZQ("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var KN=function(){return _.u.apply(this,arguments)||this};
_.p(KN,_.u);KN.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]]"}}}}}};
KN.prototype.computeMessageStyle=function(y){return y};
KN.prototype.computeButtonOverride=function(y){var W;if((y==null?0:(W=y.style)==null?0:W.value)&&y.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KN.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],KN.prototype,"shelf",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],KN.prototype,"panel",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.R("design:type",Boolean)],KN.prototype,"componentStyle",void 0);_.J([_.q({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],KN.prototype,"buttonOverride",void 0);_.J([_.k({is:"ytd-message-renderer",disableElementRegistration:!0})],KN);
_.Y(KN,"ytd-message-renderer",function(){if(s9s!==void 0)return s9s;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return s9s=y},{mode:1});var pN=function(){return _.u.apply(this,arguments)||this};
_.p(pN,_.u);pN.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"}}}};
pN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
pN.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.CM.Object.defineProperties(pN.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!(((y=this.data)==null?0:y.header)&&((W=this.data)==null?0:W.table))}}});
pN.prototype.onRequestError=pN.prototype.onRequestError;_.J([_.m(_.gk),_.R("design:type",Object)],pN.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pN.prototype,"data",void 0);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],pN.prototype,"isUnifiedReportHistory",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pN.prototype,"onRequestError",null);_.J([_.k({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],pN);
_.Y(pN,"ytd-report-history-section-renderer",function(){if(xAA!==void 0)return xAA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xAA=y},{mode:1});var Aeq;var iv=function(){var y=_.u.apply(this,arguments)||this;y.answerExpanded=!1;return y};
_.p(iv,_.u);iv.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iv.prototype,"answerExpanded",void 0);_.J([_.k({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],iv);
_.Y(iv,"ytd-handles-claiming-faq-renderer",function(){if(Aeq!==void 0)return Aeq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Aeq=y},{mode:1});var YaQ;var BNR=function(){return _.u.apply(this,arguments)||this};
_.p(BNR,_.u);_.J([_.q(),_.R("design:type",Object)],BNR.prototype,"data",void 0);_.J([_.k({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],BNR);
_.Y(BNR,"ytd-handles-claiming-faq-section-renderer",function(){if(YaQ!==void 0)return YaQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YaQ=y},{mode:1});var JeI;var fN=function(){var y=_.u.apply(this,arguments)||this;y.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";y.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";y.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";y.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";y.leftSquiggly=y.leftSquigglyLight;y.rightSquiggly=y.rightSquigglyLight;
y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return y};
_.p(fN,_.u);_.E=fN.prototype;_.E.updateLeftSquigglyStyle=function(){_.qg(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.E.updateRightSquigglyStyle=function(){_.qg(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.E.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),y?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.E.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
fN.prototype.updateRightSquigglyStyle=fN.prototype.updateRightSquigglyStyle;fN.prototype.updateLeftSquigglyStyle=fN.prototype.updateLeftSquigglyStyle;_.J([_.q(),_.R("design:type",Object)],fN.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],fN.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",String)],fN.prototype,"leftSquiggly",void 0);_.J([_.q(),_.R("design:type",String)],fN.prototype,"rightSquiggly",void 0);
_.J([_.xA("leftSquiggly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fN.prototype,"updateLeftSquigglyStyle",null);_.J([_.xA("rightSquiggly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fN.prototype,"updateRightSquigglyStyle",null);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],fN.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fN.prototype,"actionButtonOverride",void 0);_.J([_.k({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],fN);
_.Y(fN,"ytd-handles-claiming-header-renderer",function(){if(JeI!==void 0)return JeI;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return JeI=y},{mode:1});var Rof;var T_=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";y.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";y.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";y.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
y.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";y.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";y.image0SquigglyBackground=y.image0LightSquigglyBackground;y.image1SquigglyBackground=y.image1LightSquigglyBackground;y.image3SquigglyBackground=y.image3LightSquigglyBackground;return y};
_.p(T_,_.u);_.E=T_.prototype;_.E.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.E.onDataChanged=function(){this.updateTitleAndImages()};
_.E.onThemeChanged=function(){this.updateTitleAndImages()};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
_.E.updateImage0SquigglyBackground=function(){_.qg(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.E.updateImage1SquigglyBackground=function(){_.qg(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.E.updateImage3SquigglyBackground=function(){_.qg(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.E.updateTitleAndImages=function(){var y,W;((y=this.data)==null?void 0:(W=y.titleImages)==null?void 0:W.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))};
T_.prototype.updateImage3SquigglyBackground=T_.prototype.updateImage3SquigglyBackground;T_.prototype.updateImage1SquigglyBackground=T_.prototype.updateImage1SquigglyBackground;T_.prototype.updateImage0SquigglyBackground=T_.prototype.updateImage0SquigglyBackground;T_.prototype.onThemeChanged=T_.prototype.onThemeChanged;T_.prototype.onDataChanged=T_.prototype.onDataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],T_.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],T_.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"title0",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"title1",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"title2",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"title3",void 0);
_.J([_.q(),_.R("design:type",Object)],T_.prototype,"title4",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"image0",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"image1",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"image2",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"image3",void 0);_.J([_.q(),_.R("design:type",Object)],T_.prototype,"image4",void 0);_.J([_.q(),_.R("design:type",String)],T_.prototype,"image0SquigglyBackground",void 0);
_.J([_.q(),_.R("design:type",String)],T_.prototype,"image1SquigglyBackground",void 0);_.J([_.q(),_.R("design:type",String)],T_.prototype,"image3SquigglyBackground",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T_.prototype,"onDataChanged",null);_.J([_.xA("isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T_.prototype,"onThemeChanged",null);
_.J([_.xA("image0SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T_.prototype,"updateImage0SquigglyBackground",null);_.J([_.xA("image1SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T_.prototype,"updateImage1SquigglyBackground",null);
_.J([_.xA("image3SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T_.prototype,"updateImage3SquigglyBackground",null);_.J([_.k({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],T_);
_.Y(T_,"ytd-handles-claiming-title-images-section-renderer",function(){if(Rof!==void 0)return Rof;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Rof=y},{mode:1});var j9s;var mw=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(mw,_.u);mw.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
mw.prototype.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y)};
mw.prototype.onCopyButtonClick=function(){var y=this,W,V,w;return _.g(function(t){return(W=y.data)!=null&&W.primaryChannelUrl?t.yield(navigator.clipboard.writeText(((V=y.data)==null?0:V.encodedChannelUrl)?y.data.encodedChannelUrl:"https://"+_.OT((w=y.data)==null?void 0:w.primaryChannelUrl)),0):t.jumpTo(0)})};
_.J([_.q(),_.R("design:type",Object)],mw.prototype,"data",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],mw.prototype,"ytComponentBehavior",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],mw.prototype,"isDarkTheme",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],mw.prototype,"ytActionHandlerBehavior",void 0);_.J([_.k({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],mw);
_.Y(mw,"ytd-handles-claiming-update-social-renderer",function(){if(j9s!==void 0)return j9s;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return j9s=y},{mode:1});var $Aq;var Mw=function(){var y=_.u.apply(this,arguments)||this;y.JSC$15899_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";y.JSC$15899_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.squigglyBackground=y.JSC$15899_squigglyBackgroundLight;return y};
_.p(Mw,_.u);Mw.prototype.updateSquigglyBackgroundStyle=function(){_.qg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Mw.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.squigglyBackground=y?this.JSC$15899_squigglyBackgroundDark:this.JSC$15899_squigglyBackgroundLight};
Mw.prototype.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),this.squigglyBackground=y?this.JSC$15899_squigglyBackgroundDark:this.JSC$15899_squigglyBackgroundLight)};
Mw.prototype.updateSquigglyBackgroundStyle=Mw.prototype.updateSquigglyBackgroundStyle;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Mw.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Mw.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Mw.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",String)],Mw.prototype,"squigglyBackground",void 0);_.J([_.xA("squigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mw.prototype,"updateSquigglyBackgroundStyle",null);_.J([_.k({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Mw);
_.Y(Mw,"ytd-handles-claiming-vanity-info-renderer",function(){if($Aq!==void 0)return $Aq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return $Aq=y},{mode:1});var nzR;var qw=function(){var y=_.u.apply(this,arguments)||this;y.JSC$15902_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";y.JSC$15902_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";y.squigglyBackground=y.JSC$15902_squigglyBackgroundLight;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(qw,_.u);_.E=qw.prototype;_.E.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),this.squigglyBackground=y?this.JSC$15902_squigglyBackgroundDark:this.JSC$15902_squigglyBackgroundLight)};
_.E.updateSquigglyBackgroundStyle=function(){_.qg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.E.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.E.detached=function(){this.stop()};
_.E.stop=function(){this.playerElement.stop()};
_.E.setupVideoPlayer=function(){var y=this,W,V;return _.g(function(w){W=y.data.videoId;V="http://i1.ytimg.com/vi/"+W+"/maxresdefault.jpg";y.playerElement.loadVideoWithPlayerVars({video_id:W,iurlhq:V});_.B7(w)})};
qw.prototype.onDataChanged=qw.prototype.onDataChanged;qw.prototype.updateSquigglyBackgroundStyle=qw.prototype.updateSquigglyBackgroundStyle;_.J([_.q({value:!1}),_.R("design:type",Boolean)],qw.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",String)],qw.prototype,"squigglyBackground",void 0);_.J([_.s$("#player"),_.R("design:type",Object)],qw.prototype,"playerElement",void 0);_.J([_.q(),_.R("design:type",Object)],qw.prototype,"data",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);_.J([_.xA("squigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qw.prototype,"updateSquigglyBackgroundStyle",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qw.prototype,"onDataChanged",null);
_.J([_.k({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],qw);
_.Y(qw,"ytd-handles-claiming-video-item-renderer",function(){if(nzR!==void 0)return nzR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nzR=y},{mode:1});var HZ6;var uv=function(){var y=_.YA.apply(this,arguments)||this;y.dragging=!1;y.dragMouseStart=0;y.dragOffsetStart=0;y.containerWidthDiff=0;y.boundPrevClick=function(){y.set("offset",Ub(y,y.offset-(y.scrollDistance||320)))};
y.boundNextClick=function(){y.set("offset",Ub(y,y.offset+(y.scrollDistance||320)))};
y.boundScrollContainerMouseDown=function(W){y.dragMouseStart=W.clientX;y.dragOffsetStart=y.offset;y.dragging=!0};
y.boundScrollContainerDrag=function(W){y.dragging&&y.set("offset",Ub(y,y.dragOffsetStart-(W.clientX-y.dragMouseStart)))};
y.boundMouseUp=function(){y.onMouseUp()};
y.boundWheelScroll=function(W){var V=0;Math.abs(W.deltaX)>=Math.abs(W.deltaY)?V=W.deltaX:W.shiftKey&&(V=W.deltaY);V!==0&&(y.offset+=V,W.stopPropagation(),W.preventDefault())};
y.boundChipCloudChipScrollIntoView=function(W){(W=W.detail)&&y.scrollChipIntoView(W)};
return y};
_.p(uv,_.YA);uv.prototype.attached=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container");y.addEventListener("wheel",this.boundWheelScroll);y.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);y.style.touchAction="pan-y";y.addEventListener("pointerdown",this.boundScrollContainerMouseDown);y.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
uv.prototype.detached=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container");y.removeEventListener("wheel",this.boundWheelScroll);y.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);y.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);y.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
uv.prototype.reset=function(){this.set("offset",0);_.gy(this,this.setContainerWidthDiff);S$(this)};
var Ub=function(y,W){return Math.min(Math.max(W,0),y.containerWidthDiff)};
uv.prototype.onMouseUp=function(){this.dragging=!1};
uv.prototype.transformContainer=function(){this.offset=Ub(this,this.offset);var y=_.yC("HTML_DIR")==="rtl"?"":"-";_.i6(this.hostElement).querySelector("#chips").style.transform="translateX("+y+this.offset+"px)";S$(this)};
var S$=function(y){_.gy(y,y.setButtonsState)};
uv.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Ub(this,this.offset));this.atStart=this.offset<=0};
uv.prototype.setContainerWidthDiff=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container"),W=_.i6(this.hostElement).querySelector("#chips");y&&W&&(this.containerWidthDiff=W.clientWidth-y.clientWidth)};
uv.prototype.scrollChipIntoView=function(y){var W=_.i6(this.hostElement).querySelector("#scroll-container");if(W){var V=this.atStart?0:106,w=this.atEnd?0:106;y.offsetLeft<this.offset+V?this.offset=Ub(this,y.offsetLeft-V):y.offsetLeft+y.clientWidth>this.offset+W.clientWidth-w&&(this.offset=Ub(this,y.offsetLeft+y.clientWidth+w-W.clientWidth))}};
uv.prototype.transformContainer=uv.prototype.transformContainer;_.J([_.q({value:0}),_.R("design:type",Number)],uv.prototype,"offset",void 0);_.J([_.q({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],uv.prototype,"atStart",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],uv.prototype,"atEnd",void 0);_.J([_.q(),_.R("design:type",Number)],uv.prototype,"scrollDistance",void 0);
_.J([_.xA("offset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uv.prototype,"transformContainer",null);_.J([_.BW()],uv);var XTJ;var acs;var bZE=_.eY(function(y){var W=y.data;y=_.N(_.M1(!1,void 0,"HDMMr"));var V=y.next().value,w=y.next().value;y={};y=_.kS("ytChipShapeChip",function(){a:switch(W==null?void 0:W().state){case 0:var F="ytChipShapeActive";break a;case 1:F="ytChipShapeDisabled";break a;default:F="ytChipShapeInactive"}return F},function(){var F=W().type===1||W().type===2,I=W();
return F||I!=null&&I.startIcon?I==null||!I.startIcon||I!=null&&I.text?F?"ytChipShapeEndIconPadding":(I==null?0:I.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(y.ytChipShapeFocused=function(){var F;
return V()&&((F=W())==null?void 0:F.state)!==1},y));
var t=function(F){if((W==null?void 0:W().state)!==1){var I,P;(P=(I=W()).onTap)==null||P.call(I,F)}};
return _.O("chip-shape",{class:"ytChipShapeHost","on:focusin":_.YS(function(){var F=_.hs().resolve(_.eX(_.MC));if(F){w(F.isKeyBoardInUse());var I,P;(P=(I=W()).onFocusIn)==null||P.call(I)}return!1}),
"on:focusout":_.YS(function(){w(!1);return!1})},_.O(G1f,{shouldWrapInButton:function(){return W().type!==2},
selected:function(){return W().state===0},
onClick:t,isDropdown:function(){return W().type===1},
accessibilityLabel:function(){return W().accessibilityLabel}},_.O("div",{class:y},_.O(_.v,{cond:function(){return W().startIcon},
then:function(){return _.O(_.jl,{icon:function(){var F;return(F=W())==null?void 0:F.startIcon},
className:function(){return W().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return W().text},_.O(ref,{shape:W,
onClick:t}),_.O(_.Ha,{model:{borderRadius:"8px"}}))))},"Ib");
bZE.idomCompat=!0;var G1f=_.eY(function(y){var W=_.YS(function(V){y.onClick(V);return!1});
return _.O(_.v,{cond:y.shouldWrapInButton,then:function(){return _.O("button",{class:"ytChipShapeButtonReset","on:click":W,role:function(){return y.isDropdown()?"combobox":"tab"},
"aria-label":y.accessibilityLabel,"aria-selected":y.selected},y.children)},
else:function(){return y.children}})},"Jb"),ref=_.eY(function(y){var W=y.shape;
var V=y.onClick;var w=_.YS(function(t){V(t);return!1});
return _.O(_.$V,null,_.O(_.BV,{when:function(){return W().type===1}},function(){return _.O(_.jl,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.O(_.BV,{when:function(){return W().type===2}},function(){return _.O("button",{class:"ytChipShapeButtonReset",
"on:click":w},_.O(_.jl,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.O(_.BV,{when:function(){return W().type===0}},function(){return _.O(_.o8,null)}))},"Kb");_.iF(bZE,"chip-shape",{props:{data:_.vB}});var Dd=function(){var y=_.u.apply(this,arguments)||this;y.disableDeselectEvent=!1;y.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return y};
_.p(Dd,_.u);_.E=Dd.prototype;_.E.onSelectChipCommand=function(y){if(!this.selected&&this.data&&(y=_.h(y,EGs),y.targetId&&y.targetId===this.data.targetId))this.onTap()};
_.E.onFilterChipTransformCommand=function(y){if(!this.selected&&this.data){var W;(y=(W=_.h(y,yPK))==null?void 0:W.chipUniqueId)&&y===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.E.dataChanged=function(){var y=this;_.gy(this,function(){y.data&&y.data.isSelected&&!y.selected&&(y.scrollChipIntoView(),y.onTap())})};
_.E.computeChipStyle=function(y){return y!=null?y:"STYLE_DEFAULT"};
_.E.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ow(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ow(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.E.onFocus=function(){var y=_.hs().resolve(_.eX(_.MC));y&&y.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.E.scrollChipIntoView=function(){_.h1(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.CM.Object.defineProperties(Dd.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Fny({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Dd.prototype.onFocus=Dd.prototype.onFocus;Dd.prototype.onTap=Dd.prototype.onTap;Dd.prototype.dataChanged=Dd.prototype.dataChanged;_.J([_.m(_.jx),_.R("design:type",Object)],Dd.prototype,"ironButtonState",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Dd.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Dd.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Bw),_.R("design:type",Object)],Dd.prototype,"ironA11yKeysBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dd.prototype,"disableDeselectEvent",void 0);_.J([_.q(),_.R("design:type",Object)],Dd.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.icon"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dd.prototype,"hasIcon",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.uniqueId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dd.prototype,"isGnomeChip",null);_.J([_.q({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.R("design:type",String)],Dd.prototype,"chipStyle",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dd.prototype,"selected",void 0);
_.J([_.M("data","selected"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dd.prototype,"chipShapeData",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dd.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dd.prototype,"onTap",null);
_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dd.prototype,"onFocus",null);_.J([_.Zp({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Dd);
_.Y(Dd,"yt-chip-cloud-chip-renderer",function(){if(acs===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;XTJ===void 0&&(XTJ=document.createElement("template"));var w=XTJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);acs=y}y=acs;return y},{mode:2});var lv=function(){var y=_.u.apply(this,arguments)||this;y.isDarkTheme=!1;y.notSticky=!1;y.transparentBackground=!1;y.shouldHide=!1;y.disableSticky=!1;y.fluidWidth=!1;y.isClipList=!1;y.defaultChipIndex=0;y.isPlaylist=!1;y.playlistVotingAnimationEnabled=_.e("web_enable_voting_animation");y.toolbarHeight=0;y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return y};
_.p(lv,_.u);_.E=lv.prototype;
_.E.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.E.attached=function(){var y=this;document.addEventListener("scroll",_.Dp(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var W;this.toolbarHeight=((W=document.querySelector("ytd-masthead"))==null?void 0:W.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(V){y.handleIntersect(V)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){y.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.E.detached=function(){var y;(y=this.intersectionObserver)==null||y.disconnect();var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("scroll",_.Dp(this,this.updateChipBarWidthAndTop))};
_.E.dataChanged=function(){var y=this,W,V,w;((w=_.h((W=this.data)==null?void 0:(V=W.contents)==null?void 0:V[0],ufi))==null?void 0:w.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var t=this.findSelectedChipIndex();this.selectedIndex!==t&&(this.selectedIndex=-1);_.gy(this,function(){y.selectedIndex=t;y.updating=!1;y.ytScrollableChipCloudBehavior.reset()})};
_.E.findSelectedChipIndex=function(){var y;if((y=this.data)==null||!y.contents)return 0;y=this.data.contents;for(var W=0;W<y.length;W++){var V=void 0;if((V=_.h(y[W],ufi))==null?0:V.isSelected)return W}return 0};
_.E.computeStyle=function(y){return y};
_.E.handleChipCloudChipSelectAction=function(y){y=this.JSC$15923_chipsSelector.indexOf(y);y>-1&&this.JSC$15923_chipsSelector.selectIndex(y)};
_.E.handleChipCloudChipDeselectAction=function(){if(_.e("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],ufi))==null?void 0:V.navigationEndpoint;w&&_.ow(this.hostElement,"yt-browse-section-list-reload-endpoint",[w]);this.JSC$15923_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.E.onGuideIsExpandedChanged=function(){var y=this.ytScrollableChipCloudBehavior;_.gy(y,y.setContainerWidthDiff);S$(this.ytScrollableChipCloudBehavior)};
_.E.onResize=function(){var y=this.ytScrollableChipCloudBehavior;_.gy(y,y.setContainerWidthDiff);S$(this.ytScrollableChipCloudBehavior)};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.E.handleIntersect=function(y){this.notSticky=this.isChannelPageGrid||this.disableSticky||y[0].intersectionRatio===1};
_.E.updateDimensions=function(){var y=this.ytRendererBehavior.parentComponent;if(y){var W,V=(W=y.headerElement)!=null?W:y;_.qg(this.hostElement,{"--ytd-rich-grid-chips-bar-width":V.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.E.updateSelectedIndexFromBinding=function(y){this.selectedIndex=y.detail.value};
_.E.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var y;(y=this.sortFilterHeaderRendererElement)==null||y.setAttribute("is-playlist-page-with-filters","")}};
_.E.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(O9K(!this.notSticky))};
_.CM.Object.defineProperties(lv.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 y,W,V=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:W.find(function(w){return _.h(w,k6E)});
return{sortFilterHeaderRenderer:_.h(V,k6E)}}}});
lv.prototype.dispatchChipBarIsSticky=lv.prototype.dispatchChipBarIsSticky;lv.prototype.isPlaylistPageChanged=lv.prototype.isPlaylistPageChanged;lv.prototype.updateChipBarWidthAndTop=lv.prototype.updateChipBarWidthAndTop;lv.prototype.onResize=lv.prototype.onResize;lv.prototype.onGuideIsExpandedChanged=lv.prototype.onGuideIsExpandedChanged;lv.prototype.dataChanged=lv.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],lv.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],lv.prototype,"ironResizableBehavior",void 0);_.J([_.m(),_.R("design:type",uv)],lv.prototype,"ytScrollableChipCloudBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],lv.prototype,"ytdReduxBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],lv.prototype,"data",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],lv.prototype,"selectedIndex",void 0);_.J([_.q({value:320}),_.R("design:type",Number)],lv.prototype,"scrollDistance",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"notSticky",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"transparentBackground",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.R("design:type",String)],lv.prototype,"componentStyle",void 0);_.J([_.q({selector:_.i3y}),_.R("design:type",Boolean)],lv.prototype,"guideIsExpanded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"shouldHide",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"disableSticky",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"fluidWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"isClipList",void 0);_.J([_.q(),_.R("design:type",Object)],lv.prototype,"defaultChipIndex",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lv.prototype,"isPlaylist",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],lv.prototype,"playlistVotingAnimationEnabled",void 0);_.J([_.s$("#chips"),_.R("design:type",Object)],lv.prototype,"JSC$15923_chipsSelector",void 0);_.J([_.s$("ytd-sort-filter-header-renderer"),_.R("design:type",HTMLElement)],lv.prototype,"sortFilterHeaderRendererElement",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],lv.prototype,"updating",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"dataChanged",null);_.J([_.xA("guideIsExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"onGuideIsExpandedChanged",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"onResize",null);
_.J([_.Jc("isChannelPageGrid","disableSticky","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"updateChipBarWidthAndTop",null);_.J([_.M("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lv.prototype,"isChannelPageGrid",null);_.J([_.M("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lv.prototype,"isHashtagLandingPage",null);
_.J([_.xA("isPlaylistPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"isPlaylistPageChanged",null);_.J([_.M("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lv.prototype,"isPlaylistPage",null);_.J([_.M("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lv.prototype,"isDisableDeselectEvent",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],lv.prototype,"sortFilterHeaderRendererData",null);_.J([_.q({reflectToAttribute:!0,selector:_.Uxj}),_.R("design:type",String)],lv.prototype,"frostedGlassMode",void 0);_.J([_.xA("notSticky"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lv.prototype,"dispatchChipBarIsSticky",null);_.J([_.k({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],lv);
_.Y(lv,"ytd-feed-filter-chip-bar-renderer",function(){if(HZ6!==void 0)return HZ6;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return HZ6=y},{mode:1});var Q9R;var ZZm=_.eY(function(y){var W=y.data;var V=y.buttonIndex;var w=y.selectedIndex;var t=y.onSelect;var F=function(){return V()===w()},I=function(){var P,C;
return(C=(P=W().text)==null?void 0:P.content)!=null?C:""};
y=_.Dyv();return _.O("yt-toggleable-image-button-view-model",{class:function(){var P={};P=(P["toggleable-image-button-view-model-wiz"]=!0,P[""]=!0,P["toggleable-image-button-view-model-wiz__semi-transparent"]=w()!==-1&&!F(),P);return _.sU(P)},
tabindex:0,"aria-label":I,"aria-pressed":F,role:"button","on:keydown":y,"on:click":_.YS(function(){t(W().onSubmitCommand);return!1})},_.O(_.v,{cond:function(){return W().logo},
then:function(P){return _.O(_.ca,{data:P,className:function(){var C={};C=(C["toggleable-image-button-view-model-wiz__image"]=!0,C["toggleable-image-button-view-model-wiz__circular-radius"]=!(!W().backgroundColor||!W().backgroundColorDarkMode),C["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(F()&&W().backgroundColor&&W().backgroundColorDarkMode),C);return _.sU(C)},
alt:I,useWidth:!1,style:function(){if(F()&&W().backgroundColor&&W().backgroundColorDarkMode){var C=tc(Number(W().backgroundColorDarkMode),"1");var d=tc(Number(W().backgroundColor),"1");C="background: linear-gradient(180deg,"+C+","+d+") border-box;"}else C="";return C}})}}),_.O(_.Ha,{model:{borderRadius:"16px"}}),_.O("p",{class:function(){var P={};
P=(P["toggleable-image-button-view-model-wiz__label"]=!0,P["toggleable-image-button-view-model-wiz__bold-text"]=F(),P);return _.sU(P)}},_.O(_.Lv,{text:function(){return W().text}})))},"Lb");
ZZm.idomCompat=!0;var WAR=_.eY(function(y){var W=y.data;y=_.N(_.M1({index:-1,command:{}},void 0,"Zcqtsb"));var V=y.next().value,w=y.next().value;return _.O("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.O("div",{class:"nudge-form-view-model-wiz__form-options"},_.O(_.Q7,{data:function(){return W().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(t,F){return _.O(ZZm,{data:t.data,buttonIndex:F,selectedIndex:function(){return V().index},
onSelect:function(I){w({index:F(),command:I})}})}})),_.O(_.Lv,{text:function(){return W().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.O("div",{class:"nudge-form-view-model-wiz__submit"},_.O(_.Q7,{data:function(){return W().submitButton}},{buttonViewModel:function(t){return _.O(yHm,{data:t.data,
isDisabled:function(){return V().index===-1},
onClick:function(){_.Id(V().command)}})}})))},"Mb");
WAR.idomCompat=!0;var yHm=_.eY(function(y){var W=_.DZ(function(){return Object.assign({},y.data(),{state:y.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.O(_.lk,{data:W,onClick:y.onClick})},"Nb");_.iF(WAR,"yt-nudge-form-view-model",{props:{data:_.vB}});var xZ=function(){var y=_.u.apply(this,arguments)||this;y.roundedContainer=!0;y.buttonUpdate=_.e("web_modern_buttons");y.isDarkMode=!1;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return y};
_.p(xZ,_.u);_.E=xZ.prototype;_.E.computeNudgeStyle=function(y){return y?"modernized-nudge":""};
_.E.handleDarkModeToggledAction=function(y){this.isDarkMode=y};
_.E.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.E.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"}}}};
_.E.computeIsHorizontalButtons=function(y){return y?!!y.applyModernizedStyle&&!!y.enableHorizontalButtons&&!!y.secondaryButton:!1};
_.CM.Object.defineProperties(xZ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.backgroundStyle)!=null?W:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.contentsLocation)!=null?W:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null?0:y.lightIconImage)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],xZ.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],xZ.prototype,"actionHandlerBehavior",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("isHideEnclosingAction"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],xZ.prototype,"isHidden",null);_.J([_.q(),_.R("design:type",Object)],xZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xZ.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xZ.prototype,"buttonUpdate",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.R("design:type",String)],xZ.prototype,"nudgeStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.trimStyle"),_.R("design:type",String),_.R("design:paramtypes",[])],xZ.prototype,"trimStyle",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.backgroundStyle"),_.R("design:type",String),_.R("design:paramtypes",[])],xZ.prototype,"backgroundStyle",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.contentsLocation"),_.R("design:type",String),_.R("design:paramtypes",[])],xZ.prototype,"contentsLocation",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.disableDropShadow"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],xZ.prototype,"noShadow",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.lightIconImage"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],xZ.prototype,"noIcon",null);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.R("design:type",Boolean)],xZ.prototype,"isHorizontalButtons",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],xZ.prototype,"isDarkMode",void 0);_.J([_.k({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],xZ);
_.Y(xZ,"ytd-feed-nudge-renderer",function(){if(Q9R!==void 0)return Q9R;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Q9R=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var Vps;var wFz;var kZ=function(){var y=_.u.apply(this,arguments)||this;y.collapsed=!1;y.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return y};
_.p(kZ,_.u);kZ.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"}}}};
kZ.prototype.handleRatingSelect=function(){var y;((y=this.data)==null?0:y.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
kZ.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],kZ.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],kZ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.V$),_.R("design:type",Object)],kZ.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],kZ.prototype,"collapsed",void 0);_.J([_.k({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],kZ);
_.Y(kZ,"ytd-slimline-survey-renderer",function(){if(wFz!==void 0)return wFz;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wFz=y},{mode:1});var tpR;var sb=function(){return _.u.apply(this,arguments)||this};
_.p(sb,_.u);sb.prototype.maybeGetBackgroundColor=function(y){return this.isDarkMode?y.section2Color:y.section3Color};
sb.prototype.colorPaletteChanged=function(){var y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;y&&(y==null?0:y.secondaryTitleColor)&&this.maybeGetBackgroundColor(y)?(this.hostElement.style.backgroundColor=_.V2(this.maybeGetBackgroundColor(y)),this.hostElement.style.color=_.V2(y.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
sb.prototype.colorPaletteChanged=sb.prototype.colorPaletteChanged;_.J([_.m(_.y$),_.R("design:type",Object)],sb.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sb.prototype,"data",void 0);_.J([_.q({selector:function(y){return y.ui.darkModeIsEnabled}}),
_.R("design:type",Boolean)],sb.prototype,"isDarkMode",void 0);_.J([_.q(),_.R("design:type",Object)],sb.prototype,"lightColorPalette",void 0);_.J([_.q(),_.R("design:type",Object)],sb.prototype,"darkColorPalette",void 0);_.J([_.xA("darkColorPalette","lightColorPalette","data","isDarkMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sb.prototype,"colorPaletteChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],sb);
_.Y(sb,"ytd-endorsement-header-renderer",function(){if(tpR!==void 0)return tpR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return tpR=y},{mode:1});_.iF(_.bV,"yt-decorated-avatar-view-model",{props:{data:_.vB,className:_.vB}});var AE=function(){var y=_.u.apply(this,arguments)||this;y.fullHeight=_.e("web_rich_grid_media_full_height");y.showChannelAvatar=!0;y.hasPlaylistThumbnail=!1;y.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};y.prepareThumbnailForPageTransition=function(){_.e("web_thumbnail_to_watch_transition")&&(y.thumbnail.style.viewTransitionName="thumbnail-to-watch",y.cleanupThumbnailAfterPageTransition(y.thumbnail))};
return y};
_.p(AE,_.u);_.E=AE.prototype;
_.E.configureRendererStamper=function(){return{lazyLoadMenu:kq,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"}}}};
_.E.attached=function(){this.updateInlinePreviewHoverListeners()};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.shouldLazyLoadMenu=function(){var y=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.e("kevlar_modern_downloads_page")||!y};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15948_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.JSC$15948_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.E.getVideoPreviewOpts=function(){var y={},W;if((W=this.data)==null?0:W.multipleInlinePlaybackEndpoint)y=Qr6;this.isRadio&&(y=bQr);return _.e("web_thumbnail_to_watch_transition")?Object.assign({},y,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):y};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15948_inlinePreviewHoverListener)==null||cm(y)};
_.E.getOwner=function(){var y,W,V;return((y=this.data)==null?void 0:(W=y.channelThumbnailSupportedRenderers)==null?void 0:W.channelThumbnailWithLinkRenderer)||_.h((V=this.data)==null?void 0:V.showProviderChannelThumbnail,CWA)};
_.E.updateLockupSize=function(){var y;((y=this.getOwner())==null?0:y.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.E.getFeedbackEndpoint=function(y){if(_.h(y,_.bw))return y;var W,V;y=(V=(W=_.h(y,_.mR))==null?void 0:W.commands)!=null?V:[];W=_.N(y);for(V=W.next();!V.done;V=W.next())if(V=this.getFeedbackEndpoint(V.value))return V;return null};
_.E.computeNavigationEndpoint=function(y){return Ufy(y==null?void 0:y.navigationEndpoint)};
_.E.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var y=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(y)!==JSON.stringify(this.data)&&this.set("data",y)}};
_.E.onDataChanged=function(){var y=this,W=this.getOwner();if(W){this.set("data.owner",W);var V,w,t,F,I,P=((V=this.data)==null?void 0:(w=V.shortBylineText)==null?void 0:(t=w.runs)==null?void 0:(F=t[0])==null?void 0:F.text)||((I=W.name)==null?void 0:I.simpleText);this.set("data.owner.title",P)}var C,d,L,z,c,K;W=((C=this.data)==null?void 0:(d=C.thumbnailRenderer)==null?void 0:d.playlistVideoThumbnailRenderer)||((L=this.data)==null?void 0:(z=L.thumbnailRenderer)==null?void 0:z.playlistCustomThumbnailRenderer)||
((c=this.data)==null?void 0:(K=c.thumbnailRenderer)==null?void 0:K.showCustomThumbnailRenderer);var f;((f=this.data)==null?0:f.thumbnail)||!W||this.set("data.thumbnail",W.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){y.updateLockupSize()});
var U;if(C=((U=this.data)==null?void 0:U.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C);var l;((l=this.dismissActionToReplayEntity)==null?0:l.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.E.onHiddenChanged=function(){this.updateLockupSize()};
_.E.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ow(this.hostElement,"yt-terminate-video-preview-action");else{var y;(y=this.videoTitleLink)==null||y.focus()}};
_.E.metadataColorChanged=function(){var y;if(this.metadataColor&&((y=this.videoTitle)==null?0:y.style))this.videoTitle.style.color=_.V2(this.metadataColor);else{var W,V;!this.metadataColor&&((W=this.videoTitle)==null?0:(V=W.style)==null?0:V.color)&&(this.videoTitle.style.color="")}};
_.E.onDetailsClick=function(y){var W=this.computedNavigationEndpoint;W&&(_.c5(_.O$(y),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.h1(this.hostElement,"yt-navigate",{endpoint:W}))};
_.E.cleanupThumbnailAfterPageTransition=function(y){_.UMz(document,"yt-page-type-changed",function(){y.style.viewTransitionName=""})};
_.E.onRendererTap=function(){this.prepareThumbnailForPageTransition();var y,W,V=((y=this.data)==null?void 0:y.serviceEndpoint)||this.getFeedbackEndpoint((W=this.data)==null?void 0:W.navigationEndpoint);V&&_.h(V,_.bw)&&this.ytComponentBehavior.resolveCommand(V)};
_.E.onMouseDown=function(y){var W=y.target,V=this.computedNavigationEndpoint,w;y=W.href||((w=_.h(V==null?void 0:V.commandMetadata,_.dw))==null?void 0:w.url);w=W.data||V;y&&w&&JIG(y,w)};
_.E.computeVideoTitleText=function(){var y;if((y=this.data)==null?0:y.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.E.computeHasPlaylistThumbnail=function(y){var W,V,w,t,F;if((((W=y.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((V=y.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer)||((w=y.thumbnailRenderer)==null?0:w.showCustomThumbnailRenderer)||((t=y.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((F=y.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer))&&y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(V=void 0,(V=y.thumbnailOverlays[W])==
null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.CM.Object.defineProperties(AE.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.e("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var y;return(y=this.data)==null?void 0:y.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var y;return(y=this.data)==null?void 0:y.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15948_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.x1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.videoId)||((W=this.data)==null?void 0:W.playlistId)||""}}});
AE.prototype.onMouseDown=AE.prototype.onMouseDown;AE.prototype.metadataColorChanged=AE.prototype.metadataColorChanged;AE.prototype.onIsDismissedChanged=AE.prototype.onIsDismissedChanged;AE.prototype.onHiddenChanged=AE.prototype.onHiddenChanged;AE.prototype.onDataChanged=AE.prototype.onDataChanged;AE.prototype.handleReloadDownloadsInfo=AE.prototype.handleReloadDownloadsInfo;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],AE.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],AE.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],AE.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],AE.prototype,"ytdReduxBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],AE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],AE.prototype,"entitySelectorType",void 0);_.J([_.q(),_.R("design:type",Boolean)],AE.prototype,"noEndpoints",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],AE.prototype,"isRadio",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],AE.prototype,"miniMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],AE.prototype,"fullHeight",void 0);
_.J([_.q(),_.R("design:type",Boolean)],AE.prototype,"showDarkVideoMetadata",void 0);_.J([_.q(),_.R("design:type",Boolean)],AE.prototype,"showLightVideoMetadata",void 0);_.J([_.q(),_.R("design:type",Number)],AE.prototype,"metadataColor",void 0);_.J([_.q(),_.R("design:type",Object)],AE.prototype,"showChannelAvatar",void 0);_.J([_.q(),_.R("design:type",Boolean)],AE.prototype,"hidden",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],AE.prototype,"showYtInteraction",void 0);
_.J([_.q(),_.R("design:type",String)],AE.prototype,"dismissedContentId",void 0);_.J([_.q({selectorArgs:["dismissedContentId"],selector:usL}),_.R("design:type",Object)],AE.prototype,"dismissActionToReplayEntity",void 0);
_.J([_.q({selectorArgs:["entitySelectorType","mediaId"],selector:function(y,W,V){if(_.e("kevlar_modern_downloads_page")&&V&&W&&W!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var w=lNn(y,V);if(w){W=_.yY(y,V);var t=VY(y,V),F=H3R(y,V);y=wP(y,V);var I=pPj(w,W,t,F);t=I.shortViewCountText;var P=I.publishedTimeText;I=I.badges;var C=y>0;F=oKa(w,W,F,y);w=_.YC(W)||W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Az(w.policyEntity)?
void 0:MxL(V,y,w.videoEntity.lengthSeconds);W==="TRANSFER_STATE_PAUSED_BY_USER"&&V&&!_.e("dl_resume_click_killswitch")&&(w={offlineVideoEndpoint:{videoId:V,action:"ACTION_RESUME"}});V={shortViewCountText:t,publishedTimeText:P,badges:I,isWatched:C,navigationEndpoint:w,thumbnailOverlays:F}}else V=void 0;return V;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(W=xxj(y,V))if(w=_.W9(y,V),F=_.kd4(y,V),w!=="TRANSFER_STATE_UNKNOWN"){V=KPz(W,w,F,V,_.ZH(y));break a}V=void 0}return V;default:_.rQ(new _.Js("Error: entitySelectorType defined but not matched in selector.",
y,W))}}}),
_.R("design:type",Object)],AE.prototype,"entityDrivenState",void 0);_.J([_.q({computed:"computeVideoTitleText(data)"}),_.R("design:type",Object)],AE.prototype,"videoTitleText",void 0);_.J([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.R("design:type",Object)],AE.prototype,"hasPlaylistThumbnail",void 0);_.J([_.q({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],AE.prototype,"computedNavigationEndpoint",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],AE.prototype,"typographyBump",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("typographyBump"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],AE.prototype,"typographyBumpV2",null);_.J([_.s$("#video-title"),_.R("design:type",HTMLElement)],AE.prototype,"videoTitle",void 0);_.J([_.s$("#video-title-link"),_.R("design:type",HTMLElement)],AE.prototype,"videoTitleLink",void 0);
_.J([_.s$("#thumbnail"),_.R("design:type",HTMLElement)],AE.prototype,"thumbnail",void 0);_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],AE.prototype,"JSC$15948_dismissibleMedia",void 0);_.J([_.M("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],AE.prototype,"lazyLoadMenu",null);_.J([_.M("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],AE.prototype,"immediateLoadMenu",null);
_.J([_.Jc("entityDrivenState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AE.prototype,"handleReloadDownloadsInfo",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AE.prototype,"onDataChanged",null);_.J([_.Jc("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AE.prototype,"onHiddenChanged",null);
_.J([_.xA("isDismissed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AE.prototype,"onIsDismissedChanged",null);_.J([_.xA("metadataColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AE.prototype,"metadataColorChanged",null);_.J([_.l6("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],AE.prototype,"onMouseDown",null);
_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],AE.prototype,"isHovered",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],AE.prototype,"useAvatar",null);_.J([_.M("data","entitySelectorType"),_.R("design:type",String),_.R("design:paramtypes",[])],AE.prototype,"mediaId",null);_.J([_.k({is:"ytd-rich-grid-media",disableElementRegistration:!0})],AE);
var FAE=_.MM()(AE,"ytd-rich-grid-media",function(){if(Vps!==void 0)return Vps;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Vps=y},{mode:_.qM("kevlar_poly_si_batch_j072")?1:2});var EbJ;var YZ=function(){var y=_.u.apply(this,arguments)||this;y.removeMaxWidth=!0;y.insetMetadata=!1;return y};
_.p(YZ,_.u);_.E=YZ.prototype;_.E.configureRendererStamper=function(){return{innerMenu:kq,outerMenu:Object.assign({},kq,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.E.onDataChanged=function(){var y,W=((y=this.data)==null?void 0:y.trackingParams)||"";W&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(W));var V;((V=this.dismissActionToReplayEntity)==null?0:V.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.E.attached=function(){this.updateInlinePreviewHoverListeners()};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15953_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.JSC$15953_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ZQq})};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15953_inlinePreviewHoverListener)==null||cm(y)};
_.E.onRendererTap=function(){var y,W,V=(y=this.data)==null?void 0:(W=y.serviceEndpoints)==null?void 0:W[0];_.h(V,_.bw)&&this.componentBehavior.resolveCommand(V)};
_.E.onDetailsClick=function(y){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;V&&(_.c5(_.O$(y),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(V))};
_.E.onShow=function(){var y=this.data;y.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(y.onFirstVisibleCommand),delete y.onFirstVisibleCommand)};
_.CM.Object.defineProperties(YZ.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var y;return this.insetMetadata?void 0:(y=this.data)==null?void 0:y.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var y;return this.insetMetadata?(y=this.data)==null?void 0:y.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var y=this.data;if(y!=null&&y.badge&&(y=_.h(y.badge,i$f))){var W,V,w;return[{metadataBadgeRenderer:{label:((W=y.label)==null?void 0:(V=W.runs)==null?void 0:V[0].text)||((w=y.label)==null?void 0:w.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var y=this.data;return Object.assign({},y.headline,{accessibility:y.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return this.isSlimShort?(y=this.computedTitle)==null?void 0:(W=y.accessibility)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.e("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15953_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
YZ.prototype.onDataChanged=YZ.prototype.onDataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],YZ.prototype,"componentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],YZ.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],YZ.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.V$),_.R("design:type",Object)],YZ.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],YZ.prototype,"ytdReduxBehavior",void 0);_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],YZ.prototype,"thumbnail",void 0);_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],YZ.prototype,"JSC$15953_dismissibleMedia",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],YZ.prototype,"removeMaxWidth",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],YZ.prototype,"insetMetadata",void 0);_.J([_.q(),_.R("design:type",String)],YZ.prototype,"dismissedContentId",void 0);_.J([_.q({selectorArgs:["dismissedContentId"],selector:usL}),_.R("design:type",Object)],YZ.prototype,"dismissActionToReplayEntity",void 0);_.J([_.M("insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"thumbnailObjectFit",null);
_.J([_.M("data","insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"innerMenu",null);_.J([_.M("data","insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"outerMenu",null);_.J([_.q(),_.R("design:type",Object)],YZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],YZ.prototype,"miniMode",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YZ.prototype,"onDataChanged",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"shortsBadges",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],YZ.prototype,"isShort",null);
_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],YZ.prototype,"isSlimShort",null);_.J([_.M("data","isShort"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"computedTitle",null);_.J([_.M("isSlimShort","computedTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],YZ.prototype,"computedAccessibilityLabel",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],YZ.prototype,"shouldForce2By3",null);_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],YZ.prototype,"isHovered",null);_.J([_.k({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],YZ);
_.Y(YZ,"ytd-rich-grid-slim-media",function(){if(EbJ!==void 0)return EbJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return EbJ=y},{mode:_.qM("kevlar_poly_si_batch_j063")?1:2});var NAJ;var IzR;var BD=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(BD,_.u);BD.prototype.computeIcon=function(y){return y&&y.iconType?"yt-sys-icons:"+y.iconType.toLowerCase():""};
BD.prototype.onMouseEnter=function(){this.isHovered=!0};
BD.prototype.onMouseLeave=function(){this.isHovered=!1};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],BD.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BD.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],BD.prototype,"isHovered",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"darkerDarkTheme",void 0);_.J([_.k({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],BD);
_.Y(BD,"ytd-expand-on-hover-card-renderer",function(){if(IzR!==void 0)return IzR;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return IzR=y},{mode:1});var gbQ,PDr=function(){if(gbQ!==void 0)return gbQ;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return gbQ=y};_.ZQ("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var JE=function(){var y=_.u.apply(this,arguments)||this;y.compactStyle=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(JE,_.u);_.E=JE.prototype;_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.E.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"}}}};
_.E.computeHideDot=function(y){return!(y&&y.subscriberCountText&&y.videoCountText)||this.compactStyle};
_.E.hasDualButtons=function(y){return y&&y.purchaseButton&&y.subscribeButton};
_.E.backgroundColorChanged=function(){if(this.data!==void 0){var y=this.data.backgroundColor;this.isDarkTheme&&(y=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=y!=null?_.V2(y):"transparent"}};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.onTap=function(y){var W,V,w=((W=this.data)==null?void 0:W.navigationEndpoint)||((V=this.data)==null?void 0:V.serviceEndpoint);_.h(w,_.Kv)&&(w&&_.hs().resolve(_.oA).resolveCommand(w,{form:{element:this.hostElement}}),y.preventDefault())};
_.E.computeChannelEndpoint=function(y){return _.h(y,_.Kv)?null:y};
_.E.computeHrefEndpoint=function(y){return _.h(y,_.Kv)?null:this.componentBehavior.computeHref_(y)};
_.E.computeChannelRendererStyle=function(y){return y};
_.E.computeIconSize=function(y){return y?108:136};
_.CM.Object.defineProperties(JE,{template:{configurable:!0,enumerable:!0,get:function(){return PDr()}}});
JE.prototype.backgroundColorChanged=JE.prototype.backgroundColorChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],JE.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],JE.prototype,"componentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],JE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],JE.prototype,"isDarkTheme",void 0);_.J([_.q({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.R("design:type",String)],JE.prototype,"channelRendererStyle",void 0);_.J([_.q({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],JE.prototype,"dualButtons",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],JE.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],JE.prototype,"biggerThumbStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],JE.prototype,"compactStyle",void 0);_.J([_.xA("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JE.prototype,"backgroundColorChanged",null);_.J([_.k({is:"ytd-channel-renderer",disableElementRegistration:!0})],JE);_.Y(JE,"ytd-channel-renderer",function(){return PDr()},{mode:1});var CDm;var OSE;_.ZQ("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var RE=function(){var y=_.u.apply(this,arguments)||this;y.displayItemCount=2;y.collections=_.e("web_modern_collections_v2");y.hasPlaylistThumbnail=!1;y.stackThumbnailSize="large";return y};
_.p(RE,_.u);_.E=RE.prototype;_.E.attached=function(){this.updateInlinePreviewHoverListeners()};
_.E.detached=function(){this.clearInlinePreviewHoverListeners()};
_.E.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.E.computeFirstVideos=function(y,W){return y&&W?y.slice(0,W):[]};
_.E.computeThumbnailWidth=function(y,W){return y?W==="BIG"?500:W==="MASSIVE"?600:W==="MEDIUM"?450:420:360};
_.E.computeThumbnailHeight=function(y,W){return y?W==="BIG"?280:W==="MASSIVE"?337:234:202};
_.E.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$15966_inlinePreviewHoverListener)==null||cm(y)};
_.E.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15966_inlinePreviewHoverListener=NU({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Qr6,thumbnailElement:this.thumbnail})};
_.E.computeHasPlaylistThumbnail=function(y){var W,V;if((((W=y.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((V=y.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(V=void 0,(V=y.thumbnailOverlays[W])==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.CM.Object.defineProperties(RE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$15966_inlinePreviewHoverListener)==null?0:WG(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
RE.prototype.dataChanged=RE.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],RE.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],RE.prototype,"displayItemCount",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],RE.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],RE.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],RE.prototype,"collections",void 0);_.J([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.R("design:type",Object)],RE.prototype,"hasPlaylistThumbnail",void 0);_.J([_.q(),_.R("design:type",String)],RE.prototype,"stackThumbnailSize",void 0);_.J([_.s$("ytd-thumbnail"),_.R("design:type",HTMLElement)],RE.prototype,"thumbnail",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RE.prototype,"dataChanged",null);_.J([_.M("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],RE.prototype,"isHovered",null);_.J([_.k({is:"ytd-radio-renderer",disableElementRegistration:!0})],RE);
_.Y(RE,"ytd-radio-renderer",function(){if(OSE!==void 0)return OSE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return OSE=y},{mode:_.qM("kevlar_poly_si_batch_j058")?1:2});var vbA;_.ZQ("itemSectionRenderer","showRenderer","ytd-show-renderer");var j$=function(){return _.u.apply(this,arguments)||this};
_.p(j$,_.u);j$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
j$.prototype.computeThumbnailWidth=function(y){return y?360:246};
j$.prototype.computeUseProminentThumbs=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],j$.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],j$.prototype,"isSearch",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.R("design:type",Boolean)],j$.prototype,"useProminentThumbs",void 0);_.J([_.k({is:"ytd-show-renderer",disableElementRegistration:!0})],j$);
_.Y(j$,"ytd-show-renderer",function(){if(vbA!==void 0)return vbA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vbA=y},{mode:1});_.ZQ("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var $Z=function(){var y=_.u.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.p($Z,_.u);$Z.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"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$Z.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$Z.prototype,"isRichGrid",void 0);_.J([_.k({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],$Z);
_.Y($Z,"ytd-feed-entry-renderer",function(){if(CDm!==void 0)return CDm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return CDm=y},{mode:1});var dsK;var nN=function(){return _.u.apply(this,arguments)||this};
_.p(nN,_.u);nN.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.J([_.m(_.y$),_.R("design:type",Object)],nN.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nN.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.r5,value:3}),_.R("design:type",Number)],nN.prototype,"itemsPerRow",void 0);
_.J([_.k({is:"ytd-link-card-renderer",disableElementRegistration:!0})],nN);
_.Y(nN,"ytd-link-card-renderer",function(){if(dsK!==void 0)return dsK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dsK=y},{mode:1});var LAz;var HD=function(){return _.u.apply(this,arguments)||this};
_.p(HD,_.u);_.E=HD.prototype;_.E.configureRendererStamper=function(){return{"data.menu":kq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.E.onRendererTap=function(y){if(!this.ytdDismissibleItemBehavior.isDismissed){var W,V=(W=this.data)==null?void 0:W.navigationEndpoint;V&&!_.c5(_.O$(y),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(V)?_.c5(_.O$(y),this.hostElement,["A"])||_.h1(this.hostElement,"yt-navigate",{endpoint:V}):this.ytComponentBehavior.resolveCommand(V,{}))}};
_.E.maybeComputeHref=function(y){return this.ytComponentBehavior.computeHref_(y,!0)};
_.E.getNavigationCommand=function(y){return this.isNavigationCommand(y)?y:null};
_.E.isNavigationCommand=function(y){return y?_.h(y,_.sT)||_.h(y,_.Iw)||_.h(y,_.wS)?!0:!1:!1};
HD.prototype.onRendererTap=HD.prototype.onRendererTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],HD.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],HD.prototype,"data",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],HD.prototype,"onRendererTap",null);_.J([_.k({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],HD);
_.Y(HD,"ytd-lumiere-promo-item-image-renderer",function(){if(LAz!==void 0)return LAz;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return LAz=y},{mode:1});var zVr;var XQ=function(){return _.u.apply(this,arguments)||this};
_.p(XQ,_.u);XQ.prototype.computeLandscapeThumbnail=function(){var y;return((y=this.data)==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],XQ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XQ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],XQ.prototype,"miniMode",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.r5}),_.R("design:type",Number)],XQ.prototype,"itemsPerRow",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.R("design:type",Boolean)],XQ.prototype,"landscapeThumbnail",void 0);_.J([_.k({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],XQ);
_.Y(XQ,"ytd-lumiere-shelf-details-renderer",function(){if(zVr!==void 0)return zVr;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zVr=y},{mode:_.qM("kevlar_poly_si_batch_j076")?1:2});var cHK;var aE=function(){return _.u.apply(this,arguments)||this};
_.p(aE,_.u);aE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aE.prototype,"data",void 0);_.J([_.k({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],aE);
_.Y(aE,"ytd-primetime-promo-details-renderer",function(){if(cHK!==void 0)return cHK;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cHK=y},{mode:1});var eVQ;var G_=function(){return _.u.apply(this,arguments)||this};
_.p(G_,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],G_.prototype,"data",void 0);_.J([_.k({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],G_);
_.Y(G_,"ytd-panel-show-style-metadata-renderer",function(){if(eVQ!==void 0)return eVQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return eVQ=y},{mode:1});var hVs;var rO=function(){return _.u.apply(this,arguments)||this};
_.p(rO,_.u);_.E=rO.prototype;_.E.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.E.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.E.computeThumbnail=function(y){if(y)return y.smallFormFactorBackgroundThumbnail||y.largeFormFactorBackgroundThumbnail};
_.E.maybeComputeHref=function(y){return this.ytComponentBehavior.computeHref_(y,!0)};
_.E.isNavigationCommand=function(y){return y?_.h(y,_.sT)||_.h(y,_.Iw)||_.h(y,_.wS)?!0:!1:!1};
_.E.getNavigationCommand=function(y){return this.isNavigationCommand(y)?y:null};
rO.prototype.onPanelTap=rO.prototype.onPanelTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rO.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],rO.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.R("design:type",Boolean)],rO.prototype,"modernButtons",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rO.prototype,"onPanelTap",null);_.J([_.k({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],rO);
_.Y(rO,"ytd-primetime-promo-panel-renderer",function(){if(hVs!==void 0)return hVs;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hVs=y},{mode:1});_.iF(_.eY(function(y){y=_.zb(y,{data:{},useFullWidth:!1});var W=y.data,V=y.useFullWidth;y={};return _.O("teaser-card-view-model",{class:_.kS("ytTeaserCardViewModelHost",(y.ytTeaserCardViewModelUseFullWidth=function(){return V()},y))},_.O(_.v,{cond:function(){return W().onTap},
then:function(w){return _.O(_.It,{className:"ytTeaserCardViewModelLink",command:w},_.O("div",{class:"ytTeaserCardViewModelImageContainer"},_.O(_.v,{cond:function(){return W().image},
then:function(t){return _.O(_.ca,{data:t,className:"ytTeaserCardViewModelImage",alt:""})}})),_.O("p",{class:"ytTeaserCardViewModelCaption"},function(){return W().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.vB,
useFullWidth:_.vB}});var ob2=new _.e9("RICH_GRID_VIDEO_RENDERER_TOKEN");_.iF(_.eY(function(y){var W=y.data;var V=y.showYtInteractionInContent;var w=function(){return!!W().selectableFeedback};
y=_.N(_.M1(!1,void 0,"nblDw"));var t=y.next().value,F=y.next().value;_.a8(function(){var c=_.h(W().primaryButton,_.aJ);(c==null?0:c.isToggled)&&F(c.isToggled)});
y=_.YS(function(c){if(!w())return!1;if(t()){var K;var f=(K=W().selectableFeedback)==null?void 0:K.onDeselect}else{var U;f=(U=W().selectableFeedback)==null?void 0:U.onSelect}f&&_.Id(f,{form:{element:c.target}});F(!t());if(c=_.h(W().primaryButton,_.aJ))c.isToggled=t();return!1});
var I=function(){if(!w()){var c,K=(c=W().loggingDirectives)==null?void 0:c.trackingParams;K&&_.DN(_.hs().resolve(_.HB),K)}},P=_.lWd(),C=function(){var c;
return w()?(c=W().selectableFeedback)==null?void 0:c.a11yLabel:void 0},d=function(){return w()?{toggled:t()}:{}},L=_.hs().resolve(_.eX(ob2)),z={};
return _.O("yt-feedback-item-renderer",{class:_.kS("ytFeedbackItemRendererHost",(z.ytFeedbackItemRendererSelectableFeedback=w,z)),"on:click":y,"on:keydown":P,title:C,"aria-label":C,"aria-pressed":function(){return w()?t():void 0},
tabindex:function(){return w()?0:void 0},
role:function(){return w()?"button":void 0}},_.O("div",{class:"ytFeedbackItemRendererContentContainer"},_.O(_.Q7,{data:function(){return W().content}},{videoRenderer:function(c){return _.O(L,{data:c.data,
showYtInteraction:V})},
lockupViewModel:function(c){return _.O(_.US,{data:c.data,containerType:2})}})),_.O("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.O(_.Q7,{data:function(){return W().primaryButton}},{toggleButtonViewModel:function(c){return _.O(_.XV,{data:c.data,
buttonShapeOverrides:d,disableExplicitClickLogging:!0,onToggle:I})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.vB,
showYtInteractionInContent:_.vB}});var bv=function(){var y=_.u.apply(this,arguments)||this;y.isShortsGrid=!1;y.isCompactGrid=!1;y.isShortsPanelGrid=!1;y.renderedFromRichGrid=!1;y.isInFirstColumn=!1;y.noGutterMargins=!1;y.isInlineGroupItem=!1;y.insetMetadata=!1;y.noBottomMarginInAds=_.e("web_no_bottom_margin_for_home_ad_buttons");y.force16By9ThumbnailAspectRatio=!1;y.useCompactList=!1;y.containerType=2;y.thumbnailTargetWidth=9999;y.isResponsiveGrid=!1;y.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};y.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};y.hoverListener=y.hover.bind(y);y.leaveListener=y.leave.bind(y);y.highlighted=!1;y.JSC$16001_unsubscribeFromInlinePreviewIsActive=function(){};
return y};
_.p(bv,_.u);_.E=bv.prototype;_.E.computeContainerType=function(){return this.useCompactList?3:2};
_.E.computeThumbnailTargetWidth=function(){var y;return(y=this.itemWidth)!=null?y:9999};
_.E.updateIsInFirstColumn=function(){var y;this.isInFirstColumn=((y=this.data)==null?void 0:y.colIndex)===0};
_.E.observerContainerType=function(){if(this.lockup){var y=this.lockup;y.containerType=this.containerType;y.sizing=this.sizing;y.typographyBump=this.typographyBump;y.itemWidth=this.itemWidth}this.richGridMedia&&_.e("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.e("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.E.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.E.leave=function(y){y=y.relatedTarget;var W=document.querySelector("ytd-video-preview");y&&W&&_.f6(W).contains(y)||this.removeAndCleanupHighlight()};
_.E.hover=function(){var y;if(!this.highlighted&&(!_.e("web_enable_rich_item_on_focus_effect")||(y=this.data)!=null&&y.onFocusEffect)){var W,V;((W=this.data)==null?void 0:(V=W.onFocusEffect)==null?void 0:V.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(y=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:y,boxShadow:"0 0 0 10px "+y}));var w,t;((w=this.data)==null?void 0:(t=w.onFocusEffect)==null?void 0:
t.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.E.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};
_.E.registerHoverHighlightListeners=function(){var y=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16001_unsubscribeFromInlinePreviewIsActive=_.Y0(_.dP(),_.mxj,function(W){y.highlighted&&!W&&y.removeAndCleanupHighlight()})};
_.E.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16001_unsubscribeFromInlinePreviewIsActive()};
_.E.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.E.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.E.getBackgroundColor=function(){var y,W,V=(y=this.data)==null?void 0:(W=y.onFocusEffect)==null?void 0:W.onFocusColor;if(V){if(document.documentElement.hasAttribute("dark")&&(V==null?0:V.darkTheme))return _.V2(V==null?void 0:V.darkTheme);if(V==null?0:V.lightTheme)return _.V2(V==null?void 0:V.lightTheme)}};
_.E.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var y=_.Xn(),W,V,w;y&&((W=this.data)==null?0:W.trackingParams)&&((V=this.data)==null?void 0:V.colIndex)!=null&&((w=this.data)==null?void 0:w.rowIndex)!=null&&_.d5(y,_.nD(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.E.isSlimMediaRenderer=function(y){return!!_.h(y==null?void 0:y.content,_.yBK)||!!_.h(y==null?void 0:y.content,Zj6)||!!_.h(y==null?void 0:y.content,_.VB)||!!_.h(y==null?void 0:y.content,oo2)};
_.E.isPostRenderer=function(){var y,W;return!!_.h((y=this.data)==null?void 0:y.content,G7Q)||!!_.h((W=this.data)==null?void 0:W.content,r$2)};
_.E.computeIsGameCardShelf=function(){var y;return!!_.h((y=this.data)==null?void 0:y.content,FFr)};
_.E.computeIsMiniGameCardShelf=function(){var y,W;return!!_.h((y=this.data)==null?void 0:y.content,hEf)||!!_.h((W=this.data)==null?void 0:W.content,o$Q)};
_.E.computeIsTeaserCard=function(){var y;return!!_.h((y=this.data)==null?void 0:y.content,o$Q)};
_.E.computeIsSelectableFeedbackItem=function(){var y,W;return!((W=_.h((y=this.data)==null?void 0:y.content,_.psm))==null||!W.selectableFeedback)};
_.E.computeContainsLumierePosters=function(){var y,W;return((W=_.h((y=this.data)==null?void 0:y.content,Esz))==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.E.computeIsExpandOnHoverCardShelf=function(){var y;return!!_.h((y=this.data)==null?void 0:y.content,F$2)};
_.E.computeIsLinkCardShelf=function(){var y;return!!_.h((y=this.data)==null?void 0:y.content,UCq)};
_.E.computeIsReelItemStyleAvatarCircle=function(y){var W;return((W=_.h(y==null?void 0:y.content,_.VB))==null?void 0:W.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.E.computeIsLinkCardFullWidth=function(y,W){var V;return((V=_.h(y==null?void 0:y.content,UCq))==null?void 0:V.useFullWidth)||W<=2};
_.CM.Object.defineProperties(bv.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.e("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.e("web_enable_rich_item_on_focus_effect")||_.e("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}}});
bv.prototype.richGridHoverHighlightChanged=bv.prototype.richGridHoverHighlightChanged;bv.prototype.observerContainerType=bv.prototype.observerContainerType;bv.prototype.updateIsInFirstColumn=bv.prototype.updateIsInFirstColumn;_.J([_.m(_.y$),_.R("design:type",Object)],bv.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],bv.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],bv.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.R("design:type",Boolean)],bv.prototype,"isPost",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.R("design:type",Boolean)],bv.prototype,"containsLumierePosters",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.R("design:type",Boolean)],bv.prototype,"isSlimMedia",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.R("design:type",Boolean)],bv.prototype,"isGameCardShelf",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.R("design:type",Boolean)],bv.prototype,"isMiniGameCardShelf",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.R("design:type",Boolean)],bv.prototype,"isTeaserCard",void 0);_.J([_.q({computed:"computeIsSelectableFeedbackItem(data)"}),_.R("design:type",Boolean)],bv.prototype,"isSelectableFeedbackItem",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isShortsGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],bv.prototype,"isSlimGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isCompactGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isShortsPanelGrid",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.R("design:type",Boolean)],bv.prototype,"isExpandOnHoverCardShelf",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.R("design:type",Boolean)],bv.prototype,"isLinkCardShelf",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.r5,value:3}),_.R("design:type",Number)],bv.prototype,"itemsPerRow",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"renderedFromRichGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isInFirstColumn",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"noGutterMargins",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isInlineGroupItem",void 0);_.J([_.q(),_.R("design:type",Object)],bv.prototype,"insetMetadata",void 0);
_.J([_.q(),_.R("design:type",Object)],bv.prototype,"noBottomMarginInAds",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],bv.prototype,"isShelfItem",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.R("design:type",Boolean)],bv.prototype,"isReelItemStyleAvatarCircle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.R("design:type",Boolean)],bv.prototype,"isLinkCardFullWidth",void 0);
_.J([_.q(),_.R("design:type",Object)],bv.prototype,"force16By9ThumbnailAspectRatio",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"useCompactList",void 0);_.J([_.q(),_.R("design:type",String)],bv.prototype,"sizing",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],bv.prototype,"typographyBump",void 0);_.J([_.q(),_.R("design:type",Number)],bv.prototype,"itemWidth",void 0);_.J([_.q(),_.R("design:type",Boolean)],bv.prototype,"isHomeShelf",void 0);
_.J([_.q(),_.R("design:type",Boolean)],bv.prototype,"isHomeGrid",void 0);_.J([_.s$("yt-lockup-view-model"),_.R("design:type",HTMLElement)],bv.prototype,"lockup",void 0);_.J([_.s$("ytd-rich-grid-media"),_.R("design:type",HTMLElement)],bv.prototype,"richGridMedia",void 0);_.J([_.s$("ytd-ad-slot-renderer"),_.R("design:type",HTMLElement)],bv.prototype,"adSlotRenderer",void 0);_.J([_.q({computed:"computeContainerType(useCompactList)"}),_.R("design:type",Object)],bv.prototype,"containerType",void 0);
_.J([_.q({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.R("design:type",Object)],bv.prototype,"thumbnailTargetWidth",void 0);_.J([_.M("showYtInteractionOnRichItem"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bv.prototype,"showYtInteractionOnRichGridMedia",null);_.J([_.M("isSelectableFeedbackItem","richGridHoverHighlight"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bv.prototype,"showYtInteractionOnRichItem",null);
_.J([_.M("typographyBump","isHomeGrid"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bv.prototype,"richTypographyBump",null);_.J([_.q({reflectToAttribute:!0}),_.M("isShortsGrid","isCompactGrid"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bv.prototype,"richGridHoverHighlight",null);_.J([_.M("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.R("design:type",Number),_.R("design:paramtypes",[])],bv.prototype,"shortsLockupViewModelAspectRatio",null);
_.J([_.M("isInlineGroupItem"),_.R("design:type",Number),_.R("design:paramtypes",[])],bv.prototype,"shortsLockupViewModelScrimStyle",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bv.prototype,"updateIsInFirstColumn",null);_.J([_.xA("containerType","sizing","typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bv.prototype,"observerContainerType",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bv.prototype,"isResponsiveGrid",void 0);_.J([_.q(),_.R("design:type",Object)],bv.prototype,"lockupExperiments",void 0);_.J([_.xA("richGridHoverHighlight"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bv.prototype,"richGridHoverHighlightChanged",null);_.J([_.k({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],bv);
_.KAr=_.MM()(bv,"ytd-rich-item-renderer",function(){if(NAJ===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);NAJ=y}y=NAJ;return y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var vHG={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var mjd=_.CO(_.u5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Lna={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},c24={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},eXy={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var pFA;var QI=function(){var y=_.u.apply(this,arguments)||this;y.useResponsiveGrid=!1;y.hidden=!1;y.standardShelfMargins=_.e("web_rich_grid_standard_shelf_margins");y.isShowMoreHidden=!1;y.isExpanded=!1;y.isInnerShelf=!1;y.allVideosCount=0;y.allPlaylistCount=0;y.haveSmartDownloadsCompleted=!1;y.isShowLessHidden=!0;y.restrictContentsOverflow=!1;y.firstShownIndex=0;y.horizontalOffset=0;y.atEnd=!0;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};y.nextClick=function(){var W;(W=y.data)!=null&&W.contents&&(y.firstShownIndex+=y.currentElementsPerRow,y.updateHorizontalOffset(),y.updateHorizontalItemVisibility())};
y.previousClick=function(){var W;(W=y.data)!=null&&W.contents&&(y.firstShownIndex-=y.currentElementsPerRow,y.updateHorizontalOffset(),y.updateHorizontalItemVisibility())};
return y};
_.p(QI,_.u);_.E=QI.prototype;
_.E.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.yC("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.E.attached=function(){this.requestElementsPerRow()};
_.E.refreshGridLayoutNew=function(){var y;if((y=this.data)!=null&&y.contents&&this.containerWidth){var W;((W=this.data.responsiveContainerConfiguration)==null?0:W.responsiveSize)?(y=_.Ujz(this.data.responsiveContainerConfiguration,this.containerWidth),y=_.Cv(Object.assign({},y,{standardUnitMinWidth:this.standardUnitMinWidth}))):y=_.Cv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=y.typographyBump;if(this.elementsPerRow!==
y.numItems||this.gutter!==y.gutter)this.elementsPerRow=y.numItems,this.gutter=y.gutter,this.itemWidth=y.itemWidth,_.qg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":y.gutter+"px"})}};
_.E.computeSizing=function(){if(!this.isLumiere){var y=_.xqv(this.data);if(y)return y;if(_.e("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.E.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.E.computeButton=function(y){var W=_.h(y,_.wz);y=Object.assign({},_.h(y,_.wz));return W?(y.text||(y.text={simpleText:y.tooltip}),y.style="STYLE_MONO_OUTLINE",y.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",y):W};
_.E.onRowIndexChange=function(){var y=_.Xn(),W,V;((W=this.data)==null?0:W.trackingParams)&&((V=this.data)==null?void 0:V.rowIndex)!=null&&y&&_.d5(y,_.nD(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.E.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var y,W=((y=this.getRichItemRenderers()[0])==null?void 0:y.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*W;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
_.E.onUpdateElementsPerRowAction=function(y,W,V,w,t,F){if(this.containerWidth!==F&&(this.containerWidth=F,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&y&&W&&V&&w&&t&&(this.elementsPerRow!==y||this.postsPerRow!==W||this.slimItemsPerRow!==V||this.gameCardsPerRow!==w||this.miniGameCardsPerRow!==t)&&(this.elementsPerRow=y,this.postsPerRow=W,this.slimItemsPerRow=V,this.gameCardsPerRow=w,this.miniGameCardsPerRow=t,this.updateItemVisibility())};
_.E.getRichItemRenderers=function(){return _.i6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.E.updateItemVisibility=function(){var y=this;if(this.data&&this.data.contents){var W=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(w,t){var F;((F=y.data)==null?0:F.isExpanded)?(w.hidden=t>W-1,w.ytRendererBehavior.markDirty()):w.hidden=t>y.currentElementsPerRow-1||t>W-1});
var V=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||V||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||V||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.E.setHeightToSingleRow=function(){var y=this.getRichItemRenderers(),W=Number.parseInt(getComputedStyle(y[0]).marginBottom,10)||0;y=y.slice(0,this.currentElementsPerRow).reduce(function(V,w){return Math.max(V,w.getBoundingClientRect().height+W)},0);
this.contents.style.height=y+"px"};
_.E.focusNextExpandedItem=function(){var y;((y=this.data)==null?0:y.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.E.focusItem=function(y,W){var V=this.getRichItemRenderers();if(V[y]&&(y=V[y].querySelector(".focus-on-expand"))){if(W){var w;(w=V[this.currentElementsPerRow])==null||w.scrollIntoView({behavior:"smooth",block:"center"})}y.focus({preventScroll:!0})}};
_.E.onDataChange=function(){var y=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var W;if((W=this.data)==null?0:W.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.gy(this,function(){y.updateItemVisibility()});
var V;if((V=this.data)==null?0:V.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.qg(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),W=0;W<this.data.contents.length;W++)V=_.h(this.data.contents[W],_.ax)||{},V.colIndex=W,V.rowIndex=this.data.rowIndex};
_.E.handleRerenderDownloadsData=function(){_.e("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())};
_.E.blockInlinePreview=function(y){var W=this,V;return _.g(function(w){(V=W.inlinePreviewIsEnabled)&&W.ytdReduxBehavior.dispatch(_.Cpi(!1));return w.return(new Promise(function(t){y(function(){V&&W.ytdReduxBehavior.dispatch(_.Cpi(!0));t()})}))})};
_.E.expandShelf=function(){var y=this;if(this.data){var W,V=(W=_.h(this.data.showMoreButton,_.wz))==null?void 0:W.trackingParams;V&&_.DN(_.BC(),V);this.data.isExpanded=!0;this.blockInlinePreview(function(w){y.setHeightToSingleRow();y.updateItemVisibility();y.contents.style.height=y.contents.scrollHeight+"px";_.HU.addJob(function(){y.contents.style.height="auto";y.focusNextExpandedItem();w()},2,200)})}};
_.E.collapseShelf=function(){var y=this;return _.g(function(W){if(W.nextAddress==1){if(!y.data)return W.return();y.data.isExpanded=!1;return W.yield(y.blockInlinePreview(function(V){y.contents.style.height=y.contents.scrollHeight+"px";y.setHeightToSingleRow();_.HU.addJob(function(){y.updateItemVisibility();y.contents.style.height="auto";V()},2,200)}),2)}_.h1(y.hostElement,"yt-rich-shelf-renderer-collapse",y.data.trackingParams);
y.focusItem(0,!1);_.B7(W)})};
_.E.updateArrowButtonStatus=function(){var y=this.getRichItemRenderers().length;if(!_.e("web_rich_shelf_renderer_use_data_contents_killswitch")){var W,V;y=((W=this.data)==null?void 0:(V=W.contents)==null?void 0:V.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=y};
_.E.onChildElementFocus=function(y){this.hasChevronButtons&&(y=y.target.closest("#contents > *"),this.contents.contains(y)&&(y.offsetLeft<this.horizontalOffset?this.previousClick():y.offsetLeft+y.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.E.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.yC("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.E.updateHorizontalOffset=function(){var y=this.getRichItemRenderers(),W=y.length;if(!_.e("web_rich_shelf_renderer_use_data_contents_killswitch")){var V,w;W=((V=this.data)==null?void 0:(w=V.contents)==null?void 0:w.length)||0}var t;y=((t=y[0])==null?void 0:t.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>W?this.firstShownIndex=W-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*y};
_.E.isSlimMediaShelfRenderer=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!(_.h(w,_.yBK)||_.h(w,Zj6)||_.h(w,_.VB)||_.h(w,oo2))};
_.E.isGameCardShelf=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!_.h(w,FFr)};
_.E.isGnomeShelf=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!_.h(w,_.psm)};
_.E.isMiniGameCardShelf=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!_.h(w,hEf)||!!_.h(w,o$Q)};
_.E.hasGameBoxArtAvatarStyle=function(){var y;return((y=this.data)==null?void 0:y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.E.hasRoundedGameBoxArtAvatarStyle=function(){var y;return((y=this.data)==null?void 0:y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.E.isShortsShelf=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!_.h(w,_.VB)||!!_.h(w,oo2)};
_.E.isPostShelfRenderer=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!(!_.h(w,G7Q)&&!_.h(w,r$2))};
_.E.isLumiereShelf=function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax);return!!_.h(V==null?void 0:V.content,Esz)};
_.E.isLumiereShelfWithPosters=function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax),w;return((w=_.h(V==null?void 0:V.content,Esz))==null?void 0:w.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.E.isExpandOnHoverCardShelf=function(){var y,W,V,w=(V=_.h((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.ax))==null?void 0:V.content;return!!_.h(w,F$2)};
_.E.computeHasFeaturedBadge=function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.badges)==null?void 0:W[0],_.iHA);return V?V.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.E.computeHasPaygatedFeaturedBadge=function(){var y,W,V=_.h((y=this.data)==null?void 0:(W=y.badges)==null?void 0:W[0],_.iHA);return V?(V==null?void 0:V.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.E.computeHeaderHidden=function(){var y,W,V,w,t,F;return!((y=this.data)==null?0:y.icon)&&!((W=this.data)==null?0:W.title)&&!((V=this.data)==null?0:V.subtitle)&&!((w=this.data)==null?0:w.thumbnail)&&!((t=this.data)==null?0:t.badges)&&!((F=this.data)==null?0:F.menu)};
_.E.showCtaButton=function(){var y;return!((y=this.data)==null||!y.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.E.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.E.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.E.computeForce16By9ThumbnailAspectRatio=function(){var y,W;return((y=this.data)==null?void 0:(W=y.responsiveContainerConfiguration)==null?void 0:W.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.E.onSectionReactiveDismissal=function(y,W,V){var w,t;var F=(w=this.data)==null?void 0:(t=w.targetingContext)==null?void 0:t.targetGroupId;this&&F&&W.targetGroupId&&F.includes(W.targetGroupId)?(w=this.rowIndex,y=w===void 0?!1:!(W.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&w<=y)):y=!1;y&&(this.hidden=V)};
_.CM.Object.defineProperties(QI.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var y=this.elementsPerRow;this.isPostShelfRenderer()?y=this.postsPerRow:this.isSlimMediaShelfRenderer()?y=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?y=this.slimItemsPerRow-1:this.isGameCardShelf()?y=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(y=this.miniGameCardsPerRow);return y}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.e("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.previousButton)&&!((W=this.data)==null||!W.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 y;return((y=_.hs().resolve(_.hn).getCurrentPage())==null?void 0:y.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return!((y=this.data)==null?0:(W=y.thumbnail)==null?0:(V=W.accessibility)==null?0:(w=V.accessibilityData)==null?0:w.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
QI.prototype.onChildElementFocus=QI.prototype.onChildElementFocus;QI.prototype.handleRerenderDownloadsData=QI.prototype.handleRerenderDownloadsData;QI.prototype.onDataChange=QI.prototype.onDataChange;QI.prototype.onRowIndexChange=QI.prototype.onRowIndexChange;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.V$),_.R("design:type",Object)],QI.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QI.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);_.J([_.q({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.R("design:type",Object)],QI.prototype,"useResponsiveGrid",void 0);_.J([_.q(),_.R("design:type",Object)],QI.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Number)],QI.prototype,"standardUnitMinWidth",void 0);_.J([_.q({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],QI.prototype,"elementsPerRow",void 0);_.J([_.q({value:3}),_.R("design:type",Number)],QI.prototype,"postsPerRow",void 0);_.J([_.q({value:6}),_.R("design:type",Number)],QI.prototype,"slimItemsPerRow",void 0);_.J([_.q({value:6}),_.R("design:type",Number)],QI.prototype,"gameCardsPerRow",void 0);
_.J([_.q({value:6}),_.R("design:type",Number)],QI.prototype,"miniGameCardsPerRow",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"standardShelfMargins",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"isShowMoreHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"isExpanded",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"isInnerShelf",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.R("design:type",Boolean)],QI.prototype,"isShorts",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.R("design:type",Boolean)],QI.prototype,"isLumiere",void 0);_.J([_.q({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.R("design:type",Boolean)],QI.prototype,"hasBoxArtThumbnailStyle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.R("design:type",Boolean)],QI.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.R("design:type",Boolean)],QI.prototype,"hasFeaturedBadge",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.R("design:type",Boolean)],QI.prototype,"hasPaygatedFeaturedBadge",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.R("design:type",Boolean)],QI.prototype,"isHeaderHidden",void 0);_.J([_.q({selector:_.DxL}),_.R("design:type",Object)],QI.prototype,"allVideosCount",void 0);_.J([_.q({selector:quj}),_.R("design:type",Object)],QI.prototype,"allPlaylistCount",void 0);_.J([_.q({selector:ji4}),_.R("design:type",Object)],QI.prototype,"haveSmartDownloadsCompleted",void 0);
_.J([_.q({selectorArgs:["entitySelectorType"],selector:function(y,W){if(_.e("kevlar_modern_downloads_page")&&W&&W!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var V=y.entities;switch(W){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":W=_.HE(V);y=jy(W);var w=_.BE(W);V=_.aB(V);V=_.oB(oHy(w,V,W.length));return{contents:y,subtitle:V};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return V=_.HE(V),{contents:jy(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return V=
_.Xr(V),{contents:jy(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return V=_.PTn(V),{contents:jy(V)};default:_.rQ(new _.Js("Error: entitySelectorType defined but not matched in selector.",y,W))}}}}),
_.R("design:type",Object)],QI.prototype,"entityDrivenRichShelfData",void 0);_.J([_.q({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.R("design:type",Boolean)],QI.prototype,"hasTopCtaButton",void 0);_.J([_.q({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.R("design:type",Boolean)],QI.prototype,"hasBottomCtaButton",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.R("design:type",Boolean)],QI.prototype,"force16By9ThumbnailAspectRatio",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"isShowLessHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QI.prototype,"restrictContentsOverflow",void 0);_.J([_.q({selector:_.Mnv}),_.R("design:type",Boolean)],QI.prototype,"inlinePreviewIsEnabled",void 0);
_.J([_.q({computed:"computeSizing(data)"}),_.R("design:type",String)],QI.prototype,"sizing",void 0);_.J([_.q(),_.R("design:type",Boolean)],QI.prototype,"typographyBump",void 0);_.J([_.q(),_.R("design:type",Number)],QI.prototype,"itemWidth",void 0);_.J([_.q(),_.R("design:type",Object)],QI.prototype,"firstShownIndex",void 0);_.J([_.q(),_.R("design:type",Object)],QI.prototype,"horizontalOffset",void 0);_.J([_.q(),_.R("design:type",Object)],QI.prototype,"atEnd",void 0);
_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],QI.prototype,"contents",void 0);_.J([_.xA("data.rowIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QI.prototype,"onRowIndexChange",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QI.prototype,"onDataChange",null);
_.J([_.xA("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QI.prototype,"handleRerenderDownloadsData",null);_.J([_.l6("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],QI.prototype,"onChildElementFocus",null);_.J([_.q({reflectToAttribute:!0}),_.M("data","isHomePage"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QI.prototype,"isTruncated",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QI.prototype,"hideBottomDivider",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],QI.prototype,"hasChevronButtons",null);_.J([_.M("firstShownIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],QI.prototype,"previousButtonOverride",null);
_.J([_.M("atEnd"),_.R("design:type",Object),_.R("design:paramtypes",[])],QI.prototype,"nextButtonOverride",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QI.prototype,"isHomePage",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QI.prototype,"thumbnailAriaHidden",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],QI.prototype,"initiallyIsExpanded",null);
_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],QI.prototype,"entitySelectorType",null);_.J([_.k({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],QI);
_.iSA=_.MM()(QI,"ytd-rich-shelf-renderer",function(){if(pFA===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);pFA=y}y=pFA;return y},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var fzs;_.iF(Vvq,"yt-slimline-survey-view-model",{props:{data:_.vB}});var Zd=function(){var y=_.u.apply(this,arguments)||this;y.tileLottieAnimationRef={};y.backgroundLottieAnimationRef={};y.isOnHoverBehaviorForLottieEnabled=!0;y.useBiggerShowcaseImage=_.e("enable_desktop_search_bigger_thumbs");y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return y};
_.p(Zd,_.u);_.E=Zd.prototype;_.E.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.E.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.E.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var y=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);y!==this.hasTile&&this.set("hasTile",y);y=this.hasLogo(this.data)||!!this.data.badgeText;y!==this.hasMetadata&&this.set("hasMetadata",y);y=this.data.overflowButton?!1:y;y!==this.showLogoImage&&this.set("showLogoImage",y);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.E.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.E.currentColorChanged=function(){this.updateButtonPalette()};
_.E.computeBackgroundStyle=function(y){if(y&&this.data){var W=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.TP((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&W.push('background-image: url("'+V+'");')}var w;((w=y.basicColorData)==null?void 0:w.backgroundColor)!==void 0&&W.push("background-color: "+_.wg(y.basicColorData.backgroundColor)+";");return W.join("")}};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y)};
_.E.getCurrentLogo=function(y,W){if(y)return W?y.darkLogoImage:y.lightLogoImage};
_.E.getCurrentStaticTileImage=function(y,W){if(this.hasStaticTile(y))return y.darkTileImage?W?y.darkTileImage:y.tileImage:y.tileImage};
_.E.computeTitleStyle=function(y){if(this.data&&this.data.title&&y&&y.basicColorData&&y.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.V2(y.basicColorData.foregroundTitleColor)+";"};
_.E.computeSubtitleStyle=function(y){if(this.data&&this.data.subtitle&&y&&y.basicColorData&&y.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.V2(y.basicColorData.foregroundBodyColor)+";"};
_.E.computeSupplementalStyle=function(y){if(this.data&&this.data.supplementalText&&y&&y.supplementalTextColor!==void 0)return y=_.V2(y.supplementalTextColor),"color:"+y+";--yt-endpoint-color:"+y+";--yt-endpoint-hover-color:"+y+";--yt-endpoint-visited-color:"+y+";--yt-formatted-string-bold-font-weight:700;"};
_.E.computeBadgeStyle=function(y){if(this.data&&this.data.badgeText&&y&&y.basicColorData&&y.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.V2(y.basicColorData.foregroundActivatedColor)+";"};
_.E.computeDismissIconStyle=function(y){var W,V;if((y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(y==null?0:(V=y.dismissButtonColorData)==null?0:V.backgroundColor))return"--yt-button-color:"+_.wg(y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.wg(y.dismissButtonColorData.backgroundColor)+";"};
_.E.computeOverflowIconStyle=function(y){var W,V;if((y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(y==null?0:(V=y.dismissButtonColorData)==null?0:V.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.wg(y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.wg(y.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.wg(y.dismissButtonColorData.foregroundTitleColor)+";"};
_.E.computeBannerStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeLocation=function(y){switch(y==null?void 0:y.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.E.shouldShowTileSection=function(y,W,V){return!this.shouldExpandLogo(y,W,V)&&W};
_.E.shouldShowExpandedLogoSection=function(y,W,V){return this.shouldExpandLogo(y,W,V)&&y!==void 0&&this.hasLogo(y)};
_.E.shouldExpandLogo=function(y,W,V){return y&&W?!1:V>=2};
_.E.hasStaticTile=function(y){return!(y==null||!y.tileImage)};
_.E.hasTileLottie=function(y){var W;return!!(y==null?0:(W=y.tileLottie)==null?0:W.url)};
_.E.hasLogo=function(y){return this.getCurrentLogo(y,this.isDarkTheme)!==void 0};
_.E.getLogoHeight=function(y){return this.logoWithPadding(y)?"26":"20"};
_.E.getExpandedLogoHeight=function(y){return this.logoWithPadding(y)?"31":"24"};
_.E.getLogoImageId=function(y){return this.logoWithPadding(y)?"logo-image-with-padding":"logo-image"};
_.E.getMaxTitleFontSize=function(y){return y.overrideTitleMaxFontSize?String(y.overrideTitleMaxFontSize):"36"};
_.E.hasBackgroundLottie=function(y){var W;return!!(y==null?0:(W=y.backgroundLottie)==null?0:W.url)};
_.E.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.play();var V,w;(V=this.backgroundLottieAnimationRef)==null||(w=V.lottieEl)==null||w.play()}};
_.E.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.pause();var V,w;(V=this.backgroundLottieAnimationRef)==null||(w=V.lottieEl)==null||w.pause()}};
_.E.pauseLottie=function(){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.pause();var V,w;(V=this.backgroundLottieAnimationRef)==null||(w=V.lottieEl)==null||w.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.E.performPrimaryButtonAction=function(){var y,W,V;((y=this.data)==null?0:(W=y.primaryButton)==null?0:(V=W.buttonRenderer)==null?0:V.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
_.E.updateButtonPalette=function(){if(this.data&&this.currentColorData){var y;((y=this.data.dismissButton)==null?0:y.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 W;if((W=this.data.primaryButton)==null?0:W.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 V;if((V=this.data.secondaryButton)==
null?0:V.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 w;((w=this.data.primaryButton)==null?0:w.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var t;((t=this.data.secondaryButton)==null?0:t.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.E.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var y=this.getTileLottieDataBasedOnTheme(),W,V;if(y.url!==((W=this.tileLottiePlayerProps)==null?void 0:(V=W.animationConfig)==null?void 0:V.path)){var w,t;(w=this.tileLottieAnimationRef)==null||(t=w.lottieEl)==null||t.destroy();var F;this.isOnHoverBehaviorForLottieEnabled=!((F=y.settings)==null?0:F.autoplay);var I,P;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(P=(I=y.settings)==null?void 0:I.autoplay)!=null?P:!1,loop:this.getLottieLoopValue(y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof y.url==="string"?this.tileLottiePlayerProps.animationConfig.path=y.url:this.tileLottiePlayerProps.animationConfig.animationData=y.url}}};
_.E.getOverflowButton=function(y){return _.h(y.overflowButton,T1z)};
_.E.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var y=this.getBackgroundLottieDataBasedOnTheme(),W,V;if(y.url!==((W=this.backgroundLottiePlayerProps)==null?void 0:(V=W.animationConfig)==null?void 0:V.path)){var w,t;(w=this.backgroundLottieAnimationRef)==null||(t=w.lottieEl)==null||t.destroy();var F;this.isOnHoverBehaviorForLottieEnabled=!((F=y.settings)==null?0:F.autoplay);var I,P;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(P=(I=y.settings)==null?void 0:I.autoplay)!=null?P:!1,loop:this.getLottieLoopValue(y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof y.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=y.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
y.url}}};
_.E.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var y;((y=this.tileLottieAnimationRef)==null?void 0:y.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var W;((W=this.backgroundLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.E.getTileLottieDataBasedOnTheme=function(){var y;if(this.isDarkTheme&&((y=this.data)==null?0:y.darkThemeTileLottie))return this.data.darkThemeTileLottie;var W;return((W=this.data)==null?0:W.tileLottie)?this.data.tileLottie:{}};
_.E.getBackgroundLottieDataBasedOnTheme=function(){var y;if(this.isDarkTheme&&((y=this.data)==null?0:y.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var W;return((W=this.data)==null?0:W.backgroundLottie)?this.data.backgroundLottie:{}};
_.E.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
_.E.getLottieLoopValue=function(y){return y?y.loop!==void 0?y.loop:y.loopCount?y.loopCount-1:!0:!0};
_.E.logoWithPadding=function(y){var W,V,w;return(y=(W=this.getCurrentLogo(y,this.isDarkTheme))==null?void 0:(V=W.thumbnails)==null?void 0:(w=V[0])==null?void 0:w.height)&&y%31===0?!0:!1};
Zd.prototype.currentColorChanged=Zd.prototype.currentColorChanged;Zd.prototype.themeChanged=Zd.prototype.themeChanged;Zd.prototype.dataChanged=Zd.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Zd.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Zd.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"primaryButton",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"secondaryButton",void 0);
_.J([_.q({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],Zd.prototype,"elementsPerRow",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Zd.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Zd.prototype,"hasTile",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Zd.prototype,"hasMetadata",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Zd.prototype,"showLogoImage",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"currentColorData",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.R("design:type",String)],Zd.prototype,"bannerStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.R("design:type",String)],Zd.prototype,"location",void 0);
_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"tileLottiePlayerProps",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"tileLottieAnimationRef",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"backgroundLottiePlayerProps",void 0);_.J([_.q(),_.R("design:type",Object)],Zd.prototype,"backgroundLottieAnimationRef",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Zd.prototype,"useBiggerShowcaseImage",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Zd.prototype,"isHideEnclosingAction",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zd.prototype,"dataChanged",null);_.J([_.Jc("isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zd.prototype,"themeChanged",null);
_.J([_.Jc("currentColorData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zd.prototype,"currentColorChanged",null);_.J([_.k({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Zd);
_.Y(Zd,"ytd-statement-banner-renderer",function(){if(fzs!==void 0)return fzs;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[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.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fzs=y},{mode:1});var TAI;var yr=function(){var y=_.u.apply(this,arguments)||this;y.isSearch=!1;y.hideShelfHeader=!1;y.engagementPanel=!1;y.disableMouseScroll=!0;y.useFloorScrolling=!0;y.modernTypography=_.e("web_modern_typography");return y};
_.p(yr,_.u);yr.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.u5("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.u5("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
yr.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yr.prototype.onDataChanged=yr.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yr.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yr.prototype,"hideShelfHeader",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yr.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Object)],yr.prototype,"disableMouseScroll",void 0);_.J([_.q(),_.R("design:type",Object)],yr.prototype,"useFloorScrolling",void 0);_.J([_.q(),_.R("design:type",Object)],yr.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yr.prototype,"modernTypography",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yr.prototype,"onDataChanged",null);_.J([_.k({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],yr);
_.Y(yr,"ytd-reel-shelf-renderer",function(){if(TAI!==void 0)return TAI;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TAI=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var msz;var Mps;Mps=_.CF(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.qwq=_.Tc(Mps);var Usf=_.eY(function(y){var W=y.data;y=y.useSmallFont;var V={},w={};return _.O("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.O(_.v,{cond:function(){return W().favicon},
then:function(t){return _.O(_.ca,{data:t,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.O("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.O(_.Lv,{text:function(){return W().title},
className:_.kS("yt-channel-external-link-view-model-wiz__title",(V["yt-channel-external-link-view-model-wiz__title--title-small-font"]=y,V)),ellipsisTruncate:!0,userInput:!0}),_.O(_.Lv,{text:function(){return W().link},
className:_.kS("yt-channel-external-link-view-model-wiz__link",(w["yt-channel-external-link-view-model-wiz__link--link-small-font"]=y,w)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
Usf.idomCompat=!0;_.iF(Usf,"yt-channel-external-link-view-model",{props:{data:_.vB,useSmallFont:_.vB}});_.ZQ("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Wt=function(){var y=_.u.apply(this,arguments)||this;y.revealButtonClass="button";y.businessEmailDisplayState="HIDE_SECTION";return y};
_.p(Wt,_.u);_.E=Wt.prototype;_.E.refit=function(){var y=this;_.Er(function(){_.Kg(y.hostElement,"yt-refit-popups-action")});
_.gy(this,function(){_.Kg(y.hostElement,"yt-refit-popups-action")})};
_.E.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ym(_.qwq),this.businessEmailDisplayState="CAPTCHA")};
_.E.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"};
_.E.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.E.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"}}}};
_.E.computeEmailHref=function(y){return"mailto:"+y};
_.E.computeSafeUrl=function(y){if(y)return _.ye(y)};
_.E.linkEndpoint=function(y){return _.h(y.onTap,_.wL)};
_.E.linkEndpointToHref=function(y){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(y))};
_.E.onYtServiceRequestCompleted=function(y){var W;if((W=y.detail.data)==null?0:W.businessEmail)this.businessEmail=y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=y.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.E.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var y=this.JSC$16112_captchaTextarea.value;if(y){y={recaptcha_response_token:y,channel_id:this.metadata.channelId};var W=_.h(this.metadata.onBusinessEmailRevealClickCommand,_.wL);W&&this.ytComponentBehavior.resolveCommand(W,{form:y})}}};
_.E.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.CM.Object.defineProperties(Wt.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var y;return _.h((y=this.data)==null?void 0:y.metadata,PWI)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.h(this.metadata.businessEmailRevealButton,_.H5)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var y=new URL(this.metadata.canonicalChannelUrl);return y.host+y.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 _.h(this.metadata.learnMoreOnTap,_.wL)}}});
Wt.prototype.onYtServiceRequestCompleted=Wt.prototype.onYtServiceRequestCompleted;Wt.prototype.businessEmailMetadataChanged=Wt.prototype.businessEmailMetadataChanged;Wt.prototype.refit=Wt.prototype.refit;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#g-recaptcha-response"),_.R("design:type",HTMLTextAreaElement)],Wt.prototype,"JSC$16112_captchaTextarea",void 0);_.J([_.q(),_.R("design:type",Object)],Wt.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Wt.prototype,"revealButtonClass",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wt.prototype,"metadata",null);
_.J([_.M("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wt.prototype,"revealButton",null);_.J([_.M("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wt.prototype,"channelDisplayUrl",null);_.J([_.Jc("metadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wt.prototype,"refit",null);_.J([_.M("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wt.prototype,"formattedDescription",null);
_.J([_.M("metadata","learnMoreCommand"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Wt.prototype,"shouldRendereVerifiedPhoneStatus",null);_.J([_.M("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wt.prototype,"learnMoreCommand",null);_.J([_.q(),_.R("design:type",String)],Wt.prototype,"businessEmailDisplayState",void 0);_.J([_.q(),_.R("design:type",String)],Wt.prototype,"businessEmail",void 0);
_.J([_.q(),_.R("design:type",String)],Wt.prototype,"businessEmailErrorMessage",void 0);_.J([_.Jc("metadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wt.prototype,"businessEmailMetadataChanged",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Wt.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Wt);
_.Y(Wt,"ytd-about-channel-renderer",function(){if(msz!==void 0)return msz;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return msz=y},{mode:1});var u8R;var Vr=function(){return _.u.apply(this,arguments)||this};
_.p(Vr,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Vr.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Vr);
_.Y(Vr,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(u8R!==void 0)return u8R;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return u8R=y},{mode:1});var Sw6;var w_=function(){return _.u.apply(this,arguments)||this};
_.p(w_,_.u);w_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],w_.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],w_.prototype,"aligment",void 0);_.J([_.k({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],w_);
_.Y(w_,"ytd-channel-list-sub-menu-renderer",function(){if(Sw6!==void 0)return Sw6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Sw6=
y},{mode:1});var DsK;var tQ=function(){return _.u.apply(this,arguments)||this};
_.p(tQ,_.u);tQ.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tQ.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],tQ);
_.Y(tQ,"ytd-channel-sub-menu-renderer",function(){if(DsK!==void 0)return DsK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DsK=y},{mode:1});var lzR;var xs6;var FY=function(){var y=_.u.apply(this,arguments)||this;y.isCompact=!1;return y};
_.p(FY,_.u);_.CM.Object.defineProperties(FY.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var y,W;return((W=_.h((y=this.data)==null?void 0:y.endpoint,_.wS))==null?void 0:W.target)==="TARGET_NEW_WINDOW"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],FY.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],FY.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FY.prototype,"isCompact",void 0);_.J([_.M("isCompact"),_.R("design:type",Number),_.R("design:paramtypes",[])],FY.prototype,"thumbnailWidth",null);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FY.prototype,"openNewWindow",null);_.J([_.k({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],FY);
_.Y(FY,"ytd-media-lockup-renderer",function(){if(xs6!==void 0)return xs6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xs6=y},{mode:1});var kUA;var E2=function(){return _.u.apply(this,arguments)||this};
_.p(E2,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],E2.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],E2.prototype,"data",void 0);_.J([_.k({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],E2);
_.Y(E2,"ytd-structured-description-channel-lockup-renderer",function(){if(kUA!==void 0)return kUA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return kUA=y},{mode:1});var sFi;var Nt=function(){var y=_.u.apply(this,arguments)||this;y.isCompact=!1;y.collections=_.e("web_modern_collections_v2");y.collectionsStackColor=_.e("modernize_structured_description_playlist_lockups_v2");return y};
_.p(Nt,_.u);Nt.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:_.e("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.CM.Object.defineProperties(Nt.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(w=V.thumbnail)==null?void 0:w.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(F=t.thumbnail)==
null?void 0:F.vibrantColorPalette:void 0}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Nt.prototype,"componentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Nt.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Nt.prototype,"showSidePanelThumbnailOverlay",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Nt.prototype,"isCompact",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Nt.prototype,"collections",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Nt.prototype,"collectionsStackColor",void 0);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Nt.prototype,"twoLineTitle",null);
_.J([_.M("data","collections","collectionsStackColor"),_.R("design:type",Object),_.R("design:paramtypes",[])],Nt.prototype,"collectionStack",null);_.J([_.k({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Nt);
_.Y(Nt,"ytd-structured-description-playlist-lockup-renderer",function(){if(sFi!==void 0)return sFi;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sFi=y},{mode:1});var AHf;var Il=function(){return _.u.apply(this,arguments)||this};
_.p(Il,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Il.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Il.prototype,"data",void 0);_.J([_.k({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Il);
_.Y(Il,"ytd-structured-description-video-lockup-renderer",function(){if(AHf!==void 0)return AHf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return AHf=y},{mode:2});var g_=function(){return _.u.apply(this,arguments)||this};
_.p(g_,_.u);
g_.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],g_.prototype,"data",void 0);_.J([_.k({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],g_);
_.Y(g_,"ytd-compact-infocard-renderer",function(){if(lzR!==void 0)return lzR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return lzR=y},{mode:1});var Ywr;var Pt=function(){var y=_.u.apply(this,arguments)||this;y.useModernCollectionsV2=_.e("web_modern_collections_v2");return y};
_.p(Pt,_.u);Pt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.CM.Object.defineProperties(Pt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Pt.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],Pt.prototype,"isGridViewEnabled",void 0);
_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pt.prototype,"watchFeedBigThumbs",null);_.J([_.M("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"168"}),_.R("design:type",String),_.R("design:paramtypes",[])],Pt.prototype,"thumbnailWidth",null);_.J([_.M("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"94"}),_.R("design:type",String),_.R("design:paramtypes",[])],Pt.prototype,"customThumbnailSize",null);
_.J([_.q(),_.R("design:type",Object)],Pt.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Pt.prototype,"useModernCollectionsV2",void 0);_.J([_.k({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Pt);
_.Y(Pt,"ytd-compact-playlist-renderer",function(){if(Ywr!==void 0)return Ywr;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Ywr=y},{mode:1});var BAQ;var CR=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.roundedContainer=!0;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return y};
_.p(CR,_.u);_.E=CR.prototype;_.E.attached=function(){this.requestElementsPerRow()};
_.E.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"}}}};
_.E.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.E.computeViewStyle=function(y){return y.style?y.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.E.onUpdateElementsPerRowAction=function(y){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&y===1};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
CR.prototype.dataChanged=CR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],CR.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],CR.prototype,"actionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],CR.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],CR.prototype,"hideThumbnail",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.R("design:type",String)],CR.prototype,"viewStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],CR.prototype,"darkerDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],CR.prototype,"roundedContainer",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CR.prototype,"dataChanged",null);_.J([_.k({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],CR);
_.Y(CR,"ytd-compact-promoted-item-renderer",function(){if(BAQ!==void 0)return BAQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return BAQ=y},{mode:1});var JHm;var O2=function(){var y=_.u.apply(this,arguments)||this;y.collections=_.e("web_modern_collections_v2");return y};
_.p(O2,_.u);O2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
O2.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
O2.prototype.onYtNavigate=function(y,W){var V=this;if(W.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",W)){var w=this.get("watchEndpoint.videoId",W.endpoint),t=_.Kg(this.hostElement,"yt-get-current-video-id-action")[0];_.e("kevlar_mix_handle_first_endpoint_different")&&w&&t&&w!==t||(y.stopPropagation(),_.pn().getPlayerPromise().then(function(F){if(F.getPlayerState()===0&&V.data.secondaryNavigationEndpoint)var I=V.data.secondaryNavigationEndpoint;else{I=
Object.assign({},W.endpoint);var P=_.h(I.commandMetadata,_.dw);P&&(F=Math.floor(F.getCurrentTime()),P.url=_.O1(P.url,{t:F}),!_.e("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(P=_.h(I,_.Iw)))&&(P.startTimeSeconds=F)}_.h1(V.hostElement,"yt-navigate",{endpoint:I})}))}};
_.CM.Object.defineProperties(O2.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(w=V.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(F=t.thumbnail)==null?void 0:F.darkColorPalette,experimentEnabled:this.collections}}}});
O2.prototype.onYtNavigate=O2.prototype.onYtNavigate;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],O2.prototype,"ytEndpointBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],O2.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.gZ),_.R("design:type",Object)],O2.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],O2.prototype,"ytdReduxBehavior",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],O2.prototype,"isGridViewEnabled",void 0);_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],O2.prototype,"watchFeedBigThumbs",null);
_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],O2.prototype,"thumbnailWidth",null);_.J([_.q(),_.R("design:type",Object)],O2.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],O2.prototype,"collections",void 0);_.J([_.M("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],O2.prototype,"collectionStack",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],O2.prototype,"onYtNavigate",null);_.J([_.k({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],O2);
_.Y(O2,"ytd-compact-radio-renderer",function(){if(JHm!==void 0)return JHm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return JHm=y},{mode:1});var RVf;var vt=function(){return _.u.apply(this,arguments)||this};
_.p(vt,_.u);vt.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vt.prototype.computeRendererStyle=function(y){return y.style?y.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.J([_.q(),_.R("design:type",Object)],vt.prototype,"data",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vt.prototype,"rendererBehavior",void 0);_.J([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],vt.prototype,"rendererStyle",void 0);_.J([_.k({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vt);
_.Y(vt,"ytd-compact-text-promo-renderer",function(){if(RVf!==void 0)return RVf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return RVf=y},{mode:1});var jFi;var d_=function(){var y=_.u.apply(this,arguments)||this;y.isShortsStyle=!1;return y};
_.p(d_,_.u);_.E=d_.prototype;_.E.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"}}}};
_.E.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.h1(this.hostElement,"yt-disable-lockup-interaction"):_.h1(this.hostElement,"yt-enable-lockup-interaction"))};
_.E.isMetaBlockEmpty=function(y){return!y||!y.longBylineText&&!y.shortBylineText&&!y.shortViewCountText&&!y.viewCountText};
_.E.computeHasOneLineTitle=function(y){return this.forceOneLineTitle||!(y==null||!y.buttons)};
_.E.computeDisableInteraction=function(){var y;return!((y=this.data)==null?0:y.navigationEndpoint)};
_.E.hasSingularTopStandaloneBadge=function(){var y;return!((y=this.data)==null||!y.topStandaloneBadge)};
_.CM.Object.defineProperties(d_.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("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 y;return this.hasSingularTopStandaloneBadge()?[(y=this.data)==null?void 0:y.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var y;return this.shouldShowTopBadges?((y=this.data)==null?void 0:y.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
d_.prototype.disableInteractionChanged=d_.prototype.disableInteractionChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],d_.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],d_.prototype,"ytdLockupBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],d_.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.R("design:type",Boolean)],d_.prototype,"metaBlockEmpty",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],d_.prototype,"isGridViewEnabled",void 0);_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d_.prototype,"watchFeedBigThumbs",null);
_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],d_.prototype,"thumbnailWidth",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d_.prototype,"isShortsStyle",void 0);_.J([_.q(),_.R("design:type",Object)],d_.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.R("design:type",Boolean)],d_.prototype,"hasOneLineTitle",void 0);
_.J([_.q(),_.R("design:type",Boolean)],d_.prototype,"hideThumbnail",void 0);_.J([_.q(),_.R("design:type",Boolean)],d_.prototype,"forceOneLineTitle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.R("design:type",Boolean)],d_.prototype,"disableInteraction",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],d_.prototype,"musicMetadataVideoLockup",void 0);
_.J([_.xA("disableInteraction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d_.prototype,"disableInteractionChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d_.prototype,"shouldShowTopBadges",null);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],d_.prototype,"topBadges",null);
_.J([_.M("shouldShowTopBadges","data"),_.R("design:type",Array),_.R("design:paramtypes",[])],d_.prototype,"inlineMetadataBadges",null);_.J([_.M("shouldShowTopBadges"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d_.prototype,"shouldShowBadgesBelowMetadata",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],d_.prototype,"compactTitleClass",null);_.J([_.k({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],d_);
_.Y(d_,"ytd-compact-video-renderer",function(){if(jFi!==void 0)return jFi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return jFi=y},{mode:_.qM("kevlar_poly_si_batch_j067")?1:2});var $ss;_.ZQ("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var LR=function(){return _.u.apply(this,arguments)||this};
_.p(LR,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LR.prototype,"data",void 0);_.J([_.k({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],LR);
_.Y(LR,"ytd-counterfactual-renderer",function(){if($ss!==void 0)return $ss;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return $ss=y},{mode:1});var nb2;var zT=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;return y};
_.p(zT,_.u);zT.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.hs().resolve(_.oA).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
zT.prototype.computeHidden=function(y){return!!y};
_.CM.Object.defineProperties(zT.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}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zT.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.R("design:type",Object)],zT.prototype,"hidden",void 0);_.J([_.M("data.label"),_.R("design:type",String),_.R("design:paramtypes",[])],zT.prototype,"label",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],zT.prototype,"value",null);
_.J([_.k({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],zT);
_.Y(zT,"ytd-dropdown-item-renderer",function(){if(nb2!==void 0)return nb2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nb2=y},{mode:1});var HSs;var XFq;var ct=function(){return _.u.apply(this,arguments)||this};
_.p(ct,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ct.prototype,"data",void 0);_.J([_.q({computed:"getSimpleString(data.label)"}),_.R("design:type",String)],ct.prototype,"label",void 0);_.J([_.k({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ct);
_.Y(ct,"ytd-navigation-dropdown-item-renderer",function(){if(XFq!==void 0)return XFq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return XFq=y},{mode:1});var eo=function(){var y=_.u.apply(this,arguments)||this;y.disabled=!1;y.value="";y.noLabelFloat=!1;y.noUnderline=!1;y.usePrimaryColor=!1;y.hasBackground=!1;y.verticalAlign="top";y.autosize=!1;y.minAutosizeWidth=100;y.autosizeFont="14px Roboto";return y};
_.p(eo,_.u);_.E=eo.prototype;_.E.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"}}}};
_.E.open=function(){this.inputEl.open()};
_.E.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.E.dataChanged=function(){this.reset()};
_.E.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("value-changed",this.value))};
_.E.stopPropagation=function(y){y.stopPropagation()};
_.E.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var y=this.canvas.getContext("2d");y&&(y.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(y.measureText(this.inputEl.value).width)+24)+"px")}};
_.E.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var y=0,W=this.data.entries.length;y<W;y++){var V=this.data.entries[y],w;for(w in V)if(V.hasOwnProperty(w)){var t=V[w];if("isSelected"in t&&t.isSelected)return"stringValue"in t?t.stringValue||"":"int32Value"in t?t.int32Value||0:0}}return null};
_.E.updateValueFromBinding=function(y){this.value=y.detail.value};
_.CM.Object.defineProperties(eo.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 y=0,W=this.data.entries.length;y<W;y++){var V=this.data.entries[y],w;for(w in V)if(V.hasOwnProperty(w)){var t=V[w];if("isSelected"in t&&t.isSelected&&"label"in t)return this.ytRendererBehavior.getSimpleString(t.label)}}return null}}});
eo.prototype.autoSizeLabel=eo.prototype.autoSizeLabel;eo.prototype.stopPropagation=eo.prototype.stopPropagation;eo.prototype.valueChangedForBinding=eo.prototype.valueChangedForBinding;eo.prototype.dataChanged=eo.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],eo.prototype,"ytRendererStamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],eo.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eo.prototype,"disabled",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"value",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"noLabelFloat",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eo.prototype,"noUnderline",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],eo.prototype,"theme",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eo.prototype,"usePrimaryColor",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eo.prototype,"hasBackground",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"verticalAlign",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"autosize",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"minAutosizeWidth",void 0);_.J([_.q(),_.R("design:type",Object)],eo.prototype,"autosizeFont",void 0);
_.J([_.s$("#entries"),_.R("design:type",Object)],eo.prototype,"entries",void 0);_.J([_.s$("#input"),_.R("design:type",Object)],eo.prototype,"inputEl",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eo.prototype,"dataChanged",null);_.J([_.Jc("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eo.prototype,"valueChangedForBinding",null);
_.J([_.l6("iron-overlay-opened"),_.l6("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],eo.prototype,"stopPropagation",null);_.J([_.l6("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eo.prototype,"autoSizeLabel",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eo.prototype,"label",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],eo);
_.Y(eo,"ytd-dropdown-renderer",function(){if(HSs!==void 0)return HSs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HSs=y},{mode:1});var azs;var hQ=function(){var y=_.u.apply(this,arguments)||this;y.isConstrainedList=!1;return y};
_.p(hQ,_.u);hQ.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"}}}};
hQ.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
hQ.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
hQ.prototype.computeViewAllHidden=function(y,W){return y||!W.viewAllEndpoint};
hQ.prototype.fillRestIfNoShowMore=hQ.prototype.fillRestIfNoShowMore;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],hQ.prototype,"ytLazyListBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hQ.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],hQ.prototype,"isConstrainedList",void 0);_.J([_.Jc("data","canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hQ.prototype,"fillRestIfNoShowMore",null);_.J([_.k({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],hQ);
_.Y(hQ,"ytd-expanded-shelf-contents-renderer",function(){if(azs!==void 0)return azs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return azs=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var GUI;var ol=function(){return _.u.apply(this,arguments)||this};
_.p(ol,_.u);ol.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ol.prototype,"data",void 0);_.J([_.k({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],ol);
_.Y(ol,"ytd-feed-channel-filter-header-renderer",function(){if(GUI!==void 0)return GUI;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return GUI=y},{mode:1});var rHA;var bSf;var QFE;var KR=function(){return _.u.apply(this,arguments)||this};
_.p(KR,_.u);_.E=KR.prototype;_.E.onClick=function(y){var W,V=(W=this.data)==null?void 0:W.sectionEndpoint;!_.c5(_.O$(y),this.hostElement,["A".toString()])&&V&&_.h1(this.hostElement,"yt-navigate",{endpoint:V})};
_.E.computeHasSectionEndpoint=function(y){return(y==null?void 0:y.sectionEndpoint)!==void 0};
_.E.computeShowHeaderAsLink=function(y){return(y==null?void 0:y.header)!==void 0&&(y==null?void 0:y.sectionEndpoint)!==void 0};
_.E.computeShowSubheaderAsLink=function(y){return(y==null?void 0:y.subheader)!==void 0&&(y==null?void 0:y.sectionEndpoint)!==void 0&&(y==null?void 0:y.header)===void 0};
_.E.getHeaderAsLinkClass=function(y){var W=[],V;(y==null?0:(V=y.headerIcon)==null?0:V.iconType)&&W.push("header-link-active");return W.join(" ")};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KR.prototype,"data",void 0);
_.J([_.q({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],KR.prototype,"hasSectionEndpoint",void 0);_.J([_.q({computed:"computeShowHeaderAsLink(data)"}),_.R("design:type",Boolean)],KR.prototype,"showHeaderAsLink",void 0);_.J([_.q({computed:"computeShowSubheaderAsLink(data)"}),_.R("design:type",Boolean)],KR.prototype,"showSubheaderAsLink",void 0);_.J([_.k({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],KR);
_.Y(KR,"ytd-medical-panel-section-renderer",function(){if(QFE!==void 0)return QFE;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return QFE=y},{mode:1});var pR=function(){var y=_.u.apply(this,arguments)||this;y.isExpanded=!1;y.roundedContainer=!0;y.skipRoundingTop=!1;y.toggleExpandableSection=function(){y.isExpanded=!y.isExpanded};
return y};
_.p(pR,_.u);
pR.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]]"}}}}}};
pR.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
pR.prototype.dataChanged=pR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pR.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],pR.prototype,"isExpanded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pR.prototype,"roundedContainer",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pR.prototype,"skipRoundingTop",void 0);_.J([_.q(),_.R("design:type",Object)],pR.prototype,"toggleExpandableSection",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pR.prototype,"dataChanged",null);_.J([_.k({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],pR);
_.Y(pR,"ytd-medical-panel-content-renderer",function(){if(bSf!==void 0)return bSf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return bSf=y},{mode:1});_.ZQ("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var iH=function(){var y=_.u.apply(this,arguments)||this;y.roundedContainer=!0;y.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");y.hasTitle=!1;y.linkIcon="OPEN_IN_NEW";y.isDismissed=!1;return y};
_.p(iH,_.u);
iH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
iH.prototype.computeHasTitle=function(y){return!(y==null||!y.title)};
iH.prototype.onClick=function(y){var W,V=(W=this.data)==null?void 0:W.headerEndpoint;!_.c5(_.O$(y),this.hostElement,["BUTTON".toString()])&&V&&this.ytComponentBehavior.resolveCommand(V)};
_.CM.Object.defineProperties(iH.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 y;return((y=this.data)==null?void 0:y.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.disableBottomDivider)||!((W=this.data)==null?0:W.title)}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],iH.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],iH.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iH.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iH.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"amsterdamEnabled",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.R("design:type",Object)],iH.prototype,"hasTitle",void 0);
_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.R("design:type",Object),_.R("design:paramtypes",[])],iH.prototype,"background",null);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.titleStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],iH.prototype,"titleStyle",null);
_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data.titleStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],iH.prototype,"showLinkIcon",null);_.J([_.q(),_.R("design:type",String)],iH.prototype,"linkIcon",void 0);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],iH.prototype,"hideDivider",null);
_.J([_.q({selectorArgs:["data.dismissStateEntityKey"],selector:function(y,W){y=_.UB(y.entities,"dismissState",W);return(y==null?void 0:y.isDismissed)||(y==null?void 0:y.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(y==null?void 0:y.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.R("design:type",Object)],iH.prototype,"isDismissed",void 0);_.J([_.k({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],iH);
_.Y(iH,"ytd-info-panel-container-renderer",function(){if(rHA!==void 0)return rHA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return rHA=y},{mode:1});var ZSR;_.ZQ("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var fR=function(){var y=_.u.apply(this,arguments)||this;y.modernTypography=_.e("web_modern_typography");return y};
_.p(fR,_.u);fR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fR.prototype.computeStyle=function(y){return y?y:""};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fR.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.R("design:type",String)],fR.prototype,"titleStyle",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fR.prototype,"modernTypography",void 0);_.J([_.k({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],fR);
_.Y(fR,"ytd-item-section-header-renderer",function(){if(ZSR!==void 0)return ZSR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ZSR=y},{mode:1});var yuA;var Wp2,V22=function(){return Wp2!==void 0?Wp2:Wp2=document.createElement("template")};
document.head.appendChild(V22().content);var w$R;_.TT=new _.e9("VOTING_ANIMATION_CONTROLLER_TOKEN");var Fp6=_.eY(function(y){var W=y.data;var V=_.I0("div"),w=_.I0("div");y=_.N(_.M1("VOTE_STATUS_NONE",void 0,"FVF7mc"));var t=y.next().value,F=y.next().value,I=_.Yn(uwb,function(){var c;return(c=W())==null?void 0:c.entityKey}),P=_.e("web_enable_voting_animation")||_.e("enable_music_web_cairo_voting_animation");
_.a8(function(){var c;((c=W().initialState)==null?0:c.status)&&F(W().initialState.status)});
var C=function(){var c,K,f=(K=(c=W().initialState)==null?void 0:c.votes)!=null?K:0,U;c=(U=W().initialState)==null?void 0:U.status;return c==="VOTE_STATUS_UPVOTED"?f-1:c==="VOTE_STATUS_DOWNVOTED"?f+1:f},d=function(){return t()==="VOTE_STATUS_UPVOTED"?C()+1:t()==="VOTE_STATUS_DOWNVOTED"?C()-1:C()},L=function(c){var K=c?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
F(K);var f=d(),U=_.hs().resolve(_.eX(_.TT)),l=I();l&&(c&&(l==null?0:l.upvoteDefaultButtonOnTap)?_.Id(l.upvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(l==null?0:l.upvoteToggledButtonOnTap)&&_.Id(l.upvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var x;c=(x=l==null?void 0:l.enableOptimisticReordering)!=null?x:W().enableOptimisticReordering;P&&U&&W().itemId&&c&&t26(U,W().itemId,f,K)},z=function(c){var K=c?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
F(K);var f=d(),U=_.hs().resolve(_.eX(_.TT)),l=I();l&&(c&&(l==null?0:l.downvoteDefaultButtonOnTap)?_.Id(l.downvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(l==null?0:l.downvoteToggledButtonOnTap)&&_.Id(l.downvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var x;c=(x=l==null?void 0:l.enableOptimisticReordering)!=null?x:W().enableOptimisticReordering;P&&U&&W().itemId&&c&&t26(U,W().itemId,f,K)};
y={};y=_.kS("ytVotingViewModelVoteCount",(y.ytVotingViewModelVoteCountDisabled=function(){return W().isDisabled},y));
return _.O("voting-view-model",{class:"ytVotingViewModelHost"},_.O("div",{el:V},_.O(_.Q7,{data:function(){var c=_.h(W().upvoteButton,_.aJ);return{toggleButtonViewModel:Object.assign({},c,{isToggled:t()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(c){return _.O(_.XV,{data:c.data,
onToggle:L})}})),_.O("div",{class:y},function(){var c,K,f;
return t()==="VOTE_STATUS_UPVOTED"?(c=W().initialState)==null?void 0:c.compactVotesUpvoted:t()==="VOTE_STATUS_DOWNVOTED"?(K=W().initialState)==null?void 0:K.compactVotesDownvoted:(f=W().initialState)==null?void 0:f.compactVotes}),_.O("div",{el:w},_.O(_.Q7,{data:function(){var c=_.h(W().downvoteButton,_.aJ);
return{toggleButtonViewModel:Object.assign({},c,{isToggled:t()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(c){return _.O(_.XV,{data:c.data,
onToggle:z})}})))},"Rb");_.iF(_.eY(function(y){var W=y.data;return _.O("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.O("div",{class:_.kS("ytEngagementBarViewModelEngagementBarWrapper",y.className)},_.O(_.Q7,{data:function(){return W().actions}},{votingViewModel:Fp6})))},"Sb"),"engagement-bar-view-model",{props:{data:_.vB,
className:_.vB}});var m7=function(){var y=_.u.apply(this,arguments)||this;y.playlistVotingAnimationEnabled=_.e("web_enable_voting_animation");y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.downloadState="DOWNLOAD_STATE_UNKNOWN";y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";y.offlineVideoPolicyExpirationTimestamp=0;return y};
_.p(m7,_.u);_.E=m7.prototype;_.E.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"}}}};
_.E.canReorderChanged=function(){this.persistentDragHandle=_.e("kevlar_playlist_drag_handles")&&this.canReorder};
_.E.onDrag=function(){if(this.thumbnail){var y=_.i6(this.thumbnail).querySelector("yt-image");y&&(y.shouldRenderLazy=!1)}};
_.E.onMenuOverlayChanged=function(y,W){this.menuOpened=W};
_.E.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.E.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.E.onContentsTap=function(y){var W,V=(W=this.data)==null?void 0:W.serviceEndpoints;if(V&&V.length===1&&_.h(V[0],YCz)&&!_.c5(_.O$(y),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(V[0]);else{var w;(W=(w=this.data)==null?void 0:w.navigationEndpoint)&&_.e("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?E8R(_.hs().resolve(_.VH),W):(_.s8().playlistSuggestionsShelfActivation=
!0,_.NnA(_.hs().resolve(_.VH),W)):W&&!_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.e("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.h1(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))}};
_.E.computeStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeThumbnailWidth=function(y){return y==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.E.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=pPj(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))}};
_.E.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.E.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.E.dataChanged=function(){if(this.data){var y,W,V,w=((y=this.downloadRenderData)==null?void 0:y.badges)&&((W=this.downloadRenderData)==null?void 0:W.badges)!==((V=this.data)==null?void 0:V.badges),t,F,I;y=((t=this.downloadRenderData)==null?void 0:t.thumbnailOverlays)&&((F=this.downloadRenderData)==null?void 0:F.thumbnailOverlays)!==((I=this.data)==null?void 0:I.thumbnailOverlays);(!this.downloadRenderData||w||y)&&this.downloadStateChanged()}};
_.E.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var y,W,V=(y=this.data.menu)==null?void 0:(W=y.menuRenderer)==null?void 0:W.items;if(V)for(y=_.N(V),W=y.next();!W.done;W=y.next())if(W=W.value,V=void 0,_.h((V=W.menuServiceItemRenderer)==null?void 0:V.serviceEndpoint,_.yB)){var w=V=void 0,t=void 0;W=(V=W)==null?void 0:(w=V.menuServiceItemRenderer)==null?void 0:(t=w.serviceEndpoint)==null?void 0:t.playlistEditEndpoint;t=w=void 0;if(V=(w=W)==null?void 0:(t=w.actions)==null?void 0:
t[0])w=void 0,V.setVideoId=(w=this.data)==null?void 0:w.setVideoId;t=w=V=void 0;if(W=(V=W)==null?void 0:(w=V.clientActions)==null?void 0:(t=w[0])==null?void 0:t.playlistRemoveVideosAction)V=void 0,W.setVideoIds=[(V=this.data)==null?void 0:V.setVideoId]}}};
_.CM.Object.defineProperties(m7.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
m7.prototype.setVideoIdChanged=m7.prototype.setVideoIdChanged;m7.prototype.dataChanged=m7.prototype.dataChanged;m7.prototype.downloadStateChanged=m7.prototype.downloadStateChanged;m7.prototype.onMenuOverlayChanged=m7.prototype.onMenuOverlayChanged;m7.prototype.canReorderChanged=m7.prototype.canReorderChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],m7.prototype,"ytdReduxBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],m7.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],m7.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],m7.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"canReorder",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"menuOpened",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"handleIsHovered",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"persistentDragHandle",void 0);_.J([_.q(),_.R("design:type",Object)],m7.prototype,"downloadRenderData",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],m7.prototype,"styleType",void 0);_.J([_.q({computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],m7.prototype,"thumbnailWidth",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"isDownloads",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],m7.prototype,"playlistVotingAnimationEnabled",void 0);
_.J([_.q({selector:VY,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"downloadProgress",void 0);_.J([_.q(),_.R("design:type",Number)],m7.prototype,"relativeDateReference",void 0);_.J([_.q({selector:_.yY,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"transferState",void 0);_.J([_.q({selector:H3R,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"downloadState",void 0);
_.J([_.q({selector:uBv,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"offlinePolicyAction",void 0);_.J([_.q({selector:S8a,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.J([_.q({selector:lNn,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],m7.prototype,"entityInfo",void 0);_.J([_.q({selector:_.bg}),_.R("design:type",Boolean)],m7.prototype,"miniplayerIsActive",void 0);
_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],m7.prototype,"playlistVideoId",null);_.J([_.s$("#thumbnail"),_.R("design:type",Object)],m7.prototype,"thumbnail",void 0);_.J([_.Jc("canReorder"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m7.prototype,"canReorderChanged",null);
_.J([_.l6("yt-menu-overlay-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Boolean]),_.R("design:returntype")],m7.prototype,"onMenuOverlayChanged",null);_.J([_.Jc("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m7.prototype,"downloadStateChanged",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m7.prototype,"dataChanged",null);_.J([_.Jc("data.setVideoId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m7.prototype,"setVideoIdChanged",null);_.J([_.k({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],m7);
_.Y(m7,"ytd-playlist-video-renderer",function(){if(w$R!==void 0)return w$R;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);y.content.insertBefore(V22().content.cloneNode(!0),y.content.firstChild);return w$R=y},{mode:1});var I_E;var Mt=function(){return _.u.apply(this,arguments)||this};
_.p(Mt,_.u);_.J([_.q(),_.R("design:type",Object)],Mt.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Mt.prototype,"rendererBehavior",void 0);_.J([_.k({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Mt);
_.Y(Mt,"ytd-premium-browse-footer-renderer",function(){if(I_E!==void 0)return I_E;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return I_E=y},{mode:1});var g8Q;var qt=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return y};
_.p(qt,_.u);_.E=qt.prototype;_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.E.handleDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.computeHeaderLogoThumbnail=function(y,W){if(y)return W?y.darkLogo:y.lightLogo};
_.E.computeHeaderLogoHeight=function(y,W){var V,w,t;return(y=(V=this.computeHeaderLogoThumbnail(y,W))==null?void 0:(w=V.thumbnails)==null?void 0:(t=w[0])==null?void 0:t.height)&&y%31===0?"31":"24"};
_.E.computeHeaderLogoMarginBottom=function(y,W){return this.computeHeaderLogoHeight(y,W)==="24"?"0":"-7"};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],qt.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qt.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],qt.prototype,"isDarkTheme",void 0);_.J([_.q({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.R("design:type",Object)],qt.prototype,"themeLogo",void 0);
_.J([_.q({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.R("design:type",String)],qt.prototype,"logoHeight",void 0);_.J([_.q({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.R("design:type",String)],qt.prototype,"logoMarginBottom",void 0);_.J([_.k({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],qt);
_.Y(qt,"ytd-primetime-promo-header-renderer",function(){if(g8Q!==void 0)return g8Q;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return g8Q=y},{mode:1});var P3I;var Ofq=_.eY(function(y){var W=_.YS(function(t){var F;(F=y.onClick)==null||F.call(y,t)}),V={},w={};
return _.O("yt-shelf-header-layout",{class:_.kS("shelf-header-layout-wiz",(V["shelf-header-layout-wiz--disable-horizontal-padding"]=y.disableHorizontalPadding,V["shelf-header-layout-wiz--disable-vertical-padding"]=y.disableVerticalPadding,V["shelf-header-layout-wiz--responsive"]=y.useResponsiveLayout,V["shelf-header-layout-wiz--narrow"]=function(){var t,F;return((t=y.useResponsiveLayout)==null?void 0:t.call(y))&&((F=y.forceSmallLayout)==null?void 0:F.call(y))},V["shelf-header-layout-wiz--is-overlay"]=
y.isOverlay,V["shelf-header-layout-wiz--tappable"]=!!y.onClick,V)),
"on:click":W,tabindex:function(){var t;return((t=y.isInteractive)==null?0:t.call(y))?0:void 0}},_.O(_.v,{cond:y.leadingIcon,
then:function(t){return _.O("div",{class:"shelf-header-layout-wiz__leading-icon"},_.O(_.jl,{icon:t}))},
else:function(){return _.O(_.v,{cond:y.hasLeadingImage,then:function(){var t,F={};return _.O("div",{class:_.kS("shelf-header-layout-wiz__leading-image",(F["shelf-header-layout-wiz__leading-image--circular-image"]=y.circularImage,F))},(t=y.leadingImage)==null?void 0:t.call(y))}})}}),_.O("div",{class:"shelf-header-layout-wiz__label-container"},_.O(_.v,{cond:y.hasSuperlabel,
then:function(){var t;return _.O("div",{class:"shelf-header-layout-wiz__superlabel"},(t=y.superlabel)==null?void 0:t.call(y))}}),_.O("div",{class:"shelf-header-layout-wiz__title-row"},_.O(C3m,{text:y.title,
className:_.kS("shelf-header-layout-wiz__title",(w["shelf-header-layout-wiz__title--small-title"]=y.forceSmallLayout,w)),tagLevel:y.tagLevel}),_.O(_.v,{cond:y.hasDetail,then:function(){var t;return _.O("div",{class:"shelf-header-layout-wiz__detail"},(t=y.detail)==null?void 0:t.call(y))}})),_.O(_.v,{cond:y.hasSublabel,
then:function(){var t;return _.O("div",{class:"shelf-header-layout-wiz__sublabel"},(t=y.sublabel)==null?void 0:t.call(y))}})),_.O(_.v,{cond:y.hasTrailingActions,
then:function(){var t;return _.O("div",{class:"shelf-header-layout-wiz__trailing-actions"},(t=y.trailingActions)==null?void 0:t.call(y))}}))},"Tb");
Ofq.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var C3m=_.eY(function(y){var W=y.text;var V=y.className;var w=y.tagLevel;return _.O(_.$V,null,_.O(_.BV,{when:function(){return(w==null?void 0:w())===0}},function(){return _.O("h2",{class:V},W())}),_.O(_.BV,{when:function(){return(w==null?void 0:w())===1}},function(){return _.O("h3",{class:V},W())}),_.O(_.BV,{when:function(){return(w==null?void 0:w())===2}},function(){return _.O("h4",{class:V},W())}),_.O(_.j0,null,function(){return _.O("h2",{class:V},W())}))},"Ub");var LpK,v8z,dZI;_.U2=_.eY(function(y){var W=y.className;var V=y.data;var w=y.disableHorizontalPadding;var t=y.disableVerticalPadding;var F=y.forceSmallLayout;var I=y.useResponsiveLayout;y=y.isOverlay;return _.O("yt-section-header-view-model",{class:_.kS("ytSectionHeaderViewModelHost",W),style:_.Rd({"background-color":function(){return Sun(V().backgroundColor)?_.wg(Sun(V().backgroundColor)):void 0}})},_.O(Ofq,{hasDetail:!1,
title:function(){return _.O(_.Lv,{text:function(){return V().headline}})},
hasTitle:!0,sublabel:function(){return _.O(v8z,{data:V})},
hasSublabel:function(){return!!V().sublabel||!!V().bottomBadge},
superlabel:function(){return _.O(dZI,{data:V})},
hasSuperlabel:function(){return!!V().superlabel||!!V().topBadge},
leadingImage:function(){return _.O(LpK,{leadingAccessory:function(){return V().leadingAccessory}})},
hasLeadingImage:function(){return!!V().leadingAccessory},
trailingActions:function(){return _.O(_.Q7,{data:function(){return V().trailingActions}},{flexibleActionsViewModel:rZ})},
hasTrailingActions:function(){return!!V().trailingActions},
disableHorizontalPadding:w,disableVerticalPadding:t,forceSmallLayout:F,useResponsiveLayout:I,isOverlay:y,isInteractive:function(){return!!_.w7(V().rendererContext)},
onClick:function(P){if(_.tO(V().rendererContext)){var C=_.w7(V().rendererContext);C&&_.F2(C,{form:{element:P.target,event:P}})}}}))},"Vb");
LpK=_.eY(function(y){var W=y.leadingAccessory;return _.O(_.o8,null,_.O(_.v,{cond:function(){var V;return(V=W().image)!=null?V:_.OZ(W().themedImage)},
then:function(V){return _.O(_.ca,{data:V,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.O(_.v,{cond:function(){return _.h(W().avatar,_.EZ)},
then:function(V){return _.O(_.ra,{data:V})}}))},"Wb");
v8z=_.eY(function(y){var W=y.data;return _.O(_.o8,null,_.O(_.v,{cond:function(){return _.h(W().bottomBadge,UiE)},
then:function(V){var w={};return _.O(_.ip,{data:V,class:_.kS((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!W().sublabel},w))})}}),_.O(_.v,{cond:function(){return W().sublabel},
then:function(V){return _.O(_.Lv,{text:V})}}))},"Xb");
dZI=_.eY(function(y){var W=y.data;return _.O(_.o8,null,_.O(_.v,{cond:function(){return _.h(W().topBadge,UiE)},
then:function(V){var w={};return _.O(_.ip,{data:V,class:_.kS((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!W().superlabel},w))})}}),_.O(_.v,{cond:function(){return W().superlabel},
then:function(V){return _.O(_.Lv,{text:V})}}))},"Yb");_.iF(_.U2,"yt-section-header-view-model",{props:{data:_.vB,className:_.vB,disableHorizontalPadding:_.vB,disableVerticalPadding:_.vB,forceSmallLayout:_.vB,useResponsiveLayout:_.vB,isOverlay:_.vB}});_.ZQ("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var uH=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return y};
_.p(uH,_.u);_.E=uH.prototype;_.E.attached=function(){this.requestElementsPerRow()};
_.E.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"}}}};
_.E.onDataChange=function(){var y=this;_.gy(this,function(){y.updateItemVisibility()})};
_.E.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y,this.updateItemVisibility())};
_.E.updateItemVisibility=function(){var y=this;this.data&&this.data.panels&&_.i6(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(W,V){W.hidden=V>y.elementsPerRow-1})};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
uH.prototype.onDataChange=uH.prototype.onDataChange;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],uH.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],uH.prototype,"actionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],uH.prototype,"data",void 0);_.J([_.q({value:3}),_.R("design:type",Number)],uH.prototype,"elementsPerRow",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uH.prototype,"onDataChange",null);_.J([_.k({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],uH);
_.Y(uH,"ytd-primetime-promo-renderer",function(){if(P3I!==void 0)return P3I;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return P3I=y},{mode:1});var zaA;var So=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return y};
_.p(So,_.u);So.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
So.prototype.handleButtonRefreshAction=function(y){if(y=_.h(y,Svz))this.set("data.button",y.membershipButton),this.notifyPath("data.button")};
_.CM.Object.defineProperties(So.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.avatars)==null?void 0:W.slice(0,8))||[]}}});
_.J([_.q(),_.R("design:type",Object)],So.prototype,"data",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],So.prototype,"rendererBehavior",void 0);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],So.prototype,"avatars",null);
_.J([_.k({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],So);
_.Y(So,"ytd-recognition-shelf-renderer",function(){if(zaA!==void 0)return zaA;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zaA=y},{mode:1});var cu2;var eaQ;var Do=function(){var y=_.u.apply(this,arguments)||this;y.modernButtons=_.e("web_modern_buttons");return y};
_.p(Do,_.u);_.E=Do.prototype;
_.E.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]]"}}}}}};
_.E.dataChanged=function(){this.collapsed=!0};
_.E.computeVisibleItems=function(y,W){return y!==void 0&&y.items?W?y.items.slice(0,this.data.collapsedItemCount):y.items:[]};
_.E.computeHideShowMore=function(y,W,V){return y>=W||!V};
_.E.computeHideShowAll=function(y,W,V){return!(y&&W)||V};
_.E.onMoreClick=function(){this.collapsed=!1};
_.CM.Object.defineProperties(Do.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.e("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.iC("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.e("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Do.prototype.dataChanged=Do.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Do.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Do.prototype,"isSearch",void 0);
_.J([_.q({computed:"computeVisibleItems(data,collapsed)"}),_.R("design:type",Array)],Do.prototype,"visibleItems",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],Do.prototype,"collapsed",void 0);_.J([_.q({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.R("design:type",Boolean)],Do.prototype,"hideShowMore",void 0);
_.J([_.q({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.R("design:type",Boolean)],Do.prototype,"hideShowAll",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Do.prototype,"modernButtons",void 0);_.J([_.M("isSearch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Do.prototype,"typographyBump",null);
_.J([_.M("isSearch"),_.R("design:type",Object),_.R("design:paramtypes",[])],Do.prototype,"lockupExperiments",null);_.J([_.M("isSearch"),_.R("design:type",String),_.R("design:paramtypes",[])],Do.prototype,"thumbnailWidth",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Do.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Do);
_.Y(Do,"ytd-vertical-list-renderer",function(){if(eaQ!==void 0)return eaQ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return eaQ=y},{mode:1});var haE=_.CF(["#"]);_.ZQ("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var lH=function(){var y=_.u.apply(this,arguments)||this;y.isConstrainedList=!1;y.modernTypography=_.e("web_modern_typography");return y};
_.p(lH,_.u);_.E=lH.prototype;
_.E.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"}}}};
_.E.computeThumbnailStyle=function(y){return y||""};
_.E.computePlaceAnnotationUnderTitle=function(){var y;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((y=this.data)==null?void 0:y.thumbnailStyle)||"")};
_.E.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y)||_.A_u(haE)};
_.E.computeIsPromoShelf=function(y){var W;return(y=y==null?void 0:(W=y[0])==null?void 0:W.metadataBadgeRenderer)?y.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.E.computePlaceBadgeBesideTitle=function(y){var W;return(y==null?0:(W=y[0])==null?0:W.metadataBadgeRenderer)?!this.computeIsPromoShelf(y):!1};
_.E.computeMenuIcon=function(y){return this.computeIsPromoShelf(y)?"yt-icons:more_vert":"yt-icons:more"};
_.E.onDataChange=function(){var y,W;((y=this.data)==null?0:(W=y.content)==null?0:W.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.E.onLockupRequested=function(y){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&y.detail&&y.detail.videoIds){for(var W=this.data.content.gridRenderer.items,V=new Set,w=_.N(y.detail.videoIds),t=w.next();!t.done;t=w.next())V.add(t.value);y.detail.returnValue=W.filter(function(F){return F.gridVideoRenderer&&F.gridVideoRenderer.videoId&&V.has(F.gridVideoRenderer.videoId)}).map(function(F){return F.gridVideoRenderer})}};
_.E.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
lH.prototype.onLockupRequested=lH.prototype.onLockupRequested;lH.prototype.onDataChange=lH.prototype.onDataChange;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],lH.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],lH.prototype,"ironResizableBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lH.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],lH.prototype,"isSearch",void 0);_.J([_.q(),_.R("design:type",Object)],lH.prototype,"isConstrainedList",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("kevlar_fluid_dismiss")}}),
_.R("design:type",Boolean)],lH.prototype,"enableFluidDismiss",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.R("design:type",String)],lH.prototype,"thumbnailStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lH.prototype,"modernTypography",void 0);_.J([_.q({computed:"computeMenuIcon(data.badges)"}),_.R("design:type",String)],lH.prototype,"menuIcon",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"onDataChange",null);_.J([_.l6("yt-lockup-requested"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lH.prototype,"onLockupRequested",null);_.J([_.k({is:"ytd-shelf-renderer",disableElementRegistration:!0})],lH);
_.Y(lH,"ytd-shelf-renderer",function(){if(cu2!==void 0)return cu2;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return cu2=y},{mode:1});var o82;var x6=function(){return _.u.apply(this,arguments)||this};
_.p(x6,_.u);x6.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.CM.Object.defineProperties(x6.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],x6.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],x6.prototype,"isPlaylist",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],x6.prototype,"isClipList",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],x6.prototype,"isPlaylistPageWithFilters",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],x6.prototype,"hasTitle",null);_.J([_.q(),_.M("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.R("design:type",Object),_.R("design:paramtypes",[])],x6.prototype,"isRightAligned",null);
_.J([_.k({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],x6);
_.Y(x6,"ytd-sort-filter-header-renderer",function(){if(o82!==void 0)return o82;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return o82=y},{mode:1});var KpA;var k6=function(){var y=_.u.apply(this,arguments)||this;y.enableRightArrowHidden=_.e("channel_details_shelf_resize_observer");return y};
_.p(k6,_.u);k6.prototype.attached=function(){var y=this;this.enableRightArrowHidden&&(this.JSC$16243_throttledOnResize=new _.d7(function(){var W;(W=y.ytdHorizontalListBehavior)==null||W.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var W;
(W=y.JSC$16243_throttledOnResize)==null||W.fire()}),this.resizeObserver.observe(this.hostElement))};
k6.prototype.detached=function(){if(this.enableRightArrowHidden){var y;(y=this.resizeObserver)==null||y.disconnect();var W;(W=this.JSC$16243_throttledOnResize)==null||W.dispose()}};
k6.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]]"}}}}}};
k6.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.CM.Object.defineProperties(k6.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.e("enable_creator_details_shelf_m2")){var y=[],W;((W=this.data)==null?0:W.creatorVideosButton)&&y.push(this.data.creatorVideosButton);var V;((V=this.data)==null?0:V.creatorAboutButton)&&y.push(this.data.creatorAboutButton);W=_.N(this.data.creatorCustomUrlButtons||[]);for(V=W.next();!V.done;V=W.next())y.push(V.value);return y}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.e("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],k6.prototype,"ytdHorizontalListBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],k6.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],k6.prototype,"engagementPanel",void 0);
_.J([_.q(),_.R("design:type",Object)],k6.prototype,"enableRightArrowHidden",void 0);_.J([_.M("enableRightArrowHidden","atEnd"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],k6.prototype,"hideRightArrow",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],k6.prototype,"creatorCustomUrlButtons",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data","creatorCustomUrlButtons"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],k6.prototype,"showCreatorCustomUrlButtons",null);_.J([_.M("showCreatorCustomUrlButtons"),_.R("design:type",Number),_.R("design:paramtypes",[])],k6.prototype,"channelAvatarSize",null);_.J([_.k({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],k6);
_.Y(k6,"ytd-video-description-infocards-section-renderer",function(){if(KpA!==void 0)return KpA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return KpA=y},{mode:_.qM("kevlar_poly_si_batch_j067")?1:2});var p$Q;var s2=function(){return _.u.apply(this,arguments)||this};
_.p(s2,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],s2.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.infoIcon)"}),_.R("design:type",Object)],s2.prototype,"infoIcon",void 0);_.J([_.k({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],s2);
_.Y(s2,"ytd-eom-settings-disclaimer-renderer",function(){if(p$Q!==void 0)return p$Q;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return p$Q=y},{mode:1});var ifs;var AQ=function(){return _.u.apply(this,arguments)||this};
_.p(AQ,_.u);_.CM.Object.defineProperties(AQ.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.suppressPaddingDisclaimer)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],AQ.prototype,"componentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AQ.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],AQ.prototype,"suppressPaddingDisclaimer",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],AQ);
_.Y(AQ,"ytd-product-list-header-renderer",function(){if(ifs!==void 0)return ifs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ifs=y},{mode:1});var f_2;var Y6=function(){return _.u.apply(this,arguments)||this};
_.p(Y6,_.u);Y6.prototype.computeThumbnailStyle=function(y){if(y&&(y=_.V2(y)))return"background-color:"+y+";"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Y6.prototype,"rendererBehaviors",void 0);_.J([_.q(),_.R("design:type",Object)],Y6.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Y6);
_.Y(Y6,"ytd-hashtag-tile-renderer",function(){if(f_2!==void 0)return f_2;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return f_2=y},{mode:1});var Tnr;var Bt=function(){return _.u.apply(this,arguments)||this};
_.p(Bt,_.u);Bt.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bt.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Bt);
_.Y(Bt,"ytd-sponsorships-alert-renderer",function(){if(Tnr!==void 0)return Tnr;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Tnr=y},{mode:1});var mZR;var JQ=function(){return _.u.apply(this,arguments)||this};
_.p(JQ,_.u);JQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.CM.Object.defineProperties(JQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.J([_.m(_.V$),_.R("design:type",Object)],JQ.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],JQ.prototype,"ytdLockupBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],JQ.prototype,"isGridViewEnabled",void 0);
_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JQ.prototype,"watchFeedBigThumbs",null);_.J([_.M("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],JQ.prototype,"thumbnailWidth",null);_.J([_.q(),_.R("design:type",Object)],JQ.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],JQ);
_.Y(JQ,"ytd-compact-movie-renderer",function(){if(mZR!==void 0)return mZR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return mZR=y},{mode:1});var M2f;var qds;var UZs=_.yC("HTML_DIR")==="rtl",Rl=function(){var y=_.u.apply(this,arguments)||this;y.engagementPanel=!1;y.maxLines=2;y.expandButtonOffset=0;y.showExpandButton=!1;y.isTruncated=!1;y.isExpanded=!1;y.currentSnippetType=2;y.alwaysShowExpandButton=!1;y.JSC$16260_lastWidth=NaN;y.observer=null;y.left=0;y.right=0;y.mid=0;y.longestSnippetLength=0;y.isFinalSnippet=!1;y.isFirstMutation=!1;y.isResetMutation=!1;y.OVERFLOW_THRESHOLD=5;return y};
_.p(Rl,_.u);_.E=Rl.prototype;_.E.onClick=function(y){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;if((W=window.getSelection())==null||!W.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.E.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.E.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.E.updateTextOnSnippetTypeChange=function(){_.e("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.E.setUpBinarySearch=function(y){y=y*this.maxLines/8;this.left=0;var W,V;this.right=Math.min(y*2,(V=(W=this.simpleText)==null?void 0:W.length)!=null?V:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.E.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.E.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.rQ(new _.Js("AttributedSnippet is empty when the description is not empty",this.text))};
_.E.mutationCallback=function(){if(this.observer!=null){var y=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var W=Math.floor(y*this.maxLines/8);this.setSnippetText(this.text,W);W!==0||this.attributedTextIsEmpty()||_.rQ(new _.Js("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;y=y*this.maxLines/8;this.left=0;var V;this.right=Math.min(y*2,(V=(W=this.simpleText)==null?void 0:W.length)!=null?V: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)}}};
_.E.mutationObserve=function(y){var W=this;this.observer||(this.observer=new MutationObserver(function(){W.mutationCallback()}));
this.observer.observe(y,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.E.attached=function(){var y=this;_.gy(this,function(){y.resize()})};
_.E.isExpandedChanged=function(){_.h1(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.E.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)};
_.E.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var y="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((UZs?"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",y);this.snippetContainer.style.setProperty("mask-image",
y)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(UZs?"right":"left",this.expandButtonOffset+"px")};
_.E.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.E.setSnippetText=function(y,W){y||(y={});if(_.dL(y)){var V=OU(y,W);V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.alignment||V.lineBreakMode?this.attributedSnippetTextEl?(_.e("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=OU(y,W),this.attributedSnippetTextEl.headerRuns=Siv(W,this.headerRuns)):this.attributedSnippetText={data:OU(y,W),headerRuns:Siv(W,this.headerRuns)},this.currentSnippetType=0):_.rQ(new _.Js("Tried to set snippet text when HTML element was null",
y)):(this.plainSnippetText.textContent=Pa(y.content||"",W),this.currentSnippetType=2)}else{a:{V=DjP(y,W);if(V.runs){V=_.N(V.runs);for(var w=V.next();!w.done;w=V.next())if(w=w.value,w.bold||w.deemphasize||w.italics||w.strikethrough||w.textColor||w.navigationEndpoint||_.h(w,Wa)){V=!0;break a}}V=!1}V?this.formattedSnippetText?(this.formattedSnippetText.text=DjP(y,W),this.currentSnippetType=1):_.rQ(new _.Js("Tried to set snippet text when HTML element was null",y)):(this.plainSnippetText.textContent=
Pa(_.OT(y),W),this.currentSnippetType=2)}};
_.E.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.E.attributedTextIsEmpty=function(){var y=this.text;if(!_.dL(y))return!0;var W;return((W=y.content)==null?void 0:W.length)===0?!0:!1};
_.E.resize=function(y){if(this.snippetText){if(y===void 0?0:y)this.JSC$16260_lastWidth=NaN;var W=this.hostElement.offsetWidth;if(W!==this.JSC$16260_lastWidth&&!this.isExpanded)if(this.JSC$16260_lastWidth=W,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;y=0;var V,w;W=Math.min(W*this.maxLines/8*2,(w=(V=this.simpleText)==null?void 0:V.length)!=null?w:0)-1;for(V=0;y<=W;)w=Math.floor(y+(W-y)/2),this.setSnippetText(this.text,w),this.isOverflowing()?W=w-1:(y=w+1,V=w);this.setSnippetText(this.text,V);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.E.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.E.onExpandClick=function(){var y=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.e("inline_expander_reset_focus_killswitch")||_.gy(this,function(){var W;((W=_.hs().resolve(_.eX(_.MC)))==null?0:W.isKeyBoardInUse())&&_.Pp(y.hostElement)});
_.h1(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.E.onCollapseClick=function(){this.collapse();_.h1(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.E.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.E.computeExpandButtonOffset=function(){var y=this.expandSizer;return y?UZs?y.offsetParent?y.offsetParent.offsetWidth-y.offsetWidth-y.offsetLeft:0:y.offsetLeft:0};
_.CM.Object.defineProperties(Rl.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.dL(this.text)?this.text.content||"":_.OT(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 _.dL(this.text)?!0:this.text&&_.e("web_replace_formatted_with_attributed_string")&&yVd(this.text)?(this.text=_.y4(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}}});
Rl.prototype.onTextChanged=Rl.prototype.onTextChanged;Rl.prototype.updateMaskAndExpandButtonOffset=Rl.prototype.updateMaskAndExpandButtonOffset;Rl.prototype.updateSnippetContainerMaxHeight=Rl.prototype.updateSnippetContainerMaxHeight;Rl.prototype.isExpandedChanged=Rl.prototype.isExpandedChanged;Rl.prototype.updateTextOnSnippetTypeChange=Rl.prototype.updateTextOnSnippetTypeChange;Rl.prototype.updateIsFormattedExpanded=Rl.prototype.updateIsFormattedExpanded;Rl.prototype.updateIsAttributedExpanded=Rl.prototype.updateIsAttributedExpanded;
Rl.prototype.onClick=Rl.prototype.onClick;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Rl.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"text",void 0);_.J([_.q(),_.R("design:type",Array)],Rl.prototype,"headerRuns",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Rl.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"maxLines",void 0);
_.J([_.q(),_.R("design:type",String)],Rl.prototype,"expandLabel",void 0);_.J([_.q(),_.R("design:type",String)],Rl.prototype,"collapseLabel",void 0);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"expandCommand",void 0);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"expandButtonOffset",void 0);_.J([_.M("text"),_.R("design:type",String),_.R("design:paramtypes",[])],Rl.prototype,"simpleText",null);
_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Rl.prototype,"onClick",null);_.J([_.M("text","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"expandedText",null);_.J([_.M("headerRuns","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"expandedHeaderRuns",null);
_.J([_.M("text"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Rl.prototype,"hasAttributedStringText",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Rl.prototype,"showExpandButton",void 0);_.J([_.M("collapseLabel","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"showCollapseButton",null);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"isTruncated",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Rl.prototype,"isExpanded",void 0);_.J([_.q(),_.R("design:type",Boolean)],Rl.prototype,"isAttributedExpanded",void 0);_.J([_.xA("isExpanded","hasAttributedStringText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"updateIsAttributedExpanded",null);_.J([_.q(),_.R("design:type",Boolean)],Rl.prototype,"isFormattedExpanded",void 0);
_.J([_.xA("isExpanded","hasAttributedStringText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"updateIsFormattedExpanded",null);_.J([_.q(),_.R("design:type",Number)],Rl.prototype,"currentSnippetType",void 0);_.J([_.M("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"useAttributedSnippet",null);
_.J([_.M("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"useFormattedSnippet",null);_.J([_.M("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rl.prototype,"usePlainSnippet",null);_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"alwaysShowExpandButton",void 0);_.J([_.xA("currentSnippetType"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"updateTextOnSnippetTypeChange",null);
_.J([_.q(),_.R("design:type",Object)],Rl.prototype,"attributedSnippetText",void 0);_.J([_.s$("#snippet"),_.R("design:type",HTMLElement)],Rl.prototype,"snippetContainer",void 0);_.J([_.s$("#snippet-text"),_.R("design:type",HTMLElement)],Rl.prototype,"snippetText",void 0);_.J([_.s$("#plain-snippet-text"),_.R("design:type",HTMLElement)],Rl.prototype,"plainSnippetText",void 0);_.J([_.s$("#formatted-snippet-text"),_.R("design:type",Object)],Rl.prototype,"formattedSnippetText",void 0);
_.J([_.s$("#attributed-snippet-text"),_.R("design:type",Object)],Rl.prototype,"attributedSnippetTextEl",void 0);_.J([_.s$("#expand"),_.R("design:type",HTMLElement)],Rl.prototype,"expandButton",void 0);_.J([_.s$("#expand-sizer"),_.R("design:type",HTMLElement)],Rl.prototype,"expandSizer",void 0);_.J([_.Jc("isExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"isExpandedChanged",null);
_.J([_.xA("isExpanded","maxLines"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"updateSnippetContainerMaxHeight",null);_.J([_.xA("isTruncated","showExpandButton","expandButtonOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"updateMaskAndExpandButtonOffset",null);
_.J([_.Jc("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rl.prototype,"onTextChanged",null);_.J([_.k({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Rl);
_.Y(Rl,"ytd-text-inline-expander",function(){if(qds===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);qds=y}y=qds;return y},{mode:2});var jo=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return y};
_.p(jo,_.u);jo.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
jo.prototype.handleUpdateDescriptionAction=function(y){if(y=_.h(y,_.WKE))if(y.attributedDescription)this.set("data.attributedDescriptionBodyText",y.attributedDescription);else if(y.description){var W;((W=this.data)==null?0:W.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.y4(y.description)):this.set("data.descriptionBodyText",y.description)}};
_.CM.Object.defineProperties(jo.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.attributedDescriptionBodyText)||!((W=this.data)==null||!W.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.collapsedLineCount){var W;return(W=this.data)==null?void 0:W.collapsedLineCount}y=_.pB("web_watch_description_collapsed_default_lines",12);if(_.e("ww_desc_line_page_size_ks"))return y;W=Math.round(_.B9().height*_.pB("web_watch_description_screen_height_percentage",.5)/20);return Math.max(W,y)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return(V=(y=this.data)==null?void 0:y.descriptionBodyText)!=null?V:(W=this.data)==null?void 0:W.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.sourceAttributions}}});
jo.prototype.panelContentVisibleChanged=jo.prototype.panelContentVisibleChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],jo.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jo.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Boolean)],jo.prototype,"panelContentVisible",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jo.prototype,"engagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jo.prototype,"shortsPanel",void 0);_.J([_.s$("#inline-expander"),_.R("design:type",Object)],jo.prototype,"inlineExpander",void 0);
_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jo.prototype,"panelContentVisibleChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jo.prototype,"hasDescriptionText",null);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],jo.prototype,"collapsedLines",null);
_.J([_.M("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.R("design:type",Object),_.R("design:paramtypes",[])],jo.prototype,"descriptionText",null);_.J([_.M("data","data.headerRuns"),_.R("design:type",Object),_.R("design:paramtypes",[])],jo.prototype,"headerRuns",null);_.J([_.M("data","data.sourceAttributions"),_.R("design:type",Object),_.R("design:paramtypes",[])],jo.prototype,"sourceAttributions",null);
_.J([_.k({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],jo);
_.Y(jo,"ytd-expandable-video-description-body-renderer",function(){if(M2f!==void 0)return M2f;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return M2f=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var uGR;var Sdm=_.eY(function(y){var W=y.data;return _.O("factoid-renderer",{class:"ytwFactoidRendererHost"},_.O("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return W().accessibilityText}},_.O("span",{class:"ytwFactoidRendererValue"},_.O(_.Lv,{text:function(){return W().value}})),_.O("span",{class:"ytwFactoidRendererLabel"},_.O(_.Lv,{text:function(){return W().label}}))))},"Zb");_.iF(Sdm,"factoid-renderer",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;return _.O("upload-time-factoid-renderer",null,_.O(_.Q7,{data:function(){return W().factoid}},{factoidRenderer:Sdm}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.p5}});_.iF(_.eY(function(y){var W=y.data;return _.O("view-count-factoid-renderer",null,_.O(_.Q7,{data:function(){return W().factoid}},{factoidRenderer:Sdm}))},"ac"),"view-count-factoid-renderer",{props:{data:_.p5}});var $6=function(){var y=_.u.apply(this,arguments)||this;y.shortsPanel=!1;y.engagementPanel=!1;y.watchWhileSdp=_.e("shorts_desktop_watch_while_sdp");return y};
_.p($6,_.u);$6.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"}}}}};
_.CM.Object.defineProperties($6.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var y;return(y=this.data)==null?void 0:y.channel}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],$6.prototype,"componentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$6.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$6.prototype,"shortsPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$6.prototype,"engagementPanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$6.prototype,"watchWhileSdp",void 0);_.J([_.M("shortsPanel","engagementPanel","data.channel"),_.R("design:type",Object),_.R("design:paramtypes",[])],$6.prototype,"showChannelInfo",null);_.J([_.k({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],$6);
_.Y($6,"ytd-video-description-header-renderer",function(){if(uGR!==void 0)return uGR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return uGR=y},{mode:1});var DZs;var nR=function(){return _.u.apply(this,arguments)||this};
_.p(nR,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],nR.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nR.prototype,"noPadding",void 0);_.J([_.q(),_.R("design:type",Object)],nR.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],nR);
_.Y(nR,"ytd-list-item-view-model",function(){if(DZs!==void 0)return DZs;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return DZs=y},{mode:1});var l_z;var xZK;var kHm;var sOi;var Ht=function(){var y=_.u.apply(this,arguments)||this;y.adaptiveFullWidth=!1;y.modernButtons=_.e("web_modern_buttons");y.buttonOverrides={style:"call-to-action",type:"filled"};y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return y};
_.p(Ht,_.u);Ht.prototype.handleSetTimestamp_=function(y){this.data&&this.data.shortUrl&&(_.i6(this.hostElement).querySelector("#share-url").value=y.isSet?_.NI(this.data.shortUrl,"t",y.timestamp):this.data.shortUrl)};
Ht.prototype.handleSignalActionCopyShareUrl_=function(y,W){(_.e("killswitch_copy_link_target_check")||_.i6(this.hostElement).querySelector("#copy-button")===W)&&this.copyUrlToClipboard()};
Ht.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.i6(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Ht.prototype.computeStyle_=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ht.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.R("design:type",String)],Ht.prototype,"rendererStyle",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ht.prototype,"adaptiveFullWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ht.prototype,"modernButtons",void 0);_.J([_.q(),_.R("design:type",Object)],Ht.prototype,"buttonOverrides",void 0);_.J([_.Zp({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Ht);
_.Y(Ht,"yt-copy-link-renderer",function(){if(sOi===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;kHm===void 0&&(kHm=document.createElement("template"));var w=kHm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);sOi=y}y=sOi;return y},{mode:2});_.ZQ("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var XY=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return y};
_.p(XY,_.u);_.E=XY.prototype;_.E.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.E.attached=function(){this.keyboardFocused=!1};
_.E.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var y=_.hs().resolve(_.eX(_.MC));y&&(this.keyboardFocused=y.isKeyBoardInUse())}};
_.E.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.E.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}};
_.E.onChange_=function(){if(this.data){var y=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;y&&this.ytComponentBehavior.resolveCommand(y);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.E.handleUpdateToggleAction_=function(y){(y=_.h(y,Vb6))&&this.data&&y.targetId==this.data.targetId&&this.set("data.toggled",y.toggled)};
_.E.toBoolean_=function(y){return!!y};
_.E.reset=function(){};
_.E.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("data-changed",this.data))};
_.E.updateDataToggledFromBinding=function(y){this.set("data.toggled",y.detail.value)};
XY.prototype.dataChangedForBinding=XY.prototype.dataChangedForBinding;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],XY.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],XY.prototype,"data",void 0);_.J([_.q({computed:"computeDescription_(data.*)"}),_.R("design:type",Object)],XY.prototype,"description_",void 0);_.J([_.q({value:function(){return!!_.hs().resolve(_.eX(_.MC))&&_.e("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.R("design:type",Boolean)],XY.prototype,"useKeyboardFocused",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],XY.prototype,"keyboardFocused",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XY.prototype,"dataChangedForBinding",null);_.J([_.Zp({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],XY);
_.Y(XY,"yt-toggle-form-field-renderer",function(){if(xZK===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;l_z===void 0&&(l_z=document.createElement("template"));var w=l_z;V.call(W,w.content.cloneNode(!0),y.content.firstChild);xZK=y}y=xZK;return y},{mode:2});var Auf;var YdE;var al=function(){var y=_.u.apply(this,arguments)||this;y.isDarkTheme=!1;y.isSearch=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.noTopMargin=_.e("kevlar_watch_no_top_margin");y.maskFade=_.e("web_watch_chips_mask_fade");y.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 y};
_.p(al,_.u);_.E=al.prototype;_.E.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}}}}}};
_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.E.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.E.dataChanged=function(){var y=this.getSelectedIndex();if(y>0)this.selected=y;else{this.selected=0;var W,V;(W=this.ytScrollableChipCloudBehavior)==null||(V=W.reset)==null||V.call(W)}};
_.E.getSelectedIndex=function(){var y;if((y=this.data)==null||!y.chips)return-1;y=-1;for(var W,V=0;V<((W=this.data)==null?void 0:W.chips.length);V++){var w=void 0,t=void 0;if((w=this.data)==null?0:(t=w.chips[V].chipCloudChipRenderer)==null?0:t.isSelected){y=V;break}}return y};
_.E.onResize=function(){var y=this.ytScrollableChipCloudBehavior;_.gy(y,y.setContainerWidthDiff);S$(this.ytScrollableChipCloudBehavior)};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.handleRelatedChipCommand=function(y,W){y=this.JSC$16287_chipsSelector.indexOf(W);y!==-1&&this.JSC$16287_chipsSelector.selectIndex(y)};
_.E.handleChipCloudChipSelectAction=function(y){y=this.JSC$16287_chipsSelector.indexOf(y);y>-1&&this.JSC$16287_chipsSelector.selectIndex(y)};
_.E.handleChipCloudChipDeselectAction=function(){var y=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16287_chipsSelector&&((y==null?0:y.continuationCommand)?_.i5(this.hostElement,[y]):(y==null?0:y.searchEndpoint)?this.ytComponentBehavior.resolveCommand(y):y&&_.fg(this.hostElement,[y],this.hostElement),this.JSC$16287_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.E.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
al.prototype.onResize=al.prototype.onResize;al.prototype.dataChanged=al.prototype.dataChanged;al.prototype.isSearchChanged=al.prototype.isSearchChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],al.prototype,"actionHandlerBehavior",void 0);
_.J([_.m(_.Gm),_.R("design:type",Object)],al.prototype,"ironResizableBehavior",void 0);_.J([_.m(),_.R("design:type",uv)],al.prototype,"ytScrollableChipCloudBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],al.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],al.prototype,"data",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],al.prototype,"selected",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],al.prototype,"isDarkTheme",void 0);_.J([_.q({value:160}),_.R("design:type",Number)],al.prototype,"scrollDistance",void 0);_.J([_.q(),_.R("design:type",Object)],al.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],al.prototype,"darkerDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],al.prototype,"noTopMargin",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],al.prototype,"maskFade",void 0);_.J([_.s$("#chips"),_.R("design:type",Object)],al.prototype,"JSC$16287_chipsSelector",void 0);_.J([_.xA("isSearch"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],al.prototype,"isSearchChanged",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],al.prototype,"dataChanged",null);
_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],al.prototype,"onResize",null);_.J([_.Zp({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],al);
_.Y(al,"yt-chip-cloud-renderer",function(){if(YdE===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Auf===void 0&&(Auf=document.createElement("template"));var w=Auf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);YdE=y}y=YdE;return y},{mode:2});var BnJ,Ju2=function(){return BnJ!==void 0?BnJ:BnJ=document.createElement("template")};
document.head.appendChild(Ju2().content);var Raf;var jOA=document.head,$Zi=jOA.appendChild,n8J;if(Raf===void 0){var Hf2=document.createElement("template");_.T(Hf2,"");Hf2.content.insertBefore(Ju2().content.cloneNode(!0),Hf2.content.firstChild);Raf=Hf2}n8J=Raf;$Zi.call(jOA,n8J.content);var X$J=_.eY(function(y){var W=y.data;return _.O("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.O("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.O("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.O(_.v,{cond:function(){return _.OZ(W().image)},
then:function(V){return _.O("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.O(_.ca,{data:V,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.O("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.O(_.Lv,{text:function(){return W().subtitle}})))),_.O(_.v,{cond:function(){var V;
return(V=W())==null?void 0:V.hasBottomDivider},
then:function(){return _.O("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var a_K=_.eY(function(y){var W=y.data;return _.O("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.O(_.Q7,{data:function(){var V;return(V=W().offerPlanDetailsItem)!=null?V:[]}},{offerPlanDetailsItemViewModel:function(V){return _.O("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.O(X$J,{data:V.data}))}})),_.O("div",null,_.O(_.v,{cond:function(){return W().hasBottomDivider},
then:function(){return _.O("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.O("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.O("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var GHq=_.eY(function(y){var W=y.data;y=_.N(_.M1(!1,void 0,"SpEGQd"));var V=y.next().value,w=y.next().value,t=_.YS(function(){w(!V());return!1}),F=function(){var I;
return(I=W().offerPlanDetailsContainer)!=null?I:[]};
return _.O("lp-complex-offer-card-details-view-model",null,_.O("div",null,_.O(_.v,{cond:function(){return V()},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.O("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":t,"aria-expanded":V},_.O(_.Lv,{text:function(){return W().expandedTitle}})),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.O(_.Q7,{data:F},{offerPlanDetailsContainerViewModel:function(I){return _.O("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.O(a_K,{data:I.data}))}})),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.O(_.Lv,{text:function(){return W().legalText}})))},
else:function(){return _.O("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":t,"aria-expanded":V},_.O(_.Lv,{text:function(){return W().collapsedTitle}}),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.O(_.jl,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var rur=_.eY(function(y){var W=y.data;return _.O("lp-complex-offer-card-option-view-model",null,_.O("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.O(_.v,{cond:function(){return W().topDividerText},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.O(_.Lv,{text:function(){return W().topDividerText}}))))}}),_.O(_.v,{cond:function(){return W().description},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.O(_.Lv,{text:function(){return W().description}}))}}),_.O(_.v,{cond:function(){return W().planPricingPrimary},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.O(_.Lv,{text:function(){return W().planPricingPrimary}}))}}),_.O(_.v,{cond:function(){return W().planPricingSecondary},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.O(_.Lv,{text:function(){return W().planPricingSecondary}}))}}),_.O(_.v,{cond:function(){return W().primaryButton},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.O(_.Q7,{data:function(){return W().primaryButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var bf2=_.eY(function(y){var W=y.data;var V=function(){var F;return((F=W())==null?void 0:F.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
y={};var w={},t={};return _.O("ytm-lp-complex-offer-card-view-model",null,_.O("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.O("div",{class:_.kS((y.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=V,y),"ytmLpComplexOfferCardViewModelCardContainer")},_.O(_.v,{cond:function(){var F;return(F=W())==null?void 0:F.bannerText},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.O("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.O(_.Lv,{text:function(){return W().bannerText}})))}}),_.O(_.v,{cond:function(){return _.OZ(W().logo)},
then:function(F){var I={};return _.O("div",{class:_.kS((I.ytmLpComplexOfferCardViewModelLogoAlignLeft=V,I),"ytmLpComplexOfferCardViewModelLogo")},_.O(_.ca,{data:F,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.O("div",{class:_.kS((w.ytmLpComplexOfferCardViewModelTitleAlignLeft=V,w),"ytmLpComplexOfferCardViewModelTitle")},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.v,{cond:function(){var F;
return(F=W())==null?void 0:F.subtitle},
then:function(){var F={};return _.O("div",{class:_.kS((F.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=V,F),"ytmLpComplexOfferCardViewModelSubtitle")},_.O(_.Lv,{text:function(){return W().subtitle}}))}}),_.O(_.v,{cond:function(){return W().planPricingPrimary},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.O(_.Lv,{text:function(){return W().planPricingPrimary}}))}}),_.O(_.v,{cond:function(){return W().planPricingSecondary},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.O(_.Lv,{text:function(){return W().planPricingSecondary}}))}}),_.O(_.v,{cond:function(){return W().purchaseButton},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.O(_.Q7,{data:function(){return W().purchaseButton}},{buttonViewModel:function(F){return _.O(_.lk,{data:F.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.O(_.v,{cond:function(){var F;
return(F=W())==null?void 0:F.offerOptions},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.O(_.Q7,{data:function(){return W().offerOptions}},{lpComplexOfferCardOptionViewModel:rur}))}}),_.O("div",{class:_.kS((t.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=V,t),"ytmLpComplexOfferCardViewModelLegalText")},_.O(_.Lv,{text:function(){return W().legalText}})),_.O(_.v,{cond:function(){var F;
return(F=W())==null?void 0:F.offerCardDetails},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.O(_.Q7,{data:function(){return W().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:GHq}))}}))))},"fc");var QO2=_.eY(function(y){var W=y.data;var V=function(){var I;return((I=W())==null?void 0:I.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
y={};var w={},t={},F={};return _.O("ytm-lp-complex-offer-card-section-view-model",null,_.O("div",{class:_.kS("ytmLpComplexOfferCardSectionViewModelHost")},_.O("div",{class:_.kS((y.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=V,y),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.O("div",{class:_.kS((w.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=V,w),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.O("h2",{class:_.kS((t.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
V,t),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.O(_.Lv,{text:function(){return W().title}}))),_.O(_.v,{cond:function(){var I;
return(I=W())==null?void 0:I.subtitle},
then:function(){var I={},P={};return _.O("div",{class:_.kS((I.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=V,I),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.O("div",{class:_.kS((P.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=V,P),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.O(_.Lv,{text:function(){return W().subtitle}})))}}),_.O("div",{class:_.kS((F.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=V,F),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.O(_.Q7,{data:function(){var I;
return(I=W().offerPlans)!=null?I:[]}},{lpComplexOfferCardViewModel:function(I){return _.O("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.O(bf2,{data:I.data}))}})))))},"gc");var ZfE=_.eY(function(y){return _.O("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.O("div",{class:"ytLpCouponBannerViewModelIcon"},_.O(_.jl,{icon:function(){return"price_tag"}})),_.O("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.O("div",{class:"ytLpCouponBannerViewModelContent"},_.O("div",{class:"ytLpCouponBannerViewModelHeading"},_.O(_.Lv,{text:function(){var W;
return(W=y.data())==null?void 0:W.title}})),_.O("div",{class:"ytLpCouponBannerViewModelBody"},_.O(_.Lv,{text:function(){var W;
return(W=y.data())==null?void 0:W.subtitle}})))))},"hc");
ZfE.idomCompat=!0;_.GT=F9Q.getInstance();var y6z=_.eY(function(y){return _.O("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":y.shouldAriaHideContent},_.O("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:y.questionId},_.O(_.Lv,{text:y.question})))},"ic"),Wtm=_.eY(function(y){var W=y.data;
var V=y.themeOverride;y=_.N(_.M1(!1,void 0,"ljTVPd"));var w=y.next().value,t=y.next().value;y=_.YS(function(){t(!w());return!1});
var F=function(){return w()?"EXPAND_LESS":"EXPAND_MORE"},I=("faq-container"+_.bK(_.GT)).toString(),P="faq-question-and-answers-section-question"+_.bK(_.GT),C={},d={};
return _.O("faq-entry-view-model-c3",null,_.O("div",{class:_.kS("yt-lp-faq-entry-view-model",(C["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return V==null?void 0:V().useDarkTheme},C))},_.O("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":y,role:"button","aria-expanded":w,"aria-labelledby":P.toString(),"tab-index":"0"},_.O(y6z,{question:function(){return W().question},
questionId:P,shouldAriaHideContent:!0}),_.O(_.v,{cond:function(){return w()!==void 0},
then:function(){return _.O("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.O(_.jl,{icon:F,ariaHidden:!0}),_.O("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.O("div",{class:_.kS("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(d["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!w()},d))},_.O("div",{id:I},_.O(_.YV,{each:function(){return W().answers||[]}},function(L){return _.O("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.O(_.Lv,{text:L}))})))))},"jc");
Wtm.idomCompat=!0;var VuR=_.eY(function(y){var W=y.data;var V=y.themeOverride;y={};return _.O("lp-faq-section-view-model-c3",null,_.O("div",{class:_.kS("yt-lp-faq-section-view-model",(y["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},y["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},y))},_.O("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.O(_.v,{cond:function(){return W().header},
then:function(w){return _.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.O(_.Lv,{text:w}))}}),_.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.O(_.Q7,{data:function(){return W().faqs}},{faqEntryViewModel:function(w){return _.O(Wtm,{data:w.data,
themeOverride:V})}})),_.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.O(_.YV,{each:function(){return W().footers||[]}},function(w){return _.O(_.Lv,{text:w})})),_.O(_.v,{cond:function(){return W().legal},
then:function(w){return _.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.O(_.Lv,{text:w}))}}))))},"kc");
VuR.idomCompat=!0;var wiJ=_.eY(function(y){var W=y.data;var V=y.themeOverride;_.a8(function(){var I=W().gtmId;I&&_.ab(I,_.yC("GL",""))});
var w={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var I,P,C;return(C=(I=W().logo)==null?void 0:(P=I.accessibilityData)==null?void 0:P.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},t=_.hs().resolve(_.eX(_.va)),F=function(){return t&&t()||(V==null?void 0:V().useDarkTheme)};
return _.O("lp-header-section-view-model",null,_.O("div",{class:function(){var I=W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",P=W().marginType==="LP_SECTION_MARGIN_TYPE_TOP",C=V==null?void 0:V().useDarkTheme,d=["lp-header-section-view-model"];I&&d.push("lp-header-section-view-model--ptc-layout-type");P&&d.push("lp-header-section-view-model__lp-header-section-margin");C&&d.push("lp-header-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.O(_.v,{cond:function(){return W().logo},
then:function(){return _.O("div",null,_.O(_.v,{cond:F,then:function(){return _.O(_.v,{cond:function(){var I;return(I=W().logo)==null?void 0:I.imageDark},
then:function(I){return _.O(_.ca,Object.assign({},{data:I},w))}})},
else:function(){return _.O(_.v,{cond:function(){var I;return(I=W().logo)==null?void 0:I.imageLight},
then:function(I){return _.O(_.ca,Object.assign({},{data:I},w))}})}}))}}),_.O(_.v,{cond:function(){return W().title},
then:function(I){return _.O("div",{class:"lp-header-section-view-model__lp-header-title"},_.O(_.Lv,{text:I}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.O(_.v,{cond:function(){return W().subtitles},
then:function(I){return _.O(_.YV,{each:I},function(P){return _.O("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.O(_.Lv,{text:P}))})}})),_.O(_.v,{cond:function(){return W().additionalInfo},
then:function(I){return _.O("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.O(_.Lv,{text:I}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.O(_.v,{cond:function(){return W().primaryButton},
then:function(I){return _.O("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.O(_.Q7,{data:I},{buttonViewModel:_.lk}))}}),_.O(_.v,{cond:function(){return W().secondaryButton},
then:function(I){return _.O("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.O(_.Q7,{data:I},{buttonViewModel:_.lk}))}})),_.O(_.v,{cond:function(){return W().otherOffersInfo},
then:function(I){return _.O("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.O(_.Lv,{text:I}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.O(_.v,{cond:function(){return W().billingInfo},
then:function(I){return _.O(_.YV,{each:I},function(P){return _.O("div",null,_.O(_.Lv,{text:P}))})}}))))},"lc");
wiJ.idomCompat=!0;var tuI=_.eY(function(y){var W=y.data;var V=_.LD(y.themeOverride,{useDarkTheme:!1});y={};y=_.kS("ytm-lp-headline-section-view-model",(y["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return V().useDarkTheme},y));
return _.O("lp-headline-section-view-model",null,_.O("div",{class:y},_.O("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.v,{cond:function(){return W().subtitle},
then:function(w){return _.O("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.O(_.Lv,{text:w}))}})))},"mc");var Ft6=_.eY(function(y){var W=y.data;var V=y.themeOverride;var w=_.hs().resolve(_.eX(_.va)),t=function(){return w&&w()||(V==null?void 0:V().useDarkTheme)},F=function(){var d,L;
var z=t()?(d=W().textBackgroundImage)==null?void 0:d.imageDark:(L=W().textBackgroundImage)==null?void 0:L.imageLight;return yyn((z==null?void 0:z.sources)||[])},I=function(){var d,L;
return t()?(d=W().featureImage)==null?void 0:d.imageDark:(L=W().featureImage)==null?void 0:L.imageLight},P=function(){return W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},C=function(){var d,L;
return t()?(d=W().logo)==null?void 0:d.imageDark:(L=W().logo)==null?void 0:L.imageLight};
return _.O("ytm-lp-large-feature-section-view-model",null,_.O("div",{class:function(){var d=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",L=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",z=(W().index||0)%2===1,c=V==null?void 0:V().useDarkTheme,K=["yt-lp-large-feature-section-view-model"];d?K.push("yt-lp-large-feature-section-view-model--music-feature-type"):L?K.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):z||K.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
c&&K.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return K.join(" ")}},_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.O(_.v,{cond:I,
then:function(){return _.O(_.ca,{data:function(){return I()},
alt:function(){var d,L,z;return(z=(d=W().featureImage)==null?void 0:(L=d.accessibilityData)==null?void 0:L.label)!=null?z:""},
contentMode:P})}})),_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var d;return((d=F())==null?0:d.url)?"background-image: url("+_.ye(F().url)+");":""}},_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.O(_.v,{cond:C,
then:function(){return _.O(_.ca,{data:function(){return C()},
alt:function(){var d,L,z;return(z=(d=W().logo)==null?void 0:(L=d.accessibilityData)==null?void 0:L.label)!=null?z:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.O(_.v,{cond:function(){return W().eyebrowText},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.O(_.Lv,{text:function(){return W().eyebrowText}}))}}),_.O(_.v,{cond:function(){return W().title},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.O(_.Lv,{text:function(){return W().title}}))}}),_.O(_.v,{cond:function(){return W().subtitles},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.O(_.YV,{each:function(){return W().subtitles||[]}},function(d){return _.O(_.Lv,{text:d})}))}})))))},"nc");
Ft6.idomCompat=!0;var ElA=_.eY(function(y){return _.O("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.O("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.O(_.jl,{icon:function(){var W;return(W=y.data())==null?void 0:W.iconType},
className:function(){var W;switch((W=y.data())==null?void 0:W.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 W;return((W=y.data())==null?void 0:W.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.O("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.O(_.Lv,{text:function(){var W;
return(W=y.data())==null?void 0:W.text},
className:function(){var W;return((W=y.data())==null?void 0:W.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var Nqs=_.eY(function(y){y=_.zb(y,{config:void 0,themeOverride:void 0});var W=y.data,V=y.config,w=y.themeOverride;y={};y=_.kS("ytm-lp-offer-card-option-view-model",(y["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var P;return(P=w())==null?void 0:P.useDarkTheme},y));
var t=_.YS(function(){var P,C;(P=V())==null||(C=P.handleRadioButtonClick)==null||C.call(P,W());return!1}),F=function(){var P;
return(P=V())==null?void 0:P.shouldDisplayRadioButton},I=function(){var P;
return(P=W().featureListItems)!=null?P:[]};
return _.O("ytm-lp-offer-card-option-view-model",null,_.O("div",{class:y,"on:click":_.YS(function(){if(F()){var P,C;(P=V())==null||(C=P.handleRadioButtonClick)==null||C.call(P,W())}return!1})},_.O(_.v,{cond:F,
then:function(){return _.O("div",null,_.O("input",{type:"radio","on:click":t,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var P;return!((P=V())==null||!P.isOptionSelected)}}))}}),_.O("div",null,_.O("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.O(_.Lv,{text:function(){return W().eyebrowText}})),_.O("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.O(_.Lv,{text:function(){return W().subtitle}})),_.O(_.v,{cond:function(){return I().length>0},
then:function(){return _.O("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.O(_.Q7,{data:I},{lpFeatureListItemViewModel:ElA}))}}),_.O("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.O(_.Lv,{text:function(){return W().description}})))))},"pc");
Nqs.idomCompat=!0;var Iv6=_.eY(function(y){var W=y.data;var V=y.themeOverride;y=_.N(_.Jl(function(){var F,I=(F=W().offerOptions)==null?void 0:F[0];return _.h(I,dnf)||{}}));
var w=y.next().value,t=y.next().value;y={};return _.O("ytm-lp-offer-card-view-model",null,_.O("div",{class:_.kS("ytm-lp-offer-card-view-model",(y["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},y))},_.O("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.O(_.v,{cond:function(){return W().titleIconType},
then:function(){return _.O("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.O(_.jl,{icon:function(){var F;return((F=W().titleIconType)==null?void 0:F.toString())||""}}))}}),_.O("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.Q7,{data:function(){return W().titleBadge}},{badgeViewModel:function(F){return _.O("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.O(_.ip,{data:F.data}))}})),_.O("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.O(_.Q7,{data:function(){return W().offerOptions}},{lpOfferCardOptionViewModel:function(F){var I=F.data;
return _.O(_.o8,null,_.O("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.O(Nqs,{data:I,config:function(){var P;return{shouldDisplayRadioButton:(W().offerOptions||[]).length>1,isOptionSelected:I().id===((P=w())==null?void 0:P.id),handleRadioButtonClick:function(C){return void t(C)}}},
themeOverride:V}))}})),_.O("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.O(_.Q7,{data:function(){var F;
return(F=w())==null?void 0:F.purchaseButtonOverride}},{buttonViewModel:_.lk}))))},"qc");
Iv6.idomCompat=!0;var gl6=_.eY(function(y){var W=y.data;var V=y.themeOverride;y={};y=_.kS("ytm-lp-offer-card-section-view-model",(y["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var w;return V==null?void 0:(w=V())==null?void 0:w.useDarkTheme},y));
return _.O("ytm-lp-offer-card-section-view-model",null,_.O("div",{class:y},_.O(_.v,{cond:function(){return W().title!==void 0},
then:function(){return _.O("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.O("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.v,{cond:function(){return W().subtitle},
then:function(){return _.O("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.O(_.Lv,{text:function(){return W().subtitle}}))}}))}}),_.O("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.O(_.Q7,{data:function(){return W().offerCards}},{lpOfferCardViewModel:function(w){return _.O("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.O(Iv6,{data:w.data,
themeOverride:V}))}})),_.O(_.v,{cond:function(){return W().footer},
then:function(){return _.O("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.O(_.Lv,{text:function(){return W().footer}}))}})))},"rc");var PLm=_.eY(function(y){var W=y.data;return _.O("lp-offer-table-cell-content-view-model",null,_.O("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.O(_.$V,null,_.O(_.BV,{when:function(){return W().title}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return W().title}})}),_.O(_.BV,{when:function(){return W().subTitle}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return W().subTitle}})}),_.O(_.BV,{when:function(){return W().featureDescription}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return W().featureDescription}})}),_.O(_.BV,{when:function(){return W().description}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return W().description}})}),_.O(_.BV,{when:function(){return W().iconType}},function(){return _.O("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.O(_.jl,{icon:function(){return W().iconType.toString()}}))}),_.O(_.BV,{when:function(){return W().purchaseButton}},function(){return _.O(_.Q7,{data:function(){return W().purchaseButton}},{buttonViewModel:function(V){return _.O("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.O(_.lk,{data:V.data}))}})}),_.O(_.BV,{when:function(){return W().note}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return W().note}})}),_.O(_.BV,{when:function(){return W().featureDetail}},function(){return _.O(_.Lv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return W().featureDetail}})}),_.O(_.BV,{when:function(){return W().badge}},function(){return _.O(_.Q7,{data:function(){return W().badge}},{badgeViewModel:_.ip})}))))},"sc");
PLm.idomCompat=!0;var CLr=_.eY(function(y){var W=y.data;return _.O("lp-offer-table-cell-view-model",null,_.O("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(W().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;"}}},_.O(_.Q7,{data:function(){return W().contents}},{lpOfferTableCellContentViewModel:PLm})))},
"tc");
CLr.idomCompat=!0;var OEm=_.eY(function(y){var W=y.data;var V=y.lpTableIsFirstRow;var w=y.lpTableIsLastRow;var t=function(){return(V==null?0:V())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},F=function(){return(V==null?0:V())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(w==null?0:w())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.O("ytm-lp-offer-table-row-view-model",null,_.O("div",{class:"yt-lp-offer-table-row-view-model"},_.O(_.Q7,{data:function(){return W().rowHeaderCell}},{lpOfferTableCellViewModel:function(I){return _.O("div",{class:t},_.O(CLr,{data:I.data}))}}),_.O(_.Q7,{data:function(){return W().contentCells}},{lpOfferTableCellViewModel:function(I){return _.O("div",{class:F},_.O(CLr,{data:I.data}))}})))},"uc");
OEm.idomCompat=!0;var vlm=_.eY(function(y){var W=y.data;var V=y.themeOverride;var w=_.hs().resolve(_.eX(_.va)),t=function(){return _.h(W().logo,Smi)||{}};
y={};return _.O("ytm-lp-offer-table-section-view-model",null,_.O("div",{class:"yt-lp-offer-table-view-model"},_.O(_.v,{cond:function(){var F,I;return w&&w()||(V==null?0:V().useDarkTheme)?(F=t())==null?void 0:F.imageDark:(I=t())==null?void 0:I.imageLight},
then:function(F){return _.O(_.ca,{data:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var I,P,C;return(C=(I=t())==null?void 0:(P=I.accessibilityData)==null?void 0:P.label)!=null?C:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.O(_.Lv,{text:function(){return W().subtitle}})),_.O(_.v,{cond:function(){return W().disclaimers},
then:function(F){return _.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.O(_.YV,{each:F},function(I){return _.O("div",null,_.O(_.Lv,{text:I}))}))}}),_.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.O(_.Q7,{data:function(){return W().rows}},{lpOfferTableRowViewModel:function(F,I){return _.O(OEm,{data:F.data,
lpTableIsFirstRow:function(){return I()===0},
lpTableIsLastRow:function(){return I()===W().rows.length-1}})}})),_.O("div",{class:_.kS((y["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return W().hasFooterBackground},y))},_.O(_.v,{cond:function(){return W().footer},
then:function(){return _.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.O(_.Lv,{text:function(){return W().footer}}))}}),_.O(_.v,{cond:function(){return W().footerTitle},
then:function(){return _.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.O(_.Lv,{text:function(){return W().footerTitle}}))}}),_.O(_.v,{cond:function(){return W().footerDescription},
then:function(){return _.O("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.O(_.Lv,{text:function(){return W().footerDescription}}))}}))))},"vc");
vlm.idomCompat=!0;var dm6=_.eY(function(y){var W=y.data;var V=y.themeOverride;var w=_.hs().resolve(_.eX(_.va)),t=function(){var P;return V==null?void 0:(P=V())==null?void 0:P.useDarkTheme},F=function(){var P,C;
return w&&w()||t()?(P=W().image)==null?void 0:P.imageDark:(C=W().image)==null?void 0:C.imageLight};
y={};y=_.kS("ytm-lp-small-feature-section-view-model",(y["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=t,y));var I=function(){var P,C,d;return(d=(P=W().image)==null?void 0:(C=P.accessibilityData)==null?void 0:C.label)!=null?d:""};
return _.O("ytm-lp-small-feature-section-view-model",{class:y},_.O(_.v,{cond:function(){return F()&&!ve},
then:function(){return _.O("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.O(_.ca,{data:function(){return F()},
alt:I,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.O("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.O("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.O(_.v,{cond:function(){return W().title},
then:function(P){return _.O(_.Lv,{text:P})}})),_.O("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.O(_.Lv,{text:function(){return W().description}}))))},"wc");
dm6.idomCompat=!0;var LtE=_.eY(function(y){var W=y.data;var V=y.themeOverride;y={};return _.O("ytm-lp-small-feature-section-group-view-model",null,_.O("div",{class:_.kS("ytm-lp-small-feature-section-group-view-model",(y["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},y))},_.O("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.O(_.Q7,{data:function(){return W().smallFeatures}},{lpSmallFeatureSectionViewModel:function(w){return _.O("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.O(dm6,{data:w.data,
themeOverride:V}))}}))))},"xc");
LtE.idomCompat=!0;_.iF(_.eY(function(y){var W=y.data;var V=function(){return W().forcedTheme==="USER_INTERFACE_THEME_DARK"},w=function(){return W().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},t=function(){var I="",P,C;
var d=_.hs().resolve(_.eX(_.va));d=V()||(d==null?0:d())?(P=W().themedImageViewModel)==null?void 0:P.imageDark:(C=W().themedImageViewModel)==null?void 0:C.imageLight;(P=yyn((d==null?void 0:d.sources)||[]))&&P.url&&(I=w()?"background-image: linear-gradient(to bottom, transparent, "+(W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ye(P.url)+");":"background-image: url("+_.ye(P.url)+");");return I},F=function(){return{useDarkTheme:V()}};
y={};return _.O("yt-section-group-view-model",null,_.O("div",{class:_.kS("yt-lp-section-group-view-model",(y["yt-lp-section-group-view-model--premium-force-dark-mode"]=V,y["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},y))},_.O(_.v,{cond:function(){return t().length},
then:function(){var I={};return _.O("div",{class:_.kS("yt-lp-section-group-view-model__bg-image",(I["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=w,I)),style:t})}}),_.O("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.O(_.Q7,{data:function(){return W().sections}},{lpFaqSectionViewModel:function(I){return _.O(VuR,{data:I.data,
themeOverride:F})},
lpHeaderSectionViewModel:function(I){return _.O(wiJ,{data:I.data,themeOverride:F})},
lpHeadlineSectionViewModel:function(I){return _.O(tuI,{data:I.data,themeOverride:F})},
lpLargeFeatureSectionViewModel:function(I){return _.O(Ft6,{data:I.data,themeOverride:F})},
lpOfferCardSectionViewModel:function(I){return _.O(gl6,{data:I.data,themeOverride:F})},
lpComplexOfferCardSectionViewModel:function(I){return _.O(QO2,{data:I.data})},
lpOfferTableSectionViewModel:function(I){return _.O(vlm,{data:I.data,themeOverride:F})},
lpSmallFeatureSectionGroupViewModel:function(I){return _.O(LtE,{data:I.data,themeOverride:F})},
lpCouponBannerViewModel:function(I){return _.O(ZfE,{data:I.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.vB}});var kBv=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.r_=_.eY(function(y){function W(){if(kBv.has(y.data().displayType)){var d=!w(),L;if((L=y.disableDeselection)==null||!L.call(y)||d){y.data().selected=d;L=Object.assign({},I(),{selected:d});P(L);var z;(z=y.callback)==null||z.call(y,L,d)}}}
var V=_.I0("chip-view-model"),w=function(){var d,L;return!!(((d=y.selected)==null?void 0:d.call(y))!==void 0?(L=y.selected)==null?0:L.call(y):I().selected)},t=_.N(_.Jl(y.data)),F=t.next().value;
t=t.next().value;var I=F,P=t,C=_.Yn(xjj,function(){return y.data().chipEntityKey||""});
return _.O("chip-view-model",{class:"ytChipViewModelHost",el:V},_.O(bZE,{data:function(){var d,L=Object.assign({},I(),{selected:w()}),z=C(),c=(d=y.disableDeselection)==null?void 0:d.call(y);a:switch(L.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":d=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":d=3;break a;default:d=0}return{text:(z==null?void 0:z.text)||L.text,state:L.disabled?1:L.selected?0:2,type:d,onTap:sKv(L,V,W,c),
accessibilityLabel:L.accessibilityLabel||L.text}}}))},"zc");
_.r_.idomCompat={callbacks:{callback:!0}};_.zu2=_.eY(function(y){var W=_.Yn(llu,function(){var I;return(I=y.data())==null?void 0:I.chipBarStateEntityKey}),V=function(){return y.data().disableDeselection},w=_.N(_.Jl(function(){var I;
if(((I=W())==null?void 0:I.selectedIndex)!=void 0)return W().selectedIndex;var P,C;I=_.N(((P=y.data())==null?void 0:(C=P.chips)==null?void 0:C.entries())||[]);for(P=I.next();!P.done;P=I.next()){P=_.N(P.value);C=P.next().value;P=P.next().value;var d=void 0;if((d=_.h(P,_.Nx))==null?0:d.selected)return C}return-1})),t=w.next().value,F=w.next().value;
return _.O("chip-bar-view-model",{class:_.kS("ytChipBarViewModelHost",y.className),role:"tablist"},_.O(_.Q7,{data:function(){return y.data().chips}},{chipViewModel:function(I,P){return _.O("div",{class:"ytChipBarViewModelChipWrapper"},_.O(_.r_,{data:I.data,
selected:function(){return P()===t()},
callback:function(C,d){C=!!d;d=P();F(C?d:-1);var L,z=(L=y.data())==null?void 0:L.chipBarStateEntityKey;z&&C&&_.dc(_.B5("chipBarStateEntity",z,{key:z,selectedIndex:d}))},
disableDeselection:y.disableDeselection||V}))}}))},"Ac");_.iF(_.zu2,"chip-bar-view-model",{props:{data:_.p5,className:_.p5,disableDeselection:_.p5}});_.c6z=_.eY(function(y){var W=y.data;y={};return _.O("divider-view-model",{class:_.kS("divider-view-model-wiz",(y["divider-view-model-wiz__inset-thin-padding"]=function(){return W().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},y))},_.O("div",{class:_.kS("divider-view-model-wiz__base-divider",function(){return A2u(W().dividerStyle)}),
style:_.Rd({"background-color":function(){return W().backgroundColor?_.V2(W().backgroundColor):void 0}})}))},"Bc");
_.c6z.idomCompat=!0;_.iF(_.c6z,"divider-view-model",{props:{data:_.vB}});var nv=new Map,$9=new Map,J2z=0,He;var aln=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],b_R={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var euJ,huE;euJ=function(y){return function(W){return function(){return String(W())+y}}};
_.bH=euJ("px");huE=euJ("s");var Kt2=_.eY(function(y){function W(a){return function(){var b=K().numItemsPerGridRow,Fv=a()*b;b=Fv+b;var Py,du;return(du=(Py=w().contents)==null?void 0:Py.slice(Fv,b))!=null?du:[]}}
var V=_.zb(y,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),w=V.data,t=V.layoutContainerWidth,F=V.shouldUseOwnContainerSize,I=V.marginSettings;V=_.N(_.M1(!0,void 0,"qgr2Je"));var P=V.next().value,C=V.next().value,d=function(){var a,b=(a=_.h(w().showMoreButton,_.H5))==null?void 0:a.trackingParams;b&&_.DN(_.BC(),b);C(!1)},L=function(){var a,b=(a=_.h(w().showLessButton,_.H5))==null?void 0:a.trackingParams;
b&&_.DN(_.BC(),b);C(!0)};
V=_.I0("grid-shelf-view-model");var z=_.Z_R(V,{canHaveZeroSize:!1}),c=function(){var a;return(a=w().contentAspectRatio)!=null?a:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},K=_.DZ(function(){var a=_.Cv({containerWidth:F()&&z.width()>0?z.width()||t():t(),
sizing:"EXTRA_COMPACT",marginSettings:I(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:a.maxContainerWidth,numItemsPerGridRow:a.numItems,contentPadding:F()?a.margin:a.contentMargin,itemWidth:a.itemWidth,itemMargin:a.gutter/2}},void 0,"pqVdjc"),f=function(){if(w().enableVerticalExpansion){if(P())return U();
var a,b,Fv=(b=(a=w().contents)==null?void 0:a.length)!=null?b:0;return Math.ceil(Fv/K().numItemsPerGridRow)}return K().numItemsPerGridRow<=2?2:1},U=function(){var a;
return Math.ceil(((a=w().minCollapsedItemCount)!=null?a:1)/K().numItemsPerGridRow)},l=function(){return w().enableVerticalExpansion&&w().showLessButton&&!P()&&f()>U()},x=function(){var a,b;
return w().enableVerticalExpansion&&w().showMoreButton&&P()&&((b=(a=w().contents)==null?void 0:a.length)!=null?b:0)>K().numItemsPerGridRow*U()},B=function(){return!l()},r=function(){return!x()},H={};
return _.O("grid-shelf-view-model",{class:_.kS("ytGridShelfViewModelHost",y.className,(H.ytGridShelfViewModelHostHasBottomButton=function(){return l()||x()},H)),
el:V,style:_.Rd({"margin-left":(0,_.bH)(function(){return K().contentPadding}),
"margin-right":(0,_.bH)(function(){return K().contentPadding})})},_.O(_.v,{cond:function(){return _.h(w().header,$i2)},
then:function(a){return _.O(_.U2,{data:a,disableHorizontalPadding:!0})}}),_.O("div",null,_.O(_.YV,{each:function(){return Array(f())}},function(a,b){return _.O(olE,{className:y.className,
items:W(b),responsiveGridShelfLayout:K,contentAspectRatio:c})})),_.O("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.O(_.Q7,{data:function(){return w().showMoreButton}},{buttonViewModel:function(a){return _.O("div",{hidden:r},_.O(_.lk,{data:a.data,
onClick:d}))}}),_.O(_.Q7,{data:function(){return w().showLessButton}},{buttonViewModel:function(a){return _.O("div",{hidden:B},_.O(_.lk,{data:a.data,
onClick:L}))}})))},"Cc");
Kt2.idomCompat=!0;var olE=_.eY(function(y){var W=y.items;var V=y.responsiveGridShelfLayout;var w=y.contentAspectRatio;y=y.className;var t=_.I0("div");BGb(t,function(){a:{var I=t.value;for(var P=W(),C=[],d=0;d<P.length;d++){var L=_.h(P[d],oo2);if(!L||L==null||!L.inlinePlayerData){I=null;break a}var z=I.children.item(d);if(!z){I=null;break a}C.push({thumbnailElement:z,videoData:L})}I={gridVideoPreviewData:{gridItems:C}}}return I});
var F=(0,_.bH)(function(){return-V().itemMargin});
return _.O("div",{el:t,class:_.kS("ytGridShelfViewModelGridShelfRow",y),style:_.Rd({"margin-left":F,"margin-right":F})},_.O(_.Q7,{data:W,replacementWrapper:function(I){return _.O(piz,{responsiveGridShelfLayout:V},I)}},{shortsLockupViewModel:function(I){return _.O(piz,{responsiveGridShelfLayout:V},_.O(Em2,{data:I.data,
aspectRatio:function(){return w()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),piz=_.eY(function(y){return _.O("div",{style:_.Rd({width:(0,_.bH)(function(){return y.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+y.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},y.children)},"Ec");
Kt2.idomCompat=!0;_.iF(Kt2,"grid-shelf-view-model",{props:{data:_.vB,layoutContainerWidth:_.vB,shouldUseOwnContainerSize:_.vB,marginSettings:_.vB,className:_.vB}});_.iEs=_.eY(function(y){var W=_.N(_.M1(!1,void 0,"YYtxR")),V=W.next().value,w=W.next().value;W={};return _.O("yt-alert-banner-view-model",{class:_.kS("ytAlertBannerViewModelHost",y.className,function(){var t;a:switch((t=y.data())==null?void 0:t.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":t="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":t="ytAlertBannerViewModelWarning";break a;default:t="ytAlertBannerViewModelInformational"}return t},(W.ytAlertBannerViewModelDismissed=
V,W.ytAlertBannerViewModelFullbleed=y.fullbleed,W.ytAlertBannerViewModelNarrow=y.narrow,W.ytAlertBannerViewModelIsInRichGrid=y.isInRichGrid,W))},_.O(_.v,{cond:function(){var t;
return!((t=y.data())==null?0:t.hideIcon)},
then:function(){return _.O("div",{class:"ytAlertBannerViewModelIcon"},_.O(_.jl,{icon:function(){return"info_circle"}}))}}),_.O("div",{class:"ytAlertBannerViewModelOuterContainer"},_.O("div",{class:"ytAlertBannerViewModelContainer"},_.O("div",{class:"ytAlertBannerViewModelContent"},_.O("div",{class:"ytAlertBannerViewModelHeading"},_.O(_.Lv,{text:function(){var t;
return(t=y.data())==null?void 0:t.heading}})),_.O("div",{class:"ytAlertBannerViewModelBody"},_.O(_.Lv,{text:function(){var t;
return(t=y.data())==null?void 0:t.body}})))),_.O(_.Q7,{data:function(){var t;
return(t=y.data())==null?void 0:t.actionButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.O(_.Q7,{data:function(){var t;
return(t=y.data())==null?void 0:t.dismissButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var F;((F=y.data())==null?0:F.disableLocalDismissBehavior)||w(!0)}})}}))},"Fc");_.iF(_.iEs,"yt-alert-banner-view-model",{props:{data:_.vB,fullbleed:_.vB,narrow:_.vB,isInRichGrid:_.vB,className:_.vB}});var yKR=_.nn({chipViewModel:_.r_,buttonViewModel:_.lk});_.zY(WEa);var fvA;fvA=_.eY(function(y){var W=y.data;var V=y.callback;var w=y.enableSingleChipSelection;var t=y.disableChipsScrollAnimation;var F=_.gS("div");y=_.N(_.M1(!0,void 0,"ULL8g"));var I=y.next().value,P=y.next().value;y=_.N(_.M1(!1,void 0,"cWhQn"));var C=y.next().value,d=y.next().value,L=!1,z=0;_.HV(function(){P(f());d(U())});
y=_.N(_.Jl(function(){var Fv={};return W().autoselectedChipIndex!=null?(Fv[W().autoselectedChipIndex]=!0,Fv):{}}));
var c=y.next().value,K=y.next().value,f=function(){var Fv=F.value;return Fv==null||Fv.scrollLeft-1<=0},U=function(){var Fv=F.value;
return Fv==null?!1:Fv.scrollLeft+1>=(Fv==null?NaN:Fv.scrollWidth)-(Fv==null?NaN:Fv.clientWidth)},l=function(){return W().isHorizontallyScrollable},x=function(Fv){F.value!=null&&(_.yC("HTML_DIR")==="rtl"&&(Fv=-Fv),F.value.scrollBy({left:Fv,
behavior:(t==null?0:t())?"instant":"smooth"}))},B=function(){x(-320)},r=function(){x(320)},H=_.YS(function(Fv){L=!0;
z=Fv.clientX}),a=_.YS(function(Fv){if(L){Fv=Fv.clientX;
var Py=Fv-z;z=Fv;var du;(du=F.value)==null||du.scrollBy({left:-Py})}}),b=_.YS(function(){var Fv=f(),Py=U();
Fv!==I()&&P(Fv);Py!==C()&&d(Py)});
vl("pointerup",function(){L&&(L=!1)});
return _.O("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.O(_.ml,{contentId:function(){return W().contentId},
useModernStyle:!0},function(){var Fv={},Py={};return _.O("div",null,_.O(_.v,{cond:function(){return W().title},
then:function(){return _.O("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.O("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return W().title}),_.O(_.Q7,{data:function(){return W().overflowButton}},{buttonViewModel:_.lk}))}}),_.O("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.O(_.v,{cond:function(){return W().previousButton},
then:function(){var du={};return _.O("div",{class:_.kS("ytChipsShelfViewModelLeftArrowContainer",(du.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return I()},du))},_.O(_.Q7,{data:function(){return W().previousButton}},{buttonViewModel:function(mL){return _.O(_.lk,{data:mL.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:B})}}))}}),_.O("div",{el:F,
"on:pointerdown":H,"on:pointermove":a,"on:scroll":b,class:_.kS("ytChipsShelfViewModelChipsScrollContainer",(Fv.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=l,Fv))},_.O("div",{class:_.kS("ytChipsShelfViewModelChipsContainer",(Py.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=l,Py.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Py)),role:"tablist"},_.O(_.Q7,{data:function(){return W().contents}},{chipViewModel:function(du,mL){return _.O("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.O(_.r_,{data:du.data,
callback:function(un,hv){var $P=mL();if(w==null?0:w()){var sz={};K((sz[$P]=hv,sz))}else sz={},K(Object.assign({},c(),(sz[$P]=hv,sz)));V==null||V(un,hv,$P)},
disableDeselection:w,selected:function(){return!!c()[mL()]}}))}}))),_.O(_.v,{cond:function(){return W().nextButton},
then:function(){var du={};return _.O("div",{class:_.kS("ytChipsShelfViewModelRightArrowContainer",(du.ytChipsShelfViewModelRightArrowContainerIsHidden=C,du))},_.O(_.Q7,{data:function(){return W().nextButton}},{buttonViewModel:function(mL){return _.O(_.lk,{data:mL.data,
className:"ytChipsShelfViewModelRightArrow",onClick:r})}}))}})))}))},"Gc");
_.Tqz=_.e("enable_chips_shelf_view_model_fully_reactive")?fvA:_.Al(WEa,{callbacks:{callback:!0}});fvA.idomCompat={callbacks:{callback:!0}};_.iF(_.Tqz,"chips-shelf-view-model",{props:{data:_.vB,callback:_.p5,enableSingleChipSelection:_.vB,disableChipsScrollAnimation:_.vB}});var mmQ=_.eY(function(y){y=_.zb(y,{disabled:!1});var W=y.active,V=y.disabled;y={};y=_.kS("ytSwitchShapeTrack",(y.ytSwitchShapeTrackActive=function(){return W()},y.ytSwitchShapeTrackDisabled=function(){return V()},y));
var w={};w=_.kS("ytSwitchShapeKnob",(w.ytSwitchShapeKnobActive=function(){return W()},w));
return _.O("switch-shape",{class:"ytSwitchShapeHost"},_.O("div",{class:y}),_.O("div",{class:w}))},"Hc");var Mus=_.eY(function(y){var W=_.zb(y,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),V=W.data;y=W.className;var w=W.handleOnTapEventInParent,t=W.parentActive;W=_.N(_.Jl(function(){var z;return(z=t())!=null?z:V().switchedOnByDefault||!1}));
var F=W.next().value,I=W.next().value,P=function(){return V().isDisabled},C=_.I0("button");
W=_.YS(function(z){return z.key==="Enter"?(z.preventDefault(),C.value.click(),!1):!0});
var d=_.YS(function(z){if(V().handleOnTapEventInParent||w())return!0;if(P())return!1;wJn(V(),F(),z);I(!F());return!1}),L={};
L=_.kS("ytSwitchButtonViewModelButton",(L.ytSwitchButtonViewModelTappable=function(){return!P()},L));
return _.O("switch-button-view-model",{class:_.kS("ytSwitchButtonViewModelHost",y)},_.O("button",{el:C,class:L,"on:click":d,"on:keydown":W,"aria-label":function(){return F()?V().a11yLabelSwitchedOn:V().a11yLabelSwitchedOff},
"aria-checked":F,"aria-disabled":P,role:"switch"},_.O(mmQ,{active:F,disabled:P})))},"Ic");var Um2=_.eY(function(y){var W=_.zb(y,{checked:!1});y=W.name;var V=W.onChange,w=W.onClick,t=W.checked,F=W.labelRenderable,I=W.hasLeadingLabel,P=W.labelClass,C=W.isCompact,d=W.selectElementClass;W=W.disableHorizontalPadding;var L="checkbox"+_.bK(_.GT),z=_.YS(function(f){w==null||w(f);return!1}),c=_.YS(function(f){V==null||V(f);
return!1}),K={};
return _.O("checkbox-shape",null,_.O("label",{class:_.kS("checkbox-shape-wiz",P,(K["checkbox-shape-wiz--compact"]=C,K["checkbox-shape-wiz--disable-horizontal-padding"]=W,K))},_.O("input",{class:"checkbox-shape-wiz__input",id:L,checked:t,name:y,type:"checkbox","prop:checked":t,"on:change":c,"on:click":z}),_.O(_.v,{cond:function(){return!(I==null?0:I())},
then:function(){return _.O(qDf,{isLeading:!0,selectElementClass:d})}}),_.O(_.v,{cond:function(){return!!F},
then:function(){return _.O("div",{class:"checkbox-shape-wiz__label"},F==null?void 0:F())}}),_.O(_.v,{cond:I,
then:function(){return _.O(qDf,{isLeading:!1,selectElementClass:d})}})))},"Jc");
Um2.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var qDf=_.eY(function(y){var W=y.selectElementClass;y={};return _.O("div",{class:_.kS("checkbox-shape-wiz__checkbox",W,(y["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(W==null?0:W())},y)),
"aria-hidden":"true"},_.O(_.jl,{icon:_.e("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.O(_.jl,{icon:_.e("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Kc");_.Qr=_.eY(function(y){var W=y.name;var V=y.onChange;var w=y.onClick;var t=y.checked;var F=y.labelRenderable;var I=y.useCheckIcon;var P=y.hasLeadingLabel;var C=y.labelClass;var d=y.isCompact;var L=y.selectElementClass;var z=y.ariaLabel;y=y.className;var c="radio"+_.bK(_.GT),K=_.I0("input"),f=_.YS(function(a){K.value.checked=!(t==null||!t());V==null||V(a);return!1}),U=_.YS(function(a){w==null||w(a);
return!1}),l=_.N(_.M1(!1,void 0,"v5AMrb")),x=l.next().value,B=l.next().value;
l=_.YS(function(){var a;((a=_.hs().resolve(_.eX(_.MC)))==null?0:a.isKeyBoardInUse())&&B(!0)});
var r=_.YS(function(){B(!1)}),H={};
return _.O("radio-shape",{class:_.kS("radio-shape-wiz",y)},_.O("input",{el:K,class:"radio-shape-wiz__input",id:c,"prop:checked":t,name:W,type:"radio","on:change":f,"on:click":U,"aria-label":z,"on:focusin":l,"on:focusout":r}),_.O("label",{class:_.kS("radio-shape-wiz__label-container",C,(H["radio-shape-wiz--compact"]=d,H["radio-shape-wiz__label-container--keyboard-focused"]=x,H)),for:c},_.O(_.v,{cond:function(){return!(P==null?0:P())},
then:function(){return _.O(uLJ,{checked:t,useCheckIcon:I,isLeading:!0,selectElementClass:L})}}),_.O(_.v,{cond:function(){return!!F},
then:function(){return _.O("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(z==null?0:z())?"true":"false"}},F==null?void 0:F())}}),_.O(_.v,{cond:P,
then:function(){return _.O(uLJ,{checked:t,useCheckIcon:I,isLeading:!1,selectElementClass:L})}})))},"Lc");
_.Qr.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var uLJ=_.eY(function(y){var W=y.useCheckIcon;var V=y.selectElementClass;y=function(){return(W==null?0:W())?"CHECK":_.e("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var w={};return _.O("div",{class:_.kS("radio-shape-wiz__radio",V,(w["radio-shape-wiz__radio--check-icon"]=W,w["radio-shape-wiz__radio--radio-default-style"]=function(){return!(V==null?0:V())},w)),
"aria-hidden":"true"},_.O(_.jl,{icon:y}),_.O(_.jl,{icon:y,active:function(){return!(W==null?0:W())}}))},"Mc");_.Zo=_.eY(function(y){function W(){var Wz;((Wz=_.hs().resolve(_.eX(_.MC)))==null?0:Wz.isKeyBoardInUse())&&sz(!0)}
function V(){sz(!1)}
var w=y.data;var t=y.isMenuItem;var F=y.isCompact;var I=y.onTap;var P=y.trailingAccessory;var C=y.hideSelectionTextChevron;var d=y.disabled;var L=y.inPopup;var z=y.disableHorizontalPadding;var c=y.isOverlay;var K=y.isToggled;var f=y.ariaLabel;var U=y.ariaPressed;var l=_.e("apply_button_role_to_list_item"),x=_.tn(function(Wz){a:{var mf=w();if((mf==null?0:mf.entitySelectorType)&&(mf==null?0:mf.entityKey))switch(mf.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Wz=
_.WYv(Wz,mf.entityKey);Wz=Wz==null?void 0:Wz.value;mf=!1;Wz==="CAPTIONS_UNAVAILABLE"&&(mf=!0,Wz="");Wz=Object.assign({},!!Wz&&{selectionText:{content:Wz}},!!Wz&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:mf});break a;default:Wz={}}else Wz={}}return Wz}),B=function(){return _.e("enable_web_shorts_captions_language_command")?Object.assign({},w(),x()):w()},r=function(){return!(B().isSelected===void 0||!B().selectionStyle||B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
H=function(){return(_.tO(B().rendererContext)||I)&&!r()},a=function(){return _.tO(B().rendererContext)||r()};
y={};c=_.kS("yt-list-item-view-model-wiz",(y["yt-list-item-view-model-wiz--is-overlay"]=c,y["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!l&&$P()},y));
y={};var b=_.kS("yt-list-item-view-model-wiz__label",(y["yt-list-item-view-model-wiz__container"]=function(){return!r()},y["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!B().isDisabled||!(d==null||!d())},y["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!B().subtitle},y["yt-list-item-view-model-wiz__container--compact"]=F,y["yt-list-item-view-model-wiz__container--tappable"]=H,y["yt-list-item-view-model-wiz__container--in-popup"]=L,y["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return l&&$P()},y["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(z==null?void 0:z())&&!r()},y));
y={};var Fv=_.kS("yt-list-item-view-model-wiz__container",(y["yt-list-item-view-model-wiz__container--tappable"]=a,y["yt-list-item-view-model-wiz__container--compact"]=F,y["yt-list-item-view-model-wiz__container--in-popup"]=L,y["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(z==null?void 0:z())&&r()},y)),Py=function(){return B().leadingImage||B().leadingAccessory},du=_.kS("yt-list-item-view-model-wiz__image-container",function(){return Py()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),mL=_.eY(function(){return _.O(_.v,{cond:function(){return l},
then:function(){return _.O("div",{class:b,el:_.hl(XoG(function(){return l&&H()},{focusin:W,
focusout:V})),role:function(){return a()||H()?"button":void 0},
"aria-label":f,"aria-pressed":U,tabindex:function(){return I||H()?0:void 0},
"on:keydown":hv,"on:click":un},_.O(SDf,{data:B,hideSelectionTextChevron:C,trailingAccessory:P,isToggled:K}))},
else:function(){return _.O("div",{class:b},_.O(SDf,{data:B,hideSelectionTextChevron:C,trailingAccessory:P,isToggled:K}))}})},"Nc");
mL.idomCompat=!0;var un=_.YS(function(Wz){return void(I==null?void 0:I(Wz))}),hv=_.Dyv();
y=_.N(_.M1(!1,void 0,"cn4fzb"));L=y.next().value;y=y.next().value;var $P=L,sz=y;y=_.YS(function(){return!0});
L=l?y:hv;y=l?y:un;return _.O("yt-list-item-view-model",{el:_.hl(_.FW(function(){return B().rendererContext}),XoG(function(){return!l&&(H==null?void 0:H())},{focusin:W,
focusout:V})),class:c,role:function(){return(t==null?0:t())?"menuitem":"listitem"},
tabindex:function(){var Wz=H();Wz=l?void 0:I||Wz?0:void 0;return Wz},
"on:keydown":L,"on:click":y},_.O(_.v,{cond:r,then:function(){return _.O(_.$V,null,_.O(_.BV,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.O(Um2,{labelRenderable:function(){return _.O(mL,null)},
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!Py()},
labelClass:Fv,selectElementClass:du,disableHorizontalPadding:z})}),_.O(_.BV,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.O(_.Qr,{labelRenderable:function(){return _.O(mL,null)},
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!Py()},
labelClass:Fv,selectElementClass:du})}),_.O(_.BV,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.O(_.Qr,{labelRenderable:function(){return _.O(mL,null)},
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!Py()},
labelClass:Fv,selectElementClass:du,useCheckIcon:!0})}),_.O(_.j0,null,function(){return _.O(mL,null)}))},
else:function(){return _.O(mL,null)}}))},"Oc");
_.Zo.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var SDf=_.eY(function(y){var W=y.data;var V=y.hideSelectionTextChevron;var w=y.trailingAccessory;var t=y.isToggled;return _.O(_.o8,null,_.O(Dms,{data:W,isLeading:!0,hideSelectionTextChevron:function(){return!(V==null||!V())},
isToggled:t}),_.O(lvE,{data:W}),_.O(_.v,{cond:function(){return!!w},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__trailing"},w==null?void 0:w())},
else:function(){return _.O(Dms,{data:W,isLeading:!1,hideSelectionTextChevron:function(){return!(V==null||!V())},
isToggled:t})}}))},"Pc"),Dms=_.eY(function(y){var W=y.data;
var V=y.isLeading;var w=y.hideSelectionTextChevron;var t=y.isToggled;var F=_.kS("yt-list-item-view-model-wiz__button-container");y={};var I=_.kS("yt-list-item-view-model-wiz__image-container",(y["yt-list-item-view-model-wiz__leading"]=V,y["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},y)),P=function(){return V()?W().leadingImage:W().trailingImage},C=_.kS("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
y={};var d=_.kS("yt-list-item-view-model-wiz__accessory",(y["yt-list-item-view-model-wiz__leading"]=V,y["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},y)),L=function(){a:switch(W().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var z="expand_more";
break a;default:z="chevron_right"}return z};
return _.O(_.v,{cond:function(){var z=W(),c=V();return!!(c&&(z.leadingImage||z.leadingAccessory)||!c&&(z.trailingImage||z.trailingButton||z.trailingButtons||z.selectionText))},
then:function(){return _.O(_.o8,null,_.O(_.v,{cond:P,then:function(z){return _.O("div",{class:I,"aria-hidden":"true"},_.O(_.ca,{data:z,alt:"",preserveWidth:!0,preserveHeight:!0,className:C,isToggled:t}))}}),_.O(_.v,{cond:function(){return V()&&W().leadingAccessory},
then:function(){return _.O("div",{class:I},_.O(_.Q7,{data:function(){return W().leadingAccessory}},{avatarViewModel:function(z){return _.O(_.ra,{data:z.data,
avatarButtonCustomClassName:C})},
collectionThumbnailViewModel:QH6}))}}),_.O(_.v,{cond:function(){return!V()&&W().trailingButton},
then:function(){return _.O("div",{class:F},_.O(_.Q7,{data:function(){return W().trailingButton}},{buttonViewModel:function(z){return _.O(_.lk,{data:z.data,
className:d})}}))}}),_.O(_.v,{cond:function(){var z;
return!V()&&((z=W().trailingButtons)==null?void 0:z.buttons)},
then:function(){return _.O("div",{class:F},_.O(_.Q7,{data:function(){var z;return(z=W().trailingButtons)==null?void 0:z.buttons}},{buttonViewModel:function(z){return _.O(_.lk,{data:z.data,
className:d})},
accountLinkButtonViewModel:function(z){return _.O(Hks,{data:z.data,className:d})},
switchButtonViewModel:function(z){return _.O(Mus,{data:z.data,className:d})},
subscribeButtonViewModel:function(z){return _.O(_.aj,{data:z.data,isOverlay:!1,animateWidth:!1,className:d})},
toggleButtonViewModel:function(z){return _.O(_.XV,{data:z.data,className:d})}}))}}),_.O(_.v,{cond:function(){return!V()&&!!W().selectionText},
then:function(){return _.O(_.o8,null,_.O(_.Lv,{text:function(){return W().selectionText},
className:_.kS("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.O(_.v,{cond:function(){return!w()},
then:function(){return _.O(_.jl,{icon:L,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Qc"),lvE=_.eY(function(y){var W=y.data;
return _.O(_.v,{cond:function(){return W().title||W().subtitle},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.O("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.O(_.v,{cond:function(){return W().title},
then:function(V){return _.O(_.Lv,{text:V,className:"yt-list-item-view-model-wiz__title"})}})),_.O(_.v,{cond:function(){return W().subtitle},
then:function(V){return _.O(_.Lv,{text:V,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Rc");_.xmJ=_.eY(function(y){var W=y.data;var V=y.onTap;var w=y.onSwitch;var t=y.overrideDisabled;y=y.disableHorizontalPadding;var F=_.N(_.Jl(function(){var z;return((z=FEy(L()))==null?void 0:z.switchedOnByDefault)||!1})),I=F.next().value,P=F.next().value;
F=_.N(_.M1(!1,void 0,"ZHBkbb"));var C=F.next().value,d=F.next().value,L=function(){var z;if(!(z=W().switchButton)){var c=W();z=t==null?void 0:t();c={switchOnCommand:c.switchOnCommand,switchOffCommand:c.switchOffCommand,switchedOnByDefault:c.switchedOnByDefault,isDisabled:c.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:c.a11yLabelSwitchedOn,a11yLabelSwitchedOff:c.a11yLabelSwitchedOff};z!==void 0&&(c.isDisabled=z);z={switchButtonViewModel:c}}return z};
return _.O("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.O(_.Zo,{data:function(){return{title:W().title,subtitle:W().attributedSubtitle,leadingImage:W().leadingImage,leadingAccessory:W().leadingAccessory,isDisabled:W().isDisabled}},
onTap:function(z){var c=FEy(L());!c||c.isDisabled||W().ignoreTapUntilCommandCompletes&&C()||(V==null||V(z),wJn(c,I(),z,W().ignoreTapUntilCommandCompletes,d),P(!I()),w==null||w(I()))},
trailingAccessory:function(){return _.O(_.Q7,{data:L},{switchButtonViewModel:function(z){return _.O(Mus,{data:z.data,parentActive:I,handleOnTapEventInParent:!!V})}})},
disableHorizontalPadding:y}))},"Sc");var kOr=_.eY(function(y){var W=_.N(_.Jl(function(){var t,F;return!!((t=y.data())==null?0:(F=t.initialState)==null?0:F.isToggled)})),V=W.next().value,w=W.next().value;
W=_.YS(function(){w(!V())});
return _.O("toggleable-list-item-view-model",{el:_.hl(_.FW(function(){return y.data().rendererContext})),
class:_.kS("toggleableListItemViewModelHost",y.className),"on:click":W},_.O(_.v,{cond:function(){if(V()){var t=y.data().toggledListItem;t=_.h(t,_.RJ)}else t=y.data().defaultListItem,t=_.h(t,_.RJ);return t},
then:function(t){return _.O(_.Zo,{data:t,isToggled:V,ariaLabel:function(){var F=V()?y.data().toggledListItem:y.data().defaultListItem,I;F=(I=_.h(F,_.RJ))==null?void 0:I.rendererContext;var P;return(P=_.h(F,_.Bq))==null?void 0:P.label},
ariaPressed:function(){return V()}})}}))},"Tc");var sC6=_.u5("DOWNLOAD",{},"Download"),A6K=_.u5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),YDz=_.u5("RETRY",{},"Retry"),Bqm=_.u5("PAUSE_DOWNLOADING",{},"Pause downloading"),J6m=_.u5("RESUME_DOWNLOAD",{},"Resume download"),E3d={text:sC6,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},XW={text:A6K,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},g34={text:YDz,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Nlv={text:Bqm,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ijv={text:J6m,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Ruq=_.eY(function(y){var W=function(){var P=y.data();P=_.w7(P.rendererContext);var C;return(C=_.h(P,_.xn))==null?void 0:C.videoId},V=_.tn(function(P){var C=W(),d=OLd(y.data());
return C?_.yY(P,C):d?_.W9(P,d):"TRANSFER_STATE_UNKNOWN"}),w=_.Yn(_.n0n,W),t=_.tn(function(P){return _.AgR(P,W(),OLd(y.data()))}),F=function(){return CXv(V(),w(),_.w7(y.data().rendererContext),!!OLd(y.data()))},I=function(){return t()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.O("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:I},_.O(_.v,{cond:function(){return!I()},
then:function(){return _.O(_.v,{cond:F,then:function(P){return _.O(_.YV,{each:P},function(C){return _.O(_.Zo,{data:C,isCompact:y.isCompact,isMenuItem:y.isMenuItem,inPopup:y.inPopup,disableHorizontalPadding:y.disableHorizontalPadding})})}})}}))},"Uc");
Ruq.idomCompat=!0;_.jC6=_.eY(function(y){var W=y.data;var V=y.isCompact;var w=y.hideSelectionTextChevron;var t=y.inPopup;var F=y.isOverlay;var I=y.disableHorizontalPadding;var P=function(){return v3v(W())&&(t==null?void 0:t())};
y={};return _.O("yt-list-view-model",{class:_.kS("yt-list-view-model-wiz",(y["yt-list-view-model-wiz--kaios-spat-nav"]=ve&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",y)),role:function(){return P()?"menu":"list"},
style:_.Rd({"max-height":function(){var C,d=(C=W())==null?void 0:C.visibleElementCount;if(d)return LEu(W())?(d+.5)*48+"px":(d+.5)*40+"px"}})},_.O(_.Q7,{data:function(){return W().listItems}},{listItemViewModel:function(C){return _.O(_.Zo,{data:C.data,
isMenuItem:P,isCompact:V,hideSelectionTextChevron:w,inPopup:t,isOverlay:F,disableHorizontalPadding:I})},
toggleableListItemViewModel:function(C){return _.O(kOr,{data:C.data})},
downloadListItemViewModel:function(C){return _.O(Ruq,{data:C.data,isMenuItem:P,isCompact:V,inPopup:t,disableHorizontalPadding:I})},
switchListItemViewModel:function(C){return _.O(_.xmJ,{data:C.data,disableHorizontalPadding:I})}}))},"Vc");
_.jC6.idomCompat=!0;var $mI=_.eY(function(y){var W=y.data;var V=y.isOverlay;y={};return _.O("yt-course-perks-view-model",{class:_.kS("ytwCoursePerksViewModelHost",(y.ytwCoursePerksViewModelHostOverlay=V,y))},_.O("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",null,_.O(_.v,{cond:function(){return W().perks},
then:function(w){return _.O(_.jC6,{data:function(){return{listItems:w()}},
isCompact:!0,isOverlay:V})}})))},"Wc");_.iF($mI,"yt-course-perks-view-model",{props:{data:_.p5,isOverlay:_.p5}});_.iF(_.eY(function(y){var W=y.data;return _.O("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.O("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.O(_.Lv,{text:function(){return W().progressSummary}})),_.O("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.O("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Rd({width:function(){return W().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.vB}});var nlI=_.eY(function(y){var W={};return _.O("yt-progress-view-model",{class:_.kS("ytwProgressViewModelHost",(W.ytwProgressViewModelHostOverlay=_.LD(y.isOverlay,!1),W))},_.O(_.v,{cond:function(){return y.data().progressSummary},
then:function(V){return _.O("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.O(_.Lv,{text:V}))}}),_.O("div",{class:"ytwProgressViewModelHostProgressContainer"},_.O(_.v,{cond:function(){return y.data().leadingLabel},
then:function(V){return _.O("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.O(_.Lv,{text:V}))}}),_.O("div",{class:"ytwProgressViewModelHostProgressBar"},_.O("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(y.data().progressPercentage||0)*100+"%"}}))))},"Yc");var yR=_.eY(function(y){var W=y.starNumber;var V=y.data;var w=function(){var t;return((t=V())==null?void 0:t.rating)||0};
return _.O(_.v,{cond:function(){return W()},
then:function(t){return _.O(_.$V,null,_.O(_.BV,{when:function(){return w()>=t()-.25}},function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.jl,{icon:"STAR_FILLED"}))}),_.O(_.BV,{when:function(){return w()>=t()-.75}},function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.jl,{icon:"STAR_HALF"}))}),_.O(_.j0,null,function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.jl,{icon:"STAR_BORDER"}))}))}})},"Zc"),HEK=_.eY(function(y){y=y.data;
return _.O("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.O(yR,{starNumber:1,data:y}),_.O(yR,{starNumber:2,data:y}),_.O(yR,{starNumber:3,data:y}),_.O(yR,{starNumber:4,data:y}),_.O(yR,{starNumber:5,data:y}))},"$c");_.iF(_.eY(function(y){var W=_.zb(y,{}).data;return _.O("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.O("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.O(_.Lv,{text:function(){var V;return(V=W())==null?void 0:V.title}})),_.O("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.O(_.v,{cond:function(){return W().starProgressViewModels},
then:function(V){return _.O("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.O(_.Q7,{data:V},{progressViewModel:nlI}))}}),_.O("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.O("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.O(_.Lv,{text:function(){var V;
return(V=W())==null?void 0:V.averageRatingLabel}})),_.O(_.v,{cond:function(){return W().zeroStateText},
then:function(V){return _.O("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.O(_.Lv,{text:V}))}}),_.O(_.v,{cond:function(){return W().starRatingViewModel},
then:function(V){return _.O("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.O(_.Q7,{data:V},{starRatingViewModel:HEK}))}}),_.O("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.O(_.Lv,{text:function(){var V;
return(V=W())==null?void 0:V.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.p5}});var XiA;XiA={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"}};_.avz=_.eY(function(y){var W=_.I0("yt-learning-journey-loader-view-model"),V=_.D1();_.HV(function(){requestAnimationFrame(function(){var t;(t=V.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var F;(F=y.onLottieLoaded)==null||F.call(y)})});
var w=y.data().browseEndpoint;w&&_.Id(w)});
return _.O("yt-learning-journey-loader-view-model",{class:_.kS("learningJourneyLoaderViewModelHost",y.className),"data-target-id":function(){var w;return((w=y.data)==null?void 0:w.call(y).targetId)||""},
el:W},_.O(_.fh,{className:_.kS("learningJourneyLoaderViewModelLoader",y.className),animationName:function(){return XiA.animationConfig.name},
data:XiA,animationRef:V}))},"bd");_.iF(_.avz,"yt-learning-journey-loader-view-model",{props:{data:_.vB,className:_.p5,onLottieLoaded:_.p5}});var cKb=new Set,zqz=null;_.GOR=_.eY(function(y){var W=null,V=null,w=null,t=function(){return y.data()},F=function(){var x=t();
var B=_.hs().resolve(_.eX(_.va));x=B!=null&&B()?x.darkThemeColorPalette:x.lightThemeColorPalette;return{primaryTextColor:Gr(x,0),secondaryTextColor:Gr(x,1),optionColor:Gr(x,2),backgroundColor:Gr(x,3),videoBackgroundColor:Gr(x,4)}},I=function(){return!!F().optionColor},P=_.N(_.M1(-1,void 0,"KCCUDb")),C=P.next().value,d=P.next().value,L=function(x){return C()===x},z=function(x){return t().correctAnswerIndex===x},c=function(){return C()!==-1},K=function(){return C()===t().correctAnswerIndex},f=_.YS(function(){d(-1);
return!1}),U=function(){var x=c(),B=K();
return x?B?264685:264684:264683},l=function(x){return K()&&z(x)};
return _.O("learning-journey-quiz-view-model",{class:_.kS("learningJourneyQuizViewModelHost",y.className),style:_.Rd({background:function(){return F().backgroundColor}})},_.O(_.v,{cond:function(){return!!t().video},
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Rd({background:function(){return F().videoBackgroundColor}})},_.O(_.Q7,{data:function(){return t().video}},{lockupViewModel:function(x){return _.O(_.US,{data:x.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.O("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.O("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.O(_.v,{cond:function(){return!!t().aiGeneratedQuizLabel},
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.O(_.Lv,{text:function(){return t().aiGeneratedQuizLabel}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Rd({"align-items":function(){return t().overflowMenu?"start":"center"}})},_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Rd({"min-height":function(){return t().overflowMenu?"48px":"26px"}})},_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.hl(function(x){_.at(U(),x,W,function(B){W=B})}),
style:_.Rd({color:function(){return F().primaryTextColor}}),
"client-ve-type":U},_.O(_.Lv,{text:function(){var x=t(),B=c(),r=K();return B?r?x.successTitle:x.failureTitle:x.questionHeaderText}}))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.O(_.v,{cond:c,
then:function(){return _.O("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.hl(function(x){_.at(264687,x,V,function(B){V=B})}),
"on:click":f,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.O("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Rd({fill:function(){return F().primaryTextColor}})},_.O("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"})))}}),
_.O(_.Q7,{data:function(){return t().overflowMenu}},{buttonViewModel:function(x){return _.O(_.lk,{data:x.data})}}))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.hl(function(x){_.at(264688,x,w,function(B){w=B})}),
style:_.Rd({color:function(){return F().secondaryTextColor}}),
"client-ve-type":264688},_.O(_.Lv,{text:function(){var x=t();return c()?x.explanationText:x.questionSubheaderText}}))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.O(_.YV,{each:function(){return t().optionsData||[]}},function(x,B){var r={};
return _.O("div",{class:_.kS("learningJourneyQuizViewModelHostQuizOptions",(r.learningJourneyQuizViewModelHostQuizHover=function(){return!c()},r.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return l(B())},r.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!K()&&L(B())},r.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return c()&&!L(B())},r.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=I,r)),
"on:click":_.YS(function(){if(c())return!1;d(B());return!1}),
style:_.Rd({background:function(){var H=B();return c()&&L(H)?"":I()?F().optionColor:"transparent"}}),
role:"button","aria-disabled":c,"tab-index":"0","client-ve-type":264686},_.O(_.v,{cond:c,then:function(){var H={};return _.O("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var a=B();return z(a)?"0 0 24 24":"0 -960 960 960"},
class:_.kS("learningJourneyQuizViewModelHostQuizOptionIcon",(H.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return l(B())},H)),
style:_.Rd({fill:function(){return F().primaryTextColor}})},_.O("path",{d:function(){var a=B();
return z(a)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.O(_.Lv,{text:x.optionText}))})))))},"cd");
_.GOR.idomCompat=!0;_.iF(_.GOR,"learning-journey-quiz-view-model",{props:{data:_.vB,className:_.vB}});var r6E=_.eY(function(y){var W=y.data;return _.O("yt-suspense-view-model",{class:_.kS("ytSuspenseViewModelHost")},_.O(_.Q7,{data:function(){var V;return(V=W().config)==null?void 0:V.contents}},{lockupViewModel:_.US}))},"dd");var bEI=_.eY(function(y){var W=_.zb(y,{palette:void 0,isLastItem:!1}),V=W.palette,w=W.isLastItem,t=function(){return y.data().isHighlighted},F=function(){var C;
return hqv((C=V())==null?void 0:C.iconDisabledColor)},I=function(){var C;
return hqv((C=V())==null?void 0:C.primaryTitleColor)},P=function(){var C;
return hqv((C=V())==null?void 0:C.secondaryTitleColor)};
W={};return _.O("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.hl(_.FW(function(){return y.data().rendererContext}))},_.O(_.Q7,{data:function(){return y.data().thumbnail}},{thumbnailViewModel:_.hk}),_.O("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.O("div",{class:_.kS("ytMacroMarkerListItemViewModelTimeDescription",(W.ytMacroMarkerListItemViewModelHighlighted=t,W)),
style:_.Rd({"background-color":function(){return t()?I():F()},
color:function(){return t()?"":P()}})},_.O(_.Lv,{text:function(){return y.data().timestamp}})),_.O("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Rd({"background-color":function(){return w()?"transparent":F()}})}),_.O("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(t()?I():P())}},_.O(_.Lv,{text:function(){return y.data().title}}))))},"ed");_.WO=_.eY(function(y){function W(Na){B("transform:translateX("+(_.yC("HTML_DIR")==="rtl"?"":"-")+Na+"px)")}
function V(Na){return Math.min(Math.max(Na,0),x()-Fv())}
function w(){var Na=a()+un();return t()?(Math.round(Fv()/Na)||1)*Na:0}
var t=function(){return y.data().items||[]},F=function(){return y.data().previousButton},I=function(){return y.data().nextButton},P=function(){var Na,F6;
return(F6=(Na=y.disableArrows)==null?void 0:Na.call(y))!=null?F6:!1},C=function(){var Na;
return!((Na=y.forceNarrowLayout)==null||!Na.call(y))},d=_.DZ(function(){var Na;
return!((Na=y.centerAlignItems)==null||!Na.call(y))&&x()<=Fv()},void 0,"DL81uf"),L=_.I0("horizontal-shelf-view-model"),z=_.I0("div"),c=_.N(_.M1(0,void 0,"xZFppf")),K=c.next().value,f=c.next().value;
c=_.N(_.M1(0,void 0,"pH9gvd"));var U=c.next().value,l=c.next().value,x=U;U=_.N(_.M1("",void 0,"oYcWy"));c=U.next().value;var B=U.next().value;U=_.N(_.M1(0,void 0,"lI6NJb"));var r=U.next().value,H=U.next().value,a=r;U=_.N(_.M1(0,void 0,"yPqhW"));r=U.next().value;var b=U.next().value,Fv=r;U=_.N(_.M1(!1,void 0,"u4CvOe"));var Py=U.next().value,du=U.next().value;U=_.N(_.M1(0,void 0,"oQOBbe"));r=U.next().value;var mL=U.next().value,un=r;U=_.N(_.M1(0,void 0,"fCqgxd"));var hv=U.next().value,$P=U.next().value;
U=_.N(_.M1("50%",void 0,"kjP5ke"));var sz=U.next().value,Wz=U.next().value,mf=function(){var Na,F6=(Na=y.data())==null?void 0:Na.responsiveContainerConfiguration,TR,eP;return F6?lLv(F6==null?void 0:F6.responsiveSize):(eP=(TR=y.sizing)==null?void 0:TR.call(y))!=null?eP:"STANDARD"};
U=_.DZ(function(){return!P()&&K()>0},void 0,"oVCO3d");
r=_.DZ(function(){return!P()&&K()<x()-Fv()},void 0,"MQ6Gb");
var OE=function(){f(V(K()-w()));W(K())},Qj=function(){f(V(K()+w()));
W(K())},Kq=function(){L.value!==null&&l2()},zR;
_.a8(function(){l2();window.ResizeObserver?(zR=new ResizeObserver(_.B8(Kq,0)),zR.observe(L.value)):window.addEventListener("resize",Kq)});
_.XT(function(){if(window.ResizeObserver){var Na;(Na=zR)==null||Na.disconnect()}else window.removeEventListener("resize",Kq)});
var l2=function(){var Na=L.value.clientWidth,F6=y.includeMargin!==void 0?y.includeMargin():!1,TR;var eP=y.hasPeek!==void 0?y.hasPeek():!((TR=y.data())==null||!TR.hasPeek);Na=_.Cv({containerWidth:Na,hasPeek:eP,sizing:mf(),marginSettings:F6?C()?4:1:0});mL(Na.gutter);$P(Na.margin);H(Na.itemWidth);du(Na.maxContainerWidth<528||C());b(Na.maxContainerWidth);t()&&l((Na.itemWidth+Na.gutter)*t().length-Na.gutter);if(t()){var hA;if(((hA=y.thumbnailAspectRatio)==null?void 0:hA.call(y))!==void 0){var jQ;Wz(a()/
D3t((jQ=y.thumbnailAspectRatio)==null?void 0:jQ.call(y))/2+"px")}else Wz("50%")}},lt={},yu={};
return _.O("horizontal-shelf-view-model",{class:_.kS("ytwHorizontalShelfViewModelHost",y.className),el:L},_.O(_.v,{cond:function(){var Na;return y.data().header&&!((Na=y.horizontalShelfExperiments)==null?0:Na.call(y).hideHeader)},
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Rd({width:function(){return Fv()+"px"},
padding:function(){return"0 "+hv()+"px"}})},_.O(_.Q7,{data:function(){return y.data().header}},{sectionHeaderViewModel:function(Na){return _.O(_.U2,{data:Na.data,
disableHorizontalPadding:!0,forceSmallLayout:Py,useResponsiveLayout:!0})}}))}}),_.O("div",{class:_.kS("ytwHorizontalShelfViewModelOuterContainer",(lt.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return d()},lt)),
style:_.Rd({"margin-top":function(){var Na,F6=y.data().header&&!((Na=y.horizontalShelfExperiments)==null?0:Na.call(y).hideHeader),TR;return(((TR=y.ensureMarginTop)==null?0:TR.call(y))&&!F6?12:0)+"px"}})},_.O("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Rd({width:function(){return Fv()+"px"},
padding:function(){return"0 "+hv()+"px"},
overflow:function(){return P()?"auto":"hidden"}})},_.O("div",{class:_.kS("ytwHorizontalShelfViewModelItems",(yu.ytwHorizontalShelfViewModelCenterAlignItems=function(){return d()},yu)),
el:z,style:c},_.O(_.Q7,{data:t},{macroMarkerListItemViewModel:function(Na,F6){return _.O("div",{style:_.Rd({width:function(){return a()+"px"},
"margin-right":function(){return(F6()===t().length-1?0:un())+"px"}})},_.O(bEI,{data:Na.data,
palette:_.LD(y.palette),isLastItem:function(){return F6()===t().length-1}}))},
lockupViewModel:function(Na,F6){var TR=Na.data;return _.O("div",{style:_.Rd({width:function(){return a()+"px"},
"margin-right":function(){return(F6()===t().length-1?0:un())+"px"}})},_.O(_.US,{data:TR,
containerType:4,sizing:mf,protectBackground:y.protectBackground,thumbnailFixedWidth:function(){return o3G(TR())+"px"},
thumbnailTargetWidth:function(){return o3G(TR())}}))},
suspenseViewModel:function(Na,F6){return _.O("div",{style:_.Rd({width:function(){return a()+"px"},
"margin-right":function(){return(F6()===t().length-1?0:un())+"px"}})},_.O(r6E,{data:Na.data}))}}))),_.O(_.v,{cond:U,
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Rd({top:function(){return sz()}})},_.O(_.Q7,{data:F},{buttonViewModel:function(Na){return _.O(_.lk,{data:Na.data,
onClick:OE})}}))}}),_.O(_.v,{cond:r,
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Rd({top:function(){return sz()}})},_.O(_.Q7,{data:I},{buttonViewModel:function(Na){return _.O(_.lk,{data:Na.data,
onClick:Qj})}}))}})))},"fd");
_.WO.idomCompat=!0;var QCr=_.eY(function(y){var W=function(){return y.data().targetId||""},V=function(){var U;
return((U=y.data())==null?void 0:U.expansionEntityKey)||""},w=_.Yn(_.WYv,V),t=!0,F=function(){var U;
return((U=w())==null?void 0:U.value)===W()},I=function(U){_.dc(_.B5("stringEntity",V(),{key:V(),
value:U?W():""}))};
_.HV(function(){t=!1;y.data().isExpanded&&I(!0)});
var P=function(){if(F()){var U=!0;y.onCollapse!==void 0&&(U=y.onCollapse());U&&I(!1)}else I(!0)},C=_.YS(P),d=function(){var U;
return(((U=y.accordionStyle)==null?void 0:U.call(y))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.I0("div"),z=function(){var U,l;
return(l=(U=_.h(y.data().rendererContext,_.Bq))==null?void 0:U.label)!=null?l:""},c=function(){var U,l;
return{disabled:(U=y.hideIfNotExpanded)==null?void 0:U.call(y),ariaHidden:(l=y.hideIfNotExpanded)==null?void 0:l.call(y)}},K={},f={};
return _.O("yt-accordion-item-view-model",{class:_.kS("ytAccordionItemViewModelHost",y.className,(K.ytAccordionItemViewModelExpanded=function(){return F()},K.ytAccordionItemViewModelHidden=function(){var U;
return(U=y.hideIfNotExpanded)==null?void 0:U.call(y)},K.ytAccordionItemViewModelMini=d,K)),
"data-target-id":W},_.O("div",{class:"ytAccordionItemViewModelContainer"},_.O("div",{class:"ytAccordionItemViewModelLeftSection","on:click":C,title:z,"aria-hidden":function(){var U;return(U=y.hideIfNotExpanded)==null?void 0:U.call(y)}},_.O(_.Lv,{text:function(){return y.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:z})),_.O("div",{class:"ytAccordionItemViewModelRightSection"},_.O(_.Q7,{data:function(){return F()?y.data().expandButton:y.data().collapseButton}},{buttonViewModel:function(U){return _.O(_.lk,{data:U.data,
className:"ytAccordionItemViewModelToggleButton",onClick:P,buttonOverrides:c})}}))),_.O("div",{class:"ytAccordionItemViewModelContainer"},_.O("div",{class:_.kS("ytAccordionItemViewModelContent",(f.ytAccordionItemViewModelExpandedSubtitle=function(){return F()},f)),
el:L,style:_.Rd({"max-height":function(){return t?"auto":F()?L.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!F()}},_.O(_.v,{cond:function(){return!d()},
then:function(){return _.O(_.Lv,{text:function(){return y.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.O(_.Q7,{data:function(){return y.data().content}},{horizontalShelfViewModel:function(U){return _.O(_.WO,{data:U.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.ZEI=_.eY(function(y){var W=_.N((0,_.iT2)(y.data)).next().value,V=function(){return y.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},w=function(){return V()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.N(_.M1(!0,void 0,"FVec2e")),F=t.next().value,I=t.next().value,P=function(){return w()&&F()},C=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){I(!F())}}},d=_.YS(function(){W().onTitleTap&&_.Id(W().onTitleTap||{})});
t={};return _.O("yt-accordion-view-model",{class:_.kS("ytAccordionViewModelHost",(t.ytAccordionViewModelMinimized=function(){return P()},t)),
"data-target-id":function(){return y.data().targetId||""}},_.O(_.v,{cond:function(){return w()||!!W().title},
then:function(){return _.O("div",{class:"ytAccordionViewModelHeader"},_.O("div",{class:"ytAccordionViewModelTitleSection"},_.O("div",{class:"ytAccordionViewModelTitleWrapper"},_.O(_.v,{cond:function(){return!!y.data().headerIcon},
then:function(){return _.O(_.jl,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var L;return(L=y.data().headerIcon)==null?void 0:L.iconType}})}}),_.O("div",{class:"ytAccordionViewModelTitle",
"on:click":d},_.O(_.Lv,{className:"ytAccordionViewModelTitleText",text:function(){return W().title}})))),_.O("div",{class:"ytAccordionViewModelButtonSection"},_.O(_.v,{cond:w,
then:function(){return _.O(zr,{data:C,iconName:function(){return P()?"chevron_down":"chevron_collapse"}})}})))}}),_.O("div",{class:"ytAccordionViewModelContent"},_.O(_.Q7,{data:function(){return W().contents}},{accordionItemViewModel:function(L){return _.O(QCr,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:V,hideIfNotExpanded:P,onCollapse:function(){return w()?(I(!0),!1):!0}})}})),_.O("div",null,_.O(_.v,{cond:function(){return!w()&&(!!W().disclaimerFooter||!!W().footer)},
then:function(){return _.O("div",{class:"ytAccordionViewModelFooter"},_.O(_.Lv,{text:function(){return W().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.O(_.Q7,{data:function(){return y.data().footer}},{flexibleActionsViewModel:function(L){return _.O(rZ,{data:L.data,
layout:0})}}))}})))},"hd");_.iF(_.ZEI,"yt-accordion-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=null,V=null,w,t=(w=_.hs().resolve(_.eX(_.va)))==null?void 0:w(),F=_.N(_.M1(!1,void 0,"EVXQGb"));w=F.next().value;var I=F.next().value;F=_.N(_.M1(!0,void 0,"W9FIJf"));var P=F.next().value,C=F.next().value,d=_.I0("textarea",function(l){_.at(264503,l,W,function(x){W=x})}),L=function(l){I(!0);
l={learningJourneyFormData:{query:l}};_.Id(y.data().searchEndpoint||{},{form:{formData:l}});return!1},z=_.YS(function(l){l.target.closest("button-view-model")&&I(!0)});
F=_.YS(function(){C(d.value.value.length===0)});
var c=_.YS(function(l){if(l.key==="Enter"&&!l.shiftKey&&!P()){var x=l.target;l.preventDefault();L(x.value)}}),K={},f={},U={};
return _.O("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.O("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.O(_.ca,{data:function(){return y.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.O("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.O("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.O("div",{class:_.kS("ytLearningJourneyZeroStateSearchBar",(K.ytLearningJourneyZeroStateSearchBarDark=t,K))},_.O("textarea",{class:_.kS("ytLearningJourneyZeroStateTextInput",(f.ytLearningJourneyZeroStateTextInputDark=t,f)),el:d,"on:keyup":F,"on:keydown":c,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.O("div",{class:_.kS("ytLearningJourneyZeroStateSearchButtonContainer",(U.ytLearningJourneyZeroStateSearchButtonContainerDark=t,U))},_.O(_.lk,{data:function(){return _.h(y.data().searchButton,_.H5)},
className:"search-button",onClick:function(){return L(d.value.value)},
buttonOverrides:function(){return{disabled:P(),style:t?"mono-inverse":"mono",size:"XL"}}}))),_.O(_.v,{cond:function(){return!!y.data().errorBanner},
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.hl(function(l){_.at(264617,l,V,function(x){V=x})})},_.O(_.Q7,{data:function(){return y.data().errorBanner}},{alertBannerViewModel:function(l){return _.O(_.iEs,{data:l.data,
"client-ve-type":264617})}}))}})),_.O(_.v,{cond:w,
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.O(_.Q7,{data:function(){return y.data().loader}},{learningJourneyLoaderViewModel:function(l){return _.O(_.avz,{data:l.data})}}))},
else:function(){return _.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.O(_.v,{cond:function(){return!!y.data().learningJourneyShelf},
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.O("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return y.data().learningJourneySectionTitle}),_.O(_.Q7,{data:function(){return y.data().learningJourneyShelf}},{horizontalShelfViewModel:function(l){return _.O(_.WO,{data:l.data,
centerAlignItems:!0})}}))}}),_.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.O("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return y.data().suggestedJourneySectionTitle}),_.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":z},_.O(_.Q7,{data:function(){return y.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(l){return _.O(rZ,{data:l.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.vB}});var yNQ=_.eY(function(y){var W=y.data;return _.O("ytvl-live-leaderboard-item-action-content-view-model",{class:_.kS("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.O(_.Lv,{text:function(){var V;return(V=W())==null?void 0:V.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.O(_.Q7,{data:function(){return W().actionButton}},{buttonViewModel:function(V){return _.O(_.lk,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:V.data})}}))},"jd");var WWm=_.eY(function(y){var W=y.data;return _.O("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.kS("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.O(_.Lv,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var V;return(V=W())==null?void 0:V.displayName},
ellipsisTruncate:!0}),_.O(_.Q7,{data:function(){return W().badge}},{buttonViewModel:function(V){return _.O(_.lk,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:V.data})}}))},"kd");_.iF(_.eY(function(y){var W=y.data;return _.O("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.O("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.O(_.Lv,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var V;return(V=W())==null?void 0:V.rank}})),_.O("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.O(_.Q7,{data:function(){return W().avatar}},{avatarViewModel:_.ra})),_.O("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.O(_.Q7,{data:function(){return W().content}},{liveLeaderboardItemChannelContentViewModel:WWm,
liveLeaderboardItemActionContentViewModel:yNQ})),_.O(_.Lv,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var V;return(V=W())==null?void 0:V.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;return _.O("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.O(_.Lv,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var V,w;return(V=W())==null?void 0:(w=V.ranking)==null?void 0:w.rank}}),_.O("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.O(_.Q7,{data:function(){return W().avatar}},{avatarViewModel:_.ra})),_.O(_.Lv,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var V,w;return(V=W())==null?void 0:(w=V.channelContent)==null?void 0:w.channelName}}),_.O(_.Lv,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var V;return(V=W())==null?void 0:V.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.vB}});var Va2=_.eY(function(y){y=_.zb(y,{wrapper:!1}).wrapper;return _.O(_.v,{cond:y,then:function(){return _.O("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.O("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.O("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
Va2.idomCompat=!0;var wcs=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],tas=_.eY(function(y){var W=y.data;var V=_.hl(),w=_.DZ(function(){return W().command},void 0,"o6t5Yb");
_.H1(function(){w()&&_.F2(w(),{form:{element:V.value}})},"qIHWLc");
return _.O("div",{el:V,class:"YtQrCodeRendererHostContainer"},_.O(_.v,{cond:function(){return W().qrCodeImage},
then:function(t){return _.O(_.ca,{data:t,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.O(_.v,{cond:function(){return W().spinner},
then:function(){return _.O(Va2,null)}})}}),_.O(_.v,{cond:function(){return W().label},
then:function(t){return _.O(_.Lv,{text:t,className:"YtQrCodeRendererHostLabel"})}}),_.O(_.v,{cond:function(){return W().labels},
then:function(t){return _.O("div",{class:"YtQrCodeRendererHostLabels"},_.O(_.YV,{each:t},function(F){return _.O(_.Lv,{text:F})}))}}))},"pd");_.iF(_.eY(function(y){var W=y.data;var V=_.DZ(function(){return W().qrEntityKey},void 0,"joYCxd"),w=_.DZ(function(){return W().deleteEntityOnDismiss},void 0,"x3yAde"),t=_.DZ(function(){return W().command},void 0,"dJe1Re"),F=_.Yn(oQP,V);
y=_.DZ(function(){return W().qrCodeImage},void 0,"qM5dZe");
var I=_.DZ(function(){return W().style&&wcs.includes(W().style)},void 0,"CaNEkf"),P=_.L7({visibilityCallback:function(C){C&&t()&&_.F2(t())},
showOption:{calledOnce:!0,state:"visible"}});_.a8(function(){_.XT(function(){w()&&V()&&_.vC().dispatch(_.B5("qrCodeEntity",V()))})});
return _.O("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.hl(P)},_.O(_.v,{cond:I,then:function(){return _.O(_.v,{cond:F,then:function(C){return _.O(tas,{data:C})}})}}),_.O(_.v,{cond:y,
then:function(C){return _.O(_.ca,{data:C,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.vB}});_.FWz=_.eY(function(y){var W=y.data;var V=y.topbarOffset;var w,t=((w=_.hs().resolve(_.eX(_.va)))==null?void 0:w())||!1;return _.O("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var F=W();var I,P,C=t?(I=F.config)==null?void 0:I.darkThemeBackgroundColor:(P=F.config)==null?void 0:P.lightThemeBackgroundColor;F=C?_.V2(C):void 0;F="background-color: "+F+";";V!==void 0&&(F+="top: -"+V()+"px;");return F},
"aria-hidden":!0},_.O(_.v,{cond:function(){var F,I,P;return!!((F=W().backgroundImageConfig)==null?0:(I=F.image)==null?0:(P=I.sources)==null?0:P.length)},
then:function(){return _.O(_.ca,{data:function(){var F;return(F=W().backgroundImageConfig)==null?void 0:F.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.O("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+KEv(t,W().gradientColorConfig)+";"}}))},"qd");
_.FWz.idomCompat=!0;var VR=_.eY(function(y){var W=y.className;var V=y.data;var w=y.isOverlay;var t=y.maxLinesOverride;var F=y.useMediumText;var I=function(){return V().alwaysShowTruncationText},P=function(){return V().truncationText},C=function(){return F!==void 0&&F()?"medium":"small"},d=function(){return w!==void 0&&w()?"overlay":"default"},L=function(){var f,U;
return(U=(f=_.h(V().rendererContext,_.Bq))==null?void 0:f.label)!=null?U:""};
y=_.N(_.M1(!1,void 0,"xVwzHf"));var z=y.next().value,c=y.next().value;y=_.YS(function(){V().expandOnTap&&c(!z());return!1});
var K={};return _.O("yt-description-preview-view-model",{el:_.hl(_.FW(function(){return V().rendererContext})),
class:_.kS("yt-description-preview-view-model-wiz",W,(K["yt-description-preview-view-model-wiz--clickable"]=function(){var f;return!((f=_.h(V().rendererContext,$yL))==null||!f.onTap)},K["yt-description-preview-view-model-wiz--is-overlay"]=w,K)),
"on:click":y},_.O(_.v,{cond:function(){return V().description},
then:function(f){return _.O(_.v,{cond:z,then:function(){var U={};return _.O("div",{class:_.kS("yt-description-preview-view-model-wiz__description",(U["yt-description-preview-view-model-wiz__description--medium-text"]=F,U))},_.O(_.Lv,{text:f}))},
else:function(){return _.O(prQ,{text:f,alwaysShowTruncationText:I,truncationText:P,maxLines:function(){var U;return(U=t==null?void 0:t())!=null?U:V().maxLines},
textStyle:d,accessibilityLabel:L,textSize:C})}})}}))},"rd");
VR.idomCompat=!0;var ExA=_.eY(function(y){var W=y.data;var V=y.isOverlay;return _.O("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.O("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.O(_.Q7,{data:function(){return W().header}},{sectionHeaderViewModel:function(w){return _.O(_.U2,{data:w.data,
isOverlay:V})}})),_.O("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.O(_.Q7,{data:function(){return W().channelInfoButtons}},{flexibleActionsViewModel:rZ})),_.O("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.O(_.Q7,{data:function(){return W().description}},{descriptionPreviewViewModel:function(w){return _.O(VR,{data:w.data,
isOverlay:V})}})))},"sd");
ExA.idomCompat=!0;var Nr6=_.eY(function(y){var W=y.data;var V={};return _.O("factoid-view-model",{class:_.kS("ytwFactoidViewModelHost",(V.ytwFactoidViewModelHostOverlay=y.isOverlay,V))},_.O(_.Lv,{text:function(){return W().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.O(_.Lv,{text:function(){return W().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
Nr6.idomCompat=!0;var ID6=_.eY(function(y){var W=y.data;var V=y.isOverlay;return _.O("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.O(_.Q7,{data:function(){return W().factoids}},{factoidViewModel:function(w){return _.O(Nr6,{data:w.data,
isOverlay:V})}}))},"ud");
ID6.idomCompat=!0;_.gxq=_.eY(function(y){var W=y.data;var V=y.isOverlay;return _.O("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.O(_.Q7,{data:function(){return W().items}},{channelInfoViewModel:function(w){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(ExA,{data:w.data,
isOverlay:V}))},
coursePerksViewModel:function(w){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O($mI,{data:w.data,isOverlay:V}))},
descriptionPreviewViewModel:function(w){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(VR,{data:w.data,isOverlay:V}))},
factoidsRowViewModel:function(w){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(ID6,{data:w.data,isOverlay:V}))},
progressViewModel:function(w){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(nlI,{data:w.data,isOverlay:V}))}}))},"vd");var P12=_.eY(function(y){return _.O("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.O(_.Q7,{data:function(){return y.data().content}},{courseMetadataViewModel:function(W){return _.O(_.gxq,{data:W.data,
isOverlay:y.isOverlay})},
progressViewModel:function(W){return _.O(nlI,{data:W.data})}}))},"wd");var C1z=_.eY(function(y){var W=y.data;y=y.className;var V=function(){var t;return _.tO((t=W())==null?void 0:t.rendererContext)},w={};
w=(w["dynamic-text-view-model-wiz"]=!0,w["dynamic-text-view-model-wiz--tappable"]=function(){return V()},w);
return _.O("yt-dynamic-text-view-model",{el:_.hl(_.FW(function(){var t;return(t=W())==null?void 0:t.rendererContext})),
role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.kS(y,w)},_.O("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var t,F,I;return(I=(F=_.h((t=W())==null?void 0:t.rendererContext,_.Bq))==null?void 0:F.label)!=null?I:""}},_.O(_.Lv,{text:function(){return W().text},
userInput:!0})))},"xd");
C1z.idomCompat=!0;_.OxR=_.eY(function(y){var W=y.data;var V=y.isPositionRelative;var w=_.iLn("(max-width: 527.9px)"),t=function(){var F,I;return(I=(F=W())==null?void 0:F.style)!=null?I:"IMAGE_BANNER_STYLE_FULL_BLEED"};
y={};return _.O("yt-image-banner-view-model",{el:_.hl(_.FW(function(){var F;return(F=W())==null?void 0:F.rendererContext})),
class:_.kS((y["yt-image-banner-view-model-wiz"]=!0,y["yt-image-banner-view-model-wiz--inset"]=function(){return fjv(t())},y["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Gt(!0)&&!(V==null?0:V())},y["yt-image-banner-view-model-wiz--small-inset"]=function(){return fjv(t())&&w()},y["yt-image-banner-view-model-wiz--tappable"]=function(){var F;
return _.tO((F=W())==null?void 0:F.rendererContext)},y))},_.O(_.v,{cond:function(){var F;
return(F=W())==null?void 0:F.image},
then:function(){return _.O(_.ca,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.O(_.Q7,{data:function(){var F;
return(F=W())==null?void 0:F.overlays}},{thumbnailHoverOverlayViewModel:Gh}))},"yd");
_.OxR.idomCompat=!0;var vx2;vx2=_.eY(function(y){var W=y.condition;var V=y.content;return _.O(_.v,{cond:W,then:function(){return _.O("div",{class:"page-header-view-model-wiz__scroll-container"},V())},
else:function(){return V()}})},"zd");
_.d6m=_.eY(function(y){var W=y.data;var V=y.noPadding;var w=y.enableBanner;var t=y.cinematicContainerTopbarOffset;var F=y.allowCinematicContainerOverflow;var I=y.displayAsSidebar;var P=y.displayAsPanel;var C=y.alwaysUseMediumTextMetadata;var d=Tlv(),L=function(){return!!W().image||!!W().animatedImage},z=function(){return!!W().background},c=function(){return(I==null?0:I())||(P==null?0:P())?1:d()},K=function(){return c()===1},f=function(){return K()||c()===2},U=function(){return c()===4},l=function(){var hv=
W();
var $P=!!W().heroImage;var sz=c(),Wz=mpj(W()),mf=I==null?void 0:I(),OE=!hv.metadata,Qj;if(Qj=$P?_.h(hv.heroImage,uSq):_.h(hv.animatedImage||hv.image,uSq)){hv=Qj.style;var Kq=Qj.layoutMode;if(Kq!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Qj=aLL(XIy(Qj)),$P)$P=pJG(sz,hv,Kq,Qj,mf);else b:if(OE)$P=sz===1?{size:48}:{size:72};else switch(sz){case 1:$P={size:72};break b;case 2:$P={size:120};break b;default:$P=Wz<4?{size:120}:{size:160}}else $P=void 0}else $P={size:0};return $P};
y={};y=_.kS((y["page-header-view-model-wiz"]=!0,y["page-header-view-model-wiz--no-padding"]=function(){return!(V==null||!V())},y["page-header-view-model-wiz--small-top-padding"]=function(){return K()&&!W().actions&&!(P==null?0:P())||c()===2&&!(L()||W().heroImage)},y["page-header-view-model-wiz--small-bottom-padding"]=function(){return f()&&!W().actions&&!(P==null?0:P())},y["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(F==null?0:F())},y["page-header-view-model-wiz--display-as-sidebar"]=
I,y));
var x={},B=_.kS((x["page-header-view-model-wiz__page-header-headline"]=!0,x["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var hv;return(hv=l())==null?void 0:hv.allowFullWidth},x)),r=function(){var hv;
return f()&&!((hv=l())==null?0:hv.allowFullWidth)},H=function(){return K()&&(!!W().heroImage||L())&&mpj(W())>0},a=function(){return H()&&(P==null?void 0:P())};
x={};var b=_.kS((x["page-header-view-model-wiz__page-header-title"]=!0,x["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!H()},x["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return H()&&!a()},x["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=a,x["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=z,x));
x={};var Fv=_.kS((x["page-header-view-model-wiz__page-header-headline-image"]=!0,x["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!W().heroImage&&f()},x));
x={};var Py=_.kS((x["page-header-view-model-wiz__page-header-banner-container"]=w,x["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var hv;return(w==null?void 0:w())&&((hv=_.h(W().banner,_.Di2))==null?void 0:hv.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},x));
x={};var du=_.kS((x["page-header-view-model-wiz__page-header-content-metadata"]=!0,x["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=z,x));x={};var mL=_.kS((x["page-header-view-model-wiz__page-header-flexible-actions"]=!0,x["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!W().metadata||f()},x["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!f()},x));
x={};var un=_.kS((x["page-header-view-model-wiz__page-header-attribution"]=!0,x["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=z,x));return _.O("yt-page-header-view-model",{class:y},_.O(_.v,{cond:z,then:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-background"},_.O(_.Q7,{data:function(){return W().background}},{cinematicContainerViewModel:function(hv){return _.O(_.FWz,{data:hv.data,
topbarOffset:t})}}))}}),_.O(vx2,{condition:function(){return!(I==null||!I())},
content:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-content"},_.O(_.v,{cond:function(){return(w==null?void 0:w())&&W().banner},
then:function(){return _.O("div",{class:Py},_.O(_.Q7,{data:function(){return W().banner}},{imageBannerViewModel:_.OxR}))}}),_.O("div",{class:B},_.O(_.v,{cond:L,
then:function(){return _.O(_.Q7,{data:function(){var hv;if(!(hv=W().animatedImage)){hv=W();if(L()){var $P=hv=Object.assign({},hv),sz=c(),Wz=mpj(W()),mf=$P.image,OE=_.h(mf,SAI),Qj=OE==null?void 0:OE.avatar,Kq=_.h(Qj,_.EZ);if(mf&&Qj&&Kq){switch(sz){case 1:Kq.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Kq.avatarImageSize="AVATAR_SIZE_XXL";break;default:Wz<4?Kq.avatarImageSize="AVATAR_SIZE_XXL":Kq.avatarImageSize="AVATAR_SIZE_XXXL"}_.e("web_enable_sink_page_header_view_model")&&(_.Z8(Qj,_.EZ,Object.assign({},
Kq)),OE.avatar=Object.assign({},Qj),_.Z8(mf,SAI,Object.assign({},OE)),$P.image=Object.assign({},mf))}}hv=hv.image}return hv}},{contentPreviewImageViewModel:function(hv){return _.O(_.f9,{data:hv.data,
className:Fv,imageSizeConfig:l})},
decoratedAvatarViewModel:function(hv){return _.O(_.bV,{data:hv.data,className:Fv})}})}}),_.O(_.v,{cond:function(){return!!W().heroImage&&!r()},
then:function(){return _.O(_.Q7,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(hv){return _.O(_.f9,{data:hv.data,
className:Fv,imageSizeConfig:l})}})}}),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.v,{cond:function(){return!!W().heroImage&&r()},
then:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.O(_.Q7,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(hv){return _.O(_.f9,{data:hv.data,
className:Fv,imageSizeConfig:l})}}))}}),_.O(_.Q7,{data:function(){return W().title}},{dynamicTextViewModel:function(hv){return _.O(C1z,{data:hv.data,
className:b})}}),_.O(_.Q7,{data:function(){return W().metadata}},{contentMetadataViewModel:function(hv){return _.O(_.TX,{data:hv.data,
layout:function(){return K()?1:0},
className:du,isOverlay:z,useMediumText:function(){return(C==null?void 0:C())||U()}})}}),_.O(_.v,{cond:function(){return W().description&&!K()},
then:function(){return _.O(_.Q7,{data:function(){return W().description}},{descriptionPreviewViewModel:function(hv){return _.O(VR,{data:hv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return K()?void 0:1},
useMediumText:U})}})}}),_.O(_.v,{cond:function(){return W().attribution&&!f()},
then:function(){return _.O(_.Q7,{data:function(){return W().attribution}},{attributionViewModel:function(hv){return _.O(E7s,{data:hv.data,
className:un,useMediumText:U})}})}}),_.O(_.v,{cond:function(){return W().actions&&!f()},
then:function(){return _.O(_.Q7,{data:function(){return W().actions}},{flexibleActionsViewModel:function(hv){return _.O(rZ,{data:hv.data,
layout:function(){return Mkb(c())},
className:mL})}})}}))),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.v,{cond:function(){return W().description&&K()},
then:function(){return _.O(_.Q7,{data:function(){return W().description}},{descriptionPreviewViewModel:function(hv){return _.O(VR,{data:hv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return K()?void 0:1},
useMediumText:U})}})}}),_.O(_.v,{cond:function(){return W().attribution&&f()},
then:function(){return _.O(_.Q7,{data:function(){return W().attribution}},{attributionViewModel:function(hv){return _.O(E7s,{data:hv.data,
className:un,useMediumText:U})}})}}),_.O(_.v,{cond:function(){return W().actions&&f()},
then:function(){return _.O(_.Q7,{data:function(){return W().actions}},{flexibleActionsViewModel:function(hv){return _.O(rZ,{data:hv.data,
layout:function(){return Mkb(c())},
className:mL})}})}})),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.Q7,{data:function(){return W().bottomMetadataFlexibleContainer}},{flexibleContainer:function(hv){return _.O(P12,{data:hv.data,
isOverlay:z})}})))}}))},"Ad");
_.d6m.idomCompat=!0;_.iF(_.eY(function(y){var W=_.N(_.M1(!1,void 0,"j5qbkc")),V=W.next().value,w=W.next().value;return _.O("yt-official-card-view-model",{class:_.kS("ytOfficialCardViewModelHost",y.className),style:_.Rd({"background-color":function(){var t,F=Sun((t=y.data())==null?void 0:t.backgroundColor);return F?_.wg(F):void 0}})},_.O(_.Q7,{data:function(){return y.data().header}},{pageHeaderViewModel:function(t){return _.O(_.d6m,{data:t.data,
noPadding:!0})}}),_.O(_.Q7,{data:function(){return y.data().contents}},{horizontalShelfViewModel:function(t){return _.O(_.WO,{data:t.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.O(_.v,{cond:V,
then:function(){return _.O("div",{class:"ytOfficialCardViewModelExpandedContent"},_.O(_.Q7,{data:function(){return y.data().expandedContents}},{horizontalShelfViewModel:function(t){return _.O(_.WO,{data:t.data,
sizing:"MINI"})}}),_.O("div",{class:"ytOfficialCardViewModelCollapseButton"},_.O(_.Q7,{data:function(){return y.data().collapseButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
onClick:function(){w(!V())}})}})))},
else:function(){return _.O("div",{class:"ytOfficialCardViewModelExpandButton"},_.O(_.Q7,{data:function(){return y.data().expandButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
onClick:function(){w(!V())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.vB,
className:_.vB}});var qYL=_.nn({buttonViewModel:_.lk});_.zY(Upy);_.Sl(Upy,"ytw-search-friction-view-model",{propNames:["data"]});_.LWJ=_.eY(function(y){var W=_.I0("markdown-div"),V,w=(V=_.hs().resolve(_.eX(_.va)))==null?void 0:V();_.H1(function(){var t=W.value;var F=new u6f,I=new Map(F.JSC$9225_sanitizerTable.globalAttributePolicies);I.set("style",{policyAction:4});F.JSC$9225_sanitizerTable=new J$(F.JSC$9225_sanitizerTable.allowedElements,F.JSC$9225_sanitizerTable.elementPolicies,F.JSC$9225_sanitizerTable.allowedGlobalAttributes,I,F.JSC$9225_sanitizerTable.globallyAllowedAttributePrefixes);var P=["data-time"];if(P===void 0)I=
new Set(F.JSC$9225_sanitizerTable.globallyAllowedAttributePrefixes),I.add("data-"),F.JSC$9225_sanitizerTable=new J$(F.JSC$9225_sanitizerTable.allowedElements,F.JSC$9225_sanitizerTable.elementPolicies,F.JSC$9225_sanitizerTable.allowedGlobalAttributes,F.JSC$9225_sanitizerTable.globalAttributePolicies,I);else{I=new Set(F.JSC$9225_sanitizerTable.allowedGlobalAttributes);P=_.N(P);for(var C=P.next();!C.done;C=P.next()){C=C.value;if(C.indexOf("data-")!==0)throw Error("ua`"+C);I.add(C)}F.JSC$9225_sanitizerTable=
new J$(F.JSC$9225_sanitizerTable.allowedElements,F.JSC$9225_sanitizerTable.elementPolicies,I,F.JSC$9225_sanitizerTable.globalAttributePolicies,F.JSC$9225_sanitizerTable.globallyAllowedAttributePrefixes)}I=new Set(F.JSC$9225_sanitizerTable.allowedGlobalAttributes);I.add("class");F.JSC$9225_sanitizerTable=new J$(F.JSC$9225_sanitizerTable.allowedElements,F.JSC$9225_sanitizerTable.elementPolicies,I,F.JSC$9225_sanitizerTable.globalAttributePolicies,F.JSC$9225_sanitizerTable.globallyAllowedAttributePrefixes);
_.c7(t,_.Tmm(F.build(),SYz(y.text())));DpG(W.value)},"FI2gYe");
V={};return _.O("div",null,_.O("markdown-div",{class:_.kS("ytwMarkdownDivHost",(V.ytwMarkdownDivDark=w,V.ytwMarkdownDivHostSmall=function(){var t;return((t=y.isSmallText)==null?void 0:t.call(y))||!1},V)),
el:W}))},"Cd");
_.LWJ.idomCompat=!0;var zBq=_.eY(function(y){var W=y.imageData;var V=_.LD(y.isInList,!1),w=function(){return V()?{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 _.O("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.O(_.v,{cond:function(){return W().image},
then:function(t){return _.O(_.ca,{data:t,alt:function(){return w().alt},
contentMode:function(){return w().contentMode},
targetWidth:function(){return w().targetWidth},
targetHeight:function(){return w().targetHeight},
className:function(){return w().className}})}}),_.O("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.O("div",{class:_.kS("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.YV,{each:function(){var t;
return(t=W().description)!=null?t:[]}},function(t){return _.O("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.O(wI,{content:t}))})))},"Dd"),cNR=_.eY(function(y){var W=y.list;
var V=function(){var w;return(w=W().items)!=null?w:[]};
return _.O("div",{class:"ytwGenAiRichTextViewModelListContent"},_.O(_.v,{cond:function(){return W().title},
then:function(w){return _.O("div",{class:_.kS("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.O(_.Lv,{text:w}))}}),_.O(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.O("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.O(_.YV,{each:V},function(w){return _.O("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.O(wI,{content:w,isInList:!0}))}))}}),_.O(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.O("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.O(_.YV,{each:V},function(w){return _.O("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.O(wI,{content:w,isInList:!0}))}))}}),_.O(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.O("div",{class:"ytwGenAiRichTextViewModelImageList"},_.O(_.YV,{each:V},function(w){return _.O("div",{class:"ytwGenAiRichTextViewModelListItem"},_.O(wI,{content:w,isInList:!0}))}))}}))},"Ed"),eBq=_.eY(function(y){var W=y.table;
return _.O("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.O("thead",null,_.O("tr",null,_.O(_.YV,{each:function(){var V,w;return(w=(V=W().header)==null?void 0:V.cells)!=null?w:[]}},function(V){return _.O("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.O(_.YV,{each:function(){return V.contents}},function(w){return _.O(wI,{content:w})}))}))),_.O("tbody",null,_.O(_.YV,{each:function(){var V;
return(V=W().rows)!=null?V:[]}},function(V){return _.O("tr",null,_.O(_.YV,{each:function(){return V.cells}},function(w){return _.O("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.O(_.YV,{each:function(){return w.contents}},function(t){return _.O(wI,{content:t})}))}))})))},"Fd"),wI=_.eY(function(y){var W=y.content;
var V=_.LD(y.isInList,!1),w=function(){var t,F;return(F=(t=W().contentBlock)==null?void 0:t.contents)!=null?F:[]};
return _.O("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.O(_.v,{cond:function(){return W().text},
then:function(t){return _.O(_.Lv,{className:"ytwGenAiRichTextViewModelText",text:t})}}),_.O(_.v,{cond:function(){return W().image},
then:function(t){return _.O(zBq,{imageData:t,isInList:V})}}),_.O(_.v,{cond:function(){return W().list},
then:function(t){return _.O(cNR,{list:t})}}),_.O(_.v,{cond:function(){return W().contentBlock},
then:function(){return _.O("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.O(_.YV,{each:w},function(t){return _.O(wI,{content:t,isInList:!1})}))}}),_.O(_.v,{cond:function(){return W().table},
then:function(t){return _.O(eBq,{table:t})}}))},"Gd"),hBf=_.eY(function(y){var W={};
W=_.sU("ytwGenAiRichTextViewModelHost",(W.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.iC("search_overview_link_style")),W));return _.O("gen-ai-rich-text-view-model",{class:W},_.O(wI,{content:function(){return y.data().content}}))},"Hd");_.zY(ljv);_.zY(r7);_.ox6=_.eY(function(y){var W=y.data;var V=function(){var U;return((U=W().loadingUi)!=null?U:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},w=function(){return W().isLoading&&(V()==="UNSPECIFIED"||V()==="GHOST_CARD")},t=function(){return!W().isLoading},F=function(){return!!W().content&&!W().contents},I=function(){return!!W().contents},P=function(){return!!W().nextQueryButtons},C=function(){return W().isLoading&&V()==="INVISIBLE"},d=function(){var U,l;
return(l=(U=W().headerIcon)==null?void 0:U.iconType)!=null?l:""},L=function(){var U;
return(U=W().content)!=null?U:""},z=function(){return!!W().sourcesSection},c,K=!((c=_.hs().resolve(_.eX(_.va)))==null||!c()),f=_.DZ(function(){var U=[],l=W().contents;
if(l)for(var x=0;x<l.length;x++){var B=_.h(l&&l[x],B1J);B&&U.push(B)}return U},void 0,"ycU97e");
_.a8(function(){W().isLoading||_.aw("so_re",void 0,"search_overview_answer")});
return _.O("ytd-overview-answer-view-model",{class:function(){var U={};U=(U.ytdOverviewAnswerViewModelHost=!0,U.ytdOverviewAnswerViewModelDarkBackground=K&&!C(),U.ytdOverviewAnswerViewModelLightBackground=!K&&!C(),U);return _.sU(U)}},_.O(_.v,{cond:function(){return!C()},
then:function(){return _.O(_.o8,null,_.O("h2",null,_.O("div",{class:"ytdOverviewAnswerViewModelHeader"},_.O(_.v,{cond:d,then:function(U){return _.O("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.O(_.jl,{icon:U}))}}),_.O("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.O("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return W().headerText}),_.O("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.O(_.Lv,{text:function(){return W().headerSubtext}}))))),_.O(_.v,{cond:w,
then:function(){return ljv()}}),_.O(_.v,{cond:t,
then:function(){return _.O(_.o8,null,_.O(_.v,{cond:F,then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelText"},_.O(_.LWJ,{text:L,isSmallText:!0}))}}),_.O(_.v,{cond:I,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelRichText"},_.O(_.YV,{each:f},function(U){return _.O(hBf,{data:U})}))}}),_.O(_.v,{cond:P,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.O(_.Q7,{data:function(){return W().nextQueryButtons}},{buttonViewModel:function(U){return _.O(_.lk,{data:U.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.WO}))}}),_.O("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.O("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.O(_.v,{cond:function(){return!!_.h(W().likeButtonViewModel,_.QJ)&&!!_.h(W().dislikeButtonViewModel,_.bI)},
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.O(_.Q$,{data:function(){return _.h(W().likeButtonViewModel,_.QJ)},
disableIconAnimation:!0}),_.O(_.ba,{data:function(){return _.h(W().dislikeButtonViewModel,_.bI)}}))}})),_.O(_.v,{cond:function(){var U;
return(U=W().sourcesSection)==null?void 0:U.headerText},
then:function(U){return _.O("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.O(_.Lv,{text:U}))}})),_.O(_.v,{cond:z,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelSources"},_.O(_.Q7,{data:function(){var U;return(U=W().sourcesSection)==null?void 0:U.sourcesShelf}},{buttonViewModel:_.lk,
horizontalShelfViewModel:function(U){return _.O(_.WO,{data:U.data,includeMargin:!0,hasPeek:!0})}}))}}),_.O(_.v,{cond:function(){return W().disclaimerText},
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.O(_.Lv,{text:function(){return W().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var KWQ=_.eY(function(y){var W=y.data;var V=y.active;var w=_.I0("transcript-segment-view-model");_.H1(function(){var t,F,I,P=((t=_.hs().resolve(_.eX(_.va)))==null?0:t())?(F=W())==null?void 0:F.darkThemeColorPalette:(I=W())==null?void 0:I.lightThemeColorPalette;P&&(P.additiveBackground&&w.value.style.setProperty("--timestamp-active-background-color",_.wg(P.additiveBackground)),P.textSecondary&&w.value.style.setProperty("--timestamp-active-color",_.V2(P.textSecondary)))},"KHcbwb");
y={};return _.O("transcript-segment-view-model",{class:_.kS("ytwTranscriptSegmentViewModelHost",(y.ytwTranscriptSegmentViewModelHostActive=V,y.ytwTranscriptSegmentViewModelHostModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),y)),el:w},_.O(_.v,{cond:function(){var t;return(t=W())==null?void 0:t.timestamp},
then:function(t){var F={};return _.O("div",{class:_.kS("ytwTranscriptSegmentViewModelTimestamp",(F.ytwTranscriptSegmentViewModelTimestampActive=V,F))},t)}}),_.O(_.Lv,{text:function(){var t,F,I;
return(I=(t=W())==null?void 0:t.attributedText)!=null?I:{content:(F=W())==null?void 0:F.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var pcm=_.eY(function(y){var W=y.data;return _.O("div",{class:"yt-video-attributes-section-view-model__header"},_.O("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return W().headerTitle}),_.O(_.v,{cond:function(){return W().headerSubtitle},
then:function(){return _.O("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return W().headerSubtitle})}}))},"Kd"),ixm=_.eY(function(y){function W(U){return Math.max(Math.min(U,0),d()-P())}
var V=y.data;var w,t=_.I0("div",function(U){if(_.e("web_metadata_carousel_elref_bugfix")){var l=function(){L(U.clientWidth)};
l();window.ResizeObserver&&(w=new ResizeObserver(l),w.observe(U))}}),F=_.I0("div",function(U){C(U.scrollWidth)}),I=_.N(_.M1(0,void 0,"I9GbH"));
y=I.next().value;I=I.next().value;var P=y,C=I;I=_.N(_.M1(0,void 0,"eQAn5b"));y=I.next().value;I=I.next().value;var d=y,L=I;y=_.N(_.M1(0,void 0,"VU3lg"));var z=y.next().value,c=y.next().value;_.a8(function(){if(!_.e("web_metadata_carousel_elref_bugfix")){var U=function(){C(F.value.scrollWidth);L(t.value.clientWidth)};
U();if(window.ResizeObserver){var l=new ResizeObserver(U);l.observe(t.value);_.XT(function(){l.disconnect()})}}});
_.XT(function(){if(_.e("web_metadata_carousel_elref_bugfix")){var U;(U=w)==null||U.disconnect()}});
var K=function(){c(W(z()+d()))},f=function(){c(W(z()-d()))};
return _.O("yt-video-attributes-section-view-model",null,_.O("div",{class:"yt-video-attributes-section-view-model"},_.O(_.v,{cond:function(){return V().headerTitle},
then:function(){return _.O(pcm,{data:V})}}),_.O("div",{class:_.kS("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:t},_.O("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Rd({transform:function(){var U=z();_.yC("HTML_DIR")==="rtl"&&(U*=-1);return"translateX("+U+"px)"}}),
el:F},_.O(_.Q7,{data:function(){return V().videoAttributeViewModels}},{videoAttributeViewModel:m0i}))),_.O(_.Q7,{data:function(){return V().footerButton}},{buttonViewModel:function(U){return _.O(_.lk,{data:U.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.O(_.v,{cond:function(){return z()<0&&V().previousButton},
then:function(){return _.O("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.O(_.Q7,{data:function(){return V().previousButton}},{buttonViewModel:function(U){return _.O(_.lk,{data:U.data,
onClick:K})}}))}}),_.O(_.v,{cond:function(){return z()>d()-P()&&V().nextButton},
then:function(){return _.O("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.O(_.Q7,{data:function(){return V().nextButton}},{buttonViewModel:function(U){return _.O(_.lk,{data:U.data,
onClick:f})}}))}})))},"Ld");
ixm.idomCompat=!0;var fDE=_.eY(function(y){var W=y.data;var V=y.active;var w={},t={};return _.O("timeline-item-view-model",{class:_.kS("ytwTimelineItemViewModelHost",(w.ytwTimelineItemViewModelHostChapterChild=y.chapterChild,w.ytwTimelineItemViewModelModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),w))},_.O("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.O("div",{class:_.kS("ytwTimelineItemViewModelTimestamp",(t.ytwTimelineItemViewModelTimestampActive=
V,t))},function(){return W().timestamp})),_.O("div",{class:"ytwTimelineItemViewModelContentItems"},_.O(_.Q7,{data:function(){return W().contentItems}},{transcriptSegmentViewModel:function(F){return _.O(KWQ,{data:F.data,
active:V})},
videoAttributesSectionViewModel:ixm})))},"Md");var TrE=_.eY(function(y){var W=y.data;y={};return _.O("timeline-chapter-view-model",{class:_.kS("ytwTimelineChapterViewModelHost")},_.O("div",{class:_.kS("ytwTimelineChapterViewModelTitle",(y.ytwTimelineChapterViewModelModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),y))},function(){return W().title}),_.O(_.Q7,{data:function(){return W().contents}},{timelineItemViewModel:function(V){return _.O(fDE,{data:V.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(V){return _.O(ixm,{data:V.data})}}))},"Nd");var m6E=_.eY(function(y){var W=y.data;var V=_.I0("macro-markers-panel-item-view-model"),w=_.Yn(_.L2b,function(){var F;return(F=W().markersEngagementPanelSyncEntityKey)!=null?F:""}),t=function(){var F;
return((F=w())==null?void 0:F.activeItemIndex)===W().index};
y=_.YS(function(F){var I,P,C,d,L;return _.g(function(z){if(z.nextAddress==1)return F.stopPropagation(),_.VS(_.We(F),V.value,["A".toString(),"BUTTON".toString()])?z.return():(I=_.tl(W().onTap))?z.yield(_.u8(),2):z.return();P=z.yieldResult;d=(C=_.h(I,_.Iw))==null?void 0:C.startTimeSeconds;d===void 0||(L=P)!=null&&L.seekTo(d,!0);_.B7(z)})});
return _.O("macro-markers-panel-item-view-model",{class:_.kS("ytwMacroMarkersPanelItemViewModelHost",{"is-active":t}),el:V,"on:click":y,tabindex:0},_.O(_.Q7,{data:function(){var F;return(F=W())==null?void 0:F.item}},{timelineChapterViewModel:function(F){return _.O(TrE,{data:F.data,
active:t})},
timelineItemViewModel:function(F){return _.O(fDE,{data:F.data,active:t})},
videoAttributeViewModel:m0i}))},"Od");
m6E.idomCompat=!0;_.iF(m6E,"macro-markers-panel-item-view-model",{props:{data:_.vB}});_.iF(ixm,"yt-video-attributes-section-view-model",{props:{data:_.vB}});var MaE=_.eY(function(y){var W=function(){var V,w,t;return(t=(V=y.data().leadingLogoAccessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)!=null?t:""};
return _.O("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.O(_.v,{cond:function(){return y.data().leadingLogo},
then:function(V){return _.O(_.ca,{className:"ytwFantasySectionHeaderViewModelLogo",data:V,alt:W})}}),_.O("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.O(_.Lv,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return y.data().title}}),_.O(_.Lv,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return y.data().subtitle}})),_.O(_.Q7,{data:function(){return y.data().trailingButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var ql6=_.eY(function(y){var W={};W=_.kS("ytwFantasyTeamViewModelHost",(W.ytwFantasyTeamViewModelCompact=function(){var t;return!((t=y.compact)==null||!t.call(y))},W.ytwFantasyTeamViewModelUser=function(){return y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},W.ytwFantasyTeamViewModelOpponent=function(){return y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},W));
var V=function(){var t,F,I;return(I=(t=y.data().teamLogoAccessibility)==null?void 0:(F=t.accessibilityData)==null?void 0:F.label)!=null?I:""},w=_.Yn(cpd,function(){return y.data().teamEntityKey});
return _.O("ytw-fantasy-team-view-model",{class:W},_.O(_.v,{cond:function(){return y.data().teamLogo},
then:function(t){return _.O(_.ca,{className:"ytwFantasyTeamViewModelLogo",data:t,alt:V})}}),_.O("div",{class:"ytwFantasyTeamViewModelMetadata"},_.O("div",{class:"ytwFantasyTeamViewModelHeader"},_.O(_.Lv,{className:"ytwFantasyTeamViewModelScore",
text:function(){var t;return(t=w())==null?void 0:t.score}}),_.O(_.jl,{icon:function(){var t;
return(t=w())==null?void 0:t.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.O(_.Lv,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var t;return(t=w())==null?void 0:t.projectedScore}})),_.O(_.Lv,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return y.data().primaryText}}),_.O(_.Lv,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return y.data().secondaryText}}),_.O(_.Lv,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return y.data().tertiaryText}})),_.O(_.Lv,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var t;return(t=w())==null?void 0:t.score}}))},"Qd");_.iF(_.eY(function(y){return _.O("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.O("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.O(_.Q7,{data:function(){return y.data().summaryHeader}},{fantasySectionHeaderViewModel:MaE})),_.O(_.Q7,{data:function(){return y.data().userTeam}},{fantasyTeamViewModel:ql6}),_.O(_.Q7,{data:function(){return y.data().opponentTeam}},{fantasyTeamViewModel:ql6}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.vB}});var U6s=_.eY(function(y){var W=_.zb(y,{shape:{},useCustomTabRenderable:!1}),V=W.shape;W=W.useCustomTabRenderable;var w=y.customTabRenderable,t=function(){return V().disabled},F=function(){return V().selected},I=function(){return V().title},P=function(){return V().icon},C=_.I0("yt-tab-shape");
y=_.YS(function(z){var c;if(!t()&&((c=V().aTagConfig)==null?0:c.onclick))V().aTagConfig.onclick(z);return!1});
var d=_.YS(function(z){if(z.key==="Enter"||z.key==="ArrowUp"||z.key==="ArrowDown")z.preventDefault(),C.value.click();return!1}),L={};
return _.O("yt-tab-shape",{class:_.kS("yt-tab-shape-wiz",function(){return V().className},(L["yt-tab-shape-wiz__tab--last-tab"]=function(){return V().isLastTab},L["yt-tab-shape-wiz--host-disabled"]=t,L["yt-tab-shape-wiz--host-clickable"]=!w,L)),
role:w?void 0:"tab","aria-selected":F!=null?F:!1,"aria-disabled":t,tabindex:w?void 0:0,"on:click":y,"on:keydown":d,el:C,"tab-identifier":function(){return V().identifier},
"tab-title":I},_.O(_.v,{cond:W,then:function(){return w()},
else:function(){var z={},c={};return _.O(_.o8,null,_.O("div",{class:_.kS("yt-tab-shape-wiz__tab",(z["yt-tab-shape-wiz__tab--tab-selected"]=F,z))},_.O(_.v,{cond:P,then:function(K){return _.O(_.jl,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return K().iconType}})}}),I),_.O("div",{class:_.kS("yt-tab-shape-wiz__tab-bar",(c["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=F,c))}))}}))},"Sd");
U6s.idomCompat={callbacks:{customTabRenderable:!0}};_.Sli=_.eY(function(y){var W=y.shape;y=_.N(_.M1(48,void 0,"r9IBlb"));var V=y.next().value,w=y.next().value;y=_.N(_.M1(0,void 0,"Bd7rmd"));var t=y.next().value,F=y.next().value,I=function(){return W().tabs},P=_.I0("yt-tab-group-shape"),C=function(){var d,L;
return(L=(d=I())==null?void 0:d.findIndex(function(z){return z.selected}))!=null?L:-1};
_.a8(function(){var d=P.value.querySelectorAll("yt-tab-shape"),L=C()>-1?d[C()]:void 0;_.HU.addJob(function(){w((L==null?void 0:L.getBoundingClientRect().width)||0)},8,0)});
_.H1(function(){var d=C(),L=_.HU.addJob(function(){var z,c=((z=P.value)==null?void 0:z.querySelectorAll("yt-tab-shape"))||[],K;w(((K=d>-1?c[d]:void 0)==null?void 0:K.getBoundingClientRect().width)||0);for(K=z=0;K<d;K++)z+=c[K].offsetWidth+24;_.yC("HTML_DIR")==="rtl"&&(z=-z);F(z)},8,0);
_.XT(function(){_.HU.cancelJob(L)})},"EHixkc");
y={};return _.O("yt-tab-group-shape",{class:_.kS("yt-tab-group-shape-wiz",(y["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return W().isOverflowHidden},y)),
el:P},_.O(_.v,{cond:I,then:function(d){return _.O(_.o8,null,_.O("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.O(_.YV,{each:d},function(L,z){return _.O(U6s,{shape:function(){return Object.assign({},L,{isLastTab:z()===d().length-1})},
customTabRenderable:L.customTabRenderable,useCustomTabRenderable:!!L.customTabRenderable})})),_.O(umq,{width:V,
sliderOffset:t}))}}))},"Td");
_.Sli.idomCompat=!0;var umq=_.eY(function(y){var W=_.LD(y.sliderOffset,0),V=y.width;return _.O("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Rd({width:function(){return V()+"px"},
transform:function(){return"translateX("+W()+"px)"}})})},"Ud");var D62=_.eY(function(y){var W=function(){var F,I,P;return(P=(F=y.data().playerLogoAccessibility)==null?void 0:(I=F.accessibilityData)==null?void 0:I.label)!=null?P:""},V=_.Yn(eOu,function(){return y.data().playerEntityKey}),w={};
w=_.kS("ytwFantasyPlayerViewModelHost",(w.ytwFantasyPlayerViewModelPlaying=function(){var F;return!((F=V())==null||!F.isPlayerPlaying)},w.ytwFantasyPlayerViewModelOnField=function(){var F;
return((F=V())==null?void 0:F.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},w.ytwFantasyPlayerViewModelRedZone=function(){var F;
return((F=V())==null?void 0:F.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},w));
var t=function(){var F,I,P,C=((F=_.hs().resolve(_.eX(_.va)))==null?0:F())?(I=y.data().playerLogoBackgroundColor)==null?void 0:I.darkTheme:(P=y.data().playerLogoBackgroundColor)==null?void 0:P.lightTheme;return C===void 0?"":_.wg(C)};
return _.O("ytw-fantasy-player-view-model",{class:w},_.O(_.v,{cond:function(){return y.data().playerLogo},
then:function(F){return _.O("div",{class:"ytwFantasyPlayerViewModelLogo"},_.O("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.O(_.ca,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Rd({"background-color":t}),data:F,alt:W})),_.O("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.O(_.jl,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.O("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.O("div",{class:"ytwFantasyPlayerViewModelHeader"},_.O(_.Lv,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var F;return(F=y.data())==null?void 0:F.playerNameText}}),_.O(_.Lv,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var F;return(F=y.data())==null?void 0:F.playerDescriptionText}})),_.O("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.O(_.Lv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=V())==null?void 0:F.gamePeriodText}}),_.O(_.Lv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=y.data())==null?void 0:F.opponentTeamText}}),_.O(_.Lv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var F;return(F=V())==null?void 0:F.gameStatusText}}),_.O(_.Lv,{className:_.kS("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var F;return(F=V())==null?void 0:F.playerStatusText}})),_.O("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.O(_.Lv,{text:function(){var F;
return(F=V())==null?void 0:F.playerStatsText}}))),_.O(_.Lv,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var F;return(F=V())==null?void 0:F.fantasyScore}}))},"Vd");var lD2=_.eY(function(y){return _.O("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.O(_.v,{cond:function(){return y.data().players},
then:function(W){return _.O(_.Q7,{data:W},{fantasyPlayerViewModel:D62})}}))},"Wd");var x6E=_.eY(function(y){var W=_.N(_.Jl(function(){var t;return(t=y.data().selectedTabIdentifierKey)!=null?t:""})),V=W.next().value,w=W.next().value;
_.HV(function(){var t;(t=y.setSelectedTabSignal)==null||t.call(y,V)});
return _.O("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.O("div",{class:"ytTabbedViewModelTabGroup"},_.O(_.Sli,{shape:function(){var t=y.data(),F=[],I={tabs:F};if(!t.tabs)return I;t=_.N(t.tabs);for(var P=t.next(),C={};!P.done;C={tabViewModel:void 0},P=t.next())if(C.tabViewModel=_.h(P.value,QbE),C.tabViewModel){var d=P=void 0;F.push({aTagConfig:{onclick:function(L){return function(){var z;w((z=L.tabViewModel.tabIdentifier)!=null?z:"")}}(C)},
identifier:C.tabViewModel.tabIdentifier,selected:V()===C.tabViewModel.tabIdentifier,title:(d=(P=C.tabViewModel.title)==null?void 0:P.content)!=null?d:""})}return I}})),_.O(_.Q7,{data:function(){var t,F=_.N((t=y.data().tabs)!=null?t:[]);
for(t=F.next();!t.done;t=F.next())if((t=_.h(t.value,QbE))&&t.tabIdentifier===V())return t.content}},{fantasyRosterViewModel:lD2}))},"Xd");_.iF(_.eY(function(y){var W=_.N(xpz()),V=W.next().value,w=W.next().value;return _.O("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.O(_.Lv,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return y.data().title}}),_.O(_.v,{cond:function(){return y.data().tabbedViewModel},
then:function(t){return _.O(_.Q7,{data:t},{tabbedViewModel:function(F){return _.O(x6E,{data:F.data,setSelectedTabSignal:w})}})}}),_.O(_.v,{cond:function(){var t,F=(t=_.h(y.data().tabbedViewModel,Zcm))==null?void 0:t.tabs;
t=_.h(F==null?void 0:F[0],QbE);F=_.h(F==null?void 0:F[1],QbE);var I=t==null?void 0:t.tabIdentifier;if(V()===I){var P,C;if(!((P=_.h(t==null?void 0:t.content,XY6))==null?0:(C=P.players)==null?0:C.length))return y.data().noUserTeamPlayersText}else{var d,L;if(!((d=_.h(F==null?void 0:F.content,XY6))==null?0:(L=d.players)==null?0:L.length))return y.data().noOpponentTeamPlayersText}},
then:function(t){return _.O(_.Lv,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:t})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){return _.O("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.O(_.Lv,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return y.data().title}}),_.O(_.v,{cond:function(){return y.data().matchupTeamPairs},
then:function(W){return _.O(_.YV,{each:W,keyBy:"INDEX"},function(V){return _.O("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.O(_.Q7,{data:function(){return[V().firstTeam,V().secondTeam]}},{fantasyTeamViewModel:function(w){return _.O(ql6,{data:w.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=function(){var t,F,I;return(I=(t=y.data().userLogoAccessibility)==null?void 0:(F=t.accessibilityData)==null?void 0:F.label)!=null?I:""},V=function(){var t,F,I;
return(I=(t=y.data().opponentLogoAccessibility)==null?void 0:(F=t.accessibilityData)==null?void 0:F.label)!=null?I:""},w=_.Yn(zOz,function(){return y.data().entityKey});
return _.O("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.O("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.O(_.v,{cond:function(){return y.data().userLogo},
then:function(t){return _.O(_.ca,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:W})}}),_.O("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.O(_.Lv,{text:function(){return y.data().title}})),_.O(_.v,{cond:function(){return y.data().opponentLogo},
then:function(t){return _.O(_.ca,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:V})}})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.O("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.O(_.Lv,{text:function(){var t;
return(t=w())==null?void 0:t.userWinNumberLabel}})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.O("div",{class:_.kS("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Rd({flex:function(){var t,F;return(F=(t=w())==null?void 0:t.userWinNumber)!=null?F:50}})}),_.O("div",{class:_.kS("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Rd({flex:function(){var t,F;return(F=(t=w())==null?void 0:t.opponentWinNumber)!=null?F:50}})})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.O(_.Lv,{text:function(){var t;
return(t=w())==null?void 0:t.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.vB}});var kK2={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},sZ2=_.eY(function(y){return _.O(_.Q7,{data:y.button},{buttonViewModel:function(W){return _.O(_.lk,{data:W.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),ANs=_.eY(function(y){return _.O("ytd-backstage-locked-post-view-model",{class:_.kS("ytdBackstageLockedPostViewModelHost",y.className)},_.O("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.O("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.O(_.Q7,
{data:function(){return y.data().authorAvatar}},{decoratedAvatarViewModel:_.bV})),_.O("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.O("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.O(_.Lv,{text:function(){return y.data().authorText}})),_.O("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.O(_.Lv,{text:function(){return y.data().publishedTimeText}}),_.O(_.Q7,{data:function(){return y.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(W){return _.O(gM2,
{data:W.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.O("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.O(_.Lv,{text:function(){return y.data().contentText}})),_.O(_.$V,null,_.O(_.BV,{when:function(){return y.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.O("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.O(_.ca,{data:kK2,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.O(_.Lv,{text:function(){return y.data().lockedText}}))}),_.O(_.BV,{when:function(){return y.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.O("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.O("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.O(_.ca,{data:kK2,
alt:""})),_.O(_.Lv,{text:function(){return y.data().lockedText}}))})),_.O("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.O(sZ2,{button:function(){return y.data().likeButton}}),_.O("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return y.data().voteCountA11y}},_.O(_.Lv,{text:function(){return y.data().voteCount}})),_.O(sZ2,{button:function(){return y.data().dislikeButton}}),_.O(sZ2,{button:function(){return y.data().commentButton}}),_.O("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return y.data().commentCountA11y}},_.O(_.Lv,{text:function(){return y.data().commentCount}}))))},"be");
ANs.idomCompat=!0;_.iF(ANs,"ytd-backstage-locked-post-view-model",{props:{data:_.vB,className:_.vB}});_.ZQ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var tV=function(){var y=_.u.apply(this,arguments)||this;y.darkerPanels=_.e("web_watch_darker_panels");y.commentsHidePanelButton=!1;y.isWatchGrid=!1;y.continuationShowButton=!1;y.isSearch=!1;y.isConstrainedList=!1;y.isWatch=!1;y.eligibleToSwitchToGrid=!1;y.notSticky=!1;y.epRestyle=!1;y.isCarouselInFeed=!0;y.topSpacingZero=!1;y.continuationIsInitialLoad=!0;y.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");y.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");y.mastheadHeight=
0;y.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};y.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return y};
_.p(tV,_.u);_.E=tV.prototype;_.E.updateLockupContainerTypes=function(y){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||W.forEach(function(V){V.containerType=y})}};
_.E.getItemsPath=function(){return"data.contents"};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.E.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",
connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",
fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",
handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",
properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",
properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",
offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",
productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",
properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",
searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",
liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},
"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.e("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.e("kevlar_low_priority_continuation")}}};
_.E.created=function(){};
_.E.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.E.handleIntersect=function(y){this.notSticky=y[0].intersectionRatio===1};
_.E.attached=function(){var y=this;document.addEventListener("scroll",_.Dp(this,this.updateHeaderState));var W;this.mastheadHeight=((W=document.querySelector("ytd-masthead"))==null?void 0:W.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(V){y.handleIntersect(V)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){y.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.E.detached=function(){document.removeEventListener("scroll",_.Dp(this,this.updateHeaderState));var y;(y=this.intersectionObserver)==null||y.disconnect();var W;(W=this.resizeObserver)==null||W.disconnect()};
_.E.updated=function(y){y.has("data")&&this.updateHeaderState()};
_.E.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(O9K(!this.notSticky))};
_.E.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var y=_.i6(this.hostElement).querySelector("ytd-comments-header-renderer");y&&(y.hidePanelButton=this.commentsHidePanelButton)}};
_.E.onRetrieveLocation=function(y,W){this.containsComments()&&(this.firstCommentsLoaded=W.hasComments=!0)};
_.E.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.E.onLoadReloadContinuation=function(y,W){var V=this;y.stopPropagation();this.isReloading=!0;_.h1(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(w){var t=_.hs().resolve(_.bN);w=W(w);t.postData(w).then(function(F){V.onReloadContinuationData(F)})}})};
_.E.onReloadContinuationData=function(y){if(y=this.get("response.continuationContents.itemSectionContinuation",y)||this.get("response.contents.itemSectionRenderer",y)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",y)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",y))this.set("data.contents",y.contents||y.results),y.header&&this.set("data.header",y.header),this.set("data.continuations",
y.continuations||[]);this.isReloading=!1};
_.E.computeContentsClass=function(y){return y?"reloading":""};
_.E.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.E.computeSectionIdentifier=function(y){return y==null?void 0:y.sectionIdentifier};
_.E.computeFitContainer=function(y){return(y==null?void 0:y.sectionIdentifier)==="youchat-item-section"};
_.E.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.e("kevlar_disable_comments_auto_load")};
_.E.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.E.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.E.computeHasDestinationShelfRenderer=function(y){var W,V;return!!(y==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.destinationShelfRenderer)};
_.E.computeHasSectionGroupViewModel=function(y){var W,V;return!!(y==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.sectionGroupViewModel)};
_.E.computeHasQrCodeRenderer=function(y){var W,V;return!!(y==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.qrCodeRenderer)};
_.E.computeStaticCommentsHeader=function(y){return y&&this.containsComments()};
_.E.computeEpRestyle=function(y){return _.e("web_ep_restyling")&&y&&this.containsComments()};
_.E.computeIsContinuationCommentSection=function(y){return(y==null?void 0:y.targetId)==="shorts-engagement-panel-comments-section"||(y==null?void 0:y.targetId)==="comments-section"||(y==null?void 0:y.targetId)==="engagement-panel-comments-section"};
_.E.computeSuppressPaddingDisclaimer=function(){var y,W,V,w;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:(w=V.productListHeaderRenderer)==null?0:w.suppressPaddingDisclaimer)};
_.E.computeHeaderStyle=function(y){switch(y==null?void 0:y.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.E.dataChanged=function(){this.firstCommentsLoaded=!1};
_.E.observeDataContentsLength=function(){var y,W;((y=this.data)==null?0:(W=y.contents)==null?0:W.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.E.onYtDismissibleItemDismissedChange=function(y){this._setItemDismissed(y.type==="yt-dismissible-item-dismissed")};
_.E.triggerContinuations=function(){for(var y=_.i6(this.hostElement).querySelector("#continuations").children,W=0;W<y.length;W++)y[W].trigger()};
_.E.triggerInitialContinuations=function(){for(var y=_.i6(this.hostElement).querySelector("#continuations").children,W=0;W<y.length;W++)y[W].triggerIfNotPreviouslyTriggered()};
_.E.handleYtItemSectionContinuation=function(y,W){var V;W&&((V=this.data)==null?void 0:V.sectionIdentifier)!==W||(this.set("data.continuations",[y]),this.triggerContinuations())};
_.E.handleYtItemSectionReplace=function(y,W){var V;W&&((V=this.data)==null?void 0:V.sectionIdentifier)!==W||(this.set("data.contents",y),this.set("data.continuations",[]))};
_.E.computeUseHeightHack=function(y){return y&&!_.e("kevlar_disable_height_hack")};
_.E.computeTopSpacingZero=function(y){return y};
_.E.continuationShowButtonChanged=function(){var y=_.i6(this.hostElement).querySelector("ytd-continuation-item-renderer");y&&(y.showButton=this.continuationShowButton)};
_.E.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("data-changed",this.data))};
_.CM.Object.defineProperties(tV.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.e("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w,t,F,I;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:(w=V.shelfRenderer)==null?0:(t=w.content)==null?0:(F=t.gridRenderer)==null?0:(I=F.targetId)==null?0:I.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W[0])==null?0:V.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.iC("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.e("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.e("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
tV.prototype.dataChangedForBinding=tV.prototype.dataChangedForBinding;tV.prototype.continuationShowButtonChanged=tV.prototype.continuationShowButtonChanged;tV.prototype.onYtDismissibleItemDismissedChange=tV.prototype.onYtDismissibleItemDismissedChange;tV.prototype.observeDataContentsLength=tV.prototype.observeDataContentsLength;tV.prototype.dataChanged=tV.prototype.dataChanged;tV.prototype.onServiceRequestCompleted=tV.prototype.onServiceRequestCompleted;tV.prototype.onLoadReloadContinuation=tV.prototype.onLoadReloadContinuation;
tV.prototype.onRetrieveLocation=tV.prototype.onRetrieveLocation;tV.prototype.commentsHidePanelButtonChanged=tV.prototype.commentsHidePanelButtonChanged;tV.prototype.dispatchChipBarIsSticky=tV.prototype.dispatchChipBarIsSticky;tV.prototype.updateLockupContainerTypes=tV.prototype.updateLockupContainerTypes;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],tV.prototype,"ytLazyListBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],tV.prototype,"ytNextContinuationBehavior",void 0);
_.J([_.m(_.gk),_.R("design:type",Object)],tV.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],tV.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tV.prototype,"darkerPanels",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Boolean)],tV.prototype,"engagementPanel",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"commentsHidePanelButton",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"isWatchGrid",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"continuationShowButton",void 0);_.J([_.q({computed:"computeIsContinuationCommentSection(data)"}),_.R("design:type",Boolean)],tV.prototype,"continuationIsCommentsSection",void 0);
_.J([_.q({value:!0}),_.R("design:type",Boolean)],tV.prototype,"autoFill",void 0);_.J([_.q(),_.R("design:type",Boolean)],tV.prototype,"continuationDisablePrescanVisibility",void 0);_.J([_.q(),_.R("design:type",Boolean)],tV.prototype,"isReloading",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"isSearch",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"isConstrainedList",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"isWatch",void 0);
_.J([_.q(),_.R("design:type",Object)],tV.prototype,"eligibleToSwitchToGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tV.prototype,"notSticky",void 0);_.J([_.q({selector:_.wp}),_.R("design:type",Object)],tV.prototype,"isGridViewEnabled",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.R("design:type",Object)],tV.prototype,"epRestyle",void 0);
_.J([_.M("isWatch"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"hideShortsShelfHeader",null);_.J([_.M("isSearch","isWatch"),_.R("design:type",String),_.R("design:paramtypes",[])],tV.prototype,"thumbnailWidth",null);_.J([_.M("isSearch","isWatch"),_.R("design:type",String),_.R("design:paramtypes",[])],tV.prototype,"sizing",null);
_.J([_.M("isWatch","isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],tV.prototype,"lockupContainerType",null);_.J([_.xA("lockupContainerType","data"),_.R("design:type",Function),_.R("design:paramtypes",[Number]),_.R("design:returntype")],tV.prototype,"updateLockupContainerTypes",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],tV.prototype,"pageSubtype",void 0);
_.J([_.q({computed:"computeContainerWidth()"}),_.R("design:type",Number)],tV.prototype,"containerWidth",void 0);_.J([_.q(),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"isPlaylist",null);_.J([_.q(),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"isClipList",null);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"isCarouselInFeed",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"isPlaylistVideoContainer",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"isSearchFrictionPage",null);_.J([_.q({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.R("design:type",Boolean)],tV.prototype,"useHeightHack",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.R("design:type",Object)],tV.prototype,"topSpacingZero",void 0);_.J([_.q({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.R("design:type",Boolean)],tV.prototype,"showButton",void 0);_.J([_.q(),_.R("design:type",Boolean)],tV.prototype,"firstCommentsLoaded",void 0);_.J([_.q(),_.R("design:type",Object)],tV.prototype,"continuationIsInitialLoad",void 0);
_.J([_.q({reflectToAttribute:!0,readOnly:!0}),_.R("design:type",Boolean)],tV.prototype,"itemDismissed",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.R("design:type",String)],tV.prototype,"sectionIdentifier",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.R("design:type",String)],tV.prototype,"fitContainer",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.R("design:type",Boolean)],tV.prototype,"hasDestinationShelfRenderer",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.R("design:type",Boolean)],tV.prototype,"staticCommentsHeader",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tV.prototype,"enableSqueezebackPanels",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tV.prototype,"enableAnchoredPanel",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.R("design:type",Boolean)],tV.prototype,"hasSectionGroupViewModel",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.R("design:type",Boolean)],tV.prototype,"hasQrCodeRenderer",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.R("design:type",Boolean)],tV.prototype,"suppressDisclaimerSeparator",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.R("design:type",String)],tV.prototype,"headerStyle",void 0);_.J([_.M("isSearch"),_.R("design:type",Object),_.R("design:paramtypes",[])],tV.prototype,"lockupExperiments",null);
_.J([_.M("isSearch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tV.prototype,"typographyBump",null);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],tV.prototype,"header",void 0);_.J([_.xA("notSticky"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"dispatchChipBarIsSticky",null);
_.J([_.xA("commentsHidePanelButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"commentsHidePanelButtonChanged",null);_.J([_.l6("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],tV.prototype,"onRetrieveLocation",null);
_.J([_.l6("yt-load-reload-continuation"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Function]),_.R("design:returntype")],tV.prototype,"onLoadReloadContinuation",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"onServiceRequestCompleted",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"dataChanged",null);
_.J([_.Jc("data.contents.length"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"observeDataContentsLength",null);_.J([_.l6("yt-dismissible-item-dismissed"),_.l6("yt-dismissible-item-undismissed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],tV.prototype,"onYtDismissibleItemDismissedChange",null);
_.J([_.xA("continuationShowButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"continuationShowButtonChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tV.prototype,"dataChangedForBinding",null);_.J([_.k({is:"ytd-item-section-renderer",disableElementRegistration:!0})],tV);
_.Y(tV,"ytd-item-section-renderer",function(){if(yuA!==void 0)return yuA;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return yuA=y},{mode:1});var YlE;var AKu=_.CO(_.u5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Br6={},sQb=(Br6[0]={title:_.oB(_.u5("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:eE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Br6[1]={title:_.oB(_.u5("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:eE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Br6);_.ZQ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var FF=function(){var y=_.u.apply(this,arguments)||this;y.allVideosCount=0;y.allPlaylistCount=0;y.isOnline=!1;y.shouldRenderDownloadsBanner=!1;y.shouldRenderDownloadsBannerUpsell=!1;y.hasOptedIntoSmartDownloads=!1;y.areAllSmartDownloadsDeleted=!1;y.smartDownloadsCompleted=!1;return y};
_.p(FF,_.u);FF.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
FF.prototype.attached=function(){this.downloadsToRenderChanged()};
FF.prototype.detached=function(){this.set("renderableData",{})};
FF.prototype.downloadsToRenderChanged=function(){var y=_.dP().getState().entities,W=_.HE(y),V=_.e("kevlar_playlist_dl_page_killswitch")?o0v(y):_.Xr(y),w=_.v0t(y),t=_.cgv(y),F=_.BE(W);y=_.aB(y);this.set("renderableData",Blt(V,W,w,t,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,F,y))};
FF.prototype.downloadsToRenderChanged=FF.prototype.downloadsToRenderChanged;_.J([_.m(_.y$),_.R("design:type",Object)],FF.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],FF.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],FF.prototype,"renderableData",void 0);_.J([_.q({selector:_.DxL}),_.R("design:type",Object)],FF.prototype,"allVideosCount",void 0);_.J([_.q({selector:quj}),_.R("design:type",Object)],FF.prototype,"allPlaylistCount",void 0);_.J([_.q({selector:_.ZH}),_.R("design:type",Object)],FF.prototype,"isOnline",void 0);_.J([_.q({selector:_.Bzv}),_.R("design:type",Object)],FF.prototype,"shouldRenderDownloadsBanner",void 0);
_.J([_.q({selector:_.$xv}),_.R("design:type",Object)],FF.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.J([_.q({selector:_.Jgz}),_.R("design:type",Object)],FF.prototype,"hasOptedIntoSmartDownloads",void 0);_.J([_.q({selector:_.Rg4}),_.R("design:type",Object)],FF.prototype,"areAllSmartDownloadsDeleted",void 0);_.J([_.q({selector:ji4}),_.R("design:type",Object)],FF.prototype,"smartDownloadsCompleted",void 0);
_.J([_.Jc("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FF.prototype,"downloadsToRenderChanged",null);_.J([_.k({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],FF);
_.Y(FF,"ytd-offline-item-section-renderer",function(){if(YlE!==void 0)return YlE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return YlE=y},
{mode:1});var JN2;var RBR;var Ei=function(){return _.u.apply(this,arguments)||this};
_.p(Ei,_.u);
Ei.prototype.onDataChanged=function(){if(this.JSC$16524_lastData){var y=this.getFilterClass(this.JSC$16524_lastData.status);y&&this.hostElement.classList.remove(y)}var W;(y=this.getFilterClass((W=this.data)==null?void 0:W.status))&&this.hostElement.classList.add(y);y==="selected"?_.i6(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.i6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");y==="disabled"?_.i6(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.i6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16524_lastData=this.data};
Ei.prototype.getFilterClass=function(y){switch(y){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Ei.prototype.onDataChanged=Ei.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ei.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ei.prototype,"onDataChanged",null);_.J([_.k({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Ei);
_.Y(Ei,"ytd-search-filter-renderer",function(){if(RBR!==void 0)return RBR;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return RBR=y},{mode:_.qM("kevlar_poly_si_batch_j075")?1:2});var NP=function(){return _.u.apply(this,arguments)||this};
_.p(NP,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],NP.prototype,"data",void 0);_.J([_.k({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],NP);
_.Y(NP,"ytd-search-filter-group-renderer",function(){if(JN2!==void 0)return JN2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return JN2=y},{mode:_.qM("kevlar_poly_si_batch_j075")?1:2});var jZK;var IN=function(){return _.u.apply(this,arguments)||this};
_.p(IN,_.u);IN.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.uJ());this.isCollapsed=!this.isCollapsed};
IN.prototype.navigateToAboutTheseResultsPage=function(){var y=QG("https://www.youtube.com/howyoutubeworks/product-features/search/");y?_.P7(window,y,"_blank"):_.VC(Error("$h"))};
IN.prototype.dataChanged=function(){this.isCollapsed=!0};
IN.prototype.computeShowBottomBorder=function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.button)==null?0:W.toggleButtonRenderer)||!((V=this.data)==null||!V.aboutTheseResultsButton)};
IN.prototype.dataChanged=IN.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],IN.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.R("design:type",Boolean)],IN.prototype,"showBottomBorder",void 0);_.J([_.q(),_.R("design:type",Boolean)],IN.prototype,"renderCollapsibleMenu",void 0);
_.J([_.q(),_.R("design:type",Boolean)],IN.prototype,"isCollapsed",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IN.prototype,"dataChanged",null);_.J([_.k({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],IN);
_.Y(IN,"ytd-search-sub-menu-renderer",function(){if(jZK!==void 0)return jZK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jZK=y},{mode:1});var $66;var nxr=new _.e9("SECTION_LIST_RENDERER_TOKEN");var Hxm;var gI=function(){return _.u.apply(this,arguments)||this};
_.p(gI,_.u);gI.prototype.computeStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gI.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],gI.prototype,"headerStyle",void 0);_.J([_.k({is:"ytd-text-header-renderer",disableElementRegistration:!0})],gI);
_.Y(gI,"ytd-text-header-renderer",function(){if(Hxm!==void 0)return Hxm;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Hxm=y},{mode:1});var Xci;var PO=function(){return _.u.apply(this,arguments)||this};
_.p(PO,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PO.prototype,"data",void 0);_.J([_.k({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],PO);
_.Y(PO,"ytd-minor-moment-header-renderer",function(){if(Xci!==void 0)return Xci;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Xci=y},{mode:1});var aDQ;var CU=function(){return _.u.apply(this,arguments)||this};
_.p(CU,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],CU.prototype,"data",void 0);_.J([_.k({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],CU);
_.Y(CU,"ytd-minor-moment-setting-alert-renderer",function(){if(aDQ!==void 0)return aDQ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return aDQ=y},{mode:1});var GKq;var rN2;var Oi=function(){var y=_.u.apply(this,arguments)||this;y.booleanSettingById=!1;y.smartDownloadsEnabledVE=_.ad(128287);y.smartDownloadsDisabledVE=_.ad(128286);y.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return y};
_.p(Oi,_.u);_.E=Oi.prototype;_.E.attachSmartDownloadsSettingVes=function(){var y;this.activeVeForLogging||((y=this.data)==null?void 0:y.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.U8(_.BC(),this.smartDownloadsEnabledVE),_.U8(_.BC(),this.smartDownloadsDisabledVE))};
_.E.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.h1(this.hostElement,"yt-settings-switch-ready")};
_.E.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.E.onSwitchChange=function(y){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(y=_.vW(y).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.e("kevlar_settings_switch_resolve_command_killswitch")?_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(y)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.E.handleUpdateSettingsSwitch=function(y){(y=_.h(y,vGQ))&&this.data&&this.data.id===y.id&&this.set("data.enabled",!!y.enabled)};
_.E.onToggleSettingsSwitch=function(y,W){this.data&&this.data.id===y&&this.set("data.enabled",W!=null?W:!this.data.enabled)};
_.E.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.en.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.E.maybeLogSmartDownloadsSettingVisibility=function(){var y=_.Xn(),W;y&&((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.IB(y,[this.smartDownloadsEnabledVE]),_.g5(y,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.IB(y,[this.smartDownloadsDisabledVE]),_.g5(y,[this.smartDownloadsEnabledVE])))};
_.E.maybeLogSmartDownloadsSettingClick=function(){var y;((y=this.data)==null?void 0:y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Sn(_.BC(),this.activeVeForLogging)};
_.E.updateDataEnabledFromBinding=function(y){this.set("data.enabled",y.detail.value)};
_.CM.Object.defineProperties(Oi.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!y&&(y=this.ytRendererBehavior.getSimpleString(this.data.title));return y}}});
Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.J([_.m(_.y$),_.R("design:type",Object)],Oi.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Oi.prototype,"data",void 0);_.J([_.q({selector:function(y,W){if(Object.keys(y==null?void 0:y.entities).length)switch(W){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return KZz(y.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.R("design:type",Object)],Oi.prototype,"booleanSettingById",void 0);_.J([_.q(),_.R("design:type",_.nM)],Oi.prototype,"activeVeForLogging",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Oi.prototype,"toggleAriaLabel",null);_.J([_.Jc("data"),_.Jc("booleanSettingById"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Oi.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Oi);
_.Y(Oi,"ytd-settings-switch-renderer",function(){if(rN2!==void 0)return rN2;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return rN2=y},{mode:1});var vO=function(){return _.u.apply(this,arguments)||this};
_.p(vO,_.u);vO.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}}}}};
_.CM.Object.defineProperties(vO.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var y=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(y+=" remove-left-margin");this.data.extraBottomSpace&&(y+=" extra-bottom-space");return y}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vO.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vO.prototype,"contentsClassName",null);_.J([_.k({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],vO);
_.Y(vO,"ytd-minor-moment-setting-section-renderer",function(){if(GKq!==void 0)return GKq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return GKq=y},{mode:1});var bxf;var dI=function(){return _.u.apply(this,arguments)||this};
_.p(dI,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],dI.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dI.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],dI);
_.Y(dI,"ytd-empty-product-details-renderer",function(){if(bxf!==void 0)return bxf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return bxf=y},{mode:1});var QZ6;var ZxK;var LU=function(){var y=_.u.apply(this,arguments)||this;y.expanded=!0;return y};
_.p(LU,_.u);LU.prototype.getBadgeRowClass=function(y,W,V){for(var w=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),t=w.next();!t.done;t=w.next())t.value.onShow();y=y.selected;return V?y!==-1?y===W?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(y!==void 0?y:0)===W?"badge-line":"badge-hidden"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LU.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],LU.prototype,"expanded",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],LU);
_.Y(LU,"ytd-sponsorships-loyalty-badges-renderer",function(){if(ZxK!==void 0)return ZxK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ZxK=y},{mode:1});var y7A;var ze=function(){var y=_.u.apply(this,arguments)||this;y.expanded=!0;return y};
_.p(ze,_.u);ze.prototype.getContainerClasses=function(y,W){y=y?"expanded":"collapsed";W&&(y+=" item");return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ze.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],ze.prototype,"expanded",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],ze);
_.Y(ze,"ytd-sponsorships-perk-renderer",function(){if(y7A!==void 0)return y7A;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return y7A=y},{mode:1});var Wkq;var cO=function(){var y=_.u.apply(this,arguments)||this;y.expanded=!0;return y};
_.p(cO,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cO.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],cO.prototype,"expanded",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],cO);
_.Y(cO,"ytd-sponsorships-perks-renderer",function(){if(Wkq!==void 0)return Wkq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Wkq=y},{mode:1});var eT=function(){var y=_.u.apply(this,arguments)||this;y.isCollapsed=!1;return y};
_.p(eT,_.u);eT.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
eT.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
eT.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var y;this.expandCollapseButton=_.h((y=this.data)==null?void 0:y.expandButton,_.wz)}else{var W;this.expandCollapseButton=_.h((W=this.data)==null?void 0:W.collapseButton,_.wz)}};
eT.prototype.updateExpandCollapseButton=eT.prototype.updateExpandCollapseButton;eT.prototype.onDataChanged=eT.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eT.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eT.prototype,"isCollapsed",void 0);_.J([_.q(),_.R("design:type",Object)],eT.prototype,"expandCollapseButton",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eT.prototype,"onDataChanged",null);_.J([_.Jc("data","isCollapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eT.prototype,"updateExpandCollapseButton",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],eT);
_.Y(eT,"ytd-sponsorships-expandable-perks-renderer",function(){if(QZ6!==void 0)return QZ6;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return QZ6=y},{mode:1});var Vgr;var hV=function(){return _.u.apply(this,arguments)||this};
_.p(hV,_.u);hV.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],hV.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hV.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],hV);
_.Y(hV,"ytd-sponsorships-actionable-message-renderer",function(){if(Vgr!==void 0)return Vgr;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Vgr=y},{mode:1});var w0R;var oN=function(){return _.u.apply(this,arguments)||this};
_.p(oN,_.u);_.E=oN.prototype;_.E.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.E.getExpansionIcon=function(y){return y?"COLLAPSE":"EXPAND"};
_.E.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.E.computeMessageContainerStyle=function(y){var W=y.expandableItems?" style-clickable":"";return y.messageContainerStyle?y.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+W:"style-unspecified"+W};
_.E.isSinglePerk=function(y){return!!y.messageContainerStyle&&(y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.E.onExpandedChanged=function(){var y=this;if(this.expanded)for(var W=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),V=W.next();!V.done;V=W.next())V.value.onShow();_.gy(this,function(){_.h1(y.hostElement,"yt-refit")})};
_.E.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
oN.prototype.onDataChanged=oN.prototype.onDataChanged;oN.prototype.onExpandedChanged=oN.prototype.onExpandedChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oN.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],oN.prototype,"expanded",void 0);
_.J([_.xA("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oN.prototype,"onExpandedChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oN.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],oN);
_.Y(oN,"ytd-sponsorships-expandable-message-renderer",function(){if(w0R!==void 0)return w0R;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return w0R=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var tg6;var KU=function(){return _.u.apply(this,arguments)||this};
_.p(KU,_.u);KU.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"}}}}};
KU.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.h(this.data.endButton,_.wz).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
KU.prototype.onDataChanged=KU.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KU.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KU.prototype,"onDataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],KU);
_.Y(KU,"ytd-sponsorships-heading-renderer",function(){if(tg6!==void 0)return tg6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tg6=y},{mode:1});var FkK;var pU=function(){return _.u.apply(this,arguments)||this};
_.p(pU,_.u);_.J([_.q(),_.R("design:type",Object)],pU.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],pU);
_.Y(pU,"ytd-sponsorships-links-renderer",function(){if(FkK!==void 0)return FkK;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return FkK=y},{mode:1});var EBs;var i$=function(){return _.u.apply(this,arguments)||this};
_.p(i$,_.u);_.E=i$.prototype;_.E.onDataChanged=function(){if(this.data&&this.data.expandableItems){var y;(y=_.i6(this.hostElement).querySelector("tp-yt-paper-button"))==null||y.setAttribute("role","button")}else{var W;(W=_.i6(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.removeAttribute("role")}};
_.E.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.E.getExpansionIcon=function(y){return y?"COLLAPSE":"EXPAND"};
_.E.getTileClasses=function(y){return y?"tile expandable-tile":"tile"};
_.E.getButtonDisabled=function(y){return y?void 0:""};
i$.prototype.onDataChanged=i$.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],i$.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],i$.prototype,"expanded",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],i$.prototype,"onDataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],i$);
_.Y(i$,"ytd-sponsorships-list-tile-renderer",function(){if(EBs!==void 0)return EBs;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return EBs=y},{mode:1});var NTq;var I5J;var fU=function(){return _.u.apply(this,arguments)||this};
_.p(fU,_.u);fU.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fU.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],fU);
_.Y(fU,"ytd-sponsorships-promotion-renderer",function(){if(I5J!==void 0)return I5J;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return I5J=y},{mode:1});var gBm;var Te=function(){return _.u.apply(this,arguments)||this};
_.p(Te,_.u);Te.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Te.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Te);
_.Y(Te,"ytd-sponsorships-purchase-option-renderer",function(){if(gBm!==void 0)return gBm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return gBm=y},{mode:1});var PlR;var ClI;var O4s=function(){return _.u.apply(this,arguments)||this};
_.p(O4s,_.u);_.J([_.q(),_.R("design:type",Object)],O4s.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],O4s);
_.Y(O4s,"ytd-ypc-offer-promo-renderer",function(){if(ClI!==void 0)return ClI;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ClI=y},{mode:1});var mV=function(){return _.u.apply(this,arguments)||this};
_.p(mV,_.u);_.E=mV.prototype;
_.E.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"}}}}};
_.E.expansionCTA=function(y,W){return y&&(W?y.collapseCallToAction:y.expansionCallToAction)};
_.E.getExpansionIcon=function(y){return y?"COLLAPSE":"EXPAND"};
_.E.expansionCallToActionTap=function(){var y=this;this.expanded=!this.expanded;_.gy(this,function(){_.h1(y.hostElement,"yt-refit")})};
_.E.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var y,W=(y=this.data)==null?void 0:y.onVisible;W&&this.ytComponentBehavior.resolveCommand(W)};
_.E.computeDisplayTitle=function(y){return!(!y||this.titledisplaystatus!=="show")};
_.E.computeDisplaySeparator=function(){return!1};
_.E.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
mV.prototype.onDataChanged=mV.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mV.prototype,"data",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],mV.prototype,"expanded",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],mV.prototype,"purchaseButtonClicked",void 0);_.J([_.q({reflectToAttribute:!0,value:"show"}),_.R("design:type",String)],mV.prototype,"titledisplaystatus",void 0);_.J([_.q({computed:"computeDisplayTitle(data.title)"}),_.R("design:type",Boolean)],mV.prototype,"displayTitle",void 0);
_.J([_.q({computed:"computeDisplaySeparator(data)"}),_.R("design:type",Boolean)],mV.prototype,"displaySeparator",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],mV.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],mV);
_.Y(mV,"ytd-sponsorships-tier-renderer",function(){if(PlR!==void 0)return PlR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return PlR=y},{mode:2});var MP=function(){return _.u.apply(this,arguments)||this};
_.p(MP,_.u);
MP.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],MP.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],MP);
_.Y(MP,"ytd-sponsorships-management-renderer",function(){if(NTq!==void 0)return NTq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return NTq=y},{mode:1});var vBJ;var qP=function(){return _.u.apply(this,arguments)||this};
_.p(qP,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qP.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],qP);
_.Y(qP,"ytd-open-in-native-app-view-model",function(){if(vBJ!==void 0)return vBJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vBJ=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var dXi;var Lks;var zJR=_.CF(["top-"]),c7m=_.CF(["bottom-"]),eJ6=_.CF(["left-"]),hJq=_.CF(["right-"]),oBm={},KkA=function(y,W,V){y.removeAttribute("top-"+V);y.removeAttribute("bottom-"+V);y.removeAttribute("left-"+V);y.removeAttribute("right-"+V);W&&(W.top&&_.em([_.ij(zJR)],y,"top-"+V,W.top),W.bottom&&_.em([_.ij(c7m)],y,"bottom-"+V,W.bottom),W.left&&_.em([_.ij(eJ6)],y,"left-"+V,W.left),W.right&&_.em([_.ij(hJq)],y,"right-"+V,W.right))};
oBm.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(y){var W,V=_.i6((W=this.hostElement)!=null?W:this),w;W=this.cardItemBoxBehaviorMarginTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(w=this.hostElement)!=null?w:this;KkA(W,y,"margin")},
cardItemContainerPaddingChanged_:function(y){var W,V=_.i6((W=this.hostElement)!=null?W:this),w;W=this.cardItemBoxBehaviorPaddingTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(w=this.hostElement)!=null?w:this;KkA(W,y,"padding")}}];var Ui={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 p0R;var i4Q;var u$=function(){return _.u.apply(this,arguments)||this};
_.p(u$,_.u);u$.prototype.textColorChanged_=function(){this.hostElement.style.color=Ui[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
u$.prototype.textColorChanged_=u$.prototype.textColorChanged_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.J([_.m(oBm.YtCardItemBoxBehavior),_.R("design:type",Object)],u$.prototype,"ytCardItemBoxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],u$.prototype,"data",void 0);_.J([_.xA("data.textColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],u$.prototype,"textColorChanged_",null);
_.J([_.Zp({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],u$);
_.Y(u$,"yt-card-item-text-renderer",function(){if(i4Q===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;p0R===void 0&&(p0R=document.createElement("template"));var w=p0R;V.call(W,w.content.cloneNode(!0),y.content.firstChild);i4Q=y}y=i4Q;return y},{mode:2});var f52;var TTm;var ST=function(){return _.u.apply(this,arguments)||this};
_.p(ST,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ST.prototype,"data",void 0);_.J([_.Zp({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],ST);
_.Y(ST,"yt-card-item-badge-renderer",function(){if(TTm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;f52===void 0&&(f52=document.createElement("template"));var w=f52;V.call(W,w.content.cloneNode(!0),y.content.firstChild);TTm=y}y=TTm;return y},{mode:2});var mXR;var Mgi;var DX=function(){return _.u.apply(this,arguments)||this};
_.p(DX,_.u);DX.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],DX.prototype,"data",void 0);_.J([_.Zp({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],DX);
_.Y(DX,"yt-card-item-text-collection-renderer",function(){if(Mgi===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;mXR===void 0&&(mXR=document.createElement("template"));var w=mXR;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Mgi=y}y=Mgi;return y},{mode:2});var qOr;var UXz;var l$=function(){return _.u.apply(this,arguments)||this};
_.p(l$,_.u);l$.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]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],l$.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Number)],l$.prototype,"iconSize",void 0);_.J([_.Zp({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],l$);
_.Y(l$,"yt-card-item-text-with-button-renderer",function(){if(UXz===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;qOr===void 0&&(qOr=document.createElement("template"));var w=qOr;V.call(W,w.content.cloneNode(!0),y.content.firstChild);UXz=y}y=UXz;return y},{mode:2});var x4=function(){return _.u.apply(this,arguments)||this};
_.p(x4,_.u);x4.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],x4.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],x4);
_.Y(x4,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Lks!==void 0)return Lks;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Lks=y},{mode:1});_.ZQ("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var k4=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;return y};
_.p(k4,_.u);_.E=k4.prototype;_.E.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"}}}}};
_.E.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.E.updateSummary=function(){var y=this.commerceCartCheckoutButtonEntity,W;if(((W=this.data)==null?0:W.cartButton)&&y.checkoutSummaryText){var V,w=b0((V=this.data)==null?void 0:V.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",QS(y.checkoutSummaryText));if(y.checkoutDetailText){var t;V=b0((t=this.data)==null?void 0:t.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",QS(y.checkoutDetailText))}if(y.checkoutAdditionalMetadataText){var F;
t=b0((F=this.data)==null?void 0:F.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",QS(y.checkoutAdditionalMetadataText))}}else y.estimatedTotalPrice&&(F=b0((w=this.data)==null?void 0:w.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",QS(y.estimatedTotalPrice)))};
_.E.updateIsHidden=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)};
_.E.updateCheckoutButton=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isDisabled;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",W);var V;y=(V=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:V.innertubeCommand;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",y);var w;V=(w=this.commerceCartCheckoutButtonEntity)==null?void 0:w.checkoutButtonText;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:V})};
k4.prototype.entityChanged=k4.prototype.entityChanged;_.J([_.m(_.y$),_.R("design:type",Object)],k4.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],k4.prototype,"fullWidth",void 0);_.J([_.q(),_.R("design:type",Object)],k4.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],k4.prototype,"compact",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],k4.prototype,"hidden",void 0);
_.J([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q5t}),_.R("design:type",Object)],k4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.J([_.xA("commerceCartCheckoutButtonEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],k4.prototype,"entityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],k4);
_.Y(k4,"ytd-commerce-cart-checkout-button-renderer",function(){if(dXi!==void 0)return dXi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return dXi=y},{mode:2});var uOJ;_.SOJ={};
_.SOJ.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",_.Dp(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Dp(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(y){!this.tappableItemBehaviorTapEnabled||y.keyCode!==13&&y.keyCode!==32||y.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var y=this.data.onTap;y.ypcGetCartEndpoint?(_.i5(this.hostElement,[y]),this.tappableItemBehaviorTapEnabled=!1):y.ypcOffersEndpoint?_.i5(this.hostElement,[y]):_.fg(this.hostElement,[y],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(y){this.tappableItemBehaviorTapEnabled=!!y},
tappableItemBehaviorOnTapEnabledChanged_:function(){var y=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(y.setAttribute("tabIndex",0),y.setAttribute("role","button")):(y.removeAttribute("tabIndex"),y.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(y){y.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var DXJ;var l5Q;var si=function(){return _.u.apply(this,arguments)||this};
_.p(si,_.u);si.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.y7("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.y7("sharingToggleButtonAndDefaultButton")}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],si.prototype,"data",void 0);_.J([_.Zp({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],si);
_.Y(si,"yt-card-item-actions-renderer",function(){if(l5Q===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;DXJ===void 0&&(DXJ=document.createElement("template"));var w=DXJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);l5Q=y}y=l5Q;return y},{mode:2});var xXs;var kgR;var skE;var A72;var YO2;var BTq;var AV=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return y};
_.p(AV,_.u);AV.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
AV.prototype.handleDarkModeToggledAction_=function(y){this.isDarkTheme_=y};
AV.prototype.computeThemeImage_=function(y,W){if(!y||!y.imageLight)return!1;this.isCircular_=y.isCircular;y.imageWidth&&(this.hostElement.style.width=y.imageWidth+"px");y.imageHeight&&(this.hostElement.style.height=y.imageHeight+"px");y.borderWidth&&(this.image.style.borderWidth=y.borderWidth+"px",this.image.style.borderStyle="solid");y.borderColor&&(this.image.style.borderColor=_.wg(y.borderColor));return W&&y.imageDark?y.imageDark:y.imageLight};
AV.prototype.computeThemeIcon_=function(y){var W,V;if(!(y==null?0:(W=y.themedIcon)==null?0:(V=W.icon)==null?0:V.iconType))return!1;this.icon.style.color=Ui[y.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(y.imageWidth||18)+"px";this.icon.style.height=(y.imageHeight||18)+"px";return _.D8(y.themedIcon.icon.iconType)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(oBm.YtCardItemBoxBehavior),_.R("design:type",Object)],AV.prototype,"ytCardItemBoxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],AV.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AV.prototype,"data",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],AV.prototype,"fit",void 0);_.J([_.q(),_.R("design:type",Boolean)],AV.prototype,"isDarkTheme_",void 0);_.J([_.q({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.R("design:type",Object)],AV.prototype,"themeImage_",void 0);_.J([_.q({computed:"computeThemeIcon_(data)"}),_.R("design:type",Object)],AV.prototype,"themeIcon_",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],AV.prototype,"isCircular_",void 0);
_.J([_.s$("#image"),_.R("design:type",Object)],AV.prototype,"image",void 0);_.J([_.s$("#icon"),_.R("design:type",Object)],AV.prototype,"icon",void 0);_.J([_.Zp({is:"yt-themed-image-renderer",disableElementRegistration:!0})],AV);
_.Y(AV,"yt-themed-image-renderer",function(){if(BTq===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;YO2===void 0&&(YO2=document.createElement("template"));var w=YO2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);BTq=y}y=BTq;return y},{mode:2});var Y4=function(){return _.u.apply(this,arguments)||this};
_.p(Y4,_.u);Y4.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"}}}}};
Y4.prototype.computeImagePlacement_=function(y){return y||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Y4.prototype,"data",void 0);_.J([_.q({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.R("design:type",String)],Y4.prototype,"imagePlacement",void 0);
_.J([_.Zp({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Y4);
_.Y(Y4,"yt-card-item-text-with-image-renderer",function(){if(A72===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;skE===void 0&&(skE=document.createElement("template"));var w=skE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);A72=y}y=A72;return y},{mode:2});var BO=function(){return _.u.apply(this,arguments)||this};
_.p(BO,_.u);BO.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"}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BO.prototype,"data",void 0);_.J([_.Zp({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],BO);
_.Y(BO,"yt-card-item-error-renderer",function(){if(kgR===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;xXs===void 0&&(xXs=document.createElement("template"));var w=xXs;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kgR=y}y=kgR;return y},{mode:2});var J7r;var RJs;_.ZQ("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var JV=function(){return _.u.apply(this,arguments)||this};
_.p(JV,_.u);_.E=JV.prototype;
_.E.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"}}}}};
_.E.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.E.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;y=Ui[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.i6(this.hostElement).querySelector("#main-content").style.backgroundColor=y};
_.E.headerPromoBackgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.headerPromoBackgroundColor;y=Ui[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.i6(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=y};
_.E.errorRendererVisibilityChanged_=function(){var y=this.isExpanded_,W;this.isErrorRendererVisible_=!((W=this.data)==null||!W.errorRenderer)&&!y};
_.E.onYtToggleButton_=function(y,W){this.isExpanded_=W.toggled};
JV.prototype.onYtToggleButton_=JV.prototype.onYtToggleButton_;JV.prototype.errorRendererVisibilityChanged_=JV.prototype.errorRendererVisibilityChanged_;JV.prototype.headerPromoBackgroundColorChanged_=JV.prototype.headerPromoBackgroundColorChanged_;JV.prototype.backgroundColorChanged_=JV.prototype.backgroundColorChanged_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(oBm.YtCardItemBoxBehavior),_.R("design:type",Object)],JV.prototype,"ytCardItemBoxBehavior",void 0);_.J([_.m(_.SOJ.YtTappableItemBehavior),_.R("design:type",Object)],JV.prototype,"ytTappableItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JV.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],JV.prototype,"isExpanded_",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],JV.prototype,"isErrorRendererVisible_",void 0);_.J([_.xA("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JV.prototype,"backgroundColorChanged_",null);_.J([_.xA("data.headerPromoBackgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JV.prototype,"headerPromoBackgroundColorChanged_",null);
_.J([_.xA("data.errorRenderer","isExpanded_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JV.prototype,"errorRendererVisibilityChanged_",null);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],JV.prototype,"onYtToggleButton_",null);_.J([_.Zp({is:"yt-card-item-renderer",disableElementRegistration:!0})],JV);
_.Y(JV,"yt-card-item-renderer",function(){if(RJs===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;J7r===void 0&&(J7r=document.createElement("template"));var w=J7r;V.call(W,w.content.cloneNode(!0),y.content.firstChild);RJs=y}y=RJs;return y},{mode:2});_.ZQ("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var RN=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;return y};
_.p(RN,_.u);_.E=RN.prototype;_.E.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.E.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.E.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var y,W=(y=this.commerceCartHeaderEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)}};
_.E.updateTitle=function(){var y=this.commerceCartHeaderEntity.isDisabled,W,V,w=(V=_.h((W=this.data)==null?void 0:W.item,mCr))==null?void 0:V.headingRenderer;w&&(W=b0(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".0.cardItemTextRenderer.textColor",y?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.E.updateSummaryText=function(){var y=this.commerceCartHeaderEntity;if(this.compact){var W,V,w=(V=_.h((W=this.data)==null?void 0:W.item,mCr))==null?void 0:V.headingRenderer;w&&(W=b0(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".1.cardItemTextRenderer.text",y.shortHeaderSummaryText?QS(y.shortHeaderSummaryText):y.headerSummaryText?QS(y.headerSummaryText):""))}else{var t;if(W=(t=_.h((w=this.data)==null?void 0:w.item,mCr))==null?void 0:t.additionalInfoRenderer)W=b0(W,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".text",y.headerSummaryText?QS(y.headerSummaryText):"")}};
_.E.updateCheckoutButton=function(){var y=this.commerceCartHeaderEntity,W,V,w=(V=_.h((W=this.data)==null?void 0:W.item,mCr))==null?void 0:V.additionalInfoRenderer;W=b0(w,"buttonRenderer");var t;V=(t=this.commerceCartHeaderEntity)==null?void 0:t.isButtonDisabled;var F;t=(F=this.commerceCartHeaderEntity)==null?void 0:F.isButtonHidden;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.isDisabled",V);t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
t);var I;y=(I=y.checkoutButtonCommand)==null?void 0:I.innertubeCommand;y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.command",y)};
RN.prototype.entityChanged=RN.prototype.entityChanged;_.J([_.m(_.y$),_.R("design:type",Object)],RN.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RN.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],RN.prototype,"compact",void 0);_.J([_.q({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(y,W){return _.UB(y.entities,"commerceCartHeaderEntity",W)}}),
_.R("design:type",Object)],RN.prototype,"commerceCartHeaderEntity",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],RN.prototype,"hidden",void 0);_.J([_.xA("commerceCartHeaderEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RN.prototype,"entityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],RN);
_.Y(RN,"ytd-commerce-cart-header-renderer",function(){if(uOJ!==void 0)return uOJ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return uOJ=y},{mode:1});var jk6;var $XI=_.B8(function(y,W){var V;return(V=y.onChangeCallback)==null?void 0:V.call(y,W)},1E3),nBs=_.eY(function(y){var W=y.data;
var V=y.iconMinus;y=y.iconPlus;var w=function(){return!!W().disabled},t=_.N(_.M1(0,void 0,"r56zNb")),F=t.next().value,I=t.next().value;
t={};t=_.kS("yt-spec-quantity-incrementer-shape__icon",(t["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return w()||F()===(W().onRemoveCommand?0:1)},t));
var P={};P=_.kS("yt-spec-quantity-incrementer-shape__icon",(P["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return F()>=W().maxValue||w()},P));
var C={};C=_.kS("yt-spec-quantity-incrementer-shape__text",(C["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return F()>W().maxValue},C["yt-spec-quantity-incrementer-shape__text--text-disabled"]=w,C));
var d=_.YS(function(){if(F()===1){var z,c;(c=(z=W()).onRemoveCommand)==null||c.call(z)}z=F()>W().maxValue?W().maxValue:F()-1;I(z);$XI(W(),z);return!1}),L=_.YS(function(){if(F()===W().maxValue)return!1;
var z=F()+1;I(z);$XI(W(),z);return!1});
_.HV(function(){I(W().value)});
return _.O("quantity-incrementer-shape",null,_.O("div",{class:"yt-spec-quantity-incrementer-shape"},_.O("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return F()===(W().onRemoveCommand?0:1)||w()},
"aria-label":function(){return F()!==1?W().minusLabel:W().minimumReachedLabel},
"on:click":d},_.O(_.Ha,{model:{circular:!0}}),_.O("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.O("div",{class:t},V()))),_.O("div",{class:C},F),_.O("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return F()>=W().maxValue||w()},
"aria-label":function(){return F()!==W().maxValue?W().plusLabel:W().maximumReachedLabel},
"on:click":L},_.O(_.Ha,{model:{circular:!0}}),_.O("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.O("div",{class:P},y())))))},"ce");_.iF(_.eY(function(y){function W(){V().onRemoveCommand&&_.Id(V().onRemoveCommand)}
var V=y.data;var w=_.Yn(Le4,function(){return V().quantityIncrementerEntityKey});
return _.O("yt-quantity-incrementer-view-model",null,_.O(nBs,{data:function(){var t=V(),F;var I=w()?!((F=w())==null||!F.disabled):!1;var P;F=w()?(P=w())==null?void 0:P.quantity:V().quantity;return jQG(t,I,W,F)},
iconMinus:function(){return _.O(_.jl,{icon:"BAR_HORIZONTAL",className:_.sU("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.O(_.jl,{icon:"ADD",className:_.sU("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.vB}});var jT=function(){var y=_.u.apply(this,arguments)||this;y.compact=!1;y.hasQuantityIncrementer=!1;return y};
_.p(jT,_.u);jT.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"}}}};
jT.prototype.computeHasQuantityIncrementer=function(){var y;return!!_.h((y=this.data)==null?void 0:y.picker,uVm)};
jT.prototype.onLabelClick=function(){var y;(y=this.dropdownEl)==null||y.open()};
_.J([_.s$("ytd-dropdown-renderer"),_.R("design:type",Object)],jT.prototype,"dropdownEl",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jT.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],jT.prototype,"quantityColor",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jT.prototype,"compact",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.R("design:type",Object)],jT.prototype,"hasQuantityIncrementer",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],jT);
_.Y(jT,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jk6!==void 0)return jk6;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jk6=y},{mode:1});var H4q;var X0q;var $4=function(){return _.u.apply(this,arguments)||this};
_.p($4,_.u);$4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$4.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
$4.prototype.updateTitle=function(){var y=this.disabledCartItemEntity;y.disableActionName&&this.set("data.title",QS(y.disableActionName))};
$4.prototype.updateButton=function(){var y,W=(y=this.disabledCartItemEntity.undoCommand)==null?void 0:y.innertubeCommand;W!==void 0&&(this.set("data.actionButton.buttonRenderer.command",W),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
$4.prototype.entityChanged=$4.prototype.entityChanged;_.J([_.m(_.y$),_.R("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(y,W){return _.UB(y.entities,"disabledCartItemEntity",W)}}),
_.R("design:type",Object)],$4.prototype,"disabledCartItemEntity",void 0);_.J([_.q(),_.R("design:type",Object)],$4.prototype,"data",void 0);_.J([_.xA("disabledCartItemEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$4.prototype,"entityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],$4);
_.Y($4,"ytd-disabled-cart-item-renderer",function(){if(X0q!==void 0)return X0q;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return X0q=y},{mode:1});_.ZQ("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var nU=function(){var y=_.u.apply(this,arguments)||this;y.compact=!1;y.hidden=!1;y.errorHidden=!1;y.noOnTap=!1;return y};
_.p(nU,_.u);_.E=nU.prototype;
_.E.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"}}}};
_.E.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.E.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var y=this.firstButtonElement;y.alignByText=!0;y.iconAlignByText=!0}};
_.E.computeNoOnTap=function(y){return!y};
_.E.updateQuantityColor=function(){if(this.pickerElement){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.quantityColor;this.pickerElement.quantityColor=W}};
_.E.updateTotalPriceColor=function(){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.totalPriceColor;if(W){var V;y=_.h((V=this.data)==null?void 0:V.quantityPicker,qmK);if(V=_.h(y==null?void 0:y.price,MtI))V.textColor=W}};
_.E.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)}};
_.E.updateHideErrorMessage=function(){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.hideErrorMessage;W!==void 0&&(this.errorHidden=W)};
_.E.updateQuantity=function(){var y=this,W,V=(W=this.commerceCartItemEntity)==null?void 0:W.quantity,w;W=(w=this.commerceCartItemEntity)==null?void 0:w.totalPrice;if(V){this.updateTotalPriceColor();this.updateQuantityColor();var t;w=_.h((t=this.data)==null?void 0:t.quantityPicker,qmK);if(t=_.h(w==null?void 0:w.price,MtI))t.text=W?{simpleText:W.content}:void 0;if(W=_.h(w==null?void 0:w.picker,uVm))W.quantity=V;var F;if(t=(F=_.h(w==null?void 0:w.picker,SVI))==null?void 0:F.entries){F=!1;W=void 0;t=
_.N(t);for(w=t.next();!w.done;w=t.next())w=w.value,w.dropdownItemRenderer&&(W||(W=w.dropdownItemRenderer),w.dropdownItemRenderer.isSelected=!1,V===w.dropdownItemRenderer.int32Value&&(F=!0,w.dropdownItemRenderer.isSelected=!0));!F&&W&&(W.isSelected=!0)}_.gy(this,function(){var I;y.set("data.quantityPicker",_.Gc.unsafeClone((I=y.data)==null?void 0:I.quantityPicker))})}};
nU.prototype.onYtRendererstamperFinished=nU.prototype.onYtRendererstamperFinished;nU.prototype.entityChanged=nU.prototype.entityChanged;_.J([_.q(),_.R("design:type",Object)],nU.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nU.prototype,"compact",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],nU.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],nU.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(y,W){return _.UB(y.entities,"commerceCartItemEntity",W)}}),
_.R("design:type",Object)],nU.prototype,"commerceCartItemEntity",void 0);_.J([_.q(),_.R("design:type",Object)],nU.prototype,"quantityPicker",void 0);_.J([_.q(),_.R("design:type",Object)],nU.prototype,"compactQuantityPicker",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nU.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nU.prototype,"errorHidden",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.R("design:type",Object)],nU.prototype,"noOnTap",void 0);_.J([_.s$("ytd-commerce-cart-item-quantity-picker-renderer"),_.R("design:type",Object)],nU.prototype,"pickerElement",void 0);_.J([_.s$("yt-button-renderer"),_.R("design:type",Element)],nU.prototype,"firstButtonElement",void 0);
_.J([_.xA("commerceCartItemEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nU.prototype,"entityChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nU.prototype,"onYtRendererstamperFinished",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],nU);
_.Y(nU,"ytd-commerce-cart-item-renderer",function(){if(H4q!==void 0)return H4q;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return H4q=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var a5m;var Ggi;var HO=function(){return _.u.apply(this,arguments)||this};
_.p(HO,_.u);HO.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}}}}}};
HO.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
HO.prototype.updateCheckoutLineItems=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.checkoutLineItems;W&&(y=W.map(function(V){a:{var w=V.price,t=V.description;switch(V.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:QS(t),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:QS(w),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:V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:QS(t),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:QS(w),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 V}),this.set("data.summaryLineItems",y))};
HO.prototype.updateIsHidden=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hostElement.hidden=W)};
HO.prototype.entityChanged=HO.prototype.entityChanged;_.J([_.m(_.y$),_.R("design:type",Object)],HO.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],HO.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],HO.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q5t}),_.R("design:type",Object)],HO.prototype,"commerceCartCheckoutButtonEntity",void 0);_.J([_.xA("commerceCartCheckoutButtonEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HO.prototype,"entityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],HO);
_.Y(HO,"ytd-commerce-cart-summary-renderer",function(){if(Ggi!==void 0)return Ggi;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Ggi=y},{mode:1});var r76={};r76.InjectBehavior=[RG4.InjectBehavior];var b4q;var QkR;var XF=function(){return _.u.apply(this,arguments)||this};
_.p(XF,_.u);
XF.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:_.y7("menuRenderer")}}};
XF.prototype.onMenuTap=function(y){y.stopPropagation()};
_.CM.Object.defineProperties(XF.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 y,W;return!(((y=this.data)==null||!y.sectionHeading)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var y,W;return!(((y=this.data)==null||!y.image)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var y,W;return!(((y=this.data)==null||!y.menu)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.SOJ.YtTappableItemBehavior),_.R("design:type",Object)],XF.prototype,"ytTappableItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XF.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.accessibilityData"),_.R("design:type",String),_.R("design:paramtypes",[])],XF.prototype,"ariaLabel",null);_.J([_.M("data.sectionHeading","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XF.prototype,"sectionHeadingVisible",null);_.J([_.M("data.image","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XF.prototype,"imageVisible",null);
_.J([_.M("data.menu","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XF.prototype,"menuVisible",null);_.J([_.Zp({is:"yt-activity-item-renderer",disableElementRegistration:!0})],XF);
_.Y(XF,"yt-activity-item-renderer",function(){if(QkR===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;b4q===void 0&&(b4q=document.createElement("template"));var w=b4q;V.call(W,w.content.cloneNode(!0),y.content.firstChild);QkR=y}y=QkR;return y},{mode:2});var Z42;var yiq;var WQI;var VOm;var aN=function(){return _.u.apply(this,arguments)||this};
_.p(aN,_.u);
aN.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"}}}}};
aN.prototype.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;this.hostElement.style.backgroundColor=Ui[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
aN.prototype.backgroundColorChanged_=aN.prototype.backgroundColorChanged_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aN.prototype,"data",void 0);
_.J([_.xA("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aN.prototype,"backgroundColorChanged_",null);_.J([_.Zp({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],aN);
_.Y(aN,"yt-offer-item-upsell-renderer",function(){if(VOm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;WQI===void 0&&(WQI=document.createElement("template"));var w=WQI;V.call(W,w.content.cloneNode(!0),y.content.firstChild);VOm=y}y=VOm;return y},{mode:2});_.ZQ("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Ge=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};y.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return y};
_.p(Ge,_.u);_.E=Ge.prototype;
_.E.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:_.y7("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.E.computeContainerStyle_=function(y){return y};
_.E.computeContainerIsHidden_=function(y){return y&&!!y.isHidden};
_.E.computeShowSpinner_=function(y,W){return y&&W==="in-progress"};
_.E.computeShowMoreContentsButton_=function(y,W,V,w,t){return!(!(w&&w.length||t&&t.length&&V)||!y||W)};
_.E.onToggleButton_=function(y){var W=this;y.stopPropagation();this.isExpanded_=y.detail&&y.detail.toggled;var V,w;this.isExpanded_&&!this.data.continuationSection.length&&((V=this.data)==null?0:(w=V.continuation)==null?0:w.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.h1(this.hostElement,"yt-load-next-continuation",function(t){return W.getContinuationUrl_(W.data.continuation.onClickContinuationData,t)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.i5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.E.onShowMoreContentsButtonClicked_=function(y){var W=this;y.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.h1(this.hostElement,"yt-load-next-continuation",function(V){return W.getContinuationUrl_(W.data.continuations[0].nextContinuationData,V)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.i5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.E.getContinuationUrl_=function(y,W){var V=y.continuation;y=y.clickTrackingParams;var w=_.Xn();y&&w&&_.PE(w,_.nD(y));return _.O1(W,{continuation:V})};
_.E.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var y=_.i6(this.hostElement).querySelector("#continuation-section");y&&(y=y.querySelectorAll("ytmusic-item-section-renderer"))&&y.forEach(function(W){return W.classList.add("memberships-and-purchases")})};
_.E.dataChanged_=function(){var y;this.isExpanded_=!((y=this.data)==null||!y.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.E.updateCardOnClickCommand_=function(y){y=_.h(y,ejE);var W,V;this.data&&((W=this.data)==null?0:W.targetId)&&y&&y.targetId===((V=this.data)==null?void 0:V.targetId)&&y.onClickCommand&&(this.data.onClickCommand=y.onClickCommand,this.isOnClickCommand_=!0)};
_.E.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;this.hostElement.style.backgroundColor=Ui[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ge.prototype.backgroundColorChanged_=Ge.prototype.backgroundColorChanged_;Ge.prototype.dataChanged_=Ge.prototype.dataChanged_;Ge.prototype.nextContinuationDataUpdated_=Ge.prototype.nextContinuationDataUpdated_;Ge.prototype.onToggleButton_=Ge.prototype.onToggleButton_;_.J([_.m(_.gk),_.R("design:type",Object)],Ge.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ge.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],Ge.prototype,"ytNextContinuationBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.J([_.m(r76.InjectBehavior),_.R("design:type",Object)],Ge.prototype,"injectBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ge.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Ge.prototype,"compact",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Ge.prototype,"isExpanded_",void 0);_.J([_.q({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.R("design:type",String)],Ge.prototype,"containerStyle_",void 0);_.J([_.q({value:"not-started"}),_.R("design:type",String)],Ge.prototype,"continuationStatus_",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.R("design:type",Boolean)],Ge.prototype,"showSpinner_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ge.prototype,"isOnClickCommand_",void 0);_.J([_.q({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.R("design:type",Boolean)],Ge.prototype,"showMoreContentsButton_",void 0);
_.J([_.q({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(y,W){return!W||y.entities?null:_.UB(y.entities,"cardItemContainerEntity",W)}}),
_.R("design:type",Object)],Ge.prototype,"cardItemContainerEntity_",void 0);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ge.prototype,"onToggleButton_",null);_.J([_.l6("yt-next-continuation-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ge.prototype,"nextContinuationDataUpdated_",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ge.prototype,"dataChanged_",null);_.J([_.xA("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ge.prototype,"backgroundColorChanged_",null);_.J([_.Zp({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Ge);
_.Y(Ge,"yt-card-item-container-renderer",function(){if(yiq===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Z42===void 0&&(Z42=document.createElement("template"));var w=Z42;V.call(W,w.content.cloneNode(!0),y.content.firstChild);yiq=y}y=yiq;return y},{mode:2});var rI=function(){return _.u.apply(this,arguments)||this};
_.p(rI,_.u);rI.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"}}}};
rI.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
rI.prototype.computeLoadingHidden=function(){var y;return!((y=this.commerceCartPageStateEntity)==null?0:y.cartActionInProgress)};
rI.prototype.updateNotification=function(){var y,W=(y=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:y.summaryText;W&&this.set("data.cartNotification",QS(W))};
rI.prototype.notificationEntityChanged=rI.prototype.notificationEntityChanged;_.J([_.m(_.y$),_.R("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],rI.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(y,W){return _.UB(y.entities,"commerceCartExpandableNotificationEntity",W)}}),
_.R("design:type",Object)],rI.prototype,"commerceCartExpandableNotificationEntity",void 0);_.J([_.q({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(y,W){return _.UB(y.entities,"commerceCartPageStateEntity",W)}}),
_.R("design:type",Object)],rI.prototype,"commerceCartPageStateEntity",void 0);_.J([_.s$("#spinner"),_.R("design:type",HTMLElement)],rI.prototype,"spinner",void 0);_.J([_.xA("commerceCartExpandableNotificationEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rI.prototype,"notificationEntityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],rI);
_.Y(rI,"ytd-commerce-cart-renderer",function(){if(a5m!==void 0)return a5m;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return a5m=y},{mode:1});var wji;var b$=function(){var y=_.u.apply(this,arguments)||this;y.bigImage=!1;return y};
_.p(b$,_.u);_.CM.Object.defineProperties(b$.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.placeholderImageUrl}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],b$.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],b$.prototype,"bigImage",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],b$.prototype,"placeholderImageUrl",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],b$);
_.Y(b$,"ytd-empty-product-shelf-renderer",function(){if(wji!==void 0)return wji;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return wji=y},{mode:1});var tOz;var QR=function(){var y=_.u.apply(this,arguments)||this;y.itemStyle="link-item";y.watchMetadataRefresh=!1;y.skinnyMode=!1;y.metaPanel=!1;y.inStructuredDescription=!1;y.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};y.updateOnResizeDebouncer=null;return y};
_.p(QR,_.u);_.E=QR.prototype;_.E.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.E.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"}}}}};
_.E.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.E.attachVEs=function(y){y.trackingParams&&_.BC().graftServerVe(y.trackingParams)};
_.E.handleUpdateMerchShelfAction=function(y){var W=this,V=_.h(y.updateMerchandiseShelfAction.merchandiseShelf,_.Q4m);V&&(V.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){W.attachVEs(V);W.data=V},Number(V.renderDelayMs))):(this.attachVEs(V),this.data=V))};
_.E.updateOnResize=function(){if(this.JSC$16692_scrollContainer!==void 0&&this.JSC$16692_scrollContainer.clientWidth!==0&&this.items!==void 0){var y=this.JSC$16692_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-y));this.ytdHorizontalListBehavior.reposition_();var W;switch((W=this.data)==null?void 0:W.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var V,
w;((V=this.data)==null?void 0:(w=V.items)==null?void 0:w.length)===1?this.itemStyle="cta-item":this.itemStyle=y>=740?"large-item":"small-item"}}};
_.E.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Tn(this.updateOnResizeDebouncer,_.vQ.after(100),this.updateOnResize)};
QR.prototype.debouncedUpdateOnResize=QR.prototype.debouncedUpdateOnResize;QR.prototype.dataChanged=QR.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],QR.prototype,"ytdHorizontalListBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],QR.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QR.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],QR.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QR.prototype,"itemStyle",void 0);_.J([_.q({value:6}),_.R("design:type",Number)],QR.prototype,"initialCount",void 0);
_.J([_.q({value:"data.items"}),_.R("design:type",String)],QR.prototype,"itemsPath",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QR.prototype,"watchMetadataRefresh",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QR.prototype,"skinnyMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QR.prototype,"metaPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QR.prototype,"inStructuredDescription",void 0);
_.J([_.s$("#items"),_.R("design:type",HTMLDivElement)],QR.prototype,"items",void 0);_.J([_.s$("#scroll-container"),_.R("design:type",HTMLDivElement)],QR.prototype,"JSC$16692_scrollContainer",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QR.prototype,"dataChanged",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QR.prototype,"debouncedUpdateOnResize",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],QR);
_.Y(QR,"ytd-merch-shelf-renderer",function(){if(tOz!==void 0)return tOz;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tOz=y},{mode:2});var FQR;var ZX=function(){var y=_.u.apply(this,arguments)||this;y.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 y};
_.p(ZX,_.u);_.E=ZX.prototype;
_.E.addBackstagePostAction=function(y){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(y=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",y))&&(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:y}):this.set("data.contents",[{backstagePostThreadRenderer:y}]))};
_.E.addBackstageCommentAction=function(y){var W=this.get("addBackstageCommentAction.parentId",y);y=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",y);if(W&&y){W=this.postIdToIndices(W);for(var V=0;V<W.length;V++){var w=W[V];if(w<0)break;w="data.contents."+w+".backstagePostThreadRenderer.comments";this.get(w)&&(this.get(w+".backstageCommentsRenderer.contents")&&this.push(w+".backstageCommentsRenderer.contents",{commentThreadRenderer:y}),this.get(w+".backstageCommentsRenderer.teaserContents")?
this.push(w+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:y}):this.set(w+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:y}]))}}};
_.E.addBackstageReplyAction=function(y){var W=this.get("addBackstageReplyAction.parentId",y);y=this.get("addBackstageReplyAction.renderer.commentRenderer",y);W&&y&&this.setCreatorReply(W,y)};
_.E.banAuthorAction=function(y){var W=this.get("banAuthorAction.commentId",y);W&&(y=this.get("banAuthorAction.parentCommentId",y)||this.getParentPostId(W),this.removeFromStream(W,y))};
_.E.hideReportedCommentAction=function(y){var W=this.get("hideReportedCommentAction.commentId",y);W&&((y=this.get("hideReportedCommentAction.parentCommentId",y))||(y=this.getParentPostId(W)),this.removeFromStream(W,y))};
_.E.replaceBackstageCommentAction=function(y){var W=this.get("replaceBackstageCommentAction.commentId",y),V=this.get("replaceBackstageCommentAction.parentId",y);y=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",y);if(W&&V&&y){V=this.postIdToIndices(V);for(var w=0;w<V.length;w++){var t=V[w];if(t<0)break;var F=this.commentIdToIndex(W,t,!1);if(F>=0){var I=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+F+".commentThreadRenderer.replies.commentRepliesRenderer");
I&&(y.replies={commentRepliesRenderer:I});this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",F,1,{commentThreadRenderer:y})}F=this.commentIdToIndex(W,t,!0);if(F>=0){if(I=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(F+".commentThreadRenderer.replies.commentRepliesRenderer")))y.replies={commentRepliesRenderer:I};this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
F,1,{commentThreadRenderer:y})}}}};
_.E.replaceBackstagePostAction=function(y){var W=this.get("replaceBackstagePostAction.itemId",y);if(W){W=this.postIdToIndices(W);for(var V=0;V<W.length;V++){var w=W[V];if(w<0)break;var t=this.getPostRendererType(w),F=this.get("replaceBackstagePostAction.renderer."+t,y);if(!F&&t!=="sharedPostRenderer")break;var I=!1;F||(I=!0,F=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",y));if(!F)break;var P={};I?(_.Z8(P,X8J,F),this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
P)):(_.Z8(P,new _.zf(t),F),this.set("data.contents."+w+".backstagePostThreadRenderer.post",P))}}};
_.E.replaceBackstageReplyAction=function(y){var W=this.get("replaceBackstageReplyAction.replyId",y),V=this.get("replaceBackstageReplyAction.parentId",y);y=this.get("replaceBackstageReplyAction.renderer.commentRenderer",y);W&&y&&V&&this.setCreatorReply(V,y)};
_.E.removeCommentAction=function(y){var W=this.get("removeCommentAction.commentId",y);if(W){var V=this.get("removeCommentAction.parentCommentId",y);V&&this.get("removeCommentAction.isCreatorReply",y)?this.setCreatorReply(V,void 0):(V||(V=this.getParentPostId(W)),this.removeFromStream(W,V))}};
_.E.setCreatorReply=function(y,W){var V=this.getParentPostId(y);if(V){V=this.postIdToIndices(V);for(var w=0;w<V.length;w++){var t=V[w];if(t<0)break;var F=this.commentIdToIndex(y,t,!1);if(F>=0){var I="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+F;F=I+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";I+=".commentThreadRenderer.replies";W==void 0?(this.set(I,{}),this.set(F,!1)):(this.set(I,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),
this.set(I+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(F,!0))}F=this.commentIdToIndex(y,t,!0);F>=0&&(F="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+F,t=F+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",F+=".commentThreadRenderer.replies",W==void 0?(this.set(F,{}),this.set(t,!1)):(this.set(F,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),this.set(t,!0)))}}};
_.E.removeFromStream=function(y,W){if(W){W=this.postIdToIndices(W);for(var V=0;V<W.length;V++){var w=W[V];if(w<0)break;var t=this.commentIdToIndex(y,w,!1);t>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",t,1);t=this.commentIdToIndex(y,w,!0);t>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",t,1);w="data.contents."+w+".backstagePostThreadRenderer.post.backstagePostRenderer";
t=w+".backstageAttachment.pollRenderer.votedCommentId";this.get(t)===y&&(this.set(t,null),this.set(w+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(W=this.postIdToIndices(y).reverse(),V=0;V<W.length;V++){w=W[V];if(w<0)break;t=this.getPostRendererType(w);var F=this.get("backstagePostThreadRenderer.post."+t,this.data.contents[w]);F.postId===y?this.splice("data.contents",w,1):t==="sharedPostRenderer"&&this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);F.scheduledPublishTimeSec&&_.ow(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.E.postIdToIndices=function(y){for(var W=[],V=0;V<this.data.contents.length;V++){var w=this.getPostRendererType(V);this.get("backstagePostThreadRenderer.post."+w+".postId",this.data.contents[V])===y&&W.push(V);if(w==="sharedPostRenderer"){var t=this.get("backstagePostThreadRenderer.post."+w+".originalPost.backstagePostRenderer.postId",this.data.contents[V]);w=this.get("backstagePostThreadRenderer.post."+w+".originalPost.postRenderer.postId",this.data.contents[V]);t!==y&&w!==y||W.push(V)}}return W};
_.E.commentIdToIndex=function(y,W,V){if(W<0)return-1;var w,t,F,I,P=_.h((w=this.data)==null?void 0:(t=w.contents)==null?void 0:(F=t[W])==null?void 0:(I=F.backstagePostThreadRenderer)==null?void 0:I.comments,nWJ);return(W=V?P==null?void 0:P.teaserContents:P==null?void 0:P.contents)&&W.length?W.findIndex(function(C){return _.h(C,mIR).comment.commentRenderer.commentId===y}):-1};
_.E.getParentPostId=function(y){y=y.split(".");if(y[1])return y[0]};
_.E.getPostRendererType=function(y){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[y])?"sharedPostRenderer":"backstagePostRenderer"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ZX.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-backstage-items"})],ZX);
_.Y(ZX,"ytd-backstage-items",function(){if(FQR!==void 0)return FQR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return FQR=
y},{mode:1});var Ejz;var N2f={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},yz=function(){var y=_.u.apply(this,arguments)||this;y.disablePrescanVisibility=!0;y.canScheduleJobs=!0;y.engagementPanel=!1;y.hidePanelButton=!1;y.isWatchGrid=!1;y.hasShownSubscribersOnlyDisclaimer=!1;y.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return y};
_.p(yz,_.u);_.E=yz.prototype;_.E.created=function(){this.initCommentsCsi_()};
_.E.contentsChanged_=function(){var y;(y=this.data)!=null&&y.contents&&this.tickForCommentsTimer_("cml")};
_.E.headerChanged_=function(){var y;(y=this.data)!=null&&y.header&&this.tickForCommentsTimer_("cmhl")};
_.E.initCommentsCsi_=function(){_.X$("wn_comments");var y=_.Xn();y&&_.HN({clientScreenNonce:y},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.E.createCommentAction_=function(y){y=_.Gc.unsafeClone(y);var W,V;if(y=(W=_.h(y,cPR))==null?void 0:(V=W.contents)==null?void 0:V.commentThreadRenderer){var w,t,F,I,P,C;!this.isBackstage&&((w=this.data)==null?0:(t=w.header)==null?0:(F=t.commentsHeaderRenderer)==null?0:(I=F.createRenderer)==null?0:(P=I.commentSimpleboxRenderer)==null?0:(C=P.zeroStep)==null?0:C.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var d,
L,z;this.isBackstage&&_.h((d=this.data)==null?void 0:(L=d.header)==null?void 0:(z=L.commentsHeaderRenderer)==null?void 0:z.zeroStateMessage,axK)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(y)}};
_.E.doReplyInsert_=function(y,W,V,w){w?this.splice(y,w,0,W):this.push(y,W)};
_.E.getRepliesPath_=function(y){return"data.contents."+y+".commentThreadRenderer.replies"};
_.E.getRepliesContentsPath_=function(y,W){y=this.getRepliesPath_(y);return W?y+".commentRepliesRenderer.teaserContents":y+".commentRepliesRenderer.contents"};
_.E.showSubscribersOnlyDisclaimer_=function(y){(y=y.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(y))&&(_.ow(this.hostElement,"yt-open-popup-action",[y,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.E.createCommentReplyAction_=function(y){y=_.Gc.unsafeClone(y);var W=_.h(y,eSK);if(y=W==null?void 0:W.contents){var V=this.commentIdToIndex_(W==null?void 0:W.parentCommentId);if(!(V<0)){var w=this.getRepliesPath_(V);if(this.get(w)){W=W.replyToCommentId;w=this.getRepliesContentsPath_(V,!1);if(this.get(w)){var t=this.get(w).length,F=w+"."+(t-1)+".continuationItemRenderer";this.get(F+".button")?(F=this.replyIdToIndex_(W,V,!1),this.doReplyInsert_(w,y,F,t-1)):this.get(F)||(t=this.replyIdToIndex_(W,V,
!1),this.doReplyInsert_(w,y,t,null))}w=this.getRepliesContentsPath_(V,!0);this.get(w)?(V=this.replyIdToIndex_(W,V,!0),(!W||V>=0)&&this.doReplyInsert_(w,y,V,null)):this.set(w,[y])}else this.set(w,{commentRepliesRenderer:{teaserContents:[y]}})}}};
_.E.hideReportedCommentAction_=function(y){var W=_.h(y,YHr);if(y=W==null?void 0:W.commentId)W=this.get("parentCommentId",W),y=y.replace("#","."),W||(W=this.getParentCommentId_(y)),this.remove_(y,W)};
_.E.getParentCommentId_=function(y){y=y.split(".");if(y[1])return y[0]};
_.E.removeCommentAction_=function(y){var W=_.h(y,iwf);if(y=W==null?void 0:W.commentId)W=W==null?void 0:W.parentCommentId,y=y.replace("#","."),W||(W=this.getParentCommentId_(y)),this.remove_(y,W)};
_.E.pinCommentAction_=function(y){y=_.Gc.unsafeClone(y);var W=_.h(y,pgs);W!=null&&W.commentId&&(y=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",y))&&(this.remove_(W.commentId),this.insert_(y,!0))};
_.E.unpinCommentAction_=function(y){y=_.Gc.unsafeClone(y);y=_.h(y,fCE);if(y!=null&&y.commentId){var W,V,w=(W=y.actionResult)==null?void 0:(V=W.update)==null?void 0:V.commentThreadRenderer;w&&(this.remove_(y.commentId),this.insert_(w))}};
_.E.banAuthorAction_=function(y){var W=_.h(y,zSJ);W!=null&&W.commentId&&(y=W.parentCommentId,W=W.commentId.replace("#","."),y||(y=this.getParentCommentId_(W)),this.remove_(W,y))};
_.E.commentIdToIndex_=function(y){var W;return y&&(W=this.data)!=null&&W.contents?this.data.contents.findIndex(function(V){V=V.commentThreadRenderer;var w;return y===((V==null?void 0:V.commentViewModel)&&((w=_.h(V.commentViewModel,DII))==null?void 0:w.commentId))}):-1};
_.E.insert_=function(y,W){W=W===void 0?!1:W;var V,w;if((V=this.data)==null?0:(w=V.contents)==null?0:w.some(function(F){return!!F.commentThreadRenderer}))for(V=0,w=this.data.contents.length;V<w;V++){var t=this.data.contents[V].commentThreadRenderer;
if(N2f[y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=N2f[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){W&&N2f[y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===N2f[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",V,1,{commentThreadRenderer:y}):this.splice("data.contents",V,0,{commentThreadRenderer:y});break}}else this.set("data.contents",[{commentThreadRenderer:y}])};
_.E.doReplyRemove_=function(y,W,V){y=this.replyIdToIndex_(y,W,V);y<0||(W=this.getRepliesContentsPath_(W,V),this.splice(W,y,1))};
_.E.remove_=function(y,W){W=this.commentIdToIndex_(W);W<0?(W=this.commentIdToIndex_(y),W<0||this.splice("data.contents",W,1)):(this.doReplyRemove_(y,W,!1),this.doReplyRemove_(y,W,!0))};
_.E.replyIdToIndex_=function(y,W,V){if(W<0)return-1;W=this.getRepliesContentsPath_(W,V);W=this.get(W);if(!W||!W.length)return-1;V=0;for(var w=W.length;V<w;V++){var t=void 0,F=void 0;if(((t=W[V])==null?void 0:(F=t.commentViewModel)==null?void 0:F.commentId)===y)return V}return-1};
_.E.tickForCommentsTimer_=function(y){_.G2(y,void 0,"wn_comments")};
_.E.reloadComments_=function(y){y=_.h(y,uls);_.h(y==null?void 0:y.command,_.EP)&&_.i5(this.hostElement,[y==null?void 0:y.command])};
_.CM.Object.defineProperties(yz.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.data)==null?0:(W=y.header)==null?0:(V=W.commentsHeaderRenderer)==null?0:V.isBackstageContent)}}});
_.CM.Object.defineProperties(yz,{template:{configurable:!0,enumerable:!0,get:function(){if(Ejz===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Ejz=y}y=Ejz;return y}}});
yz.prototype.showSubscribersOnlyDisclaimer_=yz.prototype.showSubscribersOnlyDisclaimer_;yz.prototype.headerChanged_=yz.prototype.headerChanged_;yz.prototype.contentsChanged_=yz.prototype.contentsChanged_;_.J([_.m(_.LK),_.R("design:type",Object)],yz.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.nrR.YtHostElementBehavior),_.R("design:type",Object)],yz.prototype,"ytHostElementBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",Function)],yz.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yz.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.header.commentsHeaderRenderer.isBackstageContent"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],yz.prototype,"isBackstage",null);_.J([_.q(),_.R("design:type",Object)],yz.prototype,"disablePrescanVisibility",void 0);_.J([_.q(),_.R("design:type",Object)],yz.prototype,"canScheduleJobs",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],yz.prototype,"engagementPanel",void 0);
_.J([_.q(),_.R("design:type",Object)],yz.prototype,"hidePanelButton",void 0);_.J([_.q(),_.R("design:type",Object)],yz.prototype,"isWatchGrid",void 0);_.J([_.q(),_.R("design:type",Object)],yz.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.J([_.xA("data.contents"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yz.prototype,"contentsChanged_",null);
_.J([_.xA("data.header"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yz.prototype,"headerChanged_",null);_.J([_.l6("yt-show-subscribers-only-disclaimer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],yz.prototype,"showSubscribersOnlyDisclaimer_",null);_.J([_.k({is:"ytd-comments"})],yz);var WR=function(){return _.YA.apply(this,arguments)||this};
_.p(WR,_.YA);_.E=WR.prototype;_.E.bindIf=function(y,W,V){return y?W:V};
_.E.bindIfDefined=function(y,W){return y!==void 0?y:W};
_.E.booleanString=function(y){return(!!y).toString()};
_.E.equals=function(){for(var y=_.Ve.apply(0,arguments),W=y[0],V=1;V<y.length;V++)if(W!=y[V])return!1;return!0};
_.E.isGreaterThan=function(y,W){return y>W};
_.E.isLessThan=function(y,W){return y<W};
_.E.logicalAND=function(){for(var y=_.Ve.apply(0,arguments),W=!!y[0],V=1;V<y.length;V++)W=W&&!!y[V];return W};
_.E.logicalOR=function(){for(var y=_.Ve.apply(0,arguments),W=!!y[0],V=1;V<y.length;V++)W=W||!!y[V];return W};
_.E.toBool=function(y){return!!y};
WR.prototype.toBool=WR.prototype.toBool;WR.prototype.logicalOR=WR.prototype.logicalOR;WR.prototype.logicalAND=WR.prototype.logicalAND;WR.prototype.isLessThan=WR.prototype.isLessThan;WR.prototype.isGreaterThan=WR.prototype.isGreaterThan;WR.prototype.equals=WR.prototype.equals;WR.prototype.booleanString=WR.prototype.booleanString;WR.prototype.bindIfDefined=WR.prototype.bindIfDefined;WR.prototype.bindIf=WR.prototype.bindIf;_.J([_.BW()],WR);_.Ihf=[WR.prototype];var gjI;var PMK;var Vz=function(){return _.u.apply(this,arguments)||this};
_.p(Vz,_.u);Vz.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Vz.prototype.onBackIconTap_=function(){window.history.back()};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Vz.prototype,"data",void 0);_.J([_.Zp({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Vz);
_.Y(Vz,"yt-header-with-back-renderer",function(){if(PMK===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;gjI===void 0&&(gjI=document.createElement("template"));var w=gjI;V.call(W,w.content.cloneNode(!0),y.content.firstChild);PMK=y}y=PMK;return y},{mode:2});var CM2;var O1A;var wt=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(wt,_.u);_.E=wt.prototype;_.E.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y,this.setUrl())};
_.E.dataChanged=function(){var y=this;if(this.data){var W=this.setUrl();W&&_.h$({destination:window,iframe:this.iframe,origin:_.kji(W.toString()),channelName:"yt-iframe",onMessage:function(V){(V=y.getCommunicationCommand(V.data))&&y.ytComponentBehavior.resolveCommand(V)},
onEstablished:function(){}})}};
_.E.setUrl=function(){if(this.data&&this.data.iframeUrl){var y=_.X1(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(y)return _.g$(this.iframe,y),y}};
_.E.getCommunicationCommand=function(y){var W;if((W=this.data)!=null&&W.onCommunicationCommandsMap){W=this.data.onCommunicationCommandsMap.find(function(t){return t.key===y});
if(W==null?0:W.value)return W==null?void 0:W.value;try{var V=gpE(_.Cq(y)),w=this.data.onCommunicationCommandsMap.find(function(t){return t.key===(V==null?void 0:V.getMethodName())});
if(w==null?0:w.value)return w==null?void 0:w.value}catch(t){}}};
wt.prototype.dataChanged=wt.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],wt.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],wt.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wt.prototype,"data",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],wt.prototype,"isDarkTheme",void 0);_.J([_.s$("#iframe"),_.R("design:type",HTMLIFrameElement)],wt.prototype,"iframe",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wt.prototype,"dataChanged",null);_.J([_.Zp({is:"yt-iframe-renderer",disableElementRegistration:!0})],wt);
_.Y(wt,"yt-iframe-renderer",function(){if(O1A===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;CM2===void 0&&(CM2=document.createElement("template"));var w=CM2;V.call(W,w.content.cloneNode(!0),y.content.firstChild);O1A=y}y=O1A;return y},{mode:2});_.ty=function(y){_.Ru.call(this);this.callback=y;this.bezier=new mMA(0,0,.4,0,.2,1,1,1);this.delay=new _.dy(this.next,window,this);this.JSC$16736_animating=!1;_.Uf(this,this.delay)};
_.p(_.ty,_.Ru);_.ty.prototype.isAnimating=function(){return this.JSC$16736_animating};
_.ty.prototype.start=function(y,W,V){this.config={from:y,to:W,duration:V,startTime:(0,_.cU)()};this.JSC$16736_animating=!0;this.next()};
_.ty.prototype.stop=function(){this.delay.stop();this.JSC$16736_animating=!1;this.config=void 0};
_.ty.prototype.next=function(){if(this.config){var y=this.config,W=y.from,V=y.to,w=y.duration;y=y.startTime;var t=(0,_.cU)()-y;y=this.bezier;w=qrE(y,t/w);if(w==0)y=y.y0;else if(w==1)y=y.y3;else{t=R1(y.y0,y.y1,w);var F=R1(y.y1,y.y2,w);y=R1(y.y2,y.y3,w);t=R1(t,F,w);F=R1(F,y,w);y=R1(t,F,w)}y=_.QW(y,0,1);this.callback(W+(V-W)*y);y<1?this.delay.start():this.JSC$16736_animating=!1}};_.FP=new _.e9("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var vjE={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},LQJ=function(y,W,V,w){_.Ru.call(this);this.JSC$16744_miniAppId=y;this.localReleaseId=W;this.derivedDeviceInterface=V;this.isForeground=w;this.JSC$16744_playNonceResolver=new _.UT;this.playPingTimerId=NaN;this.playPingIntervalMs=_.pB("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.pB("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.e("enable_displaying_ppn");this.JSC$16744_miniAppClientDataProvider=_.hs().resolve(_.FP);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;de2(this);var t=setTimeout(function(){_.rQ(new _.Js("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16744_playNonceResolver.promise.then(function(){clearTimeout(t)})};
_.p(LQJ,_.Ru);var ciQ=function(y,W){y.JSC$16744_playNonceResolver.resolve(W!=null?W:$y(8));y.enableDisplayingPpn&&zci(y).then(function(V){y.JSC$16744_miniAppClientDataProvider.clientData.set("post_play_nonce",V)})},zci=function(y){return _.g(function(W){return W.nextAddress==1?W.yield(y.JSC$16744_playNonceResolver.promise,2):W.return(W.yieldResult)})},de2=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$16744_playNonceResolver.promise,2);W=w.yieldResult;V={miniAppInfo:{externalPostId:y.JSC$16744_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:W,derivedDeviceInterface:y.derivedDeviceInterface}};_.HN(V);_.B7(w)})},hcR=function(y){y.state!==0?_.rQ(new _.Js("[MiniAppPlayLogger] recordPlayStart failed with state "+vjE[y.state])):(y.state=1,EG(y,"ma_cl"),Nz(y,"PLAY_EVENT_TYPE_PLAY_START"),ecK(y))},ojE=function(y){y.isForeground=!1;
Nz(y,"PLAY_EVENT_TYPE_PLAY_PAUSE")},KQJ=function(y){y.state!==1&&y.state!==2?_.rQ(new _.Js("[MiniAppPlayLogger] recordPlayEnd failed with state "+vjE[y.state])):(y.state=3,window.clearInterval(y.playPingTimerId),y.playPingTimerId=NaN,Hjv(),Nz(y,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},pjz=function(y,W){y.state===2&&y.gameReady&&(y.firstClickRecorded?Date.now()-y.clickRecordedMs<y.playClickIntervalMs||(y.clickRecordedMs=Date.now(),Nz(y,"PLAY_EVENT_TYPE_PLAY_CLICK")):W&&(EG(y,"ma_fua"),Nz(y,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),y.firstClickRecorded=!0,y.clickRecordedMs=Date.now()))};
LQJ.prototype.logError=function(y){var W=this,V;_.g(function(w){if(w.nextAddress==1)return y.metadata.externalPostId=W.JSC$16744_miniAppId,V=y.metadata,w.yield(Promise.race([W.JSC$16744_playNonceResolver.promise,new Promise(function(t){setTimeout(function(){t("")},3E4)})]),2);
V.postPlayNonce=w.yieldResult;y.metadata.localReleaseId=W.localReleaseId;y.loggingError.level="WARNING";_.ap(y.loggingError,y.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:y.metadata});_.B7(w)})};
var i1A=function(y,W,V,w){var t,F,I,P,C,d;_.g(function(L){if(L.nextAddress==1)return L.yield(y.JSC$16744_playNonceResolver.promise,2);t=L.yieldResult;F={externalPostId:y.JSC$16744_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:t,sdkVersion:V,api:W};w!==void 0&&(F.networkRequestsMeasurement={networkRequests:_.Ka(w,1),cachedRequests:_.Ka(w,2),transferredBytes:_.Ka(w,3)},(I=w)==null?0:_.sX(I,z6,6))&&(F.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((P=_.Da(w,
z6,6))==null?void 0:bP(P,1))||"0",cacheHits:((C=_.Da(w,z6,6))==null?void 0:bP(C,2))||"0",cachedBytes:((d=_.Da(w,z6,6))==null?void 0:bP(d,3))||"0"});_.Hp("miniAppSdkUsage",F);_.B7(L)})},T2m=function(y,W,V){var w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B;
_.g(function(r){if(r.nextAddress==1)return r.yield(y.JSC$16744_playNonceResolver.promise,2);w=r.yieldResult;t={externalPostId:y.JSC$16744_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:w,sdkVersion:V,measurementWindow:{startTimestampMs:String(HX(W,1)),endTimestampMs:String(HX(W,2))},frameRate:{averageFrameTimeDeltaMs:X_(W,3),averageFrameIdleTimeMs:X_(W,4)}};_.sX(W,cq,5)&&(t.networkRequests={networkRequests:(F=f$(W))==null?void 0:_.Ka(F,1),cachedRequests:(I=f$(W))==null?void 0:_.Ka(I,2),transferredBytes:(P=
f$(W))==null?void 0:_.Ka(P,3),sameOriginStatusCodeToCounts:fhz((C=f$(W))==null?void 0:Oea(C,4)),crossOriginStatusCodeToCounts:fhz((d=f$(W))==null?void 0:Oea(d,5))},(L=f$(W))==null?0:_.sX(L,z6,6))&&(t.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((z=f$(W))==null?void 0:(c=_.Da(z,z6,6))==null?void 0:bP(c,1))||"0",cacheHits:((K=f$(W))==null?void 0:(f=_.Da(K,z6,6))==null?void 0:bP(f,2))||"0",cachedBytes:((U=f$(W))==null?void 0:(l=_.Da(U,z6,6))==null?void 0:bP(l,3))||"0"});_.sX(W,
RlA,7)&&(t.gameCapture={averageFrameTimeDeltaMs:(x=_.Da(W,RlA,7))==null?void 0:X_(x,1),averageFrameIdleTimeMs:(B=_.Da(W,RlA,7))==null?void 0:X_(B,2)});_.Hp("miniAppPerformanceMetrics",t);_.B7(r)})},meQ=function(y,W){var V,w;
return _.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$16744_playNonceResolver.promise,2);V=t.yieldResult;w={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:y.JSC$16744_miniAppId,postPlayNonce:V,miniAppReleaseId:y.localReleaseId},derivedDeviceInterface:y.derivedDeviceInterface,adTriggerType:W,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Hp("miniAppAdEvent",w);_.B7(t)})};
LQJ.prototype.disposeInternal=function(){_.Ru.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Nz=function(y,W,V,w){V=V===void 0?{}:V;w=w===void 0?!1:w;var t,F,I,P;_.g(function(C){if(C.nextAddress==1)return t=y.isForeground,F=y.beforeReady,C.yield(y.JSC$16744_playNonceResolver.promise,2);I=C.yieldResult;P={externalPostId:y.JSC$16744_miniAppId,localReleaseId:y.localReleaseId,derivedDeviceInterface:y.derivedDeviceInterface,postPlayNonce:I,type:W};V.sequenceGroup=I;P.playState=F?"PLAY_STATE_NOT_READY":t?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Hp("miniAppPlayEvent",P,
V);w&&_.Xk();_.B7(C)})},EG=function(y,W){var V;
_.g(function(w){if(w.nextAddress==1)return V=(0,_.cU)(),w.yield(y.JSC$16744_playNonceResolver.promise,2);_.aw(W,V);_.B7(w)})},ecK=function(y){isNaN(y.playPingTimerId)&&(y.playPingTimerId=_.MO(function(){y.state!==1&&y.state!==2?_.rQ(new _.Js("[MiniAppPlayLogger] reportPlayPing failed with state "+vjE[y.state])):Nz(y,"PLAY_EVENT_TYPE_PLAY_PING")},y.playPingIntervalMs))},fhz=function(y){return Array.from(y.entries()).map(function(W){var V=_.N(W);
W=V.next().value;V=V.next().value;return{key:W,value:V}})};var MOr=function(){},qkm=function(y,W){y.showMiniAppAdCommand=W.showMiniAppAdCommand;
y.isEmbeddedInWebview=W.isEmbeddedInWebview;y.playLogger=W.playLogger},ucs=function(y,W){var V;
return _.g(function(w){if(w.nextAddress==1){if(!y.showMiniAppAdCommand||!y.isEmbeddedInWebview)return w.return(UeK(y,W));y.adResolver=new _.UT;var t=new r1;V=_.oV(t,3,W);Wm(y.showMiniAppAdCommand,cRR(V));return w.yield(y.adResolver.promise,2)}return w.return(w.yieldResult)})};
MOr.prototype.onAdFinished=function(y){y=hlA(y);var W;(W=this.adResolver)==null||W.resolve(y)};
var UeK=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)w=w.yield((V=y.playLogger)==null?void 0:meQ(V,Guy(W)),2);else{var t=w.return;var F=new elK;F=_.oV(F,1,2);w=t.call(w,F)}return w})};var Skq=new _.e9("INNERTUBE_MANAGER_TOKEN");var DeR=function(){this.callbacks={}};
DeR.prototype.initialize=function(y){var W=this;this.callbacks=y;window.youtubewebview?window.youtubewebview.onmessage=function(V){lhm(W,V)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(V){lhm(W,V)})};
var lhm=function(y,W){if(W.data)try{var V=gpE(W.data);if(_.Jm(_.ke(V,1))!=null){var w=Cyz(_.aX(V,2));switch(V.getMethodName()){case "yt-mini-app-load-audio-state":var t,F;(F=(t=y.callbacks).onAudioStateLoaded)==null||F.call(t,_.nF(w,xI(w,G6,1)));break;case "yt-mute-mini-app":var I,P;(P=(I=y.callbacks).onMuteMiniApp)==null||P.call(I);break;case "yt-unmute-mini-app":var C,d;(d=(C=y.callbacks).onUnmuteMiniApp)==null||d.call(C);break;case "yt-playable-exit":var L,z;(z=(L=y.callbacks).onExit)==null||z.call(L);
break;case "yt-post-play-nonce":var c,K;(K=(c=y.callbacks).onPostPlayNonceReceived)==null||K.call(c,QH(w,2,G6));break;case "yt-confirm-exit-mini-app":var f,U;(U=(f=y.callbacks).confirmExitMiniApp)==null||U.call(f);break;case "yt-confirm-exit-mini-app-edu":var l,x;(x=(l=y.callbacks).confirmExitMiniAppEdu)==null||x.call(l);break;case "yt-benchmarking-response":var B,r;(r=(B=y.callbacks).onNativeBenchmarkingMessageReceived)==null||r.call(B,QH(w,2,G6));break;case "yt-mini-app-load-3p-consent-state":var H,
a;(a=(H=y.callbacks).multiplayer3pAckStateLoaded)==null||a.call(H,_.nF(w,xI(w,G6,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var b,Fv;(Fv=(b=y.callbacks).exitMiniAppSeenStateLoaded)==null||Fv.call(b,_.nF(w,xI(w,G6,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Py,du;(du=(Py=y.callbacks).onNavigateToNewMiniApp)==null||du.call(Py);break;case "yt-game-data-available":var mL,un;(un=(mL=y.callbacks).onGameDataAvailable)==null||un.call(mL,QH(w,2,G6));break;case "yt-pause-mini-app":var hv,
$P;($P=(hv=y.callbacks).onPauseMiniApp)==null||$P.call(hv);break;case "yt-resume-mini-app":var sz,Wz;(Wz=(sz=y.callbacks).onResumeMiniApp)==null||Wz.call(sz);break;case "yt-playable-ad-finished":var mf,OE;(OE=(mf=y.callbacks).onAdFinished)==null||OE.call(mf,QH(w,2,G6))}}else _.rQ(Error("ai"))}catch(Qj){_.ap(Error("bi"))}else _.rQ(Error("ci"))};var bLL=function(y){this.rpcErrorCode=y};var I3=function(y,W,V){this.intervalMs=y;this.apiFunc=W;this.type=V;this.schedulerReady=!0};
I3.prototype.call=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1){if(W.type!==1&&y===W.cachedValue)return w.return();W.pendingApiRequestResolver||(W.pendingApiRequestResolver=new _.UT);V=W.pendingApiRequestResolver.promise;W.cachedValue=y;return w.yield(xem(W),2)}return w.return(V)})};
I3.prototype.flush=function(y){y=y===void 0?!1:y;var W=this;return _.g(function(V){return W.cachedValue===void 0?V.return():V.yield(W.apiFunc(W.cachedValue,y),0)})};
var xem=function(y){var W,V,w;return _.g(function(t){switch(t.nextAddress){case 1:if(!y.schedulerReady||!y.pendingApiRequestResolver)return t.return();y.schedulerReady=!1;W=y.pendingApiRequestResolver;y.pendingApiRequestResolver=void 0;_.l7(t,2);if(y.cachedValue===void 0){t.jumpTo(4);break}return t.yield(y.apiFunc(y.cachedValue),5);case 5:V=t.yieldResult,W.resolve(V);case 4:_.E6(t,3);break;case 2:w=_.YX(t),W.reject(w);case 3:setTimeout(function(){return _.g(function(F){y.schedulerReady=!0;return F.yield(xem(y),
0)})},y.intervalMs),_.B7(t)}})};var yev=window.location.origin+"/miniapp_cloudsaves",QQv=[400,401],kom=_.pB("cloud_save_game_data_rate_limit_ms",3E3),Ykf=function(y){var W=this;this.JSC$16788_miniAppId=y;this.loadAttempts=0;this.cloudSaveIntervalMs=kom;this.initialDownloadDataSucceeded=!1;this.JSC$16788_playNonceResolver=new _.UT;this.scottyUploadRateLimiter=new I3(this.cloudSaveIntervalMs,function(V,w){return sIi(W,V,w)},2);
this.downloadDataPromise=Aim(this);this.downloadDataPromise.then(function(){W.initialDownloadDataSucceeded=!0}).catch(function(){})},B2K=function(y,W){W.then(function(V){return y.JSC$16788_playNonceResolver.resolve(V)})},Jiz=function(y){return _.g(function(W){return y.cachedData===void 0?W.return(y.downloadDataPromise):W.return(y.cachedData)})},RcA=function(y,W){return _.g(function(V){y.cachedData=W;
if(!y.initialDownloadDataSucceeded)throw Error("di");return V.yield(y.scottyUploadRateLimiter.call(W),0)})},jIK=function(){return new Promise(function(y){setTimeout(y,1E3,"")})},$eQ=function(y,W){var V,w;
return _.g(function(t){if(t.nextAddress==1)return V=y.JSC$16788_miniAppId,t.yield(Promise.race([y.JSC$16788_playNonceResolver.promise,jIK()]),2);w={"X-YouTube-MiniAppId":V,"X-YouTube-PostPlayNonce":t.yieldResult};"DELEGATED_SESSION_ID"in _.Qa&&igd(W,w);return t.return(w)})},sIi=function(y,W,V){V=V===void 0?!1:V;
return _.g(function(w){return rKu()?_.e("enable_cloud_save_error_popup_after_retry")?w.return(new Promise(function(t,F){var I,P,C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:I=0,P=!0,d=C=null;case 2:if(!(P&&I++<2)){z.jumpTo(4);break}_.l7(z,5);return z.yield(njI(y,W,V),7);case 7:C=z.yieldResult;P=C.ok?!1:!QQv.includes(C.status);_.E6(z,2);break;case 5:d=L=_.YX(z);P=ZLu(d);z.jumpTo(2);break;case 4:C?C.ok?(gt(y,kom),t()):(gt(y,y.cloudSaveIntervalMs*2),F(Error("ei`"+String(C.status),{cause:{rpcErrorCode:C.status}}))):
(gt(y,y.cloudSaveIntervalMs*2),F(d||Error("fi"))),_.B7(z)}})})):w.return(new Promise(function(t,F){var I,P;
return _.g(function(C){if(C.nextAddress==1){if(y.JSC$16788_miniAppId==="")return F(Error("gi")),C.return();_.l7(C,2);return C.yield(njI(y,W,V),4)}if(C.nextAddress!=2)return I=C.yieldResult,I.ok?(gt(y,kom),t()):(gt(y,y.cloudSaveIntervalMs*2),F(Error("ei`"+String(I.status),{cause:{rpcErrorCode:I.status}}))),_.E6(C,0);P=_.YX(C);gt(y,y.cloudSaveIntervalMs*2);F(P);_.B7(C)})})):w.return()})},njI=function(y,W,V){V=V===void 0?!1:V;
var w,t,F;return _.g(function(I){if(I.nextAddress==1)return w=_.Gj((new TextEncoder).encode(W)),t=Wcu(),I.yield($eQ(y,t),2);F=I.yieldResult;return I.return(fetch(t,{method:"POST",body:new Blob([w]),headers:F,keepalive:V}))})},Aim=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1){if(!rKu())return w.return("");if(y.JSC$16788_miniAppId==="")throw Error("gi");if(y.loadAttempts>2)return w.return(y.downloadDataPromise);_.l7(w,2);return w.yield(H1s(y),4)}if(w.nextAddress!=2)return W=w.yieldResult,w.return(W);V=_.YX(w);if(ZLu(V)&&++y.loadAttempts<2)return w.return(Aim(y));throw V;})},H1s=function(y){var W,V,w,t,F;
return _.g(function(I){switch(I.nextAddress){case 1:return _.l7(I,2),W=Wcu(),I.yield($eQ(y,W),4);case 4:return V=I.yieldResult,I.yield(fetch(W,{method:"GET",headers:V}),5);case 5:return w=I.yieldResult,w.ok?I.yield(w.text(),6):I.return(Promise.reject(Error("hi`"+String(w.status),{cause:new bLL(w.status)})));case 6:return t=I.yieldResult,I.return((new TextDecoder).decode(_.Cq(t)));case 2:return F=_.YX(I),I.return(Promise.reject(F))}})},gt=function(y,W){y.cloudSaveIntervalMs=W;
y.scottyUploadRateLimiter.intervalMs=y.cloudSaveIntervalMs};
Ykf.prototype.flush=function(){var y=this;return _.g(function(W){return y.initialDownloadDataSucceeded?W.yield(y.scottyUploadRateLimiter.flush(!0),0):W.return()})};var Xj2=p$(K$(1),hr(1)),ahJ=p$(K$(1),hr(3)),PR=function(y){this.callbacks=y};
_.E=PR.prototype;_.E.onAudioToggled=function(y,W){(W===void 0||W)&&_.ui("yt-mini-app-is-audio-enabled",y,2592E3)};
_.E.onPause=function(){this.onAudioToggled(!1,!1)};
_.E.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.E.returnNativeBenchmarkingMessage=function(){};
_.E.sendGameData=function(){};
_.E.sendStartGameFrameCapture=function(){};
var V8L=function(y,W,V){this.callbacks=y;var w=this;this.sdkVersion=new _.UT;this.channel=new BYa(_.h$({destination:window,iframe:W,origin:(new URL(V.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var t=Cp;var F=K$(5);var I=new qXf;I=_.y_(I,1,1E4);F=_.A_(F,4,sXE,I);t(w,F);w.onAudioToggled(w.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){w.sdkVersion.resolve("")},1E4)};
_.p(V8L,PR);_.E=V8L.prototype;_.E.onAudioToggled=function(y,W){PR.prototype.onAudioToggled.call(this,y,W===void 0?!0:W);W=Cp;var V=K$(2),w=new mWK;y=_.Tk(w,1,y);y=_.A_(V,3,sXE,y);W(this,y)};
_.E.onPause=function(){PR.prototype.onPause.call(this);Cp(this,K$(3))};
_.E.onResume=function(){PR.prototype.onResume.call(this);Cp(this,K$(4))};
_.E.returnNativeBenchmarkingMessage=function(y){var W=Cp,V=K$(6);var w=hr(_.sX(y,Cw,1)?1:2);y=_.sX(y,Cw,1)?y:null;w=_.A_(w,5,ox,y);W(this,p$(V,w))};
_.E.sendGameData=function(y){var W=Cp,V=K$(7);y=_.A_(V,5,sXE,y);W(this,y)};
_.E.sendStartGameFrameCapture=function(){Cp(this,K$(9))};
var OG=function(y,W,V){var w,t,F;return _.g(function(I){if(I.nextAddress==1)return w=y.callbacks,t=w.onSdkCalled,F=W,I.yield(y.sdkVersion.promise,2);t.call(w,F,I.yieldResult,V);_.B7(I)})};
V8L.prototype.onMessage=function(){var y=this;return j$n(T6,function(W){var V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py,du,mL,un,hv,$P,sz,Wz,mf,OE,Qj,Kq,zR,l2,lt,yu,Na,F6,TR,eP,hA,jQ,Fy,Wd;return _.g(function(Pz){switch(Pz.nextAddress){case 1:if(!HFz(W.data))return _.rQ(Error("ii")),Pz.return();V=_.rK(W.data,1);_.e("enable_iframe_message_get_type_via_fields")&&(w=W.data,V=t=_.rK(w,1));switch(V){case 8:if(W.data.hasMetadata()){var b2=y.sdkVersion,vd=b2.resolve;var Mr=W.data.getMetadata();Mr=_.aX(Mr,
1);vd.call(b2,Mr);clearTimeout(y.sdkVersionTimeoutId)}break;case 6:return Pz.jumpTo(2);case 16:if(!_.Ad(W.data,BKs,14,mI))return Pz.return();F=_.ZT(W.data,BKs,14,mI);(P=(I=y.callbacks).onGameFrameReceived)==null||P.call(I,F);return Pz.return();case 17:if(!_.Ad(W.data,YXi,15,mI))return Pz.return();(d=(C=y.callbacks).onGameAudioReceived)==null||d.call(C,_.ZT(W.data,YXi,15,mI));return Pz.return();case 1:if(b2=_.ZT(W.data,SXE,2,mI))switch(_.rK(b2,1)){case 1:y.callbacks.onFirstFrameReady();if(_.e("enable_network_request_logging_on_game_events")&&
_.sX(b2,cq,4)){OG(y,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Da(b2,cq,4));break}OG(y,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Mr=(vd=y.callbacks).onGameReady)==null||Mr.call(vd);if(_.e("enable_network_request_logging_on_game_events")&&_.sX(b2,cq,4)){OG(y,"MINI_APP_SDK_API_GAME_READY",_.Da(b2,cq,4));break}OG(y,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Ad(b2,eZ,3,DWR))y.callbacks.onResourceLoaded(_.ZT(b2,eZ,3,DWR))}return Pz.return();case 3:return Pz.jumpTo(3);case 4:return Pz.jumpTo(4);
case 2:return Pz.jumpTo(5);case 9:return Pz.jumpTo(6);case 10:return y.callbacks.onClick(),Pz.return();case 5:return Pz.jumpTo(7);case 11:if(!_.Ad(W.data,d1,9,mI))return Pz.return();L=_.ZT(W.data,d1,9,mI);(c=(z=y.callbacks).onBenchmarkingMessageReceived)==null||c.call(z,L);b2=W.reply;vd=K$(1);Mr=hr(1);var u2=new d1;var ov=new Uint8Array(PAb(L,xI(L,KUs,6))|0);u2=Ug(u2,5,KUs,_.Rs(ov,!1));Mr=_.A_(Mr,5,ox,u2);b2.call(W,p$(vd,Mr));return Pz.return();case 12:return Pz.jumpTo(8);case 13:return Pz.jumpTo(9);
case 15:if(!_.e("enable_open_yt_content"))return W.reply(ahJ),Pz.return();if(!_.Ad(W.data,AdQ,12,mI))return W.reply(p$(K$(1),hr(2))),Pz.return();b2=_.ZT(W.data,AdQ,12,mI);K=_.aX(b2,1);y.callbacks.onOpenYTContent(K);W.reply(Xj2);return Pz.return();case 14:return Pz.jumpTo(10);default:return Pz.return()}Pz.jumpTo(0);break;case 2:if(!_.Ad(W.data,iI,5,mI))return Pz.return();vd=W.data;b2=xI(vd,mI,5);vd=vd.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(b2=cmG(vd,vd[_.UE]|0,iI,b2))||(b2=iI[oJ4])||
(b2=new iI,xJ(b2.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),b2=iI[oJ4]=b2);f=b2;b2=_.eA(f,L$,1,_.hG());U=_.N(b2);l=U.next();case 12:if(l.done){Pz.jumpTo(14);break}x=l.value;B=new _.Js;B.level=_.rK(x,2)===1?"WARNING":"ERROR";r=t8v(x.getSource());return Pz.yield(y.sdkVersion.promise,15);case 15:H={source:r,sdkVersion:Pz.yieldResult};_.pe(_.ke(x,6))!=null?(B.message=x.getMessage(),B.stack=_.aX(x,5),H.sdkErrorType=FcG(_.rK(x,6)),_.pe(_.ke(x,7))!=null&&(H.sdkApi=Ezv(_.rK(x,7)))):B.stack=void 0;
b=a=void 0;(b=(a=y.callbacks).onError)==null||b.call(a,{loggingError:B,metadata:H});l=U.next();Pz.jumpTo(12);break;case 14:return Pz.return();case 3:return _.l7(Pz,16),b2=Pz.yield,vd=y.callbacks,Mr=vd.onSave,u2=_.ZT(W.data,M6Q,4,mI),u2=_.aX(u2,1),b2.call(Pz,Mr.call(vd,u2),18);case 18:W.reply(Xj2);_.E6(Pz,17);break;case 16:return Fv=_.YX(Pz),Py=VW,du=Fv,mL=y.callbacks,un="MINI_APP_SDK_API_SAVE_DATA",Pz.yield(y.sdkVersion.promise,19);case 19:Py(du,mL,un,Pz.yieldResult),W.reply(ahJ);case 17:return Pz.yield(OG(y,
"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Pz.return();case 4:return _.l7(Pz,21),Pz.yield(y.callbacks.onLoad(),23);case 23:hv=Pz.yieldResult;b2=W.reply;vd=K$(1);Mr=hr(1);u2=new M6Q;u2=_.jD(u2,1,hv);Mr=_.A_(Mr,3,ox,u2);b2.call(W,p$(vd,Mr));_.E6(Pz,22);break;case 21:return $P=_.YX(Pz),sz=VW,Wz=$P,mf=y.callbacks,OE="MINI_APP_SDK_API_LOAD_DATA",Pz.yield(y.sdkVersion.promise,24);case 24:sz(Wz,mf,OE,Pz.yieldResult),W.reply(ahJ);case 22:return Pz.yield(OG(y,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Pz.return();
case 5:_.l7(Pz,26);y.callbacks.onSendHighScore(Qc(_.ZT(W.data,$WI,3,mI).getValue()));W.reply(p$(K$(1),hr(1)));_.E6(Pz,27);break;case 26:return Qj=_.YX(Pz),Kq=VW,zR=Qj,l2=y.callbacks,lt="MINI_APP_SDK_API_SEND_SCORE",Pz.yield(y.sdkVersion.promise,28);case 28:Kq(zR,l2,lt,Pz.yieldResult),W.reply(ahJ);case 27:return Pz.yield(OG(y,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Pz.return();case 6:if(!_.Ad(W.data,nef,8,mI)){Pz.jumpTo(30);break}b2=Pz.yield;vd=_.ZT(W.data,nef,8,mI);vd=_.rK(vd,1);return b2.call(Pz,
OG(y,Ezv(vd)),30);case 30:return Pz.return();case 7:return b2=W.reply,vd=K$(1),Mr=hr(1),u2=y.callbacks.getLanguage(),Mr=Ug(Mr,4,ox,Bd(u2)),b2.call(W,p$(vd,Mr)),Pz.yield(OG(y,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Pz.return();case 8:if(!_.Ad(W.data,jXs,10,mI))return Pz.return();yu=_.ZT(W.data,jXs,10,mI);Na=y.callbacks;F6=Na.onSdkPerformanceUpdate;return Pz.yield(y.sdkVersion.promise,33);case 33:return F6.call(Na,yu,Pz.yieldResult),Pz.return();case 9:b2=W.data;vd=xI(b2,mI,11);if(_.Jm(_.ke(b2,
vd))==null)return W.reply(p$(K$(1),hr(2))),Pz.return();TR=QH(W.data,11,mI);y.callbacks.onShareInviteCode(TR);W.reply(Xj2);return Pz.yield(OG(y,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Pz.return();case 10:if(_.Ad(W.data,TKE,13,mI)){Pz.jumpTo(35);break}return Pz.yield(y.callbacks.onShowMiniAppAd(2),36);case 36:return eP=Pz.yieldResult,W.reply(p$(K$(1),xWr(eP))),Pz.yield(OG(y,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Pz.return();case 35:b2=_.ZT(W.data,TKE,13,mI);a:switch(_.rK(b2,
1)){case 1:b2={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:b2={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:b2={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}hA=b2;jQ=hA.adType;Fy=hA.sdkApi;b2=Pz.yield;vd=y.callbacks;Mr=vd.onShowMiniAppAd;u2=_.ZT(W.data,TKE,13,mI);u2=_.aX(u2,2);return b2.call(Pz,Mr.call(vd,jQ,u2||void 0),38);case 38:return Wd=Pz.yieldResult,W.reply(p$(K$(1),xWr(Wd))),Pz.yield(OG(y,Fy),39);case 39:return Pz.return()}})})};
var Cp=function(y,W){_.g(function(V){y.channel.send(W);_.B7(V)})},wx=function(y,W,V){this.callbacks=y;
var w=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;y=MhR(W,(new URL(V.toString())).origin);this.gameSnacks=new V4r(y);this.gameSnacks.page.onReady(function(){w.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){w.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var t,F;(F=(t=w.callbacks).onGameReady)==null||F.call(t)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(t,F){try{w.callbacks.onSendHighScore(F)}catch(I){VW(I,w.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(t,F){var I;return _.g(function(P){if(P.nextAddress==1)return _.l7(P,2),P.yield(w.callbacks.onSave(w.decoder.decode(F)),4);if(P.nextAddress!=2)return _.E6(P,0);I=_.YX(P);VW(I,w.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return P.return()})});
this.gameSnacks.storage.onLoad(function(){var t,F;return _.g(function(I){if(I.nextAddress==1)return _.l7(I,2),I.yield(w.callbacks.onLoad(),4);if(I.nextAddress!=2)return t=I.yieldResult,I.return(w.encoder.encode(t));F=_.YX(I);VW(F,w.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return I.return(w.encoder.encode(""))})});
this.gameSnacks.init()};
_.p(wx,PR);wx.prototype.onAudioToggled=function(y,W){PR.prototype.onAudioToggled.call(this,y,W===void 0?!0:W);var V;(V=this.gameSnacks)==null||V.audio.update(y)};
wx.prototype.onPause=function(){PR.prototype.onPause.call(this);var y;(y=this.gameSnacks)==null||y.game.pause()};
wx.prototype.onResume=function(){PR.prototype.onResume.call(this);var y;(y=this.gameSnacks)==null||y.game.resume()};var Goi=NNz,riR=_.eY(function(y){var W=y.data;var V=y.loadingProgress;y=_.N(_.M1("",void 0,"LYYTdd"));var w=y.next().value,t=y.next().value;y=_.N(_.M1(!1,void 0,"K0waae"));var F=y.next().value,I=y.next().value,P=[],C=function(){return"transform: scaleX("+(_.Gt(V)||0)+")"},d=null,L=function(){return W()&&d!==null&&d!==void 0?d:d=W().showAnniversaryAnimation?6:Goi()};
_.H1(function(){var f;if(W().timeOutMessages&&((f=W().timeOutMessages)==null?0:f.length)){d=null;f=_.N(P);for(var U=f.next();!U.done;U=f.next())clearTimeout(U.value);P.length=0;Icv(W().timeOutMessages,P,t,I)}},"BNu9j");
var z=function(){return!!W().persistentErrorMessageTitle},c=function(){return V!==void 0},K=function(){return W().title};
return _.O("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.O("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.O("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.O("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var f,U=(f=W().backgroundImage)==null?void 0:f.sources,l;return(U==null?0:U.length)?"background-image: url("+((l=U[0])==null?void 0:l.url)+")":
""}}),_.O("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.O(_.v,{cond:function(){return!z()},
then:function(){var f={};return _.O("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.O("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.O(_.fh,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+L()},
data:function(){var U="loading_animation_"+L();return{animationConfig:{name:U,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+U+".json",loop:!0,autoplay:!0}}}})),_.O("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.O(_.v,{cond:K,
then:function(){return _.O("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},K)}}),_.O("p",{class:_.kS("mini-app-splash-screen-view-model-wiz__timeout-message",(f["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return F()},f)),
"aria-live":"polite"},w),_.O(_.v,{cond:c,then:function(){return _.O("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.O("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:C}))}})))}}),_.O(_.v,{cond:z,
then:function(){return _.O("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.O("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return W().persistentErrorMessageTitle}),_.O(_.v,{cond:function(){return!!W().persistentErrorMessageDescription},
then:function(){return _.O("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return W().persistentErrorMessageDescription})}}))}})))},"ee");var b1R=new _.e9("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var QIf=OF;OF=function(y){function W(V){if(V){var w,t;(w=V.__spec)==null||(t=w.didUnmount)==null||t.call(w);for(w=0;w<V.childNodes.length;w++)W(V.childNodes[w])}}
QIf==null||QIf(y);rc(function(){for(var V=0;V<y.length;V++)W(y[V])})};var Z1K=_.eY(function(y){var W=y.data;var V=y.score;var w=y.formattedScore;var t=y.onScoreChanged;var F=y.isEmbeddedInWebview;var I=_.gS("yt-mini-app-score-button-view-model"),P=function(){var K;return _.h(W==null?void 0:(K=W())==null?void 0:K.buttonViewModel,_.H5)},C=function(){var K;
return(V==null?void 0:V())||Number(W==null?void 0:(K=W())==null?void 0:K.lastScore)||0},d=function(){var K;
return(w==null?void 0:w())||((K=P())==null?void 0:K.title)||""},L,z=1;
if(y=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))y=Number(y),z=isNaN(y)?1:y/100;_.H1(function(){t==null||t(C());var K;var f=_.tl((K=P())==null?void 0:K.onTap);if(f){K=_.h(f,TdK);var U,l,x;K=_.h(K==null?void 0:(U=K.panelLoadingStrategy)==null?void 0:(l=U.inlineContent)==null?void 0:(x=l.dialogViewModel)==null?void 0:x.customContent,eEr)}else K=void 0;if(U=K)U.score=d()},"KZFi5e");
y=_.YS(function(){var K,f,U=W==null?void 0:(K=W())==null?void 0:(f=K.loggingDirectives)==null?void 0:f.trackingParams;U&&_.DN(_.hs().resolve(_.HB),U);return!1});
_.a8(function(){if(I.value){var K=I.value.querySelector("button"),f=P();K&&f&&gzb(K,f);vl("yt-share-playable-with-high-score",function(){var U=C().toString(),l=W==null?void 0:W().onShareHighScoreCommand,x=W==null?void 0:W().highScoreShareClientParamIdentifier,B=F==null?void 0:F();l&&(B?(x=new g06,U=_.jD(x,2,U),Wm(l,U.JSC$12245_serializeBinary())):x&&(_.hs().resolve(b1R).clientParams.set(x,{miniAppClientParams:{highScore:U}}),HLz(l,!1)))})}});
var c=function(){var K=P();K&&(V==null?0:V())&&K.accessibilityText&&(K.accessibilityText=K.accessibilityText.replace(L,d()));L=d();return{numberValue:C(),numberText:d(),heightPx:36,fontSizeMultiplier:z,shouldAnimate:!(V==null||!V())&&!0}};
return _.O("yt-mini-app-score-button-view-model",{class:function(){var K={};return _.sU("mini-app-score-button-view-model-wiz",(K["mini-app-score-button-view-model-wiz--is-visible"]=C()!==0,K))},
el:I,"on:click":y},v1(!1,function(){return _.O("span",{style:"display:none;"},C)}),_.O(_.Q7,{data:function(){var K;
return W==null?void 0:(K=W())==null?void 0:K.buttonViewModel}},{buttonViewModel:function(K){return _.O(_.lk,{data:K.data,
animatedTextProps:c})}}))},"fe");var trs=_.eY(function(y){var W,V=(W=_.SL("yt-mini-app-is-theater-mode-enabled"))!=null?W:!1,w=_.e("enable_playable_container_save_button"),t=_.e("enable_play_next_destination_page_in_toolbar");W={};return _.O("ytm-mini-app-top-bar-view-model",null,_.O("div",{class:_.kS("yt-mini-app-top-bar-view-model",(W["yt-mini-app-top-bar-view-model--mobile"]=!1,W["yt-mini-app-top-bar-view-model--desktop"]=!0,W))},_.O("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.O(_.v,{cond:function(){var F;
return!!y.data().backButtonEdu&&!((F=y.isExitMiniAppSeen)==null?0:F.call(y))},
then:function(){return _.O(_.Q7,{data:function(){return y.data().backButtonEdu}},{buttonViewModel:_.lk})},
else:function(){return _.O(_.Q7,{data:function(){return y.data().backButton}},{buttonViewModel:_.lk})}}),_.O(_.v,{cond:function(){return y.data().viewAllButton&&!0},
then:function(){return _.O(_.Q7,{data:function(){return y.data().viewAllButton}},{buttonViewModel:_.lk})}}),_.O(_.v,{cond:function(){return y.data().title&&!0},
then:function(){return _.O("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return y.data().title})}})),_.O("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.O(_.v,{cond:function(){var F;
return(F=y.isDesktopPlayPage)==null?void 0:F.call(y)},
then:function(){return _.O(_.o8,null,_.O(yJf,{highScoreButton:function(){return y.data().highScoreButton},
score:y.score,formattedScore:y.formattedScore,onScoreChanged:y.onScoreChanged,isEmbeddedInWebview:y.isEmbeddedInWebview}),_.O(WyK,{enableSaveButton:function(){return _.Gt(w)},
saveButton:function(){return y.data().saveButton},
isSaved:y.isSaved,onSaveToggled:function(){return y.onSaveToggled}}),_.O(Vrf,{menuButton:function(){return y.data().menuButton}}))},
else:function(){return _.O(_.v,{cond:function(){return!1},
then:function(){return _.O(_.Q7,{data:function(){return y.data().playPageButton}},{buttonViewModel:function(F){return _.O(_.lk,{data:F.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.O(yJf,{highScoreButton:function(){return y.data().highScoreButton},
score:y.score,formattedScore:y.formattedScore,onScoreChanged:y.onScoreChanged,isEmbeddedInWebview:y.isEmbeddedInWebview})}})}})),_.O("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.O(_.Q7,{data:function(){return y.data().muteButton}},{toggleButtonViewModel:function(F){var I=F.data;
return _.O(_.XV,{data:function(){var P,C;return Object.assign({},I(),{isToggled:(C=(P=y.isAudioEnabled)==null?void 0:P.call(y))!=null?C:!0})},
onToggle:y.onAudioToggled,useOutlinedIcon:!0})}}),_.O(_.Q7,{data:function(){return y.data().theatreModeButton}},{toggleButtonViewModel:function(F){var I=F.data;
return _.O("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.O(_.XV,{data:function(){return Object.assign({},I(),{isToggled:V})},
useOutlinedIcon:!0}))}}),_.O(wbf,{fullscreenButton:function(){return y.data().fullscreenButton}}),_.O(_.v,{cond:function(){return _.Gt(t)&&y.data().viewAllButton&&!1},
then:function(){return _.O(_.Q7,{data:function(){return y.data().viewAllButton}},{buttonViewModel:_.lk})}}),_.O(_.v,{cond:function(){var F;
return!((F=y.isDesktopPlayPage)==null?0:F.call(y))},
then:function(){return _.O(_.o8,null,_.O(WyK,{enableSaveButton:function(){return _.Gt(w)},
saveButton:function(){return y.data().saveButton},
isSaved:y.isSaved,onSaveToggled:function(){return y.onSaveToggled}}),_.O(Vrf,{menuButton:function(){return y.data().menuButton}}))}}))))},"ge");
trs.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Vrf=_.eY(function(y){return _.O(_.Q7,{data:y.menuButton},{buttonViewModel:_.lk})},"he"),WyK=_.eY(function(y){var W=y.enableSaveButton;
var V=y.saveButton;var w=y.isSaved;var t=y.onSaveToggled;return _.O(_.v,{cond:function(){return W()&&!(V==null||!V())},
then:function(){return _.O(_.Q7,{data:function(){var F=_.h(V==null?void 0:V(),_.aJ),I;return{toggleButtonViewModel:Object.assign({},F,{isToggled:(I=w==null?void 0:w())!=null?I:!(F==null||!F.isToggled)})}}},{toggleButtonViewModel:function(F){return _.O(_.XV,{data:F.data,
onToggle:t})}})}})},"ie"),yJf=_.eY(function(y){var W=y.highScoreButton;
var V=y.score;var w=y.formattedScore;var t=y.onScoreChanged;var F=y.isEmbeddedInWebview;return _.O(_.Q7,{data:W},{miniAppScoreButtonViewModel:function(I){return _.O(Z1K,{data:I.data,score:V,formattedScore:w,onScoreChanged:t,isEmbeddedInWebview:F})}})},"je"),wbf=_.eY(function(y){y=y.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.O(_.o8,null):_.O(_.Q7,{data:y},{buttonViewModel:_.lk})},"ke");_.Fy6=new _.e9("DESKTOP_CURRENT_PAGE");var CAR=_.eY(function(y){var W=y.data;var V=_.e("force_active_time_logging_webview"),w=!1,t=new DeR,F=void 0,I=void 0,P=_.hs().resolve(Skq),C=new MOr,d=void 0,L=void 0,z=[],c=void 0,K=void 0,f=!1,U=!1,l=!1,x=!1,B=new _.UT,r=_.hs().resolve(b1R),H=_.hs().resolve(_.FP),a=_.hs().resolve(_.eX(kt)),b,Fv=(b=_.hs().resolve(_.eX(_.Fy6)))==null?void 0:b.getCurrentPage(),Py=!1,du=0,mL=function(Xv){Xv.preventDefault();return Xv.returnValue=""},un;
y=_.N(_.M1(!((un=_.SL("yt-mini-app-is-audio-enabled"))!=null&&!un),void 0,"cGaEvf"));var hv=y.next().value,$P=y.next().value,sz;un=_.N(_.M1(!((sz=_.SL("exit-mini-app-seen-state"))==null||!sz),void 0,"DctXGe"));var Wz=un.next().value,mf=un.next().value;sz=_.N(_.M1(!1,void 0,"pU1jdd"));var OE=sz.next().value,Qj=sz.next().value;sz=_.N(_.M1(void 0,void 0,"ldLqDf"));var Kq=sz.next().value,zR=sz.next().value;sz=_.N(_.M1(void 0,void 0,"mdofE"));var l2=sz.next().value,lt=sz.next().value;sz=_.N(_.M1(!0,void 0,
"T1gxCf"));var yu=sz.next().value,Na=sz.next().value;sz=_.N(_.M1(!1,void 0,"gxt7wf"));var F6=sz.next().value,TR=sz.next().value;sz=_.N(_.M1(void 0,void 0,"yqLV6d"));var eP=sz.next().value,hA=sz.next().value;sz=_.N(_.M1(0,void 0,"l6CrGf"));var jQ=sz.next().value,Fy=sz.next().value,Wd=_.I0("mini-app-container-view-model"),Pz=function(){return W().isEmbeddedInWebview},b2=function(){return W().hasPlayNextShelf};
vl("yt-page-type-changed",function(Xv){if(_.e("enable_is_mini_app_page_active_bugfix"))Xv.detail.newPageSubtype==="mini_app"&&Xv.detail.newPageType==="ytd-browse"||!yu()||u2();else if(Xv=_.Bbv()==="mini_app",Xv!==yu())if(Na(Xv),Xv){var dW;Xv=(dW=W().playableId)==null?void 0:dW.toString();Xv!==void 0&&window.location.href.includes(Xv)&&!U&&(x=!0,vd(),eQ.value&&oG(eQ.value))}else Xv||u2()});
vl("yt-action",function(Xv){Xv.detail.actionName==="yt-engagement-panel-visible-changed"&&Xv.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Xv.detail.args[2]==="PAmini_app_panel"&&u2();_.e("enable_is_mini_app_page_active_bugfix")?Xv.detail.actionName==="yt-history-load"&&!yu()&&(Fv==null?0:Fv.active)?(Na(!0),vd(),eQ.value&&oG(eQ.value)):Xv.detail.actionName==="yt-history-load"&&yu()&&!W().isEmbeddedInWebview&&MG():yu()&&Xv.detail.actionName==="yt-history-load"&&(x?x=!1:W().isEmbeddedInWebview||
MG())});
_.XT(function(){Mr()});
_.H1(function(){vd()},"PiwKsd");
var vd=function(){var Xv=W().playableId,dW=W().localReleaseId,Hd=W().derivedDeviceInterface;if(U)_.rQ(new _.Js("[MiniAppContainerViewModel] onEnter was called more than once"));else{U=!0;F=new LQJ(Xv,dW,Hd,document.visibilityState==="visible");hcR(F);I=new Ykf(Xv);Evs(P,Xv);qkm(C,{showMiniAppAdCommand:W().showMiniAppAdCommand,isEmbeddedInWebview:W().isEmbeddedInWebview,playLogger:F});gCv()&&(K=document.body.style.backgroundColor,_.Wg(document.body,"background-color","black"));x_();i2();B=new _.UT;
if(W().isEmbeddedInWebview){if(Xv=(new URLSearchParams(window.location.search)).get("postPlayNonce"))ciQ(F,Xv),Py=!0;t.initialize({onAudioStateLoaded:function(VG){Ce(VG)},
onMuteMiniApp:function(){Ce(!1)},
onUnmuteMiniApp:function(){Ce(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(VG){Py||(ciQ(F,VG),Py=!0)},
confirmExitMiniApp:function(){var VG,dU,DS;return _.g(function(Ku){if(Ku.nextAddress==1)return W().confirmExitMiniAppCommand?Ku.yield(Promise.race([B.promise,Promise.resolve(!1)]),2):Ku.return();(VG=Ku.yieldResult)?!W().confirmExitMiniAppCommandEdu||(DS=(dU=Wz)==null?void 0:dU())!=null&&DS?U9(W().confirmExitMiniAppCommand):(U9(W().confirmExitMiniAppCommandEdu),_.ui("exit-mini-app-seen-state","true",2592E6)):U9(W().closeMiniAppCommand);_.B7(Ku)})},
onNativeBenchmarkingMessageReceived:function(VG){VG=iFQ(_.HZv(VG));if(_.Ad(VG,_.yW,3,oeq)){var dU=_.ZT(VG,_.yW,3,oeq),DS=XJv();var Ku=Qc(DS.getSeconds())-Qc(dU.getSeconds());dU=_.Ka(DS,2)-_.Ka(dU,2);Ku<0&&dU>0?(Ku+=1,dU-=1E9):Ku>0&&dU<0&&(--Ku,dU+=1E9);Ku=(new Cw).setSeconds(Ku);Ku=_.d3(Ku,2,_.fe(dU),0);_.sx(VG,1,Ku)}var dg;(dg=L)==null||dg.returnNativeBenchmarkingMessage(VG)},
multiplayer3pAckStateLoaded:function(VG){MG(VG)},
exitMiniAppSeenStateLoaded:function(VG){W().confirmExitMiniAppCommandEdu&&mf(VG)},
onNavigateToNewMiniApp:function(){U9(W().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(VG){VG=new URLSearchParams(VG);var dU=void 0;VG.has("invite_code")&&(dU=new u_q,VG=VG.get("invite_code"),dU=_.jD(dU,1,VG));if(VG=dU){var DS;(DS=L)==null||DS.sendGameData(VG)}},
onPauseMiniApp:function(){w=!0;ov()},
onResumeMiniApp:function(){w=!0;v7()},
onAdFinished:function(VG){C.onAdFinished(VG)}});
W().showMultiplayer3pConsentDialogCommand||B.resolve(!0);U9(W().onContainerReadyCommand)}else ciQ(F),B.resolve(!0);B2K(I,zci(F));zci(F).then(function(VG){VG={miniAppPlayData:{postPlayNonce:VG}};var dU,DS=(dU=W().loggingDirectives)==null?void 0:dU.trackingParams;DS&&_.BC().stateChanged(DS,VG)});
Xv=W().showSignInDialogCommand;!rKu()&&Xv&&(_.ui("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),U9(Xv));W().confirmExitMiniAppCommand&&a&&(Xv=$pn(W().confirmExitMiniAppCommand))&&(a.customConfirmationCommand=Xv)}},Mr=function(){K&&_.Wg(document.body,"background-color",K);
f=!1;c&&c.release();I.flush().catch(function(Xv){_.rQ(Xv)});
P.flush().catch(function(Xv){_.rQ(Xv)});
KQJ(F);YR();L=void 0;NsR(r)},u2=function(){Na(!1);
Mr();Qj(!1);hA(void 0);zR(void 0);lt(void 0);du=0;Fy(0);U=!1},ov=function(){var Xv;
(Xv=L)==null||Xv.onPause();c&&c.release();I.flush().catch(function(dW){_.rQ(dW)});
P.flush().catch(function(dW){_.rQ(dW)});
ojE(F)},v7=function(){var Xv;
(Xv=L)==null||Xv.onResume();i2();Xv=F;Xv.isForeground=!0;Nz(Xv,"PLAY_EVENT_TYPE_PLAY_RESUME")},Ce=function(Xv){var dW;
(dW=L)==null||dW.onAudioToggled(Xv);$P(Xv)},MG=function(Xv){W().showMultiplayer3pConsentDialogCommand&&(W().isEmbeddedInWebview&&Xv!==void 0&&B.resolve(Xv),!Xv&&_.Bbv()==="mini_app"&&U9(W().showMultiplayer3pConsentDialogCommand))},b5=function(){var Xv,dW,Hd,VG;
return _.g(function(dU){if(dU.nextAddress==1){!W().isLivestream||W().disableVideoCapture||(Xv=L)!=null&&Xv.sendStartGameFrameCapture();dW=(new URL(window.location.href)).searchParams;if(dW.has("invite_code")){var DS=new u_q,Ku=dW.get("invite_code");Hd=_.jD(DS,1,Ku);(VG=L)==null||VG.sendGameData(Hd)}OE()||(Qj(!0),DS=F,DS.state!==1?_.rQ(new _.Js("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+vjE[DS.state])):(_.fB("mini_app_ids_without_game_ready").includes(DS.JSC$16744_miniAppId)&&(DS.gameReady=
!0),DS.state=2,DS.beforeReady=!1,EG(DS,"ma_ffr"),Nz(DS,"PLAY_EVENT_TYPE_PLAY_READY")));return dU.yield(B.promise,2)}U9(W().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();W().isEmbeddedInWebview||MG();_.B7(dU)})},GR=function(){var Xv=F;
Xv.gameReady=!0;EG(Xv,"ma_gr")},ne=function(Xv){var dW;
return _.g(function(Hd){if(Hd.nextAddress==1)return _.l7(Hd,2),Hd.yield(RcA(I,Xv),4);if(Hd.nextAddress!=2)return _.E6(Hd,0);dW=_.YX(Hd);U9(W().showSavingErrorPopupCommand);throw dW;})},FM=function(){var Xv,dW;
return _.g(function(Hd){if(Hd.nextAddress==1)return _.l7(Hd,2),Hd.yield(Jiz(I),4);if(Hd.nextAddress!=2)return Xv=Hd.yieldResult,Hd.return(Xv);dW=_.YX(Hd);U9(W().showLoadingErrorDialogCommand);throw dW;})},Ex=function(Xv){F.logError(Xv)},BM=function(Xv,dW,Hd){i1A(F,Xv,dW,Hd)},qG=function(Xv,dW){T2m(F,Xv,dW)},bh=function(){!V&&W().isEmbeddedInWebview||_.cp();
pjz(F,!0);f||(window.addEventListener("beforeunload",mL,{capture:!0}),f=!0)},bz=function(Xv){var dW,Hd,VG,dU,DS,Ku,dg;
return _.g(function(GW){if(GW.nextAddress==1)return P&&(!d||d<Xv)&&Xv>0?GW.yield(IyE(P,Xv),3):GW.jumpTo(0);dW=GW.yieldResult;Hd=_.N(dW);VG=Hd.next().value;dU=Hd.next().value;DS=VG;Ku=dU;((dg=DS)==null?0:dg.displayString)&&Ku&&(zR(Ku),lt(DS.displayString));_.B7(GW)})},tU=function(Xv){var dW=W().onBenchmarkingMessageReceivedCommand;
if(dW){var Hd=XJv();_.A_(Xv,3,oeq,Hd);Wm(dW,fTq(Xv))}},Qm=function(Xv){var dW=W().onGameFrameReceivedCommand;
if(dW){var Hd=new r1;var VG=new v$6;var dU=HX(Xv,1);VG=_.sg(VG,1,dU);Xv=_.aX(Xv,2);Xv=_.jD(VG,2,Xv);Hd=_.sx(Hd,2,Xv);Wm(dW,cRR(Hd))}},TG=function(Xv){var dW=W().onGameAudioDataReceivedCommand;
if(dW){var Hd=new r1;var VG=new LFr;Xv=_.aX(Xv,1);VG=_.jD(VG,1,Xv);Hd=_.sx(Hd,4,VG);Wm(dW,cRR(Hd))}},YP=function(){var Xv=new URLSearchParams(window.location.search);
if(W().isEmbeddedInWebview&&Xv&&Xv.get("override_hl")==="true"&&Xv.get("hl"))return Xv.get("hl");Xv=document.documentElement.lang;return Xv!==""?Xv:_.tx},Hy=function(Xv){var dW=W().onShareInviteCodeCommand;
if(dW)if(W().isEmbeddedInWebview){var Hd=new g06;Xv=_.jD(Hd,1,Xv);Wm(dW,CTE(Xv))}else Hd=W().inviteCodeShareClientParamIdentifier,r.clientParams.set(Hd,{miniAppClientParams:{inviteCode:Xv}}),U9(dW)},pq=function(Xv){var dW,Hd,VG;
return _.g(function(dU){if(dU.nextAddress==1)return dW=W().onMiniAppOpenYtContentRequested,P&&_.e("enable_open_yt_content")&&dW?dU.yield(gvE(P,Xv),3):dU.jumpTo(0);Hd=dU.yieldResult;if(Hd==="OK")if(W().isEmbeddedInWebview){var DS=new g$f;VG=Ug(DS,2,G6,Bd(Xv));Wm(dW,Oos(VG))}else H.clientData.set("video_id",Xv),U9(dW);_.B7(dU)})},Pd=function(Xv){du+=_.Ka(Xv,3);
Xv=Math.min(Math.log(1+du/15E6*9)/Math.log(10),.99);Fy(Xv);xR(Xv)},xR=_.B8(function(Xv){var dW=W().updateLoadingProgressCommand;
if(dW){var Hd=new g$f;Xv=Ug(Hd,3,G6,_.O3(Xv));Wm(dW,Oos(Xv))}},100),Ke=function(Xv){return ucs(C,Xv)},i2=function(){var Xv,dW;
((Xv=_.ifR())==null?void 0:(dW=Xv.wakeLock)==null?void 0:dW.request)!=null&&_.ifR().wakeLock.request("screen").then(function(Hd){c=Hd}).catch(function(){})},eQ=_.gS("iframe");
_.H1(function(){W().isSupportedCountry&&(rKu()||_.e("enable_sign_in_promo")||!W().showSignInDialogCommand?eQ.value&&oG(eQ.value):U9(W().onMiniAppReadyCommand))},"XK60ib");
var ut=function(){return _.O("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return OE()?0:-1},
el:eQ})},oG=function(Xv,dW){dW=dW===void 0?!1:dW;
var Hd=vz();Hd&&(dW||Hd.toString()!==Xv.getAttribute("src"))&&(L=wTn(W().source,{isAudioEnabled:hv,onFirstFrameReady:b5,onGameReady:GR,onSave:ne,onLoad:FM,onError:Ex,onSdkCalled:BM,onSdkPerformanceUpdate:qG,onClick:bh,onSendHighScore:bz,onBenchmarkingMessageReceived:tU,getLanguage:YP,onShareInviteCode:Hy,onResourceLoaded:Pd,onOpenYTContent:pq,onShowMiniAppAd:Ke,onGameFrameReceived:Qm,onGameAudioReceived:TG},Xv,Hd),jY(Xv,"load",function(){EG(F,"ma_il");jY(Xv,"load",function(){oG(Xv,!0)})}),_.g$(Xv,
Hd))},vz=function(){var Xv=W().url;
if(Xv&&(Xv=_.X1(Xv),Xv!==null)){if(W().source&&W().source==="MINI_APP_SOURCE_GAMESNACKS")Xv=_.mb(Xv,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.e("enable_origin_query_parameter_bugfix")){var dW=_.Hm(_.IFz(Xv.toString()));dW=new URLSearchParams(dW||"");dW.set("origin",window.location.origin);dW=dW.toString();Xv=_.$R(Xv).toString();Xv=_.jh(SEE.exec(Xv)[0]+(dW.trim()?"#"+dW:""))}return Xv}},TC=function(){var Xv={};
Xv=_.kS("yt-mini-app-container-view-model__loading-screen",(Xv["yt-mini-app-container-view-model__loading-screen--fade-out"]=OE,Xv));var dW=function(){return OE()?1:jQ()};
return _.O("div",{class:Xv},_.O(_.Q7,{data:function(){return W().splashScreen}},{miniAppSplashScreenViewModel:function(Hd){return _.O(riR,{data:Hd.data,
loadingProgress:dW})}}))},x_=function(){z=[];
z.push(_.XZ(window,"visibilitychange",function(){l||w&&Pz()||(document.visibilityState==="visible"?v7():ov())}));
z.push(_.XZ(window,"pagehide",function(){Mr()}));
z.push(_.XZ(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Wd.value.dispatchEvent(new Event("tap"))},0)}));
z.push(_.XZ(Wd.value,"pointerdown",function(){pjz(F,!1)},!0));
z.push(_.XZ(Wd.value,"pause",function(){l=!0;ov()}));
z.push(_.XZ(Wd.value,"play",function(){l=!1;v7()}));
z.push(_.XZ(Wd.value,"exit",function(){Mr()}));
var Xv=navigator.keyboard,dW=Xv&&Xv.lock;z.push(_.XZ(window,n1z,function(){TR(X9Q());X9Q()?(W().hasPlayNextShelf&&Z2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Qi("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),dW&&Xv.lock(["Escape"])):(W().hasPlayNextShelf&&Qi("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Z2("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),dW&&Xv.unlock())}));
W().showMultiplayer3pConsentDialogCommand&&z.push(_.XZ(window,"yt-playables-ack-3p-data-usage",function(){PAi(P)}));
W().confirmExitMiniAppCommandEdu&&z.push(_.XZ(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ui("exit-mini-app-seen-state","true",2592E6)}));
W().onGameAudioDataReceivedCommand&&z.push(_.XZ(window,"message",function(Hd){Hd=Hd.event_;var VG,dU=(VG=eQ.value)==null?void 0:VG.src;if(dU&&Hd.origin===(new URL(dU)).origin&&Hd.data&&Hd.data.type==="GAME_AUDIO"&&Hd.data.audio&&Hd.data.audio.length>0)if(_.e("enable_sending_unwrapped_game_audio_as_serialized_metadata"))Wm(W().onGameAudioDataReceivedCommand,Hd.data.audio);else{var DS=new FileReader;DS.onload=function(){var Ku=new r1;var dg=new LFr;dg=_.jD(dg,1,DS.result);Ku=_.sx(Ku,4,dg);Wm(W().onGameAudioDataReceivedCommand,
cRR(Ku))};
DS.readAsDataURL(new Blob([Hd.data.audio]))}}))},YR=function(){z.forEach(function(Xv){$c(Xv)});
window.removeEventListener("beforeunload",mL,{capture:!0})},U9=function(Xv){Xv&&HLz(Xv,W().isEmbeddedInWebview||!1)},Qi=function(Xv,dW){Xv=_.N(Wd.value.getElementsByClassName(Xv));
for(var Hd=Xv.next();!Hd.done;Hd=Xv.next())Hd.value.classList.add(dW)},Z2=function(Xv,dW){Xv=_.N(Wd.value.getElementsByClassName(Xv));
for(var Hd=Xv.next();!Hd.done;Hd=Xv.next())Hd.value.classList.remove(dW)};
return function(){var Xv={};Xv=_.kS("yt-mini-app-container-view-model",(Xv["yt-mini-app-container-view-model--desktop"]=!0,Xv["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Xv["yt-mini-app-container-view-model--ios-web-view"]=gCv(),Xv["yt-mini-app-container-view-model--no-top-bar"]=function(){return!W().topBar},Xv["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return W().hasPlayNextShelf},Xv["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return W().hasPlayNextShelf},Xv["yt-mini-app-container-view-model--show-peek-below"]=function(){return!F6()&&W().hasPlayNextShelf},Xv));
var dW={};dW=_.kS("yt-mini-app-container-view-model__content",(dW["yt-mini-app-container-view-model__content--desktop-content"]=!0,dW["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},dW["yt-mini-app-container-view-model--desktop-play-page"]=function(){return W().hasPlayNextShelf},dW));
return _.O("mini-app-container-view-model",{el:Wd},_.O("div",{class:Xv},_.O(_.v,{cond:function(){return W().topBar&&!F6()},
then:function(){return _.O(_.Q7,{data:function(){return W().topBar}},{miniAppTopBarViewModel:function(Hd){return _.O(trs,{data:Hd.data,
isAudioEnabled:hv,onAudioToggled:function(VG){Ce(VG)},
score:Kq,formattedScore:l2,onScoreChanged:function(VG){d=VG},
isEmbeddedInWebview:Pz,isSaved:eP,onSaveToggled:function(VG){hA(VG)},
isExitMiniAppSeen:Wz,isDesktopPlayPage:b2})}})}}),_.O("div",{class:dW},_.O(_.v,{cond:yu,
then:function(){return ut()}}),_.O(_.v,{cond:function(){return!W().isEmbeddedInWebview},
then:function(){return TC()}}))))}()},"le");
CAR.idomCompat=!0;_.iF(CAR,"mini-app-container-view-model",{props:{data:_.vB}});var OCi=_.eY(function(y){var W=y.data;return _.O("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.O("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.YS(function(){var V=W().onTap;V&&_.Id(V)})},_.O(_.v,{cond:function(){return W().icon},
then:function(V){return _.O(_.jl,{icon:function(){return V().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.O("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return W().title})))},"me");
OCi.idomCompat=!0;var vvA=_.eY(function(y){var W=_.I0("div"),V=_.N(_.M1(void 0,void 0,"kFCJ0c")),w=V.next().value,t=V.next().value;V=_.N(_.M1(void 0,void 0,"PIPgWd"));var F=V.next().value,I=V.next().value;V=_.N(_.M1(void 0,void 0,"rV66ob"));var P=V.next().value,C=V.next().value,d=function(){var x=w();return x!==void 0?Math.abs(x):void 0},L=function(){var x=d();
return x===void 0||x<=3},z=function(){var x=d();
var B=F(),r=P();x=x!==void 0&&B!==void 0&&r!==void 0?B-r-x:void 0;return x===void 0||x<=3},c=function(x){W.value&&W.value.scrollBy({top:0,
left:(_.yC("HTML_DIR")==="rtl"?-1:1)*x*W.value.clientWidth,behavior:"smooth"})},K=function(){var x;
t((x=W.value)==null?void 0:x.scrollLeft);var B;I((B=W.value)==null?void 0:B.scrollWidth);var r;C((r=W.value)==null?void 0:r.clientWidth)},f=function(){c(-.5)},U=function(){c(.5)};
V=_.YS(function(){K()});
_.HV(function(){K();if(W.value){var x=new ResizeObserver(K);x.observe(W.value);_.XT(function(){x.disconnect()})}});
var l={};return _.O("yt-sponsorships-scrollable-shelf",{class:_.kS("ytdSponsorshipsScrollableShelfHost",y.className)},_.O("div",{class:_.kS("ytdSponsorshipsScrollableShelfContent",(l.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return y.data().previousButton&&y.data().nextButton&&!L()&&!z()},l.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return y.data().previousButton&&!L()&&z()},l.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return y.data().nextButton&&
L()&&!z()},l)),
el:W,"on:scroll":V},y.children),_.O(_.v,{cond:function(){return!L()},
then:function(){return _.O(_.Q7,{data:function(){return y.data().previousButton}},{buttonViewModel:function(x){return _.O(_.lk,{data:x.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:f})}})}}),_.O(_.v,{cond:function(){return!z()},
then:function(){return _.O(_.Q7,{data:function(){return y.data().nextButton}},{buttonViewModel:function(x){return _.O(_.lk,{data:x.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:U})}})}}))},"ne");
vvA.idomCompat=!0;var LyA=_.eY(function(y){var W=y.data;y={};return _.O("yt-sponsorships-hub",{class:_.kS("ytdSponsorshipsHubHost",(y.ytdSponsorshipsHubHostIndented=function(){return W().indented},y))},_.O("div",{class:"ytdSponsorshipsHubHeader"},_.O("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.O("div",{class:"ytdSponsorshipsHubAvatar"},_.O(_.Q7,{data:function(){return W().avatar}},{avatarViewModel:_.ra})),_.O(_.v,{cond:function(){return W().badgeImage},
then:function(V){return _.O("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.O("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.O("div",{class:"ytdSponsorshipsHubBadge"},_.O(_.ca,{data:V,targetWidth:24,targetHeight:24,alt:""}))))}})),_.O("div",{class:"ytdSponsorshipsHubDetails"},_.O("div",{class:"ytdSponsorshipsHubTierName"},function(){return W().tierName}),_.O("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return W().membershipType}),_.O("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return W().membershipDurationOrExpiry})),_.O("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.O(_.Q7,{data:function(){return W().manageButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.O(_.Q7,{data:function(){return W().actionMenuButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.O("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return W().perksTitle}),_.O(vvA,{data:function(){return{previousButton:W().previousPerkButton,
nextButton:W().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.O("div",{class:"ytdSponsorshipsHubPerkCards"},_.O(_.Q7,{data:function(){return W().perkCards}},{sponsorshipsHubPerkCardViewModel:OCi}),_.O(_.v,{cond:function(){return W().viewAllPerksButton},
then:function(V){return _.O(dSq,{data:V})}}))))},"oe");
LyA.idomCompat=!0;var dSq=_.eY(function(y){var W=y.data;return _.O("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.O(_.Q7,{data:function(){return W().button}},{buttonViewModel:_.lk}),_.O("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.O("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return W().title}),_.O("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return W().subtitle})))},"pe");
dSq.idomCompat=!0;_.iF(LyA,"yt-sponsorships-hub",{props:{data:_.vB}});_.zHA=_.eY(function(y){var W=y.data;return _.O("yt-dual-avatar-view-model",{class:_.kS("ytDualAvatarViewModelHost",y.className),style:_.Rd({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var V;return((V=W().badgeCutoutRadius)!=null?V:14)+"px"}})},_.O("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.O(_.Q7,{data:function(){return W().startAvatar}},{avatarViewModel:_.ra}),_.O(_.Q7,{data:function(){return W().endAvatar}},{avatarViewModel:_.ra})),_.O(_.Q7,{data:function(){return W().badge}},
{contentPreviewImageViewModel:function(V){return _.O("div",{class:"ytDualAvatarViewModelBadge"},_.O(_.f9,{data:V.data}))}}))},"qe");
_.zHA.idomCompat=!0;var eH6=_.eY(function(y){var W=y.data;var V,w=!((V=_.hs().resolve(_.eX(_.va)))==null||!V());y=_.DZ(function(){var L,z,c=w?(L=W().header)==null?void 0:L.backgroundColorDarkMode:(z=W().header)==null?void 0:z.backgroundColorLightMode;if(c!==void 0)return _.wg(c)},void 0,"UX2G6c");
V=_.DZ(function(){var L,z;return w?(L=W().header)==null?void 0:L.backgroundImagePart1Dark:(z=W().header)==null?void 0:z.backgroundImagePart1Light},void 0,"GPAi1d");
var t=_.DZ(function(){var L,z;return w?(L=W().header)==null?void 0:L.backgroundImagePart2Dark:(z=W().header)==null?void 0:z.backgroundImagePart2Light},void 0,"nboJld"),F=_.DZ(function(){return _.yC("HTML_DIR")==="rtl"},void 0,"LGJceb"),I=_.I0("yt-sponsorships-perks-list"),P=!1,C=function(){var L=I.value;
if(L&&!P){var z,c=(z=L.parentElement)==null?void 0:z.parentElement;if(c)for(L=L.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),z=0;z<L.length;++z){var K=L[z];if(K instanceof HTMLElement){c.scrollTo({top:K.offsetTop+K.clientHeight/2-c.clientHeight/2,behavior:"smooth"});P=!0;break}}}};
_.a8(function(){var L=I.value;if(L){var z=new ResizeObserver(C);z.observe(L);_.XT(function(){z.disconnect()})}});
var d={};return _.O("yt-sponsorships-perks-list",{el:I,class:_.kS("ytdSponsorshipsPerksListHost",(d.ytdSponsorshipsPerksListHorizontalPadding=function(){return W().horizontalPaddingEnabled},d))},_.O("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.O("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Rd({"background-color":y})},_.O("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.O(_.v,{cond:V,then:function(L){var z={};return _.O("div",{class:_.kS((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,z.ytdSponsorshipsPerksListFlipped=F,z))},_.O(_.ca,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.O("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.O(_.v,{cond:t,
then:function(L){var z={};return _.O("div",{class:_.kS((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,z.ytdSponsorshipsPerksListFlipped=F,z))},_.O(_.ca,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.O("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.O(_.Q7,{data:function(){var L;
return(L=W().header)==null?void 0:L.dualAvatar}},{dualAvatarViewModel:_.zHA})))),_.O("div",{class:"ytdSponsorshipsPerksListBody"},_.O("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return W().title}),_.O(_.v,{cond:function(){return W().perks},
then:function(L){return _.O(_.YV,{each:L},function(z,c){var K={};return _.O("div",{class:_.kS("ytdSponsorshipsPerksListPerkContainer",(K.ytdSponsorshipsPerksListSelectedPerk=function(){var f=c(),U=W().selectedPerkIndex;return f===U},K))},_.O(_.v,{cond:function(){return c()>0},
then:function(){return _.O("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.O("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.O(_.v,{cond:function(){return z.icon},
then:function(f){return _.O(_.jl,{icon:function(){return f().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.O("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.O("div",{class:"ytdSponsorshipsPerksListPerkTitle"},z.title),_.O("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.O(_.Lv,{text:z.description})),_.O(_.v,{cond:function(){return z.instructions},
then:function(){var f,U;return _.O("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.O("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(f=z.instructions)==null?void 0:f.title),_.O("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.O(_.Lv,{text:(U=z.instructions)==null?void 0:U.text})))}}))),_.O(_.v,{cond:function(){return z.emoji},
then:function(f){return _.O("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.O(_.YV,{each:function(){return f()}},function(U){return _.O(_.ca,{data:U,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.O(cJz,{data:z}))})}})))},"re");
eH6.idomCompat=!0;var cJz=_.eY(function(y){var W=y.data;var V=function(I,P){return I===P},w=function(){var I=W();
I=_.h(I==null?void 0:I.badgesShelf,hYz);return I!==void 0&&I!==null?I:{previousButton:{},nextButton:{}}},t=_.gS("div"),F=function(){var I=t.value;
if(I){var P=I.parentElement;if(P){I=I.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var C=0;C<I.length;++C){var d=I[C];if(d instanceof HTMLElement){P.scrollTo({left:d.offsetLeft+d.clientWidth/2-P.clientWidth/2,behavior:"instant"});break}}}}};
_.a8(function(){var I=t.value;if(I){var P=new ResizeObserver(F);P.observe(I);_.XT(function(){P.disconnect()})}});
return _.O("div",null,_.O(_.v,{cond:function(){return W().badges},
then:function(I){return _.O(vvA,{data:w},_.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:t},_.O(_.YV,{each:function(){return I()}},function(P,C){var d={},L={},z={};
return _.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.O(_.v,{cond:function(){return C()>0},
then:function(){return _.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.O("div",{class:_.kS("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return V(C(),W().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!V(C(),W().currentBadgeIndex)},d))},_.O("div",{class:_.kS("ytdSponsorshipsPerksListLoyaltyBadge",(L.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return V(C(),
W().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!V(C(),W().currentBadgeIndex)},L))},_.O(_.v,{cond:function(){return P.image},
then:function(c){var K={};return _.O("div",{class:_.kS((K.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return V(C(),W().currentBadgeIndex)},K.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!V(C(),W().currentBadgeIndex)},K))},_.O(_.ca,{data:c,
alt:""}))}})),_.O("div",{class:_.kS("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return V(C(),W().currentBadgeIndex)},z))},P.title)))})))}}))},"se");
cJz.idomCompat=!0;_.iF(eH6,"yt-sponsorships-perks-list",{props:{data:_.vB}});_.iF(_.eY(function(y){return _.O("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.O(_.v,{cond:function(){return y.data().image},
then:function(W){return _.O(_.ca,{className:"ytwFantasyEmptyStateViewModelImage",data:W,ariaHidden:!0,alt:""})}}),_.O(_.Lv,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return y.data().title}}),_.O(_.Lv,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return y.data().subtitle}}),_.O(_.Q7,{data:function(){return y.data().primaryButton}},{buttonViewModel:function(W){return _.O(_.lk,{data:W.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.vB}});var hHf;var CZv=_.nn({buttonRenderer:_.dX});_.zY(OZj);_.Sl(OZj,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var vR=function(){var y=_.u.apply(this,arguments)||this;y.hideJoinButtonBeforeSubscribed=_.e("hide_join_button_before_subscribed");y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return y};
_.p(vR,_.u);_.E=vR.prototype;_.E.hasShowDialogCommand=function(y){return!!_.h(y,TdK)};
_.E.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"}}}};
_.E.updateJoinButtonOverrides=function(){var y,W;(y=_.i6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(W=y.polymerController)==null||W.set("overrides",this.joinButtonOverrides);if(y=_.i6(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))y.overrides=this.joinButtonOverrides};
_.E.handleButtonRefreshAction=function(y){if(y=_.h(y,Svz))this.set("data.membershipButton",y.membershipButton),this.notifyPath("data.membershipButton")};
_.E.onYtServiceRequestError=function(y){_.ey(this.hostElement,y.detail.error.message)};
_.E.onTap=function(){var y;(y=this.data)!=null&&y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.E.handleUnsubscribeAction=function(){var y,W,V;((y=this.data)==null?void 0:(W=y.membershipButton)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.style)==="STYLE_PRIMARY"&&_.i6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.CM.Object.defineProperties(vR.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.subscriptionStateEntity)==null||!y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.membershipButton,V;y=(W==null?void 0:W.buttonRenderer)||_.h(W==null?void 0:(V=W.timedAnimationButtonRenderer)==null?void 0:V.buttonRenderer,_.wz);return(y==null?void 0:y.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(y==null?void 0:y.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(y==null?void 0:y.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var y;if(this.hasShowDialogCommand((y=this.data)==null?void 0:y.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var y;if(this.hasShowDialogCommand((y=this.data)==null?void 0:y.navigationEndpoint))return"button"}}});
vR.prototype.onTap=vR.prototype.onTap;vR.prototype.onYtServiceRequestError=vR.prototype.onYtServiceRequestError;vR.prototype.updateJoinButtonOverrides=vR.prototype.updateJoinButtonOverrides;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],vR.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],vR.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.bd),_.R("design:type",Object)],vR.prototype,"ironButtonState",void 0);_.J([_.q(),_.R("design:type",Object)],vR.prototype,"data",void 0);
_.J([_.M("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],vR.prototype,"hideJoin",null);_.J([_.q(),_.R("design:type",String)],vR.prototype,"subscribeKey",void 0);_.J([_.q({selectorArgs:["subscribeKey"],selector:i0G}),_.R("design:type",Object)],vR.prototype,"subscriptionStateEntity",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vR.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.J([_.M("subscriptionStateEntity"),_.q({reflectToAttribute:!0}),_.R("design:type",Object),_.R("design:paramtypes",[])],vR.prototype,"subscribed",null);_.J([_.M("subscribed","data.membershipButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],vR.prototype,"joinButtonOverrides",null);_.J([_.M("data.navigationEndpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],vR.prototype,"channelNameTabIndex",null);
_.J([_.M("data.navigationEndpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],vR.prototype,"channelNameRole",null);_.J([_.xA("joinButtonOverrides"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vR.prototype,"updateJoinButtonOverrides",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],vR.prototype,"onYtServiceRequestError",null);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],vR.prototype,"onTap",null);_.J([_.k({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],vR);
var ovq=_.MM()(vR,"ytd-video-owner-renderer",function(){if(hHf===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);hHf=y}y=hHf;return y},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.iF(_.eY(function(y){var W=y.data;var V;y=_.N(_.M1(!((V=_.SL("yt-mini-app-is-theater-mode-enabled"))==null||!V),void 0,"CtFFDf"));var w=y.next().value,t=y.next().value;V=_.N(_.M1(!1,void 0,"pRgDfb"));var F=V.next().value,I=V.next().value;_.a8(function(){var d=_.XZ(window,n1z,function(){I(X9Q())});
_.XT(function(){$c(d)})});
var P;V=(P=_.hs().resolve(_.eX(nxr)))!=null?P:function(){return _.O("div",null)};
_.NT("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){t(!0);_.ui("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.NT("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){t(!1);_.ui("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
P={};y={};var C={};return _.O("mini-app-play-page-renderer",{class:_.kS("miniAppPlayPageRendererHost",(P.miniAppPlayPageRendererHostDetailsView=function(){return!w()},P))},_.O("div",{class:_.kS("miniAppPlayPageRendererGameContainer",(y.miniAppPlayPageRendererGameContainerDetailsView=function(){return!w()},y))},_.O(_.Q7,{data:function(){return W().containerViewModel}},{miniAppContainerViewModel:CAR}),_.O(_.v,{cond:function(){return W().channel&&W().subscribeButton},
then:function(){var d={};return _.O("div",{class:_.kS("miniAppPlayPageRendererChannelContainer",(d.miniAppPlayPageRendererHideVisibility=function(){return F()},d))},_.O(_.Q7,{data:function(){return W().channel}},{videoOwnerRenderer:function(L){return _.O(ovq,{data:L.data})}}),_.O(_.Q7,{data:function(){return W().subscribeButton}},{subscribeButtonViewModel:function(L){return _.O(_.aj,{data:L.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.O(_.v,{cond:function(){return!w()&&W().description},
then:function(){var d={};return _.O("div",{class:_.kS("miniAppPlayPageRendererMiniAppDescriptionWrapper",(d.miniAppPlayPageRendererHideVisibility=function(){return F()},d))},_.O("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return W().description}))}})),_.O("div",{class:_.kS("miniAppPlayPageRendererPlayNextContainer",(C.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!w()},C.miniAppPlayPageRendererHideVisibility=function(){return F()},C))},_.O(_.Q7,{data:function(){return W().sectionList}},
{sectionListRenderer:V})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.vB}});var dt=function(){var y=_.u.apply(this,arguments)||this;y.isSearch=!1;y.isConstrainedList=!1;y.hasChipsBar=!1;y.inReplyPanel=!1;y.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"}};y.monitorScroll=!0;y.SCROLL_ANIMATION_DURATION_MS=300;y.nextContinuation={continuationType:"sectionListContinuation"};return y};
_.p(dt,_.u);_.E=dt.prototype;
_.E.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(y){switch(y.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},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:_.e("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.e("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.E.created=function(){var y=this;this.JSC$16883_scrollAnimation=new _.ty(function(W){y.hostElement.scrollTop=W})};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.E.getItemsPath=function(){return"data.contents"};
_.E.replacePrimaryContent=function(y){this.set("data.contents",y)};
_.E.computeHasSortFilter=function(y){return!!y&&!!y.sortFilterSubMenuRenderer};
_.E.computeShouldScrollInPanel=function(y){var W;return!!(y==null?0:(W=y.scrollPaneStyle)==null?0:W.scrollable)};
_.E.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.TA(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.E.scrollToTop=function(){this.hostElement.scrollTop=0};
_.E.scrollToItemSection=function(y){if(y=this.getItemByIdentifier(y))y=this.getScrollPositionForItem(y),this.hostElement.scrollTop!==y&&this.JSC$16883_scrollAnimation.start(this.hostElement.scrollTop,y,this.SCROLL_ANIMATION_DURATION_MS)};
_.E.getItemByIdentifier=function(y){var W=this.contents.querySelectorAll("ytd-item-section-renderer");if(W&&W.length!==0){var V=Array.from(W).findIndex(function(w){return w.sectionIdentifier===y});
return W[V===-1?0:V]}};
_.E.getScrollPositionForItem=function(y){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===y)return 0;y=_.yc(y).y+this.hostElement.scrollTop-_.yc(this.hostElement).y;return Math.min(y,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.CM.Object.defineProperties(dt.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.targetId)==="browse-feedFEclips"}}});
dt.prototype.onScroll=dt.prototype.onScroll;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],dt.prototype,"ytLazyListBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],dt.prototype,"ytNextContinuationBehavior",void 0);
_.J([_.m(_.Ihf),_.R("design:type",Object)],dt.prototype,"ytBooleanLogicBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],dt.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dt.prototype,"data",void 0);_.J([_.q({value:2}),_.R("design:type",Number)],dt.prototype,"initialCount",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],dt.prototype,"autoFill",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.R("design:type",Boolean)],dt.prototype,"hasSortFilter",void 0);_.J([_.q({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.R("design:type",Boolean)],dt.prototype,"hideBottomSeparator",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.R("design:type",Boolean)],dt.prototype,"shouldScrollInPanel",void 0);
_.J([_.q(),_.R("design:type",Object)],dt.prototype,"isSearch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dt.prototype,"isConstrainedList",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],dt.prototype,"responsiveSizing",void 0);_.J([_.q(),_.R("design:type",Object)],dt.prototype,"hasChipsBar",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],dt.prototype,"pageSubtype",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],dt.prototype,"engagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],dt.prototype,"liveChatEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dt.prototype,"inReplyPanel",void 0);_.J([_.s$("#action-button"),_.R("design:type",HTMLElement)],dt.prototype,"actionButton",void 0);_.J([_.q(),_.R("design:type",Object)],dt.prototype,"scrollUpButtonData",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],dt.prototype,"engagementPanelDropdown",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],dt.prototype,"engagementPanelDialog",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],dt.prototype,"isClipList",null);_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],dt.prototype,"monitorScrollElement",void 0);_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],dt.prototype,"contents",void 0);
_.J([_.l6("scroll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onScroll",null);_.J([_.k({is:"ytd-section-list-renderer",disableElementRegistration:!0})],dt);
var Kym=_.MM()(dt,"ytd-section-list-renderer",function(){if($66===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);$66=y}y=$66;return y},{mode:1});var pbi;var iCm;var fyQ;var Tsq;var Lp=function(){return _.u.apply(this,arguments)||this};
_.p(Lp,_.u);Lp.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Lp.prototype.onLikeButtonClick=function(y){y.stopPropagation();y.preventDefault()};
_.CM.Object.defineProperties(Lp.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.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)})}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Lp.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Lp.prototype,"ytRendererStamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Lp.prototype,"data",void 0);
_.J([_.q({selectorArgs:["data.likeStatusEntityKey"],selector:FR}),_.R("design:type",Object)],Lp.prototype,"likeStatusEntity",void 0);_.J([_.M("data","likeStatusEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lp.prototype,"likeButtonRenderer",null);_.J([_.k({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Lp);
_.Y(Lp,"ytd-slim-metadata-toggle-button-renderer",function(){if(Tsq!==void 0)return Tsq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return Tsq=y},{mode:1});var zv=function(){var y=_.u.apply(this,arguments)||this;y.minimizePipBreakages=_.e("web_pip_minimize_breakages");y.showEqualizer=_.e("web_enable_playlist_video_lockup_equalizer");y.watchColorUpdate=_.e("kevlar_watch_color_update");y.actionMap={};return y};
_.p(zv,_.u);_.E=zv.prototype;_.E.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"}}}};
_.E.computeEditableClass=function(y){return y&&y.menu?"editable":""};
_.E.computeSelected=function(y){return!(y==null||!y.selected)};
_.E.computeUseColorPalette=function(y){return!!((y==null?0:y.lightColorPalette)&&(y==null?0:y.darkColorPalette))};
_.E.computeLargerPlaylistThumbs=function(y,W){return _.e("web_enable_playlist_bigger_thumbnails")&&!W};
_.E.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.E.onYtServiceRequestSent=function(y,W){W.endpoint&&this.isHideEnclosingAction(W.endpoint)&&!this.selected&&nrs(_.Ib(),this.data.videoId)};
_.E.isHideEnclosingAction=function(y){var W=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",y);y=this.get("likeEndpoint.status",y)==="INDIFFERENT";return W||y};
_.E.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.E.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.CM.Object.defineProperties(zv.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var y;return!!(this.withinMiniplayer&&((y=this.data)==null?0:y.actionButtons))}}});
zv.prototype.onYtServiceRequestSent=zv.prototype.onYtServiceRequestSent;zv.prototype.canReorderChanged=zv.prototype.canReorderChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],zv.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.gZ),_.R("design:type",Object)],zv.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"withinMiniplayer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],zv.prototype,"minimizePipBreakages",void 0);_.J([_.q({computed:"computeSelected(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"selected",void 0);
_.J([_.q({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"useColorPalette",void 0);_.J([_.q({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"largerPlaylistThumbs",void 0);_.J([_.q(),_.R("design:type",Object)],zv.prototype,"showEqualizer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"canReorder",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"touchPersistentDragHandle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],zv.prototype,"handleIsHovered",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],zv.prototype,"watchColorUpdate",void 0);_.J([_.q(),_.R("design:type",String),_.R("design:paramtypes",[])],zv.prototype,"reorderIcon",null);
_.J([_.M("largerPlaylistThumbs"),_.R("design:type",Number),_.R("design:paramtypes",[])],zv.prototype,"thumbnailWidth",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],zv.prototype,"showActionButtons",null);_.J([_.Jc("canReorder"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zv.prototype,"canReorderChanged",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],zv.prototype,"onYtServiceRequestSent",null);_.J([_.k({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],zv);
_.Y(zv,"ytd-playlist-panel-video-renderer",function(){if(fyQ!==void 0)return fyQ;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fyQ=y},{mode:2});var cR=function(){return _.u.apply(this,arguments)||this};
_.p(cR,_.u);cR.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cR.prototype,"data",void 0);_.J([_.k({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],cR);
_.Y(cR,"ytd-playlist-panel-supported-items",function(){if(iCm!==void 0)return iCm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return iCm=
y},{mode:1});H6q=!0;I6z("\\P{N}");var vzn;var mSr=_.u5("END_OF_PLAYLIST",void 0,"End of playlist"),Mrr=_.u5("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),eG=function(){var y=_.u.apply(this,arguments)||this;y.minimizePipBreakages=_.e("web_pip_minimize_breakages");y.updatedCoursePanel=_.e("move_three_dot_menu_to_playlist_panel_header_for_courses");y.hideHeaderText=!1;y.useColorPalette=!1;y.collapsed=!1;y.collapsedPreServerOverride="not_tracked";y.isHovered=!1;y.modernPanels=_.e("kevlar_watch_modern_panels");
y.expandLabel=_.u5("MINIPLAYER_EXPAND_LABEL");y.collapseLabel=_.u5("MINIPLAYER_COLLAPSE_LABEL");y.isFloating=!1;y.metaPanel=!1;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};y.currentIndex=void 0;return y};
_.p(eG,_.u);_.E=eG.prototype;
_.E.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"}}}};
_.E.created=function(){this.scrollThrottle=new _.d7(this.onThrottledScroll,1E3,this)};
_.E.onMouseEnter=function(){this.isHovered=!0};
_.E.onMouseLeave=function(){this.isHovered=!1};
_.E.computeOverflowMenuData=function(y){return y&&y.menu?y.menu:null};
_.E.computeCollapsible=function(y){return!y};
_.E.computeHasPlaylistButtons=function(y){return!(!y||!y.playlistButtons)};
_.E.computeHasSeparateSaveButton=function(y){return!(!y||!y.saveButton)};
_.E.computeHasToolbarButton=function(y,W){return!(!y||!(W||y.saveButton||y.menu))};
_.E.computePlaylistType=function(y){if(y&&y.playlistId)return y.playlistId.substring(0,4)};
_.E.computeCanReorder=function(y){return y?y.playlistId&&y.playlistId.startsWith("TLPQ")?!0:!!y.isEditable&&!y.isInfinite:!1};
_.E.attached=function(){var y=this;try{_.hs().resolve(_.wd).setPlaylistComponent(this.hostElement)}catch(W){if(_.e("kevlar_park_on_playlist_token_killswitch"))throw W;_.FS().parkOrScheduleJob(function(){_.hs().resolve(_.wd).setPlaylistComponent(y.hostElement)},2,"ci")}_.cN(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.E.detached=function(){_.eM(this.hostElement)};
_.E.computeTrailingIcon=function(y,W,V){return V?W?"yt-icons:collapse":"yt-icons:close":W?"yt-icons:expand":_.e("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.E.computeIndexMessage=function(y,W){return zo4(y+1)+" / "+zo4(W)};
_.E.onRenderStamperFinished=function(){if(this.scrollForStampDom){var y=!0;this.isHovered&&(y=!1);if(this.collapsed||this.hidden)y=!1;y&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.E.collapseChanged=function(){var y=this;this.collapsed||(_.b8(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.E.hiddenChanged=function(){var y=this;this.hidden||_.b8(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.scrollToCurrentVideo()})};
_.E.setupReordering=function(){var y=_.i6(this.hostElement).querySelector("#items");p6i?_.zNR(this.ytReorderableBehavior,y,y,"playlist-drag-handle"):_.zNR(this.ytReorderableBehavior,y,y)};
_.E.scrollToCurrentVideo=function(){var y=this;_.HU.addJob(function(){var W=_.i6(y.hostElement).querySelector("#items");if(W){W.style.setProperty("padding-bottom","");var V=_.i6(y.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(V){W=V.parentElement||_.nl(document);var w=W||_.nl(document);var t=_.yc(V),F=_.yc(w),I=_.pdE(w);if(w==_.nl(document)){var P=t.x-w.scrollLeft;t=t.y-w.scrollTop}else P=t.x-F.x-I.left,t=t.y-F.y-I.top;V=e4E(V);F=w.clientHeight-
V.height;I=w.scrollLeft;var C=w.scrollTop;I+=P-(w.clientWidth-V.width)/2;w=new _.bj(I,C+(t-F/2));W.scrollLeft=w.x;W.scrollTop=w.y}}},8)};
_.E.dataChanged=function(){var y=this;_.Lzr(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.gy(this,function(){_.Jt(y.ytTaskEmitterBehavior.getTaskManager(),function(){y.ytRendererBehavior.markDirty();y.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.E.onFullBleedPlayerChanged=function(){_.e("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.E.onFullscreenChanged=function(){_.e("web_watch_imax_theater_mode")||_.e("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.E.updateNowPlayingOverlay=function(){_.e("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.E.onPlaylistLockupNowPlaying=function(y,W){W&&(this.activeNowPlayingRenderer=W);this.updateNowPlayingOverlay()};
_.E.onScroll=function(){this.scrollThrottle.fire()};
_.E.onThrottledScroll=function(){var y=this;_.Jt(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.ytRendererBehavior.markDirty()})};
_.E.onToggleExpanded=function(y){!this.collapsible||y&&(_.vW(y).tagName==="A"||_.c5(_.O$(y),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.E.setCollapsed=function(y){this.collapsible&&(this.collapsed=y,_.Kg(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.E.handleCollapsedFromData=function(y){if(y){var W=y.playlistPanelCollapseState;W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||W==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),W=W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==W&&this.setCollapsed(W)):this.currentPlaylistId!==y.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(W=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==W&&this.setCollapsed(W),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=y.playlistId}};
_.E.handleDrop=function(y){var W=y.currDragItem;y=W.data.playlistSetVideoId;var V=_.RR(W.parentNode.childNodes,W),w=void 0;V>0&&(w=W.parentNode.childNodes[V-1].data.playlistSetVideoId);W=_.Ib();if(W.responsePlaylistData&&W.responsePlaylistData.contents){var t=YmR(y,W.responsePlaylistData);W.responsePlaylistData=(0,_.Gc.unsafeClone)(W.responsePlaylistData);idd(W.responsePlaylistData.contents,t,V);W.queueProxy?orm(W.queueProxy,t,V,y,w):W.playlistProxy&&orm(W.playlistProxy,t,V,y,w);_.gd(W,_.PP(W,W.response?
W.response.autoplayRenderer:void 0))}};
_.E.handleDarkModeChange=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
_.E.colorPaletteChanged=function(){var y,W=((y=this.data)==null?void 0:y.contents)||[],V;y=_.N(W);for(W=y.next();!W.done;W=y.next()){W=W.value;var w=void 0;if((w=W.playlistPanelVideoRenderer)==null?0:w.selected){y=W.playlistPanelVideoRenderer;w=W=void 0;(V=this.isDarkTheme?(W=y)==null?void 0:W.darkColorPalette:(w=y)==null?void 0:w.lightColorPalette)&&_.bF(this.hostElement,V);break}}this.useColorPalette=!!V};
_.CM.Object.defineProperties(eG.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.playlistId)&&!((W=this.data)==null||!W.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var y=_.hs().resolve(_.eX(_.wd)),W;if(((W=this.data)==null?0:W.contents)&&(y==null?0:y.hasAutoplayData())){var V;if(((V=this.playlistLoopStateEntity)==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ONE"){if(y=this.data.currentIndex,y!==void 0){var w,t;var F=(w=this.data.contents[y])==null?void 0:(t=w.playlistPanelVideoRenderer)==null?void 0:t.title}}else{var I,P=(I=_.h(y.getAutoplayEndpoint(),_.Iw))==null?void 0:I.videoId,C,d;F=(C=this.data.contents.find(function(L){var z;
return((z=L.playlistPanelVideoRenderer)==null?void 0:z.videoId)===P}))==null?void 0:(d=C.playlistPanelVideoRenderer)==null?void 0:d.title}return F}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)!=null&&y.nextVideoLabel?this.nextVideoTitle?_.OT(this.data.nextVideoLabel)+":":mSr:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.data)==null?0:y.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.e("web_mix_long_byline_from_data"))return _.CO(Mrr);var W;return(W=this.data)==null?void 0:W.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.playlistButtons)==null?void 0:(V=W.menuRenderer)==null?void 0:V.topLevelButtons;if(w)for(y=_.N(w),W=y.next();!W.done;W=y.next())if(W=W.value,W.playlistLoopButtonRenderer)return W.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var y;return!!(this.collapsed&&((y=this.data)==null?0:y.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.e("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
eG.prototype.colorPaletteChanged=eG.prototype.colorPaletteChanged;eG.prototype.onPlaylistLockupNowPlaying=eG.prototype.onPlaylistLockupNowPlaying;eG.prototype.updateNowPlayingOverlay=eG.prototype.updateNowPlayingOverlay;eG.prototype.onFullscreenChanged=eG.prototype.onFullscreenChanged;eG.prototype.onFullBleedPlayerChanged=eG.prototype.onFullBleedPlayerChanged;eG.prototype.dataChanged=eG.prototype.dataChanged;eG.prototype.hiddenChanged=eG.prototype.hiddenChanged;eG.prototype.collapseChanged=eG.prototype.collapseChanged;
eG.prototype.onRenderStamperFinished=eG.prototype.onRenderStamperFinished;eG.prototype.onMouseLeave=eG.prototype.onMouseLeave;eG.prototype.onMouseEnter=eG.prototype.onMouseEnter;_.J([_.m(_.Gm),_.R("design:type",Object)],eG.prototype,"ironResizableBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(vTz.YtPlaylistPanelBehavior),_.R("design:type",Object)],eG.prototype,"ytPlaylistPanelBehavior",void 0);_.J([_.m(_.et.YtTaskEmitterBehavior),_.R("design:type",Object)],eG.prototype,"ytTaskEmitterBehavior",void 0);_.J([_.m(_.c5z),_.R("design:type",Object)],eG.prototype,"ytReorderableBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],eG.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],eG.prototype,"ytdReduxBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],eG.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"autoplayData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],eG.prototype,"withinMiniplayer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"minimizePipBreakages",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"updatedCoursePanel",void 0);_.J([_.q({computed:"setMenuData_(data)"}),_.R("design:type",Object)],eG.prototype,"menuRendererData",void 0);_.J([_.q({computed:"computeOverflowMenuData(data)"}),_.R("design:type",Object)],eG.prototype,"overflowMenuDataTopRow",void 0);_.J([_.q({computed:"computeOverflowMenuData(data)"}),_.R("design:type",Object)],eG.prototype,"overflowMenuData",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"hideHeaderText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"useColorPalette",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.R("design:type",Boolean)],eG.prototype,"collapsible",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"collapsed",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],eG.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.R("design:type",Boolean)],eG.prototype,"hasPlaylistButtons",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.R("design:type",Boolean)],eG.prototype,"hasSeparateSaveButton",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.R("design:type",Boolean)],eG.prototype,"hasToolbar",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.R("design:type",String)],eG.prototype,"playlistType",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"isHovered",void 0);_.J([_.q({selectorArgs:["playlistLoopStateEntityKey"],selector:_.UQa}),_.R("design:type",Object)],eG.prototype,"playlistLoopStateEntity",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"modernPanels",void 0);_.J([_.q({value:56}),_.R("design:type",Number)],eG.prototype,"scrollMargin",void 0);_.J([_.q({computed:"computeCanReorder(data)"}),_.R("design:type",Boolean)],eG.prototype,"canReorder",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"expandLabel",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"collapseLabel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"isFloating",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eG.prototype,"metaPanel",void 0);_.J([_.q({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.R("design:type",String)],eG.prototype,"trailingIcon",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],eG.prototype,"isDarkTheme",void 0);
_.J([_.q({selector:_.bg}),_.R("design:type",Boolean)],eG.prototype,"miniplayerIsActive",void 0);_.J([_.q({selector:function(y){return y.watch.playerState}}),
_.R("design:type",Number)],eG.prototype,"playerState",void 0);_.J([_.q({selector:_.V7}),_.R("design:type",Boolean)],eG.prototype,"isFullscreen",void 0);_.J([_.q({selector:_.W5}),_.R("design:type",Boolean)],eG.prototype,"isTheaterMode",void 0);_.J([_.q(),_.R("design:type",Object)],eG.prototype,"activeNowPlayingRenderer",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eG.prototype,"moveThreeDotMenuToTopRow",null);
_.J([_.M("data","autoplayData","playlistLoopStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],eG.prototype,"nextVideoTitle",null);_.J([_.M("data","nextVideoTitle"),_.R("design:type",String),_.R("design:paramtypes",[])],eG.prototype,"nextVideoLabel",null);_.J([_.M("collapsed"),_.R("design:type",String),_.R("design:paramtypes",[])],eG.prototype,"buttonAriaLabel",null);
_.J([_.M("data","playlistId","longBylineText"),_.R("design:type",Object),_.R("design:paramtypes",[])],eG.prototype,"mixLongByLine",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eG.prototype,"playlistLoopStateEntityKey",null);_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"onMouseEnter",null);
_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"onMouseLeave",null);_.J([_.q({reflectToAttribute:!0}),_.M("data","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eG.prototype,"showNextVideoHeader",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"onRenderStamperFinished",null);
_.J([_.xA("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"collapseChanged",null);_.J([_.xA("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"hiddenChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"dataChanged",null);
_.J([_.M("isTheaterMode","isFullscreen"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eG.prototype,"isFullBleedPlayer",null);_.J([_.xA("isTheaterMode","isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"onFullBleedPlayerChanged",null);_.J([_.xA("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"onFullscreenChanged",null);
_.J([_.xA("playerState","miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"updateNowPlayingOverlay",null);_.J([_.l6("yt-playlist-lockup-now-playing-active"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],eG.prototype,"onPlaylistLockupNowPlaying",null);
_.J([_.xA("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eG.prototype,"colorPaletteChanged",null);_.J([_.k({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],eG);
_.qLE=_.MM()(eG,"ytd-playlist-panel-renderer",function(){if(pbi===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);pbi=y}y=pbi;return y},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var US6;var hy=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework");return y};
_.p(hy,_.u);hy.prototype.computeShouldButtonBeVertical=function(y,W){return y||W};
hy.prototype.onYtServiceRequestSent=function(y,W){(y=_.h(W.endpoint,_.tD))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.B5("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:y.status})):this.handleLikeEndpoint(y))};
hy.prototype.computelikeStatusEntityKey=function(y){return y==null?void 0:y.likeStatusEntityKey};
hy.prototype.handleLikeEndpoint=function(y){y.status==="LIKE"?this.JSC$16908_ytdDislikeToggleButtonRenderer.toggle(!1):y.status==="DISLIKE"?this.JSC$16908_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16908_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16908_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.CM.Object.defineProperties(hy.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var y;return ozb(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var y;if(this.data&&((y=this.data)==null||!y.hideDislikeButton)){var W;return ozb(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}}}});
hy.prototype.onYtServiceRequestSent=hy.prototype.onYtServiceRequestSent;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],hy.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hy.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],hy.prototype,"vertical",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],hy.prototype,"textTransform",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],hy.prototype,"useShortsIcon",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],hy.prototype,"underIconLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],hy.prototype,"modern",void 0);_.J([_.q({value:"left"}),_.R("design:type",String)],hy.prototype,"buttonTooltipPosition",void 0);
_.J([_.q(),_.R("design:type",Object)],hy.prototype,"overrides",void 0);_.J([_.s$("#like-button"),_.R("design:type",Object)],hy.prototype,"JSC$16908_ytdLikeToggleButtonRenderer",void 0);_.J([_.s$("#dislike-button"),_.R("design:type",Object)],hy.prototype,"JSC$16908_ytdDislikeToggleButtonRenderer",void 0);_.J([_.M("data","likeStatusEntity.likeStatus","useShortsIcon"),_.R("design:type",Object),_.R("design:paramtypes",[])],hy.prototype,"likeButton",null);
_.J([_.M("data","likeStatusEntity.likeStatus","useShortsIcon"),_.R("design:type",Object),_.R("design:paramtypes",[])],hy.prototype,"dislikeButton",null);_.J([_.q({computed:"computelikeStatusEntityKey(data)"}),_.R("design:type",String)],hy.prototype,"likeStatusEntityKey",void 0);_.J([_.q({selectorArgs:["likeStatusEntityKey"],selector:FR}),_.R("design:type",Object)],hy.prototype,"likeStatusEntity",void 0);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],hy.prototype,"onYtServiceRequestSent",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],hy);
var uEE=_.MM()(hy,"ytd-like-button-renderer",function(){if(US6===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);US6=y}y=US6;return y},{mode:1});_.SLK={};
_.SLK.YtConditionalRendererBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(y,W){var V=this,w,t;return _.g(function(F){switch(F.nextAddress){case 1:if(!W)return V.hidden=!0,V.showSpinner=!1,F.return();if((w=y)==null?0:(t=w.visibilityCondition)==null?0:t.mode)switch(y.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return F.jumpTo(5);default:return F.jumpTo(6)}V.showSpinner=
!1;V.hidden=!0;return F.yield(V.shouldShow_(y),4);case 4:V.hidden=!F.yieldResult;F.jumpTo(0);break;case 5:return F.yield(V.shouldShow_(y),8);case 8:V.showSpinner=F.yieldResult;V.hidden=!1;F.jumpTo(0);break;case 6:return V.showSpinner=!1,F.yield(V.shouldShow_(y),9);case 9:V.hidden=!F.yieldResult,_.B7(F)}})},
shouldShow_:function(y){return y&&y.supportedDatas&&y.supportedDatas.rendererVisibilityConditionData&&y.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(y.supportedDatas.rendererVisibilityConditionData.showIf):y&&y.visibilityCondition&&y.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(y.visibilityCondition.showIf):y&&y.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(y.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(y){switch(y){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(y){switch(y){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var y=_.ow(this.hostElement,"yt-get-mdx-status");return y.length==1&&y[0].connected},
isLocationPermissionGranted_:function(){var y;return _.g(function(W){return W.nextAddress==1?navigator.permissions?W.yield(navigator.permissions.query({name:"geolocation"}),3):W.jumpTo(2):W.nextAddress!=2?(y=W.yieldResult,W.return(Promise.resolve(y.state==="granted"))):W.return(Promise.resolve(!1))})}}];var DSr=function(y,W){W=W===void 0?{}:W;var V=function(w){var t=document.createElement(y),F;var I=(F=t.polymerController)!=null?F:t;xwP(t,I,w,W);return t};
V.debugName=y+" (CoW wrapped)";return V}("yt-icon"),lyJ=_.e("web_bypass_polymer_yt_icon")&&_.e("kevlar_use_wil_icons")?_.eY(function(y){var W=y.icon;
var V=y.active;var w=y.className;var t=y.style;var F=y.dataSelected;var I=y.dataDisabled;var P=y.role;var C=y.themeOverride;var d=y.animateIcon;var L=y.ariaHidden;var z=y.ariaExpanded;var c=y.ariaLabel;var K=y.tabindex;var f=y.id;var U=y.iconFilter;var l=function(){var r=W==null?void 0:W(),H=null,a=void 0;r&&(r=pOr(r),r=PHj(r),r.length&&(H=r[1],a=r[0]));return{iconName:H,iconSetName:a}},x=function(){return iUq(l().iconName,V==null?void 0:V(),void 0,void 0,l().iconSetName,_.hs().resolve(_.lE))},B=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:U==null?void 0:U()}};
return _.O(_.v,{cond:d,then:function(){return _.O(DSr,{icon:W,active:V,className:w,style:t,dataSelected:F,dataDisabled:I,role:P,themeOverride:C,ariaHidden:L,ariaExpanded:z,ariaLabel:c,tabindex:K,id:f,iconFilter:U})},
else:function(){return _.O(_.v,{cond:x,then:function(r){return _.O("span",{class:_.kS("ytIconWrapperHost",w),role:P,"aria-label":c,"aria-hidden":L,tabindex:function(){return isNaN(Number(K==null?void 0:K()))?void 0:Number(K==null?void 0:K())},
id:f,style:t},_.O(DLG,{data:r,options:B}))}})}})},"ve"):DSr;var xSQ=function(y){var W=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];SrL();_.dE("ytglobal.ytUtilActivityCallback_",function(){_.Kg(y,"yt-user-activity")});
new zD(function(){return W.JSC$16923_onMouseMove});
document.addEventListener("scroll",function(){return W.onScroll});
window.addEventListener("resize",function(){return W.onResize})},ksr=function(y,W,V){W in y.eventJobIds||(V=_.Xu().addLowPriorityJob(function(){_.cp();
delete y.eventJobIds[W]},V),y.eventJobIds[W]=V)};
xSQ.prototype.onScroll=function(y){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):y.target===document&&ksr(this,"scroll",200)};
xSQ.prototype.onResize=function(){ksr(this,"resize",200)};
xSQ.prototype.JSC$16923_onMouseMove=function(){ksr(this,"mousemove",100)};
_.eU=function(y){y.scrollEventsToIgnore+=1;y.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){y.scrollEventsToIgnore--},500))};var sm2=function(y){this.element=y;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
sm2.prototype.showFeedbackDialog=function(y,W,V,w){var t=AJA();if(!t)return!1;var F=Sab();F.productId=t;W&&(F.flow="submit",F.report={description:W});V&&(AJA()==="59"?F.callback=_.wi(function(){_.Hp("userFeedbackEvent",{});V()}):F.callback=_.wi(V));
F.bucket=w||_.yC("GOOGLE_FEEDBACK_BUCKET","Other");YLK(F);y=Bsq(this,"GFEEDBACK",y);try{_.oWJ(F,y)}catch(I){return _.VC(I),!1}return!0};
sm2.prototype.showHelpDialog=function(y,W,V){var w=this,t=AJA();if(!t)return!1;var F={helpCenterPath:"/youtube",productData:Bsq(this,"GUIDED_HELP",V)};YLK(F);var I=Sab();I.context=y||F.productData.context||"default";I.defaultHelpArticleId=W;I.enableSendFeedback=!0;(_.ts("gapi.load")||function(P,C){return C()})("client",function(){try{var P=WT6(t,F);
if(_.e("web_always_load_chat_support")&&!w.chatSupportLoaded)try{P.JSC$9902_loadChatSupport(I),w.chatSupportLoaded=!0}catch(C){}P.startHelp(I)}catch(C){_.VC(C)}})};
var AJA=function(){var y=_.yC("GOOGLE_FEEDBACK_PRODUCT_ID");y||_.VC(Error("mi"));return y},YLK=function(y){y&&(y.locale=_.e("kevlar_help_use_locale")?_.yC("INNERTUBE_CONTEXT_HL","en"):_.yC("HTML_LANG","en"))},Bsq=function(y,W,V){var w=y.productData;
delete w.origin;w.device=_.cy();var t;a:{if(t=document.createElement("canvas")){var F=t.getContext("experimental-webgl",{stencil:!0});if(F){var I=F.getExtension("WEBGL_debug_renderer_info");if(I){t=F.getParameter(I.UNMASKED_RENDERER_WEBGL);break a}}if(F=t.getContext("webgl")){t=F.getParameter(F.RENDERER);break a}}t=null}w.gpu=t;w.isSDC=!!_.yC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(t=_.yC("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Gc.extend(w,t);_.UAv(W,w);_.u5d(w);(y=_.Kg(y.element,"yt-get-autonav-pause-debug-state"))&&
y.length&&(w.autonav_pause_state=y[0]);y=_.B3();w.browser_resolution=y.width+"\u00d7"+y.height+"@"+(window.devicePixelRatio||1)+"x";V&&_.Gc.extend(w,V);return w};
sm2.prototype.resetProductData=function(){this.productData={}};var JJI=function(y){this.feedbackManager=new sm2(y)};
JJI.prototype.showFeedbackDialog=function(y,W,V,w){return this.feedbackManager.showFeedbackDialog(y,W,V,w)};
JJI.prototype.showHelpDialog=function(y,W,V){return this.feedbackManager.showHelpDialog(y,W,V)};var RHA=function(){this.baseUrl="";this.aTag=document.createElement("a")},oQJ=function(y,W,V){V=V===void 0?{}:V;
V.pbj||(V.pbj=1);V=_.zMP(W,V);y.baseUrl&&V&&!_.v4(V)[1]&&!_.di(V)&&(W=y.baseUrl,Ez(W,"/")&&(W=W.slice(0,-1)),_.tv(V,"/")&&(V=V.slice(1)),V=W+"/"+V);tX(y.aTag,QG(V||""));return y.aTag.href};
RHA.prototype.fetchData=function(y){return _.iZn(y)};
RHA.prototype.postData=function(y,W){var V={method:"POST"};if(W){for(var w=_.N(Object.keys(W)),t=w.next();!t.done;t=w.next()){t=t.value;var F=W[t];_.VK(F)&&(W[t]=JSON.stringify(F))}V.postParams=W}return _.iZn(y,V)};
_.K2Q=function(y,W,V,w,t){y=oQJ(y,W,V);if(!y)throw w=Error("ni"),Object.assign(w,{params:W}),w;return _.iZn(y,t,w)};
RHA.prototype.requestDataForServiceEndpoint=function(y,W){if(_.h(y,_.cFy))return this.fetchData("/getAccountSwitcherEndpoint");W=W||{};var V=_.h(y,$nR);V?W.se=V.base64EncodedServiceEndpoint:W.sej=JSON.stringify(y);(V=_.Xn())&&_.e("enable_service_ajax_csn")&&(W.csn=V);W.theme=_.H9();_.h(y,LYP)&&_.yC("DELEGATION_CONTEXT")&&(W.delegation_context=JSON.stringify(_.yC("DELEGATION_CONTEXT")));V=null;for(var w in y)if(Ez(w,"Endpoint")||Ez(w,"Command")){V=w;break}if(!V){var t=Error("oi");Object.assign(t,{params:y});
_.vnb(t,"WARNING");return new _.qN(function(I,P){P(t)})}w={name:V};
var F;(V=(F=_.h(y,_.q8))==null?void 0:F.signal)&&(w.signal=V);(F=_.P4(window.location.href))&&F.internalcountrycode&&(w.internalcountrycode=F.internalcountrycode);F="/service_ajax";_.e("debug_forward_web_query_parameters")&&(F=_.MMu(F,window.location.search));F=_.O1(F,w);y.clickTrackingParams&&_.On(F,{itct:y.clickTrackingParams});return this.postData(F,W)};_.jm6=new _.e9("GFEEDBACK_TOKEN");var $Ss;var nvJ;var HCJ;var Xb6;var o3=function(){var y=_.u.apply(this,arguments)||this;y.compact=!1;return y};
_.p(o3,_.u);o3.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
o3.prototype.computeHasIcon_=function(y){return!!y};
o3.prototype.isSignInIcon_=function(y){return y=="yt-icons:prompted_sign_in"};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.SLK.YtConditionalRendererBehavior),_.R("design:type",Object)],o3.prototype,"ytConditionalRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],o3.prototype,"data",void 0);
_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],o3.prototype,"icon_",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.R("design:type",Boolean)],o3.prototype,"hasIcon_",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.R("design:type",Boolean)],o3.prototype,"signInIcon_",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],o3.prototype,"compact",void 0);
_.J([_.Zp({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],o3);
_.Y(o3,"yt-player-error-message-renderer",function(){if(Xb6===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;HCJ===void 0&&(HCJ=document.createElement("template"));var w=HCJ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Xb6=y}y=Xb6;return y},{mode:2});var ayz;var GsQ;var Kp=function(){return _.u.apply(this,arguments)||this};
_.p(Kp,_.u);Kp.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Kp.prototype.computeIcon_=function(y){return y?"yt-icons:"+y.iconType.toLowerCase():"error_outline"};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Kp.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],Kp.prototype,"icon_",void 0);_.J([_.Zp({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Kp);
_.Y(Kp,"yt-player-kav-renderer",function(){if(GsQ===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ayz===void 0&&(ayz=document.createElement("template"));var w=ayz;V.call(W,w.content.cloneNode(!0),y.content.firstChild);GsQ=y}y=GsQ;return y},{mode:2});var xAv=_.CF(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.iF(_.eY(function(y){var W=_.I0("div"),V=_.N(_.M1(0,void 0,"yt0wE")),w=V.next().value,t=V.next().value;V=_.N(_.M1(null,void 0,"CnFp5"));var F=V.next().value,I=V.next().value;_.a8(function(){k1v(W.value,t,I);W.value.scrollIntoView()});
V=s9R.bind(null,y.data,w);vl("resize",function(){var P=F();if(w()===1&&P!==null){var C;(C=window.grecaptcha)==null||C.reset(P)}});
return _.O("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.O("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.O("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var P,C;return(P=y.data().accessibility)==null?void 0:(C=P.accessibilityData)==null?void 0:C.label}),_.O(_.Lv,{text:V,
className:_.kS("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.O("div",{el:W,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.p5}});var Aed=!1;_.rJR=_.eY(function(y){var W=y.data;return _.O("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.O(_.v,{cond:function(){return W().icon},
then:function(V){return _.O("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.O(_.ca,{data:V,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.O(_.v,{cond:function(){return W().title},
then:function(V){return _.O("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.O(_.Lv,{text:V}))}}),_.O(_.v,{cond:function(){return W().description},
then:function(V){return _.O("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.O(_.Lv,{text:V}))}}),_.O(_.Q7,{data:function(){return W().primaryButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.O(_.Q7,{data:function(){return W().secondaryButton}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.rJR.idomCompat=!0;var bCr=_.eY(function(y){var W=y.data;_.ID();return _.O("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.O("div",{class:"player-interstitial-renderer-wiz__scrim"},_.O(_.Q7,{data:function(){return W().content}},{interstitialViewModel:_.rJR})))},"ye");
bCr.idomCompat=!0;_.iF(bCr,"yt-player-interstitial-renderer",{props:{data:_.vB}});var pp=function(){var y=_.u.apply(this,arguments)||this;y.noBackground=!1;y.compact=!1;y.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return y};
_.p(pp,_.u);pp.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"}}}};
pp.prototype.onUpdatePlayerErrorMessageCommand_=function(y){if(_.h(y,tZi)){var W;if(y=(W=_.h(y,tZi))==null?void 0:W.newPlayerErrorMessageRenderer)this.data=y}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],pp.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pp.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],pp.prototype,"status",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pp.prototype,"noBackground",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pp.prototype,"compact",void 0);_.J([_.Zp({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],pp);
var Qmi=_.MM()(pp,"yt-playability-error-supported-renderers",function(){if(nvJ===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;$Ss===void 0&&($Ss=document.createElement("template"));var w=$Ss;V.call(W,w.content.cloneNode(!0),y.content.firstChild);nvJ=y}y=nvJ;return y},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Ya4=void 0,Jet=void 0;var $Ad=new BJq;var ZCE=function(y){this.store=y;this.nha=new _.juf},eJv=function(y,W,V){var w,t;
if(!(t=((w=W.playabilityStatus)==null?void 0:w.status)!=="OK")){y=y.store;var F;t=W.offlineState&&((F=W.videoDetails)==null?0:F.videoId)?_.e("enable_pl_r_c_cd")?ArG(y.getState().entities,W.videoDetails.videoId):!!CTz(y.getState().entities,W.videoDetails.videoId):!1}if(t)return!0;t=G1L(W);if(t===1){if(_.e("ab_v_vid_sig")){var I,P=(I=W.videoDetails)==null?void 0:I.videoId;if(!P||!V||P!==V){var C;W=new _.Js("282054944_vid",{pXY:V,wqT:(C=W.videoDetails)==null?void 0:C.videoId});_.ap(W)}}return!0}o5z=
0;var d,L;C=(P=W.auxiliaryUi)==null?void 0:(d=P.messageRenderers)==null?void 0:(L=d.bkaEnforcementMessageViewModel)==null?void 0:L.displayType;if(t!==3&&(C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||C==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;C={reason:_.oB(_.u5("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.e("ks_something_wrong_learn_more")?gHd("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.oB(_.u5("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:_.oB("282054944")};yMf(W,{playerErrorMessageRenderer:C});return!1},hJd=function(y,W){if(AC4(W)){_.lN(1,!0);
var V=(V=AC4(W))&&_.BNG()?V:void 0;V?(yMf(W,{enforcementMessageViewModel:V}),y.nha.increment("IN_PLAYER"),_.lN(5)):(y.nha.increment("SKIP_DISPLAY"),_.lN(2))}},yMf=function(y,W){y.playabilityStatus=Object.assign({},y.playabilityStatus,{status:"ERROR",
errorScreen:W});y.videoDetails=void 0};
ZCE.prototype.handleResponse=function(y,W){if(y.playabilityStatus){var V,w,t,F=(W==null?void 0:(V=W.innerTubeRequest)==null?void 0:V.videoId)||(W==null?void 0:(w=W.innerTubeRequest)==null?void 0:(t=w.playerRequest)==null?void 0:t.videoId);eJv(this,y,F)&&hJd(this,y)}};
ZCE[cs]=[ma];var zJG=new _.e9("ADBLOCK_DETECTION_SERVICE_TOKEN");var Op=function(y){this.gQ0=y};
Op.prototype.bindInnertubeChallengeFetcher=function(y){this.gQ0.bicf(y)};
Op.prototype.registerChallengeFetchedCallback=function(y){this.gQ0.bcr(y)};
Op.prototype.getLatestChallengeResponse=function(){return this.gQ0.blc()};var W0I;W0I=_.CF(["https://static.doubleclick.net/instream/ad_status.js"]);_.V7f=_.Tc(W0I);var Eiz;_.iY=function(y,W,V){var w=this;this.network=y;this.options=W;this.networkStatusManager=V;this.rr=null;if(W.useBotguardEverywhere){var t=new _.UT;this.rr=t.promise;_.Vj.ytAtRC&&_.jf(_.HU,function(){var F,I;return _.g(function(P){if(P.nextAddress==1){if(!_.Vj.ytAtRC)return P.return();F=wLQ(null);return P.yield(w.qW(F),2)}I=P.yieldResult;_.Vj.ytAtRC&&_.Vj.ytAtRC(JSON.stringify(I));_.B7(P)})});
yHu().then(function(F){var I,P,C,d;return _.g(function(L){if(L.nextAddress==1)return F.bindInnertubeChallengeFetcher(function(z){return w.qW(wLQ(z))}),L.yield(dVL(),2);
I=L.yieldResult;P=F.getLatestChallengeResponse();C=P.challenge;if(!C)throw Error("pi");d={challenge:C,i9:CV(C),vm:I,bgChallenge:new gx};t.resolve(d);F.registerChallengeFetchedCallback(function(z){z=z.challenge;if(!z)throw Error("qi");z={challenge:z,i9:CV(z),vm:I,bgChallenge:new gx};w.rr=Promise.resolve(z)});
_.B7(L)})})}else W.preload&&t7f(this,new Promise(function(F){_.Jt(_.HU,function(){F(F0i(w))},0)}))};
Eiz=function(y){var W={preload:!0,useBotguardEverywhere:!0},V=!1;if(typeof W==="boolean")var w={preload:W};else typeof W==="undefined"?w={preload:!0}:(w=W,V=!!W.xGF);W=V?void 0:new _.NN;_.iY.instance=new _.iY(y,w,W);return _.iY.instance};
_.iY.prototype.idy=function(){var y=this;return _.g(function(W){return W.nextAddress==1?W.yield(Promise.race([y.rr,null]),2):W.return(!!W.yieldResult)})};
_.iY.prototype.qYH=function(y,W,V){var w=this,t,F,I;return _.g(function(P){w.rr===null&&t7f(w,F0i(w));t=!1;F={};I=function(){var C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:return z.yield(w.rr,2);case 2:C=z.yieldResult;F.challenge=C.challenge;if(!C.vm){"c1a"in C.i9&&(F.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");z.jumpTo(3);break}d=Object.assign({},{c:C.challenge,e:y},W);_.l7(z,4);t=!0;return z.yield(C.vm.snapshot({nC:d}),6);case 6:(L=z.yieldResult)?F.webResponse=L:F.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.E6(z,3);break;case 4:_.YX(z),F.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(y==="ENGAGEMENT_TYPE_PLAYBACK"){var c=C.i9,K={};if(c.c6a){var f=Number(_.yC("DCLKSTAT",0));K.reportingStatus=String(Number(c.c)^(isNaN(f)?0:f))}c.c6b&&(K.broadSpectrumDetectionResult=String(Number(c.c)^Number(_.yC("CATSTAT",0))));F.adblockReporting=K}return z.return(F)}})};
return P.return(Promise.race([I(),NYJ(V,function(){var C=Object.assign({},F);t&&(C.error="ATTESTATION_ERROR_VM_TIMEOUT");return C})]))})};
var wLQ=function(y){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};y&&(W.interpreterHash=y);return W},F0i=function(y,W){W=W===void 0?0:W;
var V,w,t,F,I,P,C,d,L,z,c,K;return _.g(function(f){switch(f.nextAddress){case 1:V=wLQ(jSz().eCa);if(_.e("att_fet_ks"))return _.l7(f,7),f.yield(y.qW(V),9);_.l7(f,4);return f.yield(IJQ(y,V),6);case 6:I=f.yieldResult;t=I.nUt;F=I.mxF;w=I;_.E6(f,3);break;case 4:return _.YX(f),_.rQ(Error("ri`"+W)),giq(y,864E5),f.return({challenge:"",i9:{},vm:void 0,bgChallenge:void 0});case 9:w=f.yieldResult;if(!w)throw Error("si");if(!w.challenge)throw Error("ti");t=w.challenge;F=CV(t);if("c1a"in F&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("ui");
_.E6(f,3);break;case 7:P=_.YX(f);_.rQ(P);W++;if(W>=5)return _.rQ(Error("ri`"+W)),giq(y,864E5),f.return({challenge:"",i9:{},vm:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,W-1)+Math.random()*1E3;return f.return(new Promise(function(U){_.Jt(_.HU,function(){U(F0i(y,W))},C)}));
case 3:d=ZZu(F);giq(y,d*1E3);L=void 0;if(!("c1a"in F&&w.bgChallenge)){f.jumpTo(10);break}z=Q9G(w.bgChallenge);_.l7(f,11);return f.yield(nYs(jSz(),z),13);case 13:_.E6(f,12);break;case 11:return c=_.YX(f),_.rQ(c),f.return({challenge:t,i9:F,vm:L,bgChallenge:z});case 12:return _.l7(f,14),L=new _.Ql({challenge:z,szH:{xT:"aGIf"}}),f.yield(L.xsl,16);case 16:_.E6(f,10);break;case 14:K=_.YX(f),_.rQ(K),L=void 0;case 10:return f.return({challenge:t,i9:F,vm:L,bgChallenge:z})}})};
_.iY.prototype.qW=function(y){var W=this,V;return _.g(function(w){V=W.networkStatusManager;if(!V||V.isNetworkAvailable())return w.return(W.network.qW(y));_.rw("att_pna",void 0,"attestation_challenge_fetch");return w.return(new Promise(function(t){V.listenOnce("publicytnetworkstatus-online",function(){W.network.qW(y).then(t)})}))})};
var PSJ=function(y){if(!y)throw Error("si");if(!y.challenge)throw Error("ti");var W=y.challenge,V=CV(W);if("c1a"in V&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("ui");return Object.assign({},y,{nUt:W,mxF:V})},IJQ=function(y,W){var V,w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:V=void 0,w=0,t={};case 2:if(!(w<5)){P.jumpTo(4);break}if(!(w>0)){P.jumpTo(5);break}t.rHu=1E3*Math.pow(2,w-1)+Math.random()*1E3;return P.yield(new Promise(function(C){return function(d){_.Jt(_.HU,function(){d(void 0)},C.rHu)}}(t)),5);
case 5:return _.l7(P,7),P.yield(y.qW(W),9);case 9:return F=P.yieldResult,P.return(PSJ(F));case 7:V=I=_.YX(P),I instanceof Error&&_.rQ(I);case 8:w++;t={rHu:void 0};P.jumpTo(2);break;case 4:throw V;}})},t7f=function(y,W){y.rr=W},CSK=function(y){var W,V,w;
return _.g(function(t){if(t.nextAddress==1)return t.yield(Promise.race([y.rr,null]),2);W=t.yieldResult;var F=F0i(y);y.rr=F;(V=W)==null||(w=V.vm)==null||w.dispose();_.B7(t)})},giq=function(y,W){var V=Date.now()+W,w=function(){var t;
return _.g(function(F){t=V-Date.now();return t<1E3?F.yield(CSK(y),0):(_.Jt(_.HU,w,Math.min(t,6E4)),F.jumpTo(0))})};
w()},NYJ=function(y,W){return new Promise(function(V){_.Jt(_.HU,function(){V(W())},y)})};var Oyz=function(){};
Oyz.prototype.processContext=function(y){var W=_.iY.instance;if(!W)return _.O8();var V=EbP(y);return V?new C3(W.qYH(V,wFy(y),500).then(function(w){var t;(y==null?0:(t=y.innerTubeRequest)==null?0:t.context)||(y.innerTubeRequest.context={});t=y.innerTubeRequest.context;t.request||(t.request={});t.request.attestationResponseData=w})):_.O8()};var vim=function(y){this.innertubeTransportService=y};
vim.prototype.qW=function(y){_.rw("att_fsr",void 0,"attestation_challenge_fetch");return _.Vo(this.innertubeTransportService,y,_.LO(_.E5Q)).then(function(W){_.rw("att_frr",void 0,"attestation_challenge_fetch");return W})};_.d9q=function(y){this.innertubeTransportService=y};var L0A=new _.e9("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var zZK=function(){},eZq=function(y,W,V,w,t){var F=_.yC("YPC_MB_URL");
_.jFb(F).then(function(){cMI(F,y,W,V,w,t)})},cMI=function(y,W,V,w,t,F){try{var I=payments.business.integration,P=payments.business.integration.Style.create().withMaterialDesignStyle(),C=I.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.e("enable_window_constrained_buy_flow_dialog")&&(C=C.usingPopupStyle("windowConstrained"));F&&(C=C.usingCloseCallback(F));var d=V?V:_.yC("YPC_GB_LANGUAGE"),L=_.yC("SESSION_INDEX");I.bootstrap.fromPaymentsUrl(y);I.bootstrap.asMashupMode(C).usingGaiaIndex(L).usingLocale(d).usingStyle(P).usingDefaultActivityStatusChangeHandler().inStandaloneContext(I.standaloneContextAuthId.forGaia()).purchaseManager(W,function(z){w&&w(z)}).load(void 0,t)}catch(z){throw t&&t(z),_.ap(z),z;
}};var hZm=new _.e9("PURCHASE_MANAGER_TOKEN");var oi2=function(){var y=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return y.videos},
getContinuationsPresent:function(){return y.continuationsPresent},
setVideos:function(W){y.videos=W},
getRecommendedVideos:function(){return y.recommendedVideos},
setRecommendedVideos:function(W){y.recommendedVideos=W}}};
oi2.prototype.addVideos=function(y){y&&(this.videos=y.filter(function(W){return!!_.IzG(W)}).map(function(W){var V=_.IzG(W);
a:{var w;if(W.playlistVideoRenderer&&((w=W.playlistVideoRenderer)==null?0:w.voteSortTiebreaker))var t=W.playlistVideoRenderer.voteSortTiebreaker;else{if(_.h(W,LV)){var F;if(w=(t=_.h(W,LV))==null?void 0:(F=t.playlistItemData)==null?void 0:F.voteSortTiebreaker){t=w;break a}}t=""}}return{itemId:V,videoId:_.CDu(W),voteCount:_.OSz(W),voteSortTiebreaker:t}}),this.continuationsPresent=!!_.h(y[y.length-1],_.e3))};
var K0m=function(y,W){return y.videos.findIndex(function(V){return V.itemId===W})},pLK=function(y,W){return y.recommendedVideos.findIndex(function(V){return V.itemId===W})},iyr=function(y){y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:y}}}}};_.hs().resolve(_.oA).resolveCommand(y)};var fJQ=function(){oi2.apply(this,arguments)};
_.p(fJQ,oi2);
var t26=function(y,W,V,w){if(!y.parentElem)throw Error("zi");var t=K0m(y,W);t===-1&&(t=pLK(y,W),t=t!==-1?t+y.videos.length:-1);if(t===-1)throw Error("Ai");var F=t>=y.videos.length?y.recommendedVideos[t-y.videos.length]:y.videos[t];F.voteCount=V;F.voteSortTiebreaker=Date.now().toString();t>=y.videos.length?y.recommendedVideos.splice(t-y.videos.length,1):y.videos.splice(t,1);var I=y.videos;for(var P=0,C=I.length-1;P<=C;){var d=Math.floor((P+C)/2);if(I[d].voteCount<F.voteCount)C=d-1;else if(I[d].voteCount>F.voteCount)P=
d+1;else{a:{var L=F.voteSortTiebreaker;var z=I[d].voteSortTiebreaker;if(L.length!==z.length)L=L.length>z.length;else{for(var c=0;c<L.length;c++){var K=L.charCodeAt(c),f=z.charCodeAt(c);if(K>f){L=!0;break a}if(K<f)break}L=!1}}L?C=d-1:P=d+1}}I=P;if(I===-1)throw Error("Bi");y.videos.splice(I,0,F);t!==I&&TYA(y,t,I,W,V,w)},TYA=function(y,W,V,w,t,F){var I,P=(I=y.parentElem)==null?void 0:I.children,C=Math.min(W,V),d=Math.max(W,V);
if(P)for(I=C;I<=d;I++)P[I].style.viewTransitionName="item-"+String(I);document.startViewTransition(function(){if(y.parentElem){var L=y.parentElem.children;if(!(!L||W<0||W>=L.length||V<0||V>=L.length)){var z=L[W];if(z){z.remove();y.showRefreshPill=V>=y.videos.length-1&&y.continuationsPresent;if(!y.showRefreshPill){L=L[V]||null;var c;(c=y.parentElem)==null||c.insertBefore(z,L)}_.h1(y.parentElem,"yt-update-video-data-voting-animation",{toIdx:V,itemId:w,newVoteCount:t,voteStatus:F,hideItem:y.showRefreshPill})}}}}).finished.then(function(){if(P)for(var L=
C;L<=d;L++)P[L].style.viewTransitionName="";
if(y.showRefreshPill)iyr(_.u5("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var z;if(z=L=(z=y.parentElem)==null?void 0:z.children[V])z=L.getBoundingClientRect(),L=z.bottom,z=!(z.top>=0&&L<=y.clientHeight);z&&(z=_.SM(W>V?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(W-V)),iyr(z))}})};var qsQ=function(y,W){var V=this;y?this.innertubeTransportServicePromise=Promise.resolve(y):W&&(this.innertubeTransportServicePromise=W(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new I3(3E3,function(w){return m92(V,w)},0);
this.validateMiniAppVideoIdRateLimiter=new I3(3E3,function(w){return M7q(V,w)},1)},Evs=function(y,W){y.JSC$17035_miniAppId=W;
y.reportMiniAppValueRateLimiter=new I3(3E3,function(V){return m92(y,V)},0);
y.validateMiniAppVideoIdRateLimiter=new I3(3E3,function(V){return M7q(y,V)},1)},IyE=function(y,W){var V;
return _.g(function(w){if(w.nextAddress==1)return w.yield(y.reportMiniAppValueRateLimiter.call(W),2);V=w.yieldResult;return w.return([V,W])})},m92=function(y,W){var V,w,t,F,I,P,C;
return _.g(function(d){switch(d.nextAddress){case 1:return d.yield(y.innertubeTransportServicePromise,2);case 2:return V=d.yieldResult,w=_.LO(Or2),t=Date.now(),F={externalPostId:y.JSC$17035_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(t/1E3),nanos:Math.round(t%1E3*1E6)},intValue:""+W}},_.l7(d,3),d.yield(_.Vo(V,F,w),5);case 5:I=d.yieldResult;_.E6(d,4);break;case 3:throw P=_.YX(d),P;case 4:if(I){if("error"in I&&I.error)throw I.error;if(I.errorMetadata)throw Error("Ci`"+
I.errorMetadata.status);if(C=I.userStatResult)return d.return(C);throw Error("Di");}throw Error("Ei");}})},PAi=function(y){var W,V,w,t,F;
_.g(function(I){switch(I.nextAddress){case 1:return I.yield(y.innertubeTransportServicePromise,2);case 2:return W=I.yieldResult,V=_.LO(Or2),w={externalPostId:y.JSC$17035_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.l7(I,3),I.yield(_.Vo(W,w,V),5);case 5:t=I.yieldResult;_.E6(I,4);break;case 3:throw F=_.YX(I),F;case 4:if(t==null)throw Error("Ei");if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("Ci`"+t.errorMetadata.status);_.B7(I)}})};
qsQ.prototype.flush=function(){var y=this;return _.g(function(W){return W.nextAddress==1?W.yield(y.reportMiniAppValueRateLimiter.flush(),2):W.yield(y.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var gvE=function(y,W){return _.g(function(V){return V.nextAddress==1?V.yield(y.validateMiniAppVideoIdRateLimiter.call(W),2):V.return(V.yieldResult)})},M7q=function(y,W){var V,w,t,F,I,P;
return _.g(function(C){switch(C.nextAddress){case 1:return C.yield(y.innertubeTransportServicePromise,2);case 2:return V=C.yieldResult,w=_.LO(tU6),t={videoId:W},_.l7(C,3),C.yield(_.Vo(V,t,w),5);case 5:F=C.yieldResult;_.E6(C,4);break;case 3:throw I=_.YX(C),I;case 4:if(F){if("error"in F&&F.error)throw F.error;if(F.errorMetadata)throw Error("Ci`"+F.errorMetadata.status);if(P=F.playabilityStatus)return C.return(P.status);throw Error("Fi");}throw Error("Ei");}})};
qsQ[cs]=[_.eX(_.QY),_.eX(kXz)];var U9f=function(){this.clientData=new Map};
U9f.prototype.getData=function(y){return this.clientData.get(y)};var uxs=function(y){this.store=y};
uxs.prototype.handleResponse=function(y){(y=_.h(y.frameworkUpdates,Ln))&&_.xC(y,this.store)};
uxs[cs]=[_.w0];var Ssz=new _.e9("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var D9E={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 lJJ=new _.e9("ICON_SET_TOKEN"),x9K=new _.e9("ICON_URL_PROVIDER_TOKEN"),kMi=new _.e9("PREFETCH_ICONS_TOKEN"),s$J=new _.e9("ICON_MAP_FN_TOKEN");var fp={},AM2=(fp.ACCESS_TIME="clock",fp.ACCOUNT_BOX="person_account",fp.ACCOUNT_BOX_CAIRO="person_account_cairo",fp.ACCOUNT_CIRCLE="person_circle",fp.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",fp.ACCOUNT_LINKED="account_link_success",fp.ACCOUNT_UNLINKED="account_link",fp.ADD_FRIEND="people",fp.ADD_MODERATOR="shield_add",fp.ADD_TO_LIBRARY="bookmark",fp.ADD_TO_PLAYLIST="add",fp.ADD_TO_QUEUE_TAIL="list_queue",fp.ADD_TO_REMOTE_QUEUE="list_music",fp.ADD_TO_WATCH_LATER="clock",fp.ADD_VIDEO_LINK="film_strip_add",
fp.ALERT_WARN_RED="alert_triangle",fp.ARROW_BACK="arrow_left",fp.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",fp.ARROW_DROP_DOWN="chevron_down",fp.ARROW_DROP_UP="chevron_up",fp.ARROW_FORWARD="arrow_right",fp.AUDIOTRACK="audio",fp.AUTO_AWESOME="sparkle",fp.AVATAR_ANONYMOUS="person_circle",fp.AVATAR_LOGGED_OUT="person_circle",fp.BACK="arrow_left",fp.BAR_CHART="bar_graph",fp.BLOCK="slash_circle_left",fp.BLOCK_USER="slash_circle_left",fp.BOOKMARK_BORDER="bookmark",fp.BREAKING_NEWS_ALT_1="article_alert",
fp.BROADCAST_CAIRO="podcast_cairo",fp.BUG_REPORT="bug",fp.CAMERA_ALT="camera",fp.CAMPAIGN="megaphone",fp.CANCEL="x_circle",fp.CAPTIONS="closed_caption",fp.CAST_OUTLINE="chromecast",fp.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fp.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",fp.CHAT="message_bubble_left",fp.CHAT_BUBBLE="message_bubble_empty",fp.CHAT_SPARK="spark_message_bubble_left",fp.CHECK_BOX_OUTLINE_BLANK="box_empty",fp.CHECK_CIRCLE_OUTLINE="check_circle",fp.CHECK_CIRCLE_THICK="check_circle",fp.CLARIFY=
"article_clarify",fp.CLOSED_CAPTION_SELECTED="closed_caption",fp.CLOSE="x_mark",fp.CLOUD_UPLOAD="cloud_arrow_up",fp.COLLAPSE="chevron_up",fp.COLLAPSE_CAIRO="chevron_up_cairo",fp.COLLECTION="layers",fp.COLOR_LENS="palette",fp.COMMENT="message_bubble_right",fp.CONSENT_SHIELD="person_shield",fp.CONTENT_CUT="scissors",fp.CONTENT_CUT_CAIRO="scissors_cairo",fp.COURSE=_.e("web_enable_course_icon_update")?"creator_academy":"lightbulb",fp.COURSE_CAIRO=_.e("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",fp.CREATION_LIVE="radar_live",fp.CREATION_POST="box_pencil",fp.CREATION_UPLOAD="my_videos",fp.CREATION_UPLOAD_RED="upload",fp.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",fp.CREATOR_STUDIO="youtube_studio",fp.DASHBOARD="grid_asymmetrical",fp.DELETE="trash_can",fp.DELETE_SWEEP="trash_can",fp.DESKTOP="laptop",fp.DISLIKE="thumb_down",fp.DISLIKE_SELECTED="thumb_down",fp.DISMISSAL="x_mark",fp.DISMISS_QUEUE="list_remove",fp.DONE_ALL="check_double",fp.DOWN_ARROW="arrow_down",fp.DO_NOT_DISTURB=
"slash_circle_left",fp.DRAFT="paper_corner_folded",fp.DRAG_HANDLE="bars_2",fp.EDIT="pencil",fp.EMOJI="face_very_happy",fp.EMOJI_FLAGS="flag",fp.EMOJI_OBJECTS="lightbulb",fp.EMOJI_PEOPLE="face_very_happy",fp.EMOJI_RECENT="clock",fp.EMPTY_HEART="heart",fp.EMPTY_LIKE="thumb_up",fp.ERROR_BLACK="alert_circle",fp.ERROR_OUTLINE="alert_circle",fp.EXIT_APP="arrow_in",fp.EXIT_TO_APP="arrow_in",fp.EXPAND="chevron_down",fp.EXPAND_ALL="chevron_expand",fp.EXPAND_CAIRO="chevron_down_cairo",fp.EXPAND_LESS="chevron_up",
fp.EXPAND_MORE="chevron_down",fp.EXPLORE="compass",fp.EXPLORE_DESTINATION="compass",fp.EXTERNAL_LINK="open_new",fp.FAB_UPLOAD="upload",fp.FACE_HAPPY_OUTLINE="face_happy",fp.FACT_CHECK="article_check",fp.FASHION_LOGO="fashion",fp.FASHION_LOGO_CAIRO="fashion_cairo",fp.FAVORITE="heart",fp.FEEDBACK="message_bubble_alert",fp.FEEDBACK_CAIRO="message_bubble_alert_cairo",fp.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fp.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fp.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
fp.FILTER="menu_filter",fp.FIRST_PAGE="chevron_first",fp.FLAG="flag",fp.FULL_HEART="heart",fp.GAME_CONSOLE_DPAD="game_console_dpad",fp.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",fp.GAMING_LOGO="gaming",fp.GAMING_LOGO_CAIRO="gaming_cairo",fp.GO_TO_PAGE="arrow_right",fp.GROUPS="people_group",fp.HAPPY="face_happy",fp.HEALTH_AND_SAFETY="shield_plus",fp.HELP="question_circle",fp.HELP_CAIRO="question_circle_cairo",fp.HELP_OUTLINE="question_circle",fp.HIDE="slash_circle_left",fp.IMAGE="image",
fp.INFINITY_ICON="infinity",fp.INFO="info_circle",fp.INFO_OUTLINE="info_circle",fp.INSERT_CHART_OUTLINED="bar_graph_box_vertical",fp.INSERT_PHOTO="image",fp.KEEP="pin",fp.KEEP_OFF="pin_off",fp.KEYBOARD="keyboard",fp.KEYBOARD_ARROW_DOWN="chevron_down",fp.KEYBOARD_ARROW_UP="chevron_up",fp.KIDS_BLOCK="slash_circle_left",fp.LANGUAGE="globe",fp.LAST_PAGE="chevron_last",fp.LAUNCH="open_new",fp.LEARNING="lightbulb",fp.LEARNING_CAIRO="lightbulb_cairo",fp.LIBRARY_ADD=zVa("library_add"),fp.LIBRARY_OUTLINE=
"library",fp.LIBRARY_REMOVE=zVa(),fp.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",fp.LIKES_PLAYLIST="thumb_up",fp.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",fp.LIKE="thumb_up",fp.LIKE_SELECTED="thumb_up",fp.LIVE="radar_live",fp.LIVE_CAIRO="radar_live_cairo",fp.LIVE_UNLISTED="link",fp.LOCATION_ON="location_point",fp.LOCATION_PIN="location_point",fp.LOOP="arrow_repeat",fp.LOOP_ACTIVE="arrow_repeat",fp.LOOP_ONE="arrow_repeat_1",fp.LOOP_ONE_ACTIVE="arrow_repeat_1",fp.MEH="face_meh",fp.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
fp.MESSAGE="message_bubble_left",fp.MICROPHONE_ON="mic",fp.MIX="youtube_mix",fp.MONETIZATION_ON="dollar_sign_circle",fp.MONEY_FILL="dollar_sign_container",fp.MONEY_FILL_JPY="yen_sign_container",fp.MONEY_HEART="dollar_sign_heart",fp.MORE_HORIZ="overflow_horizontal",fp.MORE_VERT="overflow_vertical",fp.MUSIC="audio",fp.MUSIC_CAIRO="audio_cairo",fp.MUSIC_NOTE_SYMBOL="music",fp.MUSIC_SHUFFLE="arrow_shuffle",fp.MY_CHANNEL="person_circle",fp.MY_LOCATION="location_point",fp.NEWS_STORY="news",fp.NEXT="chevron_right",
fp.NOTIFICATIONS="bell",fp.NOTIFICATIONS_ACTIVE="bell_on",fp.NOTIFICATIONS_CAIRO="bell_cairo",fp.NOTIFICATIONS_DONE_CHECKMARK="check",fp.NOTIFICATIONS_INBOX="bell",fp.NOTIFICATIONS_NONE="bell",fp.NOTIFICATIONS_OFF="bell_off",fp.NOT_INTERESTED="slash_circle_left",fp.OFFICIAL_ARTIST_BADGE="audio",fp.OFFLINE_CLOUD="cloud_off",fp.OFFLINE_DOWNLOAD="download",fp.OFFLINE_DOWNLOAD_CAIRO="download_cairo",fp.OFFLINE_PAUSE="pause",fp.OPEN_IN_NEW="open_new",fp.OUTLINE_ADJUST="adjust",fp.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",fp.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",fp.OUTLINE_BAG="bag",fp.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",fp.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fp.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fp.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",fp.PAID="dollar_sign",fp.PAUSE_OUTLINED="pause",fp.PAYMENT="credit_card",fp.PERSON_RADAR_FILLED="person_radar",fp.PHONE_DOWNLOAD="mobile_download",fp.PLAYABLES_LOGO="tic_tac_toe",fp.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
fp.PLAYLISTS="list_play_arrow",fp.PLAYLISTS_CAIRO="list_play_arrow_cairo",fp.PLAYLIST_ADD=zVa("list_add"),fp.PLAYLIST_ADD_CHECK="bookmark",fp.PLAYLIST_PLAY="list_play_arrow",fp.PLAY_ALL="play_arrow",fp.PLAY_CIRCLE="play_arrow_circle",fp.PLAY_OUTLINED="play_arrow_circle",fp.PRIVACY_INFO="shield",fp.PRIVACY_PRIVATE="lock",fp.PRIVACY_PUBLIC="earth",fp.PRIVACY_UNLISTED="link",fp.PROMOTE="megaphone",fp.PURCHASES="price_tag",fp.PURCHASE_SUPER_CHAT="super_chat",fp.PURCHASE_SUPER_STICKER="super_sticker",
fp.QUESTION_ANSWER="message_bubble_question",fp.QUEUE_PLAY_LAST="list_queue_last",fp.QUEUE_PLAY_NEXT="list_play_arrow",fp.REMIX_FILLED="youtube_shorts_remix",fp.REMOVE="bar_circle",fp.REMOVE_CIRCLE="bar_circle",fp.REMOVE_CIRCLE_OUTLINE="bar_circle",fp.REMOVE_DONE="check_double_off",fp.REMOVE_FROM_HISTORY="bar_circle",fp.REMOVE_FROM_PLAYLIST="bar_circle",fp.REMOVE_MODERATOR="shield_off",fp.REPLAY="arrow_circle",fp.REPLAY_10="skip_back_10",fp.REPORT_PROBLEM="alert_triangle",fp.SAD="face_sad",fp.SAVE_PLAYLIST=
"bookmark",fp.SCHEDULE="clock",fp.SCHOOL="creator_academy",fp.SCREEN_FULLSCREEN="screen_full",fp.SEARCH_HISTORY="arrow_time",fp.SELL="price_tag",fp.SETTINGS="gear",fp.SETTINGS_CAIRO="gear_cairo",fp.SETTINGS_LIGHT="gear",fp.SETTINGS_MATERIAL="gear",fp.SHARE_ARROW="share",fp.SHIELD_WITH_AVATAR="person_shield",fp.SHOPPING_BAG="bag",fp.SHOPPING_BAG_CAIRO="bag_cairo",fp.SHOPPING_CART="cart",fp.SHORTS_COMMENT="youtube_shorts_message_bubble_right",fp.SHORTS_DISLIKE="youtube_shorts_thumb_down",fp.SHORTS_LIKE=
"youtube_shorts_thumb_up",fp.SHORTS_SHARE="youtube_shorts_share",fp.SHUFFLE="arrow_shuffle",fp.SLOW_MODE_OFF="message_bubble_left",fp.SOCIAL="people",fp.SORT="menu_sort",fp.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",fp.SPEED_1X="1x",fp.SPEED_1_POINT_2X="1_point_2x",fp.SPEED_1_POINT_5X="1_point_5x",fp.SPEED_1_POINT_8X="1_point_8x",fp.SPEED_2X="2x",fp.SPEED_POINT_2X="point_2x",fp.SPEED_POINT_8X="point_8x",fp.SPONSORSHIP_STAR=_.e("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",fp.STAFF_PICK=
"spotlight",fp.START_DVR="add",fp.STAR_BORDER="star",fp.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",fp.STICKER_EMOTICON="face_happy",fp.STOP_DVR="stop",fp.SUBSCRIBE="youtube_logo_icon",fp.SUBSCRIBE_PLUS="add_cairo",fp.SUBSCRIPTION_MANAGER="gear",fp.SUPERVISOR_ACCOUNT="people",fp.SUPER_CHAT_FOR_GOOD="hands_heart",fp.SWAP_HORIZ="arrow_swap_horizontal",fp.SWITCH_ACCOUNTS="person_account",fp.TAB_ACCOUNT="person",fp.TAB_ACTIVITY="bell",fp.TAB_BOOKMARK="bookmark",fp.TAB_EXPLORE="compass",fp.TAB_HOME=
"home",fp.TAB_HOME_CAIRO="home_cairo",fp.TAB_INBOX="mail",fp.TAB_LIKED="thumb_up",fp.TAB_MUSIC_PREMIUM="youtube_music",fp.TAB_SHORTS="youtube_shorts",fp.TAB_SHORTS_CAIRO="youtube_shorts_cairo",fp.TAB_SUBSCRIPTIONS="subscriptions",fp.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",fp.TAB_TRENDING="fire",fp.TIMER="stopwatch",fp.TRAILER="youtube_originals",fp.TRENDING="fire",fp.TRENDING_CAIRO="fire_cairo",fp.TRENDING_UP="rating_up",fp.TROPHY="trophy",fp.TROPHY_CELEBRATIONS="fireworks",fp.TUNE="adjust",
fp.UNBLOCK_USER="bar_circle",fp.UNLIMITED="youtube_logo_icon",fp.UNPLUGGED_LIVE_GUIDE="radar_live",fp.UNPLUGGED_SPORTS="eye_off",fp.UPLOADS="library",fp.UP_ARROW="arrow_up",fp.VERTICAL_ALIGN_BOTTOM="download",fp.VERY_HAPPY="face_very_happy",fp.VERY_SAD="face_very_sad",fp.VIDEOGAME_ASSET="gaming",fp.VIDEOS="play_arrow_circle",fp.VIDEO_CALL="video_camera_add",fp.VIDEO_LIBRARY_WHITE="library",fp.VIDEO_YOUTUBE="youtube_logo_icon",fp.VIEW_LIST="list_view",fp.VIEW_LIST_CAIRO="list_view_cairo",fp.VISIBILITY=
"eye",fp.VISIBILITY_OFF="eye_off",fp.VOLUME_MUTE="volume_off",fp.VOLUME_UP="volume_on",fp.WALLPAPER="image",fp.WARNING="alert_triangle",fp.WATCH_HISTORY="arrow_time",fp.WATCH_HISTORY_CAIRO="arrow_time_cairo",fp.WATCH_LATER="clock",fp.WATCH_LATER_CAIRO="clock_cairo",fp.WATCH_RELATED_MIX="youtube_mix",fp.WHAT_TO_WATCH="home",fp.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fp.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",fp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",fp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",fp.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",fp.YT_OUTLINE_MUSIC_24="music",fp);var Tv={},Ysi=(Tv.ACCESS_TIME="clock",Tv.ACCOUNT_BOX="person_square",Tv.ACCOUNT_BOX_CAIRO="person_square",Tv.ACCOUNT_CIRCLE="person_circle",Tv.ACCOUNT_CIRCLE_CAIRO="person_circle",Tv.ACCOUNT_LINKED="account_link",Tv.ACCOUNT_UNLINKED="account_link",Tv.ADD_CIRCLE="add_circle",Tv.ADD_FRIEND="person_child",Tv.ADD_TO_LIBRARY="bookmark",Tv.ADD_TO_PLAYLIST="add",Tv.ADD_TO_QUEUE_TAIL="queue",Tv.ADD_TO_REMOTE_QUEUE="playlist_audio",Tv.ADD_TO_WATCH_LATER="clock",Tv.ADD_VIDEO_LINK="film_strip_add",Tv.ADMIN_PANEL_SETTINGS=
"person_gear",Tv.ALERT_WARN_RED="alert_triangle",Tv.ALIGN_LEFT="text_align_left",Tv.ARROWS_ALERT="arrow_split_alert",Tv.ARROW_BACK="arrow_left",Tv.ARROW_CIRCLE="arrow_counterclockwise",Tv.ARROW_CIRCLE_PLAY="replay",Tv.ARROW_CIRCLE_RIGHT="arrow_clockwise",Tv.ARROW_DIAGONAL="arrow_up_left",Tv.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Tv.ARROW_DROP_DOWN="triangle_down",Tv.ARROW_DROP_UP="triangle_up",Tv.ARROW_FORWARD="arrow_right",Tv.ARROW_PAUSE="pause_history",Tv.ARROW_UNDO="undo",Tv.ARTICLE="text_page",
Tv.ARTICLE_ALERT="text_page_alert",Tv.ARTICLE_CHECK="text_page_check",Tv.ARTICLE_CLARIFY="text_page_info",Tv.AUDIOTRACK="audio",Tv.AUDIO_BADGE="audio_badge",Tv.AUDIO_SURROUND="surround_sound",Tv.AVATAR_ANONYMOUS="person_circle",Tv.AVATAR_LOGGED_OUT="person_circle",Tv.BACK="arrow_left",Tv.BAR_CHART="chart_bar",Tv.BAR_CIRCLE="minus_circle",Tv.BAR_HORIZONTAL="minus",Tv.BLOCK="circle_slash",Tv.BLOCK_USER="circle_slash",Tv.BOOKMARK_BORDER="bookmark",Tv.BOX_OPEN_CHECK="quiz",Tv.BOX_PENCIL="square_pencil",
Tv.BREAKING_NEWS_ALT_1="text_page_alert",Tv.BROADCAST="podcast",Tv.BROADCAST_CAIRO="podcast",Tv.BUG_REPORT="bug",Tv.CAMERA_ALT="camera",Tv.CAMPAIGN="megaphone",Tv.CANCEL="x_circle",Tv.CAPTIONS="closed_captions",Tv.CAST_ICON="chromecast",Tv.CAST_OUTLINE="chromecast",Tv.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Tv.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Tv.CHAT="text_bubble",Tv.CHAT_BUBBLE="bubble",Tv.CHECK_BOX="check_square",Tv.CHECK_BOX_OUTLINE_BLANK="square",Tv.CHECK_CIRCLE_FILLED="check_circle",
Tv.CHECK_CIRCLE_OUTLINE="check_circle",Tv.CHECK_CIRCLE_THICK="check_circle",Tv.CHECK_DOUBLE="check_done",Tv.CHECK_DOUBLE_OFF="check_done_slash",Tv.CHEVRON_LEFT="chevron_left",Tv.CHEVRON_RIGHT="chevron_right",Tv.CHEVRON_RIGHT_CAIRO="chevron_right",Tv.CIRCLES_OVERLAP="account_link",Tv.CLAPPERBOARD_CAIRO="clapperboard",Tv.CLARIFY="text_page_info",Tv.CLOCK_ARROWS="clock_split",Tv.CLOCK_ARROWS_ALERT="clock_split_alert",Tv.CLOSED_CAPTION="closed_captions",Tv.CLOSED_CAPTION_SELECTED="closed_captions",Tv.CLOSE=
"x",Tv.CLOUD_UPLOAD="cloud_arrow_up",Tv.COLLAPSE="chevron_up",Tv.COLLAPSE_CAIRO="chevron_up",Tv.COLLECTION="square3d_stack",Tv.COLOR_LENS="paint_palette",Tv.COMMENT="text_bubble",Tv.CONSENT_SHIELD="person_shield",Tv.CONTENT_CUT="scissors",Tv.CONTENT_CUT_CAIRO="scissors",Tv.COURSE="graduation_cap",Tv.COURSE_CAIRO="graduation_cap",Tv.CREATION_LIVE="live",Tv.CREATION_POST="square_pencil",Tv.CREATION_UPLOAD="video",Tv.CREATION_UPLOAD_RED="upload",Tv.CREATOR_ACADEMY="graduation_cap",Tv.CREATOR_STUDIO=
"youtube_studio",Tv.DARK_THEME="theme",Tv.DELETE="trash_can",Tv.DELETE_SWEEP="trash_can",Tv.DESKTOP="laptop",Tv.DISLIKE="thumb_down",Tv.DISLIKE_SELECTED="thumb_down",Tv.DISMISSAL="x",Tv.DISMISS_QUEUE="playlist_x",Tv.DOGFOOD="pawprint",Tv.DOLLAR_SIGN="dollar_sign_circle",Tv.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Tv.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Tv.DOWN_ARROW="arrow_down",Tv.DO_NOT_DISTURB="circle_slash",Tv.DRAFT="document",Tv.EARTH="globe",Tv.EDIT="pencil",Tv.EMOJI="face_very_happy",
Tv.EMOJI_FLAGS="flag",Tv.EMOJI_OBJECTS="lightbulb",Tv.EMOJI_PEOPLE="face_very_happy",Tv.EMOJI_RECENT="clock",Tv.EMPTY_HEART="heart",Tv.EMPTY_LIKE="thumb_up",Tv.ERROR_BLACK="alert_circle",Tv.ERROR_OUTLINE="alert_circle",Tv.ERROR_WHITE="alert_circle",Tv.EXIT_APP="arrow_in",Tv.EXIT_TO_APP="arrow_in",Tv.EXPAND="chevron_down",Tv.EXPAND_ALL="chevron_expand",Tv.EXPAND_CAIRO="chevron_down",Tv.EXPAND_LESS="chevron_up",Tv.EXPAND_MORE="chevron_down",Tv.EXPLORE="compass",Tv.EXPLORE_DESTINATION="compass",Tv.EXTERNAL_LINK=
"arrow_up_right",Tv.EYE_OFF="eye_slash",Tv.FAB_UPLOAD="upload",Tv.FACE_HAPPY_OUTLINE="face_happy",Tv.FACE_MEH="face_neutral",Tv.FACT_CHECK="text_page_check",Tv.FASHION_LOGO="fashion",Tv.FASHION_LOGO_CAIRO="fashion",Tv.FAVORITE="thumb_up",Tv.FEEDBACK="alert_bubble",Tv.FEEDBACK_CAIRO="alert_bubble",Tv.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Tv.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Tv.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Tv.FLAG_CAIRO="flag",Tv.FLASH_OFF="flash_slash",Tv.FLASH_ON="flash",
Tv.FULL_HEART="heart",Tv.GAMING_LOGO="gaming",Tv.GAMING_LOGO_CAIRO="gaming",Tv.GO_TO_PAGE="arrow_right",Tv.GROUPS="person3",Tv.HAND_SWIPE_LEFT="gesture_swipe_left",Tv.HAND_SWIPE_RIGHT="gesture_swipe_right",Tv.HAPPY="face_happy",Tv.HEALTH_AND_SAFETY="shield_health",Tv.HEART_BOX="heart_cube",Tv.HELP="help_circle",Tv.HELP_CAIRO="help_circle",Tv.HELP_OUTLINE="help_circle",Tv.HIDE="circle_slash",Tv.INCOGNITO_CAIRO="incognito",Tv.INFINITY_ICON="infinity",Tv.INFO="info_circle",Tv.INFO_OUTLINE="info_circle",
Tv.INSERT_CHART_OUTLINED="chart_bar_square",Tv.INSERT_PHOTO="image",Tv.KEEP="pin",Tv.KEEP_OFF="pin_slash",Tv.KEYBOARD="keyboard",Tv.KEYBOARD_ARROW_DOWN="chevron_down",Tv.KEYBOARD_ARROW_UP="chevron_up",Tv.KIDS_BLOCK="circle_slash",Tv.LANGUAGE="globe",Tv.LAUNCH="arrow_up_right",Tv.LEARNING="lightbulb",Tv.LEARNING_CAIRO="lightbulb",Tv.LIBRARY_ADD="bookmark",Tv.LIBRARY_IMAGE="image_stack",Tv.LIBRARY_MUSIC="audio_square_stack",Tv.LIBRARY_OUTLINE="play_square_stack",Tv.LIBRARY_REMOVE="bookmark",Tv.LIBRARY_SAVED=
"check_square_stack",Tv.LIKES_PLAYLIST="thumb_up",Tv.LIKES_PLAYLIST_CAIRO="thumb_up",Tv.LIKE="thumb_up",Tv.LIKE_SELECTED="thumb_up",Tv.LIST_QUEUE="queue",Tv.LIVE_CAIRO="live",Tv.LIVE_UNLISTED="link",Tv.LOCATION_ON="location_pin",Tv.LOCATION_PIN="location_pin",Tv.LOCATION_POINT="location_pin",Tv.LOOP="repeat",Tv.LOOP_ACTIVE="repeat",Tv.LOOP_ONE="repeat1",Tv.LOOP_ONE_ACTIVE="repeat1",Tv.MEET="google_meet",Tv.MEH="face_neutral",Tv.MEMBERSHIPS="memberships",Tv.MEMBERS_ONLY_MODE_OFF="text_bubble",Tv.MENU_FILTER=
"filter",Tv.MESSAGE="text_bubble",Tv.MESSAGE_BUBBLE_GEAR="bubble_gear",Tv.MESSAGE_BUBBLE_LEFT="text_bubble",Tv.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Tv.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Tv.MESSAGE_BUBBLE_QUESTION="help_bubble",Tv.MICROPHONE_ON="mic",Tv.MONETIZATION_ON="dollar_sign_circle",Tv.MONEY_FILL="dollar_sign_rectangle",Tv.MONEY_FILL_JPY="yen_sign_rectangle",Tv.MONEY_HAND="dollar_sign_circle_hand",Tv.MONEY_HEART="dollar_sign_heart",Tv.MOON_Z="sleep_timer",Tv.MORE_HORIZ="overflow_horizontal",
Tv.MORE_VERT="overflow_vertical",Tv.MUSIC="audio",Tv.MUSIC_CAIRO="audio",Tv.MUSIC_EXPLICIT_BADGE="explicit",Tv.MUSIC_NEW_RELEASE="audio_badge",Tv.MUSIC_NOTE_SYMBOL="audio",Tv.MUSIC_SCISSORS="audio_scissors",Tv.MUSIC_SHUFFLE="shuffle",Tv.MY_CHANNEL="person_circle",Tv.MY_LOCATION="location_pin",Tv.MY_VIDEOS="video",Tv.MY_VIDEOS_CAIRO="video",Tv.NEWS_CAIRO="news",Tv.NEWS_STORY="news",Tv.NEXT="chevron_right",Tv.NOTE_ADD="bubble_pencil",Tv.NOTIFICATIONS="bell",Tv.NOTIFICATIONS_ACTIVE="bell_waves",Tv.NOTIFICATIONS_CAIRO=
"bell",Tv.NOTIFICATIONS_DONE_CHECKMARK="check",Tv.NOTIFICATIONS_INBOX="bell",Tv.NOTIFICATIONS_NONE="bell",Tv.NOTIFICATIONS_OFF="bell_slash",Tv.NOT_INTERESTED="circle_slash",Tv.OFFICIAL_ARTIST_BADGE="audio",Tv.OFFLINE_CLOUD="cloud_slash",Tv.OFFLINE_DOWNLOAD="download",Tv.OFFLINE_DOWNLOAD_CAIRO="download",Tv.OFFLINE_PAUSE="pause",Tv.OPEN_IN_NEW="arrow_up_right",Tv.OUTLINE_ADJUST="adjust",Tv.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Tv.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Tv.OUTLINE_ARROW_SOLID_UP=
"arrow_solid_up",Tv.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Tv.OUTLINE_BAG="bag",Tv.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Tv.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Tv.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Tv.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Tv.PAID="dollar_sign_circle",Tv.PAUSE_OUTLINED="pause",Tv.PAYMENT="credit_card",Tv.PEOPLE="person_child",Tv.PEOPLE_2="person2_rectangle",Tv.PEOPLE_GROUP="person3",Tv.PEOPLE_NOTE="bubble_asterisk",Tv.PERSON_2="person2",Tv.PERSON_ACCOUNT=
"person_square_stack",Tv.PERSON_MINUS="person_x",Tv.PERSON_MUSIC="person_audio",Tv.PERSON_RADAR="person_waves",Tv.PERSON_RADAR_FILLED="person_waves",Tv.PERSON_SETTING="person_gear",Tv.PHONE="phone",Tv.PHONE_DOWNLOAD="mobile_arrow_down",Tv.PICTURE_IN_PICTURE="picture_in_picture",Tv.PLAYABLES_LOGO="playables",Tv.PLAYABLES_LOGO_CAIRO="playables",Tv.PLAYLISTS="playlist",Tv.PLAYLISTS_CAIRO="playlist",Tv.PLAYLIST_ADD_CHECK="bookmark",Tv.PLAY_ALL="play",Tv.PLAY_ARROW="play",Tv.PLAY_ARROW_CIRCLE="play_circle",
Tv.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Tv.PLAY_CIRCLE="play_circle",Tv.PLAY_OUTLINED="play_circle",Tv.PODCAST_ADD="podcast_add",Tv.PODCAST_CHECK="podcast_check",Tv.PRIVACY_INFO="shield_x",Tv.PRIVACY_PRIVATE="lock",Tv.PRIVACY_PUBLIC="globe",Tv.PRIVACY_UNLISTED="link",Tv.PROMOTE="megaphone",Tv.PURCHASES="price_tag",Tv.PURCHASE_SUPER_CHAT="super_chat",Tv.PURCHASE_SUPER_STICKER="super_sticker",Tv.QUESTION_ANSWER="help_bubble",Tv.QUESTION_CIRCLE="help_circle",Tv.QUEUE_PLAY_LAST="queue_last",
Tv.QUEUE_PLAY_NEXT="playlist",Tv.QUOTATION_MARK="quote",Tv.RADAR_LIVE="live",Tv.REMOVE="minus_circle",Tv.REMOVE_CIRCLE="minus_circle",Tv.REMOVE_CIRCLE_OUTLINE="minus_circle",Tv.REMOVE_FROM_HISTORY="minus_circle",Tv.REMOVE_FROM_PLAYLIST="minus_circle",Tv.REPLAY="arrow_counterclockwise",Tv.REPLAY_10="skip10_back",Tv.REPLAY_ARROW="replay",Tv.REPORT_PROBLEM="alert_triangle",Tv.RSS_OFF="rss_slash",Tv.SAD="face_sad",Tv.SAVE_PLAYLIST="bookmark",Tv.SCHEDULE="clock",Tv.SCHOOL="graduation_cap",Tv.SCREEN_DEFAULT=
"player_default",Tv.SCREEN_FULLSCREEN="player_full_enter",Tv.SCREEN_LIGHT="ambient_mode",Tv.SCREEN_ROTATION="rotate_portrait",Tv.SCREEN_SWITCH="player_switch",Tv.SCREEN_THEATRE="player_theater",Tv.SEARCH_CAIRO="search",Tv.SEARCH_HISTORY="history",Tv.SELL="price_tag",Tv.SETTINGS="gear",Tv.SETTINGS_CAIRO="gear",Tv.SETTINGS_LIGHT="gear",Tv.SETTINGS_MATERIAL="gear",Tv.SETTINGS_REMOTE="remote_waves",Tv.SHARE="share",Tv.SHARE_ARROW="share",Tv.SHARE_CAIRO="share",Tv.SHIELD="shield_x",Tv.SHIELD_OFF="shield_slash",
Tv.SHIELD_WITH_AVATAR="person_shield",Tv.SHOPPING_BAG="bag",Tv.SHOPPING_BAG_CAIRO="bag",Tv.SHOPPING_CART="cart",Tv.SHORTS_COMMENT="text_bubble",Tv.SHORTS_DISLIKE="thumb_down",Tv.SHORTS_LIKE="thumb_up",Tv.SHORTS_SHARE="share",Tv.SKIP_FORWARD_30="skip30_forward",Tv.SLASH_CIRCLE_RIGHT="circle_slash",Tv.SLOW_MODE_OFF="text_bubble",Tv.SOCIAL="person_child",Tv.SPARKLE="sparkles",Tv.SPARK_IMAGE="image_spark",Tv.SPARK_RADAR="spark_waves",Tv.SPARK_VIDEO="video_spark",Tv.SPEAKER_GROUP="speaker_stack",Tv.SPEAKER_OFF=
"speaker_slash",Tv.SPEED_1X="n1x",Tv.SPEED_1_POINT_2X="n1point2x",Tv.SPEED_1_POINT_5X="n1point5x",Tv.SPEED_1_POINT_8X="n1point8x",Tv.SPEED_2X="n2x",Tv.SPONSORSHIP_STAR="memberships",Tv.SPORTS="basketball",Tv.SPOTLIGHT="spotlight",Tv.STAFF_PICK="spotlight",Tv.START_DVR="add",Tv.STAR_BORDER="star",Tv.STAR_HALF="star_half_filled",Tv.STAR_SHOOTING="hype",Tv.STICKER="sticker",Tv.STICKER_EMOTICON="face_happy",Tv.STOP_DVR="stop",Tv.SUBSCRIBE="youtube",Tv.SUBSCRIBE_PLUS="add",Tv.SUBSCRIPTION_MANAGER="gear",
Tv.SUPERSTAR="super_star",Tv.SUPERVISOR_ACCOUNT="person_child",Tv.SWAP_HORIZ="arrow_swap_horizontal",Tv.SWITCH_ACCOUNTS="person_square_stack",Tv.TAB_ACCOUNT="person",Tv.TAB_ACTIVITY="bell",Tv.TAB_BOOKMARK="bookmark",Tv.TAB_EXPLORE="compass",Tv.TAB_HOME="home",Tv.TAB_HOME_CAIRO="home",Tv.TAB_INBOX="mail",Tv.TAB_LIKED="thumb_up",Tv.TAB_MUSIC_PREMIUM="youtube_music",Tv.TAB_SHORTS="shorts",Tv.TAB_SHORTS_CAIRO="shorts",Tv.TAB_SUBSCRIPTIONS="subscriptions",Tv.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Tv.TAB_TRENDING=
"trending",Tv.TARGET="target",Tv.TARGET_ADD="target_add",Tv.TEMPLATE_ADD="template_add",Tv.TEXT="font",Tv.TIMER="stopwatch",Tv.TRENDING_CAIRO="trending",Tv.TRENDING_UP="arrow_trend_up",Tv.TROPHY_CAIRO="trophy",Tv.TROPHY_CELEBRATIONS="fireworks",Tv.TROPHY_STAR="star_trophy",Tv.TUNE="adjust",Tv.TV_OFF="tv_slash",Tv.UNBLOCK_USER="minus_circle",Tv.UNFAVORITE="thumb_down",Tv.UNLIMITED="youtube",Tv.UNPLUGGED_LIVE_GUIDE="live",Tv.UNPLUGGED_SPORTS="eye_slash",Tv.UPLOADS="play_square_stack",Tv.UP_ARROW="arrow_up",
Tv.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Tv.VERTICAL_ALIGN_TOP="chevron_up_end",Tv.VERY_HAPPY="face_very_happy",Tv.VERY_SAD="face_very_sad",Tv.VIDEOS="play_circle",Tv.VIDEO_CALL="video_camera_add",Tv.VIDEO_LIBRARY_WHITE="play_square_stack",Tv.VIDEO_QUALITY_4K="n4k",Tv.VIDEO_QUALITY_8K="n8k",Tv.VIDEO_YOUTUBE="youtube",Tv.VIEW_LIST_CAIRO="view_list",Tv.VIEW_MODULE="view_column3_row2",Tv.VISIBILITY="eye",Tv.VISIBILITY_OFF="eye_slash",Tv.VOLUME_DOWN="volume_min",Tv.VOLUME_MUTE="volume_mute",Tv.VOLUME_OFF=
"volume_mute",Tv.VOLUME_STABLE="stable_volume",Tv.VOLUME_UP="volume_max",Tv.WALLPAPER="image",Tv.WARNING="alert_triangle",Tv.WATCH_HISTORY="history",Tv.WATCH_HISTORY_CAIRO="history",Tv.WATCH_LATER="clock",Tv.WATCH_LATER_CAIRO="clock",Tv.WATCH_RELATED_MIX="mix",Tv.WHAT_TO_WATCH="home",Tv.YOUTUBE_LINKED_TV="tv_mobile",Tv.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Tv.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Tv.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Tv.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Tv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16=
"shorts_empty",Tv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Tv.YOUTUBE_SHORTS_OUTLINE_24="shorts",Tv);var BYr={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,11,12],[0,11,16],[0,11,24],[1,11,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,
1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,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,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,9,24],[1,9,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,
3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,
2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,
2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,
2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,8,24]],pause_circle:[[0,2,12],
[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,
2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,
5,24],[1,5,24]],podcast:[[0,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,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,12,24],[1,12,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,
24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,
1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,
3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],
stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,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,23,16],[0,23,24],[0,23,36],[1,23,16],[1,23,24],[1,23,36]],thumb_up:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],
thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],
[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,
5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,
2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,
2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var JMJ={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,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,
10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,
2,24],[1,2,24]],arrow_solid_down:[[0,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,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,
2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,
1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,
2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,11,18],[1,11,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,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,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,9,24],[1,9,24],[1,9,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,
7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,
3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,
2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,
23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],
face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,
1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,
1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,
1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],
heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],
mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,
2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],
open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,8,24],[0,8,36],[1,8,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,
24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,
24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,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,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,24]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,
2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,
5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,
4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,
24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,
2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,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,23,18],[0,23,24],[1,23,18],[1,23,24]],thumb_up:[[0,21,18],[0,21,24],[1,21,18],[1,21,24]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],
[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var RZ6={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"},m4=function(y){this.iconUrlProvider=y};
m4.prototype.resolveIcon=function(y,W){var V=RZ6[y.iconName.toUpperCase()];V&&(y.iconName=V);var w=y.iconName;w=w.replace(/-/g,"_");y=Object.assign({},y,{iconName:this.mapIconTypeToStandardName(w,!!V)||w.toLowerCase()});if(_.e("enable_web_delhi_icons")||V){var t;return dsj(JMJ,y,((t=this.iconUrlProvider)==null?void 0:t.getYtStandardUrl)||eV4,W)}var F;return dsj(BYr,y,((F=this.iconUrlProvider)==null?void 0:F.getYtStandardUrl)||cHj,W)};
m4.prototype.mapIconTypeToStandardName=function(y,W){return _.e("enable_web_delhi_icons")||W?Ysi[y.toUpperCase()]:AM2[y.toUpperCase()]};
m4[cs]=[_.eX(x9K)];var j$2=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),$9K=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),niq=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),HyQ=function(y){this.urlProvider=this.iconUrlProvider=y};
_.p(HyQ,m4);
HyQ.prototype.resolveIcon=function(y,W){y.iconName==="youtube_logo"&&(y.iconName="yt-logo-updated");if(y.iconName==="youtube_premium_logo"||y.iconName==="youtube_red_logo")y.iconName="yt-logo-red-updated";var V=Object.assign({},y);y.iconName==="menu"&&(_.e("enable_web_delhi_icons")||(V.iconName="bars_3"),V.iconStyle="youtube_outline");y.iconSetName==="socialNetworksRound"&&(y.iconName==="mail"&&(V.iconName="email"),y.iconName==="embed"&&(V.iconSize=60));y.iconName==="more"&&(V.iconName="overflow_horizontal");
y.iconName==="fullscreen"&&(V.iconName="screen_full");y.iconName==="premium_standalone"&&(V.iconName="premium_standalone_cairo");_.e("enable_connect_icon_update_web")&&y.iconName==="account_linked"&&(V.iconName="circles_overlap_check",V.iconStyle="youtube_fill");_.e("enable_connect_icon_update_web")&&y.iconName==="account_unlinked"&&(V.iconName="circles_overlap",V.iconStyle="youtube_outline");j$2.has(y.iconName)&&(V.iconStyle="youtube_fill");_.e("enable_web_delhi_icons")&&(y.iconName==="playlist_add"&&
(V.iconName="bookmark"),y.iconName==="offline_pin"&&(V.iconName="arrow_down_circle",V.iconStyle="youtube_fill"),$9K.has(y.iconName)&&(V.iconName+="_updated"),niq.has(y.iconName)&&(V.iconStyle="youtube_fill"));y=Object.assign({},V,{iconName:(m4.prototype.mapIconTypeToStandardName.call(this,V.iconName)||V.iconName).toLowerCase()});var w;return(y=dsj(D9E,y,((w=this.urlProvider)==null?void 0:w.getUrl)||hVR,W))?y:m4.prototype.resolveIcon.call(this,V,W)};
HyQ[cs]=[_.eX(x9K)];_.XLf=1;var Mz=function(){};
_.p(Mz,FN);Mz.prototype.resolveCommand=function(y){var W,V;return _.g(function(w){W=_.h(y,D_E);if(!W)return w.return();V=Number(W.enableDelayedPacfLoggingTvMs);if(isNaN(V)){var t=st();IlK(t,W,0)}else IlK(st(),W,V);_.B7(w)})};_.qz=function(){};
_.p(_.qz,FN);
_.qz.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d;return _.g(function(L){w=_.h(y,lxK);F=(t=W.form)==null?void 0:t.element;P=(I=F)==null?void 0:I.closest("ytd-enforcement-message-view-model");if(!w||!P)return L.return();V.allowAdsAction||(C=w.fundingChoiceInstructionPageUrl,V.allowAdsAction=new t0f(window,_.X1(C)));var z=V.allowAdsAction;z.wallElement=P;z.allowAdsPopup.style.setProperty("display","flex","important");var c=z.scrollManager;c.originalBodyOverflow=c.JSC$9926_domHelper.JSC$9250_document_.body.style.overflow;c.JSC$9926_domHelper.JSC$9250_document_.body.style.overflow=
"hidden";z.wallElement.style.setProperty("display","none","important");LTR(z.accessibilityManager,z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((d=V.allowAdsAction.allowAdsPopup)&&d instanceof HTMLElement)for(z=_.N(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),c=z.next();!c.done;c=z.next()){var K=_.N(c.value);c=K.next().value;K=K.next().value;d.style.setProperty(c,K)}_.B7(L)})};
_.qz.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var UG=function(){};
_.p(UG,FN);UG.prototype.resolveCommand=function(y){var W;return _.g(function(V){W=_.h(y,Z$A);if(!W)return V.return();cVu(y);_.B7(V)})};var uY=function(y){this.JSC$17075_commandHandler=y};
_.p(uY,FN);
uY.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1){V=_.h(y,qJJ);if((w=V)==null||!w.text||!navigator.clipboard)return L.return();_.l7(L,2);return L.yield(navigator.clipboard.writeText(V.text),4)}if(L.nextAddress!=2){if(!V.successActions||V.successActions.length===0)return L.return();t=_.N(V.successActions);for(F=t.next();!F.done;F=t.next())I=F.value,W.JSC$17075_commandHandler.resolveCommand(I);return _.E6(L,0)}_.YX(L);if(!V.failureActions||V.failureActions.length===
0)return L.return();P=_.N(V.failureActions);for(C=P.next();!C.done;C=P.next())d=C.value,W.JSC$17075_commandHandler.resolveCommand(d);_.B7(L)})};
uY[cs]=[_.oA];var SG=function(y){this.JSC$17079_commandHandler=y};
_.p(SG,FN);
SG.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c;return _.g(function(K){switch(K.nextAddress){case 1:w=_.h(y,E06);if(!w)return K.return();_.l7(K,2);if(!w.imageBytes&&!w.imageUrl)throw Error("Gi");if(!w.imageUrl){if(w.imageBytes){F=w.imageBytes;I=F.replace(/-/g,"+").replace(/_/g,"/");var f=pFv(I);t=_.W7(f)}K.jumpTo(4);break}return K.yield(fetch(w.imageUrl),5);case 5:return P=K.yieldResult,K.yield(P.blob(),6);case 6:C=K.yieldResult,t=_.W7(C);case 4:z=(d=W)==null?void 0:(L=d.form)==
null?void 0:L.element;c=document.createElement("a");tX(c,t);z.appendChild(c);c.download="";c.click();z.removeChild(c);URL.revokeObjectURL(_.G3(t));w.successCommand&&V.JSC$17079_commandHandler.resolveCommand(w.successCommand);_.E6(K,0);break;case 2:_.YX(K),w.errorCommand&&V.JSC$17079_commandHandler.resolveCommand(w.errorCommand),_.B7(K)}})};
SG[cs]=[_.oA];var Dw=function(y){this.store=y};
_.p(Dw,FN);Dw.prototype.resolveCommand=function(y){var W=this,V,w,t;return _.g(function(F){w=(V=_.h(y,_.BFq))==null?void 0:V.entityBatchUpdate;if(!w)return F.jumpTo(0);t=Object.assign({},w,{mutations:[].concat(_.GC(w.mutations||[]))});return F.yield(_.xC(t,W.store),0)})};var aJE=function(y){this.JSC$17086_commandHandler=y;this.feedbackDialogMap=new Map};
aJE.prototype.openDialog=function(y,W){(y=this.feedbackDialogMap.get(y))&&this.JSC$17086_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:y}},W)};
aJE[cs]=[_.oA];var lY=new _.e9("FEEDBACK_CONTROLLER_TOKEN");var xa=new _.e9("APP_STORE_TOKEN");var ka=function(y,W){this.store=y;this.controller=W};
_.p(ka,FN);ka.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r;return _.g(function(H){if(H.nextAddress==1){w=_.h(y,_.bw);if(F=(t=w)==null?void 0:t.contentId)for(P=_.N(((I=w)==null?void 0:I.actions)||[]),C=P.next();!C.done;C=P.next())d=C.value,GMq(V,d,F);c=(L=W)==null?void 0:(z=L.form)==null?void 0:z.element;return H.yield(_.i5(c,[y]).catch(function(){}),2)}K=H.yieldResult;
((f=K)==null?0:(U=f.data)==null?0:(l=U.feedbackResponses)==null?0:l.length)&&(B=(x=K.data.feedbackResponses[0])==null?void 0:x.followUpDialog)&&F&&(r=V.controller)!=null&&r.feedbackDialogMap.set(F,B);_.B7(H)})};
var GMq=function(y,W,V){var w=_.h(W,_.mR);if(w){w=_.N(w.commands||[]);for(var t=w.next();!t.done;t=w.next())GMq(y,t.value,V)}_.h(W,_.Rx)&&y.store.dispatch(_.B5("commandEntity",bXd(V),{key:V,command:W}));_.h(W,uh6)&&y.store.dispatch(_.B5("commandEntity",bXd(V),{key:V,command:W}))};
ka[cs]=[xa,lY];var sG=function(y){this.controller=y};
_.p(sG,FN);sG.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I;return _.g(function(P){w=_.h(y,_.Wl);F=(t=w)==null?void 0:t.targetId;if(((I=w)==null?void 0:I.signal)!=="TELL_US_WHY"||!F)return P.return();V.controller.openDialog(F,W);_.B7(P)})};
sG[cs]=[lY];var Ay=function(y){this.store=y};
_.p(Ay,FN);Ay.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d;return _.g(function(L){w=_.h(y,taR);F=(t=w)==null?void 0:t.contentId;C=(I=W)==null?void 0:(P=I.form)==null?void 0:P.element;d=_.i5(C,[y]);F&&V.undo(F);return L.yield(d,0)})};
Ay.prototype.undo=function(y){this.store.dispatch(_.B5("commandEntity",bXd(y),{key:y,command:void 0}))};
Ay[cs]=[xa];var Ya=function(y){this.JSC$17101_commandHandler=y};
_.p(Ya,FN);Ya.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d;return _.g(function(L){V=_.h(y,V9A);w=V.flowStateKey;t=V.validationFailureCommand;F=V.submitValidFormCommand;I=X6b(_.zS,[w||""]);P=_.h(I,t96);((C=P)==null?0:C.isValid)&&F&&W.JSC$17101_commandHandler.resolveCommand(F);((d=P)==null?0:d.isValid)||!t||W.JSC$17101_commandHandler.resolveCommand(t);_.B7(L)})};
Ya[cs]=[_.oA];var BR=function(y){this.innertubeTransportService=y};
_.p(BR,FN);BR.prototype.resolveCommand=function(y,W){var V=this,w;return _.g(function(t){return t.yield(_.OP(V.innertubeTransportService,y,(w=W)==null?void 0:w.form).then(function(F){var I,P;W==null||(I=W.commandController)==null||(P=I.onSuccess)==null||P.call(I,y,F)},function(F){var I,P;
W==null||(I=W.commandController)==null||(P=I.onServerError)==null||P.call(I,y,F)}),0)})};
BR[cs]=[_.QY];var Jy=function(){};
_.p(Jy,FN);Jy.prototype.resolveCommand=function(y){var W,V,w,t;return _.g(function(F){if(W=_.h(y,_.cZf)){if(V=W.gtmId)w=_.yC("GL",""),_.ab(V,w);(t=W.gtmData)&&_.Gq(t)}_.B7(F)})};var R3=function(y,W){this.innertubeTransportService=y;this.JSC$17112_actionRouter=W};
_.p(R3,FN);R3.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){V=_.h(y,W$K);if(!V)return t.return();w=V.command;if(!w)return t.return();W.JSC$17112_actionRouter.triggerAction("yt-insert-rich-section-action",V);return t.yield(_.OP(W.innertubeTransportService,w,{disableCache:!0}),0)})};
R3[cs]=[_.QY,ch];fzR.bind(null,Et);var rMI=fzR.bind(null,T86);msy.bind(null,Et);var byz=msy.bind(null,T86);qwd.bind(null,Et);var Q$J=qwd.bind(null,T86);var jG=function(){};
_.p(jG,FN);
jG.prototype.resolveCommand=function(y){var W,V,w,t,F,I,P,C,d,L;return _.g(function(z){W=_.h(y,BDK);if(!W)return z.return();w=((V=W.operations)==null?void 0:V.operations)||[];t=_.N(w);for(F=t.next();!F.done;F=t.next())if(I=F.value,I.insertItemSectionContent){var c=I.insertItemSectionContent,K=c.contents||[];c.insertByPositionInSection?rMI(c.insertByPositionInSection.sectionTargetId,K,c.insertByPositionInSection.position):c.insertByRelativePositionInSection&&c.insertByRelativePositionInSection.sectionTargetId&&c.insertByRelativePositionInSection.itemTargetId&&
byz(c.insertByRelativePositionInSection.sectionTargetId,c.insertByRelativePositionInSection.itemTargetId,K,c.insertByRelativePositionInSection.relativePosition)}else I.replaceSection?(c=I.replaceSection,K={},c.replaceByTargetId?K=c.replaceByTargetId:c.replaceByGroupId&&(K={targetId:c.replaceByGroupId.groupId,newContent:c.replaceByGroupId.newContent,undoKey:""}),K.newContent&&qWQ(K.targetId,{continuationItems:[K.newContent]})):I.removeItem?(c=I.removeItem,c.removeByTargetId&&c.sectionTargetId&&Q$J(c.sectionTargetId,
c.removeByTargetId.targetIds||[])):I.removeSection&&(I.removeSection.removeByTargetId?(P=void 0,Zyf(((P=I.removeSection)==null?void 0:P.removeByTargetId.targetIds)||[])):I.removeSection.removeByGroupId&&(C=void 0,Zyf(((C=I.removeSection)==null?void 0:C.removeByGroupId.groupIds)||[])));L=((d=W.operations)==null?void 0:d.scrollConfig)||{};yvC(L);_.B7(z)})};
var Zyf=function(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next())qWQ(W.value,{continuationItems:[]})},yvC=function(y){if(y.scrollToItem){var W=y.scrollToItem.item||{},V=W.itemTargetId;
W=W.sectionTargetId;if(V&&W){var w=document.querySelector("[data-target-id="+W+"]"),t=w==null?void 0:w.querySelector("[data-target-id="+V+"]");w&&t&&setTimeout(function(){var F=t.offsetTop-w.offsetTop,I;if(((I=y.scrollToItem)==null?void 0:I.scrollPosition)==="SCROLL_POSITION_CENTER")F-=w.offsetHeight/2,F+=t.offsetHeight/2;else{var P;((P=y.scrollToItem)==null?void 0:P.scrollPosition)==="SCROLL_POSITION_END"&&(F-=w.offsetHeight,F+=t.offsetHeight)}w.scroll({top:F,behavior:"smooth"})},100)}}};var $a=new _.e9("CLIENT_NAME_TOKEN");var WLW=new _.e9("DEFAULT_STORE_EXPIRATION_TOKEN");var c7u=new _.e9("CLIENT_LOCATION_SERVICE_TOKEN");var np=function(y,W,V){this.clientName=y||_.yC("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=W||_.Gw.getInstance();this.JSC$17140_commandHandler=V||_.xc.instance};
_.p(np,FN);np.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){w=(V=_.h(y,Xsr))==null?void 0:V.onComplete;W.clientLocationService.clearLocationPlayabilityToken(W.clientName);w&&W.JSC$17140_commandHandler.resolveCommand(w);_.B7(t)})};
np[cs]=[$a,c7u,_.oA];var HR=function(y){this.innertubeTransportService=y};
_.p(HR,FN);HR.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I;return _.g(function(P){F=(w=W)==null?void 0:(t=w.form)==null?void 0:t.element;return P.yield(_.OP(V.innertubeTransportService,y,(I=W)==null?void 0:I.form).then(function(C){SoL(F,new CustomEvent("yt-service-request-completed"),{data:C},_.yC("openPopupConfig"))}),0)})};
HR[cs]=[_.QY];var XP=function(){};
_.p(XP,FN);XP.prototype.resolveCommand=function(y){var W,V;return _.g(function(w){W=_.h(y,IgI);V=document.querySelector("mini-app-container-view-model");if(!W||!V)return w.return();W.isPlaying?V.dispatchEvent(new Event("play")):V.dispatchEvent(new Event("pause"));_.B7(w)})};var a3=function(){};
_.p(a3,FN);a3.prototype.resolveCommand=function(y){var W,V,w,t,F,I,P;return _.g(function(C){W=_.h(y,Ck2);if((V=W)==null||!V.paramKeys)return C.return();w=W.paramKeys;t=_.Ey(window.location.href);F=_.N(w);for(I=F.next();!I.done;I=F.next())P=I.value,t.JSC$9958_queryData_.remove(P);window.history.replaceState(window.history.state,document.title,t.toString());_.B7(C)})};var V4u=function(){this.dropdownMap=new Map};_.wyj=new _.e9("DROPDOWN_CONTROLLER_TOKEN");var Gv=function(y){this.controller=y};
_.p(Gv,FN);Gv.prototype.resolveCommand=function(y){var W=this,V,w,t,F;return _.g(function(I){V=_.h(y,nKr);if(!V)return I.return();w=V;t=w.dropdownId;F=w.selectedOptionIndex;if(t===void 0||F===void 0)return I.return();var P=W.controller.dropdownMap.get(t);P&&P(F);_.B7(I)})};
Gv[cs]=[_.wyj];var rt=function(y){this.controller=y};
_.p(rt,FN);rt.prototype.resolveCommand=function(y){var W=this,V;return _.g(function(w){return(V=_.h(y,Fui))?w.yield(W.controller.closeDialog(),0):w.return()})};
rt[cs]=[_.HS];var bY=function(y){this.controller=y};
_.p(bY,FN);bY.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){V=_.h(y,Jqz);if(!V)return t.return();var F,I=V.panelIdentifier||((F=V.identifier)==null?void 0:F.tag);if(!I)throw Error("Hi");return(w=I)?t.yield(W.controller.hidePanel(w),0):t.jumpTo(0)})};
bY[cs]=[_.$t];var Qz=function(y,W){this.innertubeTransportService=y;this.controller=W};
_.p(Qz,FN);Qz.prototype.resolveCommand=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return V=_.h(y,R$s),(w=V)!=null&&w.panelId?I.yield(W.controller.getReloadContinuation(V.panelId),2):I.return();if(I.nextAddress!=3)return(t=I.yieldResult)?I.yield(_.OP(W.innertubeTransportService,y,{continuation:t}),3):I.return();F=I.yieldResult;return I.yield(W.controller.updatePanel(V.panelId,F.content,!1),0)})};
Qz[cs]=[_.QY,_.$t];var Zw=function(y,W,V){this.innertubeTransportService=y;this.JSC$17176_screenManager=W;this.JSC$17176_commandHandler=V};
_.p(Zw,FN);
Zw.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1){V=_.h(y,_.SJz);if(!V)return C.return();if(V.commands)for(w=_.N(V.commands),t=w.next();!t.done;t=w.next())F=t.value,W.JSC$17176_commandHandler.resolveCommand(F,{disableClickTracking:!0});I=_.nD(y.clickTrackingParams);_.qx(W.JSC$17176_screenManager,21760,I,{layer:7,parentLayer:0});return C.yield(_.OP(W.innertubeTransportService,y),2)}P=C.yieldResult;if(!P)return C.return();W.JSC$17176_screenManager.graftServerVe(P.trackingParams,I,
7);_.B7(C)})};
Zw[cs]=[_.QY,_.HB,_.oA];var y0=new _.e9("PANEL_LOADING_STRATEGY_TOKEN");var Wx=function(y,W){this.controller=y;this.panelLoadingStrategy=W};
_.p(Wx,FN);
Wx.prototype.resolveCommand=function(y,W){var V=this,w,t,F;return _.g(function(I){w=_.h(y,TdK);if((t=w)==null||!t.panelLoadingStrategy)return I.return();F=function(P){var C,d,L,z,c,K,f,U,l;return _.g(function(x){d=_.h((C=P.dialogViewModel)==null?void 0:C.header,Hcq);L={viewModel:P.dialogViewModel};z={};if(f=_.e("web_enable_dialog_header_label")?(c=d)==null?void 0:(K=c.headline)==null?void 0:K.content:void 0)z.ariaLabel=f;w.dismissOnBackgroundTap===!1&&(z.isModal=!0);return P.dialogViewModel?x.yield(V.controller.openDialog(L,
(U=W)==null?void 0:(l=U.form)==null?void 0:l.element,z),0):x.return()})};
return I.yield(V.panelLoadingStrategy.execute({command:y,data:w.panelLoadingStrategy,renderFn:F,createScreenConfig:{layer:4}}),0)})};
Wx[cs]=[_.HS,y0];var V0=function(y,W,V){this.innertubeTransportService=y;this.controller=W;this.JSC$17196_screenManager=V};
_.p(V0,FN);
V0.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f;return _.g(function(U){switch(U.nextAddress){case 1:w=_.h(y,_.rx);if(!w)return U.return();var l,x=w.panelIdentifier||((l=w.identifier)==null?void 0:l.tag);if(!x)throw Error("Hi");t=x;return U.yield(V.controller.isVisible(t,!0),2);case 2:if((F=U.yieldResult)&&w.blockIfPanelOpen)return U.return();C=(P=(I=V.controller).getPanelContent)==null?void 0:P.call(I,t);if(!(l=C))if(w){var B;l=((B=w.globalConfiguration)==null?void 0:
B.initialState)||w.engagementPanel;if(B=!l)B=!!(w==null?0:(x=w.engagementPanelPresentationConfigs)==null?0:x.engagementPanelPopupPresentationConfig);B&&(l=_.UsL(w.panelIdentifier,w.identifier))}else l=void 0;d=l;L=w.engagementPanelPresentationConfigs;z=w.engagementPanelExtras;return U.yield(V.controller.showPanel(t,d,L,z,(c=W)==null?void 0:(K=c.form)==null?void 0:K.element),3);case 3:if(!w.globalConfiguration){U.jumpTo(0);break}_.qx(V.JSC$17196_screenManager,32633);return U.yield(_.OP(V.innertubeTransportService,
y),5);case 5:return f=U.yieldResult,V.JSC$17196_screenManager.graftServerVe(f.trackingParams),U.yield(V.controller.updatePanel(t,f.content,!0,z,void 0,f.updatePanelContinuationData),0)}})};
V0[cs]=[_.QY,_.$t,_.HB];var wH=function(y,W){this.controller=y;this.panelLoadingStrategy=W};
_.p(wH,FN);wH.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C;return _.g(function(d){w=_.h(y,_.Jn);if((t=w)==null||!t.panelLoadingStrategy)return d.return();P=t44(V.controller,(F=W)==null?void 0:(I=F.form)==null?void 0:I.element);C=function(L){return _.g(function(z){return L.sheetViewModel?z.yield(V.controller.openSheet({viewModel:L.sheetViewModel},P),0):z.return()})};
return d.yield(V.panelLoadingStrategy.execute({command:y,data:w.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:0}}),0)})};
wH[cs]=[_.nr,y0];var tp=function(y,W){this.controller=y;this.JSC$17204_commandHandler=W};
_.p(tp,FN);tp.prototype.resolveCommand=function(y,W){var V=this,w,t,F;return _.g(function(I){if(I.nextAddress==1){w=_.h(y,HjA);var P=_.h(w.showCommand,_.rx),C,d,L=(d=P==null?void 0:P.panelIdentifier)!=null?d:P==null?void 0:(C=P.identifier)==null?void 0:C.tag;if(!L)throw Error("Ii");t=L;return I.yield(V.controller.isVisible(t),2)}return(F=I.yieldResult)?I.yield(V.controller.hidePanel(t),0):I.yield(V.JSC$17204_commandHandler.resolveCommand(w.showCommand,W),0)})};
tp[cs]=[_.$t,_.oA];var Ft=function(y,W,V){this.innertubeTransportService=y;this.controller=W;this.JSC$17207_screenManager=V};
_.p(Ft,FN);
Ft.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv;return _.g(function(Py){switch(Py.nextAddress){case 1:return w=V=_.h(y,XwQ),t=w.targetPanelIdentifier,F=w.contentSourcePanelIdentifier,I=w.globalConfiguration,((P=t)==null?0:P.tag)&&((C=F)==null?0:C.tag)?I?Py.yield(W.controller.showPanel(t.tag,_.UsL(t.tag,t),void 0,void 0,void 0),5):Py.yield((c=(z=W.controller).getPanel)==null?void 0:c.call(z,F.tag),4):Py.return();case 4:K=Py.yieldResult;d=(f=K)==null?
void 0:(l=(U=f).getPanelContent)==null?void 0:l.call(U);Py.jumpTo(3);break;case 5:return Py.yield(_.OP(W.innertubeTransportService,y),6);case 6:x=Py.yieldResult,((B=x)==null?0:B.trackingParams)&&W.JSC$17207_screenManager.graftServerVe(x.trackingParams),d=(r=x)==null?void 0:r.content,L=(H=x)==null?void 0:H.updatePanelContinuationData;case 3:if(b=(a=d)==null?void 0:a.engagementPanelSectionListRenderer)return Py.yield(W.controller.showPanel(t.tag,void 0,void 0,void 0,void 0,{content:b.content,secondaryHeaderContent:(Fv=
b.header)!=null?Fv:{},targetId:b.targetId},L),0);Py.jumpTo(0)}})};
Ft[cs]=[_.QY,_.$t,_.HB];var EN=function(y){this.JSC$17214_commandHandler=y};
_.p(EN,FN);
EN.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return(V=_.h(y,wQm))?C.yield(_.u8(),2):C.return();w=C.yieldResult;if(!w)return C.return();var d=w,L=(t=V)==null?void 0:t.languageCode,z=(F=V)==null?void 0:F.isAutoTranslated;d.getVideoData&&_.Swv(d).length&&((L=lzG(d,L,z))?d.setOption("captions","track",L):(d.setOption("captions","stickyLoading",{}),d.setOption("captions","track",{})));I=w.isSubtitlesOn()?_.u5("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.u5("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");P=_.eW(I);W.JSC$17214_commandHandler.resolveCommand(P);_.B7(C)})};
EN[cs]=[_.oA];var NL=function(y,W){this.shortsPlayerPromise=y;this.JSC$17218_commandHandler=W};
_.p(NL,FN);
NL.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1)return(V=_.h(y,hKm))?L.yield(W.shortsPlayerPromise,2):L.return();w=L.yieldResult;var z=xsv(w);z!=null&&z.length||(w.loadModule("captions"),z=xsv(w));t=z;if((F=t)==null||!F.length)return I=_.u5("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),P=_.eW(I),W.JSC$17218_commandHandler.resolveCommand(P),L.return();w.toggleSubtitles();C=w.isSubtitlesOn()?_.u5("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.u5("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.eW(C);W.JSC$17218_commandHandler.resolveCommand(d);_.B7(L)})};
NL[cs]=[_.Fl2,_.oA];var Io=function(y){this.JSC$17221_playerPromise=y};
_.p(Io,FN);Io.prototype.resolveCommand=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return(V=_.h(y,$2A))?I.yield(W.JSC$17221_playerPromise,2):I.return();w=I.yieldResult;t=w.getVideoData().video_id;V.videoId===t&&(F=Number(V.offsetFromVideoStartMilliseconds),F>=0&&w.seekTo(F/1E3));_.B7(I)})};
Io[cs]=[_.mG];var FLP=_.qK("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),gH=function(y){this.store=y};
_.p(gH,FN);
var EPv=function(y){var W,V,w,t;return _.g(function(F){if(F.nextAddress==1)return W=_.yC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,V=_.yC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,w=W||V,y.mainAppPlayer=new vS(w),F.yield(y.mainAppPlayer.api,2);t=F.yieldResult;t.addEventListener("onStateChange",y.JSC$17225_playerStateChangeListener.bind(y));document.addEventListener("yt-page-data-updated",y.pauseOnNavigation.bind(y));window.addEventListener("state-navigatestart",
y.pauseOnNavigation.bind(y));_.B7(F)})};
gH.prototype.JSC$17225_playerStateChangeListener=function(y){switch(y){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"}Nuv(this)};
var Nuv=function(y){y.store.dispatch(_.B5("sfvAudioItemCurrentlyPlayingEntity",FLP,{key:FLP,externalVideoId:y.externalVideoId,sfvAudioItemPlaybackState:y.playbackState,nowPlayingEntityValue:y.nowPlayingEntityValue}))};
gH.prototype.pauseOnNavigation=function(){var y=this,W,V,w,t;return _.g(function(F){if(F.nextAddress==1){if(!y.mainAppPlayer){var I=new _.Js("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.ap(I);return F.return()}return F.yield(y.mainAppPlayer.api,2)}W=F.yieldResult;w=(V=W)==null?void 0:V.getPlayerState();w!==1||(t=W)!=null&&t.pauseVideo();_.B7(F)})};
gH.prototype.playVideo=function(y,W,V){var w=this,t,F;return _.g(function(I){if(I.nextAddress==1)return I.yield((t=w.mainAppPlayer)==null?void 0:t.api,2);F=I.yieldResult;if(!w.mainAppPlayer||!F){var P=new _.Js("Error: mainAppPlayer is unavailable",w.mainAppPlayer);_.ap(P);return I.return()}return I.yield(w.mainAppPlayer.loadVideoWithPlayerVars({videoId:w.externalVideoId,audio_only:"1",start:y/1E3,end:y/1E3+W,player_params:V}),0)})};
gH.prototype.pauseVideo=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1){if(!y.mainAppPlayer){var t=new _.Js("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.ap(t);return w.return()}return w.yield(y.mainAppPlayer.api,2)}W=w.yieldResult;(V=W)==null||V.pauseVideo();_.B7(w)})};
gH.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H;return _.g(function(a){if(a.nextAddress==1)return V=_.h(y,LIs),t=(w=V)==null?void 0:w.nowPlayingEntityValue,I=(F=V)==null?void 0:F.externalVideoId,z=Number((L=(P=V)==null?void 0:(C=P.defaultStartPoints)==null?void 0:(d=C[0])==null?void 0:d.offsetMs)!=null?L:"0"),x=Number((l=(c=V)==null?void 0:(K=c.defaultStartPoints)==null?void 0:(f=K[0])==null?void 0:(U=f.duration)==null?void 0:U.seconds)!=null?l:"15"),H=(r=
(B=V)==null?void 0:B.playerParams)!=null?r:"",t&&I?W.mainAppPlayer?a.jumpTo(2):a.yield(EPv(W),2):a.return();if(a.nextAddress!=6){if(W.nowPlayingEntityValue&&t===W.nowPlayingEntityValue)return W.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?a.yield(W.pauseVideo(),0):a.yield(W.playVideo(z,x,H),0);W.externalVideoId=I;W.nowPlayingEntityValue=t;W.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return a.yield(W.playVideo(z,x,H),6)}Nuv(W);return a.jumpTo(0)})};
gH[cs]=[ma];var Px=function(y){this.JSC$17245_commandHandler=y};
_.p(Px,FN);Px.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return(w=_.h(y,tNK))?C.yield(_.u8(),2):C.return();t=C.yieldResult;if(!t)return C.return();(F=BA4(t))?V.JSC$17245_commandHandler.resolveCommand(F,W):(I=_.u5("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),P=_.eW(I),V.JSC$17245_commandHandler.resolveCommand(P));_.B7(C)})};
Px[cs]=[_.oA];var CW=function(y){this.JSC$17248_playerPromise=y};
_.p(CW,FN);CW.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I;return _.g(function(P){if(P.nextAddress==1){V=_.h(y,ng6);if(!V)return P.return();w=V.overlayRenderer;return w?(t=_.h(w,Epi))?P.yield(W.JSC$17248_playerPromise,3):P.jumpTo(0):P.return()}F=P.yieldResult;F.renderChapterSeekingAnimation(1,_.OT(t.text),(I=t.icon)==null?void 0:I.iconType);_.B7(P)})};
CW[cs]=[_.mG];var ON=function(y){this.store=y};
_.p(ON,FN);
ON.prototype.resolveCommand=function(y){var W=this,V,w,t;return _.g(function(F){if(F.nextAddress==1){V=_.h(y,tbz);if(!V)return F.return();w="";(t=W.store.getState().collabInviteLink)&&V.id===t.playlistId?w=t.inviteLinkURL:V.shortUrl&&(w=V.shortUrl);return w?F.yield(navigator.clipboard.writeText(w),3):F.jumpTo(0)}var I={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.u5("COPY_LINK_SUCCESS_TOAST")}}}}};_.hs().resolve(_.oA).resolveCommand(I);_.B7(F)})};
ON[cs]=[xa];var vx=function(y,W){this.innertubeTransportService=y;this.JSC$17258_commandHandler=W};
_.p(vx,FN);vx.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c;return _.g(function(K){if(K.nextAddress==1)return(w=_.h(y,_.E8))?K.yield(_.OP(V.innertubeTransportService,y,(t=W)==null?void 0:t.form),2):K.return();(F=K.yieldResult)&&F.errorMetadata&&(I=F,P=_.eW(I.error.message),V.JSC$17258_commandHandler.resolveCommand(P));C=F;if((d=C)==null?0:d.actions)for(L=_.N(C.actions),z=L.next();!z.done;z=L.next())c=z.value,V.JSC$17258_commandHandler.resolveCommand(c);_.B7(K)})};
vx[cs]=[_.QY,_.oA];var dH=function(){};
_.p(dH,FN);dH.prototype.resolveCommand=function(y){var W;return _.g(function(V){W=_.h(y,G0K);if(!W)return V.return();(new EwR(W)).show();_.B7(V)})};_.LW=new _.e9("PLAYLIST_EDIT_CONTROLLER_TOKEN");var zN=function(y,W,V,w){this.store=y;this.innertubeTransportService=W;this.controller=V;this.JSC$17266_commandHandler=w};
_.p(zN,FN);
zN.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py,du,mL,un,hv;return _.g(function($P){if($P.nextAddress==1){w=_.h(y,_.yB);if(!w)return $P.return();if(w.clientActions){t=_.N(w.clientActions);for(F=t.next();!F.done;F=t.next())I=F.value,V.JSC$17266_commandHandler.resolveCommand(I);var sz,Wz=W==null?void 0:(sz=W.form)==null?void 0:sz.element;Wz&&_.h1(Wz,"yt-dismissible-item-action",w.clientActions)}return $P.yield(_.OP(V.innertubeTransportService,y,(P=
W)==null?void 0:P.form),2)}if(C=$P.yieldResult)C.errorMetadata?(d=C,L=_.eW(d.error.message),V.JSC$17266_commandHandler.resolveCommand(L),"error"in C&&((z=W)==null?0:(c=z.commandController)==null?0:c.onServerError)&&((K=W)==null||(f=K.commandController)==null||f.onServerError(y,C))):(U=W)==null||(l=U.commandController)==null||(B=(x=l).onSuccess)==null||B.call(x,y,C);r=C;((H=r)==null?0:H.collaborationInviteLink)&&w.playlistId&&(_.e("web_enable_invite_collaborators_link")||_.e("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
V.store.dispatch(_.ig({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:w.playlistId,inviteLinkUrl:r.collaborationInviteLink}}));((a=r)==null?0:a.redirectEndpoint)&&V.JSC$17266_commandHandler.resolveCommand(r.redirectEndpoint);((b=r)==null?0:(Fv=b.newHeader)==null?0:Fv.playlistHeaderRenderer)?Itu(V.controller,r.newHeader.playlistHeaderRenderer):((Py=r)==null?0:(du=Py.newHeader)==null?0:du.musicEditablePlaylistDetailHeaderRenderer)&&Itu(V.controller,r.newHeader.musicEditablePlaylistDetailHeaderRenderer);
V.controller.playlistVideoListElement&&((mL=r)==null?0:(un=mL.playlistEditResults)==null?0:(hv=un[0])==null?0:hv.playlistEditVideoAddedResultData)&&((Wz=V.controller.playlistVideoListElement)==null||Wz.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:r.playlistEditResults[0].playlistEditVideoAddedResultData})));_.B7($P)})};
zN[cs]=[xa,_.QY,_.LW,_.oA];var cx=function(y,W){this.controller=y;this.JSC$17276_commandHandler=W};
_.p(cx,FN);cx.prototype.resolveCommand=function(y,W){var V=this,w,t,F;return _.g(function(I){w=_.h(y,FxI);V.controller.showRefreshPill&&((t=w)==null?0:t.command)&&(V.JSC$17276_commandHandler.resolveCommand((F=w)==null?void 0:F.command,W),V.controller.showRefreshPill=!1);_.B7(I)})};
cx[cs]=[_.TT,_.oA];var ee=function(y,W){this.store=y;this.JSC$17280_commandHandler=W||_.xc.instance};
_.p(ee,FN);ee.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c;return _.g(function(K){w=_.h(y,e0s);t=V.store.getState().radioButtonGroup;if((F=w)==null?0:F.command)V.JSC$17280_commandHandler.resolveCommand((I=w)==null?void 0:I.command,W);else if(t&&((P=w)==null?void 0:P.formId)===t.currentFormId)for(C=Object.values(t.commandsMap),d=_.N(C),L=d.next();!L.done;L=d.next())z=L.value,(c=_.tl(z))&&V.JSC$17280_commandHandler.resolveCommand(c,W);_.B7(K)})};
ee[cs]=[_.w0];var hp=new _.e9("USER_PREFS");var oo=function(y){this.JSC$17285_prefCookie=y};
_.p(oo,FN);oo.prototype.resolveCommand=function(y){var W=this,V;return _.g(function(w){(V=_.h(y,JPi))&&typeof V.useListView==="boolean"&&(_.xF(0,155,V.useListView),W.JSC$17285_prefCookie.save());_.B7(w)})};
oo[cs]=[hp];var KW=function(y){this.JSC$17289_prefCookie=y};
_.p(KW,FN);KW.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I;return _.g(function(P){V=_.h(y,bws);if((w=V)==null||!w.gl)return P.return();t=V.gl;F={persist_gl:"1",gl:t};W.JSC$17289_prefCookie.set("gl",t);W.JSC$17289_prefCookie.save();I=jvi(F);_.Ng(I);_.B7(P)})};
KW[cs]=[hp];var pW=function(y){this.JSC$17293_prefCookie=y};
_.p(pW,FN);pW.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){V=_.h(y,NFQ);if(!V)return t.return();w=!1;V.flagNum&&typeof V.value==="boolean"?(_.xF(0,V.flagNum,V.value),w=!0):V.key&&typeof V.stringValue==="string"&&(W.JSC$17293_prefCookie.set(V.key,V.stringValue),w=!0);w&&W.JSC$17293_prefCookie.save();_.B7(t)})};
pW[cs]=[hp];var ir=new _.e9("PREF_STORAGE_PROMISE_TOKEN");var fW=function(y){this.JSC$17297_prefStoragePromise=y};
_.p(fW,FN);fW.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return(V=_.h(y,gGm))?t.yield(W.JSC$17297_prefStoragePromise,2):t.return();w=t.yieldResult;return w===void 0||V.key===void 0||V.value===void 0?t.return():t.yield(w.set(V.key,V.value),0)})};
fW[cs]=[ir];var gPt=function(y){this.innertubeTransportService=y};
_.p(gPt,FN);gPt.prototype.resolveCommand=function(y,W){var V=this,w,t;return _.g(function(F){(w=_.h(y,_.YVf))&&w&&w.isFirstRequest&&(_.X$("search_overview_answer"),_.aw("so_rq",void 0,"search_overview_answer"));return F.yield(_.OP(V.innertubeTransportService,y,(t=W)==null?void 0:t.form),0)})};
gPt[cs]=[_.QY];var Pnq=function(){};
_.p(Pnq,FN);
Pnq.prototype.resolveCommand=function(y){var W,V,w,t,F,I,P,C,d;return _.g(function(L){W=_.h(y,j4z);if((V=W)==null?0:V.sectionIdentifier){if(W.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(t=(w=document.getElementsByTagName(W.sectionIdentifier))==null?void 0:w.item(0))t.scrollIntoView({behavior:"smooth"}),(F=iDL(t))&&F.focus({preventScroll:!0});return L.return()}I=document.querySelector("[section-identifier="+W.sectionIdentifier+"]");P=document.querySelector("[section-identifier="+W.referenceSectionIdentifier+
"]");if(!I)return L.return();C=W.verticalScrollOffsetDp?W.verticalScrollOffsetDp:0;P&&(C-=P.offsetTop);window.scrollTo({top:I.offsetTop+C,behavior:"smooth"});(d=iDL(I))&&d.focus({preventScroll:!0})}_.B7(L)})};var TN=function(y){this.JSC$17309_commandHandler=y};
_.p(TN,FN);
TN.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C;return _.g(function(d){if(d.nextAddress==1){V=_.h(y,Nzm);if(!V||!V.imageBytes||!navigator.clipboard)return d.return();if(V.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.ap(Error("Ki")),d.return();_.l7(d,2);t=(w=V)==null?void 0:w.imageBytes;F=t.replace(/-/g,"+").replace(/_/g,"/");I=pFv(F);P={};C=[new ClipboardItem((P[I.type]=I,P))];return d.yield(navigator.clipboard.write(C),4)}if(d.nextAddress!=2)return V.successCommand&&
W.JSC$17309_commandHandler.resolveCommand(V.successCommand),_.E6(d,0);_.YX(d);V.errorCommand&&W.JSC$17309_commandHandler.resolveCommand(V.errorCommand);_.B7(d)})};
TN[cs]=[_.oA];var m2=function(y,W){this.innertubeTransportService=y;this.JSC$17313_commandHandler=W};
_.p(m2,FN);m2.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return(w=_.h(y,INf))?C.yield(_.OP(V.innertubeTransportService,y,(t=W)==null?void 0:t.form),2):C.return();(F=C.yieldResult)&&F.errorMetadata&&w.onFailureCommand&&V.JSC$17313_commandHandler.resolveCommand(w.onFailureCommand);I=F;((P=I)==null?0:P.shareCommand)&&V.JSC$17313_commandHandler.resolveCommand(I.shareCommand,W);_.B7(C)})};
m2[cs]=[_.QY,_.oA];var ML=function(){};
_.p(ML,FN);ML.prototype.resolveCommand=function(y){var W,V;return _.g(function(w){W=_.h(y,wYz);if(!W||!navigator.share)return w.return();V={url:W.url};try{return w.return(navigator.share(V))}catch(t){}_.B7(w)})};var qL=function(){};
_.p(qL,FN);qL.prototype.resolveCommand=function(){return _.g(function(y){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.B7(y)})};var UN=function(y){this.JSC$17323_navigationConfirmationService=y};
_.p(UN,FN);UN.prototype.resolveCommand=function(){var y=this;return _.g(function(W){y.JSC$17323_navigationConfirmationService.cancelPendingNavigation();_.B7(W)})};
UN[cs]=[kt];var ur=function(y){this.JSC$17326_screenManager=y};
_.p(ur,FN);ur.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d;return _.g(function(L){t=(w=W.form)==null?void 0:w.event;I=(F=W.form)==null?void 0:F.element;if(!t)throw new _.Js("Event not passed in when resolving command");P=_.N(t.composedPath());for(C=P.next();!C.done;C=P.next())if(d=C.value,d.tagName==="YT-COPY-LINK-RENDERER")return d.copyUrlToClipboard(),I&&_.gp(V.JSC$17326_screenManager,I),L.return();_.B7(L)})};
ur[cs]=[_.HB];var Se=function(){this.JSC$17330_miniAppClientDataProvider=_.hs().resolve(_.FP)};
_.p(Se,FN);Se.prototype.resolveCommand=function(){var y=this,W,V;return _.g(function(w){if(y.JSC$17330_miniAppClientDataProvider.clientData.has("video_id")){var t=y.JSC$17330_miniAppClientDataProvider,F=t.clientData.get("video_id");F&&t.clientData.delete("video_id");W="https://youtube.com/watch?v="+F;V=QG(W);if(V===void 0)throw Error("Li`"+W);_.P7(window,V)}_.B7(w)})};var DV=function(){};
_.p(DV,FN);DV.prototype.resolveCommand=function(){return _.g(function(y){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.B7(y)})};var lr=function(){};
_.p(lr,FN);lr.prototype.resolveCommand=function(){var y;return _.g(function(W){if(W.nextAddress==1)return W.yield(_.Gf4(window.document.documentElement),2);(y=document.querySelector("mini-app-container-view-model iframe"))&&y.focus();_.B7(W)})};var xQ=function(y){this.JSC$17337_navigationConfirmationService=y};
_.p(xQ,FN);
xQ.prototype.resolveCommand=function(){var y=this;return _.g(function(W){var V=y.JSC$17337_navigationConfirmationService,w=_.hs().resolve(_.jL),t;if(((t=V.navigateParams)==null?void 0:t.data)!==void 0){var F;_.PmQ(w,V.navigateParams.endpoint,V.navigateParams.data,(F=V.navigateParams.navigationType)!=null?F:1,V.navigateParams.tempData,V.navigateParams.isMiniplayer,void 0,!0);V.navigateParams=void 0;V.customConfirmationCommand=void 0}else V.navigateParams&&(w.navigate(V.navigateParams.endpoint,V.navigateParams.reload,
V.navigateParams.params,V.navigateParams.tempData,V.navigateParams.requestType,V.navigateParams.createScreenConfig,!0),V.navigateParams=void 0,V.customConfirmationCommand=void 0);_.B7(W)})};
xQ[cs]=[kt];var kQ=function(){};
_.p(kQ,FN);kQ.prototype.resolveCommand=function(){return _.g(function(y){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.B7(y)})};var sN=function(y){this.JSC$17342_prefStorage=y};
_.p(sN,FN);sN.prototype.resolveCommand=function(){var y=this,W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(y.JSC$17342_prefStorage,2);case 2:return(W=w.yieldResult)?w.yield(W.set("sfvle",!1),3):w.return();case 3:return w.yield(W.set("sfvles",!0),4);case 4:V=_.l5(),_.xF(0,203,!1),_.xF(0,204,!0),V.save(),_.B7(w)}})};
sN[cs]=[ir];var Ap=function(y){this.JSC$17345_prefStorage=y};
_.p(Ap,FN);Ap.prototype.resolveCommand=function(){var y=this,W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(y.JSC$17345_prefStorage,2);case 2:return(W=w.yieldResult)?w.yield(W.set("sfvle",!0),3):w.return();case 3:return w.yield(W.set("sfvles",!0),4);case 4:V=_.l5(),_.xF(0,203,!0),_.xF(0,204,!0),V.save(),_.B7(w)}})};
Ap[cs]=[ir];_.Cnu=new _.e9("SNACKBAR_CONTROLLER_TOKEN");_.Odq=new _.e9("SHOULD_SHOW_PIVOT_BAR_TOKEN");var YQ=function(y){this.controller=y};
_.p(YQ,FN);YQ.prototype.resolveCommand=function(y){var W=this,V;return _.g(function(w){V=_.h(y,fkE);if(!V)return w.return();var t=W.controller;t.closeSnackbarFn&&t.closeSnackbarFn();_.B7(w)})};
YQ[cs]=[_.Cnu];var Bx=function(y,W){this.controller=y;this.sheetController=W};
_.p(Bx,FN);Bx.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C;return _.g(function(d){w=_.h(y,miI);if(!w)return d.return();I=t44(V.sheetController,(t=W)==null?void 0:(F=t.form)==null?void 0:F.element);P=_.h(w.content,JSm);if(!P)return d.return();var L=V.controller,z=P,c=(C=w.animationStyle)!=null?C:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(L.showSnackbarFn)L.showSnackbarFn({snackbarViewModel:z,animationStyle:c,durationMs:w.durationSeconds*1E3,target:I});else throw Error("uj");_.B7(d)})};
Bx[cs]=[_.Cnu,_.nr];var Jp=function(){};
_.p(Jp,FN);Jp.prototype.resolveCommand=function(y){var W;return _.g(function(V){W=_.h(y,IeE);if(!W||typeof W.key!=="string"||typeof W.value!=="string")return V.return();window.localStorage.setItem(W.key,W.value);_.B7(V)})};var Ro=function(y){this.store=y};
_.p(Ro,FN);Ro.prototype.resolveCommand=function(y){var W=this,V;return _.g(function(w){V=_.h(y,wcR);if(!V||!V.stepId||!V.token)return w.return();W.store.dispatch(NX6({stepId:V.stepId,token:V.token,isSelected:!1}));_.B7(w)})};
Ro[cs]=[xa];var je=function(y,W,V){this.innertubeTransportService=y;this.store=W;this.JSC$17364_screenManager=V};
_.p(je,FN);
je.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a,b,Fv,Py;return _.g(function(du){V=_.h(y,VIK);if(!V||(w=V.stepIds)==null||!w.length)return du.return();t=W.store.getState().talkToRecs;F=[];I=[];P=_.N(V.stepIds);for(C=P.next();!C.done;C=P.next())for(d=C.value,L=void 0,(z=(L=t.stepStates[d])==null?void 0:L.userQuery)&&I.push({userQuery:z.userQuery,userQueryToken:z.token}),c=void 0,K=(c=t.stepStates[d])==null?void 0:c.selectionStates,f=_.N(Object.entries(K)),U=
f.next();!U.done;U=f.next())l=U.value,x=_.N(l),B=x.next().value,r=x.next().value,H=B,a=r,a.isSelected&&F.push(H);b={selectedChipTokens:F,userQueries:I,submittedStepIds:V.stepIds};Fv={browseTalk2recsFormData:b};V.browseEndpoint?(Py=y,_.Z8(Py,_.sT,V.browseEndpoint)):V.command&&(Py=V.command);return Py?du.yield(_.OP(W.innertubeTransportService,Py,{formData:Fv,disableCache:!0}).then(function(mL){(mL==null?0:mL.trackingParams)&&W.JSC$17364_screenManager.graftServerVe(mL==null?void 0:mL.trackingParams)}),
0):du.return()})};
je[cs]=[_.QY,xa,_.HB];var $Q=function(y){this.store=y};
_.p($Q,FN);$Q.prototype.resolveCommand=function(y){var W=this,V;return _.g(function(w){V=_.h(y,Van);if(!V||!V.stepId||!V.token)return w.return();W.store.dispatch(NX6({stepId:V.stepId,token:V.token,isSelected:!0}));_.B7(w)})};
$Q[cs]=[xa];var nW=function(y){this.store=y};
_.p(nW,FN);nW.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P;return _.g(function(C){w=_.h(y,wgi);if(!w||!w.stepId||!w.userQueryToken)return C.return();P=(I=(t=W)==null?void 0:(F=t.form)==null?void 0:F.userQuery)!=null?I:"";V.store.dispatch(_.ig({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:w.stepId,userQueryToken:w.userQueryToken,userQuery:P}}));_.B7(C)})};
nW[cs]=[xa];_.vPu=new _.e9("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Hx=function(y){this.controller=y};
_.p(Hx,FN);Hx.prototype.resolveCommand=function(y){var W=this,V,w,t,F;return _.g(function(I){V=_.h(y,B9R);if(!V)return I.return();w=V;t=w.id;F=w.isVisible;if(t===void 0||F===void 0)return I.return();var P;(P=W.controller.timelyActionsMap.get(t))==null||P(t,F);_.B7(I)})};
Hx[cs]=[_.vPu];var dae=function(){this.timelyActionsMap=new Map};var Xt=function(y){this.JSC$17391_commandHandler=y};
_.p(Xt,FN);Xt.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I;return _.g(function(P){V=_.h(y,_.Jr);if(!V)return P.return();F=(w=V.item)==null?void 0:(t=w.notificationTextRenderer)==null?void 0:t.successResponseText;if(!F)return P.return();I=_.zw(F);W.JSC$17391_commandHandler.resolveCommand(I);_.B7(P)})};
Xt[cs]=[_.oA];var ao=function(y,W){this.innertubeTransportService=y;this.JSC$17396_playerApiPromise=W};
_.p(ao,FN);
ao.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L;return _.g(function(z){if(z.nextAddress==1)return z.yield(W.JSC$17396_playerApiPromise,2);V=z.yieldResult;w=V.getOption("captions","track");t=Object.assign({},_.h(y,_.UY6));(I=(F=V.getVideoData())==null?void 0:F.video_id)?t.externalVideoId=I:_.FU(Error("Mi"));if((P=w)==null?0:P.languageCode)t.languageCode=w.languageCode;if((C=w)==null?0:C.kind)t.kind=w.kind;if((d=w)==null?0:d.name)t.name=w.name;L=Object.assign({},y,{getTranscriptEndpoint:t});return z.yield(_.OP(W.innertubeTransportService,
L),0)})};
ao[cs]=[_.QY,_.mG];var GN=function(){};
_.p(GN,FN);GN.prototype.resolveCommand=function(y){var W,V,w,t,F,I,P,C;return _.g(function(d){W=_.h(y,c0R);if((V=W)==null||!V.paramKeyValuePairs)return d.return();w=window.location.href;t=_.N(W.paramKeyValuePairs);for(F=t.next();!F.done;F=t.next())I=F.value,I.key&&I.value&&(P={},w=_.CB(w,(P[I.key]=I.value,P)));C=_.hs().resolve(_.DO);_.SU(C,w);_.B7(d)})};var rH=function(y,W){this.JSC$17403_commandHandler=y;this.innertubeTransportService=W};
_.p(rH,FN);
rH.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r;return _.g(function(H){switch(H.nextAddress){case 1:return(F=(w=W)==null?void 0:(t=w.form)==null?void 0:t.element)&&_.Ep(F),I=_.l5().get("hl"),P="",_.l7(H,2),H.yield($sR(I),4);case 4:P=H.yieldResult;_.E6(H,3);break;case 2:return _.YX(H),F&&_.NE(F),_.ap(Error("Oi"),"ERROR"),H.return();case 3:C=_.h(y,dCs);if(!C)return F&&_.NE(F),H.return();(z=(d=C.commerceActionConfig)==null?void 0:(L=d.commandLifeCycleConfig)==null?
void 0:L.onStartCommand)&&V.JSC$17403_commandHandler.resolveCommand(z);return H.yield(_.OP(V.innertubeTransportService,y,{client_data:{paymentsClientToken:{token:P}}}),5);case 5:(c=H.yieldResult)?(F&&_.NE(F),((l=c)==null?0:l.command)&&V.JSC$17403_commandHandler.resolveCommand(c.command),(r=(x=C.commerceActionConfig)==null?void 0:(B=x.commandLifeCycleConfig)==null?void 0:B.onSuccessCommand)&&V.JSC$17403_commandHandler.resolveCommand(r)):(F&&_.NE(F),_.ap(Error("Pi")),(U=(K=C.commerceActionConfig)==
null?void 0:(f=K.commandLifeCycleConfig)==null?void 0:f.onFailureCommand)&&V.JSC$17403_commandHandler.resolveCommand(U)),_.B7(H)}})};
rH[cs]=[_.oA,_.QY];var br=function(y,W,V){this.store=y;this.JSC$17419_commandHandler=W;this.innertubeTransportService=V};
_.p(br,FN);
br.prototype.resolveCommand=function(y,W){var V=this,w,t,F,I,P,C,d,L,z;return _.g(function(c){w=_.h(y,LKQ);t=w.googlePaymentPayload;w.onStartCommand&&V.JSC$17419_commandHandler.resolveCommand(w.onStartCommand);F=t.encryptedPurchaseParams;I=t.ypcLogWalletAnalyticDataEndpoint;P=w.serializedTransactionFlowLoggingParams;C=t.serializedPaymentsClientParams;d=w.ypcCujContext;z=XFd(V.innertubeTransportService,(L=W)==null?void 0:L.form,F,I,P,C,d);return c.return(z.then(function(K){nbn(W==null?void 0:W.form,
!1);var f=V.store,U=V.JSC$17419_commandHandler,l=K.integratorData;l==null||l===""||K.error!=null?(String(K.error)==="-1"&&w.onDismissCommand?U.resolveCommand(w.onDismissCommand):String(K.error)!=="-1"&&w.onFailureCommand&&U.resolveCommand(w.onFailureCommand),String(K.error)!=="-1"&&String(K.error)!=="132"&&_.ap(Error("Qi"),"ERROR")):(w.googlePaymentEntityKey&&f.dispatch(_.B5("commerceAcquisitionClientPayloadEntity",w.googlePaymentEntityKey,{key:w.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:l,
fundsGuaranteeCallbackClientData:K.integratorClientCallbackData}}})),w.onSuccessCommand&&U.resolveCommand(w.onSuccessCommand));_.T2()},function(K){nbn(W==null?void 0:W.form,!1);
_.ap(K,"ERROR");w.onFailureCommand&&V.JSC$17419_commandHandler.resolveCommand(w.onFailureCommand)}))})};
br[cs]=[ma,_.oA,_.QY];var Q0=function(y,W){this.JSC$17423_commandHandler=y;this.purchaseManager=W};
_.p(Q0,FN);
Q0.prototype.resolveCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L;return _.g(function(z){V=_.h(y,zjI);((w=V)==null?0:(t=w.commandLifeCycleConfig)==null?0:t.onStartCommand)&&W.JSC$17423_commandHandler.resolveCommand(V.commandLifeCycleConfig.onStartCommand);if(!((F=V)==null?0:(I=F.googlePaymentPurchaseManagerPayload)==null?0:I.securePayloadBytes))return _.ap(Error("Ri"),"ERROR"),z.return();P=hdI(_.Cq(V.googlePaymentPurchaseManagerPayload.securePayloadBytes));C=_.l5().get("hl");d=_.v5();eZq(P.serialize(),
C,function(c){d.resolve(c)},function(c){d.reject(c)},d.resolve);
L=d.promise;return z.return(L.then(function(c){if(c)if(c==null?0:c.errorCode){_.ap(Error("Si`"+c.errorCode),"ERROR");var K,f;((K=V)==null?0:(f=K.commandLifeCycleConfig)==null?0:f.onFailureCommand)&&W.JSC$17423_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}else if(c==null?0:c.isCancelled){var U,l;((U=V)==null?0:(l=U.commandLifeCycleConfig)==null?0:l.onCancelCommand)&&W.JSC$17423_commandHandler.resolveCommand(V.commandLifeCycleConfig.onCancelCommand)}else{var x,B;((x=V)==
null?0:(B=x.commandLifeCycleConfig)==null?0:B.onSuccessCommand)&&W.JSC$17423_commandHandler.resolveCommand(V.commandLifeCycleConfig.onSuccessCommand)}},function(c){_.ap(c,"ERROR");
var K,f;((K=V)==null?0:(f=K.commandLifeCycleConfig)==null?0:f.onFailureCommand)&&W.JSC$17423_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}))})};
Q0[cs]=[_.oA,hZm];var LLE=function(y,W){this.JSC$17431_commandHandler=y;this.commandAllowlistOverride=W;var V;this.commandAllowlist=(V=this.commandAllowlistOverride)!=null?V:dp};
LLE.prototype.handleResponse=function(y,W,V){var w,t=W==null?void 0:(w=W.config)==null?void 0:w.command;if(!t||this.commandAllowlist.some(function(F){return!!_.h(t,F)})){W=void 0;
V!==void 0&&(W={form:{element:V}});y.onResponseReceivedCommand&&this.JSC$17431_commandHandler.resolveCommand(y.onResponseReceivedCommand,W);y.onResponseReceivedAction&&this.JSC$17431_commandHandler.resolveCommand(y.onResponseReceivedAction,W);y.onResponseReceivedEndpoint&&this.JSC$17431_commandHandler.resolveCommand(y.onResponseReceivedEndpoint,W);y.command&&this.JSC$17431_commandHandler.resolveCommand(y.command,W);if(y.onResponseReceivedCommands)for(V=_.N(y.onResponseReceivedCommands),w=V.next();!w.done;w=
V.next())this.JSC$17431_commandHandler.resolveCommand(w.value,W);if(y.onResponseReceivedActions)for(V=_.N(y.onResponseReceivedActions),w=V.next();!w.done;w=V.next())this.JSC$17431_commandHandler.resolveCommand(w.value,W);if(y.onResponseReceivedEndpoints)for(V=_.N(y.onResponseReceivedEndpoints),w=V.next();!w.done;w=V.next())this.JSC$17431_commandHandler.resolveCommand(w.value,W);if(y.actions)for(y=_.N(y.actions),V=y.next();!V.done;V=y.next())this.JSC$17431_commandHandler.resolveCommand(V.value,W)}};
LLE[cs]=[_.oA,_.eX(KYn)];var zbW=new _.e9("INNERTUBE_TOKEN_SERVICE");var cvj=new _.e9("SCHEDULER_TOKEN");var ebW=function(y){this.scheduler=y;y={};this.tokenMap=(y.app={},y.user={},y)};
ebW.prototype.handleResponse=function(y,W){if(!W)throw Error("Ti");var V;if(y=(V=y.responseContext)==null?void 0:V.innertubeTokenJar){if(y.appTokens){var w,t,F;V=(w=W.innerTubeRequest.context)==null?void 0:(t=w.request)==null?void 0:(F=t.innertubeTokenJar)==null?void 0:F.appTokens;hbu(this,y.appTokens,this.tokenMap.app,V)}if(y.userTokens){var I,P,C;W=(I=W.innerTubeRequest.context)==null?void 0:(P=I.request)==null?void 0:(C=P.innertubeTokenJar)==null?void 0:C.userTokens;hbu(this,y.userTokens,this.tokenMap.user,
W)}}};
ebW.prototype.processContext=function(y){y.request||(y.request={});var W=Object.keys(this.tokenMap.app).length,V=Object.keys(this.tokenMap.user).length;if(W||V)y.request.innertubeTokenJar={},W&&(y.request.innertubeTokenJar.appTokens=[].concat(_.GC(Object.values(this.tokenMap.app).flat()))),V&&(y.request.innertubeTokenJar.userTokens=[].concat(_.GC(Object.values(this.tokenMap.user).flat())))};
var hbu=function(y,W,V,w){W=_.N(W);for(var t=W.next(),F={};!t.done;F={token$jscomp$138:void 0},t=W.next()){F.token$jscomp$138=t.value;if(F.token$jscomp$138.type===void 0)throw new _.Js("InnerTube token has no type",F.token$jscomp$138);if(F.token$jscomp$138.clearTokens)V[F.token$jscomp$138.type]=[];else if(F.token$jscomp$138.value!==void 0){V[F.token$jscomp$138.type]||(V[F.token$jscomp$138.type]=[]);if(w!==void 0&&w.length){t=_.N(w);for(var I=t.next(),P={};!I.done;P={requestToken:void 0},I=t.next())P.requestToken=
I.value,I=V[F.token$jscomp$138.type].findIndex(function(C){return function(d){return d===C.requestToken||(0,_.Gc.equals)(d,C.requestToken)}}(P)),I>-1&&V[F.token$jscomp$138.type].splice(I,1)}V[F.token$jscomp$138.type].push(F.token$jscomp$138);
F.token$jscomp$138.maxAgeSeconds&&Number(F.token$jscomp$138.maxAgeSeconds)>0&&y.scheduler.addLowPriorityJob(function(C){return function(){var d=V[C.token$jscomp$138.type].indexOf(C.token$jscomp$138);d>-1&&V[C.token$jscomp$138.type].splice(d,1)}}(F),Number(F.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.Js("InnerTube token has no value",F.token$jscomp$138);
}};
ebW[cs]=[cvj];var oPu=new _.e9("LOCAL_INNERTUBE_ROUTER_TOKEN"),KLd=new _.e9("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var ZV=function(y){this.serviceMap=y};
ZV.prototype.shouldPreferLocalResponse=function(y,W){return(y=pye(this,y))?y.shouldPreferLocalResponse(W):!1};
ZV.prototype.localInnertubeResponse=function(y,W){var V=this,w;return _.g(function(t){return(w=pye(V,y))?t.return(w.localInnertubeResponse(W)):t.return(Promise.reject(Error("Ui")))})};
ZV.prototype.canProvideFallbackResponse=function(y,W){return(y=pye(this,y))?y.canProvideFallbackResponse(W):!1};
ZV.prototype.localFallbackInnertubeResponse=function(y,W){var V=this,w;return _.g(function(t){return(w=pye(V,y))?t.return(w.localFallbackInnertubeResponse(W)):t.return(Promise.reject(Error("Ui")))})};
var pye=function(y,W){W=_.U1(W);return W?(y=y.serviceMap[W])?y:null:null};
ZV[cs]=[KLd];var RD=function(){};
RD.prototype.shouldPreferLocalResponse=function(){return!1};
RD.prototype.localInnertubeResponse=function(){return _.g(function(y){return y.return(Promise.reject(Error("Vi")))})};
RD.prototype.canProvideFallbackResponse=function(){return!0};
RD.prototype.localFallbackInnertubeResponse=function(){var y,W,V;return _.g(function(w){y=Rt("CLOSE_POPUP");W={openPopupAction:GUt()};V={actions:[y,W]};return w.return(V)})};var Xiv=function(y,W){this.JSC$17481_upliftPromise=y;this.store=W};
_.E=Xiv.prototype;_.E.shouldPreferLocalResponse=function(y){var W=y.videoId,V;if(V=W)V=ArG(this.store.getState().entities,y.videoId);return V&&YVL(this.store.getState().entities,W)?bSL(this.store.getState().entities,y.playlistId):!1};
_.E.localInnertubeResponse=function(y){var W=this,V;return _.g(function(w){return(V=W.getPlayerResponse(y))?w.return(Promise.resolve(V)):w.return(Promise.reject(Error("Wi")))})};
_.E.canProvideFallbackResponse=function(y){return!!y.videoId};
_.E.localFallbackInnertubeResponse=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.JSC$17481_upliftPromise,2);V=W.getPlayerResponse(y);var t;V?t=w.return(Promise.resolve(V)):t=RB(W.store.getState().entities,y.videoId)?w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.oB(_.u5("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:PBL()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.oB(_.u5("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gHd()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return t})};
_.E.getPlayerResponse=function(y){return CTz(this.store.getState().entities,y.videoId)};var JD=function(y,W){this.localPlayerService=y;this.localWatchNextService=W};
JD.prototype.shouldPreferLocalResponse=function(y){var W=y.playerRequest;y=y.watchNextRequest;return!!(W&&this.localPlayerService.shouldPreferLocalResponse(W)&&y&&this.localWatchNextService.shouldPreferLocalResponse(y))};
JD.prototype.localInnertubeResponse=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1){V=y.playerRequest;w=y.watchNextRequest;if(!V||!w)throw new _.Js("Missing streaming request",y);return I.yield(W.localPlayerService.localInnertubeResponse(V),2)}if(I.nextAddress!=3)return t=I.yieldResult,I.yield(W.localWatchNextService.localInnertubeResponse(w),3);F=I.yieldResult;return I.return({playerResponse:t,watchNextResponse:F})})};
JD.prototype.canProvideFallbackResponse=function(y){var W=y.playerRequest;y=y.watchNextRequest;return!!(W&&this.localPlayerService.canProvideFallbackResponse(W)&&y&&this.localWatchNextService.canProvideFallbackResponse(y))};
JD.prototype.localFallbackInnertubeResponse=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return V=y.playerRequest,w=y.watchNextRequest,V&&w?I.yield(W.localPlayerService.localFallbackInnertubeResponse(V),2):I.return(Promise.reject(new _.Js("Missing streaming request",y)));if(I.nextAddress!=3)return t=I.yieldResult,I.yield(W.localWatchNextService.localFallbackInnertubeResponse(w),3);F=I.yieldResult;return I.return({playerResponse:t,watchNextResponse:F})})};var AD=function(y){this.JSC$17491_persistentStorePromiseAccessor=y};
AD.prototype.shouldPreferLocalResponse=function(){return!1};
AD.prototype.localInnertubeResponse=function(){return _.g(function(y){return y.return(Promise.reject(Error("Xi")))})};
AD.prototype.canProvideFallbackResponse=function(){return!0};
AD.prototype.localFallbackInnertubeResponse=function(){var y=this,W,V;return _.g(function(w){return w.nextAddress==1?w.yield(y.JSC$17491_persistentStorePromiseAccessor(),2):w.nextAddress!=3?(W=w.yieldResult)?w.yield(W.get("service:guide:fallback"),3):w.return(Promise.reject(Error("Yi"))):(V=w.yieldResult)&&_.KV(V)?w.return(QFz(_.KV(V))):w.return(Promise.reject(Error("Zi")))})};var j3=function(){};
j3.prototype.shouldPreferLocalResponse=function(){return!1};
j3.prototype.localInnertubeResponse=function(){return _.g(function(y){return y.return(Promise.reject(Error("$i")))})};
j3.prototype.canProvideFallbackResponse=function(){return!0};
j3.prototype.localFallbackInnertubeResponse=function(){var y,W,V;return _.g(function(w){y=Rt("CLOSE_POPUP");W={openPopupAction:GUt()};V={actions:[y,W]};return w.return(V)})};var sp=function(){this.urlMap=ide;this.fallbackCommand=_.Ag};
sp.prototype.shouldPreferLocalResponse=function(y){return(y=y.url)?!!ftd(this,y):!1};
sp.prototype.localInnertubeResponse=function(y){var W=this,V;return _.g(function(w){return(V=y.url)?w.return(Tuq(y,ftd(W,V))):w.return(Promise.reject(Error("aj")))})};
sp.prototype.canProvideFallbackResponse=function(){return!0};
sp.prototype.localFallbackInnertubeResponse=function(y){var W=this,V,w,t,F,I,P,C;return _.g(function(d){V=y.url;if(!V)return d.return(Tuq(y,W.fallbackCommand));if(w=ftd(W,V))return d.return(Tuq(y,w));t=void 0;F=_.U1(V);F==="/watch"&&(I=_.to(V,"v"))&&(C=(P=_.to(V,"list"))!=null?P:void 0,t=_.hz(I,C));t||(t=W.fallbackCommand);return d.return(Tuq(y,t))})};
var ftd=function(y,W){if(W)return y.urlMap[_.Vm(W)]},Tuq=function(y,W){W&&y.parentTrackingParams&&(W.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:y.parentTrackingParams}},W.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:W})};var YU=function(y,W,V){this.JSC$17501_upliftPromise=y;this.store=W;this.JSC$17501_persistentStorePromiseAccessor=V};
YU.prototype.shouldPreferLocalResponse=function(){return!1};
YU.prototype.localInnertubeResponse=function(){return _.g(function(y){return y.return(Promise.reject(Error("bj")))})};
YU.prototype.canProvideFallbackResponse=function(){return!0};
YU.prototype.localFallbackInnertubeResponse=function(){var y=this;return _.g(function(W){return W.return(maP(y))})};
var maP=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(oD(y.JSC$17501_upliftPromise,y.store),2);W=w.yieldResult;V={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[rHv(W)]}}}};return w.return(M4C(y,V))})},M4C=function(y,W){var V,w;
return _.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$17501_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return V=t.yieldResult,t.yield(pV(V),3);w=t.yieldResult;return t.return({responseContext:{},contents:W,topbar:w})})};var xU=function(y,W,V){this.JSC$17508_upliftPromise=y;this.store=W;this.JSC$17508_persistentStorePromiseAccessor=V};
xU.prototype.shouldPreferLocalResponse=function(y){var W=y.videoId;return W&&ArG(this.store.getState().entities,W)&&YVL(this.store.getState().entities,W)?bSL(this.store.getState().entities,y.playlistId):!1};
xU.prototype.localInnertubeResponse=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return(V=y.videoId)?t.yield(W.JSC$17508_upliftPromise,2):t.return(Promise.reject(Error("cj")));if(t.nextAddress!=3)return t.yield(qzj(W,y,V),3);w=t.yieldResult;return t.return(Uaj(W,w,V))})};
xU.prototype.canProvideFallbackResponse=function(y){return y.videoId?!0:!1};
xU.prototype.localFallbackInnertubeResponse=function(y){var W=this,V,w,t,F;return _.g(function(I){switch(I.nextAddress){case 1:return(V=y.videoId)?I.yield(W.JSC$17508_upliftPromise,2):I.return(Promise.reject(Error("cj")));case 2:return I.yield(qzj(W,y,V),3);case 3:w=I.yieldResult;if(RB(W.store.getState().entities,V)){I.jumpTo(4);break}return I.yield(oD(W.JSC$17508_upliftPromise,W.store),5);case 5:return t=I.yieldResult,I.return(uv4(w,t));case 4:return ArG(W.store.getState().entities,V)&&YVL(W.store.getState().entities,
V)?I.return(Uaj(W,w,V)):(F={title:_.oB(_.u5("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:PBL()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},I.return(uv4(w,F)))}})};
var qzj=function(y,W,V){var w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return w=W.playlistId,t=_.hz(V,w),C.yield(y.JSC$17508_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return F=C.yieldResult,C.yield(pV(F),3);I=C.yieldResult;P={responseContext:{},currentVideoEndpoint:t,topbar:I};return C.return(P)})},Uaj=function(y,W,V){if(y=RB(y.store.getState().entities,V)){var w;
V=y.videoEntity;var t,F={title:K2(V.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.p2((w=V.localizedStrings)==null?void 0:w.viewCount),viewCount:_.p2((t=V.localizedStrings)==null?void 0:t.viewCount)}}};V.publishedTimestampMillis&&(F.dateText=_.p2(ySv(new Date(Number(V.publishedTimestampMillis)))));w={videoPrimaryInfoRenderer:F};t=y.videoEntity;y=y.channelEntity;y={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:K2(_.u5("SHOW_MORE",void 0,"Show more")),
showLessText:K2(_.u5("SHOW_LESS",void 0,"Show less")),description:t.formattedDescription,owner:{videoOwnerRenderer:{title:K2(y.title),thumbnail:y.avatar}}}};W.contents={twoColumnWatchNextResults:{results:{results:{contents:[w,y]}}}}}return W},uv4=function(y,W){y.contents={singleColumnWatchNextResults:{results:{results:{contents:[rHv(W)]}}}};
return y};var Bm=function(y,W,V){this.JSC$17513_upliftPromise=y;this.store=W;this.JSC$17513_persistentStorePromiseAccessor=V};
Bm.prototype.shouldPreferLocalResponse=function(){return!1};
Bm.prototype.localInnertubeResponse=function(){return _.g(function(y){return y.return(Promise.reject(Error("dj")))})};
Bm.prototype.canProvideFallbackResponse=function(){return!0};
Bm.prototype.localFallbackInnertubeResponse=function(){var y=this,W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return F.yield(y.JSC$17513_persistentStorePromiseAccessor(),2);case 2:return W=F.yieldResult,F.yield(pV(W),3);case 3:return V=F.yieldResult,w={responseContext:{},topbar:V},F.yield(y.JSC$17513_upliftPromise,4);case 4:return F.yield(oD(y.JSC$17513_upliftPromise,y.store),5);case 5:return t=F.yieldResult,w.watchStatus={backgroundPromoRenderer:t},F.return(w)}})};var Sz4=new _.e9("ENDPOINT_MAP");var DaW=function(){var y=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return y.sequenceMap}}},EQi=function(y,W,V){var w,t=(w=W.config)==null?void 0:w.sequenceStrategy;
if(!t)return V();y.sequenceMap.has(t.sequenceKey)||y.sequenceMap.set(t.sequenceKey,[]);y=y.sequenceMap.get(t.sequenceKey);switch(t.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return ltj(y,W,V);case "REQUEST_SEQUENCE_TYPE_REPLACE":return xam(y,W,V);default:throw new _.Js("Request could not be sequenced",W);}},ltj=function(y,W,V){var w,t,F;
return _.g(function(I){y.length>0?(t=y[y.length-1],w=t.responsePromise.then(function(){return V()})):w=V();
F={request:W,responsePromise:w};y.push(F);kGj(y,F);return I.return(F.responsePromise)})},xam=function(y,W,V){V=V();
if(y.length>0)for(var w=_.N(y),t=w.next();!t.done;t=w.next())t.value.responsePromise=V;var F={request:W,responsePromise:V};y.push(F);kGj(y,F);return Promise.resolve().then(function(){return y.indexOf(F)>0?F.responsePromise.then(function(I){return Object.assign({},I,{sequenceMetaData:{skipProcessing:!0}})}):F.responsePromise})},kGj=function(y,W){W.responsePromise.then(function(){var V=y.indexOf(W);
V>-1&&y.splice(V,1)})};var sRP=new _.e9("REQUEST_SEQUENCING");var yU=function(){};
_.p(yU,UA);yU.prototype.getApiPaths=function(){return[]};
yU.prototype.getExtension=function(y){return _.h(y,p8E)};
yU.prototype.JSC$12975_buildRequest=function(y,W){y.recaptchaToken=W.recaptchaToken};
yU.prototype.getApiUrl=function(){return"/das_captcha"};var W2=function(){};
_.p(W2,UA);W2.prototype.getApiPaths=function(){return v5r};
W2.prototype.getExtension=function(y){return _.h(y,blz)};
W2.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.createBackstagePostParams&&(y.createBackstagePostParams=W.createBackstagePostParams);V.comment_text&&(y.commentText=V.comment_text);if(V.attached_video_id)y.videoAttachment={videoId:V.attached_video_id};else if(V.image_poll_options)y.pollAttachmentData={options:V.image_poll_options};else if(V.poll_options)y.pollAttachment={choices:V.poll_options};else if(V.quiz_options)y.quizAttachmentData={options:V.quiz_options};else if(V.image_blob_id)y.imageAttachment=
{encryptedBlobId:V.image_blob_id},V.source_video_id&&(y.imageAttachment.sourceExternalVideoId=V.source_video_id),V.image_preview_coordinates&&(y.imageAttachment.previewCoordinates=JSON.parse(V.image_preview_coordinates));else if(V.images_data)y.imagesAttachment={imagesData:V.images_data};else if(V.clip_external_video_id!==void 0||V.clip_offset_ms!==void 0||V.clip_duration_ms!==void 0){var w,t,F,I,P;y.clipAttachment={externalVideoId:(F=V.clip_external_video_id)!=null?F:"",offsetMs:(I=(w=V.clip_offset_ms)==
null?void 0:w.toString())!=null?I:"",durationMs:(P=(t=V.clip_duration_ms)==null?void 0:t.toString())!=null?P:""}}else V.shared_post_id&&(y.sharedPostAttachment={postId:V.shared_post_id});V.tagged_video_id&&(y.postCreationData={taggedVideoId:V.tagged_video_id});V.access_restrictions&&(typeof V.access_restrictions==="number"&&(W=V.access_restrictions,y.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof V.access_restrictions==="string"&&
(y.accessRestrictionsParams=V.access_restrictions));V.scheduled_publish_time_sec&&(y.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString())};var VU=function(){};
_.p(VU,UA);VU.prototype.getApiPaths=function(){return o5E};
VU.prototype.getExtension=function(y){return _.h(y,voK)};
VU.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.decorateMessageParams&&(y.params=W.decorateMessageParams);V.text&&(y.text=V.text)};var wC=function(){};
_.p(wC,UA);wC.prototype.getApiPaths=function(){return JC6};
wC.prototype.getExtension=function(y){return _.h(y,Q1E)};
wC.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;V.video_id&&(y.videoId=V.video_id)};var tI=function(){};
_.p(tI,UA);tI.prototype.getApiPaths=function(){return HKA};
tI.prototype.getExtension=function(y){return _.h(y,_.q8)};
tI.prototype.JSC$12975_buildRequest=function(y,W,V){V.suggestions_query&&(y.input=V.suggestions_query)};var Fa=function(){};
_.p(Fa,UA);Fa.prototype.getApiPaths=function(){return fOJ};
Fa.prototype.getExtension=function(y){return _.h(y,ZlA)};
Fa.prototype.JSC$12975_buildRequest=function(y,W,V){V.comment_text!==void 0&&(y.commentText=V.comment_text);V.scheduled_publish_time_sec&&(y.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString());y.updateBackstagePostParams=W.updateBackstagePostParams};var Eo=function(){};
_.p(Eo,UA);Eo.prototype.getApiPaths=function(){return dx};
Eo.prototype.getExtension=function(y){return _.h(y,_.EP)};
Eo.prototype.JSC$12975_buildRequest=function(y,W,V){V.formData&&(y.formData=V.formData);W.token?y.continuation=W.token:W.continuationTokenKey&&(V=_.dP().getState(),W=_.UB(V.entities,"continuationTokenEntity",W.continuationTokenKey))&&(y.continuation=String(W.continuationToken))};
var Avu=function(){};
_.p(Avu,UA);_.E=Avu.prototype;_.E.getApiPaths=function(){return dx};
_.E.getExtension=function(y){return _.h(y,_.sT)};
_.E.isNavigationCommand=function(){return!0};
_.E.JSC$12982_getStoreKey=function(y){if((y=this.getExtension(y))&&y.browseId){var W={browseId:y.browseId};y.browseEndpointContextSupportedConfigs&&(W.browseEndpointContextSupportedConfigs=JSON.stringify(y.browseEndpointContextSupportedConfigs));y.params&&(W.params=y.params);y.query&&(W.query=y.query);return _.N8("browse",W)}};
_.E.JSC$12975_buildRequest=function(y,W,V){W.browseId&&(y.browseId=W.browseId);W.params&&(y.params=W.params);W.query&&(y.query=W.query);V.formData?y.formData=V.formData:W.formData&&(y.formData=W.formData);W.browseId==="FEsubscriptions"&&_.l5().getFlag(155)&&(y.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");W.browseId==="SPaccount_playback"&&(V=_.l5(),y.formData||(y.formData={}),y.formData.accountSettingsFormData={flagCaptionsDefaultOff:V.getFlag(65),flagAutoCaptionsDefaultOn:V.getFlag(66),
flagDisableInlinePreview:V.getFlag(186),flagAudioDescriptionDefaultOn:V.getFlag(198)});if(W.browseId==="FEwhat_to_watch"){V=_.l5();var w=V.getFlag(196);V.getFlag(197)&&(y.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:w}}})}W.browseId==="FEwhat_to_watch"&&(W=_.l5().getFlag(186),y.inlineSettingStatus=W?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.E.getRequestConfig=function(y,W){W=W===void 0?{}:W;var V={};if(y=this.JSC$12982_getStoreKey(y,W))V.storeStrategy={storeKey:y,disableCache:W.disableCache};_.e("web_log_browse_ticks_ks")||(V.requestTick="br_s",V.responseTick="br_r");return V};var N7=function(){};
_.p(N7,UA);N7.prototype.getApiPaths=function(){return NeJ};
N7.prototype.getExtension=function(y){return _.h(y,mYE)};
N7.prototype.JSC$12975_buildRequest=function(y,W,V){y.legacyYoutubeChannelUsername=V.legacyYouTubeChannelUsername||"";y.legacyYoutubeChannelPassword=V.legacyYouTubeChannelPassword||""};var IT=function(){};
_.p(IT,UA);IT.prototype.getApiPaths=function(){return ddf};
IT.prototype.getExtension=function(y){return _.h(y,NDf)};
IT.prototype.JSC$12975_buildRequest=function(y,W,V){V.recaptcha_response_token&&(y.recaptchaResponseToken=V.recaptcha_response_token);V.channel_id&&(y.channelId=V.channel_id)};var gC=function(){};
_.p(gC,UA);gC.prototype.getApiPaths=function(){return TZK};
gC.prototype.getExtension=function(y){return _.h(y,vsK)};
gC.prototype.JSC$12975_buildRequest=function(y,W,V){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);V.handle&&(y.handleUpdate={handle:V.handle},W.handleEditSource&&(y.handleUpdate.handleEditSource=W.handleEditSource))};var P2=function(){};
_.p(P2,UA);P2.prototype.getApiPaths=function(){return Uds};
P2.prototype.getExtension=function(y){return _.h(y,k0K)};
P2.prototype.JSC$12975_buildRequest=function(y,W,V){W.request&&(y.channelId=W.request.channelId);var w;if(V==null?0:(w=V.uploadDefaults)==null?0:w.emojiReactionSet)y.uploadDefaultsRequest||(y.uploadDefaultsRequest={}),y.uploadDefaultsRequest.emojiReactionSet=V.uploadDefaults.emojiReactionSet};var CY=function(){};
_.p(CY,UA);CY.prototype.getApiPaths=function(){return Ddf};
CY.prototype.getExtension=function(y){return _.h(y,IC6)};
CY.prototype.JSC$12975_buildRequest=function(y,W,V){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);W.channelHandleEntityKey&&(y.channelHandleEntityKey=W.channelHandleEntityKey);W.handleEditSource&&(y.handleEditSource=W.handleEditSource);V.handle?y.handle=V.handle:V.name&&(y.name=V.name)};var Oo=function(){};
_.p(Oo,UA);Oo.prototype.getApiPaths=function(){return PfJ};
Oo.prototype.getExtension=function(y){return _.h(y,XqJ)};
Oo.prototype.JSC$12975_buildRequest=function(y,W){W.actions?y.actions=W.actions:W.action&&(y.actions=[W.action])};var v2=function(){};
_.p(v2,UA);v2.prototype.getApiPaths=function(){return CfI};
v2.prototype.getExtension=function(y){return _.h(y,_.EP)};
v2.prototype.JSC$12975_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};var dC=function(){};
_.p(dC,UA);dC.prototype.getApiPaths=function(){return YRE};
dC.prototype.getExtension=function(y){return _.h(y,_.EP)};
dC.prototype.JSC$12975_buildRequest=function(y,W){y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.token&&(y.fetchCommentsParams={continuation:W.token})};var LY=function(){};
_.p(LY,UA);LY.prototype.getApiPaths=function(){return zU6};
LY.prototype.getExtension=function(y){return _.h(y,H$6)};
LY.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.createReplyParams&&(y.createReplyParams=W.createReplyParams);W.commentText&&(y.commentText=_.OT(W.commentText));V.comment_text&&(y.commentText=V.comment_text);V.image_blob_id&&(y.imageAttachment={encryptedBlobId:V.image_blob_id});V.botguard_response&&(y.botguardResponse=V.botguard_response)};
_.CM.Object.defineProperties(LY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zx=function(){};
_.p(zx,UA);zx.prototype.getApiPaths=function(){return cCf};
zx.prototype.getExtension=function(y){return _.h(y,_.nom)};
zx.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.createCommentParams&&(y.createCommentParams=W.createCommentParams);W.commentText&&(y.commentText=_.OT(W.commentText));W.videoPositionMention&&(y.videoPositionMention=W.videoPositionMention);W.sources&&(y.sources=W.sources);V.comment_text&&(y.commentText=V.comment_text);V.attached_video_id?y.videoAttachment={videoId:V.attached_video_id}:V.poll_options?y.pollAttachment={choices:V.poll_options}:V.image_blob_id?y.imageAttachment=
{encryptedBlobId:V.image_blob_id}:V.shared_post_id&&(y.sharedPostAttachment={postId:V.shared_post_id});V.access_restrictions&&typeof V.access_restrictions==="number"&&(W=V.access_restrictions,y.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});V.botguard_response&&(y.botguardResponse=V.botguard_response)};
_.CM.Object.defineProperties(zx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var c2=function(){};
_.p(c2,UA);c2.prototype.getApiPaths=function(){return mdE};
c2.prototype.getExtension=function(y){return _.h(y,G6J)};
c2.prototype.JSC$12975_buildRequest=function(y,W,V){W.commentText&&(y.replyText=_.OT(W.commentText));V.comment_text&&(y.replyText=V.comment_text);y.updateReplyParams=W.updateReplyParams};
_.CM.Object.defineProperties(c2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var e_=function(){};
_.p(e_,UA);e_.prototype.getApiPaths=function(){return MUr};
e_.prototype.getExtension=function(y){return _.h(y,asz)};
e_.prototype.JSC$12975_buildRequest=function(y,W,V){W.commentText&&(y.commentText=_.OT(W.commentText));V.comment_text&&(y.commentText=V.comment_text);y.updateCommentParams=W.updateCommentParams};
_.CM.Object.defineProperties(e_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hI=function(){};
_.p(hI,UA);hI.prototype.getApiPaths=function(){return q4m};
hI.prototype.getExtension=function(y){return _.h(y,SHr)};
hI.prototype.JSC$12975_buildRequest=function(y,W){W.settings&&(y.settings=W.settings)};var oT=function(){};
_.p(oT,UA);oT.prototype.getApiPaths=function(){return SRq};
oT.prototype.getExtension=function(y){return _.h(y,gsf)};
oT.prototype.JSC$12975_buildRequest=function(y,W){W.channelCreationToken&&(y.channelCreationToken=W.channelCreationToken);W.source&&(y.source=W.source)};var KY=function(){};
_.p(KY,UA);KY.prototype.getApiPaths=function(){return Lof};
KY.prototype.getExtension=function(y){return _.h(y,Owm)};
KY.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;if(V.name&&(V.given_name||V.family_name))y=new _.Js("channel creation cannot set both GAIA and YouTube names",W),_.ap(y);else{if(W.zeroStepChannelCreationParams){if(!V.comment_text){y=new _.Js("zero_step_create_comment_params but no zero_step_texts",W);_.ap(y);return}y.zeroStepChannelCreationParams=W.zeroStepChannelCreationParams;y.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
V.comment_text,V.botguard_response&&(y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=V.botguard_response))}y.channelCreationToken=W.channelCreationToken;V.given_name&&(y.givenName=V.given_name);V.family_name&&(y.familyName=V.family_name);W.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(y.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(V.name||V.handle||V.avatar_url||V.encryptedBlobId||V.isNameChanged!==void 0||V.isHandleChanged!==void 0||V.isDefaultProfilePhoto!==
void 0||V.obakeImageSource)y.overrideChannelCreationParams={},V.name&&(y.overrideChannelCreationParams.name=V.name),V.handle&&(y.overrideChannelCreationParams.handle=V.handle),V.avatar_url&&(y.overrideChannelCreationParams.avatarUrl=V.avatar_url),V.encryptedBlobId&&(y.overrideChannelCreationParams.blobEncryptionId=V.encryptedBlobId),V.enableIdentityForAllChannelCreationDialog&&(V.encryptedBlobId?y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
V.isDefaultProfilePhoto!==void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=V.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),V.isNameChanged!==void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationNameTag=V.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),V.isHandleChanged!==
void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=V.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),V.obakeImageSource&&(y.overrideChannelCreationParams.obakeImageSourceType=V.obakeImageSource))}};var pY=function(){};
_.p(pY,UA);pY.prototype.getApiPaths=function(y){return(y=this.getExtension(y))&&y.status==="DISLIKE"?f9A:y&&y.status==="INDIFFERENT"?gtK:bKz};
pY.prototype.getExtension=function(y){return _.h(y,_.tD)};
pY.prototype.JSC$12975_buildRequest=function(y,W){W.target&&(y.target=W.target);if(W=this.getParams(W))y.params=W};
pY.prototype.getParams=function(y){switch(y==null?void 0:y.status){case "DISLIKE":return y.dislikeParams;case "INDIFFERENT":return y.removeLikeParams;default:return y==null?void 0:y.likeParams}};var i9=function(){};
_.p(i9,UA);i9.prototype.getApiPaths=function(){return hFK};
i9.prototype.getExtension=function(y){return _.h(y,WZi)};
i9.prototype.JSC$12975_buildRequest=function(y,W){W.settingItemId&&(y.settingItemId=W.settingItemId);W.stringValue!=null&&W.stringValue!==void 0?y.newValue={stringValue:W.stringValue}:W.intValue?y.newValue={intValue:W.intValue}:W.boolValue!==null&&W.boolValue!==void 0?y.newValue={boolValue:W.boolValue}:(y=new _.Js("Unknown value type for SetSettingEndpoint.",W),_.ap(y))};var fY=function(){};
_.p(fY,UA);fY.prototype.getApiPaths=function(){return KOz};
fY.prototype.getExtension=function(y){return _.h(y,pPK)||void 0};
fY.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.channelIds&&(y.channelIds=W.channelIds);W.siloName&&(y.siloName=W.siloName);W.params&&(y.params=W.params);V.botguardResponse&&(y.botguardResponse=V.botguardResponse);V.feature&&(y.clientFeature=V.feature)};
_.CM.Object.defineProperties(fY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Tx=function(){};
_.p(Tx,UA);Tx.prototype.getApiPaths=function(){return irQ};
Tx.prototype.getExtension=function(y){return _.h(y,Vnr)||void 0};
Tx.prototype.JSC$12975_buildRequest=function(y,W){W.channelIds&&(y.channelIds=W.channelIds);W.siloName&&(y.siloName=W.siloName);W.params&&(y.params=W.params)};
_.CM.Object.defineProperties(Tx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var m8=function(y){this.shareClientParamsProvider=y};
_.p(m8,UA);m8.prototype.getApiPaths=function(){return tpG};
m8.prototype.getExtension=function(y){return _.h(y,ugi)||_.h(y,_.SJz)||_.h(y,Ufz)};
m8.prototype.JSC$12975_buildRequest=function(y,W){W.serializedShareEntity&&(y.serializedSharedEntity=W.serializedShareEntity);if(W.clientParamIdentifier){var V;if((V=this.shareClientParamsProvider)==null?0:V.clientParams.has(W.clientParamIdentifier)){V=this.shareClientParamsProvider;W=W.clientParamIdentifier;var w=V.clientParams.get(W);w&&V.clientParams.delete(W);y.clientParams=w}}};
m8[cs]=[b1R];var M7=function(){};
_.p(M7,UA);M7.prototype.getApiPaths=function(){return tVi};
M7.prototype.getExtension=function(y){return _.h(y,sPJ)};
M7.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var q7=function(){};
_.p(q7,UA);q7.prototype.getApiPaths=function(){return TeR};
q7.prototype.getExtension=function(y){return _.h(y,lef)};
q7.prototype.JSC$12975_buildRequest=function(y,W){W.dismissal&&(y.items=[W.dismissal])};
_.CM.Object.defineProperties(q7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Uo=function(){};
_.p(Uo,UA);Uo.prototype.getApiPaths=function(){return G86};
Uo.prototype.getExtension=function(y){return _.h(y,_.bw)||void 0};
Uo.prototype.JSC$12975_buildRequest=function(y,W,V){y.feedbackTokens=[];W.feedbackToken&&y.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||V.cpn)y.feedbackContext={cpn:W};y.isFeedbackTokenUnencrypted=!!V.is_feedback_token_unencrypted;y.shouldMerge=!1;V.extra_feedback_tokens&&(y.shouldMerge=!0,y.feedbackTokens=y.feedbackTokens.concat(V.extra_feedback_tokens))};
_.CM.Object.defineProperties(Uo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u9=function(){};
_.p(u9,UA);u9.prototype.getApiPaths=function(){return G86};
u9.prototype.getExtension=function(y){return _.h(y,_.q8)};
u9.prototype.JSC$12975_buildRequest=function(y,W,V){V.feedback_tokens&&(y.feedbackTokens=V.feedback_tokens,y.shouldMerge=!0)};
_.CM.Object.defineProperties(u9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S_=function(){};
_.p(S_,UA);S_.prototype.getApiPaths=function(){return G86};
S_.prototype.getExtension=function(y){return _.h(y,taR)};
S_.prototype.JSC$12975_buildRequest=function(y,W){W.undoToken&&(y.feedbackTokens=[W.undoToken]);W.isUndoTokenUnencrypted&&(y.isFeedbackTokenUnencrypted=W.isUndoTokenUnencrypted)};
_.CM.Object.defineProperties(S_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dn=function(){};
_.p(Dn,UA);Dn.prototype.getApiPaths=function(){return lOi};
Dn.prototype.getExtension=function(y){return _.h(y,uJm)};
Dn.prototype.JSC$12975_buildRequest=function(y,W){W.nextEndpoint&&_.h(W.nextEndpoint,_.wS)?y.nextEndpoint={urlEndpoint:_.h(W.nextEndpoint,_.wS)}:W.nextEndpoint&&_.h(W.nextEndpoint,_.Iw)&&(y.nextEndpoint={watchEndpoint:_.h(W.nextEndpoint,_.Iw)});W.setRacy&&(y.setRacy=W.setRacy);W.setControvercy&&(y.setControvercy=W.setControvercy)};var l9=function(y){this.JSC$17694_storeWithEntities=y};
_.p(l9,UA);l9.prototype.getApiPaths=function(){return MV6};
l9.prototype.getExtension=function(y){return _.h(y,WFf)};
l9.prototype.JSC$12975_buildRequest=function(y,W){W.flowId&&(y.flowId=W.flowId);W.targetId&&(y.targetId=W.targetId);W.continuation&&(y.continuation=W.continuation);var V=W.flowStateEntityKey;if(W.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&V&&this.JSC$17694_storeWithEntities){var w;if(W=(w=this.JSC$17694_storeWithEntities.getState())==null?void 0:w.entities)if(w=_.T4(V).entityType,w=_.UB(W,w,V))y.flowState=w,y.flowStateEntityKey=V}};
_.CM.Object.defineProperties(l9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
l9[cs]=[ma];var Yzu=function(){};
_.p(Yzu,UA);_.E=Yzu.prototype;_.E.getApiPaths=function(){return a9m};
_.E.JSC$12982_getStoreKey=function(){return _.N8("guide")};
_.E.getRequestConfig=function(){var y=this.JSC$12982_getStoreKey(),W;y&&(W={storeStrategy:{storeKey:y}});return W};
_.E.isNavigationCommand=function(){return!0};
_.E.getExtension=function(y){return _.h(y,_.q8)};
_.E.JSC$12975_buildRequest=function(y){y.fetchLiveState=!0};var xN=function(){};
_.p(xN,UA);xN.prototype.getApiPaths=function(){return I9J};
xN.prototype.getExtension=function(y){return _.h(y,RIi)};
xN.prototype.JSC$12975_buildRequest=function(){};var kN=function(){};
_.p(kN,UA);kN.prototype.getApiPaths=function(){return g56};
kN.prototype.getExtension=function(y){return _.h(y,jxf)};
kN.prototype.JSC$12975_buildRequest=function(){};var so=function(){};
_.p(so,UA);so.prototype.getApiPaths=function(){return wKK};
so.prototype.getExtension=function(y){return _.h(y,_.EP)};
so.prototype.JSC$12975_buildRequest=function(y,W){W.token&&(y.continuation=W.token);var V,w;y==null||(V=y.context)==null||(w=V.user)==null||delete w.onBehalfOfUser};
so.prototype.getRequestConfig=function(y){var W={},V;if(((V=this.getExtension(y))==null?void 0:V.sessionIndex)!==void 0){var w;W={authStrategy:{sessionIndex:(w=this.getExtension(y))==null?void 0:w.sessionIndex}}}return W};var AI=function(){};
_.p(AI,UA);AI.prototype.JSC$12975_getRequest=function(y){var W=this.getExtension(y),V=y="";if(W==null?0:W.popup)y="true";if(W==null?0:W.disableSignout)V="true";W={};return{input:"/getAccountSwitcherEndpoint",requestShell:En("/getAccountSwitcherEndpoint","GET",(W["X-YouTube-Delegation-Context"]=_.yC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),W["X-YouTube-Account-Switcher-Popup"]=y,W["X-YouTube-Account-Switcher-Disable-Signout"]=V,W)),innerTubeRequest:{}}};
AI.prototype.getApiPaths=function(){return[]};
AI.prototype.getExtension=function(y){return _.h(y,_.cFy)};
AI.prototype.JSC$12975_buildRequest=function(){};var YN=function(){};
_.p(YN,UA);YN.prototype.JSC$12975_getRequest=function(y){var W="/cross_account_channel_transfer";(y=this.getExtension(y))&&(W=FRa(W,{target_session:y.targetSessionIndex,source_rapt:y.sourceRapt,rapt:y.targetRapt}));return{input:W,requestShell:En(W,"GET"),innerTubeRequest:{}}};
YN.prototype.getApiPaths=function(){return[]};
YN.prototype.getExtension=function(y){return _.h(y,qvs)};
YN.prototype.JSC$12975_buildRequest=function(){};var B2=function(){};
_.p(B2,UA);B2.prototype.getApiPaths=function(){return qRm};
B2.prototype.isNavigationCommand=function(){return!0};
B2.prototype.getExtension=function(y){return _.h(y,_.q8)};
B2.prototype.JSC$12975_buildRequest=function(y){var W=_.l5().get("gsml","");W&&(y.safetyModeLockerObfuscatedGaiaId=W);y.userInterfaceTheme=_.H9(!0);_.X4()?y.deviceTheme="DEVICE_THEME_SELECTED":_.wS4()?y.deviceTheme="DEVICE_THEME_SUPPORTED":y.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var JI=function(){};
_.p(JI,UA);JI.prototype.getApiPaths=function(){return wKK};
JI.prototype.getExtension=function(y){return _.h(y,U_2)};
JI.prototype.JSC$12975_buildRequest=function(y,W){if(W&&W.requestType&&(y.requestType=W.requestType,W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var V=W.nextUrl;V&&(_.Nwj(V)||zJ(V))&&(y.nextNavendpoint={urlEndpoint:{url:V}})}W&&W.channelSwitcherQuery&&(y.channelSwitcherQuery=W.channelSwitcherQuery);W&&W.triggerChannelCreation&&(y.triggerChannelCreation=W.triggerChannelCreation);var w;if(W==null?0:(w=W.contentOwnerConfig)==
null?0:w.externalContentOwnerId)y.contentOwnerConfig=W.contentOwnerConfig;y.callCircumstance=W&&W.requestType&&W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var t,F;W=y==null?void 0:(t=y.context)==null?void 0:(F=t.user)==null?void 0:F.onBehalfOfUser;if(W!==void 0){y.obfuscatedSelectedGaiaId=W;var I,P;y==null||(I=y.context)==null||(P=I.user)==null||delete P.onBehalfOfUser}var C,d;if(t=y==null?void 0:(C=y.context)==null?void 0:(d=C.user)==null?
void 0:d.serializedDelegationContext)y.selectedSerializedDelegationContext=t};var RT=function(){};
_.p(RT,UA);RT.prototype.getApiPaths=function(){return RUA};
RT.prototype.getExtension=function(y){return _.h(y,fx6)};
RT.prototype.JSC$12975_buildRequest=function(y,W){W.profileOwnerExternalChannelId&&(y.profileOwnerExternalChannelId=W.profileOwnerExternalChannelId);W.profileCardContext&&(y.profileCardContext=W.profileCardContext)};var j_=function(){};
_.p(j_,UA);j_.prototype.getApiPaths=function(){return Fo2};
j_.prototype.getExtension=function(y){return _.h(y,Dff)};
j_.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var $N=function(){};
_.p($N,UA);$N.prototype.getApiPaths=function(){return d$f};
$N.prototype.getExtension=function(y){return _.h(y,_.XQ2)};
$N.prototype.JSC$12975_buildRequest=function(y,W){if(W=W.createBroadcastRequest)y.useMasks=W.useMasks,y.broadcastType=W.broadcastType,y.broadcastSource=W.broadcastSource,y.broadcastMetadata=W.broadcastMetadata,y.broadcastMetadataMask=W.broadcastMetadataMask,y.videoMetadata=W.videoMetadata,y.videoMetadataMask=W.videoMetadataMask,y.liveChatSettingsUpdate=W.liveChatSettingsUpdate,y.liveChatSettingsUpdateMask=W.liveChatSettingsUpdateMask,y.cloneVideoId=W.cloneVideoId,y.cloneWithOverrides=W.cloneWithOverrides,
y.targetEntity=W.targetEntity,y.scheduledRedirectMetadata=W.scheduledRedirectMetadata};var nY=function(){};
_.p(nY,UA);nY.prototype.getApiPaths=function(){return eUQ};
nY.prototype.getExtension=function(y){return _.h(y,REA)};
nY.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.params&&(y.params=W.params);V.questionText&&(y.questionText=V.questionText);V.optionText&&V.optionText.length>0&&(y.optionText=V.optionText)};var H2=function(){};
_.p(H2,UA);H2.prototype.getApiPaths=function(){return KoQ};
H2.prototype.getExtension=function(y){return _.h(y,B66)};
H2.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var Xa=function(){};
_.p(Xa,UA);Xa.prototype.getApiPaths=function(){return l9r};
Xa.prototype.getExtension=function(y){return _.h(y,kfE)};
Xa.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var aT=function(){};
_.p(aT,UA);aT.prototype.getApiPaths=function(){return k8r};
aT.prototype.getExtension=function(y){return _.h(y,sgE)};
aT.prototype.JSC$12975_buildRequest=function(y,W,V){W.params&&(y.params=W.params);W.continuation&&(y.continuation=W.continuation);V.currentPlayerState&&V.currentPlayerState.playerOffsetMs&&(y.currentPlayerState={playerOffsetMs:V.currentPlayerState.playerOffsetMs.toString()})};var Gx=function(){};
_.p(Gx,UA);Gx.prototype.getApiPaths=function(){return sLR};
Gx.prototype.getExtension=function(y){return _.h(y,xcR)};
Gx.prototype.JSC$12975_buildRequest=function(y,W,V){W.params&&(y.params=W.params);V.continuation&&(y.continuation=V.continuation);"hidden"in V&&(y.webClientInfo={isDocumentHidden:V.hidden});V.isInvalidationTimeoutRequest&&(y.isInvalidationTimeoutRequest=V.isInvalidationTimeoutRequest);V.invalidationPayload&&(W=lgR(_.Cq(c4(V.invalidationPayload))),y.invalidationPayloadLastPublishAtUsec=bP(W,2));V.reloadActionPanel&&(y.reloadActionPanel=V.reloadActionPanel);V.fullReload&&(y.fullReload=V.fullReload);
V.currentPlayerState&&(y.currentPlayerState=V.currentPlayerState)};var wh=function(){};
_.p(wh,UA);wh.prototype.getApiPaths=function(){return QLA};
wh.prototype.getExtension=function(y){return _.h(y,JRI)};
wh.prototype.JSC$12975_buildRequest=function(y,W){y.params=W.params};var tF=function(){};
_.p(tF,UA);tF.prototype.getApiPaths=function(){return x$z};
tF.prototype.getExtension=function(y){return _.h(y,GmK)};
tF.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var FK=function(){};
_.p(FK,UA);FK.prototype.getApiPaths=function(){return ACQ};
FK.prototype.getExtension=function(y){return _.h(y,rBm)};
FK.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var EI=function(){};
_.p(EI,UA);EI.prototype.getApiPaths=function(){return ZKz};
EI.prototype.getExtension=function(y){return _.h(y,jg6)};
EI.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var N3=function(){};
_.p(N3,UA);N3.prototype.getApiPaths=function(){return WOi};
N3.prototype.getExtension=function(y){return _.h(y,$c2)};
N3.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var Ie=function(){};
_.p(Ie,UA);Ie.prototype.getApiPaths=function(){return Pa2};
Ie.prototype.getExtension=function(y){return _.h(y,kmK)};
Ie.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var gh=function(){};
_.p(gh,UA);gh.prototype.getApiPaths=function(){return cWK};
gh.prototype.getExtension=function(y){return _.h(y,_.n$i)};
gh.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.params&&(y.params=W.params);V.client_message_id&&(y.clientMessageId=V.client_message_id);V.recaptcha_token&&(y.recaptchaToken=V.recaptcha_token);V.rich_message&&V.rich_message.text_segments?(W=V.rich_message.text_segments.map(function(w){var t={};w.text&&(t.text=w.text);w.emoji_id&&(t.emojiId=w.emoji_id);return t}),y.richMessage={textSegments:W}):V.message&&(y.message=V.message);
V.currentPlayerState&&(y.currentPlayerState=V.currentPlayerState)};var PH=function(){};
_.p(PH,UA);PH.prototype.getApiPaths=function(){return eFQ};
PH.prototype.getExtension=function(y){return _.h(y,Hof)};
PH.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var CI=function(){};
_.p(CI,UA);CI.prototype.getApiPaths=function(){return pSf};
CI.prototype.getExtension=function(y){return _.h(y,agJ)};
CI.prototype.JSC$12975_buildRequest=function(y,W,V){W.isUserInitiated&&(y.isUserInitiated=W.isUserInitiated);W.initiationSource&&(y.initiationSource=W.initiationSource);V.locationInfo&&(y.context.client.locationInfo=V.locationInfo)};var OI=function(){};
_.p(OI,UA);OI.prototype.getApiPaths=function(){return yWi};
OI.prototype.getExtension=function(y){return _.h(y,aGI)};
OI.prototype.JSC$12975_buildRequest=function(y,W,V){W.metadataUpdateRequest&&(W=W.metadataUpdateRequest,y.encryptedVideoId=W.encryptedVideoId,W.liveChat&&(W=W.liveChat,y.liveChat||(y.liveChat={}),W.performAsExternalChannelId&&(y.liveChat.performAsExternalChannelId=W.performAsExternalChannelId),W.source&&(y.liveChat.source=W.source)));var w;if(V==null?0:(w=V.liveChat)==null?0:w.liveChatSettings)y.liveChat||(y.liveChat={}),V=V.liveChat.liveChatSettings,y.liveChat.newLiveChatSettings=V,y.liveChat.newLiveChatSettingsMask||
(y.liveChat.newLiveChatSettingsMask={}),V.emojiReactionSet&&(y.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var vH=function(){};
_.p(vH,UA);vH.prototype.getApiPaths=function(){return S4s};
vH.prototype.getExtension=function(y){return _.h(y,_.whQ)};
vH.prototype.JSC$12975_buildRequest=function(y,W,V){V.continuation?y.continuation=V.continuation:W.videoId&&(y.videoId=W.videoId);V.clientParams&&(y.clientParams=V.clientParams)};var dh=function(){};
_.p(dh,UA);dh.prototype.getApiPaths=function(){return YRE};
dh.prototype.getExtension=function(y){return _.h(y,_.Zs)};
dh.prototype.JSC$12975_buildRequest=function(y,W){y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";y.fetchCommentsParams={};W.videoId&&(y.fetchCommentsParams.encryptedVideoId=W.videoId);W.postId&&(y.fetchCommentsParams.postId=W.postId);W.externalChannelId&&(y.fetchCommentsParams.externalChannelId=W.externalChannelId);W.linkedCommentId&&(y.fetchCommentsParams.linkedCommentId=W.linkedCommentId);(0,_.Gc.isEmpty)(y.fetchCommentsParams)&&delete y.fetchCommentsParams};var LI=function(){};
_.p(LI,UA);LI.prototype.getApiPaths=function(){return dx};
LI.prototype.JSC$12975_buildRequest=function(y){y.browseId="FEnotifications_inbox"};
LI.prototype.getExtension=function(y){return _.h(y,_.q8)};var zZ=function(){};
_.p(zZ,UA);zZ.prototype.getApiPaths=function(){return YRE};
zZ.prototype.JSC$12975_buildRequest=function(y,W){W.signal==="GET_NOTIFICATIONS_MENU"&&(y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");W.ctoken&&(y.ctoken=W.ctoken)};
var Buu=function(){};
_.p(Buu,zZ);Buu.prototype.getExtension=function(y){return _.h(y,_.q8)};
var Jvd=function(){};
_.p(Jvd,zZ);Jvd.prototype.getExtension=function(y){return _.h(y,MbQ)};var cH=function(){};
_.p(cH,UA);cH.prototype.getApiPaths=function(){return n5K};
cH.prototype.getExtension=function(y){return _.h(y,_.q8)};
cH.prototype.JSC$12975_buildRequest=function(){};var eC=function(){};
_.p(eC,UA);eC.prototype.getApiPaths=function(){return VUf};
eC.prototype.getExtension=function(y){return _.h(y,Qxi)||void 0};
eC.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params);W.secondaryParams&&(y.secondaryParams=W.secondaryParams)};var hF=function(){};
_.p(hF,UA);hF.prototype.getApiPaths=function(){return wSQ};
hF.prototype.getExtension=function(y){return _.h(y,l4K)};
hF.prototype.JSC$12975_buildRequest=function(y,W){W.undo&&(y.undo=W.undo);W.serializedOptOut&&(y.serializedOptOut=W.serializedOptOut);W.serializedRecordInteractionsRequest&&(y.serializedRecordInteractionsRequest=W.serializedRecordInteractionsRequest)};var oe=function(){};
_.p(oe,UA);oe.prototype.getApiPaths=function(){return EtK};
oe.prototype.getExtension=function(y){return _.h(y,xff)};
oe.prototype.JSC$12975_buildRequest=function(y,W){W.serializedInteractionsRequest&&(y.serializedRecordNotificationInteractionsRequest=W.serializedInteractionsRequest)};var KI=function(){};
_.p(KI,UA);KI.prototype.getApiPaths=function(){return FAz};
KI.prototype.getExtension=function(y){return _.h(y,Thv)};
KI.prototype.JSC$12975_buildRequest=function(y,W,V){W=W===void 0?{}:W;V=V===void 0?{}:V;W.videoId?y.videoId=W.videoId:W.playlistId&&(y.playlistId=W.playlistId);var w,t=(w=W.offlineWebClientEligibility)!=null?w:V.offlineWebClientEligibility;t&&(y.offlineWebClientEligibility=t);var F;if(w=(F=W.preferredFormatType)!=null?F:V.preferredFormatType)y.preferredFormatType=w;var I;if(F=(I=W.lastOfflineQualitySettingsSavedMs)!=null?I:V.lastOfflineQualitySettingsSavedMs)y.lastOfflineQualitySettingsSavedMs=F;
W.params&&(y.params=W.params)};var pI=function(){};
_.p(pI,UA);pI.prototype.getApiPaths=function(){return zd};
pI.prototype.getExtension=function(y){return _.h(y,_.EP)};
pI.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.token&&(y.continuation=W.token);V.formData&&(y.formData=V.formData)};var io=function(){};
_.p(io,UA);io.prototype.getApiPaths=function(){return zd};
io.prototype.getExtension=function(y){return _.h(y,R$s)};
io.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;y.continuation=V.continuation};var fI=function(){};
_.p(fI,UA);fI.prototype.getApiPaths=function(){return zd};
fI.prototype.getExtension=function(y){return _.h(y,_.rx)};
fI.prototype.JSC$12975_buildRequest=function(y,W){var V,w=W.panelIdentifier||((V=W.identifier)==null?void 0:V.tag);w&&(y.panelId=w);var t;if((t=W.globalConfiguration)==null?0:t.params){var F;y.params=(F=W.globalConfiguration)==null?void 0:F.params}};
_.CM.Object.defineProperties(fI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TZ=function(){};
_.p(TZ,UA);TZ.prototype.getApiPaths=function(){return zd};
TZ.prototype.getExtension=function(y){return _.h(y,TdK)};
TZ.prototype.JSC$12975_buildRequest=function(y,W){W.panelLoadingStrategy&&V2n(y,W.panelLoadingStrategy)};var mY=function(){};
_.p(mY,UA);mY.prototype.getApiPaths=function(){return zd};
mY.prototype.getExtension=function(y){return _.h(y,H8m)};
mY.prototype.JSC$12975_buildRequest=function(y,W){W.loadingStrategy&&V2n(y,W.loadingStrategy)};var M3=function(){};
_.p(M3,UA);M3.prototype.getApiPaths=function(){return zd};
M3.prototype.getExtension=function(y){return _.h(y,_.Jn)};
M3.prototype.JSC$12975_buildRequest=function(y,W){W.panelLoadingStrategy&&V2n(y,W.panelLoadingStrategy)};var q3=function(){};
_.p(q3,UA);q3.prototype.getApiPaths=function(){return zd};
q3.prototype.getExtension=function(y){return _.h(y,XwQ)};
q3.prototype.JSC$12975_buildRequest=function(y,W){var V,w=(V=W.contentSourcePanelIdentifier)==null?void 0:V.tag;w&&(y.panelId=w);var t;if((t=W.globalConfiguration)==null?0:t.params){var F;y.params=(F=W.globalConfiguration)==null?void 0:F.params}};var UI=function(){};
_.p(UI,UA);UI.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
UI.prototype.getExtension=function(y){return _.h(y,a4K)};
UI.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var uo=function(){};
_.p(uo,UA);uo.prototype.getApiPaths=function(){return uqq};
uo.prototype.getExtension=function(y){return _.h(y,b8R)};
uo.prototype.JSC$12975_buildRequest=function(y,W){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);W.superChatAction&&(y.superChatAction=W.superChatAction);W.superStickersAction&&(y.superStickersAction=W.superStickersAction)};var SC=function(){};
_.p(SC,UA);SC.prototype.getApiPaths=function(){return U$Q};
SC.prototype.getExtension=function(y){return _.h(y,JrE)||_.h(y,MCG)};
SC.prototype.JSC$12975_buildRequest=function(y,W){W.videoIds?y.videoIds=W.videoIds:W.videoId&&(y.videoIds=[W.videoId]);W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params);y.excludeWatchLater=!1};var DM=function(){};
_.p(DM,UA);DM.prototype.getApiPaths=function(){return hUr};
DM.prototype.getExtension=function(y){return _.h(y,_.E8)};
DM.prototype.JSC$12975_buildRequest=function(y,W,V){V.create_playlist_title?y.title=V.create_playlist_title:W.title&&(y.title=W.title);if(V.create_playlist_privacy_status&&typeof V.create_playlist_privacy_status==="number"){a:{var w=V.create_playlist_privacy_status;if(w!==0){if(w===1){w="PUBLIC";break a}if(w===2){w="UNLISTED";break a}}w="PRIVATE"}y.privacyStatus=w}else W.privacyStatus&&(y.privacyStatus=W.privacyStatus);V.create_playlist_description&&(y.description=V.create_playlist_description);W.videoIds&&
(y.videoIds=W.videoIds);W.params&&(y.params=W.params);W.sourcePlaylistId&&(y.sourcePlaylistId=W.sourcePlaylistId)};var lo=function(){};
_.p(lo,UA);lo.prototype.getApiPaths=function(){return pKm};
lo.prototype.getExtension=function(y){return _.h(y,rrz)};
lo.prototype.JSC$12975_buildRequest=function(y,W){y.playlistId=W.playlistId};var xO=function(){};
_.p(xO,UA);xO.prototype.getApiPaths=function(){return Bef};
xO.prototype.getExtension=function(y){return _.h(y,Mxf)};
xO.prototype.JSC$12975_buildRequest=function(y,W){W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params)};var kO=function(){};
_.p(kO,UA);kO.prototype.getApiPaths=function(){return FOq};
kO.prototype.getExtension=function(y){return _.h(y,_.yB)||void 0};
kO.prototype.JSC$12975_buildRequest=function(y,W){W.actions&&(y.actions=W.actions);W.params&&(y.params=W.params);W.playlistId&&(y.playlistId=W.playlistId)};var sI=function(){};
_.p(sI,UA);_.E=sI.prototype;_.E.getApiPaths=function(){return NZA};
_.E.getExtension=function(y){return _.h(y,_.Jx)};
_.E.JSC$12975_buildRequest=function(y,W){W.videoId&&(y.playerRequest={videoId:W.videoId},W.playerParams&&(y.playerRequest.params=W.playerParams),W.racyCheckOk&&(y.playerRequest.racyCheckOk=!!W.racyCheckOk),W.contentCheckOk&&(y.playerRequest.contentCheckOk=!!W.contentCheckOk));W.params&&(y.params=W.params);W.inputType&&(y.inputType=W.inputType);y.disablePlayerResponse=!0};
_.E.getRequestConfig=function(y){var W;(y=this.JSC$12982_getStoreKey(y))&&(W={storeStrategy:{storeKey:y}});_.e("web_log_reels_ticks")&&(W=W||{},W.requestTick="r_wrs",W.responseTick="r_wrr");return W};
_.E.JSC$12982_getStoreKey=function(y){y=this.getExtension(y);if(_.e("shorts_controller_retrieve_seedless_sequence_v2")){if((y==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.N8("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.e("web_shorts_prefetch_service_enabled")&&y!=null&&y.videoId){var W={videoId:y.videoId};y.params&&(W.params=y.params);return _.N8("reel_item_watch",W)}};var AF=function(){};
_.p(AF,UA);_.E=AF.prototype;_.E.getApiPaths=function(){return IOE};
_.E.getExtension=function(y){return _.h(y,_.Jx)};
_.E.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;y.sequenceParams=W.sequenceParams;var w;((w=V)==null?0:w.contentPlaybackContext)&&_.e("web_shorts_prefetch_service_enabled")&&(y.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
_.E.JSC$12982_getStoreKey=function(y){if(_.e("web_enable_delay_shorts_sequence_call")||_.e("shorts_controller_retrieve_seedless_sequence_v2"))if(y=this.getExtension(y),y==null?0:y.sequenceParams)return _.N8("reel_watch_sequence",{sequenceParams:y.sequenceParams})};
_.E.getRequestConfig=function(y){y=this.JSC$12982_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.e("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};
var YO=function(){};
_.p(YO,UA);YO.prototype.getApiPaths=function(){return IOE};
YO.prototype.getExtension=function(y){return _.h(y,_.EP)};
YO.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.token&&(y.continuation=W.token);var w;((w=V)==null?0:w.contentPlaybackContext)&&_.e("web_shorts_prefetch_service_enabled")&&(y.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
YO.prototype.getRequestConfig=function(y){y=this.JSC$12982_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.e("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};var BH=function(){};
_.p(BH,UA);BH.prototype.getApiPaths=function(){return m$f};
BH.prototype.getExtension=function(y){return _.h(y,_.yRI)};
BH.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.flagAction&&(y.action=W.flagAction);W.flagRequestType&&(y.flagRequestType=W.flagRequestType);W.additionalDetailCheckboxChecked&&(y.additionalDetailCheckboxChecked=W.additionalDetailCheckboxChecked);W.legalCheckboxChecked&&(y.legalCheckboxChecked=W.legalCheckboxChecked);W={};V.flag_issue_type!==void 0&&(W.issue=V.flag_issue_type);V.flag_affiliation!==void 0&&(W.affiliation=V.flag_affiliation);V.flag_full_name&&(W.fullName=V.flag_full_name);
Object.keys(W).length&&(y.legalReportDetails=W);if(V.flag_description||V.text)y.userComments=V.flag_description||V.text;W={};V.minutes!==void 0&&V.seconds!==void 0&&(W.minutes=V.minutes,W.seconds=V.seconds);V.vss_id&&(W.vssId=V.vss_id);Object.keys(W).length&&(y.videoReportDetails=W);W={};V.video_ids&&(W.videoIds=V.video_ids);V.impersonated_channel_url&&(W.impersonatedChannelUrl=V.impersonated_channel_url);Object.keys(W).length&&(y.channelAbuseReportDetails=W)};
_.CM.Object.defineProperties(BH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JF=function(){};
_.p(JF,UA);JF.prototype.getApiPaths=function(){return D$m};
JF.prototype.getExtension=function(y){return _.h(y,T6I)};
JF.prototype.JSC$12975_buildRequest=function(y,W){W.blockedForKidsContent&&(y.blockedForKidsContent=W.blockedForKidsContent)};var Re=function(){};
_.p(Re,UA);Re.prototype.getApiPaths=function(){return CaQ};
Re.prototype.getExtension=function(y){return _.h(y,m3z)};
Re.prototype.JSC$12975_buildRequest=function(y,W,V){y.params=W.params;V.impersonated_channel_url&&(y.impersonatedChannelUrl=V.impersonated_channel_url)};var jC=function(){};
_.p(jC,UA);jC.prototype.getApiPaths=function(){return rCf};
jC.prototype.getExtension=function(y){return _.h(y,_.mcm)};
jC.prototype.JSC$12975_buildRequest=function(y,W){W.items&&(y.items=W.items);W.kidGaiaId&&(y.kidGaiaId=W.kidGaiaId)};var $O=function(){};
_.p($O,UA);$O.prototype.getApiPaths=function(){return uXR};
$O.prototype.getExtension=function(y){return _.h(y,_.YVf)};
$O.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params);W.targetId&&(y.targetId=W.targetId)};var nI=function(){};
_.p(nI,UA);nI.prototype.getApiPaths=function(){return LOQ};
nI.prototype.getExtension=function(y){return _.h(y,qQK)};
nI.prototype.JSC$12975_buildRequest=function(y,W){W.externalVideoId&&(y.externalVideoId=W.externalVideoId);W.query&&(y.query=W.query);W.sourceTimelines&&(y.sourceTimelines=W.sourceTimelines)};var HH=function(){};
_.p(HH,UA);HH.prototype.getApiPaths=function(){return zFA};
HH.prototype.getExtension=function(y){return _.h(y,_.EP)||void 0};
HH.prototype.JSC$12975_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};
_.Rbt=function(){};
_.p(_.Rbt,UA);_.E=_.Rbt.prototype;_.E.getApiPaths=function(){return zFA};
_.E.getExtension=function(y){return _.h(y,_.Ax)||void 0};
_.E.isNavigationCommand=function(){return!0};
_.E.JSC$12982_getStoreKey=function(y,W){W=W===void 0?{}:W;if(!W.disableCache&&(y=this.getExtension(y))&&y.query)return W={query:y.query},y.params&&(W.params=y.params),_.N8("search",W)};
_.E.JSC$12975_buildRequest=function(y,W,V){W.query&&(y.query=W.query);W.params&&(y.params=W.params);if(!_.e("web_forward_suggest_stats_killswitch")){var w=_.h(W,off);w&&(y.suggestStats=w)}var t;!_.e("kevlar_searchbox_stats_killswitch")&&((t=V.tempData)==null?0:t.gs_l)&&!_.h(W,off)&&(y.webSearchboxStatsUrl="/search?oq="+(V.tempData.oq||"")+"&gs_l="+V.tempData.gs_l);var F;if((F=V.tempData)==null?0:F.entityMid)W=y.suggestionSearchParams||{},W.entityMid=V.tempData.entityMid,y.suggestionSearchParams=W;
_.e("enable_desktop_vdcbg_components")&&(V=_.l5().getFlag(186),y.inlineSettingStatus=V?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.E.getRequestConfig=function(y,W){W=W===void 0?{}:W;y=this.JSC$12982_getStoreKey(y,W);var V;y&&(V={storeStrategy:{storeKey:y}});_.e("web_log_search_ticks_ks")||(V=V||{},V.requestTick="sr_s",V.responseTick="sr_r");return V};var XK=function(){};
_.p(XK,UA);XK.prototype.getApiPaths=function(){return jLK};
XK.prototype.getExtension=function(y){return _.h(y,INf)};
XK.prototype.JSC$12975_buildRequest=function(y,W){W.serializedGetSharingProviderDataParams&&(y.serializedGetSharingProviderDataParams=W.serializedGetSharingProviderDataParams)};var ae=function(){};
_.p(ae,UA);ae.prototype.getApiPaths=function(){return $$J};
ae.prototype.getExtension=function(y){return _.h(y,GFs)};
ae.prototype.JSC$12975_buildRequest=function(y,W){W.endpoint&&(y.endpoint=W.endpoint);W.action&&(y.action=W.action)};var GZ=function(){};
_.p(GZ,UA);GZ.prototype.getApiPaths=function(){return iKQ};
GZ.prototype.getExtension=function(y){return _.h(y,b$s)};
GZ.prototype.JSC$12975_buildRequest=function(y,W){y.videoId=W.videoId;W.scheduledRedirectMetadataSourceVideoId&&(y.scheduledRedirectMetadata={sourceVideoId:W.scheduledRedirectMetadataSourceVideoId})};var rh=function(){};
_.p(rh,UA);rh.prototype.getApiPaths=function(){return otq};
rh.prototype.getExtension=function(y){return _.h(y,_.rS6)};
rh.prototype.JSC$12975_buildRequest=function(y,W){y.params=W.params;y.correctionText=W.correctionText};var bo=function(){};
_.p(bo,UA);bo.prototype.getApiPaths=function(){return VpR};
bo.prototype.getExtension=function(y){return _.h(y,_.UY6)};
bo.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params);y.searchQuery=W.searchQuery;y.languageCode=W.languageCode;y.kind=W.kind;y.name=W.name;y.externalVideoId=W.externalVideoId};var Qb=function(){};
_.p(Qb,UA);Qb.prototype.getApiPaths=function(){return kQE};
Qb.prototype.getExtension=function(y){return _.h(y,Pks)};
Qb.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.params=W.params)};var ZM=function(y){this.JSC$17969_storeWithEntities=y};
_.p(ZM,UA);ZM.prototype.getApiPaths=function(){return OKq};
ZM.prototype.getExtension=function(y){return _.h(y,Ohm)||_.h(y,dCs)};
ZM.prototype.JSC$12975_buildRequest=function(y,W,V){V.client_data&&(y.clientData=V.client_data);if(W.commerceActionConfig){var w=W.commerceActionConfig;W=w.actionId;w=w.commerceActionParams;W&&(y.actionId=W);w&&(y.commerceActionParams=w)}else{var t=W.actionId,F=W.commerceActionParams;V=W.entityKeys;t&&(y.actionId=t);F&&(y.commerceActionParams=F);var I;W=(w=this.JSC$17969_storeWithEntities)==null?void 0:(I=w.getState())==null?void 0:I.entities;if(V&&W){w=[];I=_.N(V);for(V=I.next();!V.done;V=I.next())if(t=
V.value,V=_.T4(t).entityType,t=_.UB(W,V,t))F={},w.push((F[V]=t,F));y.entityMutationPayloads=w}}};
ZM.prototype.getRequestConfig=function(y){var W,V=(W=_.h(y,Ohm))==null?void 0:W.requestSequenceType;if(V&&y.clickTrackingParams&&V!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:y.clickTrackingParams,sequenceType:V}}};
ZM[cs]=[ma];var ys=function(){};
_.p(ys,UA);ys.prototype.getApiPaths=function(){return sjf};
ys.prototype.getExtension=function(y){return _.h(y,_.DC6)};
ys.prototype.JSC$12975_buildRequest=function(y,W){W.feedbackData&&(y.feedbackData=W.feedbackData);W.params&&(y.itemParams=W.params)};
_.CM.Object.defineProperties(ys.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wu=function(){};
_.p(Wu,UA);Wu.prototype.getApiPaths=function(){return AW6};
Wu.prototype.getExtension=function(y){return _.h(y,l06)};
Wu.prototype.JSC$12975_buildRequest=function(y,W,V){V.payments_payload&&(y.paymentsPayload=V.payments_payload);V.offer_params&&(y.offerParams=V.offer_params);W.transactionParams&&(y.transactionParams=W.transactionParams)};var Vs=function(){};
_.p(Vs,UA);Vs.prototype.getApiPaths=function(){return Y4s};
Vs.prototype.getExtension=function(y){return _.h(y,_.xC2)};
Vs.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.buybucketParams&&(y.buybucketData={params:W.buybucketParams},W.stickerParams?y.buybucketData.stickerParams=W.stickerParams:(V.rich_chat_message?y.buybucketData.richChatMessage=V.rich_chat_message:V.chat_message_text&&(y.buybucketData.chatMessageText=V.chat_message_text),V.purchase_price_micros&&(y.buybucketData.purchasePriceMicros=V.purchase_price_micros.toString())));W.donationAmountMicros&&(y.tipAmountMicros=W.donationAmountMicros,
W.tipParams&&(y.tipParams=W.tipParams));W.offerParams&&(y.offerParams=W.offerParams);W.productData&&(y.productData=W.productData);W.transactionParams&&(y.transactionParams=W.transactionParams)};var wM=function(){};
_.p(wM,UA);wM.prototype.getApiPaths=function(){return BZ6};
wM.prototype.getExtension=function(y){return _.h(y,AZz)};
wM.prototype.JSC$12975_buildRequest=function(y,W){W.updateFopParams&&(y.updateFopParams=W.updateFopParams)};var t5=function(){};
_.p(t5,UA);t5.prototype.getApiPaths=function(){return JWr};
t5.prototype.getExtension=function(y){return _.h(y,_.Kv)};
t5.prototype.JSC$12975_buildRequest=function(y,W){W.couponCode&&(y.couponCode=W.couponCode);W.params&&(y.itemParams=W.params)};var Fs=function(){};
_.p(Fs,UA);Fs.prototype.getApiPaths=function(){return RFi};
Fs.prototype.getExtension=function(y){return _.h(y,_.vpK)};
Fs.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;W.params&&(y.params=W.params);V.ctk&&(y.clientToken=V.ctk)};var E5=function(y){this.JSC$18004_storeWithEntities=y};
_.p(E5,UA);E5.prototype.getApiPaths=function(){return jj2};
E5.prototype.getExtension=function(y){return _.h(y,_.Ii)};
E5.prototype.JSC$12975_buildRequest=function(y,W,V){V.purchase_price_micros&&(y.productData={pdgData:{purchasePriceMicros:V.purchase_price_micros.toString()}},V.rich_chat_message&&(y.productData.pdgData.richChatMessage=V.rich_chat_message),V.currency_code&&(y.productData.pdgData.currencyCode=V.currency_code));W.transactionParams&&(y.transactionParams=W.transactionParams);W.clientLocationContext&&(y.clientLocationContext=W.clientLocationContext);V.payments_payload&&(y.paymentsPayload=V.payments_payload);
V.funds_guarantee_callback_client_data&&(y.fundsGuaranteeCallbackClientData=V.funds_guarantee_callback_client_data);var w,t;V=(w=this.JSC$18004_storeWithEntities)==null?void 0:(t=w.getState())==null?void 0:t.entities;if(W.entityKeys&&V){w=[];W=_.N(W.entityKeys);for(t=W.next();!t.done;t=W.next()){var F=t.value;t=_.T4(F).entityType;if(F=_.UB(V,t,F)){var I={};w.push((I[t]=F,I))}}y.entityMutationPayloads=w}};
E5[cs]=[ma];var NQ=function(){};
_.p(NQ,UA);NQ.prototype.getApiPaths=function(){return $dJ};
NQ.prototype.getExtension=function(y){return _.h(y,k5z)};
NQ.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;V.backend_analytics&&(y.serializedBackendAnalyticsEvent=V.backend_analytics);W.offerParams&&(y.offerParams=W.offerParams)};var In=function(){};
_.p(In,UA);In.prototype.getApiPaths=function(){return JWr};
In.prototype.getExtension=function(y){return _.h(y,YCz)};
In.prototype.JSC$12975_buildRequest=function(y,W){W.params&&(y.itemParams=W.params)};var gM=function(){};
_.p(gM,UA);gM.prototype.getApiPaths=function(){return ntJ};
gM.prototype.getExtension=function(y){return _.h(y,_.hjq)};
gM.prototype.JSC$12975_buildRequest=function(y,W,V){V.resume_time_ms&&(y.resumeTimeMs=V.resume_time_ms);W.pauseParams&&(y.pauseParams=W.pauseParams)};var Pu=function(){};
_.p(Pu,UA);Pu.prototype.getApiPaths=function(){return HrK};
Pu.prototype.getExtension=function(y){return _.h(y,_.sYQ)};
Pu.prototype.JSC$12975_buildRequest=function(y,W,V){V=V===void 0?{}:V;V.c&&(y.redeemCode=V.c);V.rd&&(y.riskData=V.rd);V.ctk&&(y.clientToken=V.ctk)};var C0=function(){};
_.p(C0,UA);C0.prototype.getApiPaths=function(){return XS6};
C0.prototype.getExtension=function(y){return _.h(y,_.opQ)};
C0.prototype.JSC$12975_buildRequest=function(y,W){W.resumeParams&&(y.resumeParams=W.resumeParams)};var O5=function(y,W){this.clientName=y;this.defaultExpirationDelayMs=W};
O5.prototype.put=function(y,W){var V=this,w;return _.g(function(t){w=Object.assign({},W.data);w.key=y;w.clientName=V.clientName;w.expireTimestampMs===void 0&&(w.expireTimestampMs=(Math.round((0,_.cU)())+V.defaultExpirationDelayMs).toString());return t.return(V.putInternal(y,w))})};
O5[cs]=[$a,WLW];var jRd=function(){O5.apply(this,arguments);this.JSC$18034_responseStore=new Map};
_.p(jRd,O5);_.E=jRd.prototype;_.E.get=function(y){var W=this;return _.g(function(V){return V.return(U4(W,y))})};
_.E.putInternal=function(y,W){var V=this,w,t,F;return _.g(function(I){w=V.defaultExpirationDelayMs;W.expireTimestampMs&&(w=Number(W.expireTimestampMs)-Math.round((0,_.cU)()),t=_.pB("mweb_override_response_store_expiration_ms"),t>0&&t<w&&(w=t));F=setTimeout(function(){V.remove(y)},w);
V.JSC$18034_responseStore.set(y,{entryData:W,timer:F});_.B7(I)})};
_.E.remove=function(y){var W=this;return _.g(function(V){$aW(W,y);_.B7(V)})};
_.E.removeAll=function(){var y=this;return _.g(function(W){y.JSC$18034_responseStore.forEach(function(V){clearTimeout(V.timer)});
y.JSC$18034_responseStore.clear();_.B7(W)})};
_.E.has=function(y){return!!this.JSC$18034_responseStore.get(y)};
_.E.getKeys=function(){return this.JSC$18034_responseStore.keys()};
var U4=function(y,W){if(y=y.JSC$18034_responseStore.get(W))return new _.qd(y.entryData)},$aW=function(y,W){var V=y.JSC$18034_responseStore.get(W);
V&&(clearTimeout(V.timer),y.JSC$18034_responseStore.delete(W))};var w$G;var E8G=function(y,W,V){O5.call(this,y,W);this.token=V};
_.p(E8G,O5);_.E=E8G.prototype;_.E.get=function(y){var W=this,V,w;return _.g(function(t){return t.nextAddress==1?t.yield(Fpv(W.token),2):t.nextAddress!=3?(V=t.yieldResult,t.yield(V.get("ResponseStore",[y,W.clientName]),3)):(w=t.yieldResult)?t.return(new _.qd(w)):t.return(void 0)})};
_.E.putInternal=function(y,W){var V=this,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(Fpv(V.token),2);w=t.yieldResult;return t.yield(w.put("ResponseStore",W),0)})};
_.E.remove=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(Fpv(W.token),2);V=w.yieldResult;return w.return(V.delete("ResponseStore",[y,W.clientName]))})};
_.E.removeAll=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(Fpv(y.token),2);W=V.yieldResult;return V.yield(okJ(W,IDBKeyRange.only(y.clientName)),0)})};
_.E.has=function(){throw Error("ej");};_.vu=new _.e9("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var nPP=function(y){var W;this.stateTagsData=(W=y.responseContext)==null?void 0:W.stateTags},Hdt=function(y){var W;
return((W=y.stateTagsData)==null?void 0:W.stateTagsModified)||[]};var XyP;XyP=function(y){this.JSC$18047_responseStore=y};
_.EX=function(y,W,V){if(!_.e("state_tags_killswitch")){var w=new nPP(W);if(Hdt(w).length>0){var t=y.JSC$18047_responseStore.getKeys();t=_.N(t);for(var F=t.next();!F.done;F=t.next()){F=F.value;var I=U4(y.JSC$18047_responseStore,F);if(I){var P=_.KV(I);a:{var C=void 0;I=Hdt(w);P=((C=(new nPP(P)).stateTagsData)==null?void 0:C.relevantStateTags)||[];C=_.N(P);for(P=C.next();!P.done;P=C.next())if(P=P.value,P.stateTag!=null&&I.includes(P.stateTag)&&P.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){I=
!0;break a}I=!1}I&&$aW(y.JSC$18047_responseStore,F)}}}}var d;w=(d=W.responseContext)==null?void 0:d.maxAgeSeconds;V&&w&&Number(w)>0&&(W=qH(W,w),y.JSC$18047_responseStore.put(V,new _.qd(W)))};
XyP.prototype.handleResponse=function(y,W){if(!W)throw Error("fj");var V,w;W=(V=W.config)==null?void 0:(w=V.storeStrategy)==null?void 0:w.storeKey;_.EX(this,y,W)};
XyP[cs]=[_.Md];_.vBP=new _.e9("STORE_RESPONSE_PROCESSOR_TOKEN");var ate=function(y){this.JSC$18050_responseStore=y};
ate.prototype.handleResponse=function(y,W){if(W.input.match(_.LO(IOE))){var V;if(y==null?0:(V=y.entries)==null?0:V.length)for(y=_.N(y.entries),W=y.next();!W.done;W=y.next()){V=W.value.command;var w=void 0;W=(w=_.h(V,_.Jx))==null?void 0:w.unserializedPrefetchData;if(!V||!W)break;w=(new sI).JSC$12982_getStoreKey(V);var t=_.h(W,pqq),F=void 0,I=void 0,P=void 0,C=_.pB("web_shorts_prefetch_service_ttl_seconds")>0?_.pB("web_shorts_prefetch_service_ttl_seconds"):Number((P=(F=t)==null?void 0:(I=F.responseContext)==
null?void 0:I.maxAgeSeconds)!=null?P:3600);w&&C>0&&(t=qH(t,C),this.JSC$18050_responseStore.put(w,new _.qd(t)));V=(new xK).JSC$12982_getStoreKey(V);W=_.h(W,Eor);F=t=w=void 0;I=_.pB("web_shorts_prefetch_service_ttl_seconds")>0?_.pB("web_shorts_prefetch_service_ttl_seconds"):Number((F=(w=W)==null?void 0:(t=w.responseContext)==null?void 0:t.maxAgeSeconds)!=null?F:3600);V&&I>0&&(W=qH(W,I),this.JSC$18050_responseStore.put(V,new _.qd(W)))}}};
ate[cs]=[_.Md];var GGt=function(y){this.innertubeTransportService=y};
GGt[cs]=[_.QY];var rvj=new _.e9("SUBMIT_API_SERVICE_TOKEN");var dM=function(){this.scheduler=_.Xu()},bdu;
dM.prototype.pause=function(){throw Error("gj");};
dM.prototype.resume=function(){throw Error("gj");};
dM.prototype.queue=function(y){var W=this,V=_.v5(),w=_.Jt(this.scheduler,function(){try{var t;if(_.xc.instance)var F=_.xc.instance;else{var I=new _.Js("Error: Unexpected uninitialized CommandHandler.");_.ap(I);F=void 0}(t=F)==null||t.resolveCommand(y.command);V.resolve()}catch(P){V.reject(P)}});
V.promise.thenCatch(function(t){t instanceof _.Fu&&W.scheduler.cancelJob(w)});
return V.promise};
dM.prototype.queueAll=function(y){var W=new Map;y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,W.set(V.id,this.queue(V));return W};var ZdW=function(y,W){var V=this;this.taskModel=y;this.onTaskCancelledCallback=W;this.resolver=_.v5();y=y.proto.prefetchConfig;if(!y)throw Error("hj");if(!y.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(w){w instanceof _.Fu&&(QR4(V,V.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),V.onTaskCancelledCallback(V.taskModel.id,V.jobId),V.tick("pcc"));
throw w;});
this.timerName=this.taskModel.id;_.X$(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
ZdW.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 QR4=function(y,W){_.HN({prefetchInfo:{cancellationReason:W}},y.timerName)};
ZdW.prototype.tick=function(y){_.aw(y,void 0,this.timerName)};var zl=function(){var y=this;this.scheduler=_.Xu();this.maxInflightTasks=_.pB("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.pB("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new jUQ;this.onTaskCancelled=function(W,V){V&&y.scheduler.cancelJob(V);yAq(y,W);L0(y,3)}},WfC=function(){zl.instance||(zl.instance=new zl);
return zl.instance};
zl.prototype.pause=function(){this.prefetchCoordinatorState=0};
zl.prototype.resume=function(){L0(this,0)};
zl.prototype.queue=function(y){y=VQd(this,y);L0(this,1);return y};
zl.prototype.queueAll=function(y){var W=new Map;y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,W.set(V.id,VQd(this,V));L0(this,1);return W};
var VQd=function(y,W){var V=y.allPrefetchTasks.get(W.id);if(V)return V.cancellablePromise;try{var w=new ZdW(W,y.onTaskCancelled)}catch(F){return _.Gb(F)}V=w;V.tick("pcq");var t={prefetchInfo:{taskId:V.taskModel.id,isPrefetch:!0,fetchAction:V.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:V.taskModel.command.clickTrackingParams}};V.taskModel.csn&&(t.clientScreenNonce=V.taskModel.csn);_.HN(t,V.timerName);y.allPrefetchTasks.set(W.id,w);y.drainingHeap.insert(-w.getPriority(),w);return w.cancellablePromise},
L0=function(y,W){y.prefetchCoordinatorState===W&&(y.prefetchCoordinatorState=2,wzW(y))},wzW=function(y){for(var W={};y.prefetchCoordinatorState!==0;W={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(y.inflightPrefetchTasks.size>=y.maxInflightTasks){y.prefetchCoordinatorState=3;break}W.prefetchTask$jscomp$1=y.drainingHeap.remove();if(!W.prefetchTask$jscomp$1){y.prefetchCoordinatorState=1;break}W.taskId$jscomp$3=W.prefetchTask$jscomp$1.taskModel.id;if(y.allPrefetchTasks.has(W.taskId$jscomp$3)){var V=-1;y.coordinatorTimeoutMs>0&&(V=_.Jt(y.scheduler,function(w){return function(){cu(y,w.taskId$jscomp$3,Error("jj"))}}(W),y.coordinatorTimeoutMs));
y.inflightPrefetchTasks.set(W.taskId$jscomp$3,V);if(!y.JSC$18068_commandHandler){if(!_.xc.instance){cu(y,W.taskId$jscomp$3,Error("kj"));continue}y.JSC$18068_commandHandler=_.xc.instance}a:switch(W.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":V=1;break a;default:V=0}W.prefetchTask$jscomp$1.jobId=y.scheduler.addJob(function(w){return function(){w.prefetchTask$jscomp$1.tick("pcr");try{y.JSC$18068_commandHandler.resolveCommand(w.prefetchTask$jscomp$1.taskModel.command)||
cu(y,w.taskId$jscomp$3,Error("lj"))}catch(t){cu(y,w.taskId$jscomp$3,t)}}}(W),V,0)}}},tQm=function(y,W){(W=yAq(y,W))!=null&&(W.resolver.resolve(),W.tick("pce"));
L0(y,3)},cu=function(y,W,V){(W=yAq(y,W,V))!=null&&(W.resolver.reject(V),W.tick("pcc"),QR4(W,"CANCELLATION_REASON_ERROR"),Math.random()<=_.pB("prefetch_coordinator_error_logging_sampling_rate")&&(V=new _.Js("Prefetch Command failed.",W.taskModel.id,V.message),_.ap(V)));
L0(y,3)},yAq=function(y,W,V){var w=y.allPrefetchTasks.get(W);
w?((V=y.inflightPrefetchTasks.get(W))&&V!==-1&&y.scheduler.cancelJob(V),y.inflightPrefetchTasks.delete(W),y.allPrefetchTasks.delete(W)):_.rQ(new _.Js("Unexpected missing prefetch task when deleting task.",W,V==null?void 0:V.message));return w};var Ffv=function(y,W,V,w,t){this.id=y;this.triggerOn=W;this.cancelOn=V;this.command=w;this.proto=t};
_.CM.Object.defineProperties(Ffv.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var EJ4=function(){this.JSC$18073_prefetchCoordinator=WfC();bdu||(bdu=new dM);this.defaultCoordinator=bdu},Nme;
EJ4.getInstance=function(){Nme||(Nme=new EJ4);return Nme};
EJ4.prototype.get=function(y){switch(y){case 0:return this.JSC$18073_prefetchCoordinator;default:return this.defaultCoordinator}};var eJ=function(){this.coordinatorSupplier=EJ4.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},P2e=function(y){var W=_.Xn()||void 0,V=Object.keys(IIj)[0];
if(V){var w=y.taskIdByTriggerId.get(V);if(w!=null){y.taskIdByTriggerId.delete(V);V=[];w=_.N(w);for(var t=w.next();!t.done;t=w.next())if(t=y.tasks.get(t.value))W!=="UNDEFINED_CSN"&&(t.csn=W),V.push(t);V=g84(V);W=[];V=_.N(V);for(w=V.next();!w.done;w=V.next()){t=_.N(w.value);w=t.next().value;t=t.next().value;w=y.coordinatorSupplier.get(w).queueAll(t);w=_.N(w);var F=w.next();for(t={};!F.done;t={taskId$jscomp$9:void 0},F=w.next()){var I=_.N(F.value);F=I.next().value;I=I.next().value;t.taskId$jscomp$9=
F;F=I;W.push(t.taskId$jscomp$9);y.queuedPromisesByTask.set(t.taskId$jscomp$9,_.$s(F,function(P){return function(){gJq(y,P.taskId$jscomp$9)}}(t)))}}}}else _.rQ(new _.Js("Unexpected malformed TriggerEvent."))};
eJ.prototype.trigger=function(y,W){var V=this,w=this.tasks.get(y);if(!w||this.queuedPromisesByTask.has(y))return!1;C2q(this,y,w.triggerOn);W!=="UNDEFINED_CSN"&&(w.csn=W);W=this.coordinatorSupplier.get(w.taskType).queue(w);this.queuedPromisesByTask.set(y,_.$s(W,function(){gJq(V,y)}));
return!0};
eJ.prototype.cancel=function(y){var W=this.queuedPromisesByTask.get(y);if(W)W.cancel();else return gJq(this,y)};
var gJq=function(y,W){y.queuedPromisesByTask.delete(W);var V=y.tasks.get(W);if(!V)return!1;y.tasks.delete(W);C2q(y,W,V.triggerOn);(V=I_z(V.cancelOn))&&(y=y.taskIdByCancelId.get(V))&&y.delete(W);return!0},C2q=function(y,W,V){(V=Object.keys(V)[0])&&(y=y.taskIdByTriggerId.get(V))&&y.delete(W)};var IIj={taskRegistered:{}},h5=function(){eJ.instance||(eJ.instance=new eJ);this.JSC$18082_taskManager=eJ.instance};
_.p(h5,FN);
h5.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){V=_.h(y,icm);if((w=V)==null||!w.tasks){var F=new _.Js("RegisterTasksCommand is missing tasks.");_.ap(F);return t.return()}F=W.JSC$18082_taskManager;for(var I=_.N(V.tasks),P=I.next();!P.done;P=I.next())if(P=P.value,P=P.id&&P.triggerOn&&P.cancelOn&&P.command?new Ffv(P.id,P.triggerOn,P.cancelOn,P.command,P):void 0,P){var C=Object.keys(P.triggerOn)[0];if(C){var d=I_z(P.cancelOn);d?(F.tasks.set(P.id,P),F.taskIdByTriggerId.has(C)||F.taskIdByTriggerId.set(C,
new Set),F.taskIdByTriggerId.get(C).add(P.id),F.taskIdByCancelId.has(d)||F.taskIdByCancelId.set(d,new Set),F.taskIdByCancelId.get(d).add(P.id)):_.rQ(new _.Js("Unexpected malformed cancelOn field."))}else _.rQ(new _.Js("Unexpected malformed triggerOn field."))}else _.rQ(new _.Js("Unexpected malformed Task proto."));P2e(W.JSC$18082_taskManager);_.B7(t)})};var Oqt={},vJv=(Oqt.rendered={priority:0,callback:function(){var y={};y.numCpu=navigator.hardwareConcurrency;var W={};W.ramGb=_.Vj.navigator.deviceMemory;var V={staticContext:{}};W.ramGb&&P3t(W.ramGb)&&(V.staticContext.memoryTotalKbytes=(W.ramGb*1048576).toString());y.numCpu&&P3t(y.numCpu)&&(V.staticContext.cpuCores=y.numCpu);if(_.e("web_enable_adaptive_appl_signal")){y={};W=_.yD("rses_dpj");var w=_.yD("rsef_dpj");W&&W>0&&w&&w>0&&(W=Math.ceil(w-W),W>0&&(y.loadLatency=W));y.loadLatency&&P3t(y.loadLatency)&&
(V.appL=y.loadLatency.toString())}_.Hp("applicationStarted",V)}},Oqt);var dr4=new _.e9("WINDOW_ON_ERROR"),Lft=new _.e9("ERROR_WEIGHT_MAPS"),ziv=new _.e9("INIT_ERROR");var cAP={},eie=(cAP.initialized={priority:10,callback:function(y){y.injector.resolve(ziv)()}},cAP);var hiW=function(){},oJP=function(){var y=_.ts("meta_logger_impl");
y||(y=new hiW,_.dE("meta_logger_impl",y));return y},Kf4=function(){oJP().csiSubscriptionKey=ycP("meta_logging_csi_event",function(y){var W=y.timerName;
if(y=y.timelineData){_.X$(W,{startTime:y.startTime},W);y.infos&&_.HN(y.infos,W);for(var V=_.N(Object.keys(y.ticks)),w=V.next();!w.done;w=V.next())w=w.value,_.aw(w,y.ticks[w],W)}})};
hiW.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&wWj(this.csiSubscriptionKey)};var pzj={},iqe=(pzj.initialized={priority:10,callback:function(){Kf4()}},pzj);var fIe=function(y,W){this.innertubeClientName=y;this.JSC$18098_prefCookie=W};
fIe.prototype.record=function(){if(_.e("web_li_record_binary_eval_tick")){var y=_.yD("rsef_dpj");var W=_.yD("rses_dpj");y=y!==void 0&&W!==void 0?Math.round(y-W):void 0;if(y!==void 0&&y>0){W=_.SL(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var V=this.poolSize;if(!(W.valuesSeen>=1E9)){if(W.valuesSample.length<V)W.valuesSample.push(y);else{var w=Math.floor(Math.random()*(W.valuesSeen+1));w<V&&(W.valuesSample[w]=y)}W.valuesSeen+=1}_.ui(this.storagePrefix+"-"+this.innertubeClientName,
W,2592E3);y=W.valuesSample;W=C3u(y);y=y.length<this.poolSize?void 0:W<400?1:W<1700?2:3;y!==void 0&&(this.JSC$18098_prefCookie.set(this.cookiePrefix+this.innertubeClientName,y),this.JSC$18098_prefCookie.save())}}else _.Dk(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18098_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18098_prefCookie.save()};
fIe[cs]=[$a,hp];var TmW=function(){fIe.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.p(TmW,fIe);var mru=new _.e9("PAGE_LOAD_TIME_TOKEN");var MQ3=function(y){this.signal=y;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;y.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Jt(_.HU,this.disableLoggingAndSendPayload,1E4)};
MQ3.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.HU.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),qEt(this))};
var qEt=function(y){var W=_.Hf();if(W){var V={webClientComponentsData:{components:Array.from(y.ids,function(w){return{id:w}})}};
y.ids.clear();_.BC().visualElementStateChanged(W,V)}};var Ur3=new _.e9("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var on=function(y,W){this.JSC$18127_storeWithEntities=y;this.JSC$18127_commandHandler=W;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
on.prototype.start=function(){this.JSC$18127_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
on.prototype.observeDownloadingEntities=function(){var y=_.Dnb(this.JSC$18127_storeWithEntities.getState().entities).map(function(w){return lsd(w)});
if(y.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var W={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:CBL()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.oB(_.u5("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18127_commandHandler.resolveCommand(W)}this.downloadingEntities=y}else if(this.downloadingEntities.length){var V=SVt(this.JSC$18127_storeWithEntities.getState().entities).map(function(w){return lsd(w)});
this.downloadingEntities.filter(function(w){return V.includes(w)}).length&&(y={openPopupAction:azR()},this.JSC$18127_commandHandler.resolveCommand(y));
this.downloadingEntities=[]}};
on[cs]=[ma,_.oA];var u6C;_.K0=function(y,W,V,w,t,F,I,P){this.JSC$18130_playerApiPromise=y;this.JSC$18130_commandHandler=W;this.JSC$18130_screenManager=V;this.offlineWebClientEligibility=w;this.JSC$18130_prefStorage=t;this.JSC$18130_actionRouter=F;this.entityTypeMap=I;this.JSC$18130_persistentStorePromiseAccessor=P;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
u6C=function(){var y=_.hs().resolve(_.K0),W;_.g(function(V){if(V.nextAddress==1)return y.downloadFailureListenerBound?V.return():V.yield(y.JSC$18130_playerApiPromise,2);W=V.yieldResult;W.addEventListener("onOfflineOperationFailure",function(w){if(w.failureReason&&w.entityKey&&w.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(w.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var t=_.T4(w.entityKey).entityId;t&&y.JSC$18130_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
t)}else if(_.e("kevlar_woffle")){t=y.JSC$18130_commandHandler;var F=t.resolveCommand;w=w.failureReason;var I=_.u5("TRANSFER_FAILED",void 0,"Download failed");w==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(I=_.u5("STORAGE_FULL",void 0,"Storage full"));F.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.oB(I),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
y.downloadFailureListenerBound=!0;_.B7(V)})};
_.K0.prototype.deleteVideo=function(y,W){var V=this,w,t,F;return _.g(function(I){if(I.nextAddress==1)return I.yield(V.JSC$18130_playerApiPromise,2);w=I.yieldResult;F={offlineLoggingData:{offlineDeleteReason:(t=W)!=null?t:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return I.yield(w.queueOfflineAction(y,V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",F),0)})};
_.K0.prototype.pauseVideoDownload=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.JSC$18130_playerApiPromise,2);V=w.yieldResult;V.pauseVideoDownload(y);_.B7(w)})};
_.K0.prototype.resumeVideoDownload=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.JSC$18130_playerApiPromise,2);V=w.yieldResult;return w.yield(V.resumeVideoDownload(y),0)})};
_.K0[cs]=[_.mG,_.oA,_.HB,Ur3,ir,ch,Ghr,li];var SE3=new _.e9("DOWNLOAD_STATE_STORE_TOKEN");var Drd=function(y,W){this.JSC$18150_persistentStorePromiseAccessor=y;this.store=W;this.upliftCompletionResolver=new _.UT},kRC=function(){var y=_.hs().resolve(lIj),W;
_.g(function(V){switch(V.nextAddress){case 1:if(y.upliftImplPromise)return V.return(y.upliftImplPromise);_.l7(V,2);y.upliftImplPromise=xre(y);return V.yield(y.upliftImplPromise,4);case 4:y.upliftCompletionResolver.resolve();_.E6(V,3);break;case 2:throw W=_.YX(V),y.upliftCompletionResolver.reject(W),W;case 3:return V.return(y.upliftImplPromise)}})},xre=function(y){var W,V,w;
return _.g(function(t){switch(t.nextAddress){case 1:return _.W4("LOGGED_IN")?t.yield(y.JSC$18150_persistentStorePromiseAccessor(),2):t.return();case 2:W=t.yieldResult;if(!W)return _.aw("vdeur"),t.return();_.aw("vdeus");_.l7(t,3);return t.yield(ssv(W),5);case 5:V=t.yieldResult;y.store.dispatch(crv(V));W.observe(function(F){eId(y.store,F)});
_.E6(t,4);break;case 3:throw w=_.YX(t),_.aw("vdeur"),w;case 4:_.aw("vdeuc"),_.B7(t)}})},ssv=function(y){var W;
return _.g(function(V){if(V.nextAddress==1)return V.yield(ea4(y),2);W=V.yieldResult;return V.return(W.reduce(function(w,t){if(!t.data||!t.key||!t.entityType)return w;w[t.entityType]||(w[t.entityType]={});w[t.entityType][t.key]=t.data;return w},{}))})};
Drd[cs]=[li,_.w0];var lIj;lIj=new _.e9("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.p0=new _.e9("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var ic=function(y,W){this.JSC$18153_persistentStorePromiseAccessor=y;this.transportService=W};
ic.prototype.refresh=function(){var y=this,W,V,w,t;return _.g(function(F){if(F.nextAddress==1)return _.W4("LOGGED_IN")?F.yield(y.JSC$18153_persistentStorePromiseAccessor(),2):F.return();if(F.nextAddress!=3)return(W=F.yieldResult)?F.yield(yuv(W),3):F.return();if((V=F.yieldResult)&&!(Number(V.data.refreshTimestampMs||0)<(0,_.cU)()))return F.return();w={browseId:"SPaccount_downloads"};t=_.LO(dx);_.Vo(y.transportService,w,t).then(function(I){var P;if(W&&(I==null?void 0:(P=I.responseContext)==null?void 0:
P.maxAgeSeconds)!==0){var C;P=(I==null?void 0:(C=I.responseContext)==null?void 0:C.maxAgeSeconds)||604800;C=String(Math.floor((0,_.cU)())+P*1E3);W.put("service:downloads_settings:fallback",new _.qd({innertubeResponse:I,refreshTimestampMs:C}))}});
_.B7(F)})};
ic[cs]=[_.vu,_.QY];var f0=function(y,W){this.JSC$18157_playerPromise=y;this.store=W;this.started=!1};
f0.prototype.start=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return y.started?V.return():V.yield(y.JSC$18157_playerPromise,2);W=V.yieldResult;W.addEventListener("onOrchestrationBecameLeader",y.updateIsLeader.bind(y,!0));W.addEventListener("onOrchestrationLostLeader",y.updateIsLeader.bind(y,!1));if(W.isOrchestrationLeader)y.updateIsLeader(W.isOrchestrationLeader());else{var w=new _.Js("Function isOrchestrationLeader is undefined",{"player.isReady":W.isReady(),"player.playVideo":W.playVideo?
"defined":"undefined"});_.ap(w);y.updateIsLeader(!1)}y.started=!0;_.B7(V)})};
f0.prototype.updateIsLeader=function(y){this.store.dispatch(_.ig({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:y}}))};
f0[cs]=[_.mG,_.w0];var AAC=function(y,W){this.networkStatusManager=y;this.JSC$18160_prefStoragePromise=W;this.redirectsToPreload=["https://youtube.com"]},YEu=function(){var y=_.hs().resolve(AAC),W,V,w,t,F,I;
_.g(function(P){switch(P.nextAddress){case 1:return P.yield(y.JSC$18160_prefStoragePromise,2);case 2:W=P.yieldResult;if(!(V=W)){P.jumpTo(3);break}return P.yield(W.get("yt-redirect-prefetch-id"),4);case 4:V=P.yieldResult;case 3:if(V||!y.networkStatusManager.isNetworkAvailable())return P.return();w={cache:"reload",redirect:"manual"};t=_.N(y.redirectsToPreload);F=t.next();case 5:if(F.done){if(!W){P.jumpTo(0);break}return P.yield(W.set("yt-redirect-prefetch-id",!0,86400),0)}I=F.value;_.l7(P,8);return P.yield(_.Vj.fetch(I,
w),10);case 10:_.E6(P,6);break;case 8:_.YX(P);case 6:F=t.next(),P.jumpTo(5)}})};var Tl=function(y){y?(this.container=y,this.containerWasInjected=!0):this.containerWasInjected=!1};
Tl.prototype.openDialog=function(y,W,V){var w=this,t;return _.g(function(F){(t=w.container)==null||t.openDialog(y,W,V);_.B7(F)})};
Tl.prototype.closeDialog=function(){var y=this,W;return _.g(function(V){(W=y.container)==null||W.closeDialog();_.B7(V)})};
Tl.prototype.isDialogOpen=function(){var y=this,W,V;return _.g(function(w){return w.return((V=(W=y.container)==null?void 0:W.isDialogOpen())!=null?V:!1)})};
Tl[cs]=[_.eX(DvA)];_.Bmu=new _.e9("POPUP_CONTROLLER_TOKEN");var JA3=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
JA3.prototype.registerPanel=function(y,W){if(y){this.panelMap.set(y,W);var V=this.pendingPanelResolvers.get(y);V&&(V.resolve(W),this.pendingPanelResolvers.delete(y))}};
JA3.prototype.getPanel=function(y){var W=this,V;return _.g(function(w){return(V=W.panelMap.get(y))?w.return(V):w.return(RiP(W,y))})};
var RiP=function(y,W){var V,w;return _.g(function(t){if(V=y.pendingPanelResolvers.get(W))return t.return(V.promise);w=new _.UT;y.pendingPanelResolvers.set(W,w);return t.return(w.promise)})},jsd=function(y){JA3.call(this);
var W=this;this.popupController=y;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return W.panelMap.size}}};
_.p(jsd,JA3);_.E=jsd.prototype;_.E.getReloadContinuation=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.getPanel(y),2);V=w.yieldResult;return w.return(V.getReloadContinuation())})};
_.E.showPanel=function(y,W,V,w,t,F,I){var P=this,C,d,L,z;return _.g(function(c){if(c.nextAddress==1){I&&P.updatePanelContinuationDatas.set(y,I);if((C=V)==null?0:(d=C.engagementPanelPopupPresentationConfig)==null?0:d.popupType){L=V.engagementPanelPopupPresentationConfig.popupType;t===void 0&&(t=document.body);var K=c.return,f=P.popupController,U=f.openPopup;a:switch(L){case "PANEL_POPUP_TYPE_DIALOG":var l="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":l="DROPDOWN";break a;default:throw Error("nj`"+
L);}return K.call(c,U.call(f,y,W,l,t))}return c.yield(P.getPanel(y),2)}z=c.yieldResult;(W||F)&&z.updatePanel(W,!1,w,F);z.showPanel(w);_.B7(c)})};
_.E.hidePanel=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(W.getPanel(y),2);V=w.yieldResult;V.hidePanel();W.popupController.closePopup(y);_.B7(w)})};
_.E.isVisible=function(y,W){var V=this,w;return _.g(function(t){if(t.nextAddress==1)return W&&!V.panelMap.has(y)?t.return(!1):t.yield(V.getPanel(y),2);w=t.yieldResult;return t.return(w.isVisible())})};
_.E.updatePanel=function(y,W,V,w,t,F){V=V===void 0?!1:V;var I=this,P;return _.g(function(C){if(C.nextAddress==1){if(!W&&!t)return C.return();F&&I.updatePanelContinuationDatas.set(y,F);return C.yield(I.getPanel(y),2)}P=C.yieldResult;P.updatePanel(W,V,w,t);_.B7(C)})};
_.E.registerPanelContent=function(y,W){y&&this.panelContentMap.set(y,W)};
_.E.getPanelContent=function(y){return this.panelContentMap.get(y)};
_.E.getUpdatePanelContinuationData=function(y){return this.updatePanelContinuationDatas.get(y)};
jsd[cs]=[_.Bmu];var mz=function(y,W){this.innertubeTransportService=y;this.JSC$18176_screenManager=W},$r4=function(y){var W;
return!((W=y.panelLoadingStrategy)==null||!W.requestTemplate)};
mz.prototype.makeRequest=function(y){var W=this,V,w;return _.g(function(t){switch(t.nextAddress){case 1:if(!$r4(W)){t.jumpTo(2);break}_.l7(t,3);return t.yield(_.OP(W.innertubeTransportService,y),5);case 5:return V=t.yieldResult,V?t.return(V.content):(_.ap(Error("oj")),t.return(void 0));case 3:w=_.YX(t),_.ap(w);case 2:return t.return(void 0)}})};
mz.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
mz.prototype.execute=function(y){var W=this,V,w,t,F,I,P,C,d,L,z;return _.g(function(c){if(c.nextAddress==1){V=y;w=V.data;t=V.fallbackVe;F=V.parentVe;I=V.createScreenConfig;P=V.renderFn;C=V.command;W.panelLoadingStrategy=w;var K,f,U=((K=W.panelLoadingStrategy)==null?0:K.screenVe)?(f=W.panelLoadingStrategy)==null?void 0:f.screenVe:t;U&&_.qx(W.JSC$18176_screenManager,U,F,I);return(d=W.getContent())?c.yield(P(d),2):c.jumpTo(2)}return c.nextAddress!=4?$r4(W)?c.yield(W.makeRequest(C),4):c.return():(z=L=
c.yieldResult)?c.yield(P(z),0):c.return()})};
mz[cs]=[_.QY,_.HB];var MQ=function(){};
MQ.prototype.getContainer=function(){return _.Lg()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
MQ.prototype.openSheet=function(y,W){var V=this,w,t,F,I,P,C;return _.g(function(d){switch(d.nextAddress){case 1:return w={stack:[],error:void 0,hasError:!1},_.l7(d,2,3),t=df,d.yield(V.isSheetOpen(),5);case 5:F=d.yieldResult;b4d(w,Phj(t));if(F){if(W&&V.currentTarget===W)return(I=V.getContainer())==null||I.closeSheet(),d.return();V.pendingData={data:y,target:t44(V,W)};return d.return()}y.viewModel&&(y={viewModel:y.viewModel});(P=V.getContainer())==null||P.openSheet(y,W);V.currentTarget=W;case 3:_.kX(d);
QkG(w);_.AX(d,0);break;case 2:C=_.YX(d),w.error=C,w.hasError=!0,d.jumpTo(3)}})};
MQ.prototype.closeSheet=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield((W=y.getContainer())==null?void 0:W.closeSheet(),2);if(V.nextAddress!=4)return y.currentTarget=void 0,y.pendingData?V.yield(y.openSheet(y.pendingData.data,y.pendingData.target),4):V.jumpTo(0);y.pendingData=void 0;_.B7(V)})};
MQ.prototype.isSheetOpen=function(){var y=this,W,V;return _.g(function(w){return w.return((V=(W=y.getContainer())==null?void 0:W.isSheetOpen())!=null?V:!1)})};
var t44=function(y,W){if(!_.e("web_parent_target_for_sheets"))return W;var V,w;return(w=(V=y.getContainer())==null?void 0:V.getParentTarget(W))!=null?w:W};var ME=window.documentPictureInPicture;var uGG=_.CF(["dark"]),Sdu=_.CF(["system-icons"]),DZR=_.CF(["typography"]),l_y=_.CF(["lang"]),xZj=_.CF(["style"]),mZG=_.CF(["dir"]),M2L=_.CF(["rounded-container"]),qdR=_.CF(["style"]),sOb=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],qQ=function(y){this.JSC$18188_clientRoot=y;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
qQ.prototype.openWindow=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return window.documentPictureInPicture&&_.S4()&&!W.currentPipWindow?t.yield((V=ME?ME:null)==null?void 0:V.requestWindow(y),2):t.return(!1);if(t.nextAddress!=3){w=t.yieldResult;if(!w)return t.return(!1);w.addEventListener("pagehide",function(){nJm(W)});
w.addEventListener("resize",W.handlePipWindowResize);W.pipWindowResizeDelay=new _.dy(function(){W.currentPipWindow&&_.ow(W.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.YY(W.currentPipWindow.innerWidth,W.currentPipWindow.innerHeight)])},w);
kHu(w);Ydz(w);return t.yield(Tna(w),3)}if(!p$4())return t.return(!1);W.currentPipWindow=w;W.JSC$18188_eventForwarder=AuL(w,W.JSC$18188_clientRoot);W.pipWindowResizeDelay.start();return t.return(!0)})};
qQ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var nJm=function(y){if(y.currentPipWindow){var W,V;(W=ME?ME:null)==null||(V=W.window)==null||V.close();y.currentPipWindow.removeEventListener("resize",y.handlePipWindowResize);var w;(w=y.pipWindowResizeDelay)==null||w.dispose();y.pipWindowResizeDelay=void 0;var t;(t=y.JSC$18188_eventForwarder)==null||t.stop();y.JSC$18188_eventForwarder=void 0;W=_.N(y.onCloseCallbacks);for(V=W.next();!V.done;V=W.next())V=V.value,V();y.onCloseCallbacks=[];y.currentPipWindow=null}};
qQ.prototype.getWindow=function(){return this.currentPipWindow};
var Hqj=function(y,W){var V;(V=y.onCloseCallbacks)==null||V.push(W)};
qQ.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.S4()};
_.CM.Object.defineProperties(qQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
qQ[cs]=[Z0E];var Xzj=new _.e9("PICTURE_IN_PICTURE_CONTROLLER");var BnP=function(y,W){this.lengthY=this.lengthX=0;this.lengthX=W.x-y.x;this.lengthY=W.y-y.y};var aId=function(){},Itu=function(y,W){var V;
(V=y.headerElement)==null||V.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:W}))};var GRv=function(){};
GRv.prototype.openPopup=function(y,W,V,w){var t=this,F;return _.g(function(I){if(!t.container)return I.return();F={openPopupAction:{popup:W,popupType:V,uniqueId:y}};return I.return(t.container.handleOpenPopupAction(F,w))})};
GRv.prototype.closePopup=function(y){this.container&&this.container.closePopup(y)};var rAj=function(){this.openTunnels=new Map},dQy=function(y,W,V){if(Hfn(V)){var w=_.to(V,"gclid");
V={handleEvent:function(P){W&&!W.closed&&typeof W.postMessage==="function"&&P&&P.origin&&P.source===W&&P.data&&P.data.action==="gcl_setup"&&W.postMessage(Object.assign({},{action:"gcl_transfer"},w&&{gclid:w},{gadSource:2}),P.origin)}};
for(var t=_.N(y.openTunnels),F=t.next();!F.done;F=t.next()){var I=_.N(F.value);F=I.next().value;I=I.next().value;if(F.closed)try{window.removeEventListener("message",I),y.openTunnels.delete(F)}catch(P){_.ap(P)}}W&&y.openTunnels.size<15&&(y.openTunnels.set(W,V),window.addEventListener("message",V))}};var bqP=function(){this.clientParams=new Map},NsR=function(y){for(var W=_.N(y.clientParams.keys()),V=W.next();!V.done;V=W.next())V=V.value,V.startsWith("yt-mini-app-share")&&y.clientParams.delete(V)};var QsC=function(y,W){_.Ru.call(this);var V=this;this.shortsController=y;this.storeWithShorts=W;y=_.Y0(this.storeWithShorts,_.Psb,function(w){if(w){var t,F=(t=V.shortsController.getRoot())==null?void 0:t.getPlayer(),I;(t=(I=V.shortsController.alternativePlayerContainerElement)==null?void 0:I.getPlayerContainer())&&(F==null||F.appendTo(t))}else{var P;I=(P=V.shortsController.alternativePlayerContainerElement)==null?void 0:P.getPlayerContainer().querySelector("#player");t=V.shortsController.activeIndex;
(P=(F=V.shortsController.getRoot())==null?void 0:F.querySelector('ytd-reel-video-renderer[id="'+t+'"] #player-container'))&&(I==null||I.appendTo(P,void 0,!0))}});
this.addOnDisposeCallback(y)};
_.p(QsC,_.Ru);var U5=function(y,W,V,w,t){var F=this;this.storeWithShorts=y;this.ephemeralResponseStore=W;this.store=V;this.innertubeTransportService=w;this.innertubeTransportLoader=t;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.tn(_.u0);this.isShortsPipActive=_.tn(_.Sy);this.nextReelVe=_.ad(56921);this.prevReelVe=_.ad(56922);this.backButtonVe=_.ad(22156);this.TEST_ONLY={getActiveModules:function(){return F.activeModules}}},ZqC=function(y){y.unsubscribeFromStore=
_.Y0(y.storeWithShorts,_.gmP,function(W){y.initOrDisposeActiveModules(W);
!W&&y.storeWithShorts.getState().shorts.isFullscreen&&(_.z2(document.documentElement),y.storeWithShorts.dispatch(_.Wlq(!1)))});
y.initOrDisposeActiveModules(_.gmP(y.storeWithShorts.getState()))},Vjq,w6q,ymu;
U5.prototype.initOrDisposeActiveModules=function(y){y?this.activeModules.push(new QsC(this,this.storeWithShorts)):(_.zk(this.activeModules),this.activeModules.length=0)};
U5.prototype.registerRootElement=function(y){this.rootElement=y;ZqC(this)};
U5.prototype.getRoot=function(){return this.rootElement};
U5.prototype.setActiveIndex=function(y){this.activeIndex=y};
_.r4J=function(y,W){var V,w,t,F,I,P,C;return _.g(function(d){switch(d.nextAddress){case 1:return V=new sI,(w=V.JSC$12982_getStoreKey(W))&&y.ephemeralResponseStore.has(w)?d.yield(y.ephemeralResponseStore.get(w),7):d.yield(ymu(y,W),4);case 4:t=d.yieldResult;if(!w){d.jumpTo(3);break}F=qH(t,3600);return d.yield(y.ephemeralResponseStore.put(w,new _.qd(F)),3);case 7:t=(I=d.yieldResult)==null?void 0:_.KV(I);case 3:return((P=t)==null?0:P.replacementEndpoint)&&(C=_.h(t.replacementEndpoint,_.Jx))&&t.sequenceContinuation&&
(C.sequenceParams=t.sequenceContinuation),d.return(t)}})};
Vjq=function(y,W){W=(new AF).JSC$12982_getStoreKey(W);return!!W&&y.ephemeralResponseStore.has(W)};
w6q=function(y,W,V){var w,t,F,I,P;_.g(function(C){if(C.nextAddress==1){w=new AF;t=w.JSC$12982_getStoreKey(W);if(!t)return C.return();if(V.reelWatchSequenceResponse)return F=qH(V.reelWatchSequenceResponse,3600),y.ephemeralResponseStore.put(t,new _.qd(F)),C.jumpTo(0);if(!y.ephemeralResponseStore.has(t))return C.jumpTo(0);P=V;return C.yield(y.ephemeralResponseStore.get(t),4)}P.reelWatchSequenceResponse=(I=C.yieldResult)==null?void 0:_.KV(I);_.B7(C)})};
ymu=function(y,W){var V=V===void 0?{}:V;var w,t,F;return _.g(function(I){switch(I.nextAddress){case 1:if(y.innertubeTransportService){w=y.innertubeTransportService;I.jumpTo(2);break}if(!y.innertubeTransportLoader){_.VC(Error("qj"));I.jumpTo(2);break}return I.yield(y.innertubeTransportLoader(),4);case 4:w=I.yieldResult;case 2:return I.yield((t=w)==null?void 0:_.OP(t,W,V),5);case 5:return F=I.yieldResult,I.return(F)}})};
_.CM.Object.defineProperties(U5.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
U5[cs]=[J4m,_.Md,ma,_.eX(_.QY),_.eX(kXz)];_.WCq=new _.e9("STORAGE_MANAGER_TOKEN");var a_j=["touchmove","scroll"];var QOn={onSpanEnd:function(y){if(y.parent==null){var W=y.name;_.X$(W);bfn(y,W)}}};var VPP=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},wdq;
VPP.prototype.enqueue=function(y,W){W===1?this.currentPersistentToast=y:this.queue.push(y);this.openToast()};
VPP.prototype.openToast=function(){var y;(y=this.currentToast)!=null&&y.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.uc=new _.e9("TOAST_MANAGER_TOKEN");var tPP=new _.e9("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var FCu=new _.e9("VIEW_TRANSITION_COORDINATOR_TOKEN");var EEd=function(y){this.config=y;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;y=_.N(y.transitionConfigs);for(var W=y.next();!W.done;W=y.next())W=_.N(W.value).next().value,this.transitionTasksMap.set(W,[])};
EEd.prototype.registerElement=function(y,W,V){V=V===void 0?!1:V;for(var w=_.N(Object.keys(W)),t=w.next(),F={};!t.done;F={viewTransitionName:void 0},t=w.next()){t=t.value;F.viewTransitionName=W[t];var I=this.elementTasksMap.get(y),P=void 0;if((P=I)==null?0:P.has(t)){_.GD(new _.Js("Element already registered for transition",y.tagName,t));break}I=I||new Map;I.set(t,{beforeTransition:function(C){return function(){y.style.viewTransitionName=C.viewTransitionName}}(F),
afterTransition:function(){y.style.viewTransitionName&&(y.style.viewTransitionName="")},
runOnce:V});this.elementTasksMap.set(y,I)}};
_.g7=function(y,W){var V=y.elementTasksMap.get(W);V&&(V.clear(),V.size===0&&y.elementTasksMap.delete(W))};
EEd[cs]=[tPP];var NWj;_.Iqu=_.eY(function(y){return _.O("basic-content-view-model",{class:_.kS("ytBasicContentViewModelHost",_.LD(y.className))},_.O(_.v,{cond:function(){return y.data().headline},
then:function(W){return _.O("div",{class:"ytBasicContentViewModelHeadline"},_.O(_.Lv,{text:W}))}}),_.O(_.YV,{each:function(){return y.data().paragraphs||[]},
keyBy:"INDEX"},function(W){return _.O("div",{class:"ytBasicContentViewModelParagraph"},_.O(_.v,{cond:function(){var V=W();return!!(V.header||V.customHeader||V.headline)},
then:function(){return _.O(NWj,{paragraph:W})}}),_.O(_.v,{cond:function(){return W().asset||W().text},
then:function(){return _.O("div",{class:"ytBasicContentViewModelParagraphContent"},_.O(_.v,{cond:function(){return W().asset},
then:function(V){return _.O("div",{class:"ytBasicContentViewModelParagraphAsset"},_.O(_.Q7,{data:V},{contentPreviewImageViewModel:_.f9}))}}),_.O(_.v,{cond:function(){return W().text},
then:function(V){return _.O("div",{class:"ytBasicContentViewModelParagraphText"},_.O(_.Lv,{text:V}))}}))}}))}))},"ze");
NWj=_.eY(function(y){var W=y.paragraph;return _.O(_.o8,null,_.O(_.v,{cond:function(){return W().headline},
then:function(V){return _.O(_.Lv,{text:V,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.O(_.Q7,{data:function(){return W().header||W().customHeader}},{sectionHeaderViewModel:function(V){return _.O(_.U2,{data:V.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var PtC=_.eY(function(y){var W=_.I0("yt-expandable-metadata-header-view-model"),V=_.YS(function(w){if(!_.VS(_.We(w),W.value,["A".toString(),"BUTTON".toString()])){var t;(t=y.expandedCallback)==null||t.call(y,!1)}});
return _.O("yt-expandable-metadata-header-view-model",{el:W,class:"ytExpandableMetadataHeaderViewModelHost"},_.O(_.v,{cond:function(){return y.expanded()},
then:function(){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":V},_.O("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.O(_.v,{cond:function(){return y.data().expandedTitleImage},
then:function(w){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.O(_.ca,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w}))}}),_.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.O(_.Lv,{text:function(){return y.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.O(_.Lv,{text:function(){return y.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.O(_.Lv,{text:function(){return y.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.O("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.O(_.Q7,{data:function(){return y.data().infoButton}},{buttonViewModel:_.lk}),_.O(_.Q7,{data:function(){return y.data().collapseButton}},{buttonViewModel:function(w){return _.O(_.lk,{data:w.data,
onClick:function(){var t;(t=y.expandedCallback)==null||t.call(y,!1)}})}})))},
else:function(){return _.O(gE3,Object.assign({},y))}}))},"Be"),Ctu=_.eY(function(y){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.O(_.v,{cond:function(){return y.data().collapsedLabelImage},
then:function(W){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.O(_.ca,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W,alt:""}))}}),_.O(_.Lv,{text:function(){return y.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),gE3=_.eY(function(y){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.YS(function(){var W;return void((W=y.expandedCallback)==null?void 0:W.call(y,!0))})},_.O("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.O(_.v,{cond:function(){return y.data().collapsedImage},
then:function(W){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.O(_.ca,{width:16,height:16,data:W,alt:""}))}}),_.O(_.v,{cond:function(){return y.data().showLeadingCollapsedLabel},
then:function(){return _.O(Ctu,Object.assign({},y))}}),_.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.O(_.Lv,{text:function(){return y.data().collapsedTitle}}))),_.O("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.O(_.v,{cond:function(){return!y.data().showLeadingCollapsedLabel},
then:function(){return _.O(Ctu,Object.assign({},y))}}),_.O(_.Q7,{data:function(){return y.data().infoButton}},{buttonViewModel:_.lk}),_.O(_.Q7,{data:function(){return y.data().expandButton}},{buttonViewModel:function(W){return _.O(_.lk,{data:W.data,
onClick:function(){var V;(V=y.expandedCallback)==null||V.call(y,!0)}})}})))},"De");_.Oeu=_.eY(function(y){var W=_.N(_.Jl(function(){return y.data().initiallyExpanded})),V=W.next().value,w=W.next().value,t,F=(t=_.hs().resolve(_.eX(_.va)))==null?void 0:t(),I=function(){var P=y.data().colorData;
if(P)return F?P==null?void 0:P.darkColorPalette:P==null?void 0:P.lightColorPalette};
return _.O("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Rd({"background-color":function(){var P=I();return(P==null?0:P.section2Color)?_.wg(P.section2Color):""}})},_.O(_.Q7,{data:function(){return y.data().header}},{expandableMetadataHeaderViewModel:function(P){return _.O(PtC,{data:P.data,
expanded:function(){return!!V()},
expandedCallback:function(C){w(C)}})}}),_.O(_.v,{cond:function(){return V()},
then:function(){return _.O("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.O(_.Q7,{data:function(){return y.data().expandedContent}},{horizontalShelfViewModel:function(P){return _.O(_.WO,{data:P.data,
includeMargin:!0,forceNarrowLayout:!0,palette:I})},
videoSummaryContentViewModel:function(P){return _.O(Mvf,{data:P.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(P){return _.O(_.US,{data:P.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(P){return _.O(_.Iqu,{data:P.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.O(_.Q7,{data:function(){return y.data().expandedBottomButtons}},{buttonViewModel:function(P){return _.O("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.O(_.lk,{data:P.data}))}}))}}))},"Ee");var vEj=_.eY(function(y){var W=y.text;var V=y.marqueeSpacing;var w=y.scrollDelay;var t=y.scrollDuration;var F=y.enableMarqueeScroll;y=y.large;var I=_.N(_.M1(!1,void 0,"kfNqfd")),P=I.next().value,C=I.next().value,d=_.N(_.M1(0,void 0,"bYgZbf"));I=d.next().value;var L=d.next().value,z=_.I0("marquee-scroll");d=_.I0("div");var c=_.I0("span"),K=_.hs().resolve(_.L5);_.H1(function(){if(F()){var l=c.value.getBoundingClientRect().width,x=z.value.getBoundingClientRect().width;if(l>x){var B=(K==="ltr"?-1:1)*
(l+(V?V():16));Promise.resolve().then(function(){C(!0);L(B)})}}},"giRlme");
var f={},U={};return _.O("marquee-scroll",{class:_.kS("ytMarqueeScrollHost",(f.ytMarqueeScrollHostLarge=y,f)),el:z},_.O("div",{id:"marquee-scroll-inner-container",class:_.kS("ytMarqueeScrollInnerContainer",(U.ytMarqueeScrollAnimationEnabled=function(){return P()},U)),
el:d,style:_.Rd({gap:V?(0,_.bH)(V):"16px","animation-duration":t?huE(t):"16s","animation-delay":w?huE(w):"3s","--marquee-translate":(0,_.bH)(I)})},_.O("span",{el:c,dir:"auto"},_.O(_.Lv,{text:W,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.O(_.v,{cond:P,then:function(){return _.O("span",{"aria-hidden":"true",dir:"auto"},_.O(_.Lv,{text:W,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.dut=_.eY(function(y){var W=y.data;var V=y.overlayDensity;y=_.YS(function(){W().onTapCommand&&_.Id(W().onTapCommand);return!1});
var w=_.Dyv(),t=function(){return(V==null?void 0:V())===1?22:16},F={};
return _.O("reel-sound-metadata-view-model",{class:_.kS("ytReelSoundMetadataViewModelHost",(F.ytReelSoundMetadataViewModelHostLarge=function(){return(V==null?void 0:V())===1},F)),
"on:click":y,tabindex:0,role:"button","on:keydown":w},_.O("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.O(_.v,{cond:function(){return W().musicIcon},
then:function(I){return _.O(_.ca,{data:I,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:t})}}),_.O("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.O(vEj,{text:function(){return W().soundMetadata},
enableMarqueeScroll:function(){return!!W().enableMarqueeScroll},
large:function(){return(V==null?void 0:V())===1}}))))},"Ge");var LC3,z43,SJ,oEm,pd3,h4u,TWE,fq3;LC3=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];z43=_.pB("wil_icon_max_concurrent_fetches",Infinity);
SJ=function(y,W,V){var w=this;this.iconSet=y;this.appDirection=W;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Vj.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.e("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.e("wil_icon_network_first");this.renderWhenIdle=_.e("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.e("wil_icon_load_immediately");this.isPurging=!1;y=function(){w.cacheStorageAvailable&&(w.cacheStorageAsync=_.Vj.caches.open("yt-icons").then(function(F){return w.cacheStorageSync=F}).catch(function(){w.cacheStorageAvailable=!1}))};
V=(V==null?void 0:V())||{};V=_.N(Object.entries(V));for(W=V.next();!W.done;W=V.next()){var t=_.N(W.value);W=t.next().value;t=t.next().value;t=D7(t);cmj(t);this.iconCache[W]=t.cloneNode(!0)}this.isPurging=e43(this);this.isPurging instanceof Promise?this.isPurging.then(y):y()};
_.utP=function(y,W){var V=y.resolveIcon(W);return V?y.renderingMode===1?h4u(y,V,y.renderingMode):(W=y.iconCache[V.url])?(W=W.cloneNode(!0),oEm(y,W),h4u(y,V,y.renderingMode,W)):_.KCq(y,V).then(function(w){var t=w?0:1;oEm(y,w);return h4u(y,V,t,w)}):(_.GD(new _.Js("Icon not found",{iconShape:W})),function(){})};
oEm=function(y,W){if(W){y.counter+=1;y="_yt"+y.counter;W=[W].concat(_.GC(W.getElementsByTagName("*")));W=_.N(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.tagName==="style"&&V.textContent)V.textContent=pd3(V.textContent,y,!0);else for(var w=_.N(V.attributes),t=w.next();!t.done;t=w.next()){t=t.value;t.name==="id"&&(t.value+=y);["mask","fill","clip-path"].includes(t.name)&&(t.value=pd3(t.value,y));if(t.name==="style"){var F=V.style;try{F.cssText=pd3(F.cssText,y,!0)}catch(L){var I=void 0,P=
void 0,C=void 0,d=void 0;DF({error:((I=L)==null?void 0:(C=(P=I).toString)==null?void 0:C.call(P))||"",el:V.outerHTML,style:!!F,cssText:(d=F)==null?void 0:d.cssText})}}t.name==="xlink:href"&&(t.value=t.value.replace(/#(.*)/,"#$1"+y))}}};
pd3=function(y,W,V){var w=/url\(["']?#(.*?)["']?\)/;(V===void 0?0:V)&&(w=/url\(["']?#(.*?)["']?\)/g);return y.replace(w,"url(#$1"+W+")")};
h4u=function(y,W,V,w){return function(t,F){var I=Object.assign({},{iconColor:"currentcolor",iconWidth:W.size+"px",iconHeight:W.size+"px",iconDisplay:"block"},F);F=_.xu("DIV");var P=I.iconColor,C=I.iconFilter;I="width: "+I.iconWidth+"; height: "+I.iconHeight+"; display: "+I.iconDisplay+";";C&&(I+=" filter: "+C+";");V===0&&(I+=" fill: "+P+";");V===1&&(C=W.url,I+=" -webkit-mask: url("+C+") no-repeat center / cover; mask: url("+(C+") no-repeat center / cover; background-color: ")+P);W.allowMirroring&&
y.appDirection==="rtl"&&(I+=" transform: scale(-1, 1); transform-origin: center center;");F.setAttribute("style",I);V===0&&w&&F.appendChild(w);t.appendChild(F)}};
_.KCq=function(y,W){var V,w,t;return _.g(function(F){V=function(I){return Nl(I)};
w=W.url;if(!ieu(w))throw Error("sj");t=fq3(y,w);return F.return(t.then(function(I){return I.clone().text()}).then(function(I){var P=V(I);
I=W.size;var C=_.xu("DIV");_.c7(C,P);P=_.ku(C.firstElementChild!==void 0?C.firstElementChild:_.Qsf(C.firstChild,!0));I=cmj(P,I);y.iconCache[w]=I.cloneNode(!0);delete y.responsePromises[w];return I}).catch(function(){}))})};
TWE=function(y){var W,V=(W=y.requestAninmationFrameResolver)==null?void 0:W.promise;V||(y.requestAninmationFrameResolver=new _.UT,V=y.requestAninmationFrameResolver.promise,_.Vj.requestAnimationFrame(function(){var w;(w=y.requestAninmationFrameResolver)==null||w.resolve();y.requestAninmationFrameResolver=null}));
return V};
fq3=function(y,W){var V,w;return _.g(function(t){if(t.nextAddress==1)return y.waitForAnimationFrame?t.yield(TWE(y),2):t.jumpTo(2);V=y.responsePromises[W];V||(w=function(){var F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:if(!y.cacheStorageAvailable){F=void 0;C.jumpTo(2);break}if(I=y.cacheStorageSync){C.jumpTo(3);break}return C.yield(y.cacheStorageAsync,4);case 4:I=C.yieldResult;case 3:F=I;case 2:return P=F,y.isNetworkFirstStrategy?C.return(y.fetchAndUpdateCache(W,P).catch(y.getCacheStorageResponse.bind(y,
W,P))):C.return(y.getCacheStorageResponse(W,P).catch(y.fetchAndUpdateCache.bind(y,W,P)))}})},V=y.renderWhenIdle?new Promise(function(F,I){_.Jt(_.HU,function(){w().then(F).catch(I)},10)}):w(),y.responsePromises[W]=V);
return t.return(V.catch(function(F){delete y.responsePromises[W];DF({error:(F==null?0:F.toString)?F.toString():"",url:W});throw F;}))})};
SJ.prototype.fetchAndUpdateCache=function(y,W){var V=this;return _.g(function(w){return w.return(muv(V,y).then(function(t){MP3(V,y,t,W);return t}))})};
var muv=function(y,W){var V;return _.g(function(w){if(y.numFetches<z43)return y.numFetches+=1,w.return(q3d(y,W).finally(function(){--y.numFetches;if(Object.keys(y.queuedResponseResolvers).length){var t=Object.keys(y.queuedResponseResolvers)[0],F=y.queuedResponseResolvers[t];delete y.queuedResponseResolvers[t];F.resolve(muv(y,t))}}));
V=new _.UT;y.queuedResponseResolvers[W]=V;return w.return(V.promise)})},q3d=function(y,W,V){V=V===void 0?2:V;
var w;return _.g(function(t){w={credentials:"same-origin",priority:"low"};return t.return(_.Vj.fetch(W,w).then(function(F){return F.ok?F:Promise.reject(Error("tj`"+F.status+"`"+F.statusText))}).catch(function(F){if(V>0)return q3d(y,W,V-1);
throw F;}))})},MP3=function(y,W,V,w){_.g(function(t){return w?t.return(new Promise(function(F){_.Jt(_.HU,function(){var I,P;
return _.g(function(C){switch(C.nextAddress){case 1:if(!y.isNetworkFirstStrategy){I=void 0;C.jumpTo(2);break}return C.yield(w.match(W).catch(function(){}),3);
case 3:I=C.yieldResult;case 2:if(P=I){C.jumpTo(4);break}return C.yield(w.put(W,V.clone()).catch(function(d){DF({error:(d==null?0:d.toString)?d.toString():"",url:W})}),4);
case 4:F(),_.B7(C)}})},50)})):t.return()})};
SJ.prototype.getCacheStorageResponse=function(y,W){return _.g(function(V){return W?V.return(W.match(y).then(function(w){return w&&w.ok?w:Promise.reject()})):V.return(Promise.reject())})};
var cmj=function(y,W){W===void 0||y.getAttribute("viewBox")||y.setAttribute("viewBox","0 0 "+W+" "+W);y.setAttribute("focusable","false");y.setAttribute("aria-hidden","true");try{y.style.pointerEvents="none",y.style.display="inherit",y.style.width="100%",y.style.height="100%"}catch(t){var V;DF({error:((V=t)==null?0:V.toString)?t.toString():""});try{y.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(F){var w;DF({error:((w=F)==null?0:w.toString)?F.toString():
""})}}return y},ieu=function(y){for(var W=_.N(LC3),V=W.next();!V.done;V=W.next())if(y.startsWith(V.value)&&y.endsWith(".svg"))return!0;
return!1};
SJ.prototype.resolveIcon=function(y){return this.iconSet.resolveIcon(y)};
var DF=function(y){_.rQ(new _.Js("Error in IconManager",y))},e43=function(y){if(_.e("wil_icons_cache_purge_killswitch"))return!1;
try{var W=_.Vj.localStorage}catch(F){return!1}if(!W||!y.cacheStorageAvailable)return!1;var V=function(F){try{var I;(I=W)==null||I.setItem("yt-icons-last-purged",F.toString())}catch(C){var P;DF({error:((P=C)==null?0:P.toString)?C.toString():""})}},w=Number(W.getItem("yt-icons-last-purged"));
if(!w)return w=new Date,w=w.setDate(w.getDate()-Math.floor(Math.random()*90+1)),V(w),!1;if(function(F,I){F=new Date(F);I=new Date(I);return I.getMonth()-F.getMonth()+12*(I.getFullYear()-F.getFullYear())}(w,Date.now())<3)return!1;
try{return _.Vj.caches.delete("yt-icons").then(function(F){F&&V(Date.now());return F}).catch(function(){return!1}).finally(function(){y.isPurging=!1})}catch(F){var t;
DF({error:((t=F)==null?0:t.toString)?F.toString():""});return!1}};
SJ[cs]=[lJJ,_.L5,_.eX(s$J)];_.lc=function(y,W){this.iconManager=y;this.iconsToFetch=W};
_.lc[cs]=[_.lE,_.eX(kMi)];var Uuj=function(){};var ujt=function(y,W,V){this.requestKey=y;this.khc=W;this.pmG=V;this.eOY=function(){return new XMLHttpRequest};
this.zvu=void 0;this.cfL=[]};
ujt.prototype.getLatestChallengeResponse=function(){return this.pmG};
var tAs=function(y,W,V){var w,t,F,I;return _.g(function(P){if(P.nextAddress==1){_.X$("attestation_challenge_fetch");_.aw("att_fs",void 0,"attestation_challenge_fetch");if(!y.zvu)throw new _.Hg(9,"Missing fetcher");return P.yield(y.zvu(W,V),2)}w=P.yieldResult;F=(t=w)==null?void 0:t.bgChallenge;if(!F)throw new _.Hg(15,"Missing field");y.pmG=w;y.cfL.forEach(function(C){C(w)});
I=Q9G(F);_.aw("att_fc",void 0,"attestation_challenge_fetch");ngv("attestation_challenge_fetch");return P.return(I)})},MAi=function(y,W){var V,w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:V=new m1(100,3E5,.25,2),w=void 0;case 2:if(!(V.currBackoffCount_<10)){P.jumpTo(4);break}_.l7(P,5);if(!(V.currBackoffCount_>0)){P.jumpTo(7);break}return P.yield(y6y(V.getValue()),7);case 7:return P.yield(S3q(y,W),9);case 9:return t=P.yieldResult,P.return(t);case 5:F=_.YX(P);F instanceof _.Hg?w=F:(I=F instanceof Error?F.message:"Unknown",w=new _.Hg(9,I));dlz(V);P.jumpTo(2);break;case 4:if(w)throw w;throw new _.Hg(9,"Unknown error");}})},S3q=function(y,
W){W=X3f(aSi(new HzA,W),y.requestKey);
var V=new _.UT,w=y.eOY();w.open("POST",y.khc);w.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");w.setRequestHeader("Content-Type","application/json+protobuf");w.onload=function(){if(_.hzj(w)){var t=w1f(w.responseText);V.resolve(t)}else V.reject(new _.Hg(_.xVv(_.TJ(w)),w.statusText))};
w.onerror=function(){V.reject(new _.Hg(_.xVv(_.TJ(w)),w.statusText))};
w.send(W.serialize());return V.promise};var lqe=function(y){this.networkStatusManager=y;this.isDownloaded=Wpn===void 0?function(){return!1}:Wpn;
this.isReady=!1;this.wWF=Duj(this)},Duj=function(y){var W;
return _.g(function(V){if(V.nextAddress==1)return V.yield(dVL(),2);if(V.nextAddress!=3)return W=V.yieldResult,V.yield(z1q(W),3);y.yz=V.yieldResult;VuG(y.yz).then(function(){y.isReady=!0});
return V.return(y.yz)})},xuu=function(y,W,V){y.yz?(y=y.yz.oyl({nC:V,
a8u:!0,xt8:!0}),W.serviceIntegrityDimensions={poToken:y}):_.ap(Error("vj"))};
lqe.prototype.processContext=function(y){var W=this;if(!y.input.match(_.LO(tU6)))return _.O8();var V=y.innerTubeRequest,w=V.videoId;return!w||this.isDownloaded(V)||this.networkStatusManager&&!this.yz&&!this.networkStatusManager.isNetworkAvailable()?_.O8():this.yz?this.isReady?(xuu(this,V,w),_.O8()):new C3(VuG(this.yz).then(function(){xuu(W,V,w)})):new C3(this.wWF.then(function(t){return _.g(function(F){if(F.nextAddress==1)return F.yield(VuG(t),2);
xuu(W,V,w);_.B7(F)})}))};var kj4=new _.e9("WEB_PO_CONTEXT_PROCESSOR");var svE=function(y,W){var V=this;this.tYu=0;var w;this.k0H=(w=W==null?void 0:W.k0H)!=null?w:window;this.networkStatusManagerPromise=W==null?void 0:W.networkStatusManagerPromise;var t;this.requestKey=(t=W==null?void 0:W.requestKey)!=null?t:_.iC("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var F;this.y09=(F=W==null?void 0:W.y09)!=null?F:function(C){return new ZC(C)};
var I;w=(I=W==null?void 0:W.yyT)!=null?I:function(C,d,L){return new ujt(C,d,L)};
this.bgChallenge=Q9G(y.bgChallenge);this.ttlSeconds=ZZu(CV(y.challenge||""));this.jG=w(this.requestKey,_.e("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Vj.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",y);Wtu(this.jG);var P;this.wLO=(P=W==null?void 0:W.wLO)!=null?P:function(C){_.XZ(V.k0H.document,"visibilitychange",function(){V.k0H.document.visibilityState===
"visible"&&C()})}},Y3v=function(y){if(!y.vm){var W={maxAttempts:5,
zDP:y.ttlSeconds*1E3};wiP(y.k0H);y.vm=y.y09({jG:y.jG,szH:{disable:_.e("html5_web_po_disable_remote_logging"),xT:"aGIf",sfU:d8v("html5_web_po_experiment_ids"),uUx:_.e("wpo_dis_lfdms")?0:1E3,wLm:function(w){var t=VcI.get(w);t||(t=new Wsf(w),t=new uz(t),VcI.set(w,t));return t}},
yiO:W,naE:y.bgChallenge,nz3:tut});y.tYu=Date.now();Zzr(y.vm,function(){y.tYu=Date.now()});
env(y.vm,function(){return _.g(function(w){return w.return(Ame(y))})});
var V=y.j3q.bind(y);y.networkStatusManagerPromise&&y.ttlSeconds>0&&y.networkStatusManagerPromise.then(function(w){w.listen("publicytnetworkstatus-online",V)});
y.wLO(V)}};
svE.prototype.j3q=function(){if(Date.now()>this.tYu+this.ttlSeconds*1E3){var y;(y=this.vm)==null||QS2(y)}};
var Ame=function(y){if(y.hVL)return y.hVL;if(!y.vm)throw Error("wj");y.hVL=new wF({vm:y.vm,jG:y.jG,kq8:!0,onError:tut});return y.hVL},Elv=function(y,W){y=new svE(y,W);
Y3v(y);Ame(y)};var xT=function(y,W){this.store=y;this.queue=[];W==null||W.addEventListener("yt-navigate-start",this.reset.bind(this))};
xT.prototype.enqueue=function(y){var W=y.command,V=y.durationMs,w=y.elementToFocus;var t=y.label;var F=y.elementToFocus;y.command?t=_.u5("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:t,shortcut:_.u5("SHIFT_PLUS_ENTER")}):F&&(y=t+". "+_.u5("SHIFT_PLUS_ENTER")+" for more information.",t=_.u5("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:t,shortcut:_.u5("SHIFT_PLUS_ENTER")},y));V={announcement:t,durationMs:V!=null?V:8E3};W?V.command=W:w&&(w.classList.add("ephemeral-action-focusable-element"),V.selector=w.tagName+
".ephemeral-action-focusable-element");this.queue.push(V);BWu(this)};
xT.prototype.activate=function(y){var W=_.Lpj(this.store.getState());if(W){if(W==null?0:W.command)_.F2(W.command),this.store.dispatch(bsq(null));if(W==null?0:W.selector)W=document.querySelector(W.selector),_.xOv(W);y.preventDefault()}};
var BWu=function(y){if(!_.Lpj(y.store.getState())&&y.queue.length){var W=y.queue.shift();W&&(y.previousAnnouncement===W.announcement&&(W.announcement+="\u00a0"),y.store.dispatch(bsq(W)),y.previousAnnouncement=W.announcement,y.timeoutId=setTimeout(function(){if(W.selector){var V;(V=document.querySelector(W.selector))==null||V.classList.remove("ephemeral-action-focusable-element")}y.store.dispatch(bsq(null));BWu(y)},W.durationMs))}};
xT.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(bsq(null));this.queue.length=0;this.timeoutId=void 0};
xT[cs]=[_.w0,_.eX(_.jL)];_.kT=new _.e9("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Jmt=window.AbortController||zdQ;var R4u=new _.e9("AUTH_SERVICE_TOKEN");var glv=_.CF(["about:blank"]),Ivv;var s5=new _.e9("API_IFRAME_TOKEN"),jv4=new _.e9("FETCH_FN_TOKEN"),$uj=new _.e9("PARSE_FN_TOKEN"),nE3=new _.e9("WINDOW_REQUEST_TOKEN"),HeP=new _.e9("TEXT_DECODER_TOKEN");var FTq;FTq=new _.e9("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.XdE=new _.e9("MISC_UI_SHARED_FLAGS_TOKEN");var aqE=function(){};
aqE.prototype.getFlag=function(y){if(y.configType!==2)throw Error("xj");return Gjq(y)};
var Gjq=function(y){switch(y.flagType){case "bool":return _.e(y.flagName);case "int":return _.rm(_.pB(y.flagName));case "double":return _.pB(y.flagName);case "string":return _.iC(y.flagName);case "int32_list":return d8v(y.flagName);case "int64_list":return d8v(y.flagName).map(function(W){return _.rm(W)});
case "string_list":return _.fB(y.flagName);default:throw Error("yj");}};var A5=function(y,W,V){W=W===void 0?{}:W;by.call(this,V===void 0?"uninitialized":V);this.env=y;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}];W.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=W.shouldWaitOnAsyncImmediate)};
_.p(A5,by);A5.prototype.init=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(y(W.env),2):(y(W.env),w.jumpTo(2));if(w.nextAddress!=4)return W.jobSet?w.yield(W.jobSet.completedResolver.promise,4):w.jumpTo(4);V=_.FS();V.parkOrScheduleJob(function(){W.transition("rendering")},10,"ci");
_.B7(w)})};
A5.prototype.initialRender=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(y(W.env),2):(y(W.env),w.jumpTo(2));if(w.nextAddress!=4)return W.jobSet?w.yield(W.jobSet.completedResolver.promise,4):w.jumpTo(4);V=_.FS();V.parkOrScheduleJob(function(){W.transition("rendered")},10,"cr");
_.B7(w)})};
A5.prototype.afterRenderImmediate=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(y(W.env),2):(y(W.env),w.jumpTo(2));if(w.nextAddress!=4)return W.jobSet?w.yield(W.jobSet.completedResolver.promise,4):w.jumpTo(4);V=_.FS();V.parkOrScheduleJob(function(){W.transition("after-render-deferred")},10,"carml");
_.B7(w)})};
A5.prototype.afterRenderDeferred=function(y){var W=this;return _.g(function(V){y(W.env);_.B7(V)})};var rm4;_.Z7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});rm4={};_.beW=(rm4.CSI=zun(),rm4.ECATCHER=Ltz(),rm4);var Qvm={},Ze3=(Qvm.rendered={priority:0,callback:function(y){JLE(y.injector.resolve(Rp))}},Qvm);var gBu=new _.e9("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),y_W=new _.e9("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Whd=function(y){this.callbackFnMap=y;this.configMap={}};
Whd.prototype.handleResponse=function(y){var W;y=(W=y.responseContext)==null?void 0:W.serviceTrackingParams;W=_.N(y);for(y=W.next();!y.done;y=W.next()){y=y.value;var V=y.params,w=y.service;if(V&&w){this.configMap[w]||(this.configMap[w]=new UF6);y=this.configMap[w];var t=void 0,F=(t=this.callbackFnMap)==null?void 0:t[w];V=_.N(V);for(w=V.next();!w.done;w=V.next())t=w.value,w=t.key,t=t.value,w&&t&&(y.set(w,t),F&&F(w,t))}}};
Whd[cs]=[_.eX(y_W)];var VhP=!1,Ktn=0,c6y=null,olz=null;var wZv=new _.e9("NETWORK_SLI_TOKEN");var th4=function(y,W,V,w,t){this.networkSli=y;this.fetchFn=W;this.parseFn=V;this.requestFn=w;this.JSC$18312_textDecoder=t};
th4.prototype.fetch=function(y,W,V){var w=this,t,F,I;return _.g(function(P){t=Fhu(w,y,W);I=(F=w.fetchFn)!=null?F:fetch;return P.return(I(t).then(function(C){return w.handleResponse(C,V)}).catch(function(C){_.rQ(C);
if((V==null?0:V.expectJsonStrict)&&C instanceof BP&&C.errorType===1)return Promise.reject(C)}))})};
var F2z=function(y,W,V,w){var t,F,I,P,C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:return t=Fhu(y,W,V),_.l7(z,2),z.yield(fetch(t),4);case 4:F=z.yieldResult;_.E6(z,3);break;case 2:throw _.YX(z),new BP(2,"Failed to parse streaming response",t.url);case 3:if(!F.redirected&&!F.ok)throw(I=y.networkSli)==null||I.failure(),new _.Js("Streaming fetch request not ok",t.url);if(!F.body)throw new _.Js("No response body in streaming response",t.url);P={};if(_.e("web_streaming_fast"))return C=F.body.getReader(),
z.return(ERC(y,C,P,w));d=F.body.pipeThrough(new TextDecoderStream).getReader();L=new _.f8;return z.return(N3v(y,d,L,EOv,P,w))}})},Fhu=function(y,W,V){if(y.networkSli){var w=_.U1(_.vN(W,"key"))||"/UNKNOWN_PATH";
y.networkSli.start(w)}w=V;_.e("wug_networking_gzip_request")&&(w=MBz(V));var t;return new ((t=y.requestFn)!=null?t:window.Request)(W,w)},ERC=function(y,W,V,w){var t,F,I,P,C,d,L,z,c,K,f;
return _.g(function(U){switch(U.nextAddress){case 1:t=y.JSC$18312_textDecoder?new y.JSC$18312_textDecoder("utf-8"):new TextDecoder("utf-8"),F="",I=function(l){l=l.trim();l.length!==0&&l!=="]"&&l!=="["?(l.startsWith("[")&&(l=l.substring(1)),l.endsWith("]")&&(l=l.slice(0,-1)),l.endsWith(",")&&(l=l.slice(0,-1)),l=l.trim()):l=void 0;if(l)try{var x=JSON.parse(l);EOv(V,x);w==null||w(V,x)}catch(B){throw new BP(1,"Failed to parse streaming response",l);}},_.l7(U,2,3);
case 5:return U.yield(W.read(),8);case 8:P=U.yieldResult;C=P.value;if(d=P.done)return F.length>0&&I(F),L=void 0,(L=y.networkSli)==null||L.success(),U.return(V);F+=t.decode(C,{stream:!0});z=F.split("\n");F=z.pop()||"";c=_.N(z);for(K=c.next();!K.done;K=c.next())f=K.value,I(f);U.jumpTo(5);break;case 3:_.kX(U);W.releaseLock();_.AX(U,0);break;case 2:throw _.YX(U),new BP(1,"Failed to parse streaming response");}})},N3v=function(y,W,V,w,t,F){var I,P,C,d,L,z,c,K,f;
return _.g(function(U){if(U.nextAddress==1)return U.yield(W.read(),2);I=U.yieldResult;P=I.value;if(C=I.done)return(d=y.networkSli)==null||d.success(),U.return(t);try{L=V.parse(P)}catch(l){throw new BP(1,"Failed to parse streaming response",P);}if(L!=null)for(z=_.N(L),c=z.next();!c.done;c=z.next())K=c.value,w(t,K),f=void 0,(f=F)==null||f(t,K);return U.return(N3v(y,W,V,w,t,F))})};
th4.prototype.handleResponse=function(y,W){var V,w=(V=this.parseFn)!=null?V:JSON.parse;V=y.text().then(function(t){if((W==null?0:W.jspbResponseCtor)&&y.ok)return iuG(W.jspbResponseCtor,t);t=t.replace(")]}'","");if((W==null?0:W.expectJsonStrict)&&t)try{var F=w(t)}catch(P){throw new BP(1,"JSON parsing failed after fetch");}var I;return(I=F)!=null?I:w(t)});
y.redirected||y.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),V=V.then(function(t){_.rQ(new _.Js("Error: API fetch failed",y.status,y.url,t));return Object.assign({},t,{errorMetadata:{status:y.status}})}));
return V};
th4[cs]=[_.eX(wZv),_.eX(jv4),_.eX($uj),_.eX(nE3),_.eX(HeP)];var IfP=new _.e9("NETWORK_MANAGER_TOKEN");var gRj=[1,2,4,8,16,30],C_q=function(y){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=y.maxTimeMs;this.maxFrameCount=y.maxFrameCount===void 0?Math.ceil(60*y.maxTimeMs/1E3):y.maxFrameCount;y=_.N(gRj);for(var W=y.next();!W.done;W=y.next())this.brokenFrameSummarizers.push(new P_m(W.value/60*1E3))},OuW=function(y){var W=y.frameCountInternal>=y.maxFrameCount;
return y.elapsedTimeMs>=y.maxTimeMs||W},vR3=function(y){for(var W=[],V=_.N(y.brokenFrameSummarizers),w=V.next();!w.done;w=V.next())w=w.value,w=w.brokenFrameCount!==0?{severityMs:Math.round(w.targetFrameTimeMs),
eventCount:w.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(w.averageDurationBetweenEventsMs)}:void 0,w&&W.push(w);return{summaries:W,monitoringDurationMs:Math.round(y.elapsedTimeMs)}};
_.CM.Object.defineProperties(C_q.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 P_m=function(y){this.targetFrameTimeMs=y;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.CM.Object.defineProperties(P_m.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var d53=function(){};
d53.prototype.start=function(y,W){var V=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var w=new C_q({maxTimeMs:y});this.monitor=w;this.lastSummaryInternal=void 0;this.metadataToLog=W;return new Promise(function(t){var F=function(I){if(I===void 0)V.stop(),t(void 0);else if(V.monitor!==w)I=Object.assign({},vR3(w),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),t(I);else{var P=V.monitor;if(!OuW(P)){P.frameCountInternal++;if(P.prevTime===void 0)P.startTime=
I;else for(var C=I-P.prevTime,d=_.N(P.brokenFrameSummarizers),L=d.next();!L.done;L=d.next()){L=L.value;var z=L.currTimeMs;L.currTimeMs+=C;C>L.targetFrameTimeMs+2&&(L.brokenFrameCount++,L.timeOfFirstBrokenFrameMs===void 0&&(L.timeOfFirstBrokenFrameMs=z),L.timeOfLastBrokenFrameMs=z)}P.prevTime=I}OuW(V.monitor)?t(V.stop()):_.HU.addJob(F,5,0)}};
_.HU.addJob(F,5,0)})};
d53.prototype.stop=function(y){if(!this.monitor)return this.lastSummaryInternal;var W=Object.assign({},vR3(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(W.monitoringDurationMs){y=y!=null?y:this.metadataToLog;var V={droppedFramesSummary:W,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};y&&(V[y.type]=y.data);_.Hp("manualSmoothnessMeasurement",V)}this.monitor=void 0;this.lastSummaryInternal=W;this.metadataToLog=void 0;return W};_.Lhe=new _.e9("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var z1e;z1e=function(y){this.JSC$18335_expiringStorage=new jX(y)};
_.c_d=function(y){if(_.piy()&&(y=_.wEb(_.Y_()+"::"+y)))return new z1e(y)};
z1e.prototype.set=function(y,W,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$18335_expiringStorage.set(y,W,V)};
z1e.prototype.get=function(y){return this.JSC$18335_expiringStorage.get(y)};
z1e.prototype.remove=function(y){this.JSC$18335_expiringStorage.remove(y)};var e1v=new _.e9("SESSION_STORAGE");_.Bu=function(){};
_.Bu.getInstance=function(){var y=_.ts("ytglobal.storage_");y||(y=new _.Bu,_.dE("ytglobal.storage_",y));return y};
_.Bu.prototype.estimate=function(){var y,W,V;return _.g(function(w){y=navigator;return((W=y.storage)==null?0:W.estimate)?w.return(y.storage.estimate()):((V=y.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?w.return(iER()):w.return()})};
_.dE("ytglobal.storageClass_",_.Bu);var YDy=!!(e6[1]>>14&1);var uLP=0;var A6j=!1;var h1t=_.CF(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),oRe=_.CF(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var ide={"/":_.Ag,"/?feature=ytca":_.Ag,"/feed/downloads":_.NGz};var kU=function(y,W,V){this.JSC$18351_upliftPromise=y;this.store=W;this.JSC$18351_persistentStorePromiseAccessor=V};
kU.prototype.shouldPreferLocalResponse=function(y){return y.browseId==="FEdownloads"||y.browseId==="FEsmart_downloads"&&_.e("kevlar_modern_downloads_page")?!0:!1};
kU.prototype.localInnertubeResponse=function(y){var W=this;return _.g(function(V){return y.browseId==="FEdownloads"?_.e("kevlar_modern_downloads_page")?V.return(KhE(W)):V.return(pZ3(W)):y.browseId==="FEsmart_downloads"&&_.e("kevlar_modern_downloads_page")?V.return(iuj(W)):V.return(Promise.reject(Error("Aj")))})};
kU.prototype.canProvideFallbackResponse=function(){return!0};
kU.prototype.localFallbackInnertubeResponse=function(y){var W=this,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return F.yield(W.JSC$18351_persistentStorePromiseAccessor(),2);case 2:V=F.yieldResult;if(y.browseId!=="SPaccount_downloads"||!V){F.jumpTo(3);break}return F.yield(yuv(V),4);case 4:if(w=F.yieldResult)return F.return(_.KV(w));case 3:return y.browseId==="FEwhat_to_watch"?F.return(ffP(W)):(t=_.e("web_offline_continuation_automatic_retry")||_.e("web_offline_continuation_retry_button"))&&
y.continuation?F.return(T3j(W)):F.return(m5u(W))}})};
var ffP=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$18351_upliftPromise,2);W=_.PTn(y.store.getState().entities);return W.length?V.return(Mhv(y,W)):V.return(m5u(y))})},pZ3=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$18351_upliftPromise,2);if(w.nextAddress!=3)return W=qxj([{offlineItemSectionRenderer:{}}]),w.yield(U5d(y,W),3);V=w.yieldResult;V.onResponseReceivedActions=[Rt("REFRESH_DOWNLOADS")];return w.return(V)})},KhE=function(y){var W,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l;
return _.g(function(x){if(x.nextAddress==1)return x.yield(y.JSC$18351_upliftPromise,2);if(x.nextAddress!=3)return W=y.store.getState(),V=W.entities,w=_.HE(V),t=_.Xr(V),F=_.Jgz(W),I=_.Bzv(W),P=_.Rg4(W),C=_.v0t(V),d=_.BE(w),L=_.aB(V),z=_.cgv(V),c=_.$xv(W),K=_.ZH(W),f={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.pkv(w,t,C,z,F,I,d,L,P,c,K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},U=_.u5("DOWNLOADS",void 0,"Downloads"),
x.yield(uMd(y,f,U),3);l=x.yieldResult;l.onResponseReceivedActions=[Rt("REFRESH_DOWNLOADS")];return x.return(l)})},iuj=function(y){var W,V,w,t,F,I,P,C,d;
return _.g(function(L){if(L.nextAddress==1)return L.yield(y.JSC$18351_upliftPromise,2);if(L.nextAddress!=3)return W=y.store.getState(),V=W.entities,w=_.HE(V),t=_.BE(w),F=_.aB(V),I={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.flj(w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},P=_.u5("SMART_DOWNLOADS",void 0,"Smart downloads"),C=oHy(t,F),L.yield(uMd(y,I,P,C),3);d=L.yieldResult;d.onResponseReceivedActions=
[Rt("REFRESH_DOWNLOADS")];return L.return(d)})},m5u=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1)return w.yield(oD(y.JSC$18351_upliftPromise,y.store),2);W=w.yieldResult;V=qxj([rHv(W)]);return w.return(U5d(y,V))})},T3j=function(y){var W,V,w,t;
return _.g(function(F){if(F.nextAddress==1)return W={},V=y.store.getState().continuation.continuationCommand,_.Z8(W,_.EP,V),F.yield(oD(y.JSC$18351_upliftPromise,y.store,W,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);w=F.yieldResult;t={};_.Z8(t,_.sym,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:w}}}],targetId:"browse-feedFEwhat_to_watch"});return F.return({responseContext:{},onResponseReceivedActions:[t]})})},qxj=function(y){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:y}}}}]}}},Mhv=function(y,W){var V,w;
return _.g(function(t){var F={contents:jy(W)};V=F&&F.contents?F:{};_.e("kevlar_modern_downloads_page")&&(V=Object.assign({},_.TGv(W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:V}}}]}};return t.return(U5d(y,w))})},U5d=function(y,W){var V,w;
return _.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$18351_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return V=t.yieldResult,t.yield(pV(V),3);w=t.yieldResult;return t.return({responseContext:{},contents:W,topbar:w})})},uMd=function(y,W,V,w){var t,F;
return _.g(function(I){if(I.nextAddress==1)return I.yield(y.JSC$18351_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return t=I.yieldResult,I.yield(pV(t),3);F=I.yieldResult;var P=I.return;var C=w;C=C===void 0?"":C;C={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:V}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.u5("SETTINGS",void 0,"Settings"),accessibilityText:_.u5("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:eE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:C}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:V};
return P.call(I,{responseContext:{},contents:W,topbar:F,header:{pageHeaderRenderer:C}})})};var Sxu=function(){this.moduleRegistry={};this.fetchCount=0};
Sxu.prototype.isFetching=function(){return this.fetchCount>0};
var wK=function(y,W){y.moduleRegistry[W.toString()]={asyncId:W,isFetching:!1};return y};
Sxu.prototype.JSC$18362_loadModules=function(){for(var y=this,W=new Map,V=[],w=_.N(_.Ve.apply(0,arguments)),t=w.next();!t.done;t=w.next()){t=t.value;var F=this.moduleRegistry[t];F?F.resolver?W.set(t,F.resolver):(F.resolver=new _.UT,W.set(t,F.resolver),V.push(F.asyncId),F.isFetching=!0):(F=new _.UT,W.set(t,F),F.resolve(void 0))}V.length&&(this.fetchCount+=1,_.$s(_.mP.getMultipleAsync.apply(_.mP,_.GC(V)).then(function(I){for(var P=0;P<V.length;P++){var C=I[P],d=y.moduleRegistry[V[P].toString()];d.isFetching=
!1;d.resolver.resolve(C)}}).catch(function(I){for(var P=_.N(V),C=P.next();!C.done;C=P.next()){C=C.value;
var d=y.moduleRegistry[C.toString()];d.resolver=void 0;d.isFetching=!1;W.get(C.toString()).reject(I)}}),function(){--y.fetchCount}));
return Promise.all([].concat(_.GC(W.values())).map(function(I){return I.promise}))};_.td=new _.e9("MODULE_REGISTRY_TOKEN");var D5P={},lfE=(D5P.rendered={priority:0,callback:function(y){a:{var W=void 0;try{var V;b:{if(_.$dP()){var w=_.VEP(_.Y_()+"::pom");if(w){var t=new HP(w);break b}}t=void 0}var F=(V=t)==null?void 0:V.get("role_text");if(!F)break a;W={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:F}]}}}}}}catch(C){}W&&y.injector.resolve(_.oA).resolveCommand(W)}try{var I=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(I){var P=JSON.parse(I);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
P&&y.injector.resolve(_.oA).resolveCommand(P)}}catch(C){}}},D5P);var x5W,k3W={},sGm=(k3W.initialized={priority:10,callback:function(){x5W=nV()}},k3W.rendering={callback:function(y){var W;
return _.g(function(V){if(V.nextAddress==1)return V.yield(x5W,2);W=V.yieldResult;if(!W.endpoint)throw Error("Cj`"+_.Vj.location.href);GS(y,W);_.B7(V)})}},k3W);var A_W={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.GC(_.e("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(y){var W=y.stack;if(W.includes("chrome://")||W.includes("chrome-extension://")||y.message.includes("chrome-extension://")||W.includes("moz-extension://")||W.includes("local.adguard.org")||W.includes("auctioneer3.50million.club")||W.includes("youtubedownloader")||W.includes("youtube_home_page")||W.includes("is_youtube_video_no_longer_available")||
W.includes("switchScreenSizeHack")||W.includes("yt_main_big_banner.js")||W.includes("YouTubeCenter.js")||W.includes("/mytube.js")||W.includes("JSON.parseWrapper")||W.includes("/inj_js/common.js")||W.includes("firebug-lite")||W.includes(".repl.co/")||W.includes("linkfix")||W.includes("playAfterAd")||y.message.includes("Access is denied for this document")&&W.includes("<anonymous>")||y.fileName==="user-script"||y.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
W.includes("<anonymous>"))return!0;if(W.includes("https://www.youtube.com"))return!1;y=W.split("\n");if(!y.length)return!1;if(y.length<=3&&W.includes("s.onloadeddata"))return!0;W=0;for(var V=_.N(y),w=V.next();!w.done;w=V.next())w=w.value,(w.includes("https://")||w.includes("http://"))&&W++;return W/y.length>.95},
weight:0},{callback:function(y){return y.message==="Unknown Error"&&y.name.indexOf("NS_")===0},
weight:100},{callback:function(y){if(!_.mU)return!1;var W=y.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||y.message.includes("available to complete this operation"),V=y.stack.includes("webcomponents")&&y.message==="Object doesn't support this action";y=y.message.includes("object that does not implement interface Element");return W||V||y},
weight:0},{callback:function(y){return y.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(y){return y.message==="Operation is not supported"&&(y.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(y){return y.stack.includes("eval code (eval (code:1:1)")||y.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(y){return y.message.includes("Permission denied")&&y.stack.includes("this.domHandler")?!0:y.name.includes("TypeError")&&y.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(y){if(!y.stack)return!1;var W=y.stack.trim().split("\n");W.length&&W[0].endsWith("Error: "+y.message)&&W.shift();W.length&&W[W.length-1].includes("at window.onerror (")&&W.pop();if(!W.length)return!0;if(y.message==="Script error.")return W[0].includes("www.youtube.com")||W.length>=2&&W[0].startsWith("at new")&&W[1].startsWith("at window.onerror");if(y.message==="Unexpected token")return!0;y=_.N(W);for(W=y.next();!W.done;W=y.next())if(W=W.value,!(W.includes("<anonymous>")||
W.startsWith("load@")||W.startsWith("global code@")||W.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(y){return y.message==="Cannot read property 'experiments'"&&y.stack.includes("/s/player/")},
weight:500},{callback:function(y){return y.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(y){return y.stack.includes("/embed.js")?(y.params&&y.params&&(y.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.e("use_error_suppression"))var y=_.yC("SUPPRESS_CLIENT_ERRORS",!1);else{if(y=_.S6)y=/Chrome\/(\d+)/.exec(_.cy()),y=(y?parseFloat(y[1]):NaN)>=66;y=!(y||_.uP&&_.UX(65)||_.yi&&_.UX(12.1)||O6&&_.UX(79))}return y},
weight:500}]};var YxW={},B3t=(YxW.initialized={priority:10,callback:function(y){y.injector.addProvider({provide:Z0E,useValue:y.root});y.injector.addProvider({provide:dr4,useValue:Z5R});y.injector.addProvider({provide:Lft,useValue:A_W});var W={};y.injector.addProvider((W.provide=ziv,W.useFactory=function(V,w){return function(){dZt(V,w)}},W[cs]=[dr4,
Lft],W));y.injector.addProvider({provide:la,useClass:la})}},YxW);var J_E={},R1d=(J_E.initialized={priority:3,callback:function(){var y;if(y=G2t()){y=y.replace("/",".");var W=_.l5();W.set("tz",y);W.save();y=!0}else y=!1;y||(y=_.l5(),y.set("utco",-Math.floor((new Date).getTimezoneOffset())),y.save())}},J_E);var jGd={},$5W=(jGd.initialized={priority:10,callback:function(y){y.injector.resolve(la).start();y=_.I6();var W=_.W4("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.W4("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.W4("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.W4("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.S3(_.o$4(),{mainAppWeb:Object.assign({},y,{pageType:W})});_.S3(psu(),{mainAppWeb:Object.assign({},y,{pageType:W})});
_.S3(iob(),{mainAppWeb:y});_.S3(fgy(),{mainAppWeb:y});Zi2(function(){_.DE(iob(),"FAILURE");_.DE(fgy(),"FAILURE")});
yN4();WWu();lOb()}},jGd);var nRe={},Huj=(nRe.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.aw("dl"),_.FS().processSignal("pcl");else{var y=function(){_.aw("dl");_.FS().processSignal("pcl");window.removeEventListener("load",y)};
window.addEventListener("load",y)}}},nRe);var XZt={},afe=(XZt.rendering={priority:0,callback:function(){var y=_.FS();y.parkOrScheduleJob(function(){y.processSignal("eocs")},10,"eor",5E3)}},XZt);var G3v=function(){};
_.p(G3v,FN);
G3v.prototype.resolveCommand=function(y,W){var V,w,t,F,I,P,C,d;return _.g(function(L){t=(V=_.h(y,_.i8Q))==null?void 0:(w=V.dialog)==null?void 0:w.commentReplyDialogRenderer;if(!t)throw new _.Js("No dialog in createCommentReplyDialogEndpoint");I=(F=W.form)==null?void 0:F.event;if(!I)throw new _.Js("Event not passed in when resolving command");P=_.N(I.composedPath());for(C=P.next();!C.done;C=P.next())if(d=C.value,d.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||d.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return d.showReplyDialog(t),L.return();
_.B7(L)})};var J5=function(y){this.pageRequestService=y;this.JSC$18377_prefetchCoordinator=WfC()};
_.p(J5,FN);J5.prototype.resolveCommand=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1){V=_.h(y,wq2);if((w=V)==null||!w.taskId)throw Error("Dj");t=V.taskId;_.l7(I,2);return I.yield(_.y3m(W.pageRequestService,y,{},"").then(function(P){if(!P)throw Error("Ej");},function(P){throw Error("Fj`"+P);
}),4)}if(I.nextAddress!=2)return tQm(W.JSC$18377_prefetchCoordinator,t),_.E6(I,0);
F=_.YX(I);cu(W.JSC$18377_prefetchCoordinator,t,F);_.B7(I)})};
J5[cs]=[$U];var Rn=function(y){this.innertubeTransportService=y};
_.p(Rn,FN);Rn.prototype.resolveCommand=function(y){var W=this,V,w;return _.g(function(t){V=_.h(y,WZi);if(V.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||V.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")w=V.boolValue?2:1,_.en.getInstance().setState(w,!0,!0);return t.yield(_.OP(W.innertubeTransportService,y),0)})};
Rn[cs]=[_.QY];var jJ={},r_u=(jJ.addToPlaylistEndpoint=cE(HR),jJ.addToToastAction=cE(Xt),jJ.adsControlFlowOpportunityReceivedCommand=cE(Mz),jJ.captionLanguageSelectActionCommand=cE(EN),jJ.captionPickerEndpoint=cE(NL),jJ.changeMiniAppPlayStateCommand=cE(XP),jJ.changeTimelyActionVisibilityCommand=cE(Hx),jJ.channelCreationFormEndpoint=cE(BR),jJ.clearLocationCommand=cE(np),jJ.clearUrlParamCommand=cE(a3),jJ.copyLinkCommand=cE(ON),jJ.copyTextEndpoint=cE(uY),jJ.createCommentReplyDialogEndpoint=Tov(G3v),jJ.createPlaylistServiceEndpoint=
cE(vx),jJ.dismissDialogEndpoint=cE(rt),jJ.entityUpdateCommand=cE(Dw),jJ.feedbackEndpoint=cE(ka),jJ.getAnswerCommand=cE(gPt),jJ.getPaymentsClientTokenCommand=cE(rH),jJ.getTranscriptEndpoint=cE(ao),jJ.googlePaymentBillingCommand=cE(br),jJ.googlePaymentPurchaseManagerCommand=cE(Q0),jJ.hideEngagementPanelEndpoint=cE(bY),jJ.hideSnackbarCommand=cE(YQ),jJ.insertRichSectionCommand=cE(R3),jJ.listMutationCommand=cE(jG),jJ.logGtmCommand=cE(Jy),jJ.notifyDropdownOptionSelectedCommand=cE(Gv),jJ.openAdAllowlistInstructionCommand=
cE(_.qz),jJ.openOnePickAddVideoModalCommand=cE(dH),jJ.persistSubscriptionsDisplayPreferencesCommand=cE(oo),jJ.pingingEndpoint=cE(UG),jJ.playlistEditEndpoint=cE(zN),jJ.playlistVotingRefreshPopupCommand=cE(cx),jJ.refreshPanelEndpoint=cE(Qz),jJ.saveImageToDeviceEndpoint=cE(SG),jJ.scrollToSectionEndpoint=Tov(Pnq),jJ.seekToVideoTimestampCommand=cE(Io),jJ.selectCountryCommand=cE(KW),jJ.setCookieCommand=cE(pW),jJ.setLocalStorageCommand=cE(Jp),jJ.setPrefStorageEntryCommand=cE(fW),jJ.setSettingEndpoint=cE(Rn),
jJ.sfvAudioItemPlaybackCommand=cE(gH),jJ.shareImageCommand=cE(TN),jJ.sharingProviderDataCommand=cE(m2),jJ.showCaptionLanguageSelectActionCommand=cE(Px),jJ.showDialogCommand=cE(Wx),jJ.showEngagementPanelEndpoint=cE(V0),jJ.showSheetCommand=cE(wH),jJ.showSnackbarCommand=cE(Bx),jJ.showTransientPlayerScrimOverlayCommand=cE(CW),jJ.submitFormWithValidationFlowCommand=cE(Ya),jJ.talkToRecsDeselectCommand=cE(Ro),jJ.talkToRecsNextCommand=cE(je),jJ.talkToRecsSelectCommand=cE($Q),jJ.talkToRecsUpdateTextCommand=
cE(nW),jJ.toggleEngagementPanelCommand=cE(tp),jJ.undoFeedbackEndpoint=cE(Ay),jJ.updateEngagementPanelContentCommand=cE(Ft),jJ.updateUrlParamCommand=cE(GN),jJ.verifyCommand=cE(BR),jJ.webNativeShareCommand=cE(ML),jJ.webSubmitFormCommand=cE(ee),jJ.ACK_PLAYABLES_3P_DATA_CONSENT=cE(qL),jJ.CANCEL_NAVIGATION=cE(UN),jJ.COPY_SHARE_URL=cE(ur),jJ.MINI_APP_EXIT_DIALOG_SEEN=cE(DV),jJ.MINI_APP_OPEN_URL=cE(Se),jJ.REQUEST_MINI_APP_FULLSCREEN=cE(lr),jJ.RESUME_NAVIGATION=cE(xQ),jJ.SHARE_PLAYABLE_WITH_HIGH_SCORE=cE(kQ),
jJ.TELL_US_WHY=cE(sG),jJ);_.e("web_enable_prefetching_videos_on_home")&&(r_u.prefetchWatchCommand=cE(J5),r_u.registerTasksCommand=cE(h5));_.e("enable_share_panel_navigation_logging_fix_on_web")&&(r_u.shareEntityServiceEndpoint=cE(Zw));var Ius=Object.assign({},r_u);var buu={},QGd=(buu.initialized={priority:10,callback:Exv},buu);var Zue={},yX4=(Zue.initialized={callback:function(y){var W={},V={};y5d().install((W.document_disposed={callback:function(){_.e("finalize_all_timelines")?Hjv():$F();euP("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Ccv();var w=y.injector.resolve(la);w.intervalId!==void 0&&(w.intervalId&&_.HU.cancelJob(w.intervalId),w.intervalId=void 0,--w.currentPartitionIndex,w=J5R(w),w>0&&G56({mainAppWeb:_.I6(),survivalSli:{partitionMinute:w,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));B0K(gz);Ph!=null&&
Ph.flush();fO&&fO.snapshotAndFlush();w=_.N(VcI.values());for(var t=w.next();!t.done;t=w.next())t.value.snapshotAndFlush()}},W),(V.flush_logs={callback:function(){_.Xk()}},V))}},Zue);var WXj={},Vme=(WXj.rendered={priority:0,callback:function(){var y=new AG6;y.increment("STARTED");if(_.yC("LOGGED_IN")&&_.yC("SERVER_VERSION")!=="test"&&_.yC("SERVER_VERSION")!=="dev"&&!dri()&&!vJs()){y.increment("EXECUTING");var W=document.createElement("iframe");W.style.display="none";_.$5u(W,2,_.ye("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.yC("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(W);y.increment("DONE")}}},WXj);var w7W={},tm4=(w7W.rendered={callback:function(){WfC().resume()}},w7W);var FXE={acknowledgeChannelTouStrikeCommand:Rc(M7),addToPlaylistServiceEndpoint:Rc(SC),addToPlaylistEndpoint:Rc(SC),addUpcomingEventReminderEndpoint:Rc(j_),browseEndpoint:Rc(Avu),channelCreationFormEndpoint:Rc(oT),channelCreationServiceEndpoint:Rc(KY),claimLegacyYoutubeChannelEndpoint:Rc(N7),clearSearchHistoryEndpoint:Rc(xN),clearWatchHistoryEndpoint:Rc(kN),commerceActionCommand:jW(ZM),createBackstagePostEndpoint:Rc(W2),createBroadcastCommand:Rc($N),createCommentEndpoint:Rc(zx),createCommentReplyEndpoint:Rc(LY),
createLiveChatPollEndpoint:Rc(nY),createPlaylistServiceEndpoint:Rc(DM),crossAccountChannelTransferEndpoint:Rc(YN),deleteLiveChatMessageCommand:Rc(H2),deletePlaylistEndpoint:Rc(lo),deleteVideoEndpoint:Rc(GZ),dismissalEndpoint:Rc(q7),feedbackEndpoint:Rc(Uo),flagEndpoint:Rc(BH),getAccountSwitcherEndpoint:Rc(AI),verifyCommand:Rc(yU),getAccountsListInnertubeEndpoint:Rc(JI),getCommentsFromInboxCommand:Rc(dh),getDownloadActionCommand:Rc(KI),getFlowCommand:jW(l9),getKidsBlocklistPickerCommand:Rc(JF),getNotificationMenuEndpoint:Rc(Jvd),
getPaymentInstrumentsParamsCommand:Rc(Fs),getPaymentsClientTokenCommand:jW(ZM),getPdgBuyFlowCommand:Rc(UI),getReportFormEndpoint:Rc(Re),getSearchInVideoCommand:Rc(nI),getAnswerCommand:Rc($O),getSurveyCommand:Rc(ae),getTranscriptEndpoint:Rc(bo),getPostVideoPreviewEndpoint:Rc(wC),decorateMessageEndpoint:Rc(VU),likeEndpoint:Rc(pY),liveChatActionEndpoint:Rc(wh),liveChatEndpoint:Rc(Gx),liveChatItemContextMenuEndpoint:Rc(Xa),liveChatPurchaseMessageEndpoint:Rc(tF),liveChatReplayEndpoint:Rc(aT),manageLiveChatUserEndpoint:Rc(EI),
metadataUpdateCommand:Rc(OI),moderateLiveChatEndpoint:Rc(N3),modifyChannelNotificationPreferenceEndpoint:Rc(eC),notificationOptOutEndpoint:Rc(hF),openSuperStickerBuyFlowCommand:Rc(FK),performCommentActionEndpoint:Rc(Oo),playlistEditEndpoint:Rc(kO),playlistEditorEndpoint:Rc(xO),profileCardCommand:Rc(RT),recordNotificationInteractionsEndpoint:Rc(oe),reelWatchEndpoint:Rc(sI),refreshPanelEndpoint:Rc(io),removeUpcomingEventReminderEndpoint:Rc(Ie),resolveLocationCommand:Rc(CI),revealBusinessEmailCommand:Rc(IT),
searchEndpoint:Rc(_.Rbt),sendLiveChatMessageEndpoint:Rc(gh),sendLiveChatVoteEndpoint:Rc(PH),setSettingEndpoint:Rc(i9),shareEntityServiceEndpoint:jW(m8),sharingProviderDataCommand:Rc(XK),showEngagementPanelEndpoint:Rc(fI),showMoreDrawerCommand:Rc(mY),showSheetCommand:Rc(M3),showDialogCommand:Rc(TZ),subscribeEndpoint:Rc(fY),transcriptSubmitCaptionCorrectionCommand:Rc(rh),undoFeedbackEndpoint:Rc(S_),unsubscribeEndpoint:Rc(Tx),updateBackstagePostEndpoint:Rc(Fa),updateCommentEndpoint:Rc(e_),updateCommentReplyEndpoint:Rc(c2),
updateCommentsSettingsEndpoint:Rc(hI),updateCreatorChannelInnertubeCommand:Rc(P2),updateKidsBlacklistEndpoint:Rc(jC),updateEngagementPanelContentCommand:Rc(q3),updatePdgFeatureEnablementCommand:Rc(uo),updatedMetadataEndpoint:Rc(vH),validateChannelHandleCommand:Rc(CY),updateChannelPageSettingsEndpoint:Rc(gC),verifyAgeEndpoint:Rc(Dn),watchEndpoint:jW(xK),whitelistEditEndpoint:Rc(Qb),ypcCancelRecurrenceEndpoint:Rc(ys),ypcCompleteTransactionEndpoint:Rc(Wu),ypcFixInstrumentEndpoint:Rc(wM),ypcGetCartEndpoint:Rc(Vs),
ypcGetOffersEndpoint:Rc(t5),ypcHandleTransactionEndpoint:jW(E5),ypcLogWalletAnalyticDataEndpoint:Rc(NQ),ypcOffersEndpoint:Rc(In),ypcPauseSubscriptionCommand:Rc(gM),ypcRedeemCodeEndpoint:Rc(Pu),ypcResumeSubscriptionCommand:Rc(C0),ypcUpdateFopEndpoint:Rc(wM)},$T={},EXj=($T.GET_ACCOUNT_MENU=Rc(B2),$T.GET_NOTIFICATIONS_MENU=Rc(Buu),$T.GET_NOTIFICATIONS_INBOX=Rc(LI),$T.GET_UNSEEN_NOTIFICATION_COUNT=Rc(cH),$T.GET_USER_MENTION_SUGGESTIONS=Rc(tI),$T.LOAD_GUIDE=Rc(Yzu),$T.SUBMIT_FEEDBACK=Rc(u9),$T),n0={},
N$3=(n0.CONTINUATION_REQUEST_TYPE_BROWSE=Rc(Eo),n0.CONTINUATION_REQUEST_TYPE_SEARCH=Rc(HH),n0.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Rc(sA),n0.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Rc(so),n0.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Rc(dC),n0.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Rc(v2),n0.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Rc(YO),n0.CONTINUATION_REQUEST_TYPE_GET_PANEL=Rc(pI),n0),IBu={player:jW(xK),watchNext:Rc(kK)},gXP={player:jW(xK),reelItemWatch:Rc(sI),reelWatchSequence:Rc(AF)},
P73={watchEndpoint:jW(AS)},C74={commandEndpointMap:FXE,signalEndpointMap:EXj,continuationEndpointMap:N$3,watchEndpointMap:IBu,reelWatchEndpointMap:gXP,streamingEndpointMap:P73};var OJE,vXu,dld,LXW={disableAllTransitions:(vXu=(OJE=window).matchMedia)==null?void 0:(dld=vXu.call(OJE,"(prefers-reduced-motion: reduce)"))==null?void 0:dld.matches,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}}]])};_.Hu=new _.e9("VIEW_TRANSITION_MANAGER_TOKEN");var z8E=function(y){this.viewTransitionCoordinator=y;this.isBrowseTransitionEnabled=_.iC("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.e("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.e("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
z8E.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var y={};this.viewTransitionCoordinator.registerElement(document.documentElement,(y.slide="root-slide",y["lockup-to-watch"]="root-lockup-to-watch",y["learning-journey"]="root-learning-journey",y))}};
z8E[cs]=[FCu];var Nrv={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 gxd=["videoPrimaryInfoRenderer","title"],P1n=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var cXv;cXv=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.e83=_.eY(function(y){y=_.zb(y,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var W=y.data,V=y.playlistData,w=y.expanded,t=y.onExpandClick,F=y.isReadyToResume,I=function(){var L;return!((L=V())==null||!L.contents)},P=function(){var L=V();
return L&&L.totalVideos&&L.currentIndex!==void 0?L.currentIndex+1+" / "+L.totalVideos:""};
y=_.YS(function(){_.Xs(_.hs().resolve(_.VH));return!1});
var C=_.YS(function(){I()&&t&&t()}),d={};
return _.O("ytd-miniplayer-info-bar",{class:_.kS("ytdMiniplayerInfoBarHost",(d.ytdMiniplayerInfoBarHasPlaylistData=I,d)),"on:click":C},_.O("div",{class:"ytdMiniplayerInfoBarContent"},_.O("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":y},_.O(_.Lv,{text:function(){var L=W();var z=V();if(z==null?0:z.contents){var c;L=(c=_.Rj4(z))==null?void 0:c.title}else L=L==null?void 0:L.miniplayerTitle;return OxG(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.O("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.O(_.v,{cond:F,then:function(){return _.O(bkA,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:cXv})}}),_.O("h1",null,_.O(_.Lv,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var L=W();var z=V();L=F()?{simpleText:_.u5("CONTINUE_WATCHING",void 0,"Continue watching")}:(z==null?0:z.contents)?z.titleText:L==null?void 0:L.miniplayerSubtitle;return OxG(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.O(_.v,{cond:function(){return!!P()&&!F()},
then:function(){return _.O("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.O("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.O("span",null,P))}}))),_.O(_.v,{cond:I,
then:function(){return _.O("div",{class:"ytdMiniplayerInfoBarExpand"},_.O(zr,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(L){t&&(t(),L.stopPropagation())}}},
iconName:function(){return w()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var h84;h84=_.eY(function(y){return _.O("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.O(zr,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:y.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.oXj=_.eY(function(y){y=_.zb(y,{playabilityStatus:void 0,isDisabled:!1});var W=y.size,V=y.playabilityStatus,w=y.isDisabled,t=_.I0("div");y=_.N(_.M1(void 0,void 0,"bJr0Se"));var F=y.next().value,I=y.next().value;y=_.tn(_.Sy);var P=!1,C=function(){return W().height<=0};
_.H1(function(){var c=W(),K=C(),f=F();f&&!K&&f.setInternalSize(c.width,c.height)},"OUOyKb");
_.HV(function(){var c,K,f;return _.g(function(U){if(U.nextAddress==1){c=_.hs().resolve(_.VH);K=c.getPlayerElement();if(!c.isMiniplayerActive()||!K||!t.value)return U.return();K.appendTo(t.value);return U.yield(K.getPlayerPromise(),2)}f=U.yieldResult;f.setSizeStyle(!1,!0);I(f);_.B7(U)})});
_.XT(function(){d()});
_.H1(function(){var c=F();if(c)if(w()){var K=c.getPlayerState();(P=K===-1||K===1||K===3)&&c.pauseVideo()}else d()},"KKHe5");
var d=function(){if(P){P=!1;var c;(c=F())==null||c.playVideo()}},L=_.YS(function(){_.Xs(_.hs().resolve(_.VH))}),z={};
return _.O("ytd-miniplayer-player-container",{class:_.kS("ytdMiniplayerPlayerContainerHost",(z.ytdMiniplayerPlayerContainerHidden=C,z.ytdMiniplayerPlayerContainerHostShortsPip=y,z)),style:_.Rd({width:function(){return W().width+"px"},
height:function(){return W().height+"px"}})},_.O("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:t}),_.O(_.v,{cond:function(){return!!V()&&!_.jOv(V())},
then:function(){return _.O(Qmi,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var c;return((c=V())==null?void 0:c.errorScreen)||null},
status:function(){var c;return((c=V())==null?void 0:c.status)||null}})}}),_.O(_.v,{cond:w,
then:function(){return _.O("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":L},_.O(h84,{onTap:function(){_.hs().resolve(_.VH).close()}}))}}))},"Je");_.KXd=_.eY(function(y){var W=y.toastData;var V=_.I0("ytd-miniplayer-toast");y=_.N(_.Jl(function(){return!!W()}));
var w=y.next().value,t=y.next().value;y=_.N(_.M1(!1,void 0,"xkrBze"));var F=y.next().value,I=y.next().value,P=function(){var L;return _.OT((L=W())==null?void 0:L.data.title)};
_.a8(function(){_.Ff.requestAvailability();W()&&t(!1)});
var C,d;_.H1(function(){w()&&(_.h1(V.value,"iron-announce",{text:W().label+" "+P()}),C&&_.HU.cancelJob(C),C=_.HU.addLowPriorityJob(function(){I(!0)},2500))},"OTdL1e");
_.H1(function(){F()&&(d&&_.HU.cancelJob(d),d=_.HU.addLowPriorityJob(function(){t(!1);I(!1)},300))},"yybqib");
y={};return _.O("ytd-miniplayer-toast",{el:V,class:_.kS("ytdMiniplayerToastHost",(y.ytdMiniplayerToastOpening=function(){return w()},y.ytdMiniplayerToastClosing=function(){return F()},y))},_.O(_.v,{cond:function(){var L;
return(L=W())==null?void 0:L.data},
then:function(L){return _.O(FDR,{className:"ytdMiniplayerToastThumbnail",data:L,width:78})}}),_.O("div",{class:"ytdMiniplayerToastInfo"},_.O("div",{class:"ytdMiniplayerToastLabel"},function(){var L;
return(L=W())==null?void 0:L.label}),_.O("div",{class:"ytdMiniplayerToastTitle"},P)))},"Ke");var pcu;var Trz=null;var iJv=_.eY(function(y){var W=y.progressState;var V=y.multiMarkersPlayerBarRenderer;var w=y.progressBarWidth;var t=function(){return U6R(V())},F=function(){return D6n(W())},I=function(){return w()*(W().playedTime/W().videoDuration)};
return _.O("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.O(_.YV,{each:t},function(P,C){return _.O(p7E,{modifiedProps:F,chapters:t,index:C,playedProgressWidth:I,backgroundGradientPosition:function(){var d=F(),L=t(),z=C(),c=I();return(d.playedTime-yH(_.h(L[z],ZE)))/d.playedTime*c}})}))},"Le"),p7E=_.eY(function(y){var W=y.modifiedProps;
var V=y.chapters;var w=y.index;var t=y.playedProgressWidth;var F=y.backgroundGradientPosition;y={};y=_.kS("ytChapteredProgressBarChapteredPlayerBarChapter",(y.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return I().isScrubbing},y.ytChapteredProgressBarHoveredMacroMarker=function(){return I().scrubberHovering},y.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return I().videoPosition==="seen"},y));
var I=function(){return lDn(W(),V(),w())},P=function(){var C=W();
var d=V(),L=w();if(lDn(C,d,L).videoPosition!=="active")C=0;else{var z=yH(_.h(d[L],ZE));C=(C.playedTime-z)/((yH(_.h(d[L+1],ZE))||C.videoDuration)-z)}return C};
return _.O("div",{class:y,style:_.Rd({width:function(){var C=W(),d=V(),L=w(),z=_.h(d[L],ZE);d=_.h(d[L+1],ZE);return(d?yH(d)-yH(z):C.videoDuration-yH(z))/C.videoDuration*100+"%"},
"background-color":function(){a:{var C=I();switch(C.videoPosition){case "pending":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":C=C.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:C=""}}return C},
"background-size":function(){return(x6z(I())?t():"")+"px"},
"background-position-x":function(){return(x6z(I())?F():"")+"px"}})},_.O("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var C=W(),d=V(),L=w();if(lDn(C,d,L).videoPosition==="seen")var z=0;else z=yH(_.h(d[L],ZE)),d=yH(_.h(d[L+1],ZE))||C.videoDuration,C=C.videoDuration*C.percentLoaded,z=d<=C?1:z>=C?0:(C-z)/(d-z);return"width: "+z*100+"%"}}),_.O("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Rd({width:function(){return P()*100+"%"},
"background-size":function(){return(x6z(I(),P())?t():"")+"px"},
"background-position-x":function(){return(x6z(I(),P())?F():"")+"px"}})}))},"Me");var fBP=function(y,W){W=W===void 0?NpK:W;var V,w=[],t,F=!1;return function(){var I=_.Ve.apply(0,arguments);if(F&&V===this&&W(I,w))return t;t=y.apply(this,I);F=!0;V=this;w=I;return t}}(function(y){var W=y.heatMarkers,V=y.minHeightDp===void 0?0:y.minHeightDp,w=y.maxHeightDp===void 0?60:y.maxHeightDp;
var t=t===void 0?!1:t;var F=1E3/W.length;y=[];y.push({x:0,y:100});for(var I=0;I<W.length;I++){var P=void 0,C=((P=_.h(W[I],FKs))==null?void 0:P.heatMarkerIntensityScoreNormalized)||0;P=(I+.5)*F;C=100-_.QW(C*100,V/321*100,w/321*100);I!==0||t||y.push({x:0,y:C});y.push({x:P,y:C});I===W.length-1&&y.push({x:1E3,y:C})}y.push({x:1E3,y:100});W="";for(V=0;V<y.length;V++)t=y[V],V===0?t="M "+t.x.toFixed(1)+","+t.y.toFixed(1):(w=Jun(y[V-1],y[V-2],t),F=Jun(t,y[V-1],y[V+1],!0),t=" C "+(w.x.toFixed(1)+","+w.y.toFixed(1)+
" "+F.x.toFixed(1)+","+F.y.toFixed(1)+" "+t.x.toFixed(1)+","+t.y.toFixed(1))),W+=t;return W});var T$j=_.eY(function(y){var W=y.progressBarProps;var V=y.config;var w={};y=_.kS("ytHeatSeekerHost",(w.ytHeatSeekerHighContrast=y.highContrast,w));var t=function(){return cNG(V().chapterData)};
return _.O("yt-progress-bar-heatseeker",{class:y,style:function(){var F;return"height: 320px; display: "+(W().isDragging&&((F=t())==null?0:F.heatMarkers)?"block":"none")}},_.O(_.v,{cond:t,
then:function(F){return _.O(_.v,{cond:function(){return F().heatMarkers},
then:function(){return _.O("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.O("path",{d:function(){return fBP(F())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var mlu=_.eY(function(y){var W=y.progressBarProps;var V=y.config;y={};y=_.kS("ytProgressBarLineProgressBarLine",(y.ytProgressBarLineProgressBarLineRounded=function(){return V().rounded},y.ytProgressBarLineProgressBarLineBottomInset=function(){return V().position===2},y));
return _.O("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.O("div",{class:y},_.O("div",{class:"ytProgressBarLineProgressBarBackground"}),_.O("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+W().percentLoaded*100+"%"}}),_.O("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var w=W();return"width: "+(w.videoDuration?_.QW(w.hoveredTime/w.videoDuration,0,1):0)*100+"%"}}),_.O("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+d6u(W())*100+"%"}})))},"Oe");
mlu.idomCompat=!0;var Mmv=_.eY(function(y){var W=y.progressBarProps;var V=y.playheadData;var w=y.interpolateDotPosition;var t=y.hidePlayhead;y={};var F=_.kS("ytProgressBarPlayheadProgressBarPlayheadDot",(y.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return W().isDragging},y.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!W().isDragging&&t()},y));
return _.O("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Rd({"margin-left":function(){return LWP(W())*100+"%"},
transform:function(){return"translateX(-"+(w()?LWP(W())*12:6)+"px)"}})},_.O(_.v,{cond:function(){var I;
return(I=_.LD(V)())==null?void 0:I.playheadImage},
then:function(I){var P={};return _.O("div",{class:_.kS("ytProgressBarPlayheadProgressBarPlayheadCustom",(P.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return W().isDragging},P.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!W().isDragging&&t()},P)),
style:_.Rd({"transform-origin":function(){return(w()?LWP(W())*20:10)+"px center"}})},_.O(_.ca,{data:I,
alt:"","aria-hidden":"true"}))},
else:function(){return _.O("div",{class:F,style:_.Rd({"transform-origin":function(){return(w()?LWP(W())*12:6)+"px center"}})})}}))},"Pe");
Mmv.idomCompat=!0;var an=function(y,W,V,w,t,F){this.getProgressBarRect=y;this.updateProgressBarRect=W;this.getFilmstripYPosition=V;this.setFineScrubbingDraggedTime=w;this.updateFilmStripDraggedYDistance=t;this.resetFilmStripYOffset=F;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.d7(this.onThrottledSeek,100,this)},qcP=function(y,W,V){return function(w){y.handleClick(w,W(),V())}},Sce=function(y,W){return function(V){Ulv(y,
V,uyu(V),W())}},DlP=function(y,W){return function(V){Ulv(y,V,{x:V.clientX,
y:V.clientY},W())}},xl4=function(y,W,V){return function(w){var t=W(),F=V();
lBW(y,w,uyu(w),t,F,!0);if(F.onTouchMove)F.onTouchMove(t)}},shd=function(y,W,V){return function(w){kCt(y,w,W(),V())}},AXt=function(y,W){return function(){y.handleMouseLeave(W())}},Ycq=function(y,W,V){return function(){var w=W(),t=V();
Gl(y,w,t);if(t.onTouchEnd)t.onTouchEnd(w)}},B$t=function(y,W,V){return function(){var w=W(),t=V();
Gl(y,w,t);if(t.onTouchEnd)t.onTouchEnd(w)}},JXC=function(y,W,V){return function(){Gl(y,W(),V())}},R8v=function(y){return function(W){if(W.keyCode===39||W.keyCode===38){var V,w;
(V=y())==null||(w=V.playerApi)==null||w.seekBy(5,void 0,void 0,72)}else if(W.keyCode===37||W.keyCode===40){var t,F;(t=y())==null||(F=t.playerApi)==null||F.seekBy(-5,void 0,void 0,71)}}},jh4=function(y,W,V){return function(w){!V().disableScrubbing&&y.startPosition&&kCt(y,w,W(),V())}},$lu=function(y,W,V){return function(){if(!V().disableScrubbing)if(y.startPosition){var w=W(),t=V();
Gl(y,W(),V());if(t.onTouchEnd)t.onTouchEnd(w)}else W().setState({isDragging:!1})}},uyu=function(y){y=y.touches[0];
return{x:y.clientX,y:y.clientY}},kCt=function(y,W,V,w){if(W.buttons!==1){if(W.movementX||W.movementY)W.preventDefault(),W.stopPropagation(),y=nXv(y,V,W.clientX),V.setState({isHovering:!0,
hoveredTime:y*V.videoDuration})}else HJd(V),lBW(y,W,{x:W.clientX,y:W.clientY},V,w,!1)};
an.prototype.handleMouseLeave=function(y){HJd(y)};
var HJd=function(y){y.isHovering&&y.setState({isHovering:!1,hoveredTime:0})},Ulv=function(y,W,V,w){y.startPosition||(y.startPosition=V,y.updateProgressBarRect(),y.controlsWereVisibleBeforeDragging=w.controlsVisible,W.stopPropagation(),_.e("medium_progress_bar_modification")||W.preventDefault())},lBW=function(y,W,V,w,t,F){if(y.startPosition)if(F&&t.isInlinePlayback&&y.startPosition&&!y.hasDraggedTheMinimumDistance&&Math.abs(V.y-y.startPosition.y)>Math.abs(V.x-y.startPosition.x))Gl(y,w,t);
else if(W.preventDefault(),W.stopPropagation(),w.videoDuration&&(y.startPosition&&!y.hasDraggedTheMinimumDistance&&(y.hasDraggedTheMinimumDistance=Math.abs(V.x-y.startPosition.x)>=1),t.enableFineScrubbing&&(y.startPosition&&(y.isDraggedForFineScrubbing=-(V.y-y.startPosition.y)>=60),!y.startPosition||V.y>=y.startPosition.y||(w.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:kKn(w.draggedTime,w,t.chapterData)}),y.setFineScrubbingDraggedTime(w.draggedTime),y.updateFilmStripDraggedYDistance(y.startPosition.y,
V.y,w))),y.hasDraggedTheMinimumDistance)){W=nXv(y,w,V.x);if(y.isDraggedForFineScrubbing){var I;(I=w.playerApi)==null||I.pauseVideo();w.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:w.draggedTime,filmStripXDistance:kKn(W*w.videoDuration,w,t.chapterData)})}t.enableFineScrubbing&&(!t.enableFineScrubbing||y.getFilmstripYPosition(w)<68)||w.setState({draggedTime:W*w.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:y.controlsWereVisibleBeforeDragging});var P;(P=
t.cancelAutohideControlsFn)==null||P.call(t)}},Gl=function(y,W,V){var w=V.enableFineScrubbing&&W.fineScrubbingActiveState!=="off";
if(W.isDragging||w){w={isDragging:!1,playedTime:W.draggedTime,controlsVisible:y.controlsWereVisibleBeforeDragging};V.enableFineScrubbing&&W.fineScrubbingActiveState!=="on"&&(y.resetFilmStripYOffset(),w.fineScrubbingActiveState="off");var t=t===void 0?Trz:t;var F=_.Xn(0);if(F&&t){var I=Math.round(W.playedTime*1E3),P=Math.round(W.draggedTime*1E3);I>2147483647||P>2147483647||_.vE(F,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(I),endMediaTimeMs:String(P),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}W.setState(w);
y.seekThrottle.fire(W.draggedTime,W,7);_.e("mweb_new_progress_bar_play_on_seek")&&y.resumeVideo(W);V.unmuteOnSeek&&(V=W.playerApi,W.volumeMuted&&(V==null||V.unMute()))}else W.setState({controlsVisible:!W.controlsVisible}),(F=V.triggerAutohideControlsAfterDelayFn)==null||F.call(V);y.startPosition=null;y.hasDraggedTheMinimumDistance=!1;y.isDraggedForFineScrubbing=!1;y.controlsWereVisibleBeforeDragging=!1};
an.prototype.handleClick=function(y,W,V){this.updateProgressBarRect();y.stopPropagation();y=nXv(this,W,y.clientX)*W.videoDuration;W.setState({playedTime:y});if(W.playerState!==2){var w;(w=V.triggerAutohideControlsAfterDelayFn)==null||w.call(V)}this.seekThrottle.fire(y,W,7)};
var nXv=function(y,W,V){y=y.getProgressBarRect(W);return _.QW(0,(V-y.left)/y.width,1)};
an.prototype.resumeVideo=function(y){if(y.draggedTime<y.videoDuration){var W;(W=y.playerApi)==null||W.playVideo()}};
an.prototype.onThrottledSeek=function(y,W,V){if(W=W.playerApi){var w;if((w=W.getVideoData())==null?0:w.isLive)w=this.getProgressState(W),y+=(w==null?void 0:w.seekableStart)||0;W.seekTo(y,void 0,void 0,void 0,V)}};
an.prototype.getProgressState=function(y){var W=y==null?void 0:y.getPresentingPlayerType();return y==null?void 0:y.getProgressState(W)};var GCE,aBC,rXv,Qh3,X7C,ZJu,yUj,Wb4,VD4;GCE=_.eY(function(y){var W=y.progressBarProps;var V=y.config;var w=y.progressBarWidthPx;var t=y.chapterData;var F=JNn(W,function(){return V().isShortsPage}),I=function(){return!W().isHovering&&!V().isShortsPage};
y={};var P=_.kS("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(y.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},y));
return _.O("yt-player-storyboard",null,_.O(_.v,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.O(_.v,{cond:F,then:function(C){return _.O(_.v,{cond:I,then:function(){return _.O("div",{class:P,"aria-hidden":"true"},_.O(X7C,{props:W,config:V,isBigboard:!0,chapterData:t}))},
else:function(){return _.O(aBC,{props:W,frame:C,config:V,progressBarWidthPx:w,chapterData:t})}})}})}}))},"Qe");
_.bJu=_.eY(function(y){var W=y.progressBarProps;var V=JNn(W,y.isShortsPage);return _.O("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.O(_.v,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.O(_.v,{cond:V,then:function(w){return _.O(rXv,{frame:w,props:W,isBigboard:!0})}})}}))},"Re");
aBC=_.eY(function(y){var W=y.props;var V=y.frame;var w=y.config;var t=y.progressBarWidthPx;y=y.chapterData;var F={};F=_.kS("ytPlayerStoryboardHost",(F.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},F.ytPlayerStoryboardHostInlinePlayer=function(){return w().isInlinePlayer},F.ytPlayerStoryboardHostFadeIn=function(){return w().useFadeInAnimation},F));
return _.O("div",{class:F,"aria-hidden":"true",style:function(){var I=W(),P=sZn(V()),C=t();I=ANR(I)/I.videoDuration;var d=C*I,L=P/2+6;P=C-(P/2+6);return"left: "+(d<=L?L/C*100:d>=P?P/C*100:I*100)+"%"}},_.O(_.v,{cond:function(){var I=W();
return!(w().isShortsPage&&I.videoDuration<15)},
then:function(){return _.O(rXv,{frame:V,props:W,isBigboard:!1})}}),_.O(X7C,{props:W,
config:w,isBigboard:!1,chapterData:y}))},"Se");
rXv=_.eY(function(y){var W=y.frame;var V=y.props;var w=y.isBigboard;var t=function(){var P,C;return(C=(P=V().playerApi)==null?void 0:P.getVideoContentRect())!=null?C:{width:0,height:0}},F=function(){return sZn(W())},I=function(){var P=W();
return P?P.height/P.rows:0};
y={};y=_.kS((y.ytPlayerStoryboardBigboardImageWrapper=w,y.ytPlayerStoryboardStoryboardImageWrapper=function(){return!w()},y));
return _.O("div",{class:y,style:function(){return"width: "+(w()?t().width:F())+"px; height: "+(w()?t().height:I())+"px;"}},_.O(Qh3,{frame:W,
storyboardWidth:F,storyboardHeight:I,storyboardScale:function(){return(w()?t().width:F())/F()}}))},"Te");
Qh3=_.eY(function(y){var W=y.frame;var V=y.storyboardWidth;var w=y.storyboardHeight;var t=y.storyboardScale;var F=function(){var I=W().row,P=W().column,C=V(),d=w(),L=t();return{left:-P*C*L,top:-I*d*L}};
return _.O("img",{src:function(){return W().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+F().left+"px; top: "+F().top+"px; width: "+W().width*t()+"px; height: "+W().height*t()+"px;"}})},"Ue");
X7C=_.eY(function(y){var W=y.props;var V=y.config;var w=y.isBigboard;var t=y.chapterData;y={};y=_.kS("ytPlayerStoryboardMetadata",(y.ytPlayerStoryboardMetadataBigboard=w,y));return _.O("div",{class:y},_.O(_.v,{cond:w,then:function(){return _.O(_.o8,null,_.O(ZJu,{props:W,config:V}),_.O(_.v,{cond:function(){a:{var F=W();var I=V(),P=t(),C;if((I==null?0:I.activeChapter)&&((C=_.h(I==null?void 0:I.activeChapter,ZE))==null?0:C.title))F=!0;else{I=_.N(eBd(P));for(I=I.next();!I.done;I=I.next()){F=(I=_.h(I.value,
N0f))&&Ylz(F,I);break a}F=!1}}return F},
then:function(){return _.O(yUj,{props:W,config:V,isBigboard:!0,chapterData:t})}}))},
else:function(){return _.O(_.o8,null,_.O(yUj,{props:W,config:V,isBigboard:!0,chapterData:t}),_.O(ZJu,{props:W,config:V}))}}))},"Ve");
ZJu=_.eY(function(y){var W=y.props;var V=y.config;y={};y=_.kS("ytPlayerStoryboardTimestamp",(y.ytPlayerStoryboardTimestampShorts=function(){return V().isShortsPage},y.ytPlayerStoryboardTimestampIsHovering=function(){return W().isHovering||V().isShortsPage&&!0},y));
return _.O("div",{class:y},_.O(_.o8,null,function(){return _.Brv(ANR(W()))}))},"We");
yUj=_.eY(function(y){var W=y.props;var V=y.config;var w=y.isBigboard;var t=y.chapterData;y={};w=_.kS("ytPlayerStoryboardTitle",(y.ytPlayerStoryboardTitleBigboard=w,y));return _.O("div",{class:w},_.O(_.v,{cond:function(){return!V().isShortsPage},
then:function(){return _.O(Wb4,{props:W,activeChapter:function(){return V().activeChapter},
chapterData:t})}}))},"Xe");
Wb4=_.eY(function(y){var W=y.props;var V=y.activeChapter;var w=y.chapterData;return _.O(_.o8,null,_.O(_.YV,{each:function(){return eBd(w())},
keyBy:"INDEX"},function(t){return _.O(_.o8,null,_.O(_.v,{cond:function(){return _.h(t(),N0f)&&Ylz(W(),_.h(t(),N0f))},
then:function(){return _.O(VD4,{timedMarker:function(){return _.h(t(),N0f)}})}}))}),_.O(_.v,{cond:function(){var t;
return V()&&((t=_.h(V(),ZE))==null?void 0:t.title)},
then:function(t){return _.O(_.Lv,{text:t,noPreWrap:!0})}}))},"Ye");
VD4=_.eY(function(y){var W=y.timedMarker;return _.O(_.o8,null,_.O("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.O(_.jl,{icon:function(){return W().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.O(_.Lv,{text:function(){return W().label},
noPreWrap:!0}))},"Ze");_.w3u=_.eY(function(y){var W=y.progressBarProps;var V=y.playheadData;var w=y.config;y=_.I0("yt-progress-bar");var t=_.I0("div"),F=_.I0("div"),I=_.N(_.M1({width:0,left:0},void 0,"NcXsUb")),P=I.next().value,C=I.next().value,d=function(){F.value&&C(F.value.getBoundingClientRect())},L=function(){P().width<=0&&d();
return P()};
vl("resize",d);var z=new an(L,function(){},function(){return 0},function(){},function(){},function(){}),c=function(){return W()};
I=_.N(_.M1(!1,void 0,"ZsF6Xc"));var K=I.next().value,f=I.next().value;I=_.YS(function(){f(!0);w().position===2?setTimeout(function(){d()},100):d()});
var U=_.YS(function(){f(!1);AXt(z,c)()}),l=_.YS(function(sz){w().doSeekOnClick&&qcP(z,c,w)(sz);
return!1}),x=_.YS(function(sz){Sce(z,c)(sz);
return!1}),B=_.YS(function(sz){DlP(z,c)(sz);
return!1}),r=_.YS(function(sz){xl4(z,c,w)(sz);
return!1}),H=_.YS(function(sz){shd(z,c,w)(sz);
return!1}),a=_.YS(function(){Ycq(z,c,w)();
return!1}),b=_.YS(function(){B$t(z,c,w)();
return!1}),Fv=_.YS(function(){JXC(z,c,w)();
return!1}),Py=_.YS(function(sz){R8v(c)(sz);
return!1});
vl("mousemove",jh4(z,c,w));vl("mouseup",$lu(z,c,w));_.a8(function(){m6z(t.value);f(!1);d();$lu(z,c,w)()});
var du={};du=_.kS("ytPlayerProgressBarHost",function(){return w().className},(du.ytPlayerProgressBarHostReadOnly=function(){return w().disableScrubbing},du.ytPlayerProgressBarHostHidden=function(){return w().hideProgressBar&&!K()},du.ytPlayerProgressBarHostLowerPlayer=function(){return w().position===0},du.ytPlayerProgressBarHostBottomEdge=function(){return w().position===1},du.ytPlayerProgressBarHostBottomInset=function(){return w().position===2},du.ytPlayerProgressBarHostCustom=function(){return w().position===
3},du));
var mL={},un=_.kS("ytPlayerProgressBarBackground",(mL.ytPlayerProgressBarBackgroundHide=function(){return w().position===2&&!K()&&!W().isDragging},mL));
mL={};mL=_.kS("ytPlayerProgressBarDragContainer",(mL.ytPlayerProgressBarDragContainerBottomEdge=function(){return w().position===1},mL));
var hv={};hv=_.kS("ytPlayerProgressBarProgressBar",(hv.ytPlayerProgressBarProgressBarInset=function(){return w().position===2},hv.ytPlayerProgressBarProgressBarInsetMinimized=function(){return w().position===2&&!K()&&!W().isDragging},hv));
var $P=function(){return Math.floor(d6u(W())*100)};
return _.O("yt-progress-bar",{el:y,class:du},_.O(_.v,{cond:function(){return w().position===2},
then:function(){return _.O("div",{class:un})}}),_.O("div",{el:t,
"on:click":l,"on:touchstart":x,"on:touchmove":r,"on:mouseenter":I,"on:mousedown":B,"on:mouseleave":U,"on:mousemove":H,"on:mouseup":b,"on:touchend":a,"on:touchcancel":Fv,"on:keydown":Py,class:mL,role:"slider","aria-valuenow":$P,"aria-valuetext":function(){return $P()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return W().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.u5("SEEK_SLIDER")},_.O("div",{el:F,class:hv},_.O(T$j,{progressBarProps:W,config:w,highContrast:function(){return!!w().isInlinePlayback}}),_.O(_.v,{cond:function(){return w().chapterData&&hBL(w().chapterData)},
then:function(){return _.O(iJv,{progressState:W,multiMarkersPlayerBarRenderer:function(){return w().chapterData},
progressBarWidth:function(){return P().width}})},
else:function(){return _.O(mlu,{progressBarProps:W,config:w})}}),_.O(Mmv,{progressBarProps:W,
playheadData:V,interpolateDotPosition:function(){return w().position!==2},
hidePlayhead:function(){return w().playheadDotBehavior===1&&!K()}}))),_.O(GCE,{progressBarProps:W,
config:function(){return{activeChapter:Slb(W(),w().chapterData),getProgressBarWidthPx:function(){return L().width},
isShortsPage:!!w().isShortsPage,isInlinePlayer:!!w().isInlinePlayback,useFadeInAnimation:!!w().isInlinePlayback}},
progressBarWidthPx:function(){return P().width},
chapterData:function(){return w().chapterData}}))},"$e");
_.w3u.idomCompat=!0;Object.assign({},_.oxv(),{setState:function(){},
domMeasurements:{},appApi:_.vxn(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var tD4;
_.Fbj=_.eY(function(){var y,W=(y=_.WX(RBG().playerApi))!=null?y:void 0;y=_.N(_.M1(!1,void 0,"HLFBmb"));var V=y.next().value,w=y.next().value;y=_.N(_.M1(!1,void 0,"lHH9bc"));var t=y.next().value,F=y.next().value;y=_.N(_.M1(!1,void 0,"zsY7yd"));var I=y.next().value,P=y.next().value;y=_.N(_.M1(!1,void 0,"KeHQgc"));var C=y.next().value,d=y.next().value;y=_.N(_.M1(0,void 0,"gLLCj"));var L=y.next().value,z=y.next().value;y=_.N(_.M1(0,void 0,"s3RYkf"));var c=y.next().value,K=y.next().value;y=_.N(_.M1(!1,void 0,
"Dn608e"));var f=y.next().value,U=y.next().value;y=_.N(_.M1(0,void 0,"AnkH1b"));var l=y.next().value,x=y.next().value;y=_.N(_.M1(0,void 0,"QYNL0b"));var B=y.next().value,r=y.next().value;y=_.N(_.M1("",void 0,"Yzw45d"));var H=y.next().value,a=y.next().value;y=_.N(_.M1(-1,void 0,"iiVI0c"));var b=y.next().value,Fv=y.next().value,Py=_.DZ(function(){var du={controlsVisible:V(),isOverlayHidden:t(),shouldWaitToHideControls:I(),isDragging:C(),isHovering:f(),videoDuration:l(),playedTime:B(),videoId:H(),draggedTime:c(),
hoveredTime:L(),playerState:b()};return Object.assign({},_.oxv(),du,{domMeasurements:{},setState:function(mL){mL.controlsVisible!==void 0&&w(mL.controlsVisible);mL.isOverlayHidden!==void 0&&F(mL.isOverlayHidden);mL.shouldWaitToHideControls!==void 0&&P(mL.shouldWaitToHideControls);mL.isDragging!==void 0&&d(mL.isDragging);mL.isHovering!==void 0&&U(mL.isHovering);mL.draggedTime!==void 0&&K(mL.draggedTime);mL.hoveredTime!==void 0&&z(mL.hoveredTime);mL.videoDuration!==void 0&&x(mL.videoDuration);mL.playedTime!==
void 0&&r(mL.playedTime);mL.videoId!==void 0&&a(mL.videoId);mL.playerState!==void 0&&Fv(mL.playerState)},
appApi:_.vxn(),playerApi:W})},void 0,"ZW7y9");
_.HV(function(){W==null||W.addEventListener("onVideoProgress",fDz(Py));W==null||W.addEventListener("onVideoDataChange",ixu(Py));W==null||W.addEventListener("onStateChange",KW4(Py))});
_.XT(function(){if(W==null?0:W.isReady())W==null||W.removeEventListener("onVideoProgress",fDz(Py)),W==null||W.removeEventListener("onVideoDataChange",ixu(Py)),W==null||W.removeEventListener("onStateChange",KW4(Py))});
return _.O("desktop-shorts-player-controls",null,_.O(tD4,{playerControlsProps:Py}))},"af");
tD4=_.eY(function(y){var W=y.playerControlsProps;return _.O("div",{class:"desktopShortsPlayerControlsWizHost"},_.O(_.w3u,{progressBarProps:W,config:function(){return{isShortsPage:!0,hideProgressBar:W().videoDuration<30&&W().playerState!==2&&!W().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.EYq=_.eY(function(y){function W(du){du!==0||z()?du>50&&(z()||!K())?(c(!1),f(!0)):du<=50&&(z()||K())&&(c(!1),f(!1)):c(!0)}
function V(du,mL){var un;return _.g(function(hv){if(hv.nextAddress==1)return hv.yield(_.u8(),2);un=hv.yieldResult;mL&&un?(un.unMute(!0),du&&($6v(du,un.getVolume()),l(un.getVolume()))):un&&(un.mute(!0),du&&$6v(du,0));_.B7(hv)})}
function w(du){var mL,un;return _.g(function(hv){if(hv.nextAddress==1)return hv.yield(_.u8(),2);mL=hv.yieldResult;un=50;mL&&(un=mL.getVolume(),mL.isMuted()?$6v(du,0):$6v(du,un));l(un);_.B7(hv)})}
var t=y.orientation;y=_.I0("desktop-shorts-volume-controls");var F=_.I0("button"),I=_.gS("input"),P=_.N(_.M1(!1,void 0,"F6vt0d")),C=P.next().value,d=P.next().value,L=_.N(_.M1(!1,void 0,"S5PCqb"));P=L.next().value;L=L.next().value;var z=P,c=L;L=_.N(_.M1(!0,void 0,"Tgy4e"));P=L.next().value;L=L.next().value;var K=P,f=L;P=_.N(_.M1(50,void 0,"Dq3efd"));var U=P.next().value,l=P.next().value;P=_.DZ(function(){var du=z();return _.e("web_shorts_keyboard_enable_mute_shortcut")?du?_.u5("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.u5("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):du?_.u5("UNMUTE_VOLUME",void 0,"Unmute"):_.u5("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
L=_.DZ(function(){var du=z(),mL=K();return{sources:[{clientResource:{imageName:du?_.e("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":mL?_.e("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.e("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var x=_.DZ(function(){var du=U();return z()?du+"% volume muted":du+"% volume"},void 0,"kvkmyc"),B=_.DZ(function(){return t()==="vertical_down"},void 0,"zaNsZ");
_.a8(function(){function du(){d(!0)}
function mL(){d(!1)}
I&&I.value&&(I.value.addEventListener("focus",du),I.value.addEventListener("focusout",mL),w(I.value).then(function(){W(Number(nxa(I.value)))}));
F&&F.value&&(F.value.addEventListener("focus",du),F.value.addEventListener("focusout",mL));_.XT(function(){var un;I==null||(un=I.value)==null||un.removeEventListener("focus",du);var hv;I==null||(hv=I.value)==null||hv.removeEventListener("focusout",mL);var $P;F==null||($P=F.value)==null||$P.removeEventListener("focus",du);var sz;F==null||(sz=F.value)==null||sz.removeEventListener("focusout",mL)})});
var r=_.YS(function(){if(I&&I.value){var du=Number(nxa(I.value));jZj(du);l(du);I.value.style.setProperty("--gradient-percent",du+"%");W(du)}return!1}),H=_.YS(function(){d(!0)}),a=_.YS(function(){I&&I.value&&(V(I.value,z()),c(!z()));
return!1}),b={},Fv={},Py={};
return _.O("desktop-shorts-volume-controls",{"on:pointerleave":_.YS(function(){d(!1)}),
class:_.kS("ytdDesktopShortsVolumeControlsHost",(b.ytdDesktopShortsVolumeControlsHostVertical=B,b.ytdDesktopShortsVolumeControlsHostExpanded=C,b)),el:y},_.O(_.v,{cond:function(){return!B()},
then:function(){var du={};return _.O("div",{class:_.kS("ytdDesktopShortsVolumeControlsBackgroundScrim",(du.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=C,du))})}}),_.O("div",{class:_.kS((Fv.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=B,Fv))},_.O("button",{"aria-label":P,
title:P,el:F,"on:click":a,"on:pointerenter":H,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},L?_.O(_.ca,{data:L,alt:P,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.O("div",{class:_.kS("ytdDesktopShortsVolumeControlsSliderContainer",(Py.ytdDesktopShortsVolumeControlsSliderContainerExpanded=C,Py.ytdDesktopShortsVolumeControlsSliderContainerVertical=B,Py.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=B,Py.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return C()&&B()},Py))},_.O("input",{"aria-label":_.u5("VOLUME"),
title:_.u5("VOLUME"),el:I,"on:input":r,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":U,"aria-valuetext":x,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.NUP=_.eY(function(y){var W=y.data;return _.O("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.O(_.It,{command:function(){return W().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.O(_.v,{cond:function(){return W().iconName},
then:function(V){return _.O(_.jl,{icon:V})}}),_.O("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return W().text}),_.O(_.v,{cond:function(){return W().showEndChevron},
then:function(){return _.O(_.jl,{icon:"CHEVRON_RIGHT"})}})))},"df");var ISE=_.eY(function(y){var W=y.data;var V=y.overlayDensity;y={};return _.O("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.O(_.Q7,{data:function(){return W().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(w){var t=w.data;
return _.O(_.bV,{data:function(){return(V==null?void 0:V())===1?Object.assign({},t(),{avatar:{avatarViewModel:Object.assign({},_.h(t().avatar,_.EZ),{avatarImageSize:"AVATAR_SIZE_48"})}}):t()}})}}),_.O(_.Q7,{data:function(){return W().avatarStackViewModel}},{avatarStackViewModel:function(w){return _.O(_.QF,{data:w.data})}}),_.O(_.Lv,{className:_.kS("ytReelChannelBarViewModelChannelName",(y.ytReelChannelBarViewModelChannelNameLarge=function(){return(V==null?void 0:V())===1},y)),
text:function(){return W().channelName},
linkInheritColor:!0,userInput:!0}),_.O("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.O(_.Q7,{data:function(){return W().subscribeButtonViewModel}},{subscribeButtonViewModel:function(w){var t=w.data;
return _.O(_.aj,{data:function(){return(V==null?void 0:V())===1?Object.assign({},t(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},t().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):t()},
isOverlay:!1})},
buttonViewModel:_.lk})),_.O("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.O(_.Q7,{data:function(){var w,t;return(t=_.h((w=W())==null?void 0:w.sponsorButtonViewModel,KII))==null?void 0:t.sponsorButton}},{buttonViewModel:function(w){return _.O(_.lk,{data:w.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var gYd=_.eY(function(y){var W=function(){var w;return(y==null?void 0:(w=y.overlayDensity)==null?void 0:w.call(y))===1?22:16},V={};
return _.O("yt-reel-multi-format-link-view-model",{class:_.kS("ytReelMultiFormatLinkViewModelHost",(V.ytReelMultiFormatLinkViewModelHostTall=!0,V.ytReelMultiFormatLinkViewModelHostLarge=function(){var w;return((w=y.overlayDensity)==null?void 0:w.call(y))===1},V))},_.O(_.It,{ariaLabel:function(){return y.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return y.data().command}},_.O("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.O(_.v,{cond:function(){return y.data().icon},
then:function(w){return _.O(_.ca,{data:w,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:W})}}),_.O(_.Lv,{text:function(){return y.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
gYd.idomCompat=!0;var PjP=_.eY(function(y){var W=y.data;var V=y.overlayDensity;var w=_.I0("yt-shorts-suggested-action-view-model");y=_.N(_.M1(!1,void 0,"xDqzhe"));var t=y.next().value,F=y.next().value;y=_.N(_.M1(!1,void 0,"LI9CFd"));var I=y.next().value,P=y.next().value,C=function(){return W().isMultiLineSa},d=_.Yn(hOd,function(){var H,a;
return(a=(H=W().toggleableContent)==null?void 0:H.entityKey)!=null?a:""}),L=function(){var H,a,b;
return(b=W().toggleableContent)!=null&&b.entityKey?(a=(H=d())==null?void 0:H.value)!=null?a:!1:!1},z=function(){var H,a,b,Fv,Py,du,mL,un,hv,$P,sz;
return W().toggleableContent?L()?(H=W().toggleableContent)==null?void 0:H.toggledData:(a=W().toggleableContent)==null?void 0:a.untoggledData:{primaryText:(un=(b=W().defaultContent)==null?void 0:b.primaryText)!=null?un:W().text,secondaryText:(Fv=W().defaultContent)==null?void 0:Fv.secondaryText,onTapCommand:(hv=(Py=W().defaultContent)==null?void 0:Py.onTapCommand)!=null?hv:W().onTapCommand,icon:($P=(du=W().defaultContent)==null?void 0:du.icon)!=null?$P:W().icon,image:(sz=(mL=W().defaultContent)==null?
void 0:mL.image)!=null?sz:W().image}},c=function(){return C()?W().trailingTapTarget:void 0},K=function(H,a){return function(){return t()?a:H}},f=function(){return{leadingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(V==null?void 0:V())===1?K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
y={};y=_.kS((y.ytShortsSuggestedActionViewModelStaticHost=function(){return!C()},y.ytShortsSuggestedActionViewModelDynamicHost=C,y.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return C()&&I()},y.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return C()&&!I()},y));
_.a8(function(){if(C()){var H=0,a;if((a=W().animationParams)==null?0:a.shouldExpand){var b,Fv;H=((Fv=(b=W().animationParams)==null?void 0:b.expansionDelaySecs)!=null?Fv:0)*1E3}var Py,du=((Py=W().animationParams)==null?0:Py.shouldExpand)?setTimeout(function(){F(!0)},H):void 0,mL,un;
H=((mL=W().animationParams)==null?0:mL.visibilityDelaySecs)?((un=W().animationParams)==null?NaN:un.visibilityDelaySecs)*1E3:0;var hv=setTimeout(function(){P(!0)},H);
_.XT(function(){du&&clearTimeout(du);clearTimeout(hv)})}});
var U=function(H){_.Id(H,Object.assign({},{form:{element:w.value}}))},l=_.YS(function(){var H,a=(H=z())==null?void 0:H.onTapCommand;
a&&U(a)}),x=_.YS(function(){var H,a;
if(H=(a=c())==null?void 0:a.onTapCommand)return U(H),!1}),B=_.Rd({"vertical-align":"bottom",
"border-radius":function(){var H;return C()?((H=W().defaultContent)==null?0:H.isCircleImage)?"50%":"4px":"0px"},
width:function(){var H,a,b;return C()&&((H=W().defaultContent)==null?0:H.imageSize)?((b=(a=W().defaultContent)==null?void 0:a.imageSize)!=null?b:24)+"px":null},
height:function(){var H,a,b;return C()&&((H=W().defaultContent)==null?0:H.imageSize)?((b=(a=W().defaultContent)==null?void 0:a.imageSize)!=null?b:24)+"px":null}}),r={};
return _.O("yt-shorts-suggested-action-view-model",{class:y,el:w},_.O("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.O("button",{class:_.kS(function(){return C()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var H;
return(H=W().useFullRoundedBorder)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!c()&&C()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":C()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var H;
return(H=W().disableFixedHeight)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(r.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(V==null?void 0:V())===1},r)),
"on:click":l},_.O(_.Ha,{model:{color:4}}),_.O("div",{class:_.kS(function(){return C()?f().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.O(_.v,{cond:function(){var H;
return(H=z())==null?void 0:H.image},
then:function(H){return _.O(_.ca,{data:H,alt:"",className:function(){return C()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:B})}}),_.O(_.v,{cond:function(){var H,a;
return(H=z())==null?void 0:(a=H.icon)==null?void 0:a.iconType},
then:function(H){return _.O(_.jl,{icon:H,active:L,className:function(){return C()?t()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.O("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.O(_.v,{cond:function(){var H;
return(H=z())==null?void 0:H.primaryText},
then:function(H){return _.O("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.O(_.Lv,{text:H}))}}),_.O(_.v,{cond:function(){var H;
return(H=z())==null?void 0:H.secondaryText},
then:function(H){return _.O("div",{class:function(){return f().secondaryText()}},_.O(_.Lv,{text:H}))}}))),_.O(_.v,{cond:c,
then:function(H){return _.O("div",{class:function(){return f().trailingSection()},
"aria-label":function(){var a;return(a=H().a11yLabel)!=null?a:""},
"on:click":x,role:"button",tabindex:0},_.O(_.Ha,{model:{color:4}}),_.O(_.jl,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var CjE=_.eY(function(y){var W=y.data;var V=y.overlayDensity;var w=_.I0("yt-shorts-video-title-view-model");y=_.YS(function(I){if(_.VS(_.We(I),w.value,["A".toString()]))return!1;(I=W().truncatedTextOnTapCommand)&&_.Id(I);return!1});
var t={},F={};return _.O("yt-shorts-video-title-view-model",{el:w,class:_.kS("ytShortsVideoTitleViewModelHost",(t.ytShortsVideoTitleViewModelHostClickable=function(){return!!W().truncatedTextOnTapCommand},t)),
"on:click":y},_.O("h2",{class:_.kS("ytShortsVideoTitleViewModelShortsVideoTitle",(F.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(V==null?void 0:V())===1},F))},_.O(_.Lv,{text:function(){return W().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.Ozm=_.eY(function(y){var W=y.data;var V=y.overlayDensity;return _.O("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.O(_.Q7,{data:function(){return W().metadataItems}},{badgeViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.ip,{data:w.data}))},
playerDisclosureViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.NUP,{data:w.data}))},
shortsSuggestedActionViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(PjP,{data:w.data,overlayDensity:V}))},
reelChannelBarViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(ISE,{data:w.data,overlayDensity:V}))},
reelMultiFormatLinkViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(gYd,{data:w.data,overlayDensity:V}))},
shortsVideoTitleViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(CjE,{data:w.data,overlayDensity:V}))},
reelSoundMetadataViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.dut,{data:w.data,overlayDensity:V}))},
toggleButtonViewModel:function(w){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.XV,{data:w.data}))}}))},"jf");var vYu=_.eY(function(y){var W=_.zb(y,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),V=W.size,w=W.onTap,t=W.disabled,F=W.tooltipText;return _.O("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.O(zr,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:V(),disabled:t(),tooltipText:F(),onTap:w}},
iconName:y.iconType}))},"kf"),dGe=_.eY(function(y){function W(L){L.stopPropagation();
L.code==="ArrowUp"?(L.preventDefault(),aD4(P.value)):L.code==="ArrowDown"?(L.preventDefault(),GKd(P.value)):L.code==="KeyM"?Hxu():(L.code==="KeyK"||L.code==="Space")&&Xcb(C())}
var V=_.zb(y,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});y=V.previousButtonDisabled;var w=V.nextButtonDisabled,t=V.data,F=V.playabilityStatus,I=V.previewThumbnail,P=_.I0("ytd-shorts-miniplayer-overlay"),C=_.tn(_.q8R),d;_.HV(function(){(d=_.ZS(P.value))&&d.addEventListener("keydown",W)});
_.XT(function(){var L;(L=d)==null||L.removeEventListener("keydown",W)});
V=function(){var L,z,c;return(L=t())==null?void 0:(z=L.reelPlayerOverlayRenderer)==null?void 0:(c=z.likeButton)==null?void 0:c.likeButtonRenderer};
return _.O("ytd-shorts-miniplayer-overlay",{el:P,class:"ytdShortsMiniplayerOverlayHost"},_.O("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Rd({"background-image":function(){var L=I();return L?'url("'+_.TP(L.thumbnails)+'")':""}})}),_.O("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.O("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.O(vYu,{iconType:function(){var L=C();
return L===2||L===-1||L===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Xcb(C())},
tooltipText:function(){var L=C();return L===1||L===3?_.u5("PLAYER_LABEL_PAUSE"):_.u5("PLAYER_LABEL_PLAY")}}),_.O(_.EYq,{orientation:"horizontal_right"})),_.O("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.O(vYu,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:y,onTap:function(){aD4(P.value)},
tooltipText:_.u5("PREVIOUS_VIDEO_LABEL")}),_.O(vYu,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:w,onTap:function(){GKd(P.value)},
tooltipText:_.u5("NEXT_VIDEO_LABEL")}),_.e("web_shorts_pip_like_button")?_.O("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.O(uEE,{buttonTooltipPosition:"left",data:V,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.O("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.O(_.v,{cond:function(){var L,z;return _.h((L=t())==null?void 0:(z=L.reelPlayerOverlayRenderer)==null?void 0:z.metapanel,
_.cr6)},
then:function(L){return _.O("div",{class:_.kS("ytdShortsMiniplayerOverlayInteractive")},_.O(_.Ozm,{data:L}))}})),_.O("div",{class:_.kS("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var L;return!((L=t())==null||!L.adsOverlay)||F()&&!RaL(F())}},_.O("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.O(_.Fbj,null)))),_.O(_.v,{cond:function(){var L=t(),z,c;
L=_.h(L==null?void 0:(z=L.adsOverlay)==null?void 0:(c=z.fulfillmentContent)==null?void 0:c.fulfilledLayout,A$r);return _.h(L==null?void 0:L.renderingContent,j1A)},
then:function(L){return _.O("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.O(flK,{data:L}))}}))},"lf");var rNn=_.eY(function(){var y=_.N(_.M1(new _.YY(NaN,NaN),void 0,"HSMFk")),W=y.next().value,V=y.next().value;y=_.N(_.M1(!1,void 0,"uaAxwf"));var w=y.next().value,t=y.next().value,F=_.N(_.M1(!1,void 0,"nVSwef"));y=F.next().value;var I=F.next().value,P=_.hs().resolve(_.VH).miniplayerPropSignalMap[0],C=P.data,d=P.shortsData,L=P.nextButtonDisabled,z=P.shortsPreviewThumbnail,c=P.previousButtonDisabled,K=P.externalPlaylistData;F=P.toastData;var f=P.playabilityStatus,U=P.isDisabled,l=P.playerVe,x=P.closeVe;
P=_.tn(_.Sy);_.NT("yt-pip-window-resized",function(a){V(a)});
_.NT("yt-activate-pip-miniplayer",function(){return _.g(function(a){I(!0);_.B7(a)})});
var B=function(){var a;return!((a=K())==null||!a.contents)&&w()},r=function(){var a=W(),b=!!C(),Fv=B();
a=a.clone();b&&(a.height-=76);Fv&&(a.height-=285);return a},H=function(){t(!w())};
_.H1(function(){var a=l(),b=_.Xn(11),Fv=_.Hf(11);b&&Fv&&a&&(_.Fr(b,Fv,a),Fv=x())&&(_.EB(b,a,[Fv]),_.IB(b,[Fv]))},"HPkp0c");
return _.O("ytd-pip-container",{class:"ytdPipContainerHost"},_.O(_.v,{cond:y,then:function(){return _.O(_.oXj,{isDisabled:U,playabilityStatus:f,size:r})}}),_.O(_.v,{cond:C,
then:function(){return _.O(_.e83,{data:C,expanded:w,onExpandClick:H,playlistData:K})}}),_.O(_.v,{cond:B,
then:function(){return _.O("div",{class:"ytdPipContainerPlaylistPanel"},_.O(_.qLE,{data:K,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.O(_.v,{cond:P,
then:function(){return _.O(dGe,{data:d,nextButtonDisabled:L,previousButtonDisabled:c,playabilityStatus:f,previewThumbnail:z})}}),_.O("div",{class:"ytdPipContainerToast"},_.O(_.KXd,{toastData:F})))},"mf");var rM=function(y,W){var V=this;this.pipController=y;this.JSC$18512_clientRoot=W;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=IDv();this.watchPipEnabled=_.e("web_watch_pip");this.shortsPipEnabled=_.e("web_shorts_pip");this.JSC$18512_watchWhileEnabled=_.e("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;_.Y0(_.dP(),_.fNP,function(w){V.isSingleOptionSurveyActive=w});
this.JSC$18512_onPlayerPlayVideo=this.JSC$18512_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);_.FD(_.tL.getInstance(),this.miniplayerServiceActionMap,this.JSC$18512_clientRoot);y.pictureInPictureSupported()&&_.Hp("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},V56,fSq,oY4,TUP,mGd,E8R;
rM.prototype.handleMediaSessionPipActivation=function(){var y=this,W;return _.g(function(V){_.s8().mediaSessionPipActivation=!0;W=_.hs().resolve(_.hn);return W.isOnWatch()&&y.watchPipEnabled?(_.s8().watchPipActivation=!0,_.Lb3(y,W.data),V.jumpTo(0)):W.isOnShorts()&&y.shortsPipEnabled?(_.s8().shortsPipActivation=!0,_.zC3(y),V.jumpTo(0)):y.isMiniplayerActive()&&y.watchPipEnabled&&!y.watchWhileMode?V.yield(cUj(y),0):V.jumpTo(0)})};
var cUj=function(y){var W,V,w,t;return _.g(function(F){if(F.nextAddress==1)return W=!y.miniplayerToPipMode,V=y.playerElement,w=y.miniplayerData,t=y.watchResponse,F.yield(y.deactivate(),2);if(F.nextAddress!=3)return W?(_.s8().mediaSessionPipActivation=!0,_.s8().watchPipActivation=!0):_.s8().miniplayerButtonActivation=!0,F.yield(y.activate(V,w,t),3);y.miniplayerToPipMode=W;_.B7(F)})};
rM.prototype.onDownloadedVideoDeleted=function(y){var W,V=_.h((W=this.miniplayerData)==null?void 0:W.watchEndpoint,_.Iw),w,t;V&&((w=this.watchResponse)==null?void 0:(t=w.playerResponse)==null?void 0:t.offlineState)!==void 0&&(W=V.videoId)&&y&&W===y&&this.close()};
rM.prototype.onShowMiniplayerCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L,z,c,K,f;return _.g(function(U){switch(U.nextAddress){case 1:return V=_.h(y,N9s),t=(w=V)==null?void 0:w.miniplayerCommand,F=_.h(t,_.Iw),t&&F&&!W.active?U.yield(_.Hh.getInstance(),2):U.return();case 2:return I=U.yieldResult,U.yield((P=I)==null?void 0:P.get("yt-miniplayer-shown-video-id"),3);case 3:C=U.yieldResult;d=F.videoId;if(!d||C===d)return U.return();L=_.hs().resolve(_.hn);if(L.isOnWatch())return _.rQ(Error("Oj")),U.return();
z={channelItem:{externalId:btoa(d)}};W.readyToResumeVe=_.ad(121253,void 0,void 0,z);_.s8().showMiniplayerCommandActivation=!0;return U.yield(_.NnA(W,t,!0),4);case 4:return W.active?(_.bc(W,{readyToResumeVe:W.readyToResumeVe,continueWatching:!0,premiumBranding:!((c=V)==null||!c.showPremiumBranding)}),_.e("ytd_miniplayer_to_wiz")&&_.bc(W,{isReadyToResume:!0}),W.isReadyToResume=!0):_.bc(W,{continueWatching:!0,premiumBranding:!((K=V)==null||!K.showPremiumBranding)}),U.yield((f=I)==null?void 0:f.set("yt-miniplayer-shown-video-id",
F.videoId),5);case 5:W.readyToResumeVe=void 0,_.B7(U)}})};
rM.prototype.init=function(y){this.miniplayerEl?_.rQ(new _.Js("MiniplayerService already initialized.")):this.miniplayerEl=y};
rM.prototype.isInitialized=function(){var y=!!this.miniplayerEl;y||_.rQ(new _.Js("MiniplayerService used before initialized."));return y};
_.Lb3=function(y,W){if(y.isInitialized()){var V=_.C1y(W.response,W.playerResponse),w=_.hs().resolve(_.hn).getPlayerFromWatch();_.s8().currentEndpoint=V.watchEndpoint||null;y.activate(w,V,W)}};
_.zC3=function(y){if(y.isInitialized()){var W=_.hs().resolve(_.hn).getPlayerFromShorts();y.activate(W)}};
V56=function(y,W){var V;(V=!y.isInitialized())||(V=_.hs().resolve(_.hn).isOnWatch()&&y.watchPipMode,V=!(y.isMiniplayerActive()&&(_.s8().userActivation||_.s8().lockupActivation||V)));if(V)return!1;eCP(y,W)?_.Xs(y):E8R(y,W);return y.watchPipMode?!_.hs().resolve(_.hn).isOnWatch():!0};
rM.prototype.isMiniplayerActive=function(){return this.active};
var eCP=function(y,W){var V;W=(V=_.h(W,_.Iw))==null?void 0:V.videoId;var w,t;y=(t=_.h((w=y.miniplayerData)==null?void 0:w.watchEndpoint,_.Iw))==null?void 0:t.videoId;return W!=null&&W===y};
rM.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.h1(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ow(this.miniplayerEl,"yt-navigate-home-action"))};
_.NnA=function(y,W,V,w){V=V===void 0?!1:V;var t,F,I;return _.g(function(P){switch(P.nextAddress){case 1:if(y.active){P.jumpTo(2);break}t=_.hs().resolve(_.hn);if(I=(F=y.playerElement)!=null?F:t.getPlayerFromWatch()){P.jumpTo(3);break}return P.yield(_.hs().resolve(_.mG),4);case 4:I=t.getPlayerFromWatch();case 3:if(!I){_.rQ(Error("Qj"));P.jumpTo(2);break}return P.yield(y.activate(I,w),2);case 2:return y.active?P.yield(E8R(y,W,V),0):P.return()}})};
rM.prototype.activate=function(y,W,V){var w=this,t,F,I,P,C,d,L,z,c;return _.g(function(K){switch(K.nextAddress){case 1:if(!w.isInitialized())return K.return();if(!y)return _.rQ(Error("Qj")),K.return();if(_.cj2()||w.isMiniplayerActive())var f=!0;else f=_.s8().watchPipActivation||_.s8().watchWhileActivation,_.hs().resolve(_.hn).isOnWatch()&&!f?(_.rQ(new _.Js("miniplayer activated on watch page")),f=!0):f=_.s8().watchWhileActivation?w.userDeactivatedWatchWhile||!!document.pictureInPictureElement||p$4():
!1;if(f)return zRJ(),K.return();t=_.s8().mediaSessionPipActivation;F=_.s8().shortsPipActivation;I=_.s8().watchPipActivation;C=(P=_.s8().watchWhileActivation)||I;d=I||F;if(!w.pictureInPictureEnabled()||!d){K.jumpTo(2);break}return K.yield(hCt(w,t),3);case 3:if(!K.yieldResult)return _.rQ(Error("Pj")),zRJ(),K.return();case 2:return w.setActive(!0),w.watchResponse=V,w.playerElement=y,w.updateMiniplayerData(W),K.yield(oY4(w,y),4);case 4:if(!w.active)return _.rQ(new _.Js("miniplayer deactivated during activation")),
w.removePlayerListeners(),K.return();f=_.hs().resolve(_.wd);f.addEventListener("yt-navigate",_.Dp(w,w.onPlaylistNavigate));f.addEventListener("yt-playlist-data-updated",_.Dp(w,w.JSC$18512_onPlaylistDataUpdated));w.JSC$18512_onPlaylistDataUpdated();zRJ();w.JSC$18512_watchWhileEnabled&&_.Kb3(w,P);w.pictureInPictureEnabled()&&w.shortsPipEnabled&&(w.shortsPipMode=F,_.dP().dispatch(VFf(w.shortsPipMode)));w.pictureInPictureEnabled()&&w.watchPipEnabled&&(w.watchPipMode=I,_.f_n(w.handleMediaSessionPipActivation));
w.player&&(L=w.player.getPlayerState(),z=L===1,_.dP().dispatch(PpI(L)),_.Kg(w.miniplayerEl,"yt-miniplayer-play-state-changed",[z]),_.s8().isVideoPlaying=z);_.Kg(w.miniplayerEl,"yt-miniplayer-endpoint-changed");p34(w);_.izC(w);return w.shortsPipMode||w.watchPipMode?K.yield(_.pg(w.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.e("ytd_miniplayer_to_wiz")?K.yield(_.pg(w.miniplayerEl,"yt-activate-miniplayer",[C]),6):K.yield(_.pg(w.miniplayerEl,"yt-activate-miniplayer-action",[y,C]),6);case 6:if(w.watchResponse&&
!_.e("miniplayer_copy_screen_on_activation_killswitch")){f=w.getScreenLayer();var U=_.Xn(0),l=E$b(0);U&&l&&(_.Gy(U,l,f),f===0&&t9v(void 0,0))}fSq(w);TUP(w,!0);(c=w.getPlayerElement())==null||c.focusOnPlayer();_.B7(K)}})};
rM.prototype.updateMiniplayerData=function(y){this.miniplayerData=y;_.bc(this,{data:y})};
_.izC=function(y){var W,V,w=((W=y.miniplayerData)==null?void 0:(V=W.miniplayerRenderer)==null?void 0:V.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";W=y.watchWhileMode||y.watchPipMode?w&&!_.hs().resolve(_.hn).isOnWatch():w;_.bc(y,{isDisabled:W});var t,F;V=_.h((t=y.miniplayerData)==null?void 0:(F=t.miniplayerRenderer)==null?void 0:F.minimizedEndpoint,_.Hq);W&&V&&_.hs().resolve(_.nr).openSheet({openPopupActionCommand:{openPopupAction:V}},y.miniplayerEl)};
fSq=function(y){if(y.watchResponse&&!mGd(y)){var W,V=(W=y.watchResponse.playerResponse)==null?void 0:W.trackingParams;V&&(_.bc(y,{expandVe:_.ad(35989),closeVe:_.ad(34699),readyToResumeCloseVe:_.ad(131070),repositionVe:_.ad(226204),resizeVe:_.ad(226205)}),_.bc(y,{playerVe:_.nD(V)}))}};
oY4=function(y,W){return _.g(function(V){if(V.nextAddress==1)return W.preparePlayer(),V.yield(W.getPlayerPromise(),2);y.player=V.yieldResult;y.player&&(y.player.addEventListener("onPlayVideo",y.JSC$18512_onPlayerPlayVideo),y.player.addEventListener("onCloseMiniplayer",y.onPlayerCloseMiniplayer),y.player.addEventListener("onExpandMiniplayer",y.onPlayerExpandMiniplayer),y.player.addEventListener("onStateChange",y.onPlayerStateChange));_.B7(V)})};
_.E=rM.prototype;_.E.JSC$18512_onPlayerPlayVideo=function(y){var W=y.sessionData&&"autonav"in y.sessionData,V;y.sessionData&&y.sessionData.itct&&(V=y.sessionData.itct);var w=y.watchEndpoint;W=w&&W?_.AFy(w,V):_.hz(y.videoId,y.listId||void 0,V);y.sessionData&&_.On(_.h(W.commandMetadata,_.dw).url,y.sessionData);E8R(this,W)};
_.E.onPlayerExpandMiniplayer=function(){_.Xs(this)};
_.E.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.E.onPlayerStateChange=function(){if(this.player){var y=this.player.getPlayerState(),W=y===1;_.dP().dispatch(PpI(y));_.dP().dispatch(_.vrf(y));_.Kg(this.miniplayerEl,"yt-miniplayer-play-state-changed",[W]);_.s8().isVideoPlaying=W;if(y===0){W=!_.en.getInstance().isAutoplaySetExplicitly();var V,w,t,F,I,P,C=(V=this.watchResponse.response)==null?void 0:(w=V.contents)==null?void 0:(t=w.twoColumnWatchNextResults)==null?void 0:(F=t.autoplay)==null?void 0:(I=F.autoplay)==null?void 0:(P=I.autoplayExplicitChoiceDialogRenderer)==
null?void 0:P.confirmDialogRenderer;W&&C&&this.player.setAutonavState(1)}y===0&&this.watchWhileMode&&this.deactivate()}};
_.E.onPlaylistNavigate=function(y,W){var V=this,w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1){if(!_.h(W.endpoint,_.Iw))return L.return();_.s8().currentEndpoint=W.endpoint;_.Kg(V.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.hs().resolve(_.hn).isOnWatch()&&(V.watchWhileMode||V.watchPipMode))return L.return();y.stopPropagation();(F=(t=_.h((w=W.endpoint)==null?void 0:w.commandMetadata,_.dw))==null?void 0:t.url)&&W.tempData&&!_.Gc.isEmpty(W.tempData)&&_.On(F,W.tempData);I={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};P=new Ls6(function(){return V.getPlayerElement()},I,{layer:V.getScreenLayer()});
C=function(z){P.processChunk({endpoint:W.endpoint,data:z})};
MDu(V);V.miniplayerFetchRequest=q9q(V,W.endpoint,C);_.l7(L,2);return L.yield(V.miniplayerFetchRequest,4)}if(L.nextAddress!=2)return d=L.yieldResult,UGv(V,d),_.E6(L,0);_.YX(L);_.B7(L)})};
_.E.JSC$18512_onPlaylistDataUpdated=function(){var y=_.hs().resolve(_.wd).getPlaylistData();this.hasPlaylistData=!!y;_.bc(this,{externalPlaylistData:y||{}})};
_.E.close=function(y){if(this.isInitialized())if(y){if(!((this.watchWhileMode||this.watchPipMode)&&_.hs().resolve(_.hn).isOnWatch()||this.shortsPipMode)){var W;(W=this.getPlayerElement())==null||W.stop()}this.deactivate()}else _.Ib().closeMiniplayer(this.miniplayerEl)};
_.E.deactivate=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1){if(!W.isInitialized()||!W.active)return I.return();W.setActive(!1);MDu(W);(V=!!y&&eCP(W,y))&&W.isSingleOptionSurveyActive&&_.ow(W.miniplayerEl,"yt-show-watch-page-survey",[W.isSingleOptionSurveyActive]);return I.yield(u0e(W),2)}if(I.nextAddress!=3){TUP(W,!1);W.isReadyToResume=!1;W.watchResponse=void 0;W.updateMiniplayerData(void 0);W.shortsPipMode&&(W.shortsPipMode=!1,_.dP().dispatch(VFf(W.shortsPipMode)),nJm(W.pipController),
(w=W.player)==null||w.setInternalSize(NaN,NaN));W.watchPipMode&&(W.watchPipMode=!1,nJm(W.pipController));(t=W.watchWhileMode)&&_.Kb3(W,!1);W.removePlayerListeners();var P=_.hs().resolve(_.wd);P.removeEventListener("yt-navigate",_.Dp(W,W.onPlaylistNavigate));P.removeEventListener("yt-playlist-data-updated",_.Dp(W,W.JSC$18512_onPlaylistDataUpdated));_.s8().currentEndpoint=null;_.Kg(W.miniplayerEl,"yt-miniplayer-endpoint-changed");W.playerElement=null;zRJ();return W.shortsPipMode||W.watchPipMode?I.jumpTo(3):
I.yield(_.pg(W.miniplayerEl,_.e("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[V,t]),3)}(F=W.player)==null||F.setInternalSize(NaN,NaN);W.player=null;_.B7(I)})};
var u0e=function(y){var W;return _.g(function(V){W=_.hs().resolve(_.hn);return y.shortsPipMode?V.yield(W.movePlayerToShorts(y.playerElement),0):V.yield(W.movePlayerToWatch(y.playerElement),0)})};
rM.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18512_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
rM.prototype.setActive=function(y){this.active=y;this.isSingleOptionSurveyActive?_.ow(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ow(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.dP().dispatch(_.ig({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Kb3=function(y,W){y.watchWhileMode=W;_.bc(y,{watchWhile:W})};
TUP=function(y,W){if(!mGd(y))if(y.shortsPipMode||y.watchPipMode){var V;(V=y.player)==null||V.setDocumentPictureInPicture(W)}else{var w;(w=y.player)==null||w.setMinimized(W)}};
mGd=function(y){return y.watchWhileMode&&_.e("kevlar_watch_while_counterfactual")};
_.Xs=function(y){var W;return _.g(function(V){switch(V.nextAddress){case 1:if(!y.isInitialized())return V.return();_.l7(V,2);return V.yield(y.miniplayerFetchRequest,4);case 4:_.E6(V,3);break;case 2:_.YX(V);case 3:y.watchResponse&&y.miniplayerData&&y.miniplayerData.watchEndpoint?(W={url:y.watchResponse.url,endpoint:y.miniplayerData.watchEndpoint,data:y.watchResponse,miniplayer:!0},_.h1(y.miniplayerEl,"yt-navigate-cache",W)):y.miniplayerData&&y.miniplayerData.watchEndpoint&&_.h1(y.miniplayerEl,"yt-navigate",
{endpoint:y.miniplayerData.watchEndpoint}),_.B7(V)}})};
E8R=function(y,W,V){var w,t,F,I;return _.g(function(P){if(P.nextAddress==1){if(eCP(y,W))return P.return();_.s8().currentEndpoint=W;_.Kg(y.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Kg(y.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.s8().isVideoPlaying=!1;w={clientParams:{miniplayer:!0,autoSaveToQueue:!V}};t=new Ls6(function(){return y.getPlayerElement()},w,{layer:y.getScreenLayer(),
parentLayer:0},void 0,y.readyToResumeVe);F=function(C){var d,L,z=Object.assign({},(d=C.playerResponse)==null?void 0:(L=d.playerConfig)==null?void 0:L.playbackStartConfig,{startPaused:!0}),c;V&&((c=C.playerResponse)==null?0:c.playerConfig)&&(C.playerResponse.playerConfig.playbackStartConfig=z);t.processChunk({endpoint:W,data:C})};
MDu(y);y.miniplayerFetchRequest=q9q(y,W,F);_.l7(P,2);return P.yield(y.miniplayerFetchRequest,4)}if(P.nextAddress!=2)return I=P.yieldResult,UGv(y,I),_.E6(P,0);_.YX(P);_.B7(P)})};
rM.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var MDu=function(y){y.miniplayerFetchRequest&&(y.miniplayerFetchRequest.cancel&&y.miniplayerFetchRequest.cancel("Active request obsolete"),y.miniplayerFetchRequest=null)},q9q=function(y,W,V){var w=_.JS.instance,t,F=(t=_.h(W.commandMetadata,_.dw))==null?void 0:t.url,I;
t=!F||_.e("disable_miniplayer_tempdata")?{}:(I=HoL(F))!=null?I:{};return F_(w,W,t,window.location.href,"watch",function(P,C){V(C)},function(P){return P!==y.miniplayerFetchRequest})},UGv=function(y,W){var V;
_.g(function(w){if(!W)return w.return();y.watchResponse=W;fSq(y);p34(y);V=_.C1y(W.response,W.playerResponse);if(y.isMiniplayerActive()){W.response&&(y.playerElement.watchNextData=W.response);var t=_.Gc.getValueByKeys.apply(_.Gc,[W].concat(_.GC(TXi)));_.Gc.getValueByKeys.apply(_.Gc,[W].concat(_.GC(uHi)))&&t&&_.hs().resolve(_.wd).setAutoplayRenderer(t);if(t)if(_.e("kevlar_is_pupi_enabled")){var F,I,P,C,d,L=((F=W.response)==null?0:(I=F.playerOverlays)==null?0:(P=I.playerOverlayRenderer)==null?0:(C=P.autonavToggle)==
null?0:(d=C.autoplaySwitchButtonRenderer)==null?0:d.enabled)?2:1;_.en.getInstance().setState(L,!1,!1)}else F=EgG()?2:1,(L=y.player)==null||L.setAutonavState(F);y.updateMiniplayerData(V);_.izC(y)}_.B7(w)})},p34=function(y){var W,V,w=(W=y.watchResponse)==null?void 0:(V=W.playerResponse)==null?void 0:V.playabilityStatus,t;
W=w==null?void 0:(t=w.miniplayer)==null?void 0:t.miniplayerRenderer;(W==null?void 0:W.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&W.minimizedEndpoint&&_.i5(y.miniplayerEl,[W.minimizedEndpoint]);_.bc(y,{miniplayerRenderer:W,playabilityStatus:w})};
rM.prototype.openToast=function(y,W){_.bc(this,{toastData:{data:y,label:W}})};
_.bc=function(y,W){var V=y.miniplayerEl,w;for(w in W)V[w]=W[w];(0,y.miniplayerPropSignalMap[1])(W)};
rM.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var y;return this.playerElement?this.playerElement:(y=_.i6(this.miniplayerEl).querySelector("#player-container"))==null?void 0:y.firstElementChild};
rM.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var hCt=function(y,W){W=W===void 0?!1:W;var V,w,t,F,I,P,C;return _.g(function(d){if(d.nextAddress==1){V=navigator.userActivation.isActive||W;if(!V||!y.pictureInPictureSupported())return d.return(!1);w=S9j(y);t=w.width;F=w.height;return d.yield(y.pipController.openWindow({width:t,height:F}),2)}I=d.yieldResult;P=y.pipController.getWindow();if(!P||!I)return d.return(!1);P.document.body.style.overflow="hidden";C=bxL(P);Hqj(y.pipController,function(){DGC(y);C()});
return d.return(!0)})},S9j=function(y){var W=_.s8().shortsPipActivation,V,w;
y=W?.5625:(w=(V=y.player)==null?void 0:V.getVideoAspectRatio())!=null?w:16/9;V=Math.min(window.innerWidth,window.innerHeight)/2;W=W?0:76;return y>1?new _.YY(V,W+V/y):new _.YY(V*y,W+V)},DGC=function(y){var W;
_.g(function(V){W=_.hs().resolve(_.hn);return W.isOnWatch()&&y.watchPipMode||W.isOnShorts()&&y.shortsPipMode?V.yield(y.deactivate(),0):y.miniplayerToPipMode?V.yield(cUj(y),0):y.watchPipMode?V.yield(_.Xs(y),0):V.jumpTo(0)})};
rM.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.CM.Object.defineProperties(rM.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
rM[cs]=[Xzj,Z0E];var lSm="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(" "),
xGu="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(" "),kcj="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
sS3="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var AUE=null;var Y9C={},BUW=(Y9C.initialized={priority:10,callback:function(y){var W=_.hs();W.addProvider({provide:FTq,useClass:aqE});W.addProvider({provide:_.XdE,useFactory:function(){return new EdA}});
W.addProvider({provide:$a,useValue:_.yC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});W.addProvider({provide:WLW,useValue:5184E6});W.addProvider({provide:cvj,useValue:_.Xu()});W.addProvider({provide:mru,useClass:ZR2});W.addProvider({provide:NF,useClass:NF});W.addProvider({provide:_.mG,useFactory:function(){return wGI.promise}});
W.addProvider({provide:_.Fl2,useFactory:function(){return _.tF2.promise}});
W.addProvider({provide:xQz,useValue:function(){var C;return((C=_.Kn())==null?void 0:C.getPlayer())||null}});
var V={};W.addProvider((V.provide=_.vu,V.useFactory=function(C,d){return function(){return Nnv(C,d)}},V[cs]=[$a,
WLW],V));V={};W.addProvider((V.provide=_.Md,V.useClass=jRd,V[cs]=[$a,WLW],V));V={};W.addProvider((V.provide=_.vBP,V.useClass=XyP,V[cs]=[_.Md],V));W.addProvider({provide:xa,useFactory:_.dP});W.addProvider({provide:ma,useFactory:_.dP});W.addProvider({provide:SE3,useFactory:_.dP});W.addProvider({provide:J4m,useFactory:_.dP});W.addProvider({provide:_.w0,useFactory:_.dP});W.addProvider({provide:li,useValue:_.DH});W.addProvider({provide:R4u,useClass:NPP});W.addProvider({provide:Ssz,useClass:uxs});W.addProvider({provide:ZM,
useClass:ZM});W.addProvider({provide:xK,useClass:xK});W.addProvider({provide:kK,useClass:kK});W.addProvider({provide:AS,useClass:AS});W.addProvider({provide:E5,useClass:E5});W.addProvider({provide:l9,useClass:l9});W.addProvider({provide:m8,useClass:m8});W.addProvider({provide:Sz4,useValue:C74});W.addProvider({provide:_.HB,useFactory:_.BC});W.addProvider({provide:hp,useFactory:_.l5});V={};W.addProvider((V.provide=bEt,V.useFactory=function(C){return function(d){var L=L===void 0?{}:L;var z,c,K=(c=_.h((z=
d.endpoint)==null?void 0:z.commandMetadata,_.dw))==null?void 0:c.rootVe;if(K){var f,U;if(z=d.previousCsn||((U=_.h((f=d.endpoint)==null?void 0:f.commandMetadata,sxm))==null?void 0:U.parentCsn)){var l=l===void 0?{}:l;if(z!==_.Xn(l.layer)||K!==E$b(l.layer))Cyy(z,l.cttAuthInfo,l.layer||0),t9v(z,l.layer||0),f=l.layer||0,_.Z7(FFa(f===void 0?0:f),K);L.parentCsn=z}d.endpoint&&z?W3z(C,d.endpoint,L):_.qx(C,K,void 0,L);var x;((x=d.response)==null?0:x.trackingParams)&&C.graftServerVe(d.response.trackingParams);
var B;((B=d.playerResponse)==null?0:B.trackingParams)&&C.graftServerVe(d.playerResponse.trackingParams);var r;((r=d.reelWatchSequenceResponse)==null?0:r.trackingParams)&&C.graftServerVe(d.reelWatchSequenceResponse.trackingParams)}}},V[cs]=[_.HB],V));
V={};W.addProvider((V.provide=lIj,V.useClass=Drd,V[cs]=[li,_.w0],V));V={};W.addProvider((V.provide=f0,V.useClass=f0,V[cs]=[_.mG,_.w0],V));V={};W.addProvider((V.provide=on,V.useClass=on,V[cs]=[ma,_.oA],V));W.addProvider({provide:_.Bmu,useClass:GRv});V={};W.addProvider((V.provide=_.$t,V.useClass=jsd,V[cs]=[_.Bmu],V));W.addProvider({provide:_.nr,useClass:MQ});W.addProvider({provide:_.Cnu,useClass:Uuj});W.addProvider({provide:_.HS,useClass:Tl});V={};W.addProvider((V.provide=_.LW,V.useClass=aId,V[cs]=
[_.LW],V));W.addProvider({provide:_.TT,useClass:fJQ});W.addProvider({provide:BR,useClass:BR});W.addProvider({provide:HR,useClass:HR});W.addProvider({provide:y0,useClass:mz});V={};W.addProvider((V.provide=wH,V.useClass=wH,V[cs]=[_.nr,y0],V));_.e("web_enable_feedback_endpoint_resolver")&&(V={},W.addProvider((V.provide=ka,V.useClass=ka,V[cs]=[xa,lY],V)),W.addProvider({provide:lY,useClass:aJE}));_.e("web_enable_feedback_endpoint_resolver_batch_2")&&(V={},W.addProvider((V.provide=Ay,V.useClass=Ay,V[cs]=
[xa],V)),V={},W.addProvider((V.provide=sG,V.useClass=sG,V[cs]=[lY],V)));V={};W.addProvider((V.provide=Wx,V.useClass=Wx,V[cs]=[_.HS,y0],V));V={};W.addProvider((V.provide=rt,V.useClass=rt,V[cs]=[_.HS],V));V={};W.addProvider((V.provide=V0,V.useClass=V0,V[cs]=[_.QY,_.$t],V));V={};W.addProvider((V.provide=Zw,V.useClass=Zw,V[cs]=[_.QY,_.HB],V));W.addProvider({provide:TN,useClass:TN});V={};W.addProvider((V.provide=ee,V.useClass=ee,V[cs]=[xa],V));W.addProvider({provide:Bx,useClass:Bx});W.addProvider({provide:YQ,
useClass:YQ});V={};W.addProvider((V.provide=Ro,V.useClass=Ro,V[cs]=[xa],V));V={};W.addProvider((V.provide=je,V.useClass=je,V[cs]=[_.QY,xa],V));V={};W.addProvider((V.provide=$Q,V.useClass=$Q,V[cs]=[xa],V));V={};W.addProvider((V.provide=nW,V.useClass=nW,V[cs]=[xa],V));V={};W.addProvider((V.provide=bY,V.useClass=bY,V[cs]=[_.$t],V));V={};W.addProvider((V.provide=ur,V.useClass=ur,V[cs]=[_.HB],V));V={};W.addProvider((V.provide=sN,V.useClass=sN,V[cs]=[ir],V));V={};W.addProvider((V.provide=Ap,V.useClass=
Ap,V[cs]=[ir],V));W.addProvider({provide:lr,useClass:lr});W.addProvider({provide:xQ,useClass:xQ});W.addProvider({provide:UN,useClass:UN});V={};W.addProvider((V.provide=tp,V.useClass=tp,V[cs]=[_.$t,_.oA],V));W.addProvider({provide:jG,useClass:jG});V={};W.addProvider((V.provide=Qz,V.useClass=Qz,V[cs]=[_.QY,_.$t],V));W.addProvider({provide:XP,useClass:XP});V={};W.addProvider((V.provide=zN,V.useClass=zN,V[cs]=[xa,_.QY,_.LW],V));V={};W.addProvider((V.provide=vx,V.useClass=vx,V[cs]=[_.QY,_.oA],V));W.addProvider({provide:Bvq,
useValue:KAa});W.addProvider({provide:nDK,useValue:Gv4});W.addProvider({provide:dH,useClass:dH});V={};W.addProvider((V.provide=ON,V.useClass=ON,V[cs]=[xa],V));V={};W.addProvider((V.provide=cx,V.useClass=cx,V[cs]=[_.TT,_.oA],V));V={};W.addProvider((V.provide=Ya,V.useClass=Ya,V[cs]=[_.oA],V));W.addProvider({provide:Dw,useFactory:function(){return new Dw(_.dP())}});
W.addProvider({provide:c7u,useFactory:_.Gw.getInstance});V={};W.addProvider((V.provide=np,V.useClass=np,V[cs]=[$a,c7u,_.oA],V));W.addProvider({provide:Jy,useClass:Jy});W.addProvider({provide:Mz,useClass:Mz});W.addProvider({provide:UG,useClass:UG});W.addProvider({provide:_.qz,useClass:_.qz});W.addProvider({provide:ao,useClass:ao});V={};W.addProvider((V.provide=gH,V.useClass=gH,V[cs]=[ma],V));V={};W.addProvider((V.provide=Px,V.useClass=Px,V[cs]=[_.oA],V));_.e("web_enable_prefetching_videos_on_home")&&
(W.addProvider({provide:h5,useClass:h5}),W.addProvider({provide:J5,useClass:J5}));V={};W.addProvider((V.provide=Xt,V.useClass=Xt,V[cs]=[_.oA],V));W.addProvider({provide:uY,useClass:uY});V={};W.addProvider((V.provide=m2,V.useClass=m2,V[cs]=[_.QY,_.oA],V));V={};W.addProvider((V.provide=SG,V.useClass=SG,V[cs]=[_.oA],V));W.addProvider({provide:Rn,useClass:Rn});W.addProvider({provide:NL,useClass:NL});V={};W.addProvider((V.provide=EN,V.useClass=EN,V[cs]=[ma,_.oA],V));V={};W.addProvider((V.provide=br,V.useClass=
br,V[cs]=[ma,_.oA,_.QY],V));V={};W.addProvider((V.provide=Q0,V.useClass=Q0,V[cs]=[_.oA],V));V={};W.addProvider((V.provide=rH,V.useClass=rH,V[cs]=[_.oA,_.QY],V));V={};W.addProvider((V.provide=CW,V.useClass=CW,V[cs]=[_.mG],V));V={};W.addProvider((V.provide=Io,V.useClass=Io,V[cs]=[_.mG],V));W.addProvider({provide:pW,useClass:pW});W.addProvider({provide:fW,useClass:fW});W.addProvider({provide:Jp,useClass:Jp});W.addProvider({provide:ML,useClass:ML});W.addProvider({provide:KW,useClass:KW});W.addProvider({provide:a3,
useClass:a3});W.addProvider({provide:oo,useClass:oo});_.e("kevlar_enable_mss_lazy_load")&&W.addProvider({provide:_.td,useClass:Sxu});W.addProvider({provide:_.YK,useClass:U5});W.addProvider({provide:ch,useFactory:function(){return _.tL.getInstance()}});
W.addProvider({provide:Ur3,useFactory:Kpv});W.addProvider({provide:ir,useFactory:function(){return _.Hh.getInstance()}});
W.addProvider({provide:Ghr,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});V={};W.addProvider((V.provide=_.K0,V.useClass=_.K0,V[cs]=[_.mG,_.oA,_.HB,Ur3,ir,ch,Ghr,li],V));W.addProvider({provide:_.DO,useClass:sns});W.addProvider({provide:_.wyj,useClass:V4u});V={};W.addProvider((V.provide=Gv,V.useClass=Gv,V[cs]=[_.wyj],V));V={};W.addProvider((V.provide=_.p0,V.useFactory=function(C){return C.upliftCompletionResolver.promise},V[cs]=[lIj],V));
V=_.W4("IS_SHELL_LOAD")?"aa":"eocs";var w=_.W4("IS_SHELL_LOAD")?3:2;_.FS().parkOrScheduleJob(function(){kRC()},w,V);
_.FS().parkOrScheduleJob(function(){_.hs().resolve(f0).start()},2,"eocs");
_.FS().parkOrScheduleJob(function(){u6C()},2,"eocs");
_.FS().parkOrScheduleJob(function(){_.hs().resolve(on).start()},2,"eocs");
_.e("kevlar_debug_data_app_registration_ks")||ETj();W.addProvider({provide:_.rL,useValue:new xSQ(y.root)});W.addProvider({provide:Vp,useValue:new TpG});W.addProvider({provide:_.jm6,useValue:new JJI(y.root)});W.addProvider({provide:_.bN,useValue:new RHA});W.addProvider({provide:_.jL,useClass:s4});W.addProvider({provide:Xzj,useClass:qQ});_.e("kevlar_network_sli_killswitch")||W.addProvider({provide:wZv,useValue:BRr});W.addProvider({provide:s5,useFactory:PLu});_.e("web_bind_fetch")&&(V={},W.addProvider((V.provide=
jv4,V.useFactory=CLa,V[cs]=[_.eX(s5)],V)));_.e("web_bind_parse")&&(V={},W.addProvider((V.provide=$uj,V.useFactory=OEu,V[cs]=[_.eX(s5)],V)));_.e("web_bind_window_request")&&(V={},W.addProvider((V.provide=nE3,V.useFactory=vlu,V[cs]=[_.eX(s5)],V)));_.e("web_bind_text_decoder")&&(V={},W.addProvider((V.provide=HeP,V.useFactory=dmv,V[cs]=[_.eX(s5)],V)));V={};W.addProvider((V.provide=KLd,V.useFactory=avy,V[cs]=[_.p0,xa,_.vu],V));V={};W.addProvider((V.provide=oPu,V.useClass=ZV,V[cs]=[KLd],V));W.addProvider({provide:sRP,
useClass:DaW});W.addProvider({provide:zbW,useClass:ebW});V=[].concat(_.GC(dp));_.e("web_continuation_response_processing")&&V.push(_.EP);V.push(Ohm);_.e("enable_share_panel_navigation_logging_fix_on_web")&&V.push(_.SJz);W.addProvider({provide:KYn,useValue:V});W.addProvider({provide:oBu,useClass:LLE});W.addProvider({provide:IfP,useClass:th4});V={};W.addProvider((V.provide=zJG,V.useClass=ZCE,V[cs]=[ma],V));_.HU.addLowPriorityJob(function(){j9R()});
V={};W.addProvider((V.provide=$FJ,V.useFactory=function(C){return function(d){var L,z=(L=_.h(d.commandMetadata,_.dw))==null?void 0:L.url;if(!z)throw new _.Js("No URL for PBJ Command",d);z=FRa(z,{pbj:"1"});L=igd(z,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.yC("STS").toString()});d=_.SX({command:JSON.stringify(d),session_token:_.yC("XSRF_TOKEN")});return C.fetch(z,{method:"POST",headers:L,body:d})}},V[cs]=[IfP],V));
V=[];V.push(W.resolve(zbW));w={};w=(w.client_location=_.Gw.getInstance(),w.consistency=_.NZv(),w.entities=W.resolve(Ssz),w.response_received_commands=W.resolve(oBu),w.store=W.resolve(_.vBP),w.tokens=W.resolve(zbW),w);_.e("web_service_params_response_processor")&&(W.addProvider({provide:y_W,useFactory:function(){var C={};return C.CSI=zun(),C.ECATCHER=Ltz(),C}}),W.addProvider({provide:gBu,
useClass:Whd}),w.service_params=W.resolve(gBu));if(_.e("web_shorts_prefetch_service_enabled")){var t=new ate(W.resolve(_.Md));w.shorts_prefetch=t}w.adblock_detection=W.resolve(zJG);W.addProvider({provide:_.NN,useClass:_.NN});t=W.resolve(Sz4);var F=[];_.e("PremiumClientSharedConfig__enable_att_context_processor")&&(W.addProvider({provide:L0A,useClass:Oyz}),F.push(W.resolve(L0A)));if(_.e("owl_pl_await")){var I={};W.addProvider((I.provide=kj4,I.useFactory=function(C){return new lqe(C)},I[cs]=[_.NN],
I));
F.push(W.resolve(kj4))}W2E(t,W.resolve(IfP),W.resolve(R4u),w,W.resolve(_.Md),V,F,W.resolve(oPu),W.resolve(sRP));W.addProvider({provide:_.QY,useValue:_.P5.instance});_.e("start_client_gcf")&&W.addProvider({provide:Rp,useValue:ALs()});W.addProvider({provide:AAC,useFactory:function(){return new AAC(_.hs().resolve(_.NN),_.Hh.getInstance())}});
_.FS().parkOrScheduleJob(function(){YEu()},1,"eocs");
V={};W.addProvider((V.provide=ic,V.useClass=ic,V[cs]=[_.vu,_.QY],V));W.addProvider({provide:_.WCq,useFactory:_.Bu.getInstance});_.FS().parkOrScheduleJob(function(){_.hs().resolve(ic).refresh()},0,"eocs");
nhQ(C74.watchEndpointMap||{},t.reelWatchEndpointMap||{},y.injector.resolve(_.QY));W.addProvider({provide:$U,useValue:_.JS.instance});_.e("kevlar_signal_collection_killswitch")||(V={},W.addProvider((V.provide=TmW,V.useClass=TmW,V[cs]=[$a,hp],V)),_.FS().parkOrScheduleJob(function(){_.hs().resolve(TmW).record()},1,"eocs"));
_.e("web_debug_handler_registration_killswitch")||_.FS().parkOrScheduleJob(function(){tJL("DOWNLOAD_PES",o8n);_.e("offline_client_state_export_ks")||tJL("OFFLINE_CLIENT_STATE",cun)},0,"eocs");
_.e("kevlar_prevent_polymer_dynamic_font_load")&&_.FS().parkOrScheduleJob(function(){var C=[_.Tc(h1t),_.Tc(oRe)];C=_.N(C);for(var d=C.next();!d.done;d=C.next()){d=d.value;var L=document.createElement("link");_.hX(L,d,"stylesheet");document.head.appendChild(L)}},1,"eocs");
V=y.injector.resolve(_.QY);_.d9q.instance=new _.d9q(V);WAG(Eiz(new vim(V)));V={};y.injector.addProvider((V.provide=dS,V.useFactory=function(C){(C=C==null?void 0:C.getCurrentPage())?C=C.visibilityObserver:(AUE||(AUE=vtR()),C=AUE);return C},V[cs]=[_.eX(_.hn)],V.skipCache=!0,V));
W.addProvider({provide:_.VH,useClass:rM});W.addProvider({provide:kt,useClass:$Q2});y.injector.addProvider({provide:Y2f,useValue:lyJ});W.addProvider({provide:fLi,useValue:ceG});W.addProvider({provide:_.va,useValue:qa4});y=W.addProvider;wdq||(wdq=new VPP);y.call(W,{provide:_.uc,useValue:wdq});W.addProvider({provide:_.L5,useValue:_.yC("HTML_DIR")==="rtl"?"rtl":"ltr"});W.addProvider({provide:lJJ,useClass:HyQ});W.addProvider({provide:_.lE,useClass:SJ});_.hs().addProvider({provide:kMi,useValue:_.e("enable_web_delhi_icons")?
xGu.concat(sS3):lSm.concat(kcj)});W.addProvider({provide:_.lc,useClass:_.lc});W.addProvider({provide:_.Lhe,useValue:new d53});W.addProvider({provide:Skq,useClass:qsQ});W.addProvider({provide:qL,useClass:qL});W.addProvider({provide:Se,useClass:Se});y={};W.addProvider((y.provide=Ft,y.useClass=Ft,y[cs]=[_.QY,_.$t],y));W.addProvider({provide:GN,useClass:GN});W.addProvider({provide:b1R,useClass:bqP});W.addProvider({provide:kQ,useClass:kQ});W.addProvider({provide:ob2,useValue:FAE});W.addProvider({provide:_.FP,
useClass:U9f});_.e("enable_payments_purchase_manager")&&W.addProvider({provide:hZm,useClass:zZK});W.addProvider({provide:e1v,useFactory:function(){return function(C){return _.c_d(C)}}});
W.addProvider({provide:_.vPu,useClass:dae});y={};W.addProvider((y.provide=Hx,y.useClass=Hx,y[cs]=[_.vPu],y));W.addProvider({provide:DV,useClass:DV});W.addProvider({provide:nxr,useValue:Kym});W.addProvider({provide:ZX6,useValue:_.Oeu});W.addProvider({provide:Lza,useClass:rAj});W.addProvider({provide:tPP,useValue:LXW});y={};W.addProvider((y.provide=FCu,y.useClass=EEd,y[cs]=[tPP],y));y={};W.addProvider((y.provide=_.Hu,y.useClass=z8E,y[cs]=[FCu],y));y={};W.addProvider((y.provide=_.kT,y.useClass=xT,y[cs]=
[_.w0,_.jL],y));if(_.e("web_explore_hub_on_hover")||_.e("web_client_explore_hub_on_hover"))y={},W.addProvider((y.provide=R3,y.useClass=R3,y[cs]=[_.QY,ch],y));if(_.e("web_enable_renderer_logger")){var P=new Jmt;Qga(function(){P.abort()});
W.addProvider({provide:gMn,useValue:new MQ3(P.signal)})}W.addProvider({provide:ees,useValue:iWL});y={};W.addProvider((y.provide=rvj,y.useClass=GGt,y[cs]=[_.QY],y))}},Y9C);var JU4={},RCP=(JU4.initialized={priority:10,callback:function(){if(!VhP){SrL();euP("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.MO(_.D2(euP,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.e("log_heartbeat_with_lifecycles")){var y={};zQ.instance||(zQ.instance=new zQ);zQ.instance.install((y.document_visible={callback:huz,priority:10},y.document_hidden={callback:huz,priority:10},y))}else _.Li(document,"visibilitychange",huz);VhP=!0}(y=_.Xn())&&y!=="UNDEFINED_CSN"&&V9v(y)}},JU4);var jSd={},$Gq=(jSd.initialized={callback:function(y){var W=_.ad(232091),V=y.injector.resolve(_.HB);_.U8(V,W);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?QZv()&&_.Sn(V,W):(y=y.injector.resolve(e1v)("refresh_detector"))&&(y.get("first_tab_load")?_.Sn(V,W):y.set("first_tab_load","1"))}},jSd);var nYv={},Hzm=(nYv.initialized={priority:10,callback:EBR},nYv);var X3C={},aS4=(X3C.initialized={priority:0,callback:function(){var y=new sus,W="other";_.S6?W="chrome":_.uP?W="firefox":_.yi?W="safari":O6&&(W="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(V){y.increment(_.As(),V,W)}).catch(function(){y.increment(_.As(),!1,W)}):y.increment(_.As(),!1,W)}},X3C);var Gcv={},rUt=(Gcv.rendering={priority:8,callback:NTd},Gcv);var bze={},QSt=(bze.rendering={priority:10,callback:p0G},bze.rendered={callback:Kkv},bze),Zzu={},yGv=(Zzu.rendering={callback:p0G},Zzu.rendered={callback:Kkv},Zzu);var W1m=!1,VAC={},wMC=(VAC.initialized={priority:10,callback:function(){W1m||(tKb({didPatch:function(y){y.el&&Umn(y.el,y.props)},
didUnmount:function(y){MuR(y.el)}}),W1m=!0)}},VAC);var tAv=/^\/shorts\/?$/;_.Z7("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.e("kevlar_enable_mss")){_.As4(new oFz);var F13=!0,Eue,Qs;F13=F13===void 0?!1:F13;Eue=Eue===void 0?!1:Eue;Qs=Qs===void 0?{}:Qs;var NJm=Qs.cssRowKey||"",IaE=Qs.combinedSignature||"";!NJm&&window&&window._F_cssRowKey&&(NJm=window._F_cssRowKey,!IaE&&window._F_combinedSignature&&(IaE=window._F_combinedSignature));if(NJm&&typeof window._F_installCss!=="function")throw Error("Ed");var guv=Qs.loaderClass||_.tq,ZF=fbz("base-js"),PzC,Czd=mkv("",ZF);PzC=_.jh(Czd);var yv=new guv(PzC,NJm,IaE,F13,Eue),Oae=
Qs.useCors||ZF&&ZF.hasAttribute("crossorigin"),vu4=Qs.corsMode||ZF&&ZF.getAttribute("crossorigin");Oae&&(yv.useCors_=Oae);vu4&&(yv.corsMode_=vu4);Qs.urlMaxLength&&(yv.urlMaxLength=Qs.urlMaxLength);Qs.fetchPriority&&(yv.fetchPriority=Qs.fetchPriority);var dRu=au();dRu.JSC$9980_loader_=yv;dRu.setBatchModeEnabled(!0)}
(function(){var y=document.querySelector("ytd-app");if(!y)throw Error("Rj");y=new A5({root:y,injector:_.hs()});y.install(RCP);var W={};y.install((W.initialized={priority:10,callback:twb},W));_.e("wp_lat_b")&&(W={},y.install((W.initialized={priority:10,callback:function(){NqR()}},W)));
W={};y.install((W.rendered={priority:0,callback:W3y},W));W={};y.install((W.rendered={priority:0,callback:function(){_.HU.addLowPriorityJob(function(){_.XLf>1&&(aOt(),ZrL())},4E4)}},W));
y.install(Huj);y.install($Gq);y.install(wMC);jCv();y.install(yX4);y.install(B3t);y.install($5W);y.install(eie);y.install(iqe);y.install(QGd);y.install(BUW);_.e("kevlar_enable_mss_lazy_load")&&y.install(Hzm);y.install(R1d);y.install(aS4);if(!_.W4("IS_SHELL_LOAD")||_.e("kevlar_fetch_initial_data_promise_client")||_.e("sw_nav_preload_pbj")){var V=_.U1(window.location.href);W=V&&V==="/watch";V=V&&V.match(tAv);W?y.install(yGv):V?y.install(rUt):y.install(QSt)}else y.install(sGm);y.install(afe);_.e("web_enable_prefetching_videos_on_home")&&
y.install(tm4);_.e("start_client_gcf")&&y.install(Ze3);y.install(vJv);(new AG6).increment("INSTALLED");y.install(Vme);y.install(lfE);y.transition("initialized");Zfz()})();
_.qo=[[["bmQjZ3E4eTdkcmNzNzNua2k=","dWUjNGdnM2N6Y2RoNXJmdmFs"],"RUQjNGZzNnM3ajZieGpnQURfUExBQ0VNRU5UX0tJTkRfTEFZT1VUX0lEX0VOVEVS"]];_.Mo=["a3Mja2kzYXRlemhvcDNqZ2xvYmFsQ2FsbGJhYw==","ZWQjcTFrYWJ0dGZxdmQzb25BYm5vcm1hbGl0eURldGVjdA==","aXAja2p3N3M1YnBrN3Vyb25BZFNr","c2UjOGEyMmNscXUzbm5kcmF3X3BsYXllcl9yZXNwb24=","ZXIja250bWpzZ2NzMDh6YWRzRW5nYWdlbWVudFBhbmVsUmVuZGVy"];_.Cc="a3Mja2kzYXRlemhvcDNqZ2xvYmFsQ2FsbGJhYw== ZWQjcTFrYWJ0dGZxdmQzb25BYm5vcm1hbGl0eURldGVjdA== aXAja2p3N3M1YnBrN3Vyb25BZFNr c2UjOGEyMmNscXUzbm5kcmF3X3BsYXllcl9yZXNwb24= a3Mjb2JyYTJ6Mms5c2l6d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzXw== ZWYjajAydjFuY2w0YWFmYWJfc2Ff ZXIja250bWpzZ2NzMDh6YWRzRW5nYWdlbWVudFBhbmVsUmVuZGVy".split(" ");
_._ModuleManager_initialize=function(y,W){if(!_.HM){if(!_.Xo)return;_.As4(_.Xo())}_.HM.setAllModuleInfoString(y,W)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.t9=function(y,W,V,w,t){var F={};W&&(F[W]=V);w?F.errorType=w:t&&(F.errorReason=t);_.Hp(y,F);_.Xk()};
_.FC=function(y){var W=_.FS();return _.Aki(W,y,1)};
_.a6({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 y=this.query;y&&(this.full||y[0]==="("||(y="("+y+")"),this._mq=window.matchMedia(y),this._add(),this.queryHandler(this._mq))},
queryHandler:function(y){this._setQueryMatches(y.matches)}});var fam;var TJj;var mRW=function(){};
_.E=mRW.prototype;_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E._tapHandler=function(){};
_.E._focusChanged=function(){};
_.E._detectKeyboardFocus=function(){};
_.E._userActivate=function(){};
_.E._upHandler=function(){};
_.E._spaceKeyDownHandler=function(){};
_.E._spaceKeyUpHandler=function(){};
_.E._asyncClick=function(){};
_.E._pressedChanged=function(){};
_.E._ariaActiveAttributeChanged=function(){};
_.E._activeChanged=function(){};
_.E._controlStateChanged=function(){};
_.E._changedButtonState=function(){};
_.E._focusBlurHandler=function(){};
_.E._disabledChanged=function(){};
_.E._changedControlState=function(){};
_.E._downHandler=function(){};
_.E.ensureRipple=function(){};
_.E.getRipple=function(){};
_.E.hasRipple=function(){};
_.E._noinkChanged=function(){};
_.E._focusedChanged=function(){};
_.E._createRipple=function(){};
_.E.registered=function(){};
_.E._invalidChanged=function(){};
_.E.hasValidator=function(){};
_.E.validate=function(){};
_.E._getValidity=function(){};
_.E._requiredChanged=function(){};
_.E._valueChanged=function(){};
_.E._checkedChanged=function(){};
_.E._buttonStateChanged=function(){};
_.E._setPressed=function(){};
_.E._setPointerDown=function(){};
_.E._setReceivedFocusFromKeyboard=function(){};
_.E._setFocused=function(){};
mRW=_.a6({is:"tp-yt-paper-radio-button",_template:function(){if(TJj!==void 0)return TJj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;fam===void 0&&(fam=document.createElement("template"));var w=fam;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return TJj=y},
behaviors:[_.IEi],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(){_.gy(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var y=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),W=Math.floor(3*y);W%2!==y%2&&W++;this.updateStyles({"--paper-radio-button-ink-size":W+"px"})}})}});var MA4;var qfC;_.a6({_template:function(){if(qfC!==void 0)return qfC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;MA4===void 0&&(MA4=document.createElement("template"));var w=MA4;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return qfC=y},
is:"tp-yt-paper-radio-group",behaviors:[_.KGq],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(y){var W=this._valueToItem(y);if(!W||!W.hasAttribute("disabled")){if(this.selected){W=this._valueToItem(this.selected);if(this.selected==y)if(this.allowEmptySelection)y="";else{W&&(W.checked=!0);return}W&&
(W.checked=!1)}_.PC.select.apply(this,[y]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(y){this._focusPrevious();y.preventDefault();this._activateFocusedItem()},
_onDownKey:function(y){this._focusNext();y.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(y){_.onm._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(y){_.onm._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.PC._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.aa._resetTabindices.apply(this,arguments);this.items.forEach(function(y){y.removeAttribute("aria-selected")},this)}});var URd;_.ZQ("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Eq=function(){return _.u.apply(this,arguments)||this};
_.p(Eq,_.u);_.E=Eq.prototype;_.E.computeHasPrimaryIcon=function(y){return!(!y.icon&&!y.thumbnail)};
_.E.computeHasSecondary=function(y){return!(!y.secondaryIcon&&!y.secondaryNotificationText)};
_.E.computeHideSecondaryString=function(y){return!_.e("disable_hide_empty_secondary_string")&&!y.secondaryNotificationText};
_.E.computeCompactLinkStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeHasFitHeight=function(y){return y==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.E.isActiveEndpoint=function(y){return(y=this.get("commandMetadata.webCommandMetadata.url",y))?_.U1(window.location.href)!=="/account_transfer_channel"&&_.U1(window.location.href)!=="/gaia_link"&&_.U1(window.location.href)!=="/channel_switcher"||y!=="/account"?_.U1(window.location.href)===y:!0:!1};
_.E.onTap=function(){var y;((y=this.data)==null?0:y.serviceEndpoint)&&_.i5(this.hostElement,[this.data.serviceEndpoint])};
Eq.prototype.onTap=Eq.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Eq.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.R("design:type",Boolean)],Eq.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.R("design:type",String)],Eq.prototype,"compactLinkStyle",void 0);
_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],Eq.prototype,"icon",void 0);_.J([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.R("design:type",Object)],Eq.prototype,"secondaryIcon",void 0);_.J([_.q({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Eq.prototype,"hasSecondary",void 0);_.J([_.q({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Eq.prototype,"hideSecondaryString",void 0);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Eq.prototype,"onTap",null);_.J([_.k({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Eq);
_.Y(Eq,"ytd-compact-link-renderer",function(){if(URd!==void 0)return URd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return URd=y},{mode:1});var uod;_.ZQ("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Nv=function(){var y=_.u.apply(this,arguments)||this;y.role="link";y.tabindex="0";y.actionMap=_.e("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 y};
_.p(Nv,_.u);_.E=Nv.prototype;_.E.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.H9()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.E.getCurrentTheme=function(){return _.X4()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.H9()};
_.E.onThemeSelected=function(y,W){var V=y||W?y:_.nO(),w=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tUv(_.U1(window.location.href));_.xF(0,165,y);_.xF(0,174,W);this.prefs.save();w&&_.ow(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.E.onTap=function(){this.data.serviceEndpoint&&_.i5(this.hostElement,[this.data.serviceEndpoint])};
_.E.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.E.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.E.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Nv.prototype.onTap=Nv.prototype.onTap;Nv.prototype.dataChanged=Nv.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Nv.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.vq),_.R("design:type",Object)],Nv.prototype,"paperItemBehaviors",void 0);_.J([_.q(),_.R("design:type",Object)],Nv.prototype,"data",void 0);_.J([_.q({value:function(){return _.l5()}}),
_.R("design:type",_.og)],Nv.prototype,"prefs",void 0);_.J([_.q(),_.R("design:type",Object)],Nv.prototype,"label",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Nv.prototype,"role",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Nv.prototype,"tabindex",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Nv.prototype,"dataChanged",null);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Nv.prototype,"onTap",null);_.J([_.k({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Nv);
_.Y(Nv,"ytd-toggle-theme-compact-link-renderer",function(){if(uod!==void 0)return uod;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return uod=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var DRd,laC;_.IW=function(y){return!!y.getOptions("captions")};
_.Sfu=function(y){return(y=y.getOption("captions","track"))?!!y.displayName:!1};
_.gB=function(y,W){_.at(W,y,function(){return DRd[W]},function(V){DRd[W]=V;
if(!_.e("mweb_player_ve_show_ks")){var w=_.Xn(0);w&&V&&_.NK(w,V)}})};
_.Pn=function(y){(y=DRd[y])&&_.Sn(_.BC(),y)};
DRd={};var xRC;/*

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
*/
_.a6({_template:function(){if(xRC!==void 0)return xRC;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;laC===void 0&&(laC=document.createElement("template"));var w=laC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return xRC=y},
is:"tp-yt-paper-checkbox",behaviors:[_.IEi],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.gy(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var y=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),W="px",V=y.match(/[A-Za-z]+$/);V!==null&&(W=V[0]);y=parseFloat(y);V=8/3*y;W==="px"&&(V=Math.floor(V),V%2!==y%2&&V++);this.updateStyles({"--paper-checkbox-ink-size":V+
W})}})},
_computeCheckboxClass:function(y,W){var V="";y&&(V+="checked ");W&&(V+="invalid");return V},
_computeCheckmarkClass:function(y){return y?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.EUf._createRipple.call(this)}});var kk3=new _.zf("radioButtonSurveyOptionRenderer"),suv=new _.zf("checkboxSurveyOptionRenderer");var AGj;var Yfm;var BJe=0,Ck=function(){var y=_.u.call(this)||this;y.selected=!1;y.isOverlay=!1;y.inputId="toggle-option-"+BJe;BJe++;return y};
_.p(Ck,_.u);Ck.prototype.onTap=function(){_.h1(this.hostElement,"ytd-toggle-option-clicked")};
_.J([_.q(),_.R("design:type",String)],Ck.prototype,"label",void 0);_.J([_.q(),_.R("design:type",String)],Ck.prototype,"inputId",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ck.prototype,"selected",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ck.prototype,"isOverlay",void 0);_.J([_.k({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.R("design:paramtypes",[])],Ck);
_.Y(Ck,"ytd-toggle-option-renderer",function(){if(Yfm!==void 0)return Yfm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Yfm=y},{mode:1});var Oq=function(){var y=_.u.apply(this,arguments)||this;y.isToggleOption=!1;y.isOverlay=!1;return y};
_.p(Oq,_.u);Oq.prototype.onTap=function(y){y.preventDefault();this.data&&(y=!this.data.checked,this.set("data.checked",y),_.h1(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:y,value:this.data.value}))};
_.CM.Object.defineProperties(Oq.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Oq.prototype.onTap=Oq.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Oq.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Oq.prototype,"isToggleOption",void 0);_.J([_.q(),_.R("design:type",Object)],Oq.prototype,"isOverlay",void 0);_.J([_.M("data.responseText"),_.R("design:type",String),_.R("design:paramtypes",[])],Oq.prototype,"label",null);
_.J([_.l6("ytd-toggle-option-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Oq.prototype,"onTap",null);_.J([_.k({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Oq);
_.Y(Oq,"ytd-checkbox-survey-option-renderer",function(){if(AGj!==void 0)return AGj;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AGj=y},{mode:1});var JGt;var RpP;var vn=function(){var y=_.u.apply(this,arguments)||this;y.checked=!1;y.isToggleOption=!1;return y};
_.p(vn,_.u);vn.prototype.onTap=function(){this.data&&(this.checked?_.ow(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ow(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
vn.prototype.onTap=vn.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vn.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],vn.prototype,"checked",void 0);_.J([_.q(),_.R("design:type",Object)],vn.prototype,"isToggleOption",void 0);_.J([_.l6("ytd-toggle-option-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],vn.prototype,"onTap",null);
_.J([_.k({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],vn);
_.Y(vn,"ytd-radio-button-survey-option-renderer",function(){if(RpP!==void 0)return RpP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return RpP=y},{mode:1});var dB=function(){var y=_.u.apply(this,arguments)||this;y.disableAnimation=!1;y.isToggleOption=!0;y.followUpSurveyCommand=null;y.selectedRatingEndpoint=null;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;y.styleOverrideAttribute=!0;y.isDarkMode=!1;y.isSubmitted=!1;y.roundedContainer=!0;y.improveShortsResponseRate=_.e("web_improve_shorts_response_rate");y.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 y};
_.p(dB,_.u);_.E=dB.prototype;
_.E.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"}}}}};
_.E.attached=function(){var y=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(V){var w;if((w=V[0])!=null&&w.isIntersecting){_.AY().reportShown(y.hostElement);var t;(t=y.intersectionObserver)==null||t.unobserve(y.hostElement)}},{rootMargin:"0px",
threshold:.6});var W;(W=this.intersectionObserver)==null||W.observe(this.hostElement)};
_.E.onDarkModeToggledAction=function(y){this.isDarkMode=y};
_.E.dataChanged=function(){var y;if(((y=this.data)==null?void 0:y.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var W;((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var V,w,t,F;this.darkColorPalette=(V=this.data)==null?void 0:(w=V.inlineContent)==null?void 0:(t=w.compactVideoRenderer)==null?void 0:(F=t.thumbnail)==null?
void 0:F.darkColorPalette;var I,P,C,d;this.lightColorPalette=(I=this.data)==null?void 0:(P=I.inlineContent)==null?void 0:(C=P.compactVideoRenderer)==null?void 0:(d=C.thumbnail)==null?void 0:d.lightColorPalette;var L,z;if(((L=this.data)==null?0:(z=L.inlineContent)==null?0:z.compactVideoRenderer)&&this.isShortsStyle){var c,K,f,U;y=_.TP((c=this.data)==null?void 0:(K=c.inlineContent)==null?void 0:(f=K.compactVideoRenderer)==null?void 0:(U=f.thumbnail)==null?void 0:U.thumbnails);_.qg(this.hostElement,
{"--yt-background-url":"url("+y+")"})}};
_.E.handleRequestCompletion=function(){this.hostElement.hidden&&_.h1(this.hostElement,"yt-dismissible-item-dismissed")};
_.E.onPopupClosed=function(y){var W;((W=y.detail)==null?void 0:W.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ow(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.E.handleInlineSurveyRatingSelect=function(y,W){var V=this;this.selectedRatingEndpoint=y;this.followUpSurveyCommand=W;this.expanded=!!y;this.getOptionRenderers().forEach(function(w,t){V.notifyPath("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked");V.set("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),y=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ow(this.hostElement,"yt-reel-non-video-content-dismissal-command",[y]))};
_.E.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ow(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var y,W=(y=this.data)==null?void 0:y.dismissalEndpoint;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.E.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ow(this.hostElement,"yt-close-popup-action"))};
_.E.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var y=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{y=this.getOptionRenderers().filter(function(w){return w.checked});
if(y.length===0)return;y=y.map(function(w){return w.responseEndpoint})}var W=[];
y.forEach(function(w,t){t!==0&&(w=_.h(w,_.bw))&&w.feedbackToken&&W.push(w.feedbackToken)});
if(y=y[0]){var V={};W.length>0&&(V.extra_feedback_tokens=W);this.ytComponentBehavior.resolveCommand(y,{form:V})}}};
_.E.getOptionRenderers=function(){var y=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(W){y.isSingleSelect=!!_.h(W,kk3);return y.isSingleSelect?_.h(W,kk3):_.h(W,suv)}):[]};
_.E.handleInlineSurveyOptionSelect=function(y){y=this.optionSelector.indexOf(y);y!==-1&&this.optionSelector.selectIndex(y)};
_.E.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.E.maybeGetBackgroundColor=function(y){return this.isDarkMode?y.section2Color:y.section3Color};
_.E.colorPaletteChanged=function(){var y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;y=y&&this.maybeGetBackgroundColor(y);this.dismissibleEl.style.backgroundColor=!y||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.V2(y)};
_.CM.Object.defineProperties(dB.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
dB.prototype.colorPaletteChanged=dB.prototype.colorPaletteChanged;dB.prototype.onPopupClosed=dB.prototype.onPopupClosed;dB.prototype.handleRequestCompletion=dB.prototype.handleRequestCompletion;dB.prototype.dataChanged=dB.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],dB.prototype,"actionHandlerBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],dB.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],dB.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.s$("#follow-up-survey-options"),_.R("design:type",Object)],dB.prototype,"optionSelector",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],dB.prototype,"disableAnimation",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"isToggleOption",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"followUpSurveyCommand",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"selectedRatingEndpoint",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],dB.prototype,"expanded",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dB.prototype,"isSlimlineSurveyFollowUp",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dB.prototype,"isShortsStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dB.prototype,"styleOverrideAttribute",void 0);_.J([_.q(),_.R("design:type",Boolean)],dB.prototype,"isSingleSelect",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"isDarkMode",void 0);
_.J([_.q(),_.R("design:type",Object)],dB.prototype,"lightColorPalette",void 0);_.J([_.q(),_.R("design:type",Object)],dB.prototype,"darkColorPalette",void 0);_.J([_.M("selectedRatingEndpoint","isShortsStyle"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],dB.prototype,"isOptionSelected",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dB.prototype,"roundedContainer",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dB.prototype,"improveShortsResponseRate",void 0);_.J([_.s$("#dismissible"),_.R("design:type",HTMLElement)],dB.prototype,"dismissibleEl",void 0);_.J([_.s$("#dismiss-button yt-icon-button"),_.R("design:type",HTMLElement)],dB.prototype,"dismissButtonEl",void 0);_.J([_.s$("#inline-survey-header yt-icon-button"),_.R("design:type",HTMLElement)],dB.prototype,"inlineHeaderDismissButtonEl",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dB.prototype,"dataChanged",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dB.prototype,"handleRequestCompletion",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dB.prototype,"onPopupClosed",null);
_.J([_.xA("darkColorPalette","lightColorPalette","isDarkMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dB.prototype,"colorPaletteChanged",null);_.J([_.k({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],dB);
_.Y(dB,"ytd-inline-survey-renderer",function(){if(JGt!==void 0)return JGt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return JGt=y},{mode:1});var juC=["en-CA","en","es-MX","fr-CA"];_.$Rm=_.eY(function(y){var W=_.zb(y,{isOverlay:!1,isModern:!1}),V=W.captionIconType,w=W.onClick;y=W.ariaLabel;var t=W.ariaPressed,F=W.isOverlay,I=W.isModern;W=_.I0("button",function(d){_.gB(d,127299)});
var P=_.YS(function(d){_.Pn(127299);w==null||w(d);return!1}),C={};
return _.O("ytm-closed-captioning-button",{class:_.kS("ytmClosedCaptioningButtonHost",(C.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return V()===-1&&F()},C.ytmClosedCaptioningButtonIconDisabled=function(){return V()===-1&&!F()},C))},_.O("button",{el:W,
class:"ytmClosedCaptioningButtonButton",title:y,"aria-label":y,"aria-pressed":t,"on:click":P},_.O(_.jl,{icon:function(){var d="",L=I();var z=L?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";L=L?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var c=_.l5().get("hl");z=!c||juC.includes(c)?z:L;L=V();switch(L){case -1:case 0:d=z;break;case 1:d=z+"_FILLED";break;default:_.gW(L)}return d}})))},"nf");
_.$Rm.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.KP=function(y){return function(W,V){var w=y||V.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(W,V,{get:function(){var t;return this.$?this.$[w]:(t=_.kA(this))==null?void 0:t.querySelector("#"+w)},
enumerable:!0,configurable:!0})}};_.pP=function(y){y=y===void 0?!1:y;_.Ru.call(this);this.pubSub_=new _.D3(y);_.Uf(this,this.pubSub_)};
_.pF(_.pP,_.Ru);_.pP.prototype.subscribe=function(y,W,V){return this.isDisposed()?0:this.pubSub_.subscribe(y,W,V)};
_.pP.prototype.unsubscribe=function(y,W,V){return this.isDisposed()?!1:this.pubSub_.unsubscribe(y,W,V)};
_.pP.prototype.unsubscribeByKey=function(y){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(y)};
_.pP.prototype.publish=function(y,W){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var wTt=function(){_.t9("ypcRedeemFlowStarted")},OD=function(y){_.t9("ypcRedeemFlowFailed",void 0,void 0,void 0,y)},t8j=function(y,W,V){W&&V&&(y.videos.forEach(function(w){w.videoId===W&&(w.itemId=V)}),y.recommendedVideos.forEach(function(w){w.videoId===W&&(w.itemId=V)}))};var Fcj;var Ezm;/*

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
*/
_.a6({_template:function(){if(Ezm!==void 0)return Ezm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Fcj===void 0&&(Fcj=document.createElement("template"));var w=Fcj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Ezm=y},
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(y,W){var V=this._resolveSrc(y);V!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",y===""||W?this._setLoading(!1):(this._resolvedSrc=V,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 y=this.$.sizedImgDiv.style,W=this.$.placeholder.style;y.backgroundSize=W.backgroundSize=this.sizing;y.backgroundPosition=W.backgroundPosition=this.sizing?this.position:"";y.backgroundRepeat=W.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(y){y=_.hL(y,this.$.baseURIAnchor.href);y.length>=2&&y[0]==="/"&&y[1]!=="/"&&(y=(location.origin||location.protocol+"//"+location.host)+y);return y}});var NN3;var Icm;_.a6({_template:function(){if(Icm!==void 0)return Icm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;NN3===void 0&&(NN3=document.createElement("template"));var w=NN3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Icm=y},
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(y){return y?"false":"true"},
_headingChanged:function(y){var W=this.getAttribute("heading"),V=this.getAttribute("aria-label");typeof V==="string"&&V!==W||this.setAttribute("aria-label",y)},
_computeHeadingClass:function(y){return y?" over-image":""},
_computeAnimated:function(y){return y}});var gz4=new _.zf("addRendererToItemSectionAction");var PZj;var vi=function(){return _.u.apply(this,arguments)||this};
_.p(vi,_.u);vi.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vi.prototype,"rendererBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],vi.prototype,"dismissibleItemBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vi.prototype,"rendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vi.prototype,"data",void 0);_.J([_.k({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],vi);
_.Y(vi,"ytd-comment-history-entry-renderer",function(){if(PZj!==void 0)return PZj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return PZj=y},{mode:1});var CZj;_.ZQ("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.ZQ("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var dq=function(){return _.u.apply(this,arguments)||this};
_.p(dq,_.u);_.E=dq.prototype;_.E.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.onKeyUp=function(y){if(y.keyCode===13)this.onTap()};
_.E.onTap=function(){this.data.recordClickEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var y=this.data.navigationEndpoint;y&&_.h(y,_.Zs)&&_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})};
_.E.readChanged=function(){var y;_.TA(this.hostElement,"unread",!((y=this.data)==null?0:y.read))};
_.E.dataChanged=function(){this.data&&_.TA(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.E.computeThumbnailSize=function(){var y;return((y=this.data)==null?0:y.highPriorityNotification)?32:48};
_.E.getEndpointURL=function(y){return y&&!_.h(y,_.Zs)?this.componentBehavior.computeHref_(y):null};
_.E.getEndpointData=function(y){return y&&!_.h(y,_.Zs)?y:null};
dq.prototype.computeThumbnailSize=dq.prototype.computeThumbnailSize;dq.prototype.dataChanged=dq.prototype.dataChanged;dq.prototype.readChanged=dq.prototype.readChanged;dq.prototype.onKeyUp=dq.prototype.onKeyUp;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],dq.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dq.prototype,"data",void 0);_.J([_.q({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.R("design:type",Number)],dq.prototype,"thumbnailSize",void 0);_.J([_.l6("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],dq.prototype,"onKeyUp",null);
_.J([_.xA("data.read"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dq.prototype,"readChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dq.prototype,"dataChanged",null);_.J([_.xA("data.highPriorityNotification"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dq.prototype,"computeThumbnailSize",null);
_.J([_.k({is:"ytd-notification-renderer",disableElementRegistration:!0})],dq);
_.Y(dq,"ytd-notification-renderer",function(){if(CZj!==void 0)return CZj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return CZj=y},{mode:1});var OZu;var LE=function(){return _.u.apply(this,arguments)||this};
_.p(LE,_.u);LE.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"}}}};
LE.prototype.computeActionButtonClass=function(y){return!y.actionButtons||y.actionButtons.length<=1?"single-button":y.description?"vertical-buttons":"horizontal-buttons"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LE.prototype,"data",void 0);_.J([_.k({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],LE);
_.Y(LE,"ytd-playlist-show-metadata-renderer",function(){if(OZu!==void 0)return OZu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return OZu=y},{mode:1});var vzt;_.ZQ("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var zO=function(){return _.u.apply(this,arguments)||this};
_.p(zO,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zO.prototype,"data",void 0);_.J([_.k({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],zO);
_.Y(zO,"ytd-purchase-item-renderer",function(){if(vzt!==void 0)return vzt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vzt=y},{mode:1});var dAj;var Lce={};Lce.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(y){if(y)return y.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(y){if(y==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.ZQ("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ci=function(){return _.u.apply(this,arguments)||this};
_.p(ci,_.u);ci.prototype.onYtNavigate=function(y){var W=this.openPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.openPopupBehavior.openPopup(W))};
ci.prototype.onYtNavigate=ci.prototype.onYtNavigate;_.J([_.m(Lce.YtSimpleTextSectionBehavior),_.R("design:type",Object)],ci.prototype,"ytSimpleTextSectionBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],ci.prototype,"openPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ci.prototype,"data",void 0);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ci.prototype,"onYtNavigate",null);_.J([_.k({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ci);
_.Y(ci,"ytd-simple-text-section-renderer",function(){if(dAj!==void 0)return dAj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dAj=y},{mode:1});var zoP;_.ZQ("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var eu=function(){return _.u.apply(this,arguments)||this};
_.p(eu,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eu.prototype,"data",void 0);_.J([_.k({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],eu);
_.Y(eu,"ytd-unlimited-page-feature-info-renderer",function(){if(zoP!==void 0)return zoP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zoP=y},{mode:1});var cej;var eoq;var h6=function(){return _.u.apply(this,arguments)||this};
_.p(h6,_.u);h6.prototype.dataChanged=function(){if(this.data){var y=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);y&&(y=_.f5(y,screen.width),this.hostElement.style.backgroundImage="url("+y+")")}};
h6.prototype.dataChanged=h6.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],h6.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h6.prototype,"dataChanged",null);_.J([_.k({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],h6);
_.Y(h6,"ytd-post-redemption-section-renderer",function(){if(eoq!==void 0)return eoq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return eoq=y},{mode:1});var hoj;var oC=function(){return _.u.apply(this,arguments)||this};
_.p(oC,_.u);oC.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oC.prototype,"data",void 0);_.J([_.k({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],oC);
_.Y(oC,"ytd-ypc-post-redemption-renderer",function(){if(hoj!==void 0)return hoj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return hoj=y},{mode:1});_.ZQ("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var KE=function(){var y=_.u.apply(this,arguments)||this;y.MIN_CODE_LENGTH=12;y.MAX_CODE_LENGTH=24;return y};
_.p(KE,_.u);_.E=KE.prototype;_.E.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.E.created=function(){this.riskService=new _.JHu;this.loadPaymentThenable=_.jFb(_.yC("YPC_MB_URL"))};
_.E.ready=function(){var y=this;this.code.addEventListener("keypress",function(W){y.onCodeInputKeypress(W)})};
_.E.dataChanged=function(){var y=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(W){W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,V.type==="attributes"&&V.attributeName==="dark"&&y.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.E.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var y=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+y+")")}};
_.E.computeRedeemButton=function(y){(y=this.get("redeemButton.buttonRenderer",y))&&(y=Object.assign({},y,{serviceEndpoint:void 0}));return y};
_.E.onRedeemButtonTap=function(y){y.stopPropagation();wTt();this.redeemCode()};
_.E.redeemCode=function(){var y=this;this.isLoading=!0;var W=this.riskService.init();_.jI([W,this.loadPaymentThenable]).then(function(){var V=y.data.redeemButton.buttonRenderer.serviceEndpoint,w=_.RVL(),t=payments.business.integration.ClientTokenFactory.createClientToken(_.h(V,_.sYQ).countryCode,w);w={c:y.code.value.trim(),rd:window.btoa(w),ctk:t};V&&_.hs().resolve(_.oA).resolveCommand(V,{form:Object.assign({},w,{element:y.hostElement})})},function(){y.showGenericError();
OD("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.VC(Error("lo"))})};
_.E.onYtServiceRequestCompleted=function(y){y.stopPropagation();this.isLoading=!1;var W,V;this.errorMessage=(W=y.detail)==null?void 0:(V=W.data)==null?void 0:V.errorMessage;var w,t;this.postRedemptionRenderer=(w=y.detail)==null?void 0:(t=w.data)==null?void 0:t.renderer;var F,I;if(y=(F=y.detail)==null?void 0:(I=F.data)==null?void 0:I.redirectEndpoint)this.isLoading=!0,_.h1(this.hostElement,"yt-navigate",{endpoint:y});this.errorMessage?OD("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
y)&&_.t9("ypcRedeemFlowSucceeded")};
_.E.onYtServiceRequestError=function(y){y.stopPropagation();this.isLoading=!1;if(y=this.get("detail.error.message",y))this.errorMessage=_.CO(y);OD("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.E.onInvokeInstrumentManagerActionCompleted=function(y){y.stopPropagation();this.redeemCode()};
_.E.onInvokeInstrumentManagerActionError=function(y){y.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",y)){case "instrumentManagerLoadError":this.showGenericError();OD("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();OD("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.t9("ypcRedeemFlowCancelled")}};
_.E.onInput=function(){var y=this;_.NM(this,"onInput",function(){var W=y.code.value.trim();y.redeemButtonDisabled=W.length<y.MIN_CODE_LENGTH||W.length>y.MAX_CODE_LENGTH},200)};
_.E.onCodeInputKeypress=function(y){y.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(wTt(),this.redeemCode())};
_.E.computeImageUrl=function(y){return y?_.f5(y.thumbnails,600):null};
_.E.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
KE.prototype.onInvokeInstrumentManagerActionError=KE.prototype.onInvokeInstrumentManagerActionError;KE.prototype.onInvokeInstrumentManagerActionCompleted=KE.prototype.onInvokeInstrumentManagerActionCompleted;KE.prototype.onYtServiceRequestError=KE.prototype.onYtServiceRequestError;KE.prototype.onYtServiceRequestCompleted=KE.prototype.onYtServiceRequestCompleted;KE.prototype.dataChanged=KE.prototype.dataChanged;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KE.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],KE.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Boolean)],KE.prototype,"redeemButtonDisabled",void 0);
_.J([_.q(),_.R("design:type",Object)],KE.prototype,"errorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],KE.prototype,"postRedemptionRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],KE.prototype,"observer",void 0);_.J([_.s$("#code"),_.R("design:type",HTMLInputElement)],KE.prototype,"code",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KE.prototype,"dataChanged",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onYtServiceRequestError",null);
_.J([_.l6("yt-invoke-instrument-manager-action-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.J([_.l6("yt-invoke-instrument-manager-action-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onInvokeInstrumentManagerActionError",null);_.J([_.k({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],KE);
_.Y(KE,"ytd-redeem-code-renderer",function(){if(cej!==void 0)return cej;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cej=y},{mode:1});var oz4;_.ZQ("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var pE=function(){var y=_.u.apply(this,arguments)||this;y.businessEmailDisplayState="HIDE_SECTION";return y};
_.p(pE,_.u);_.E=pE.prototype;_.E.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}}}}}};
_.E.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"};
_.E.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.E.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ym(_.qwq),this.businessEmailDisplayState="CAPTCHA"))};
_.E.onYtServiceRequestCompleted=function(y){var W;if((W=y.detail.data)==null?0:W.businessEmail)this.businessEmail=y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=y.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.E.computeEmailHref=function(y){return"mailto:"+y};
_.E.computeSafeUrl=function(y){if(y)return _.ye(y)};
_.E.onBusinessEmailCaptchaSubmit=function(){var y;(y=this.data)!=null&&y.onBusinessEmailRevealClickCommand&&(y=this.JSC$21389_captchaTextarea.value)&&(y={recaptcha_response_token:y,channel_id:this.data.channelId},_.hs().resolve(_.oA).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},y,{element:this.hostElement})}))};
_.E.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.CM.Object.defineProperties(pE.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 y,W;return!((y=this.data)==null||!y.primaryLinks)&&!((W=this.data)==null?0:W.links)&&this.data.primaryLinks.every(function(V){return V.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.primaryLinks)&&!((W=this.data)==null?0:W.links)&&!this.shouldShowNewLinks}}});
pE.prototype.onYtServiceRequestCompleted=pE.prototype.onYtServiceRequestCompleted;pE.prototype.dataChanged=pE.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.s$("#g-recaptcha-response"),_.R("design:type",HTMLTextAreaElement)],pE.prototype,"JSC$21389_captchaTextarea",void 0);_.J([_.q(),_.R("design:type",Object)],pE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],pE.prototype,"businessEmailDisplayState",void 0);_.J([_.q(),_.R("design:type",String)],pE.prototype,"businessEmail",void 0);_.J([_.q(),_.R("design:type",String)],pE.prototype,"businessEmailErrorMessage",void 0);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pE.prototype,"hideDetailsSection",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pE.prototype,"dataChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pE.prototype,"shouldShowNewLinks",null);_.J([_.M("data","shouldShowLinks"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pE.prototype,"shouldShowLegacyLinks",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],pE.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],pE);
_.Y(pE,"ytd-channel-about-metadata-renderer",function(){if(oz4!==void 0)return oz4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return oz4=y},{mode:1});var Kcj;_.ZQ("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var iL=function(){return _.u.apply(this,arguments)||this};
_.p(iL,_.u);iL.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]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],iL.prototype,"lockupContainerType",void 0);_.J([_.q(),_.R("design:type",String)],iL.prototype,"thumbnailFixedWidth",void 0);
_.J([_.k({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],iL);
_.Y(iL,"ytd-channel-featured-content-renderer",function(){if(Kcj!==void 0)return Kcj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Kcj=y},{mode:1});var pTj;_.ZQ("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var fE=function(){var y=_.u.apply(this,arguments)||this;y.roundContainer=!0;y.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return y};
_.p(fE,_.u);_.E=fE.prototype;_.E.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E.dataChanged=function(){this.imageWidth=this.imageHeight=24;var y=this.data;y.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!y.style&&y.image&&y.image.thumbnails.length&&(y=y.image.thumbnails[0],this.imageWidth=y.width||0,this.imageHeight=y.height||0)};
_.E.computeSource=function(y){return y.secondarySource?_.OT(y.secondarySource):_.OT(y.source)};
_.E.computeClarifyStyle=function(y){return y?y.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.E.isLargeStyle=function(y){return y==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.E.computeBackgroundStyle=function(y){return y?y.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.E.computeHasActionButton=function(y){return!!y.actionButton};
_.E.computeHasBottomSection=function(y){return!!y.ctaHasBottomSection};
_.E.computeIsSourceMissing=function(y){return y.ctaHasBottomSection===!1?!0:y&&this.computeSource(y)?!1:!0};
_.E.computeSecondaryEndpoint=function(y){return y.secondaryEndpoint||y.endpoint};
fE.prototype.dataChanged=fE.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],fE.prototype,"imageWidth",void 0);_.J([_.q(),_.R("design:type",Number)],fE.prototype,"imageHeight",void 0);
_.J([_.q({computed:"computeSecondaryEndpoint(data)"}),_.R("design:type",Object)],fE.prototype,"secondaryEndpoint",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.R("design:type",Boolean)],fE.prototype,"hasActionButton",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.R("design:type",Boolean)],fE.prototype,"hasBottomSection",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.R("design:type",Boolean)],fE.prototype,"missingSource",void 0);_.J([_.q({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],fE.prototype,"icon",void 0);_.J([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.R("design:type",String)],fE.prototype,"secondaryIcon",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.R("design:type",String)],fE.prototype,"clarifyStyle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.R("design:type",String)],fE.prototype,"backgroundStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fE.prototype,"roundContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],fE.prototype,"amsterdamEnabled",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fE.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-clarification-renderer",disableElementRegistration:!0})],fE);
_.Y(fE,"ytd-clarification-renderer",function(){if(pTj!==void 0)return pTj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return pTj=y},{mode:1});var iZt;var fce;var TO=function(){var y=_.u.apply(this,arguments)||this;y.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return y};
_.p(TO,_.u);_.E=TO.prototype;_.E.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E.computeIcon=function(y){return y?"yt-icons:"+y.toLowerCase():null};
_.E.computeUseContacts=function(y){return!!y.contacts&&y.contacts.length>0};
_.E.computePhoneContact=function(y){var W,V;return(W=y.contacts)==null?void 0:(V=W.find(function(w){var t;return(w==null?void 0:(t=w.icon)==null?void 0:t.iconType)==="PHONE"}))==null?void 0:V.actionText};
_.E.computeSmsContact=function(y){var W,V;return(W=y.contacts)==null?void 0:(V=W.find(function(w){var t;return(w==null?void 0:(t=w.icon)==null?void 0:t.iconType)==="SMS"}))==null?void 0:V.actionText};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],TO.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],TO.prototype,"amsterdamEnabled",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.R("design:type",Boolean)],TO.prototype,"useContacts",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.R("design:type",String)],TO.prototype,"phoneContact",void 0);_.J([_.k({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],TO);
_.Y(TO,"ytd-single-action-emergency-support-renderer",function(){if(fce!==void 0)return fce;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return fce=y},{mode:1});_.ZQ("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var mt=function(){var y=_.u.apply(this,arguments)||this;y.roundedContainer=!0;y.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return y};
_.p(mt,_.u);mt.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mt.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],mt.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],mt.prototype,"amsterdamEnabled",void 0);
_.J([_.k({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],mt);
_.Y(mt,"ytd-emergency-onebox-renderer",function(){if(iZt!==void 0)return iZt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return iZt=y},{mode:1});var TNv;_.ZQ("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Mm=function(){return _.u.apply(this,arguments)||this};
_.p(Mm,_.u);Mm.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Mm.prototype,"data",void 0);_.J([_.k({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Mm);
_.Y(Mm,"ytd-exploratory-results-renderer",function(){if(TNv!==void 0)return TNv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TNv=y},{mode:1});var mAC;_.ZQ("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var qm=function(){var y=_.u.apply(this,arguments)||this;y.messageData=null;return y};
_.p(qm,_.u);_.E=qm.prototype;_.E.onServiceRequestCompleted=function(y,W){y=W.actions||[];W=0;for(var V=y.length;W<V;W++){var w=y[W],t=void 0,F=void 0;if((t=_.h(w,_.Rx))==null?0:(F=t.item)==null?0:F.messageRenderer)this.messageData=_.h(w,_.Rx).item.messageRenderer}};
_.E.dataChanged=function(){var y=this.data;this.hostElement.hidden=!1;_.TA(this.hostElement,"is-channel",y&&!y.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.E.computeThumbnailWidth=function(y){return y?126:56};
_.E.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.E.onSubmitTap=function(){var y=this.data,W=this.selectedResponseIndex;y!==void 0&&W!==void 0&&(y=y.responses[W],y.responseData&&_.hs().resolve(_.oA).resolveCommand(y.responseData,{form:{element:this.hostElement}}))};
_.E.onDismissTap=function(){this.hostElement.hidden=!0;var y=this.data;y!==void 0&&y.dismissalEndpoint&&_.hs().resolve(_.oA).resolveCommand(y.dismissalEndpoint,{form:{element:this.hostElement}})};
_.E.updateSelectedResponseIndexFromBinding=function(y){this.selectedResponseIndex=y.detail.value};
qm.prototype.onSelectedResponseIndexChange=qm.prototype.onSelectedResponseIndexChange;qm.prototype.dataChanged=qm.prototype.dataChanged;qm.prototype.onServiceRequestCompleted=qm.prototype.onServiceRequestCompleted;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qm.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],qm.prototype,"messageData",void 0);
_.J([_.q(),_.R("design:type",Number)],qm.prototype,"selectedResponseIndex",void 0);_.J([_.s$("#submit-button"),_.R("design:type",HTMLButtonElement)],qm.prototype,"submitButton",void 0);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],qm.prototype,"onServiceRequestCompleted",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qm.prototype,"dataChanged",null);
_.J([_.xA("selectedResponseIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qm.prototype,"onSelectedResponseIndexChange",null);_.J([_.k({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],qm);
_.Y(qm,"ytd-feedback-elicitation-single-question-renderer",function(){if(mAC!==void 0)return mAC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mAC=y},{mode:1});var M83;var UD=function(){return _.u.apply(this,arguments)||this};
_.p(UD,_.u);UD.prototype.computeThumbnailWidth=function(y){return y?602:428};
UD.prototype.updateWideFromBinding=function(y){this.wide=y.detail.value};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],UD.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],UD.prototype,"wide",void 0);_.J([_.k({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],UD);
_.Y(UD,"ytd-newspaper-hero-video-renderer",function(){if(M83!==void 0)return M83;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return M83=y},{mode:1});var qaP;var uL=function(){return _.u.apply(this,arguments)||this};
_.p(uL,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uL.prototype,"rendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uL.prototype,"data",void 0);_.J([_.k({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],uL);
_.Y(uL,"ytd-newspaper-mini-video-renderer",function(){if(qaP!==void 0)return qaP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qaP=y},{mode:1});var UAj;_.ZQ("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Su=function(){return _.u.apply(this,arguments)||this};
_.p(Su,_.u);Su.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"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Su.prototype,"data",void 0);_.J([_.k({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Su);
_.Y(Su,"ytd-newspaper-renderer",function(){if(UAj!==void 0)return UAj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UAj=y},{mode:1});var u5e;_.ZQ("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Dv=function(){var y=_.u.apply(this,arguments)||this;y.isSegment=!1;y.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};y.nextContinuation={continuationType:"playlistVideoListContinuation"};return y};
_.p(Dv,_.u);_.E=Dv.prototype;_.E.attached=function(){_.hs();var y;(y=_.hs().resolve(_.eX(_.LW)))!=null&&(y.playlistVideoListElement=this.hostElement)};
_.E.detached=function(){var y;(y=_.hs().resolve(_.eX(_.LW)))!=null&&(y.playlistVideoListElement=void 0);y=_.hs().resolve(_.eX(_.TT));_.e("web_enable_voting_animation")&&y&&(y.parentElem=void 0,y.videos=[],y.continuationsPresent=!1,y.showRefreshPill=!1)};
_.E.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"}}}}}};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E.dataChanged=function(){var y=_.hs().resolve(_.eX(_.TT));if(_.e("web_enable_voting_animation")&&this.data&&y){var W=_.i6(this.hostElement).querySelector("#contents");W&&(y.parentElem=W);y.addVideos(this.data.contents)}_.Lzr(this.ytReorderableBehavior)};
_.E.onRendererstamperFinished=function(){this.canReorder&&_.zNR(this.ytReorderableBehavior,_.i6(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.E.onPlaylistReloading=function(){this.isReloading=!0};
_.E.onUpdateSetVideoId=function(y){if(y.detail&&this.data&&this.data.contents){var W=y.detail;y=this.data.contents.findIndex(function(t){var F;return((F=t.playlistVideoRenderer)==null?void 0:F.videoId)===W.videoId});
if(!(y<0)&&W.setVideoId&&(this.set("data.contents."+y+".playlistVideoRenderer.setVideoId",W.setVideoId),_.e("web_enable_voting_animation"))){var V;if(y=_.h((V=this.data.contents[y].playlistVideoRenderer)==null?void 0:V.engagementBar,_.gb4)){var w;(w=y.actions)==null||w.forEach(function(t){if(t=_.h(t,_.PDa))t.itemId=W.setVideoId})}(V=_.hs().resolve(_.eX(_.TT)))&&t8j(V,W.videoId,W.setVideoId)}}};
_.E.computeContentsClass=function(y){return y?"reloading":""};
_.E.computeIsSortable=function(y,W){return y&&W>0&&!this.isSegment&&!_.e("shorts_in_playlists_web")};
_.E.computeIsEditable=function(y){return y};
_.E.computeCanReorder=function(y){return y};
_.E.handlePlaylistRemoveVideosAction=function(y){if(this.get("playlistRemoveVideosAction.setVideoIds",y)&&this.data&&this.data.contents){y=_.h(y,_.RSs).setVideoIds;for(var W=this.data.contents.length-1;W>=0;){var V=this.data.contents[W].playlistVideoRenderer;V&&V.setVideoId&&y.includes(V.setVideoId)&&this.splice("data.contents",W,1);W--}_.ow(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.E.updateIndices=function(){if(this.data&&this.data.contents)for(var y=0;y<this.data.contents.length;y++)this.set("data.contents."+y+".playlistVideoRenderer.index",_.CO(String(y+1)))};
_.E.handleDrop=function(y){y=y.currDragItem;var W=_.RR(y.parentNode.childNodes,y),V=this.data.contents.splice(Number(_.OT(y.data.index))-1,1)[0];this.data.contents.splice(W,0,V);W=W?this.get("contents."+(W-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();y=this.buildReorderServiceEndpoint(y.data.setVideoId,W);this.ytComponentBehavior.resolveCommand(y)};
_.E.buildReorderServiceEndpoint=function(y,W){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",y),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",W),this.data.onReorderEndpoint):null};
_.E.handleUpdatePlaylistAction=function(y){var W;(y=_.h((W=_.h(y,_.jyR))==null?void 0:W.updatedRenderer,_.Ism))&&this.canReorder!==y.canReorder&&this.set("data.canReorder",y.canReorder);y&&y.contents&&(this.set("data.contents",y.contents),this.isReloading=!1);y&&y.continuations&&this.set("data.continuations",y.continuations)};
_.E.handleAddRendererToItemSectionAction=function(y){var W,V=(W=_.h(y,gz4))==null?void 0:W.renderer,w;V&&((w=_.h(y,gz4))==null?void 0:w.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,V),y=_.hs().resolve(_.eX(_.TT)),_.e("web_enable_voting_animation")&&y&&(V&&(W=_.IzG(V))&&y.recommendedVideos.push({itemId:W,videoId:_.CDu(V),voteCount:_.OSz(V),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.E.isVotingEnabledOnPlaylist=function(y){if(!y)return!1;y=_.N(y);for(y=y.next();!y.done;y=y.next()){var W=void 0;return!!_.h((W=y.value.playlistVideoRenderer)==null?void 0:W.engagementBar,_.gb4)}return!1};
_.E.onAppendContinuationItemsActionFinished=function(){var y;this.isVotingEnabledOnPlaylist((y=this.data)==null?void 0:y.contents)&&(this.updateIndices(),y=_.hs().resolve(_.eX(_.TT)),_.e("web_enable_voting_animation")&&y&&this.data&&y.addVideos(this.data.contents))};
_.E.updateVideoData=function(y){if(y.detail&&this.data&&this.data.contents){var W=y.detail;y=W.toIdx;var V=W.itemId,w=W.newVoteCount,t=W.voteStatus;W=W.hideItem;var F,I,P=(F=this.data)==null?void 0:(I=F.contents)==null?void 0:I.findIndex(function(z){return _.IzG(z)===V});
if(!(P<0)){F=this.data.contents[P];var C;if((C=F.playlistVideoRenderer)==null?0:C.voteCount)F.playlistVideoRenderer.voteCount=w;var d;if(C=_.h((d=F.playlistVideoRenderer)==null?void 0:d.engagementBar,_.gb4)){var L;(L=C.actions)==null||L.forEach(function(z){(z=_.h(z,_.PDa))&&z.initialState&&(z.initialState.votes=w,z.initialState.status=t)})}this.data.contents.splice(P,1);
W||this.data.contents.splice(y,0,F);this.updateIndices()}}};
Dv.prototype.updateVideoData=Dv.prototype.updateVideoData;Dv.prototype.onAppendContinuationItemsActionFinished=Dv.prototype.onAppendContinuationItemsActionFinished;Dv.prototype.onUpdateSetVideoId=Dv.prototype.onUpdateSetVideoId;Dv.prototype.onPlaylistReloading=Dv.prototype.onPlaylistReloading;Dv.prototype.onRendererstamperFinished=Dv.prototype.onRendererstamperFinished;Dv.prototype.dataChanged=Dv.prototype.dataChanged;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Dv.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],Dv.prototype,"ytNextContinuationBehavior",void 0);
_.J([_.m(_.c5z),_.R("design:type",Object)],Dv.prototype,"ytReorderableBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],Dv.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dv.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],Dv.prototype,"isReloading",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Dv.prototype,"isSegment",void 0);_.J([_.q({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.R("design:type",Boolean)],Dv.prototype,"isSortable",void 0);_.J([_.q({computed:"computeIsEditable(data.isEditable)"}),_.R("design:type",Boolean)],Dv.prototype,"isEditable",void 0);_.J([_.q({computed:"computeCanReorder(data.canReorder)"}),_.R("design:type",Boolean)],Dv.prototype,"canReorder",void 0);
_.J([_.q({value:101}),_.R("design:type",Number)],Dv.prototype,"scrollMargin",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dv.prototype,"dataChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dv.prototype,"onRendererstamperFinished",null);
_.J([_.l6("yt-playlist-reloading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dv.prototype,"onPlaylistReloading",null);_.J([_.l6("yt-update-set-video-id"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Dv.prototype,"onUpdateSetVideoId",null);
_.J([_.l6("yt-append-continuation-items-action-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dv.prototype,"onAppendContinuationItemsActionFinished",null);_.J([_.l6("yt-update-video-data-voting-animation"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Dv.prototype,"updateVideoData",null);_.J([_.k({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Dv);
_.Y(Dv,"ytd-playlist-video-list-renderer",function(){if(u5e!==void 0)return u5e;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return u5e=y},{mode:_.qM("kevlar_poly_si_batch_j047")?1:2});var Sa4;var lL=function(){return _.u.apply(this,arguments)||this};
_.p(lL,_.u);lL.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"}}}}};
lL.prototype.onTextWrapperTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.h1(this.hostElement,"yt-navigate",{endpoint:W})};
lL.prototype.dataChanged=function(){var y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");y&&y.commandMetadata&&_.h(y.commandMetadata,_.Xf)&&_.h(y.commandMetadata,_.Xf).fireAutomatically&&_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})};
lL.prototype.dataChanged=lL.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gZ),_.R("design:type",Object)],lL.prototype,"ytdLockupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lL.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],lL.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],lL.prototype,"biggerThumbsStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],lL.prototype,"leftAligned",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lL.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-movie-renderer"})],lL);
_.Y(lL,"ytd-movie-renderer",function(){if(Sa4!==void 0)return Sa4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Sa4=y},{mode:1});var DAq;var xl=function(){var y=_.u.apply(this,arguments)||this;y.rounded=!0;y.pageAttachedTo=void 0;y.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return y};
_.p(xl,_.u);xl.prototype.attached=function(){this.pageAttachedTo=_.hs().resolve(_.hn).getCurrentPage();_.h1(this.hostElement,"yt-player-attached",this.player)};
xl.prototype.detached=function(){var y;if((y=this.pageAttachedTo)==null?0:y.hostElement)_.h1(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
xl.prototype.dataChanged=function(){var y;if((y=this.data)==null?0:y.videoId)y={video_id:this.data.videoId,autoplay:!0},!_.e("miniplayer_stop_channel_video_autoplay_killswitch")&&_.hs().resolve(_.VH).isMiniplayerActive()&&(y.pause_at_start=!0,y.autoplay=!1),this.player.loadVideoWithPlayerVars(y)};
xl.prototype.handleSignalActionPausePlayer=function(){_.pn().pause()};
xl.prototype.dataChanged=xl.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],xl.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],xl.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],xl.prototype,"rounded",void 0);_.J([_.s$("#player"),_.R("design:type",Object)],xl.prototype,"player",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xl.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],xl);
_.Y(xl,"ytd-channel-video-player-renderer",function(){if(DAq!==void 0)return DAq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DAq=y},{mode:1});var lcW;var xAm;var k1m;var kl=function(){var y=_.u.apply(this,arguments)||this;y.playing=!1;y.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.tA(y);y.active=!1;return y};
_.p(kl,_.u);_.E=kl.prototype;_.E.detached=function(){this.stop()};
_.E.play=function(){var y=this,W,V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return y.active=!0,W=y.get("data.inlinePlaybackEndpoint.watchEndpoint"),V=W.videoId||y.data.videoId,w=W.startTimeSeconds||0,t=W.playerParams||null,_.e("kevlar_player_update_killswitch")?I.yield(y.playerEl.update({args:{video_id:V,startSeconds:w,player_params:t}}),2):(y.playerEl.loadVideoWithPlayerVars({video_id:V,startSeconds:w,player_params:t,autoplay:!0}),I.jumpTo(2));if(I.nextAddress!=4)return I.yield(y.playerEl.getPlayerPromise(),
4);F=I.yieldResult;F.unloadModule("annotations_module");F.addEventListener("onStateChange",function(P){y.onPlayerStateChange(P)});
_.B7(I)})};
_.E.onPlayerStateChange=function(y){if(this.active)switch(this.playing=y===1,y){case 1:_.h1(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.h1(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.E.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.E.resize=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.playerEl.getPlayerPromise(),2);W=V.yieldResult;W.setSize(NaN,NaN);_.B7(V)})};
_.J([_.q(),_.R("design:type",Object)],kl.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],kl.prototype,"playing",void 0);_.J([_.q(),_.R("design:type",Object)],kl.prototype,"playerId",void 0);_.J([_.s$("#player"),_.R("design:type",Object)],kl.prototype,"playerEl",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],kl);
_.Y(kl,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(k1m!==void 0)return k1m;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return k1m=y},{mode:1});var s9v;var Aee;var sD=function(){var y=_.u.apply(this,arguments)||this;y.width=0;return y};
_.p(sD,_.u);_.E=sD.prototype;_.E.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Dp(this,this.onEnded));this.mp4El.addEventListener("error",_.Dp(this,this.onError))};
_.E.detached=function(){this.videoEl.removeEventListener("ended",_.Dp(this,this.onEnded));this.mp4El.removeEventListener("error",_.Dp(this,this.onError))};
_.E.play=function(){var y=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var W=this.videoEl.play();W?W.then(function(){y.handleVideoStartPlaying()}).catch(function(){_.h1(y.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.h1(this.hostElement,"yt-video-thumbnail-not-playing")};
_.E.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.E.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.E.dataChanged=function(){var y;if((y=this.data)==null?0:y.thumbnailPlaceholder)y=_.f5(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+y+")";this.stop();this.autoplay&&this.play()};
_.E.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.E.onEnded=function(){this.stop();_.h1(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.E.onError=function(){_.h1(this.hostElement,"yt-video-thumbnail-error")};
_.E.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.E.getVideoThumbnail=function(y){if(y&&y.length)return y[0]};
sD.prototype.dataChanged=sD.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],sD.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sD.prototype,"animatePlaceholderOnEntrance",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sD.prototype,"autoplay",void 0);_.J([_.q({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.R("design:type",Object)],sD.prototype,"videoThumbnail",void 0);
_.J([_.q(),_.R("design:type",Boolean)],sD.prototype,"loop",void 0);_.J([_.q(),_.R("design:type",Boolean)],sD.prototype,"isVideoPlaying",void 0);_.J([_.q(),_.R("design:type",Object)],sD.prototype,"width",void 0);_.J([_.s$("#mp4"),_.R("design:type",HTMLElement)],sD.prototype,"mp4El",void 0);_.J([_.s$("#placeholder"),_.R("design:type",HTMLElement)],sD.prototype,"placeholderEl",void 0);_.J([_.s$("#video"),_.R("design:type",HTMLVideoElement)],sD.prototype,"videoEl",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sD.prototype,"dataChanged",null);_.J([_.Zp({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],sD);
_.Y(sD,"yt-video-as-thumbnail-details",function(){if(Aee===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;s9v===void 0&&(s9v=document.createElement("template"));var w=s9v;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Aee=y}y=Aee;return y},{mode:2});var A6=function(){var y=_.u.apply(this,arguments)||this;y.disableGridStateAware=!1;y.animationEnabled=_.e("enable_web_ketchup_hero_animation");y.transitioningOut=!1;y.narrow=!1;y.narrower=!1;y.isCarouselInFeed=!1;y.videoTimeoutJobId=0;y.panelTimeoutJobId=0;y.panelTimeoutJobStartMs=0;y.actionMap={"yt-window-resized":"onWindowResized"};return y};
_.p(A6,_.u);_.E=A6.prototype;_.E.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.E.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.E.attached=function(){this.onWindowResized()};
_.E.detached=function(){this.clearTimeouts()};
_.E.onWindowResized=function(){this.updateSize()};
_.E.computePanelLayout=function(y){return y&&y.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.E.playVideo=function(){var y;this.video&&((y=this.data)==null?0:y.videoThumbnail)&&this.video.play();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.play()};
_.E.stopVideo=function(){var y;this.video&&((y=this.data)==null?0:y.videoThumbnail)&&this.video.stop();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.stop()};
_.E.transitionOut=function(){var y=this;this.transitioningOut=!0;return new Promise(function(W){var V=function(){_.i6(y.hostElement).querySelector("#action-button").removeEventListener("animationend",V);_.HU.cancelJob(w);W();y.transitioningOut=!1};
var w=_.Jt(_.HU,V,1E3);_.i6(y.hostElement).querySelector("#action-button").addEventListener("animationend",V);y.player&&(y.player.playing=!1)})};
_.E.computeMetadataOrder=function(y){return y&&y.metadataOrder&&y.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?y.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.E.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.E.computeAvatarSize=function(y){return y&&y.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.E.onContentClick=function(y){if(!_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString()])){var W;if((W=this.data)==null?0:W.navigationEndpoint){var V;this.componentBehavior.resolveCommand((V=this.data)==null?void 0:V.navigationEndpoint)}}};
_.E.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.E.setBackgroundImage=function(y){if(y=this.getBackgroundImageUrl(y))_.i6(this.hostElement).querySelector("#hero").style.backgroundImage="url("+y+")"};
_.E.setScrimLayer=function(y){var W=this.getScrimLayerColorStops(y);y=((y==null?void 0:y.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(y=180);_.yC("HTML_DIR")==="rtl"&&(y=-y);W&&(_.i6(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+y+"deg, "+W+")")};
_.E.isNarrower=function(){return this.hostElement.clientWidth<A6.NARROW_VERSION_SIZE};
_.E.getScrimLayerColorStops=function(){var y,W=(y=this.data)==null?void 0:y.scrimColorValues;if(!W)return null;if(W.length===1)return y=_.wg(W[0]),y+" 0%, "+y+" 100%";if(W.length===3){var V=[0,72,98];return W.map(function(w,t){return _.wg(w)+" "+V[t]+"%"}).join(",")}return null};
_.E.getBackgroundImageUrl=function(y){return y&&y.largeFormFactorBackgroundThumbnail?_.f5((y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.E.onPlaying=function(){this.startVideoTimeout()};
_.E.onEnded=function(){this.rotate()};
_.E.startPanelTimeout=function(){var y=this;if(!this.panelTimeoutJobId){var W=this.get("data.minPanelDisplayDurationMs");W&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Jt(_.HU,function(){y.rotate()},W))}};
_.E.startVideoTimeout=function(){var y=this;if(!this.videoTimeoutJobId){_.HU.cancelJob(this.panelTimeoutJobId);var W=Date.now()-this.panelTimeoutJobStartMs;W=Math.max(0,this.get("data.minPanelDisplayDurationMs")-W);W=Math.max(this.get("data.minVideoPlayDurationMs")||0,W);this.videoTimeoutJobId=_.Jt(_.HU,function(){y.rotate()},W)}};
_.E.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.HU.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.HU.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.E.rotate=function(){this.clearTimeouts();_.h1(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.CM.Object.defineProperties(A6.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.i6(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.i6(this.hostElement).querySelector("#video")}}});
_.CM.Object.defineProperties(A6,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
A6.prototype.onEnded=A6.prototype.onEnded;A6.prototype.onPlaying=A6.prototype.onPlaying;A6.prototype.dataChanged=A6.prototype.dataChanged;_.J([_.m(_.tW),_.R("design:type",Object)],A6.prototype,"ytdGridStateAwareBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],A6.prototype,"componentBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],A6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.m(_.Ihf),_.R("design:type",Object)],A6.prototype,"ytBooleanLogicBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],A6.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"disableGridStateAware",void 0);_.J([_.q(),_.R("design:type",Object)],A6.prototype,"data",void 0);_.J([_.q({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.R("design:type",String)],A6.prototype,"panelLayout",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"animationEnabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"transitioningOut",void 0);
_.J([_.q({computed:"computeMetadataOrder(data)"}),_.R("design:type",Boolean)],A6.prototype,"metadataOrder",void 0);_.J([_.q({computed:"computeByline(data)"}),_.R("design:type",Object)],A6.prototype,"byline",void 0);_.J([_.q({computed:"computeAvatarSize(data)"}),_.R("design:type",Number)],A6.prototype,"avatarSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"narrow",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"narrower",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"layoutStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],A6.prototype,"isCarouselInFeed",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A6.prototype,"dataChanged",null);_.J([_.l6("yt-default-promo-panel-renderer-playing"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A6.prototype,"onPlaying",null);
_.J([_.l6("yt-default-promo-panel-renderer-ended"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A6.prototype,"onEnded",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],A6);
_.Y(A6,"ytd-default-promo-panel-renderer",function(){if(xAm!==void 0)return xAm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xAm=y},{mode:1});_.ZQ("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Yl=function(){var y=_.u.apply(this,arguments)||this;y.narrower=!1;y.dotMenuVisible=!1;y.paginationThumbnailsVisible=!1;y.active=!0;y.disableGridStateAware=!1;y.actionMap={"yt-window-resized":"onWindowResized"};return y};
_.p(Yl,_.u);_.E=Yl.prototype;_.E.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]]"}}}}}};
_.E.attached=function(){document.addEventListener("yt-page-type-changed",_.Dp(this,this.onPageTypeChange));this.currentPageSubtype=_.x1(location.pathname);this.onWindowResized()};
_.E.detached=function(){this.jobId&&_.HU.cancelJob(this.jobId);this.updateSizeJobId&&_.HU.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Dp(this,this.onPageTypeChange))};
_.E.onPageTypeChange=function(y){this.active=y.detail.newPageSubtype===this.currentPageSubtype};
_.E.onWindowResized=function(){this.updateSize()};
_.E.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.E.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.E.setCarouselItem=function(y){y>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.HU.cancelJob(this.jobId);var W=this.getCurrentPanelElement();W&&W.stopVideo();this.currentItemIndex=y%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(W||(W=this.getCurrentPanelElement()),W.playVideo()):this.startRotationJob()};
_.E.scrollThumbnails=function(y){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var W=this.getCurrentPaginationElement();if(W){var V=_.i6(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?V.style.transform="translateX(0)":(W=W.offsetWidth+8,V.style.transform="translateX(-"+W*(y-Math.ceil(Math.floor(this.overlay.offsetWidth/W)/2)+1)+"px)")}}};
_.E.onDataChanged=function(){var y=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.b8(_.HU,function(){y.getCurrentPanelElement().updateSize();y.updateSize()}))};
_.E.getCurrentPanelElement=function(){return _.i6(_.i6(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.E.getCurrentPaginationElement=function(){return _.i6(_.i6(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.E.getNavigationClass=function(y,W){return y===W?"selected":""};
_.E.getNavigationDurationStyle=function(y){return"animation-duration:"+(this.get("data.carouselItems."+y+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.E.onNavigationTap=function(y){var W=this,V=y.model.index;V!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){W.setCarouselItem(V)}),this.autorotateActive=!1)};
_.E.onVideoThumbnailEnded=function(){var y=this;if(this.shouldRotate()){var W=this.getCurrentPaginationElement();W&&(W.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){W.classList.remove("finished");y.setNextCarouselItem()}))}};
_.E.onVideoThumbnailError=function(){this.startRotationJob()};
_.E.onVideoNotPlaying=function(){this.startRotationJob()};
_.E.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.E.startRotationJob=function(){var y=this;_.HU.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.HU.addLowPriorityJob(function(){y.getCurrentPanelElement().transitionOut().then(function(){y.setNextCarouselItem()})},this.rotationTimeout))};
_.E.computeDotMenuVisible=function(y,W){return!!y&&!!y.carouselItems&&y.carouselItems.length>1&&!y.paginationThumbnails||!!W};
_.E.computePaginationThumbnailsVisible=function(y,W){var V,w;return((w=y==null?void 0:(V=y.paginationThumbnails)==null?void 0:V.length)!=null?w:0)>1&&!W};
_.E.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.E.computePaginatorAlignment=function(y){return(y==null?void 0:y.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.E.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.E.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.E.isNarrower=function(y){return(y!=null?y:0)<A6.NARROW_VERSION_SIZE};
Yl.prototype.activeChanged=Yl.prototype.activeChanged;Yl.prototype.onVideoNotPlaying=Yl.prototype.onVideoNotPlaying;Yl.prototype.onVideoThumbnailError=Yl.prototype.onVideoThumbnailError;Yl.prototype.onVideoThumbnailEnded=Yl.prototype.onVideoThumbnailEnded;Yl.prototype.onDataChanged=Yl.prototype.onDataChanged;_.J([_.m(_.tW),_.R("design:type",Object)],Yl.prototype,"ytdGridStateAwareBehavior",void 0);
_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],Yl.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yl.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Yl.prototype,"currentItem",void 0);
_.J([_.q(),_.R("design:type",Number)],Yl.prototype,"currentItemIndex",void 0);_.J([_.q(),_.R("design:type",Number)],Yl.prototype,"rotationTimeout",void 0);_.J([_.q(),_.R("design:type",Number)],Yl.prototype,"loopCount",void 0);_.J([_.q({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.R("design:type",String)],Yl.prototype,"paginatorAlignment",void 0);_.J([_.q(),_.R("design:type",Number)],Yl.prototype,"jobId",void 0);
_.J([_.q(),_.R("design:type",Number)],Yl.prototype,"updateSizeJobId",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Yl.prototype,"isCarouselInFeed",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Yl.prototype,"narrower",void 0);_.J([_.q({computed:"computeDotMenuVisible(data, narrower)"}),_.R("design:type",Object)],Yl.prototype,"dotMenuVisible",void 0);
_.J([_.q({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.R("design:type",Object)],Yl.prototype,"paginationThumbnailsVisible",void 0);_.J([_.q({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.R("design:type",String)],Yl.prototype,"layoutType",void 0);_.J([_.q({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],Yl.prototype,"autorotateActive",void 0);_.J([_.q(),_.R("design:type",Object)],Yl.prototype,"active",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Yl.prototype,"disableGridStateAware",void 0);_.J([_.s$("#overlay"),_.R("design:type",HTMLElement)],Yl.prototype,"overlay",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yl.prototype,"onDataChanged",null);
_.J([_.l6("yt-video-thumbnail-ended"),_.l6("yt-default-promo-panel-renderer-rotate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yl.prototype,"onVideoThumbnailEnded",null);_.J([_.l6("yt-video-thumbnail-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yl.prototype,"onVideoThumbnailError",null);
_.J([_.l6("yt-video-thumbnail-not-playing"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yl.prototype,"onVideoNotPlaying",null);_.J([_.Jc("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yl.prototype,"activeChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Yl);
_.Y(Yl,"ytd-carousel-item-renderer",function(){if(lcW!==void 0)return lcW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return lcW=y},{mode:2});var YaP;var BNj;var Jeq;var RoC;var Bi=function(){var y=_.u.apply(this,arguments)||this;y.originalQuery=null;y.originalEndpoint=null;return y};
_.p(Bi,_.u);Bi.prototype.computeShowOriginalQueryWithoutEndpoint_=function(y,W){return!(!y||W)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"correctedText",void 0);_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"correctedQuery",void 0);_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"correctedEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"originalText",void 0);_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"originalQuery",void 0);
_.J([_.q(),_.R("design:type",Object)],Bi.prototype,"originalEndpoint",void 0);_.J([_.q({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.R("design:type",Boolean)],Bi.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.J([_.Zp({is:"yt-search-query-correction",disableElementRegistration:!0})],Bi);
_.Y(Bi,"yt-search-query-correction",function(){if(RoC===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Jeq===void 0&&(Jeq=document.createElement("template"));var w=Jeq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);RoC=y}y=RoC;return y},{mode:2});_.ZQ("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var J6=function(){return _.u.apply(this,arguments)||this};
_.p(J6,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],J6.prototype,"data",void 0);_.J([_.Zp({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],J6);
_.Y(J6,"yt-did-you-mean-renderer",function(){if(BNj===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;YaP===void 0&&(YaP=document.createElement("template"));var w=YaP;V.call(W,w.content.cloneNode(!0),y.content.firstChild);BNj=y}y=BNj;return y},{mode:2});var j9v;var $Ae;_.ZQ("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var RC=function(){return _.u.apply(this,arguments)||this};
_.p(RC,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RC.prototype,"data",void 0);_.J([_.Zp({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],RC);
_.Y(RC,"yt-including-results-for-renderer",function(){if($Ae===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;j9v===void 0&&(j9v=document.createElement("template"));var w=j9v;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$Ae=y}y=$Ae;return y},{mode:2});var nzj;var HZj;_.ZQ("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var ju=function(){return _.u.apply(this,arguments)||this};
_.p(ju,_.u);ju.prototype.computeExtraClasses_=function(y,W){var V="";y&&(V+=" "+y.toLowerCase().replace(/_/g,"-"));W&&(V+=" "+W.toLowerCase().replace(/_/g,"-"));return V};
ju.prototype.computeUrlImg_=function(){var y=this.data;y.image&&(_.i6(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.f5(y.image.thumbnails,Number.MAX_VALUE)+")")};
ju.prototype.computeUrlImg_=ju.prototype.computeUrlImg_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ju.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ju.prototype,"computeUrlImg_",null);_.J([_.Zp({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],ju);
_.Y(ju,"yt-music-pass-feature-info-renderer",function(){if(HZj===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;nzj===void 0&&(nzj=document.createElement("template"));var w=nzj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);HZj=y}y=HZj;return y},{mode:2});var XTE;var acv;_.ZQ("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var $l=function(){return _.u.apply(this,arguments)||this};
_.p($l,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$l.prototype,"data",void 0);_.J([_.Zp({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],$l);
_.Y($l,"yt-no-results-found-showing-results-for-renderer",function(){if(acv===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;XTE===void 0&&(XTE=document.createElement("template"));var w=XTE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);acv=y}y=acv;return y},{mode:2});var G1C;var reC;_.ZQ("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var nE=function(){return _.u.apply(this,arguments)||this};
_.p(nE,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nE.prototype,"data",void 0);_.J([_.Zp({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],nE);
_.Y(nE,"yt-results-without-quotes-renderer",function(){if(reC===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;G1C===void 0&&(G1C=document.createElement("template"));var w=G1C;V.call(W,w.content.cloneNode(!0),y.content.firstChild);reC=y}y=reC;return y},{mode:2});var bZ3;var Q9j;_.ZQ("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Hi=function(){return _.u.apply(this,arguments)||this};
_.p(Hi,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hi.prototype,"data",void 0);_.J([_.Zp({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Hi);
_.Y(Hi,"yt-search-no-results-renderer",function(){if(Q9j===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;bZ3===void 0&&(bZ3=document.createElement("template"));var w=bZ3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Q9j=y}y=Q9j;return y},{mode:2});var ZZW;var yHW;_.ZQ("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var XL=function(){return _.u.apply(this,arguments)||this};
_.p(XL,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XL.prototype,"data",void 0);_.J([_.Zp({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],XL);
_.Y(XL,"yt-showing-results-for-renderer",function(){if(yHW===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;ZZW===void 0&&(ZZW=document.createElement("template"));var w=ZZW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);yHW=y}y=yHW;return y},{mode:2});var WAj;var Vpv;var wFd;var tpj;var aC=function(){var y=_.u.apply(this,arguments)||this;y.answerExpanded=!1;return y};
_.p(aC,_.u);aC.prototype.toggleAnswer_=function(y){var W=_.vW(y);W&&W.classList.contains("yt-simple-endpoint")||(y.preventDefault(),y.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
aC.prototype.toggleAnswer_=aC.prototype.toggleAnswer_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aC.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],aC.prototype,"answerExpanded",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aC.prototype,"toggleAnswer_",null);
_.J([_.Zp({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],aC);
_.Y(aC,"yt-generic-faq-question-renderer",function(){if(tpj===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;wFd===void 0&&(wFd=document.createElement("template"));var w=wFd;V.call(W,w.content.cloneNode(!0),y.content.firstChild);tpj=y}y=tpj;return y},{mode:2});_.ZQ("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var GO=function(){return _.u.apply(this,arguments)||this};
_.p(GO,_.u);GO.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],GO.prototype,"data",void 0);_.J([_.Zp({is:"yt-faq-section-renderer",disableElementRegistration:!0})],GO);
_.Y(GO,"yt-faq-section-renderer",function(){if(Vpv===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;WAj===void 0&&(WAj=document.createElement("template"));var w=WAj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Vpv=y}y=Vpv;return y},{mode:2});var FA3;var EbE;_.ZQ("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var rq=function(){return _.u.apply(this,arguments)||this};
_.p(rq,_.u);
rq.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rq.prototype,"data",void 0);_.J([_.Zp({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],rq);
_.Y(rq,"yt-offer-item-expanded-renderer",function(){if(EbE===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;FA3===void 0&&(FA3=document.createElement("template"));var w=FA3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);EbE=y}y=EbE;return y},{mode:2});var NAE;var Izj;_.ZQ("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var bL=function(){return _.u.apply(this,arguments)||this};
_.p(bL,_.u);
bL.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"}}}}};
bL.prototype.computeFullWidthMode=function(y){return!(!y||!y.fullWidthMode)};
bL.prototype.computeBorderlessMode=function(y){return!(!y||!y.borderlessMode)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bL.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.R("design:type",Boolean)],bL.prototype,"fullWidthMode",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.R("design:type",Boolean)],bL.prototype,"borderlessMode",void 0);_.J([_.Zp({is:"yt-offer-item-renderer",disableElementRegistration:!0})],bL);
_.Y(bL,"yt-offer-item-renderer",function(){if(Izj===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;NAE===void 0&&(NAE=document.createElement("template"));var w=NAE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Izj=y}y=Izj;return y},{mode:2});var gbP;var PDu;_.ZQ("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Qn=function(){return _.u.apply(this,arguments)||this};
_.p(Qn,_.u);Qn.prototype.computeAriaLevel_=function(y){return this.getLevelID_(y)};
Qn.prototype.getLevelID_=function(y){return(y=y.match(/[0-9]+$/))&&y.length==1?y[0]:"1"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qn.prototype,"data",void 0);_.J([_.q({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.R("design:type",String)],Qn.prototype,"ariaLevel",void 0);_.J([_.q({value:"heading",reflectToAttribute:!0}),_.R("design:type",String)],Qn.prototype,"role",void 0);
_.J([_.q({value:-1,reflectToAttribute:!0}),_.R("design:type",Number)],Qn.prototype,"tabindex",void 0);_.J([_.Zp({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Qn);
_.Y(Qn,"yt-subscription-product-header-renderer",function(){if(PDu===void 0){var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;gbP===void 0&&(gbP=document.createElement("template"));var w=gbP;V.call(W,w.content.cloneNode(!0),y.content.firstChild);PDu=y}y=PDu;return y},{mode:2});var CDW;var OS3;_.ZQ("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Zv=function(){return _.u.apply(this,arguments)||this};
_.p(Zv,_.u);Zv.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:_.y7("menuRenderer"),events:!0}}};
Zv.prototype.onStampFinished_=function(){_.i6(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Zv.prototype.onStampFinished_=Zv.prototype.onStampFinished_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zv.prototype,"data",void 0);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zv.prototype,"onStampFinished_",null);
_.J([_.Zp({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Zv);
_.Y(Zv,"yt-subscription-product-renderer",function(){if(OS3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;CDW===void 0&&(CDW=document.createElement("template"));var w=CDW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);OS3=y}y=OS3;return y},{mode:2});var vbm;var dsu;_.ZQ("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var yq=function(){return _.u.apply(this,arguments)||this};
_.p(yq,_.u);yq.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yq.prototype.imageScrimColorValuesChanged_=function(){var y,W=(y=this.data)==null?void 0:y.imageScrimColorValues;_.i6(this.hostElement).querySelector("#scrim").style.backgroundColor=W?_.wg(W[0]):"transparent"};
yq.prototype.imageScrimColorValuesChanged_=yq.prototype.imageScrimColorValuesChanged_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yq.prototype,"data",void 0);
_.J([_.xA("data.imageScrimColorValues"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yq.prototype,"imageScrimColorValuesChanged_",null);_.J([_.Zp({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],yq);
_.Y(yq,"yt-subscription-product-upsell-offer-renderer",function(){if(dsu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;vbm===void 0&&(vbm=document.createElement("template"));var w=vbm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);dsu=y}y=dsu;return y},{mode:2});var LAd;var zVu;var cHu;var eVP;var hVv;var obt;var Wc=function(){return _.u.apply(this,arguments)||this};
_.p(Wc,_.u);Wc.prototype.onYtServiceRequestError_=function(y){_.ey(this.hostElement,y.detail.error.message)};
Wc.prototype.onYtServiceRequestError_=Wc.prototype.onYtServiceRequestError_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Wc.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Wc.prototype,"collapsible",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wc.prototype,"isManageRed",void 0);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Wc.prototype,"onYtServiceRequestError_",null);_.J([_.Zp({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Wc);
_.Y(Wc,"yt-single-ypc-offer-renderer",function(){if(obt===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;hVv===void 0&&(hVv=document.createElement("template"));var w=hVv;V.call(W,w.content.cloneNode(!0),y.content.firstChild);obt=y}y=obt;return y},{mode:2});var Vq=function(){return _.u.apply(this,arguments)||this};
_.p(Vq,_.u);Vq.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Vq.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Vq.prototype,"isManageRed",void 0);_.J([_.Zp({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Vq);
_.Y(Vq,"yt-single-ypc-offer-list-renderer",function(){if(eVP===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;cHu===void 0&&(cHu=document.createElement("template"));var w=cHu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);eVP=y}y=eVP;return y},{mode:2});var KAu;var pFm;_.ZQ("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var wr=function(){return _.u.apply(this,arguments)||this};
_.p(wr,_.u);wr.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wr.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],wr.prototype,"isManageRed",void 0);_.J([_.Zp({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],wr);
_.Y(wr,"yt-ypc-offers-list-renderer",function(){if(pFm===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;KAu===void 0&&(KAu=document.createElement("template"));var w=KAu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);pFm=y}y=pFm;return y},{mode:2});_.ZQ("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var tN=function(){return _.u.apply(this,arguments)||this};
_.p(tN,_.u);
tN.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tN.prototype,"data",void 0);_.J([_.Zp({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],tN);
_.Y(tN,"yt-unlimited-manage-subscription-page-renderer",function(){if(zVu===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;LAd===void 0&&(LAd=document.createElement("template"));var w=LAd;V.call(W,w.content.cloneNode(!0),y.content.firstChild);zVu=y}y=zVu;return y},{mode:2});var iSm;var fzv;var Fm=function(){return _.u.apply(this,arguments)||this};
_.p(Fm,_.u);_.E=Fm.prototype;_.E.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.E.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.E.onKeypress_=function(y){y.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.E.handleHeaderTap_=function(y){y.preventDefault();y.stopPropagation();this.expandOffers_()};
_.E.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.E.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Fm.prototype.dataChanged_=Fm.prototype.dataChanged_;_.J([_.m(_.Bw),_.R("design:type",Object)],Fm.prototype,"ironA11yKeysBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Fm.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Fm.prototype,"offersVisible_",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fm.prototype,"dataChanged_",null);_.J([_.Zp({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Fm);
_.Y(Fm,"yt-collapsible-ypc-offer-renderer",function(){if(fzv===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;iSm===void 0&&(iSm=document.createElement("template"));var w=iSm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);fzv=y}y=fzv;return y},{mode:2});var TAq;var msd;_.ZQ("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var El=function(){return _.u.apply(this,arguments)||this};
_.p(El,_.u);_.E=El.prototype;_.E.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.E.dataChanged_=function(){if(this.data.backgroundImage){var y=_.f5(this.data.backgroundImage.thumbnails,screen.width),W=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=W?"linear-gradient(180deg, "+W+"), url("+y+")":"url("+y+")";this.data.gtmId&&_.ab(this.data.gtmId,_.yC("GL",""))}};
_.E.onYtServiceRequestError_=function(y){_.ey(this.hostElement,y.detail.error.message)};
_.E.getScrimLayerColorStops_=function(){var y,W,V=(y=this.data.unlimitedHeaderV2Data)==null?void 0:(W=y.unlimitedHeaderV2Data)==null?void 0:W.scrimLayerColors;if(!V)return null;var w=100/V.length;return V.map(function(t,F){F*=w;return _.wg(t)+" "+F+"%"}).join(",")};
_.E.computeLogoWithPadding=function(y){var W,V,w;return(y=(W=y.unlimitedLogoImage)==null?void 0:(V=W.thumbnails)==null?void 0:(w=V[0])==null?void 0:w.height)&&y%31===0?!0:!1};
El.prototype.onYtServiceRequestError_=El.prototype.onYtServiceRequestError_;El.prototype.dataChanged_=El.prototype.dataChanged_;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],El.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.J([_.q({computed:"computeLogoWithPadding(data)"}),_.R("design:type",Boolean)],El.prototype,"logoWithPadding",void 0);
_.J([_.q(),_.R("design:type",Object)],El.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],El.prototype,"dataChanged_",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],El.prototype,"onYtServiceRequestError_",null);_.J([_.Zp({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],El);
_.Y(El,"yt-unlimited-page-header-renderer",function(){if(msd===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;TAq===void 0&&(TAq=document.createElement("template"));var w=TAq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);msd=y}y=msd;return y},{mode:2});var Mpv;var qwe;_.ZQ("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var N6=function(){return _.u.apply(this,arguments)||this};
_.p(N6,_.u);N6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],N6.prototype,"data",void 0);_.J([_.Zp({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],N6);
_.Y(N6,"yt-unlimited-user-notification-renderer",function(){if(qwe===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Mpv===void 0&&(Mpv=document.createElement("template"));var w=Mpv;V.call(W,w.content.cloneNode(!0),y.content.firstChild);qwe=y}y=qwe;return y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.WJC=_.eY(function(y){var W=_.zb(y,{numberOfChips:5}).numberOfChips;return _.O("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.O(_.YV,{each:function(){return Array(W==null?void 0:W())}},function(){return _.O("div",{class:"ytGhostChipShelfChip"})}))},"zg");_.Vij=_.eY(function(y){var W=function(){var F;return((F=y.data)==null?void 0:F.call(y).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},V=_.D1(),w=_.hs().resolve(_.L5);
_.HV(function(){requestAnimationFrame(function(){var F;(F=V.lottieEl)==null||F.addEventListener("DOMLoaded",function(){var I;(I=y.onLottieLoaded)==null||I.call(y)})})});
var t={};return _.O("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var F;return((F=y.data)==null?void 0:F.call(y).targetId)||""}},_.O(_.fh,{className:_.kS((t.ytChatLoadingViewModelRtl=w==="rtl",t)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:W()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||W()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:W()}}},
animationRef:V}))},"Ag");
}catch(e){_._DumpException(e)}
try{
var odd,KTu,p1u,ibP,fZj,Tfv,m1P,MHd,U1u,Aoe,Mv,sfE,D1e,ktP,x1P,lZm,SyW,Yyu,BfE,Joq,Rwu,qv,jf3,$1v,X1u,S5,nd4,Dm,Uq,lm,HbC,um,aZt,Gtu,roW,bbd,Qfq,Zbj,Wdm,Fdd,I7E,gVj,PUm,CUE,OGt,dVC,zne,enm,hnP,oVE,KdE,iGu,f7t,TVj,mVC,M0q,qFu,UVv,SFq,kIe,xVm,DVu,s8W,l7W,AbC,Rnm,Jbt,YFP,BVP,kL,j8E,$V4,HGe,Q8t,ZGd,yst,Wjd,VXE,w4W,tXP,Fju,E_P,NiC,g_j,PCE,CC4,GIv;
_.Ta=function(y){var W=new _.Js("Error accessing DB");return _.eF4().then(function(V){return new Promise(function(w,t){try{var F=V.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(y);F.onsuccess=function(){var I=F.result;w(I?I.value:null)};
F.onerror=function(){W.params={key:y,source:"onerror"};t(W)}}catch(I){W.params={key:y,
thrownError:String(I)},t(W)}})},function(){return null})};
_.hw3=function(y,W){var V=_.B3n(W);V!=="javascript:"&&V!=="data:"&&y.setAttribute("href",W)};
odd=function(y,W){return _.UB(y.entities,"flowStateEntity",W)};
KTu=function(y,W){return _.UB(y.entities,"contextNoteUserRatingEntityPayload",W)};
p1u=function(y){return _.By(y,function(W){return W.languageCode==="en"})};
ibP=function(y){var W=mr;if(_.Sfu(y))y.setOption("captions","stickyLoading",{}),y.setOption("captions","track",{});else{var V=_.By(_.Swv(y),function(w){return w.displayName===W});
y.setOption("captions","track",V)}};
fZj=function(y){if(!y)return 0;var W=y.getPresentingPlayerType(),V=y.getVideoData();return V&&V.isLive?(y=y.getProgressState(W),y.seekableEnd-y.seekableStart):y.getDuration(W)};
Tfv=function(y,W){for(var V=_.N(Object.keys(y)),w=V.next();!w.done;w=V.next())if(w=w.value,y[w]!==W[w])return!1;return!0};
m1P=function(){return document.getElementById("player-control-overlay")};
MHd=function(y){y!==-1&&!_.e("player_controls_log_creation_killswitch")&&m1P()&&(_.aw("pcu_cs",y),_.aw("pcu_ce"))};
U1u=function(y){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(y.subscribeButton?[y.subscribeButton,y.channelAccess]:[y.channelAccess]).map(function(W){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz--button"},qyu(W)))}))};
_.uTm=function(y){var W=y.data;var V=y.hideDivider;y=y.isChannelInfoCard;var w={};w=(w["yt-profile-identity-info-view-model-wiz__frame"]=!0,w["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!W.channelBanner,w);w={class:_.sU(w)};var t,F={imageBannerViewModel:{image:(t=W.channelBanner)==null?void 0:t.image,style:"IMAGE_BANNER_STYLE_INSET"}};t=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},W.channelBanner?_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
qyu(F,{imageBannerViewModel:{isPositionRelative:!0}})):null);F=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},qyu(W.avatar));var I;var P=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},W.channelDisplayName),W.verifiedOrOacBadge?_.O("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.O(_.ca,{data:{thumbnails:[{url:(I=W.verifiedOrOacBadge)==null?void 0:I.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);I=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},P,qyu(W.threeDotMenu));P=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.O("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},W.channelHandle),W.channelPronouns&&W.channelHandle?_.O("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.O("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},W.channelPronouns)),_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.leftOfBulletInfo),W.leftOfBulletInfo&&W.rightOfBulletInfo?_.O("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.rightOfBulletInfo)));I=_.O("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},I,P);return _.O("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.O("div",w,t,_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},F,I),W.channelDescription?_.O("div",{class:y?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
W.channelDescription):null,U1u(W),V?null:_.O("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
Aoe=function(y,W){var V=_.LD(y,{}),w=SyW("top",W),t=SyW("bottom",W),F=SyW("left",W),I=SyW("right",W);return _.Rd({top:function(){return Mv(V().position,w)},
bottom:function(){return Mv(V().position,t)},
left:function(){return Mv(V().position,F)},
right:function(){return Mv(V().position,I)},
position:function(){return Mv(V().positionType,D1e)},
height:function(){return Mv(V().height,qv)},
width:function(){return Mv(V().width,qv)},
"min-width":function(){return Mv(V().minWidth,qv)},
"min-height":function(){return Mv(V().minHeight,qv)},
"max-width":function(){return Mv(V().maxWidth,qv)},
"max-height":function(){return Mv(V().maxHeight,qv)},
"aspect-ratio":function(){return Mv(V().aspectRatio,String)},
"margin-top":function(){return Mv(V().margin,w)},
"margin-bottom":function(){return Mv(V().margin,t)},
"margin-left":function(){return Mv(V().margin,F)},
"margin-right":function(){return Mv(V().margin,I)},
"padding-top":function(){return Mv(V().padding,w)},
"padding-bottom":function(){return Mv(V().padding,t)},
"padding-left":function(){return Mv(V().padding,F)},
"padding-right":function(){return Mv(V().padding,I)},
"flex-direction":function(){return Mv(V().flexDirection,lZm)},
"justify-content":function(){return Mv(V().justifyContent,x1P)},
"align-items":function(){return Mv(V().alignItems,ktP)},
"flex-grow":function(){return Mv(V().flexGrow,String)},
"flex-shrink":function(){return Mv(V().flexShrink,String)},
"flex-basis":function(){return Mv(V().flexBasis,qv)},
"align-self":function(){return Mv(V().alignSelf,ktP)},
"flex-wrap":function(){return Mv(V().flexWrap,sfE)},
"align-content":function(){return Mv(V().alignContent,ktP)}})};
Mv=function(y,W){return y!==void 0?W(y):void 0};
sfE=function(y){switch(y){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
D1e=function(y){switch(y){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ktP=function(y){switch(y){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"}};
x1P=function(y){switch(y){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"}};
lZm=function(y){switch(y){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"}};
SyW=function(y,W){var V=W==="rtl";switch(y){case "top":var w=Yyu;break;case "bottom":w=BfE;break;case "left":w=Joq;break;default:w=Rwu}return function(t){return Mv(w(t,V),qv)}};
Yyu=function(y){var W=y.top;var V=y.vertical;y=y.all;var w;return(w=W!=null?W:V)!=null?w:y};
BfE=function(y){var W=y.bottom;var V=y.vertical;y=y.all;var w;return(w=W!=null?W:V)!=null?w:y};
Joq=function(y,W){var V=y.left;var w=y.end;var t=y.start;var F=y.horizontal;y=y.all;var I,P;return(P=(I=V!=null?V:W?w:t)!=null?I:F)!=null?P:y};
Rwu=function(y,W){var V=y.right;var w=y.end;var t=y.start;var F=y.horizontal;y=y.all;var I,P;return(P=(I=V!=null?V:W?t:w)!=null?I:F)!=null?P:y};
qv=function(y){var W=y.value;switch(y.unit){case "YPC_DIMENSION_UNIT_POINT":return W+"px";case "YPC_DIMENSION_UNIT_FRACTION":return W+"%";default:return""+W}};
jf3=function(y){switch(y){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"}};
$1v=function(y){var W=y!=null?y:{};y=W.fontRole;var V=W.fontSize;W=W.fontWeight;if(y!==null&&V!==null)switch(y){case "YPC_FONT_ROLE_DISPLAY":switch(V){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(V){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return W===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(V){case "YPC_FONT_SIZE_XL":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
X1u=function(y,W,V){function w(L){return Object.values(L).map(function(z){var c=z.productId;z=z.pricingOptionIndex;return Uq(t(c).pricingOptions,z).pricingOptionId})}
function t(L){return P().get(L)}
function F(L){L=w(L);V(L)}
var I=um([y,W],function(L,z){var c=L==null?void 0:L.selectedPricingOptions;L={};var K=!0;if(c&&z.length)for(var f=_.N(z),U=f.next();!U.done;U=f.next()){U=U.value;var l=nd4(U.pricingOptions,function(r){a:{r=r.pricingOptionId;for(var H=_.N(c),a=H.next();!a.done;a=H.next())if(a.value===r){r=!0;break a}r=!1}return r});
if(l>=0){K=!1;var x=Uq(U.pricingOptions,l),B=void 0;L[U.groupId]={productId:U.productId,pricingOptionIndex:l,pricingGroupAttributes:(B=x)==null?void 0:B.pricingGroupAttributes}}}K&&z.length&&(K=Uq(z[0].pricingOptions,0),L[z[0].groupId]={productId:z[0].productId,pricingOptionIndex:0,pricingGroupAttributes:K==null?void 0:K.pricingGroupAttributes});return L}),P=um([W],function(L){return new Map(L.map(function(z){return[z.productId,
z]}))}),C=um([W],function(L){var z=new Map;
L=_.N(L);for(var c=L.next();!c.done;c=L.next()){var K=c.value;c=K.groupId;var f=K.productId;K=_.N(S5(K.pricingOptions));for(var U=K.next();!U.done;U=K.next()){var l=_.N(U.value);U=l.next().value;l=l.next().value;z.set(l.pricingOptionId,{groupId:c,productId:f,index:U,pricingOption:l,pricingGroupAttributes:l.pricingGroupAttributes})}}return z}),d=um([W],function(L){var z=new Map;
L=_.N(L);for(var c=L.next();!c.done;c=L.next()){var K=c.value;c=K.groupId;var f=K.productId,U=void 0;K=_.N(S5((U=K.pricingGroups)!=null?U:[]));for(U=K.next();!U.done;U=K.next()){var l=_.N(U.value);U=l.next().value;l=l.next().value;z.set(l.pricingGroupId,{groupId:c,productId:f,index:U,pricingGroup:l,pricingGroupAttributes:l.pricingGroupAttributes})}}return z});
return{getProductById:t,isProductSelected:function(L){var z=t(L);if(!z)return!1;var c;return((c=I()[z.groupId])==null?void 0:c.productId)===L},
getSelectedPricingOptions:function(){return Object.values(I()).map(function(L){var z=L.productId;L=L.pricingOptionIndex;return Uq(t(z).pricingOptions,L)})},
getSelectedPricingGroupAttributesByGroupId:function(L){var z;return(L=(z=I()[L])==null?void 0:z.pricingGroupAttributes)?Array.from(L):void 0},
getSelectedProductByGroupId:function(L){var z;return(L=(z=I()[L])==null?void 0:z.productId)?t(L):void 0},
onProductSelected:function(L){var z=t(L);if(z){var c=I(),K;if(((K=c[z.groupId])==null?void 0:K.productId)!==L){var f,U;K=(U=(f=c[z.groupId])==null?void 0:f.pricingOptionIndex)!=null?U:0;Dm(z.pricingOptions)<=K&&(K=0);f=Uq(z.pricingOptions,K);var l;U={};F(Object.assign({},c,(U[z.groupId]={productId:L,pricingOptionIndex:K,pricingGroupAttributes:(l=f==null?void 0:f.pricingGroupAttributes)!=null?l:[]},U)))}}},
onPricingOptionSelected:function(L){var z=C().get(L);if(z){L=z.groupId;var c=z.productId;z=z.index;var K=I(),f,U;if(((f=K[L])==null?void 0:f.productId)!==c||((U=K[L])==null?void 0:U.pricingOptionIndex)!==z){var l,x;f={};F(Object.assign({},K,(f[L]={productId:c,pricingOptionIndex:z,pricingGroupAttributes:(x=(l=K[L])==null?void 0:l.pricingGroupAttributes)!=null?x:[]},f)))}}},
onPricingGroupSelected:function(L){var z=d().get(L);if(z){L=z.groupId;var c=z.productId,K=z.pricingGroup.pricingGroupAttributes,f=t(c);if(f){z=I();var U=z[L].pricingGroupAttributes,l;if(((l=z[L])==null?void 0:l.productId)!==c||!lm(HbC(U,Dm(K)),K)){l=Array.from(K);for(K=Dm(K);K<Dm(U);K++){var x="",B=!1,r=Array.from(l);r.push(Uq(U,K));for(var H=_.N(f.pricingGroups),a=H.next();!a.done;a=H.next())if(a=a.value,lm(a.pricingGroupAttributes,r)){l.push(Uq(U,K));B=!0;break}else x===""&&Dm(a.pricingGroupAttributes)===
r.length&&lm(HbC(a.pricingGroupAttributes,l.length),l)&&(x=Uq(a.pricingGroupAttributes,K));B||l.push(x)}x=z[L].pricingOptionIndex;K=[];B=new Map;r=0;f=_.N(S5(f.pricingOptions));for(H=f.next();!H.done;H=f.next())a=_.N(H.value),H=a.next().value,a=a.next().value,lm(a.pricingGroupAttributes,l)&&K.push(H),lm(a.pricingGroupAttributes,U)&&B.set(H,r++);K.length===0?U=0:(U=B.get(x),U=U!==void 0&&U<K.length?K[U]:K[0]);f={};F(Object.assign({},z,(f[L]={productId:c,pricingOptionIndex:U,pricingGroupAttributes:l},
f)))}}}},
onClearGroupSelected:function(L){var z=I();z[L]&&(z=Object.fromEntries(Object.entries(z).filter(function(c){return _.N(c).next().value!==L})),F(z))}}};
S5=function(y){return function V(){var w,t,F,I,P;return _.Up(V,function(C){switch(C.nextAddress){case 1:_.sc(C,2),w=0,t=_.N(y),F=t.next();case 4:if(F.done){C.jumpTo(2);break}I=F.value;P=_.uw;return C.yield([w++,I],7);case 7:P(C.yieldResult);F=t.next();C.jumpTo(4);break;case 2:_.kX(C),_.AX(C,0)}})}()};
nd4=function(y,W){y=_.N(S5(y));for(var V=y.next();!V.done;V=y.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;if(W(w))return V}return-1};
Dm=function(y){var W=0;for(y=y[Symbol.iterator]();!y.next().done;)++W;return W};
Uq=function(y,W){y=_.N(S5(y));for(var V=y.next();!V.done;V=y.next()){var w=_.N(V.value);V=w.next().value;w=w.next().value;if(V===W)return w}};
lm=function(y,W){if(!y&&!W)return!0;if(!y||!W)return!1;y=Array.from(y);W=Array.from(W);if(y.length!==W.length)return!1;for(var V=0;V<y.length;V++)if(y[V]!==W[V])return!1;return!0};
HbC=function(y,W){W=W===void 0?Infinity:W;var V=[];y=_.N(S5(y));for(var w=y.next();!w.done;w=y.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;if(w>=W)break;w>=0&&V.push(t)}return V};
um=function(y,W){var V,w;return function(){for(var t=y.map(function(I){return I()}),F=0;F<t.length;F++)if(!V||t[F]!==V[F]){V=t;
w=W.apply(null,_.GC(t));break}return w}};
aZt=function(y,W,V){var w=[];y=_.N(y);for(var t=y.next();!t.done;t=y.next()){t=t.value;var F=void 0;((F=W)==null?0:F.length)&&!lm(t.pricingGroupAttributes,W)||w.push({pricingOption:t,isSelected:V.includes(t.pricingOptionId)})}return w};
Gtu=function(y,W){return _.UB(y.entities,"pdpStateEntity",W)};
roW=function(y){var W,V;return!!(y.productId&&y.groupId&&((W=y.pricingOptions)==null?0:W.length)&&y.pricingOptions.every(function(w){return w.pricingOptionId})&&((V=y.pricingGroups)==null||!V.length||Array.isArray(y.pricingGroups)&&y.pricingGroups.every(function(w){return w.pricingGroupId&&w.pricingGroupAttributes&&w.pricingGroupAttributes.length>0})))};
bbd=function(y,W,V){return X1u(y,um([W],function(w){return w.filter(roW)}),V)};
Qfq=function(y,W){return W.length===0?[y]:[y.slice(0,W[0]),y.slice(W[0])].filter(function(V){return V.length>0})};
Zbj=function(y){switch(y){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""}};
Wdm=function(y,W,V,w){w=Object.assign({},w);_.Z8(w,yb3,{selectedOptionId:y,primaryButtonOverride:V});_.vC().dispatch(_.B5("flowStateEntity",W,w))};
_.t0C=function(){if(!V0P){var y=_.N(_.M1(new Map,void 0,"UJImUe"));V0P=y.next().value;wVd=y.next().value}return V0P};
Fdd=function(y){if(y)return _.t0C()().get(y)};
_.EVj=function(y,W){if(y&&W){var V=_.t0C();V().set(y,W);y=V();wVd(new Map(y))}};
_.NVq=function(y){return{onSubmit:function(){var W;(W=Fdd(y()))==null||W.onSubmit()},
isValid:function(){var W=Fdd(y());return W?W.isValid():!0},
isSubmitting:function(){var W,V;return!!((W=Fdd(y()))==null?0:(V=W.isSubmitting)==null?0:V.call(W))}}};
I7E=function(y,W){return _.UB(y.entities,"contextNoteFeedEntityPayload",W)};
gVj=function(y,W){switch(y){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return W==null?void 0:W.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return W==null?void 0:W.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return W==null?void 0:W.ratingNotHelpfulText}};
PUm=function(y,W){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:y.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:y.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:y.deleteDialogTitle}]},dialogMessages:[{runs:[{text:y.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.deleteActionText}]},command:{performCommentActionEndpoint:{action:W}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:y.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
CUE=function(y){y.style.height="auto";y.style.height=y.scrollHeight+"px"};
OGt=function(y){return[y.syncStep,y.asyncStep].filter(function(W){return W!==void 0})};
dVC=function(y){var W,V,w;if(y=(W=y.structuredContextNoteFormSchema)==null?void 0:(V=W.fieldSchemas)==null?void 0:(w=V.noteBody)==null?void 0:w.validationSchema)for(W=_.N(OGt(y)),V=W.next();!V.done;V=W.next()){V=V.value.rules;if(!V)break;V=_.N(V);for(V=V.next();!V.done;V=V.next())return _.h(V.value,_.vVE)}};
zne=function(y){if(y){y=_.N(OGt(y));for(var W=y.next();!W.done;W=y.next()){W=W.value.rules;if(!W)break;W=_.N(W);for(W=W.next();!W.done;W=W.next())return _.h(W.value,Ldt)}}};
enm=function(y){if(y){y=_.N(OGt(y));for(var W=y.next();!W.done;W=y.next()){W=W.value.rules;if(!W)break;W=_.N(W);for(W=W.next();!W.done;W=W.next())return _.h(W.value,cbd)}}};
hnP=function(y){y=/^https?:\/\//.test(y)?y:"http://"+y;try{var W=_.Ey(y)}catch(V){return!1}if(W.toString()!==y)return!1;y=W.JSC$9958_domain_.split(".");return y.length>1&&y.every(function(V){return!!V})};
oVE=function(y,W,V,w){var t;w=(t=w.structuredContextNoteData)==null?void 0:t.createCommentEndpoint;if(t=_.h(w,_.nom))return t.commentText=_.CO(y),t.videoPositionMention=W,t.sources=V,w};
KdE=function(y){return y==null?void 0:y.stringValue};
iGu=function(y,W,V){y=y.map(function(w,t){return{listItemViewModel:{title:w.title,subtitle:w.subtitle,leadingImage:w.leadingImage,trailingImage:t===W?pV4:void 0,rendererContext:{commandContext:{onTap:w.onTap}}}}});
return Object.assign({},V&&{header:{panelHeaderViewModel:{title:V}}},{content:{listViewModel:{listItems:y}}})};
f7t=function(y,W){if(y&&W)switch(W){case "SELECTION_TYPE_BOOL":return y.boolValue;case "SELECTION_TYPE_INT":return y.intValue;case "SELECTION_TYPE_STRING":return y.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return y.privacyStatusValue}};
TVj=function(y){var W;y=(W=y.options)==null?void 0:W.findIndex(function(V){return V.isSelected});
return y===void 0?-1:y};
mVC=function(y,W,V){var w=function(){return y().label},t={},F=_.kS("ytDropdownViewModelLabel",(t.ytDropdownViewModelLabelError=W,t));
return _.O(_.v,{cond:function(){return y().label&&!(V()===-1&&y().label&&!y().placeholderText)},
then:function(){return _.O("div",{class:F},_.O(_.Lv,{text:w}))}})};
M0q=function(y,W){var V={};V=_.kS("ytDropdownViewModelTitle",(V.ytDropdownViewModelTitlePlaceholder=function(){return W()===-1},V));
return _.O("div",{class:V},_.O(_.Lv,{text:function(){var w=y();var t=W();if(t===-1)w=w.placeholderText?w.placeholderText:w.label;else{var F,I;w=(F=w.options)==null?void 0:(I=F[t])==null?void 0:I.title}return w}}))};
qFu=function(y,W){var V=function(){return y().hint};
return _.O(_.o8,null,_.O(_.v,{cond:function(){return V()&&!W()},
then:function(){return _.O("div",{class:_.kS("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.O(_.Lv,{text:V,className:"ytDropdownViewModelSupportText"}))}}),_.O(_.v,{cond:W,
then:function(){return _.O("div",{id:"dropdown-view-model-error",role:"alert",class:_.kS("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.O(_.jl,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.O(_.Lv,{text:W,className:"ytDropdownViewModelSupportText"}))}}))};
UVv=function(y,W){var V=_.hs().resolve(_.wyj);_.a8(function(){var w=y().id;w&&V!=null&&V.dropdownMap.set(w,W)})};
SFq=function(y){y=_.h(y.scheduleButton,udd);y=_.h(y==null?void 0:y.primaryButton,_.H5);y=_.h(y==null?void 0:y.onTap,_.wL);var W,V,w=((V=_.h(y,_.mR))==null?void 0:V.commands)||[y];V=_.N(w);for(y=V.next();!y.done&&!(W=_.h(y.value,_.XQ2));y=V.next());var t;W=(t=W)==null?void 0:t.createBroadcastRequest;if(!W)throw Error("Uj");return W};
kIe=function(y,W,V){V=V===void 0?{}:V;var w,t;return _.g(function(F){if(w=DVu(W))return F.return(w);(t=l7W(y,W,V))&&xVm(W,t);return F.return(t)})};
xVm=function(y,W){var V=s8W(y);V&&W.then(function(w){_.hs().resolve(_.Md).put(V,new _.qd({innertubeResponse:w}))})};
DVu=function(y){if(y=s8W(y)){var W=_.hs().resolve(_.Md);if(W.has(y))return W.get(y).then(function(V){return V==null?void 0:_.KV(V)})}return null};
s8W=function(y){var W=_.h(y.endpoint,_.Iw);if(W!=null&&W.videoId)return W={videoId:W.videoId},_.e("web_imp_player_mute_params")&&(W.mutedAtStart=y.startPlaybackInMutedState),_.N8("inline_playback",W)};
l7W=function(y,W,V){y=_.OP(y,W.endpoint,AbC(W,V)).then(function(w){return w});
return Promise.resolve(y)};
AbC=function(y,W){W=_.e("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!y.startPlaybackInMutedState},W):Object.assign({},{vis:5,autonav:"1"},W);var V;W={contentPlaybackContext:_.$1(W,(V=_.h(y.endpoint.commandMetadata,_.dw))==null?void 0:V.url,window.location.href)};_.e("web_imp_player_mute_params")&&(W.overrideMutedAtStart=!y.startPlaybackInMutedState);return W};
Rnm=function(y,W){var V=window.MutationObserver;V&&(xL=new V(function(w,t){w=_.N(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;var I;if(I=F.type==="childList"&&F.target)a:{I=y;F=YFP(F.target);I=YFP(I);for(var P=null,C=0;C<F.length;C++)if(I.includes(F[C])){if(C===0){I=!1;break a}P=F[C];break}P?(F=BVP(F,P),I=BVP(I,P),I=F<I):I=!1}if(I){W();t.disconnect();break}}}),(V=Jbt())&&xL.observe(V,{childList:!0,
subtree:!0}))};
Jbt=function(){var y=document.getElementsByTagName("ytd-rich-grid-renderer");if(y.length>0)return y[0];y=document.getElementsByTagName("ytd-section-list-renderer");return y.length>0?y[0]:null};
YFP=function(y){for(var W=[];y;)W.push(y),y=y.parentElement;return W};
BVP=function(y,W){var V=Array.from(W.children);W=y.indexOf(W);return W>0?V.indexOf(y[W-1]):-1};
kL=function(y,W,V){V=V===void 0?{}:V;return _.u5(y,V,W)};
j8E=function(y){switch(y){case "MUSIC":return!0;default:return!1}};
$V4=function(y){return y==null?void 0:y.filter(function(W){return W.premiereTrailerBadgeRenderer})};
HGe=function(y){var W,V=y==null?void 0:(W=y.find(function(z){return z.thumbnailOverlayTimeStatusRenderer}))==null?void 0:W.thumbnailOverlayTimeStatusRenderer,w,t;
if((V==null?0:(w=V.icon)==null?0:w.iconType)&&j8E(V==null?void 0:(t=V.icon)==null?void 0:t.iconType)){var F;return{icon:V==null?void 0:(F=V.icon)==null?void 0:F.iconType}}var I,P;var C=(y=(I=y==null?void 0:(C=y.find(function(z){return z.thumbnailBottomOverlayViewModel}))==null?void 0:C.thumbnailBottomOverlayViewModel)==null?void 0:(P=I.badges)==null?void 0:P.find(function(z){var c,K;
return((c=_.h(z,nVW))==null?void 0:(K=c.inlinePlaybackBadgeData)==null?void 0:K.replicateAsTimestamp)===!0}))?_.h(y,nVW):void 0;
if(C==null?0:C.icon){var d,L;if((C=(d=_.VGv(C==null?void 0:C.icon))==null?void 0:(L=d.clientResource)==null?void 0:L.imageName)&&j8E(C))return{icon:C}}return{}};
Q8t=function(y,W){var V=XVq,w=_.N(_.M1(a7e(new GIv(function(){},V,W)),void 0,"PAnyd")),t=w.next().value,F=w.next().value,I=new GIv(function(P){F(P)},V,W);
_.H1(function(){Promise.resolve().then(function(){var P,C=(P=y())!=null?P:{};I.playerControlsData=C;_.e("player_controls_skip_double_signal_old")&&(I.lastSeenPlayerApi=_.WX(C.playerApi));_.e("player_controls_skip_double_signal_old")||(I.lastSeenPlayerApi=_.WX(C.playerApi));rbu(I)});
_.XT(function(){bGv(I)})},"HikUP");
_.XT(function(){bGv(I)});
return function(){return t()}};
ZGd=function(y){return function(W){var V=y(),w={playerState:W};if(W===1){var t;(t=V.playerApi)==null||t.loadModule("captions")}if(W===0){var F;(F=V.playerApi)==null||F.unloadModule("captions")}(W!==-1||_.e("web_imp_controls_set_player_state_killswitch"))&&V.setState(w)}};
yst=function(y){return function(W){y().setState({playbackRate:W})}};
Wjd=function(y){return function(W){var V=y(),w=V.playerApi,t=w==null?void 0:w.getVideoData(),F=(t==null?void 0:t.isLive)||!1;t=t==null?void 0:t.video_id;F={videoDuration:fZj(w||void 0),isLive:F,videoId:t};F.videoId!==V.videoId&&(F=Object.assign({},_.oxv(w),F));if(W==null?0:W.playertype)F.playerType=W.playertype;if(w){F.captionsAvailable=_.IW(w);W=F;var I;t=(I=w.getStoryboardLevel(w.getNumberOfStoryboardLevels()-1))==null?void 0:I.intervalMs;W.storyboardInterval=t?t/1E3:void 0;F.captionsAvailable&&
(F.captionsEnabled=_.Sfu(w))}F.volumeMuted=!(w==null||!w.isMuted());V.setState(F)}};
VXE=function(y){return function(W){var V=y(),w=V.playerApi;if(w){var t=w.getPresentingPlayerType();W={playedTime:W||0,percentLoaded:w.getVideoLoadedFraction(),playerType:t};V.playerState===0&&(W.playedTime=V.videoDuration);V.isLive&&(t=w.getProgressState(t),W.playedTime-=t.seekableStart,W.videoDuration=fZj(w));if(V.playerType===1)w=!1;else{var F;if((F=V.uxConfig)==null?0:F.showCuedOverlay){var I;w=!((I=V.playerApi)==null?0:I.getPlayerStateObject(V.playerType).isDomPaused)}else w=!0}w&&delete W.playedTime;
V.setState(W)}}};
w4W=function(y){return function(){var W=y(),V,w,t,F={volume:(t=(V=W.playerApi)==null?void 0:V.getVolume())!=null?t:0,volumeMuted:!((w=W.playerApi)==null||!w.isMuted())};W.setState(F)}};
tXP=function(y){return function(){var W=y(),V=W.playerApi;if(V){var w={captionsAvailable:_.IW(V)};w.captionsAvailable&&(w.captionsEnabled=_.Sfu(V));W.setState(w)}}};
Fju=function(y){return function(){var W=y();if(W.playerApi&&!(W.volumeMuted||W.controlsVisible&&W.isProbablyAScreenreaderUser)){W.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var V;(V=document.querySelector(".player-control-play-pause-icon"))==null||V.focus()}}};
E_P=function(y){return{appApi:Object.assign({},_.vxn(),{showCaptionsToggleToast:function(W){var V,w;(w=(V=y()).showCaptionsToggleToast)==null||w.call(V,W)},
openInMiniplayer:function(){var W,V;(V=(W=y()).openInMiniplayer)==null||V.call(W)}})}};
NiC=function(y,W){var V,w,t;return!!(y==null?0:(V=y.playerResponse)==null?0:(w=V.playerConfig)==null?0:(t=w.inlinePlaybackConfig)==null?0:t.showScrubbingControls)&&!(W==null?0:W.hideScrubbingControls)};
_.I3W=function(y){var W=!y.miniplayerIsActive;return[5,2,0].includes(y.miniplayerPlaybackState)||W};
g_j={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};PCE=function(y,W){var V,w,t,F,I;_.g(function(P){if(!W.length)return P.return([]);V=[];w=_.N(W);for(t=w.next();!t.done;t=w.next())F=t.value,(I=y.resolveIcon(F))&&!y.iconCache[I.url]&&V.push(_.KCq(y,I).then(function(){}).catch(function(){}));
return P.return(Promise.all(V))})};
CC4=function(y,W){var V=[];W=(new Set(W)).values();W=_.N(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;for(var t=_.N(Object.values(g_j)),F=t.next();!F.done;F=t.next())V.push({iconName:w,iconStyle:F.value})}PCE(y.iconManager,V)};
_.OB4=function(y,W,V){var w=V!=null?V:y.iconsToFetch;w!=null&&w.length?W!==void 0&&W>=0?_.Jt(_.HU,function(){CC4(y,w)},W):CC4(y,w):Promise.resolve()};
GIv=function(y,W,V){var w=this;this.renderFn=y;this.listeners=W;this.context=V;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var t;this.lastSeenPlayerApi=_.WX((t=this.playerControlsData)==null?void 0:t.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.oxv(),void 0);_.e("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){a7e(w).setState({playerState:-1});w.resetRecentlyNavigatedJobId&&_.HU.cancelJob(w.resetRecentlyNavigatedJobId);
w.recentlyNavigated=!0;w.resetRecentlyNavigatedJobId=_.HU.addJob(function(){w.recentlyNavigated=!1},8,1E4)})};
GIv.prototype.setState=function(y){if(!_.e("mweb_player_skip_no_op_state_changes")||!Tfv(y,this.state))if(this.state=Object.assign({},this.state,y),!_.e("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)y=-1,_.e("player_controls_log_creation_killswitch")||m1P()||(y=(0,_.cU)()),_.aw("pcu_s"),_.aw("pcu_se"),_.aw("pcu_rs"),this.renderFn(a7e(this)),_.aw("pcu_re"),MHd(y),_.HU.addJob(function(){_.aw("pcu_ap")},8)};
var a7e=function(y){var W;var V=_.WX((W=y.playerControlsData)==null?void 0:W.playerApi);return Object.assign({},y.state,{setState:y.boundSetState,domMeasurements:{progressBarLineRect:y.progressBarLineRect},playerApi:V,appApi:y.context.appApi,playerContainer:y.context.playerContainer,playerControlContainer:y.context.playerControlContainer,uxConfig:y.context.uxConfig})},rbu=function(y){y.listeners.forEach(function(W){y.eventListenerCleanupFunctions.push(W.register(function(){return a7e(y)},function(){return y.getData()}))})},
bGv=function(y){y.eventListenerCleanupFunctions.forEach(function(W){W()});
y.eventListenerCleanupFunctions.length=0};
GIv.prototype.getData=function(){return this.playerControlsData};var sq=new _.zf("abuseReportFlowState");var v_q=new _.zf("feedbackFormFlowState");var dOu=new _.zf("inputBoxViewModel");var LjP=new _.zf("flowNextStepCommand");var zLd=new _.zf("flowPrevStepCommand");var csW=new _.zf("updateFlowCommand");_.eLj=new _.zf("flowStepRenderer");_.vVE=new _.zf("lengthValidationRule");var Ldt=new _.zf("regexValidationRule");var cbd=new _.zf("selectedValidationRule");var hLd=new _.zf("talkToRecsViewModel");var o_j=new _.zf("creatorGoalSetUpFlowDropdownItemViewModel");var Kju=new _.zf("creatorGoalSetUpFlowDropdownViewModel");var nVW=new _.zf("thumbnailBadgeViewModel");_.p4m=new _.zf("radioButtonGroupViewModel");var udd=new _.zf("panelFooterViewModel");var iBC=new _.zf("ypcCancelRecurrenceCommand");var f33=new _.zf("cancellationFlowState");var yb3=new _.zf("premiumPurchaseFlowState");var TiE=new _.zf("surveyAnswerCardRenderer");var mOe=new _.zf("showMoreButtonRenderer");var MXC;var q1P,UOm=function(){if(q1P!==void 0)return q1P;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;MXC===void 0&&(MXC=document.createElement("template"));var w=MXC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return q1P=y};var A9=function(){var y=_.u.apply(this,arguments)||this;y.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";y.goalDescription="";y.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";y.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";y.startButtonId="start-button";y.exampleButtonId="example-button";return y};
_.p(A9,_.u);_.E=A9.prototype;_.E.getGoalDropdownItems=function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.purchaseTargetDropdown,Kju))==null?void 0:W.dropdownItems};
_.E.getTimerDropdownItems=function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.timerDropdown,Kju))==null?void 0:W.dropdownItems};
_.E.getColorDropdownItems=function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.colorDropdown,Kju))==null?void 0:W.dropdownItems};
_.E.getDropdownItemText=function(y){var W;return(W=_.h(y,o_j))==null?void 0:W.itemLabel};
_.E.getDropdownItemValue=function(y){y=_.h(y,o_j);return(y==null?void 0:y.timeLimit)||(y==null?void 0:y.purchaseTarget)||(y==null?void 0:y.eligiblePurchaseType)};
_.E.updateFlowState=function(y){_.ow(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:y}])};
_.E.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.E.updateGoalValue=function(y){this.goal=y.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.E.onTextValueChanged=function(y){this.goalDescription=y.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.E.updateTimerValue=function(y){this.timer=y.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.E.updateTierValue=function(y){this.tier=y.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.E.getButtonViewModel=function(y){y=(y==null?void 0:y.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var W,V=_.h((W=this.data)==null?void 0:W.startGoalButton,_.H5);return Object.assign({},V,{state:y})};
_.CM.Object.defineProperties(A9,{template:{configurable:!0,enumerable:!0,get:function(){return UOm()}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"goal",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"goalDescription",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"timer",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"tier",void 0);
_.J([_.q(),_.R("design:type",Object)],A9.prototype,"startButtonId",void 0);_.J([_.q(),_.R("design:type",Object)],A9.prototype,"exampleButtonId",void 0);_.J([_.Zp({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],A9);_.Y(A9,"yt-creator-goal-set-up-flow-view-model",function(){return UOm()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var uUu;var S14;var DOu;var l3E=function(){return _.u.apply(this,arguments)||this};
_.p(l3E,_.u);_.J([_.q(),_.R("design:type",Object)],l3E.prototype,"data",void 0);_.J([_.Zp({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],l3E);
_.Y(l3E,"yt-survey-answer-card-renderer",function(){if(DOu===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;S14===void 0&&(S14=document.createElement("template"));var w=S14;V.call(W,w.content.cloneNode(!0),y.content.firstChild);DOu=y}y=DOu;return y},{mode:2});var xOm;var kJu;var YL=function(){return _.u.apply(this,arguments)||this};
_.p(YL,_.u);_.E=YL.prototype;_.E.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.E.selectedItemChanged=function(y){_.ow(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[y.feedbackToken||""]}])};
_.E.surveyAnswerCardRendererClicked=function(y){if(y.target&&_.h(y.model.item,TiE)){var W=y.target;y=_.h(y.model.item,TiE);y.onTapCommand?_.fg(W,[y.onTapCommand],W):this.data.onTapCommand&&_.fg(W,[this.data.onTapCommand],W);this.selectedItemChanged(y)}};
_.E.checkIsCancellationStyle=function(y){return y==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.E.updateSelectedItemFromBinding=function(y){this.selectedItem=y.detail.value};
YL.prototype.onSelectedItemChanged=YL.prototype.onSelectedItemChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],YL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],YL.prototype,"selectedItem",void 0);_.J([_.q({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.R("design:type",Boolean)],YL.prototype,"isCancellationStyle",void 0);
_.J([_.xA("selectedItem"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YL.prototype,"onSelectedItemChanged",null);_.J([_.Zp({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],YL);
_.Y(YL,"yt-survey-flow-step-renderer",function(){if(kJu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;xOm===void 0&&(xOm=document.createElement("template"));var w=xOm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kJu=y}y=kJu;return y},{mode:2});var Bn=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return y};
_.p(Bn,_.u);Bn.prototype.handleSurveyFlowStepOptionChanged=function(y){this.ytdReduxBehavior.dispatch(_.ig({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:y}));_.ow(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:y}}])};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Bn.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Bn.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bn.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Bn);
_.Y(Bn,"ytd-survey-flow-step-renderer",function(){if(uUu!==void 0)return uUu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return uUu=y},{mode:1});var qyu;qyu=_.nn({avatarViewModel:_.ra,buttonViewModel:_.lk,subscribeButtonViewModel:_.aj,imageBannerViewModel:_.OxR});_.sAq=_.Al(_.uTm);_.zY(_.uTm);var AsP;var J9=function(){return _.u.apply(this,arguments)||this};
_.p(J9,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],J9.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],J9.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],J9);
_.Y(J9,"ytd-channel-history-renderer",function(){if(AsP!==void 0)return AsP;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AsP=y},{mode:1});var Y1P;var BiW=function(){return _.u.apply(this,arguments)||this};
_.p(BiW,_.u);_.J([_.q(),_.R("design:type",Object)],BiW.prototype,"data",void 0);_.J([_.k({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],BiW);
_.Y(BiW,"ytd-feature-enablement-info-renderer",function(){if(Y1P!==void 0)return Y1P;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Y1P=y},{mode:1});var Jsu;var RLe;var RW=function(){var y=_.u.apply(this,arguments)||this;y.textBoxMaxLength=_.e("enable_tvod_campaign_code_integration")?15:12;return y};
_.p(RW,_.u);_.E=RW.prototype;_.E.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.E.onSubmit=function(){var y=this.data.serviceEndpoint,W=_.h(y,_.Kv);W&&y&&(W.couponCode=this.userInput,_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}}))};
_.E.validate=function(){var y=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=y&&!this.data.errorMessage;this.showErrorMessage=y&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.e("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.E.computeStyle=function(y){return y};
_.E.computeShowValidationBelowInput=function(y){return y!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.E.updateUserInputFromBinding=function(y){this.userInput=y.currentTarget.value};
_.E.updateShowErrorMessageFromBinding=function(y){this.showErrorMessage=y.detail.value};
_.CM.Object.defineProperties(RW.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
RW.prototype.dataChanged=RW.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RW.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],RW.prototype,"userInput",void 0);_.J([_.q(),_.R("design:type",Boolean)],RW.prototype,"disableApplyButton",void 0);_.J([_.q(),_.R("design:type",Boolean)],RW.prototype,"hideApplyButton",void 0);
_.J([_.q(),_.R("design:type",Boolean)],RW.prototype,"hideErrorMessage",void 0);_.J([_.q(),_.R("design:type",Boolean)],RW.prototype,"showTick",void 0);_.J([_.q(),_.R("design:type",Boolean)],RW.prototype,"showErrorMessage",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],RW.prototype,"couponStyle",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.R("design:type",Boolean)],RW.prototype,"showValidationBelowInput",void 0);_.J([_.q(),_.R("design:type",Object)],RW.prototype,"textBoxMaxLength",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RW.prototype,"dataChanged",null);
_.J([_.M("showTick","showErrorMessage","userInput"),_.R("design:type",String),_.R("design:paramtypes",[])],RW.prototype,"validationState",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],RW);
_.Y(RW,"ytd-ypc-coupon-renderer",function(){if(RLe!==void 0)return RLe;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return RLe=y},{mode:1});var j5=function(){return _.u.apply(this,arguments)||this};
_.p(j5,_.u);j5.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"}}}};
j5.prototype.computeStyle=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],j5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],j5.prototype,"buttonStyle",void 0);_.J([_.k({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],j5);
_.Y(j5,"ytd-flow-bottom-bar-renderer",function(){if(Jsu!==void 0)return Jsu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Jsu=y},{mode:1});var jAC;var $Od;var n_u;var $L=function(){return _.u.apply(this,arguments)||this};
_.p($L,_.u);$L.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$L.prototype.focus=function(y){this.title&&_.Pp(this.title,y)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$L.prototype,"data",void 0);_.J([_.s$("#title"),_.R("design:type",HTMLElement)],$L.prototype,"title",void 0);_.J([_.k({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],$L);
_.Y($L,"ytd-flow-top-bar-renderer",function(){if(n_u!==void 0)return n_u;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return n_u=y},{mode:1});var HB3;var X4d;var a33;var nk=function(){return _.u.apply(this,arguments)||this};
_.p(nk,_.u);nk.prototype.freeTextValueChanged=function(){_.ow(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
nk.prototype.updateFreeTextValueFromBinding=function(y){this.freeTextValue=y.detail.value};
_.CM.Object.defineProperties(nk.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(W=(y=this.data)==null?void 0:y.responseMaxLength)!=null?W:500,w;return((w=this.freeTextValue)!=null?w:"").length>=V?"maxed-out":""}}});
nk.prototype.freeTextValueChanged=nk.prototype.freeTextValueChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nk.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],nk.prototype,"freeTextValue",void 0);_.J([_.s$("#user-input"),_.R("design:type",HTMLTextAreaElement)],nk.prototype,"input",void 0);
_.J([_.M("freeTextValue"),_.R("design:type",Object),_.R("design:paramtypes",[])],nk.prototype,"characterLimitClass",null);_.J([_.xA("freeTextValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nk.prototype,"freeTextValueChanged",null);_.J([_.Zp({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],nk);
_.Y(nk,"yt-free-text-input-flow-step-renderer",function(){if(a33===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;X4d===void 0&&(X4d=document.createElement("template"));var w=X4d;V.call(W,w.content.cloneNode(!0),y.content.firstChild);a33=y}y=a33;return y},{mode:2});var Hn=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return y};
_.p(Hn,_.u);Hn.prototype.handleFreeTextFlowStepInputChanged=function(y){_.ow(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:y}}])};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Hn.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Hn.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hn.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Hn);
_.Y(Hn,"ytd-free-text-input-flow-step-renderer",function(){if(HB3!==void 0)return HB3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HB3=y},{mode:1});var GJu;var rs3;var bBt=function(){return _.u.apply(this,arguments)||this};
_.p(bBt,_.u);_.J([_.q(),_.R("design:type",Object)],bBt.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],bBt);
_.Y(bBt,"ytd-metadata-line-renderer",function(){if(rs3!==void 0)return rs3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return rs3=y},{mode:1});var XC=function(){return _.u.apply(this,arguments)||this};
_.p(XC,_.u);XC.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XC.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],XC.prototype,"isMasthead",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],XC);
_.Y(XC,"ytd-media-product-renderer",function(){if(GJu!==void 0)return GJu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return GJu=y},{mode:1});var QAP;var aW=function(){return _.u.apply(this,arguments)||this};
_.p(aW,_.u);aW.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
aW.prototype.onBillboardImageLoaded=function(){_.h1(this.hostElement,"yt-refit")};
aW.prototype.onBillboardImageLoaded=aW.prototype.onBillboardImageLoaded;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aW.prototype,"data",void 0);_.J([_.s$("#billboardImage"),_.R("design:type",Object)],aW.prototype,"billboardImage",void 0);_.J([_.l6("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aW.prototype,"onBillboardImageLoaded",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],aW);
_.Y(aW,"ytd-billboard-masthead-renderer",function(){if(QAP!==void 0)return QAP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return QAP=y},{mode:1});var ZBu;var Ga=function(){var y=_.u.apply(this,arguments)||this;y.smallSize=!1;return y};
_.p(Ga,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ga.prototype,"ytComponentBehaviorType",void 0);_.J([_.q(),_.R("design:type",Object)],Ga.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ga.prototype,"smallSize",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Ga);
_.Y(Ga,"ytd-bullet-formatted-string",function(){if(ZBu!==void 0)return ZBu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ZBu=y},{mode:1});var yfe;var rB=function(){return _.u.apply(this,arguments)||this};
_.p(rB,_.u);rB.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rB.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],rB);
_.Y(rB,"ytd-offer-detail-renderer",function(){if(yfe!==void 0)return yfe;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return yfe=y},{mode:1});var W9d;var bm=function(){return _.u.apply(this,arguments)||this};
_.p(bm,_.u);bm.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bm.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],bm);
_.Y(bm,"ytd-offer-detail-step-renderer",function(){if(W9d!==void 0)return W9d;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return W9d=y},{mode:1});var V1P;var Qv=function(){var y=_.u.apply(this,arguments)||this;y.isInOfferModule=!1;return y};
_.p(Qv,_.u);_.E=Qv.prototype;_.E.computeHasEndpoint=function(){var y;return!((y=this.data)==null||!y.onClickCommand)};
_.E.dataChanged=function(){var y;if((y=this.data)==null?0:y.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")};
_.E.detached=function(){var y;if((y=this.data)==null?0:y.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.E.handleClickEvent=function(){var y;if((y=this.data)==null?0:y.onClickCommand){var W;this.componentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.E.onContentKeyDown=function(y){y.key==="Enter"?this.handleClickEvent(y):y.key===" "&&y.preventDefault()};
_.E.onContentKeyUp=function(y){y.key===" "&&this.handleClickEvent(y)};
Qv.prototype.dataChanged=Qv.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Qv.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qv.prototype,"data",void 0);_.J([_.q({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Qv.prototype,"hasEndpoint",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qv.prototype,"isInOfferModule",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qv.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Qv);
_.Y(Qv,"ytd-channel-masthead-renderer",function(){if(V1P!==void 0)return V1P;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return V1P=y},{mode:1});var wU4;var Zm=function(){var y=_.u.apply(this,arguments)||this;y.thumbnailObjectFit="CONTAIN";y.thumbnailObjectPosition="LEFT";y.isExpanded=!1;return y};
_.p(Zm,_.u);_.E=Zm.prototype;_.E.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.E.dataChanged=function(){this.resetStates()};
_.E.computeisTapOnOfferInfoContainerEnabled=function(){var y;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.E.onExpandBtnClick=function(){var y,W=_.h((y=this.data)==null?void 0:y.showMoreButtonRenderer,mOe);W&&_.DN(_.BC(),W.trackingParams);this.isExpanded=!this.isExpanded};
_.E.onOfferInfoClick=function(y){this.isTapOnOfferInfoContainerEnabled&&(_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.ef(_.O$(y)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.E.onBottomBarClick=function(){this.executeTapCommand()};
_.E.executeTapCommand=function(){var y,W=(y=this.data)==null?void 0:y.tapCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.E.resetStates=function(){this.isExpanded=!1};
_.CM.Object.defineProperties(Zm.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var y=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),W,V,w;return((W=this.data)==null?void 0:W.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&y&&!!((V=this.data)==null?0:(w=V.benefits)==null?0:w.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((W=_.h((y=this.data)==null?void 0:y.showMoreButtonRenderer,mOe))==null?void 0:W.showMoreButtonTitle)||((V=this.data)==null?void 0:V.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((W=_.h((y=this.data)==null?void 0:y.showMoreButtonRenderer,mOe))==null?void 0:W.showLessButtonTitle)||((V=this.data)==null?void 0:V.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var y;return(y=this.showLessButtonTitle)!=null?y:""}var W;return(W=this.showMoreButtonTitle)!=null?W:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((W=this.data)==null?0:W.footerTitle)||((V=this.data)==null?0:V.footerSubtitle))}}});
Zm.prototype.dataChanged=Zm.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",String)],Zm.prototype,"thumbnailObjectFit",void 0);
_.J([_.q(),_.R("design:type",String)],Zm.prototype,"thumbnailObjectPosition",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.R("design:type",Boolean)],Zm.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.J([_.q(),_.R("design:type",Object)],Zm.prototype,"isExpanded",void 0);_.J([_.q(),_.R("design:type",Object)],Zm.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.footerIcon)"}),_.R("design:type",String)],Zm.prototype,"icon",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zm.prototype,"dataChanged",null);_.J([_.M("data.thumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zm.prototype,"hasThumbnail",null);_.J([_.M("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zm.prototype,"enableExpandButton",null);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zm.prototype,"enableOfferContentIcon",null);_.J([_.M("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zm.prototype,"showMoreButtonTitle",null);_.J([_.M("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zm.prototype,"showLessButtonTitle",null);
_.J([_.M("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.R("design:type",String),_.R("design:paramtypes",[])],Zm.prototype,"expandedBtnText",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zm.prototype,"enableBottomBar",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Zm);
_.Y(Zm,"ytd-offer-card-renderer",function(){if(wU4!==void 0)return wU4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wU4=y},{mode:1});var t1P;var yd=function(){return _.u.apply(this,arguments)||this};
_.p(yd,_.u);yd.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"}}}};
yd.prototype.onClick=function(y){if(!_.c5(y.composedPath()||[],this.hostElement,["A".toString()])){var W,V;if((y=(V=_.h((W=this.data)==null?void 0:W.actionButton,_.wz))==null?void 0:V.command)&&!this.ytComponentBehavior.resolveCommand(y)){var w;(w=_.BC())==null||w.clickCommand(y);_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})}}};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],yd.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yd.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],yd);
_.Y(yd,"ytd-offer-content-renderer",function(){if(t1P!==void 0)return t1P;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return t1P=y},{mode:1});var F9P;var Wo=function(){return _.u.apply(this,arguments)||this};
_.p(Wo,_.u);Wo.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.CM.Object.defineProperties(Wo.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.title)||!((W=this.data)==null||!W.description)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Wo.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wo.prototype,"hasHeaderData",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Wo);
_.Y(Wo,"ytd-offer-section-renderer",function(){if(F9P!==void 0)return F9P;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return F9P=y},{mode:1});var E2P;var Vd=function(){return _.u.apply(this,arguments)||this};
_.p(Vd,_.u);
Vd.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Vd.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Vd);
_.Y(Vd,"ytd-offer-selection-step-renderer",function(){if(E2P!==void 0)return E2P;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return E2P=y},{mode:1});var NEW;var wj=function(){return _.u.apply(this,arguments)||this};
_.p(wj,_.u);wj.prototype.computeStyle=function(y){return y};
wj.prototype.computeImageWidth=function(y){return y==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.J([_.q({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.R("design:type",String)],wj.prototype,"containerStyle",void 0);_.J([_.q({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.R("design:type",String)],wj.prototype,"imageWidth",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wj.prototype,"data",void 0);
_.J([_.k({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],wj);
_.Y(wj,"ytd-confirmation-masthead-renderer",function(){if(NEW!==void 0)return NEW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return NEW=y},{mode:1});var Ibe;var tw=function(){return _.u.apply(this,arguments)||this};
_.p(tw,_.u);tw.prototype.computeStyle=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tw.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.R("design:type",String)],tw.prototype,"containerStyle",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],tw);
_.Y(tw,"ytd-purchase-complete-detail-renderer",function(){if(Ibe!==void 0)return Ibe;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Ibe=y},{mode:1});var g2u;var FA=function(){var y=_.u.apply(this,arguments)||this;y.scriptsAppended=!1;return y};
_.p(FA,_.u);FA.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"}}}};
FA.prototype.onDataChanged=function(){var y=this.get("data.gtmId");y&&(_.ab(y,_.yC("GL","")),this.setupConversionTracking())};
FA.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var y=document.createElement("noscript");y.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(y);this.scriptsAppended=!0}};
FA.prototype.onDataChanged=FA.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],FA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],FA.prototype,"scriptsAppended",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FA.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],FA);
_.Y(FA,"ytd-purchase-complete-step-renderer",function(){if(g2u!==void 0)return g2u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return g2u=y},{mode:1});var Phu;var E7=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(E7,_.u);E7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],E7.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],E7.prototype,"darkerDarkTheme",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],E7);
_.Y(E7,"ytd-ypc-transaction-error-message-renderer",function(){if(Phu!==void 0)return Phu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Phu=y},{mode:1});var Chq;var OAu;var Ny=function(){var y=_.u.apply(this,arguments)||this;y.handlePhoneVerificationSuccess=function(W){if(y.isValidPhoneVerificationCompletionMessageEvent(W)){var V;((V=y.data)==null?0:V.nextStepCommand)&&y.ytComponentBehavior.resolveCommand(y.data.nextStepCommand)}};
return y};
_.p(Ny,_.u);Ny.prototype.isValidPhoneVerificationCompletionMessageEvent=function(y){if(y.data!=="yt-phone-verification-complete")return!1;y=_.di(y.origin);return y!==null&&y.includes("youtube.com")};
Ny.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Ny.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ny.prototype,"data",void 0);_.J([_.Zp({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ny);
_.Y(Ny,"yt-feature-enablement-soft-entry-renderer",function(){if(OAu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Chq===void 0&&(Chq=document.createElement("template"));var w=Chq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);OAu=y}y=OAu;return y},{mode:1});var v2v;var dke;var L9t;var zyq;var cfv=function(){return _.u.apply(this,arguments)||this};
_.p(cfv,_.u);_.J([_.q(),_.R("design:type",Object)],cfv.prototype,"data",void 0);_.J([_.Zp({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],cfv);
_.Y(cfv,"yt-benefits-item-renderer",function(){if(zyq===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;L9t===void 0&&(L9t=document.createElement("template"));var w=L9t;V.call(W,w.content.cloneNode(!0),y.content.firstChild);zyq=y}y=zyq;return y},{mode:2});var eyu;var hym;var IM=function(){return _.u.apply(this,arguments)||this};
_.p(IM,_.u);IM.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
IM.prototype.computeisWithoutPadding=function(){var y;return((y=this.data)==null?void 0:y.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],IM.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.R("design:type",Boolean)],IM.prototype,"isWithoutPadding",void 0);_.J([_.Zp({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],IM);
_.Y(IM,"yt-benefits-section-renderer",function(){if(hym===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;eyu===void 0&&(eyu=document.createElement("template"));var w=eyu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);hym=y}y=hym;return y},{mode:2});var gj=function(){return _.u.apply(this,arguments)||this};
_.p(gj,_.u);gj.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
gj.prototype.computeisUsingLargeWidth=function(){var y;return((y=this.data)==null?void 0:y.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.R("design:type",Boolean)],gj.prototype,"isUsingLargeWidth",void 0);_.J([_.Zp({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],gj);
_.Y(gj,"yt-benefits-flow-step-renderer",function(){if(dke===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;v2v===void 0&&(v2v=document.createElement("template"));var w=v2v;V.call(W,w.content.cloneNode(!0),y.content.firstChild);dke=y}y=dke;return y},{mode:2});var o2u;var K9W;var Po=function(){return _.u.apply(this,arguments)||this};
_.p(Po,_.u);Po.prototype.checkIsUsingLargeWidth=function(){var y;return((y=this.data)==null?void 0:y.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.J([_.q(),_.R("design:type",Object)],Po.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.J([_.q({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.R("design:type",Boolean)],Po.prototype,"isUsingLargeWidth",void 0);_.J([_.Zp({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Po);
_.Y(Po,"yt-confirmation-flow-step-renderer",function(){if(K9W===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;o2u===void 0&&(o2u=document.createElement("template"));var w=o2u;V.call(W,w.content.cloneNode(!0),y.content.firstChild);K9W=y}y=K9W;return y},{mode:2});var pUu;var iA3;var fb3=function(){return _.u.apply(this,arguments)||this};
_.p(fb3,_.u);_.J([_.q(),_.R("design:type",Object)],fb3.prototype,"data",void 0);_.J([_.Zp({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],fb3);
_.Y(fb3,"yt-info-flow-step-renderer",function(){if(iA3===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;pUu===void 0&&(pUu=document.createElement("template"));var w=pUu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);iA3=y}y=iA3;return y},{mode:2});var TEE;var mkj;var M1j=function(){return _.u.apply(this,arguments)||this};
_.p(M1j,_.u);_.J([_.q(),_.R("design:type",Object)],M1j.prototype,"data",void 0);_.J([_.Zp({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],M1j);
_.Y(M1j,"yt-info-list-flow-step-renderer",function(){if(mkj===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;TEE===void 0&&(TEE=document.createElement("template"));var w=TEE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);mkj=y}y=mkj;return y},{mode:2});var q6t=_.eY(function(y){var W=y.data;return _.O("styled-text-view-model",{class:_.kS("ytStyledTextViewModelHost",function(){return $1v(W().fontAttributes)},function(){return jf3(W().color)})},_.O(_.Lv,{text:function(){return W().text},
ariaLabel:function(){var V,w,t;return(t=(V=W().accessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)!=null?t:""}}))},"of");
q6t.idomCompat=!0;var UkW=_.eY(function(y){var W=function(){var t,F,I,P;return(P=(I=(t=y.alt)==null?void 0:t.call(y))!=null?I:(F=y.data().accessibilityData)==null?void 0:F.label)!=null?P:""},V=function(){return y.data().imageWidth},w=function(){return y.data().imageHeight};
return _.O("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.O(_.v,{cond:function(){var t=y.data();if(t){var F,I,P;var C=((F=_.hs().resolve(_.eX(_.va)))==null?0:F())?(I=t.imageDark)!=null?I:t.imageLight:(P=t.imageLight)!=null?P:t.imageDark}else C=void 0;return C},
then:function(t){return _.O(_.ca,Object.assign({},y,{data:t,alt:W,targetWidth:V,targetHeight:w,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
UkW.idomCompat=!0;var CP=_.eY(function(y){var W=y.data;y=_.LD(function(){return W().slots},[]);
var V=_.LD(function(){return W().layoutProperties},{}),w=_.hs().resolve(_.L5);
return _.O("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Aoe(V,w)},_.O(_.YV,{each:y,keyBy:"INDEX"},function(t){return _.O("div",{class:"ytContainerLayoutViewModelSlot",style:Aoe(function(){return t().layoutProperties},w)},_.O(_.Q7,{data:function(){return t().contents}},{containerLayoutViewModel:CP,
badgeViewModel:_.ip,buttonViewModel:_.lk,styledTextViewModel:q6t,contentPreviewImageViewModel:function(F){return _.O(_.f9,{data:F.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(F){return _.O(UkW,{data:F.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
CP.idomCompat=!0;var u1W=_.eY(function(y){var W=y.data;var V=y.stateFns;var w=function(){var d=W(),L=d.productId;return!(!d.clearGroupId&&!L)},t=function(){var d=W(),L=d.clearGroupId;
return(d=d.productId)?V().isProductSelected(d):L?V().getSelectedProductByGroupId(L)==null:!1},F=function(){var d=W(),L=d.clearGroupId;
if(d=d.productId)V().onProductSelected(d);else if(L)V().onClearGroupSelected(L)},I=function(){var d=W(),L=d.clearGroupId;
if(d=d.productId){var z;return"group:"+(((z=V().getProductById(d))==null?void 0:z.groupId)||"")}return L?"group:"+L:""},P=_.LD(function(){return W().header},[]),C=_.LD(function(){return W().body},[]);
return _.O("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.O(_.v,{cond:function(){return P().length>0||w()},
then:function(){return _.O("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.O("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.O(_.Q7,{data:P},{containerLayoutViewModel:function(d){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(CP,{data:d.data}))},
styledTextViewModel:function(d){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(q6t,{data:d.data}))}})),_.O(_.v,{cond:w,
then:function(){return _.O("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.O(_.Qr,{checked:t,name:I,onChange:F}))}}))}}),_.O(_.v,{cond:function(){return C().length>0},
then:function(){return _.O("div",null,_.O(_.Q7,{data:C},{containerLayoutViewModel:function(d){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(CP,{data:d.data}))}}))}}))},"rf");
u1W.idomCompat=!0;var S6P=_.eY(function(y){var W=y.data;var V=y.stateFns;return _.O("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.O(_.v,{cond:function(){return W().banner},
then:function(w){return _.O("div",{class:"ytPdpCardViewModelBanner"},_.O(_.Lv,{text:w}))}}),_.O(_.Q7,{data:function(){return W().sections}},{pdpCardSectionViewModel:function(w){w=w.data;
var t={};return _.O("div",{class:_.kS("ytPdpCardViewModelSectionContainer",(t.ytPdpCardViewModelShowDividers=function(){return W().showDividers},t))},_.O(u1W,{data:w,
stateFns:V}))}}))},"sf");
S6P.idomCompat=!0;var Dkd=_.eY(function(y){var W=y.data;var V=y.isOverlay;y={};return _.O("pdp-masthead-view-model",{class:_.kS("ytPdpMastheadViewModelHost",(y.ytPdpMastheadViewModelIsOverlay=V,y))},_.O(_.Q7,{data:function(){return W().image}},{contentPreviewImageViewModel:_.f9,
themedImageViewModel:function(w){return _.O(UkW,{data:w.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.O(_.v,{cond:function(){return W().title},
then:function(w){return _.O("h1",{class:"ytPdpMastheadViewModelHeading"},_.O(_.Lv,{text:w,isOverlay:V}))}}),_.O(_.YV,{each:function(){var w;
return(w=W().finePrint)!=null?w:[]}},function(w){return _.O("div",{class:"ytPdpMastheadViewModelFinePrint"},_.O(_.Lv,{text:w,
isOverlay:V}))}))},"tf");
Dkd.idomCompat=!0;var lbC=_.eY(function(y){var W=y.data;var V=y.stateFns;var w=function(){return"pdp-pricing-group-selector-"+W().pricingGroupAttributeIds},t=_.LD(function(){return W().pricingGroupSelectorSectionHeader});
return _.O("pdp-pricing-group-selector-view-model",null,_.O(_.v,{cond:function(){return!!t()},
then:function(){return _.O(_.Q7,{data:t},{sectionHeaderViewModel:function(F){F=F.data;var I={};return _.O("div",{class:_.kS("ytPdpPricingGroupSelectorViewModelSectionHeader",(I.ytPdpPricingGroupSelectorViewModelFullBleed=!0,I.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,I))},_.O(_.U2,{data:F}))}})}}),_.O("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.O(_.YV,{each:function(){var F=V().getSelectedProductByGroupId(W().groupId);
if(!F)return _.GD(Error("Sj`"+W().groupId)),[];var I,P=(I=W().pricingGroupAttributeIds)!=null?I:[],C;if((C=F.pricingGroups)==null||!C.length||!P.length)return[];I=F.pricingGroups.filter(function(c){return P.length?c.pricingGroupAttributes.every(function(K){return P.includes(K)}):!1});
F=[];if(P.length>0){I=[].concat(_.GC(I));C=_.N(P);for(var d=C.next(),L={};!d.done;L={targetAttrId:void 0},d=C.next())L.targetAttrId=d.value,d=I.findIndex(function(c){return function(K){return K.pricingGroupAttributes.includes(c.targetAttrId)}}(L)),d!==-1&&(F.push(I[d]),I.splice(d,1))}var z=V().getSelectedPricingGroupAttributesByGroupId(W().groupId);
return F.map(function(c){var K=!1;z&&c.pricingGroupAttributes&&(K=lm(c.pricingGroupAttributes,z));return{pricingGroup:c,isSelected:K}})},
keyBy:function(F){return F.pricingGroup.pricingGroupId}},function(F){return _.O("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.O("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.O(_.Q7,{data:function(){return F().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:CP})),_.O("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.O(_.Qr,{checked:function(){return F().isSelected},
name:w,onClick:function(){V().onPricingGroupSelected(F().pricingGroup.pricingGroupId)}})))})))},"uf");
lbC.idomCompat=!0;var xke=_.eY(function(y){var W=y.data;var V=y.stateFns;var w=function(){var I=V().getSelectedPricingOptions().map(function(d){return d.pricingOptionId}),P=V().getSelectedProductByGroupId(W().groupId);
if(!P)return _.GD(Error("Tj`"+W().groupId)),[];var C=V().getSelectedPricingGroupAttributesByGroupId(W().groupId);return aZt(P.pricingOptions,C,I)},t=_.LD(function(){return W().pricingOptionSelectorSectionHeader}),F=function(){return w().length>1};
return _.O("pdp-pricing-option-selector-view-model",null,_.O(_.v,{cond:function(){return!!t()&&F()},
then:function(){return _.O(_.Q7,{data:t},{sectionHeaderViewModel:function(I){I=I.data;var P={};return _.O("div",{class:_.kS("ytPdpPricingOptionSelectorViewModelSectionHeader",(P.ytPdpPricingOptionSelectorViewModelFullBleed=!0,P.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,P))},_.O(_.U2,{data:I}))}})}}),_.O(_.v,{cond:F,
then:function(){return _.O("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.O(_.YV,{each:w,keyBy:"INDEX"},function(I){return _.O("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.O("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.O(_.Q7,{data:function(){return I().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:CP})),_.O("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.O(_.Qr,{checked:function(){return I().isSelected},
onClick:function(){V().onPricingOptionSelected(I().pricingOption.pricingOptionId);var P=I().pricingOption.onSelectPricingOption;if(P=_.tl(P)){var C;(C=_.hs().resolve(_.oA))==null||C.resolveCommand(P)}}})))}))}}))},"vf");
xke.idomCompat=!0;var kpu=_.eY(function(y){var W=y.data;var V=y.stateFns;return _.O("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.O(_.Q7,{data:function(){var w,t;return(t=(w=V().getSelectedPricingOptions()[0])==null?void 0:w.primaryButton)!=null?t:W().emptyStateButton}},{buttonViewModel:_.lk}))},"wf");
kpu.idomCompat=!0;var sVd=_.eY(function(y){var W=y.stateFns;return _.O("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.O(_.Q7,{data:function(){return W().getSelectedPricingOptions().flatMap(function(V){return V.summaryLines}).filter(function(V){return!!V})}},{containerLayoutViewModel:function(V){return _.O("div",{class:"ytPdpSummaryViewModelLineItem"},_.O(CP,{data:V.data}))}}))},"xf");
sVd.idomCompat=!0;var AfC=_.eY(function(y){function W(l){var x=I();_.dc(_.Z6("pdpStateEntity",x,{key:x,selectedPricingOptions:l}))}
var V=y.data;var w=y.internalScrolling;var t=y.stateFnsForTesting;var F=_.LD(function(){return V().allProducts},[]),I=_.LD(function(){return V().pdpStateEntityKey},""),P=_.Yn(Gtu,I),C=_.DZ(function(){_.Gt(!0);
var l;return(l=t==null?void 0:t())!=null?l:bbd(P,F,W)},void 0,"pjJzrd"),d=_.LD(function(){return V().body},[]),L=_.LD(function(){return V().columnBreakHints},[]),z=function(){return V().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},c=function(){return z()||V().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},K=_.DZ(function(){var l=_.OZ(V().background),x;
if(l==null?0:(x=l.sources)==null?0:x.length){var B=B===void 0?!0:B;l=_.F4G(void 0,l.sources,void 0,B,B?1E3:void 0,B?void 0:1E3)}else l=null;return l},void 0,"GO4GAe");
y=_.Rd({"--pdp-view-model-background":function(){return K()?"url("+K()+")":void 0}});
var f={};w=_.kS("ytPdpViewModelHost",(f.ytPdpViewModelHasBackground=function(){return c()||!!K()},f.ytPdpViewModelHasDarkBackground=c,f.ytPdpViewModelHasScrim=z,f.ytPdpViewModelInternalScrolling=_.LD(w,!1),f));
var U=function(l){var x={};return _.kS("ytPdpViewModelItem",(x.ytPdpViewModelFullBleed=function(){return _.nLv(l())==="dividerViewModel"||_.nLv(l())==="sectionHeaderViewModel"},x.ytPdpViewModelNoVerticalPadding=function(){return _.nLv(l())==="sectionHeaderViewModel"},x))};
_.a8(function(){var l=V().onStartCommand;if(l&&(l=_.tl(l))){var x;(x=_.hs().resolve(_.oA))==null||x.resolveCommand(l)}});
return _.O("pdp-view-model",{class:w,style:y},_.O("div",{class:"ytPdpViewModelColumnContainer"},_.O(_.YV,{each:function(){return Qfq(d(),L())},
keyBy:"INDEX"},function(l){return _.O("div",{class:"ytPdpViewModelColumn"},_.O(_.Q7,{data:l},{containerLayoutViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(CP,{data:x}))},
dividerViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(_.c6z,{data:x}))},
pdpCardViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(S6P,{data:x,
stateFns:C}))},
pdpMastheadViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(Dkd,{data:x,
isOverlay:c}))},
pdpPricingGroupSelectorViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(lbC,{data:x,
stateFns:C}))},
pdpPricingOptionSelectorViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(xke,{data:x,
stateFns:C}))},
pdpPrimaryButtonViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(kpu,{data:x,
stateFns:C}))},
pdpSummaryViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(sVd,{data:x,
stateFns:C}))},
sectionHeaderViewModel:function(x,B){x=x.data;return _.O("div",{class:U(function(){return l()[B()]})},_.O(_.U2,{data:x}))}}))})))},"yf");
AfC.idomCompat=!0;_.iF(AfC,"pdp-view-model",{props:{data:_.vB,stateFnsForTesting:_.p5,internalScrolling:_.p5}});var Y6E=_.eY(function(y){var W=y.data;var V=y.className;var w=_.Yn(_.zS,function(){return W().flowStateEntityKey});
return _.O("ytm-premium-purchase-button-renderer",{class:_.kS("yt-premium-purchase-button-renderer",V)},_.O(_.Q7,{data:function(){var t;return(t=_.h(w(),yb3))==null?void 0:t.primaryButtonOverride}},{buttonRenderer:function(t){return _.O(_.dX,{data:t.data,
className:V})},
buttonViewModel:function(t){return _.O(_.lk,{data:t.data,className:V})}}))},"zf");
Y6E.idomCompat=!0;var BEj=_.eY(function(y){var W=y.data;y=y.className;var V=function(){return Zbj(W().style)},w=_.kS("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V),t=_.kS("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V);
return _.O("yt-flow-bottom-bar-renderer",{class:_.kS("yt-flow-bottom-bar-renderer",y,V)},_.O(_.Q7,{data:function(){return W().secondaryButton}},{buttonRenderer:function(F){return _.O(_.dX,{data:F.data,
className:t})},
buttonViewModel:function(F){return _.O(_.lk,{data:F.data,className:t})},
premiumPurchaseButtonRenderer:function(F){return _.O(Y6E,{data:F.data,className:t})}}),_.O(_.Q7,{data:function(){return W().primaryButton}},{buttonRenderer:function(F){return _.O(_.dX,{data:F.data,
className:w})},
buttonViewModel:function(F){return _.O(_.lk,{data:F.data,className:w})},
premiumPurchaseButtonRenderer:function(F){return _.O(Y6E,{data:F.data,className:w})}}))},"Af");
BEj.idomCompat=!0;_.iF(BEj,"yt-flow-bottom-bar-renderer",{props:{data:_.vB,className:_.vB}});var Jfj=_.eY(function(y){var W=_.kS(y.className,"ytOfferSummaryRendererHost");return _.O("yt-offer-summary-renderer",{class:W},_.O("div",{class:"ytOfferSummaryRendererTextContainer"},_.O("div",{class:"ytOfferSummaryRendererEyebrowText"},_.O(_.Lv,{text:function(){return y.data().eyebrowText}})),_.O("div",{class:"ytOfferSummaryRendererTitle"},_.O(_.Lv,{text:function(){return y.data().title}})),_.O("div",{class:"ytOfferSummaryRendererSubtitle"},_.O(_.Lv,{text:function(){return y.data().subtitle}})),
_.O("div",{class:"ytOfferSummaryRendererFeatureListData"},_.O(_.YV,{each:function(){var V;
return(V=y.data().featureListData)!=null?V:[]}},function(V){var w;
return _.O("div",{class:"ytOfferSummaryRendererFeatureList"},_.O(_.jl,{icon:(w=V.icon)==null?void 0:w.iconType,active:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(V.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"}}}),_.O("div",{class:"ytOfferSummaryRendererFeatureListText"},_.O(_.Lv,{text:V.text,
className:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.O("div",{class:"ytOfferSummaryRendererDescription"},_.O(_.Lv,{text:function(){return y.data().description}}))))},"Bf");_.iF(_.eY(function(y){var W={};W=_.kS("ytOfferSummaryFlowStepRendererHost",(W.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=y.shouldDisableHeaderTopMargin,W));return _.O("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:W},_.O("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.O("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.O(_.Lv,{text:function(){return y.data().header}})),_.O("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.O(_.Lv,{text:function(){return y.data().subtitle}}))),_.O("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.O(_.Q7,{data:function(){return y.data().offerSummary}},{offerSummaryRenderer:function(V){return _.O(Jfj,{data:V.data,
className:y.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.p5,
flowClassName:_.p5,flowStateEntityKey:_.p5,shouldDisableHeaderTopMargin:_.p5}});var Rym=_.eY(function(y){var W=y.data;var V=y.className;var w=y.flowStateEntityKey;var t=y.selectionStepStyle;y=_.YS(function(C){var d=W(),L=w==null?void 0:w();C.target&&(C.stopPropagation(),C=L||"",L=_.zS(_.vC().getState(),C),d=Object.assign({},L,{premiumPurchaseFlowState:{selectedOptionId:d.optionId,primaryButtonOverride:d.primaryButtonOverride}}),_.vC().dispatch(_.B5("flowStateEntity",C,d)));return!1});
var F=function(){return(w==null?void 0:w())||""},I=_.Yn(_.zS,F);
_.a8(function(){var C=W(),d=F(),L=I();C.defaultSelected&&d!==""&&C.primaryButtonOverride&&Wdm(C.optionId||"",d,C.primaryButtonOverride,L)});
var P={};return _.O("ytm-option-item-renderer",{"on:click":y,class:_.kS(V,"ytm-option-item-renderer",(P["ytm-option-item-renderer--lp2-style"]=function(){return(t==null?void 0:t())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},P))},_.O("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.O("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var C=W(),d=F(),L=I();L=_.h(L,yb3);return(L?(L==null?void 0:L.selectedOptionId)||"":C.defaultSelected&&d!==""?(C==null?void 0:C.optionId)||"":"")===W().optionId},
name:("input"+_.bK(_.GT)).toString()})),_.O("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.O(_.Q7,{data:function(){return W().titleBadge}},{badgeViewModel:function(C){return _.O(_.ip,{data:C.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.O(_.v,{cond:function(){return W().eyebrowText},
then:function(){return _.O("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.O(_.Lv,{text:function(){return W().eyebrowText}}))}}),_.O("div",{class:"ytm-option-item-renderer__option-item-title"},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.O(_.Lv,{text:function(){return W().subtitle}})),_.O(_.v,{cond:function(){return W().featureListData},
then:function(){return _.O("div",{class:"ytm-option-item-renderer__feature-list-data"},_.O(_.YV,{each:function(){return W().featureListData||[]}},function(C){var d,L=(d=C.icon)==null?void 0:d.iconType;
a:switch(C.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":d="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":d="ytm-option-item-renderer__feature-list-icon-small";break a;default:d="ytm-option-item-renderer__feature-list-icon-default"}return _.O("div",{class:"ytm-option-item-renderer__feature-list"},_.O(_.jl,{icon:L,className:d,active:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.O("div",{class:"ytm-option-item-renderer__feature-list-text"},_.O(_.Lv,{text:C.text,
className:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.O("div",{class:"ytm-option-item-renderer__option-item-description"},_.O(_.Lv,{text:function(){return W().description}}))))},"Df");var jVq=_.eY(function(y){var W=y.data;var V=y.flowClassName;var w=y.flowStateEntityKey;var t=y.selectionStepStyle;return _.O("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.O("div",{class:"yt-option-section-renderer__option-section-header-section"},_.O("div",{class:"yt-option-section-renderer__option-section-header"},_.O(_.Lv,{text:function(){return W().title}}),_.O(_.Q7,{data:function(){return W().titleBadge}},{badgeViewModel:function(F){return _.O(_.ip,
{data:F.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.O(_.v,{cond:function(){return W().subtitle},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.O(_.Lv,{text:function(){return W().subtitle}}))}}),_.O(_.v,{cond:function(){return W().featureListData},
then:function(F){return _.O("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.O(_.YV,{each:F},function(I){var P;return _.O("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.O(_.jl,{icon:(P=I.icon)==null?void 0:P.iconType,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(I.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.O("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.O(_.Lv,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.O(_.v,{cond:function(){return W().secondaryTitle},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.O(_.Lv,{text:function(){return W().secondaryTitle}}))}}),_.O(_.YV,{each:function(){return W().sectionDisclaimers||[]}},function(F){return _.O("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.O(_.Lv,{text:F}))})),_.O(_.Q7,{data:function(){return W().optionItems}},{optionItemRenderer:function(F){return _.O("div",{class:"yt-option-section-renderer__option-item"},_.O(Rym,{data:F.data,
className:V,flowStateEntityKey:w,selectionStepStyle:t}))}}),_.O(_.v,{cond:function(){return W().offerText},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.O(_.Lv,{text:function(){return W().offerText}}))}}))},"Ef");
jVq.idomCompat=!0;var $kj=_.eY(function(y){var W=y.data;var V=y.flowClassName;var w=y.flowStateEntityKey;y=y.isDesktop;var t=function(){var d;return(d=W().flowStateEntityKey)!=null?d:w==null?void 0:w()},F=function(){return(t==null?void 0:t())||""},I=function(){return W().style},P=_.Yn(_.zS,F);
_.a8(function(){var d=W(),L=F(),z=P();!_.h(z,yb3)&&d.noPreselect&&L!==""&&d.defaultButtonOverride&&Wdm("default",L,d.defaultButtonOverride,z)});
var C={};return _.O("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.kS("ytm-option-selection-flow-step-renderer",(C["ytm-option-selection-flow-step-renderer--desktop"]=y,C["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return W().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},C))},_.O("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"},
_.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.O(_.Lv,{text:function(){return W().header}})),_.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.O(_.Lv,{text:function(){return W().subtitle}}))),_.O(_.Q7,{data:function(){return W().optionItems||[]}},{optionItemRenderer:function(d){return _.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.O(Rym,{data:d.data,
className:V,flowStateEntityKey:t,selectionStepStyle:I}))},
optionSectionRenderer:function(d){return _.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.O(jVq,{data:d.data,flowClassName:V,flowStateEntityKey:t,selectionStepStyle:I}))}}))},"Ff");
$kj.idomCompat=!0;_.iF($kj,"yt-option-selection-flow-step-renderer",{props:{data:_.vB,flowClassName:_.vB,flowStateEntityKey:_.vB,isDesktop:_.vB}});var V0P,wVd;_.O7=_.eY(function(y){var W=_.zb(y,{type:1,disablePadding:!1,disablePrimaryButton:!1}),V=W.data,w=W.type;y=W.disablePadding;var t=W.disablePrimaryButton,F=W.onClickPrimaryButton,I=function(){return V().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},P=function(){return{disabled:t(),
state:t()?"disabled":"active"}},C=function(){return V().leadingLabel||V().trailingLabel};
W={};return _.O("yt-panel-footer-view-model",{class:_.kS("yt-panel-footer-view-model-wiz",(W["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return V().shouldHideDivider},W["yt-panel-footer-view-model-wiz--disable-padding"]=y,W))},_.O(_.v,{cond:C,
then:function(){var d={},L={};return _.O("div",{class:_.kS("yt-panel-footer-view-model-wiz__text-row",(d["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var z=V();return!(!z.leadingLabel&&!z.trailingLabel||!z.primaryButton&&!z.secondaryButton)},d))},_.O(_.Lv,{text:function(){return V().leadingLabel},
className:_.kS((L["yt-panel-footer-view-model-wiz--text-padding"]=C,L))}),_.O(_.Lv,{text:function(){return V().trailingLabel}}))}}),_.O(_.v,{cond:I,
then:function(){var d={};return _.O("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.O("div",{class:_.kS("yt-panel-footer-view-model-wiz__primary-button",(d["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return V().secondaryButton},d))},_.O(_.Q7,{data:function(){return V().primaryButton}},{buttonViewModel:function(L){return _.O(_.lk,{data:L.data,
buttonOverrides:P,onClick:F})}})),_.O(_.Q7,{data:function(){return V().secondaryButton}},{buttonViewModel:_.lk}))}}),_.O(_.v,{cond:function(){return!I()},
then:function(){var d={},L={},z={};return _.O("div",{class:_.kS("yt-panel-footer-view-model-wiz__button-row",(d["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===w()},d))},_.O("div",{class:_.kS("yt-panel-footer-view-model-wiz__button-row--left-button",(L["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===w()},L["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!V().secondaryButton||0===w()},L["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===w()},L))},_.O(_.Q7,{data:function(){return V().secondaryButton}},{buttonViewModel:_.lk})),_.O("div",{class:_.kS("yt-panel-footer-view-model-wiz__primary-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===w()||1===w()},z["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===w()},z))},_.O(_.Q7,{data:function(){return V().primaryButton}},{buttonViewModel:function(c){return _.O(_.lk,{data:c.data,
buttonOverrides:P,onClick:F})}})))}}))},"Gf");
_.O7.idomCompat=!0;_.n23=_.eY(function(y){y=_.zb(y,{disablePadding:!1});var W=y.data,V=y.disablePadding;y=_.NVq(function(){return W().formId});
var w=y.onSubmit,t=y.isValid,F=y.isSubmitting;return _.O("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.O(_.Q7,{data:function(){return W().panelFooter}},{panelFooterViewModel:function(I){return _.O(_.O7,{data:I.data,
onClickPrimaryButton:function(){w()},
disablePrimaryButton:function(){return!t()||F()},
disablePadding:V})}}))},"Hf");_.iF(_.n23,"yt-form-footer-view-model",{props:{data:_.vB,disablePadding:_.vB}});_.iF(_.eY(function(y){return _.O("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.O(_.v,{cond:function(){var W;return(W=y.data())==null?void 0:W.image},
then:function(W){return _.O(_.ca,{data:W,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.O(_.Lv,{text:function(){var W;
return(W=y.data())==null?void 0:W.title}})),_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.O(_.Lv,{text:function(){var W;
return(W=y.data())==null?void 0:W.subtitle}})),_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.O(_.Q7,{data:function(){var W;
return(W=y.data())==null?void 0:W.viewTipsButton}},{buttonViewModel:_.lk}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.vB}});var HAe=_.eY(function(y){var W=_.Yn(I7E,_.LD(function(){var I;return(I=y.data())==null?void 0:I.noteFeedEntityKey},"")),V=_.Yn(KTu,_.LD(function(){var I;
return(I=y.data())==null?void 0:I.userRatingEntityKey},"")),w=_.e("enable_user_rating_web"),t=function(){var I,P,C;
return((I=W())==null?0:I.contributorNote)?(P=W())==null?void 0:P.contributorNote:(C=y.data())==null?void 0:C.existingNote},F=function(){var I,P;
return!!V()&&!!gVj((I=V())==null?void 0:I.helpfulnessValue,(P=y.data())==null?void 0:P.noteData)};
return w?_.O("yt-note-view-model",{class:"ytNoteViewModelHost"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.O(_.v,{cond:function(){var I,P;return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.isPinned},
then:function(){return _.O(_.jl,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.O(_.v,{cond:function(){var I,P;return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.isPublished},
then:function(){return _.O(_.jl,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.O(_.Q7,{data:function(){var I;
return(I=y.data())==null?void 0:I.metadata}},{contentMetadataViewModel:_.TX}),_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var I,P;
return(P=_.h((I=y.data())==null?void 0:I.metadata,_.AS2))==null?void 0:P.delimiter}),_.O(_.Lv,{text:function(){var I;
return(I=t())==null?void 0:I.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.O(_.Q7,{data:function(){var I,P,C,d,L,z,c,K=!!((I=y.data())==null?0:(P=I.noteData)==null?0:P.isPinned);I=F();P=(C=y.data())==null?void 0:C.noteData;C=(d=W())==null?void 0:(L=d.contributorNote)==null?void 0:L.deleteAction;d=(z=y.data())==null?void 0:z.overflowButtonNoteWithRatingOnTapOverride;z=(c=y.data())==null?void 0:c.overflowButton;return K?PUm(P,C):I?{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}}:z}},{buttonViewModel:function(I){return _.O(_.lk,{data:I.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.O("div",{class:"ytNoteViewModelNoteContent"},_.O(_.Lv,{text:function(){var I;
return(I=t())==null?void 0:I.text}})),_.O(_.v,{cond:function(){var I,P;
return!((I=y.data())==null?0:(P=I.noteData)==null?0:P.isPinned)},
then:function(){return _.O(_.v,{cond:F,then:function(){return _.O("div",{class:"ytNoteViewModelUserRatingContainer"},_.O(_.Lv,{text:function(){var I,P;return gVj((I=V())==null?void 0:I.helpfulnessValue,(P=y.data())==null?void 0:P.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.O(_.Q7,{data:function(){var I;return(I=y.data())==null?void 0:I.userRatingButton}},{buttonViewModel:function(I){return _.O(_.lk,{data:I.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.O(_.v,{cond:function(){var I,P;
return!((I=y.data())==null?0:(P=I.noteData)==null?0:P.ignoreDivider)},
then:function(){return _.O("div",{class:"ytNoteViewModelDivider"},_.O(_.Q7,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(I){return _.O(_.c6z,{data:I.data})}}))}})):_.O("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.O(_.v,{cond:function(){var I,P;return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.isPinned},
then:function(){return _.O(_.jl,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.O(_.v,{cond:function(){var I,P;return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.isPublished},
then:function(){return _.O(_.jl,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.O(_.v,{cond:function(){return w},
then:function(){return _.O(_.Q7,{data:function(){var I;return(I=y.data())==null?void 0:I.metadata}},{contentMetadataViewModel:function(I){return _.O(_.TX,{data:I.data})}})}}),_.O(_.Lv,{text:function(){var I,P;
return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.headerText}}),_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.O(_.Lv,{text:function(){var I,P;
return(I=y.data())==null?void 0:(P=I.noteData)==null?void 0:P.delimiter}})),_.O(_.Lv,{text:function(){var I,P;
return(I=W())==null?void 0:(P=I.contributorNote)==null?void 0:P.publishedTimeText}})),_.O(_.Q7,{data:function(){var I,P,C;
return PUm((I=y.data())==null?void 0:I.noteData,(P=W())==null?void 0:(C=P.contributorNote)==null?void 0:C.deleteAction)}},{buttonViewModel:function(I){return _.O(_.lk,{data:I.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.O("div",{class:"ytNoteViewModelNoteContent"},_.O(_.Lv,{text:function(){var I,P;
return(I=W())==null?void 0:(P=I.contributorNote)==null?void 0:P.text}})))},"Jf");
HAe.idomCompat=!0;_.iF(HAe,"yt-note-view-model",{props:{data:_.vB}});var vo=_.eY(function(y){var W=_.zb(y,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),V=W.label,w=W.text,t=W.placeholder,F=W.hint;y=W.rows;var I=W.overflowStyle,P=W.outline,C=W.disabled,d=W.disableNewLines,L=W.characterLimit,z=W.validation,c=W.onInput,K=_.I0("textarea");W=_.N(_.Jl(function(){return w()}));
var f=W.next().value,U=W.next().value;W=_.N(_.M1(!1,void 0,"fXvinf"));var l=W.next().value,x=W.next().value,B=function(){x(!0)},r=function(){x(!1)};
_.a8(function(){var $P=K.value,sz=I(),Wz=f();sz==="expand-vertically"&&Wz&&CUE($P);K.value.addEventListener("focusin",B);K.value.addEventListener("focusout",r)});
_.XT(function(){K.value.removeEventListener("focusin",B);K.value.removeEventListener("focusout",r)});
var H=function(){var $P;return($P=z())==null?void 0:$P.validate(f())},a=function(){return L()&&!H()&&f().length>L().maxChars},b=function(){return!!H()||a()};
W=_.YS(function($P){if(!$P.currentTarget)return!1;$P=$P.currentTarget;U($P.value);I()==="expand-vertically"&&CUE($P);c==null||c($P.value);return!0});
var Fv=_.YS(function($P){d()&&$P.key==="Enter"&&$P.preventDefault();return!1}),Py=_.YS(function(){K.value.focus()}),du=function(){return t()||V()},mL={},un={},hv={};
return _.O("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.O("div",{class:_.kS("ytStandardsTextareaShapeTextareaContainer",(mL.ytStandardsTextareaShapeTextareaContainerOutline=P,mL.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=C,mL.ytStandardsTextareaShapeTextareaContainerOutlineError=b,mL)),"on:click":Py},_.O("label",{class:_.kS("ytStandardsTextareaShapeLabel",(un.ytStandardsTextareaShapeLabelFocused=l,un.ytStandardsTextareaShapeLabelDisabled=C,un.ytStandardsTextareaShapeLabelError=
function(){return b()&&!C()},un.ytStandardsTextareaShapeLabelHidden=function(){return!l()&&!f()&&!!du()},un))},V),_.O("div",{class:_.kS("ytStandardsTextareaShapePlaceholder",(hv.ytStandardsTextareaShapePlaceholderVisible=function(){return!l()&&!f()},hv)),
"aria-hidden":"true"},du),_.O("textarea",{el:K,class:"ytStandardsTextareaShapeTextarea",rows:y,disabled:C,placeholder:du,"on:input":W,"on:keydown":Fv},f)),_.O(_.v,{cond:function(){return F()&&!b()},
then:function(){var $P={};return _.O("div",{class:_.kS("ytStandardsTextareaShapeHint",($P.ytStandardsTextareaShapeHintDisabled=C,$P))},_.O("div",{class:"ytStandardsTextareaShapeHintHintMessage"},F))}}),_.O(_.v,{cond:H,
then:function(){return _.O(XUC,{disabled:C},_.O("div",{class:"ytStandardsTextareaShapeErrorMessage"},H))}}),_.O(_.v,{cond:L,
then:function($P){return _.O(_.v,{cond:a,then:function(){return _.O(XUC,{disabled:C},_.O("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return $P().errorMessage}),_.O("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return f().length+"/"+$P().maxChars}))}})}}))},"Kf");
vo.idomCompat={callbacks:{onInput:!0}};var XUC=_.eY(function(y){var W={};return _.O("div",{class:_.kS("ytStandardsTextareaShapeError",(W.ytStandardsTextareaShapeErrorDisabled=y.disabled,W)),role:"alert"},_.O(_.jl,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),y.children)},"Lf");_.abC=_.eY(function(y){var W=y.data;return _.O("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.O(vo,{text:y.text,label:function(){var V;return(V=W().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=W().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=W().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=W().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=W().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:y.disabled,disableNewLines:function(){var V;return(V=W().displayProperties)==null?void 0:V.disableNewLines},
onInput:y.onInput,characterLimit:y.characterLimit,validation:y.validation,rows:function(){var V;return(V=W().displayProperties)==null?void 0:V.rows}}))},"Mf");_.Gpj=_.eY(function(y){var W=y.data;return _.O("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.O(vo,{text:y.text,label:function(){var V;return(V=W().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=W().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=W().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=W().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=W().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var V;return(V=W().displayProperties)==null?void 0:V.disableNewLines},
onInput:y.onInput,characterLimit:y.characterLimit,validation:y.validation,rows:function(){var V;return(V=W().displayProperties)==null?void 0:V.rows}}))},"Nf");var rft=_.eY(function(y){var W=_.N(_.Jl(function(){var du,mL;return((du=y.data().structuredContextNoteFormSchema)==null?0:(mL=du.initialValues)==null?0:mL.noteBody)?y.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),V=W.next().value,w=W.next().value;
W=_.N(_.Jl(function(){y.data();return!1}));
var t=W.next().value,F=W.next().value;W=_.N(_.Jl(function(){y.data();return!1}));
var I=W.next().value,P=W.next().value;W=_.N(_.Jl(function(){var du,mL;return((du=y.data().structuredContextNoteFormSchema)==null?0:(mL=du.initialValues)==null?0:mL.timestamp)?y.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var C=W.next().value,d=W.next().value;W=_.N(_.Jl(function(){y.data();return!1}));
var L=W.next().value,z=W.next().value;W=_.N(_.Jl(function(){var du,mL;return((du=y.data().structuredContextNoteFormSchema)==null?0:(mL=du.initialValues)==null?0:mL.sources)?[y.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var c=W.next().value,K=W.next().value;W=_.N(_.Jl(function(){y.data();return!1}));
var f=W.next().value,U=W.next().value;W=_.N(_.Jl(function(){return!1}));
var l=W.next().value,x=W.next().value;_.a8(function(){var du;_.EVj((du=y.data().structuredContextNoteFormSchema)==null?void 0:du.id,{isSubmitting:l,onSubmit:function(){x(!0);var mL=oVE(V(),C(),c(),y.data()),un=_.hs().resolve(_.oA);mL&&un&&un.resolveCommand(mL,{commandController:{onSuccess:function(){x(!1)}}})},
isValid:function(){return t()&&!I()&&!L()&&!f()}})});
var B=function(du){if(du!==void 0&&(w(du),!t()&&du.length>0&&F(!0),t())){var mL=dVC(y.data());if(mL){var un=mL.minLength;mL=mL.maxLength;un&&du.length<un?P(!0):mL&&du.length>mL?P(!0):P(!1)}}},r=function(du){if(du!==void 0){d(du);
if(du.length>0){var mL,un,hv,$P,sz=zne((mL=y.data())==null?void 0:(un=mL.structuredContextNoteFormSchema)==null?void 0:(hv=un.fieldSchemas)==null?void 0:($P=hv.timestamp)==null?void 0:$P.validationSchema);if(sz&&(mL=sz.regex)&&!(new RegExp(mL)).test(du)){z(!0);return}}z(!1)}},H=function(du){if(du!==void 0){var mL=du.split(/[ \n]/).map(function(un){return un.trim()});
K(mL);if(du.length>0)for(du=_.N(mL),mL=du.next();!mL.done;mL=du.next())if(!hnP(mL.value)){U(!0);return}U(!1)}},a=function(){return{validate:function(du){if(t()){var mL=dVC(y.data());
if(mL){var un=mL.minLength;mL=mL.translations;if(un&&du.length<un)return mL==null?void 0:mL.minLengthErrorMessage}}}}},b=function(){var du=dVC(y.data()),mL=du==null?void 0:du.maxLength,un;
du=du==null?void 0:(un=du.translations)==null?void 0:un.maxLengthErrorMessage;if(mL&&du)return{maxChars:mL,errorMessage:du}},Fv=function(){return{validate:function(du){if(du){var mL,un,hv,$P,sz=zne((mL=y.data())==null?void 0:(un=mL.structuredContextNoteFormSchema)==null?void 0:(hv=un.fieldSchemas)==null?void 0:($P=hv.timestamp)==null?void 0:$P.validationSchema);
if(sz&&(mL=sz.regex,sz=sz.translations,mL&&!(new RegExp(mL)).test(du)))return sz==null?void 0:sz.regexErrorMessage}}}},Py=function(){return{validate:function(du){if(du){var mL,un,hv,$P,sz=enm((mL=y.data())==null?void 0:(un=mL.structuredContextNoteFormSchema)==null?void 0:(hv=un.fieldSchemas)==null?void 0:($P=hv.sources)==null?void 0:$P.validationSchema);
if(sz&&(mL=sz.translations,mL==null?0:mL.selectedErrorMessage))for(du=du.split(/[ \n]/).map(function(Wz){return Wz.trim()}),du=_.N(du),un=du.next();!un.done;un=du.next())if(!hnP(un.value))return du=void 0,(du=mL)==null?void 0:du.selectedErrorMessage}}}};
return _.O("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Q7,{data:function(){var du;return(du=y.data())==null?void 0:du.noteContents}},{textFormFieldViewModel:function(du){return _.O(_.Gpj,{data:du.data,
onInput:B,validation:a,characterLimit:b})},
textFieldViewModel:function(du){return _.O(_.abC,{data:du.data,onInput:B,validation:a,characterLimit:b})}})),_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Q7,{data:function(){var du;
return(du=y.data())==null?void 0:du.noteTimestamp}},{textFormFieldViewModel:function(du){return _.O(_.Gpj,{data:du.data,
onInput:r,validation:Fv})},
textFieldViewModel:function(du){return _.O(_.abC,{data:du.data,onInput:r,validation:Fv})}})),_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Q7,{data:function(){var du;
return(du=y.data())==null?void 0:du.noteSources}},{textFormFieldViewModel:function(du){return _.O(_.Gpj,{data:du.data,
onInput:H,validation:Py})},
textFieldViewModel:function(du){return _.O(_.abC,{data:du.data,onInput:H,validation:Py})}})))},"Of");
rft.idomCompat=!0;_.iF(rft,"yt-structured-context-note-view-model",{props:{data:_.vB}});var bAv=_.eY(function(y){var W=_.N(_.Jl(function(){var F;if((F=y.controlled)==null?0:F.call(y))return[];var I;return(((I=y.data())==null?void 0:I.chips)||[]).map(function(P){P=_.h(P,_.Nx);if(P==null?0:P.selected)return KdE(P.chipValue)}).filter(function(P){return P!==void 0})})),V=W.next().value,w=W.next().value,t=function(F){var I=KdE(F.chipValue);
if(I!==void 0){var P;if((P=y.controlled)==null?0:P.call(y))return void y.controlled().onTap(I);F=V().includes(I)?[].concat(_.GC(V().filter(function(d){return d!==I}))):[].concat(_.GC(V()),[I]);
w(F);var C;if((C=y.uncontrolled)==null?0:C.call(y))y.uncontrolled().onUpdate(F)}};
return _.O("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.O(_.YV,{each:function(){return y.data().chips||[]}},function(F){return _.O("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.O(_.r_,{data:function(){return _.h(F,_.Nx)},
selected:function(){var I;if(I=_.h(F,_.Nx)){var P=KdE(I.chipValue);if(P!==void 0){var C;I=((C=y.controlled)==null?0:C.call(y))?y.controlled().selectedValues.includes(P):V().includes(P)}else I=void 0}else I=!1;return I},
callback:t}))}))},"Pf");var QVj=_.eY(function(y){var W=y.data;var V=function(){var P;return((P=W())==null?void 0:P.flowStateKey)||""},w=_.Yn(_.zS,V),t=function(){var P;
return(P=_.h(w(),v_q))==null?void 0:P.chips},F=function(P){if(P!==void 0){var C=t()||[];
C=C.find(function(d){return d===P})?C.filter(function(d){return d!==P}):[].concat(_.GC(C),[P]);
C=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.h(w(),v_q),{chips:C})});_.dc(_.B5("flowStateEntity",V(),C))}},I=function(){var P;
return _.h((P=W())==null?void 0:P.inputBox,dOu)};
y=_.B8(function(P){var C=I();C=!(C==null?0:C.maxChars)||P.length<=C.maxChars;P=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.h(w(),v_q),{detail:P}),abuseReportFlowState:Object.assign({},_.h(w(),sq),{navigationEnabled:C})});_.dc(_.B5("flowStateEntity",V(),P))},150);
return _.O("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.O("div",{class:"ytFeedbackFormViewModelChips"},_.O(_.Q7,{data:function(){var P;return(P=W())==null?void 0:P.chipSelection}},{chipSelectionFormFieldViewModel:function(P){return _.O(bAv,{data:P.data,
controlled:function(){return{selectedValues:t()||[],onTap:F}}})}})),_.O("div",{class:"ytFeedbackFormViewModelInputBox"},_.O(vo,{text:function(){var P;
return(P=_.h(w(),v_q))==null?void 0:P.detail},
placeholder:function(){var P;return((P=I())==null?void 0:P.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var P=I();if(P&&P.maxChars)return{maxChars:P.maxChars,errorMessage:P.maxCharsExceededErrorMessage||""}},
onInput:y})),_.O("div",{class:"ytFeedbackFormViewModelFooterText"},_.O(_.Lv,{text:function(){return W().footerText}})))},"Qf");
QVj.idomCompat=!0;_.iF(QVj,"yt-feedback-form-view-model",{props:{data:_.vB}});var ZAj=_.eY(function(y){var W=y.data;var V=function(){return W().flowStateKey||""},w=_.Yn(odd,V),t=function(){return _.h(w(),sq)},F=function(){if(_.e("enable_gff_accessibility_fix")){var I=!0,P;
if((P=t())==null?0:P.navigationEnabled){var C;_.Id((C=t())==null?void 0:C.navigationCommand);I=!1}P=Object.assign({},w(),{abuseReportFlowState:Object.assign({},t(),{isReportFormDirty:I})});_.dc(_.B5("flowStateEntity",V(),P))}else _.Id((I=t())==null?void 0:I.navigationCommand)};
return _.O("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.O("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.O(_.Q7,{data:function(){return W().cancelButton}},{buttonViewModel:function(I){return _.O(_.lk,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}}),_.O(_.Q7,{data:function(){var I;
if(W().navButton){var P=Object;var C=P.assign,d=_.h(W().navButton,_.H5),L=((I=t())==null?0:I.navigationEnabled)||_.e("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,c;I=_.h((z=t())==null?void 0:z.navigationCommand,_.wL);z=(c=_.h(I,_.wS))==null?void 0:c.url;P={buttonViewModel:C.call(P,{},d,{state:L,iconName:z?"OPEN_IN_NEW":""})}}else P=void 0;return P}},{buttonViewModel:function(I){return _.O(_.lk,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}})))},"Rf");
ZAj.idomCompat=!0;_.iF(ZAj,"yt-report-form-bottom-bar-view-model",{props:{data:_.vB}});var ytj=_.eY(function(y){var W=y.nextStep;return _.O("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.O("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.O(_.jl,{icon:function(){return W().iconName||""}})),_.O("div",null,_.O(_.Lv,{text:function(){return W().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Sf"),W6e=_.eY(function(y){var W=y.data;
var V,w=(V=_.hs().resolve(_.eX(_.va)))==null?void 0:V(),t=_.Yn(_.zS,function(){return W().flowStateKey||""});
return _.O("yt-report-form-confirmation-page-view-model",{class:function(){var F;return((F=_.h(t(),sq))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.O("div",{class:function(){var F;
return((F=_.h(t(),sq))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.O(_.ca,{data:function(){return w&&W().imageDark?W().imageDark:W().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.O("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return W().confirmationHeader}),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.O(_.Lv,{text:function(){return W().confirmationText}})),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.O(_.Lv,{text:function(){return W().lawEnforcementText}})),
_.O("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return W().whatToExpectHeader}),_.O(_.v,{cond:function(){return W().nextSteps},
then:function(F){return _.O("div",null,_.O(_.YV,{each:F},function(I){return _.O(ytj,{nextStep:I})}))}}),_.O(_.v,{cond:function(){return W().legalReportText},
then:function(F){return _.O("div",null,_.O(_.Lv,{text:F,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Tf");
W6e.idomCompat=!0;_.iF(W6e,"yt-report-form-confirmation-page-view-model",{props:{data:_.vB}});var Vsv=_.eY(function(y){var W=y.data;var V=function(){var F;return((F=_.h(W().inputBox,dOu))==null?void 0:F.maxChars)||500},w=function(){return W().flowStateKey||""},t=_.Yn(_.zS,w);
y=_.B8(function(F){F=Object.assign({},t(),{flowFormState:{isValid:F.length<=V()},abuseReportFlowState:{userComments:F,navigationEnabled:!(F.length>V()),isReportFormDirty:!0}});_.vC().dispatch(_.Z6("flowStateEntity",w(),F))},150);
_.a8(function(){var F=Object.assign({},t(),{flowFormState:{isValid:!0}});_.vC().dispatch(_.Z6("flowStateEntity",w(),F))});
return _.O("yt-report-form-details-page-view-model",{class:function(){var F;return((F=_.h(t(),sq))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.O("h1",{class:function(){var F;
return((F=_.h(t(),sq))==null?void 0:F.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return W().detailsPageHeader}),_.O("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.O(_.Lv,{text:function(){return W().bodyText}})),_.O("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.O(vo,{label:function(){var F;
return((F=_.h(W().inputBox,dOu))==null?void 0:F.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var F;return{errorMessage:((F=_.h(W().inputBox,dOu))==null?void 0:F.maxCharsExceededErrorMessage)||"",maxChars:V()}},
onInput:y})))},"Uf");
Vsv.idomCompat=!0;_.iF(Vsv,"yt-report-form-details-page-view-model",{props:{data:_.vB}});var wpq=_.eY(function(y){var W=y.data;var V=y.selectedKey;var w=y.onSelected;var t=y.groupName;var F=function(){return W().text},I=function(){return W().attributedText},P=function(){return W().subtext},C=function(){return W().attributedSubtext},d=_.O("div",{class:"ytRadioButtonItemViewModelLabel"},_.O(_.v,{cond:F,
then:function(){return _.O("div",null,F)}}),_.O(_.v,{cond:I,
then:function(){return _.O(_.Lv,{text:I})}}),_.O(_.v,{cond:P,
then:function(){return _.O("div",{class:"ytRadioButtonItemViewModelSubText"},P)}}),_.O(_.v,{cond:C,
then:function(){return _.O("div",{class:"ytRadioButtonItemViewModelSubText"},_.O(_.Lv,{text:C}))}})),L=function(){if(I()){var c;
return(c=I())==null?void 0:c.content}return F()},z=function(){if(C()){var c;
return(c=C())==null?void 0:c.content}return P()};
y={};return _.O("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.O(_.Qr,{name:t,checked:function(){return!(V==null||!V()||W().key!==(V==null?void 0:V()))},
onChange:function(c){w==null||w(c.target,W(),t==null?void 0:t())},
labelRenderable:function(){return d},
ariaLabel:function(){return z()?L()+", "+z():L()},
className:_.kS((y.ytRadioButtonItemViewModelSubTitle=function(){return!!W().subtext},y))}))},"Vf");_.ts4=_.eY(function(y){var W=y.data;var V=y.onSelected;var w=y.selectedKey;var t=y.groupName;var F=function(){return(t==null?void 0:t())||W().key};
return _.O("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.O("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.O(_.Q7,{data:function(){return W().radioButtons}},{radioButtonItemViewModel:function(I){return _.O(wpq,{data:I.data,
onSelected:V,selectedKey:w,groupName:F})}})))},"Wf");var F6j=_.eY(function(y){var W=y.data;var V=_.gS("div"),w=function(){return W().flowStateKey||""},t=_.Yn(_.zS,w),F=function(){return _.h(t(),sq)};
_.H1(function(){var I,P;if(((I=F())==null?0:I.isReportFormDirty)&&((P=F())==null||!P.navigationEnabled)&&_.e("enable_gff_accessibility_fix")){var C;if(((C=F())==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||d.scrollIntoView()}else{var L;(L=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||L.scrollIntoView()}}},"VvP2Ne");
return _.O("yt-report-form-reason-select-page-view-model",{class:function(){var I;return((I=F())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.O("h1",{class:function(){var I;
return((I=F())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return W().pageHeader}),_.O("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.O(_.Lv,{text:function(){return W().bodyText}})),_.O("div",{class:function(){var I;
return((I=F())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.O(_.v,{cond:function(){var I,P;
return((I=F())==null?void 0:I.isReportFormDirty)&&!((P=F())==null?0:P.navigationEnabled)&&_.e("enable_gff_accessibility_fix")},
then:function(){return _.O("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:V},_.O(_.jl,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.O("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return W().emptyReasonSelectErrorMessage}))}}),_.O(_.ts4,{data:function(){return _.h(W().radioButtonGroup,_.p4m)},
onSelected:function(I,P){I=Object.assign({},t(),{abuseReportFlowState:Object.assign({},F(),{reasonKey:P.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:P.command})});_.dc(_.B5("flowStateEntity",w(),I))},
selectedKey:function(){var I;return(I=F())==null?void 0:I.reasonKey},
groupName:"report-form-reason-select-page"})))},"Xf");
F6j.idomCompat=!0;_.iF(F6j,"yt-report-form-reason-select-page-view-model",{props:{data:_.vB}});var EI3=_.eY(function(y){var W=y.data;var V,w=(V=_.hs().resolve(_.eX(_.va)))==null?void 0:V();return _.O("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.O("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.O(_.ca,{data:function(){return w&&W().imageDark?W().imageDark:W().image},
alt:""})),_.O("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.O("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return W().header}),_.O(_.Lv,{text:function(){return W().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Yf");
EI3.idomCompat=!0;_.iF(EI3,"yt-report-form-sign-in-page-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=function(){return W().titleSuperscript},w=function(){return W().answersShelf},t=function(){return W().videoShelf},F=function(){var U;
return(U=W().textInputPlaceholder)==null?void 0:U.content},I=function(){return W().showOpenTextInput&&!_.e("web_hide_explore_hub_until_user_navigates_back_to_home")},P=function(){var U;
return(U=W().textInputValue)==null?void 0:U.content},C=_.gS("input");
_.HV(function(){I()&&P()&&C.value&&(C.value.value=P())});
var d=function(U){U=U.target.value.trim();var l=W().onUpdateText;l&&_.Id(l,{form:{userQuery:U}});W().userQuery=U},L=_.B8(function(U){d(U)},150),z=_.YS(function(U){L(U);
return!1}),c=_.YS(function(U){U.key==="Enter"&&(d(U),(U=W().onNextStepCommand)&&_.Id(U,{forceClickLogging:!0}));
return!1}),K=_.I0("yt-talk-to-recs-view-model"),f=function(){if(_.e("web_hide_explore_hub_until_user_navigates_back_to_home")){var U,l,x;
(x=(l=(U=K.value)==null?void 0:U.closest("ytd-flow-step-renderer"))==null?void 0:l.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||x.click()}};
return _.O("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:K},_.O("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.O(_.Q7,{data:function(){return W().topCornerButton}},{buttonViewModel:_.lk})),_.O("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.O("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.O(_.Lv,{text:function(){return W().title}}),_.O(_.v,{cond:V,
then:function(){return _.O("sup",{class:"ytwTalkToRecsSuperScript"},_.O(_.Lv,{text:V}))}})),_.O("div",{class:"ytwTalkToRecsSubtitle"},_.O(_.Lv,{text:function(){return W().subtitle}})),_.O("div",{class:"ytwTalkToRecsResultsShelf"},_.O(_.v,{cond:w,
then:function(){return _.O(_.Q7,{data:w},{chipsShelfViewModel:function(U){return _.O("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.O(_.Tqz,{data:U.data,callback:f,enableSingleChipSelection:!0}))}})}}),_.O(_.v,{cond:t,
then:function(){return _.O(_.Q7,{data:t},{horizontalShelfViewModel:function(U){return _.O("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.O(_.WO,{data:U.data}))}})}})),_.O(_.v,{cond:I,
then:function(){return _.O("div",{class:"ytwTalkToRecsUserInputBox"},_.O("input",{el:C,type:"text",class:"ytwTalkToRecsTextInput",placeholder:F,value:function(){return W().userQuery},
"on:input":z,"on:keyup":c,maxlength:200}))}})))},"Zf"),"yt-talk-to-recs-view-model",{props:{data:_.vB}});var pV4={sources:[{clientResource:{imageName:"CHECK"}}]};_.NQm=_.eY(function(y){var W=_.I0("div");y=_.zb(y,{error:void 0});var V=y.data,w=y.error,t=y.onSelected;y=_.N(_.Jl(function(){return TVj(V())}));
var F=y.next().value,I=y.next().value;UVv(V,function(c){I(c);var K,f,U=f7t((K=V().options)==null?void 0:(f=K[c])==null?void 0:f.value,V().type);t==null||t(U);W.value.focus()});
y=_.YS(function(){if(!V().disabled){var c=V(),K=F(),f=W.value;c.options&&(c=iGu(c.options,K,c.label),_.hs().resolve(_.nr).openSheet({viewModel:c},f))}});
var P=_.lWd(),C=function(){return!!w()},d=function(){return!!V().disabled},L={},z={};
return _.O("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.O("div",{class:_.kS("ytDropdownViewModelDropdownContainer",(L.ytDropdownViewModelDropdownContainerErrorBorder=C,L.ytDropdownViewModelDropdownContainerDisabled=d,L)),"on:click":y,el:W,role:"combobox",tabindex:0,"on:keydown":P,"aria-invalid":C,"aria-disabled":d,"aria-describedby":function(){return C()?"dropdown-view-model-error":void 0}},_.O("div",{class:"ytDropdownViewModelText"},mVC(V,C,F),M0q(V,F)),_.O("div",{class:_.kS("ytDropdownViewModelChevronDown",
(z.ytDropdownViewModelChevronDownDisabled=d,z))},_.O(_.jl,{icon:"CHEVRON_DOWN"}))),qFu(V,w))},"$f");_.iF(_.eY(function(y){var W=y.data;var V=function(t){var F=SFq(W());F.videoMetadata||(F.videoMetadata={});F.videoMetadata.sponsorshipsMetadata||(F.videoMetadata.sponsorshipsMetadata={});F.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(t)},w=function(t){var F=SFq(W());
F.scheduledRedirectMetadata||(F.scheduledRedirectMetadata={});F.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(t)};
return _.O("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.O("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.O("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.O(_.Lv,{text:function(){return W().title}}),_.O(_.jl,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.O(_.Lv,{text:function(){return W().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.O(_.Q7,{data:function(){return W().tierChoices}},{dropdownViewModel:function(t){return _.O("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.O(_.NQm,{data:t.data,
onSelected:V}))}}),_.O(_.Q7,{data:function(){return W().startTimeChoices}},{dropdownViewModel:function(t){return _.O("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.O(_.NQm,{data:t.data,
onSelected:w}))}}),_.O(_.Lv,{text:function(){return W().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.O("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.O(_.Q7,{data:function(){return W().scheduleButton}},{panelFooterViewModel:_.O7})))},"ag"),"ytfz-schedule-fanzone-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;y=y.className===void 0?"":y.className;var V=_.Yn(odd,function(){return W().flowStateEntityKey||""}),w={};
w=_.kS("ytFlowBottomBarViewModelFlowBottomBarButtons",(w.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},w));
var t={},F=_.kS("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",w,(t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},t));
t={};var I=_.kS("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",w,(t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},t));
w={};w=_.kS("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
w));
y=_.kS("ytFlowBottomBarViewModelHost",y);return _.O("yt-flow-bottom-bar-view-model",{class:y},_.O(_.v,{cond:function(){var P;return(P=W())==null?void 0:P.textSection},
then:function(P){return _.O("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.O(_.Lv,{text:P}))}}),_.O("div",{class:w},_.O(_.Q7,{data:function(){return W().secondaryButton}},{buttonViewModel:function(P){return _.O(_.lk,{data:P.data,
className:I})}}),_.O(_.Q7,{data:function(){return W().primaryButton}},{buttonViewModel:function(P){return _.O(_.lk,{data:P.data,
className:F,buttonOverrides:function(){var C;return{disabled:!((C=V())==null||!C.primaryButtonDisabled)}}})}})))},"bg"),"yt-flow-bottom-bar-view-model",{props:{data:_.vB,
className:_.p5}});var IYm="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),dj=function(){var y=_.u.apply(this,arguments)||this;y.enableScrollingFix=!0;y.bottomBar=!1;y.hideBottomBar=!1;y.fitContent=!1;return y};
_.p(dj,_.u);_.E=dj.prototype;_.E.ready=function(){_.e("enable_pdp_icon_prefetch")&&_.OB4(_.hs().resolve(_.lc),0,IYm)};
_.E.focus=function(y){this.topBar?_.Pp(this.topBar,y):this.paperDialog.focus(y)};
_.E.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18880_scroller&&(this.JSC$18880_scroller.dialogElement=this.paperDialog,this.JSC$18880_scroller.attached&&typeof this.JSC$18880_scroller.attached==="function"&&this.JSC$18880_scroller.attached())};
_.E.onDataChanged=function(){var y;this.fitContent=!((y=this.data)==null||!y.fitContent);var W;this.bottomBar=!((W=this.data)==null||!W.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.E.onProgressChanged=function(){var y,W,V=((W=(y=this.data)==null?void 0:y.progress)!=null?W:0)*100;this.progressElement.style.width=V+"%"};
_.E.isProgressHidden=function(){var y;return!((y=this.data)==null?0:y.progress)};
_.E.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(y){return _.e("enable_wiz_next_lp2_msof")&&y&&!y.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.CM.Object.defineProperties(dj.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var y;return _.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.h((y=this.data)==null?void 0:y.content,hLd)}}});
dj.prototype.onProgressChanged=dj.prototype.onProgressChanged;dj.prototype.onDataChanged=dj.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dj.prototype,"enableScrollingFix",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dj.prototype,"bottomBar",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dj.prototype,"hideBottomBar",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],dj.prototype,"containsExploreHub",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],dj.prototype,"fitContent",void 0);_.J([_.s$("#progress"),_.R("design:type",HTMLElement)],dj.prototype,"progressElement",void 0);
_.J([_.s$("#scroller"),_.R("design:type",Object)],dj.prototype,"JSC$18880_scroller",void 0);_.J([_.s$("ytd-flow-top-bar-renderer"),_.R("design:type",HTMLElement)],dj.prototype,"topBar",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dj.prototype,"onDataChanged",null);_.J([_.xA("data.progress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dj.prototype,"onProgressChanged",null);
_.J([_.k({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],dj);
_.Y(dj,"ytd-flow-step-renderer",function(){if($Od!==void 0)return $Od;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return $Od=y},{mode:1});var gIE=function(y){this.resolveCommand=y;this.steps={}},PbP=function(y,W){W=_.N(W||[]);
for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=Object.values(V)[0],t=void 0;if((t=w)==null?0:t.stepId)y.steps[w.stepId]=V}},vIj=function(y,W){var V,w,t,F,I;
return _.g(function(P){if((V=y.state)==null||!V.currentStepId)return P.return(void 0);w=Cbe(y);if(!w)return P.return(Oit(y));if(t=_.h(w,_.eLj)){var C;((C=t.screenLoggingData)==null?0:C.screenVeType)&&_.qx(_.BC(),t.screenLoggingData.screenVeType);((F=t)==null?0:F.onStepStartCommand)&&y.resolveCommand((I=t)==null?void 0:I.onStepStartCommand,{})}if(t&&W){C=t;var d,L,z,c;((d=W.flowLoggingData)==null?0:d.eventNamespace)&&((L=C.flowEventData)==null?0:L.eventType)&&((z=C.flowEventData)==null?0:z.eventMetadata)&&
((c=W.flowLoggingData)==null?0:c.flowType)&&(d=_.uN(W.flowLoggingData.eventNamespace,C.flowEventData.eventType,C.flowEventData.eventMetadata),_.SW(_.DP(),d,W.flowLoggingData.flowType));W.steps&&!W.steps.includes(w)&&W.steps.push(w)}return P.return(w)})};
gIE.prototype.back=function(){var y;(y=this.state)!=null&&y.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
gIE.prototype.handleUpdateFlowCommand=function(y){y.steps&&PbP(this,y.steps);y.entityUpdateCommand&&this.resolveCommand(y.entityUpdateCommand,{});y.flowContinuationCommand&&(y=y.flowContinuationCommand)&&(this.getFlowContinuationCommand=y);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Cbe(this)),this.awaitFlowContinuation=void 0)};
gIE.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Oit=function(y){return _.g(function(W){return y.getFlowContinuationCommand?W.return(new Promise(function(V){y.awaitFlowContinuation=V;y.getFlowContinuationCommand&&y.resolveCommand(y.getFlowContinuationCommand,{flow_state:y.state})})):W.return(Promise.resolve(void 0))})},Cbe=function(y){var W;
if((W=y.state)!=null&&W.currentStepId)return y.steps[y.state.currentStepId]};var LP=function(){var y=_.u.apply(this,arguments)||this;y.flowState=new gIE(function(W,V){V=V===void 0?{}:V;_.xc.instance.resolveCommand(W,{form:{form:V,element:y.hostElement}})});
y.initialState=!0;y.isLoading=!1;y.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return y};
_.p(LP,_.u);_.E=LP.prototype;_.E.onPopupClosed=function(y){y&&this.hostElement!==y.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.E.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.E.focus=function(y){var W=this;_.Er(function(){var V=_.i6(W.hostElement).querySelector("ytd-flow-step-renderer");(V==null?0:V.topBar)?V.focus(y):W.topBar&&_.Pp(W.topBar,y)},1)};
_.E.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.E.computeTopBarHidden=function(y){var W;return!((W=_.h(y,_.eLj))==null||!W.topBarOverride)};
_.E.dataChanged=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1){((W=y.data)==null?0:W.steps)&&PbP(y.flowState,y.data.steps);if((V=y.data)==null?0:V.flowContinuationCommand){var t=y.flowState,F=y.data.flowContinuationCommand;F&&(t.getFlowContinuationCommand=F)}return w.yield(vIj(y.flowState,y.data),2)}y.currentFlowStep=w.yieldResult;_.B7(w)})};
_.E.flowChanged=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1){if(!y.flow)return V.return();y.flowState.state=y.flow;y.isLoading=!0;return V.yield(vIj(y.flowState,y.data),2)}W=V.yieldResult;if(!W||y.flow.isLoading)return V.return();y.currentFlowStep=W;y.initialState=!1;y.isLoading=!1;y.autofocusAndRefit();_.B7(V)})};
_.E.autofocusAndRefit=function(){var y=this,W=_.hs().resolve(_.eX(_.MC)),V=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),w=document.querySelector("yt-report-form-confirmation-page-view-model"),t=document.querySelector("yt-report-form-details-page-view-model"),F=document.querySelector("yt-report-form-reason-select-page-view-model"),I=document.querySelector("yt-contributor-zero-state-view-model"),
P=document.querySelector("yt-structured-context-note-view-model"),C=document.querySelector("yt-note-view-model");(!V&&W&&W.isKeyBoardInUse()||w||!V&&t||!V&&F||I||P||C)&&_.Ci(this.hostElement);_.gy(this,function(){_.h1(y.hostElement,"yt-refit")})};
_.E.handleUpdateFlowCommand=function(y){this.data&&(y=_.h(y,csW),y.targetId===this.data.targetId&&(y.flowContinuationCommand&&(this.data.flowContinuationCommand=y.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(y),this.autofocusAndRefit()))};
_.E.handleFlowNextStepCommand=function(y){this.data&&this.flow&&this.flow.key&&(y=_.h(y,LjP),y.targetId===this.data.targetId&&(y=y.stepId||"",this.ytdReduxBehavior.dispatch(_.Z6("flowStateEntity",this.flow.key,{currentStepId:y,stepIdStack:(this.flow.stepIdStack||[]).concat(y)}))))};
_.E.handleFlowPrevStepCommand=function(y){if(this.data&&this.flow&&this.flow.key&&(y=_.h(y,zLd),y.targetId===this.data.targetId)){var W=[].concat(_.GC(this.flow.stepIdStack||[]));W.length>1?(W.pop(),this.ytdReduxBehavior.dispatch(_.Z6("flowStateEntity",this.flow.key,{currentStepId:W[W.length-1],stepIdStack:W}))):y.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(y.onFirstStepCommand)}};
_.E.handleYpcCancelRecurrenceCommand=function(y){if(this.data&&this.flow&&this.flow.key&&(y=_.h(y,iBC),y.targetId===this.data.targetId&&y.endpointCommand)){var W=_.h(this.flow,f33);W&&_.h(y.endpointCommand,_.DC6)&&(_.h(y.endpointCommand,_.DC6).feedbackData=W.surveyFeedback);this.ytComponentBehavior.resolveCommand(y.endpointCommand)}};
_.E.handlePartialUpdateFlowStateEntity=function(y){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Z6("flowStateEntity",this.flow.key,y,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
LP.prototype.flowChanged=LP.prototype.flowChanged;LP.prototype.dataChanged=LP.prototype.dataChanged;LP.prototype.onPopupClosed=LP.prototype.onPopupClosed;_.J([_.m(_.y$),_.R("design:type",Object)],LP.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],LP.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],LP.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],LP.prototype,"initialState",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],LP.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Object)],LP.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],LP.prototype,"currentFlowStep",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],LP.prototype,"onPopupClosed",null);_.J([_.q({selectorArgs:["data.flowStateEntityKey"],selector:odd}),_.R("design:type",Object)],LP.prototype,"flow",void 0);_.J([_.s$("ytd-flow-top-bar-renderer"),_.R("design:type",HTMLElement)],LP.prototype,"topBar",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],LP.prototype,"dataChanged",null);_.J([_.Jc("flow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],LP.prototype,"flowChanged",null);_.J([_.k({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],LP);
_.dNj=_.MM()(LP,"ytd-flow-root-renderer",function(){if(jAC!==void 0)return jAC;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jAC=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var L64;var xL=null;_.iF(_.eY(function(y){return _.O("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.O("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.O(_.Lv,{text:function(){return y.data().text}}),_.O("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"cg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.vB}});var z9j=_.eY(function(y){var W=y.playerControlsProps;var V=y.isShortsPage;return _.O("yt-bigboard",null,_.O(_.v,{cond:function(){return W().isDragging},
then:function(){return _.O("div",{class:"ytBigboardStoryboardHost"},_.O(_.bJu,{progressBarProps:W,isShortsPage:V}))}}))},"dg");
z9j.idomCompat=!0;_.zL={ACCOUNT_LABEL:kL("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:kL("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:kL("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:kL("AD_BADGE_HINT"),AD_BADGE_TEXT:kL("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:kL("ALL_CHANNELS_LABEL"),AMBIENT_MODE:kL("AMBIENT_MODE"),AMBIENT_MODE_OFF:kL("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:kL("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:kL("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:kL("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:kL("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:kL("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:kL("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:kL("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:kL("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:kL("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:kL("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:kL("AUTO_ZOOM","Auto zoom"),BACK:kL("BACK"),CANCEL:kL("CANCEL"),CHANNEL_SWITCHER_LABEL:kL("CHANNEL_SWITCHER_LABEL"),CLOSE:kL("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:kL("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:kL("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:kL("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:kL("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:kL("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:kL("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:kL("COMMENT_MODAL_CONTENT"),CONFIRM_OK:kL("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:kL("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:kL("COPIED_TO_CLIPBOARD"),COPY:kL("COPY"),COPY_DEBUG_INFO:kL("COPY_DEBUG_INFO"),COPY_EMBED_CODE:kL("COPY_EMBED_CODE"),
COPY_LINK_LABEL:kL("COPY_LINK_LABEL"),COPY_VIDEO_URL:kL("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:kL("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:kL("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:kL("DELETE_FROM_DOWNLOADS"),DIALOG:kL("DIALOG"),DONE:kL("DONE"),DOWNLOAD:kL("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:kL("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:kL("FLAG_CONFIRM"),FLAG_CONTENT:kL("FLAG_CONTENT"),FLAG_LABEL:kL("FLAG_LABEL"),FLAG_TITLE:kL("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:kL("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:kL("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:kL("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:kL("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:kL("HIDE_SEARCH_FILTERS_LABEL"),HOME:kL("HOME","Home"),INVALID_RESPONSE_RECEIVED:kL("INVALID_RESPONSE_RECEIVED"),LIBRARY:kL("LIBRARY","Library"),LISTENING:kL("LISTENING"),LOADING:kL("LOADING"),LONG_PRESS_MIC_TO_SPEAK:kL("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:kL("LOOP"),MENU_DESKTOP:kL("MENU_DESKTOP"),
MENU_EXIT:kL("MENU_EXIT"),MENU_FEEDBACK:kL("MENU_FEEDBACK"),MENU_HELP:kL("MENU_HELP"),MENU_IMPRESSUM:kL("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:kL("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:kL("MENU_SETTINGS"),MENU_SIGN_IN:kL("MENU_SIGN_IN"),MENU_TITLE:kL("MENU_TITLE"),MENU_YOUR_DATA:kL("MENU_YOUR_DATA"),MORE_INFO:kL("MORE_INFO"),MORE_OPTIONS:kL("MORE_OPTIONS"),MUTE_VOLUME:kL("MUTE_VOLUME"),NEW_PLAYLIST:kL("NEW_PLAYLIST"),NEXT_VIDEO:kL("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:kL("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:kL("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:kL("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:kL("NOT_FOUND_TITLE"),NO_DOWNLOADS:kL("NO_DOWNLOADS"),NO_MIC_INPUT:kL("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:kL("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:kL("OOPS_MESSAGE"),OPEN_APP:kL("OPEN_APP"),OPEN_YOUTUBE:kL("OPEN_YOUTUBE"),PAUSE:kL("PAUSE"),PLAY:kL("PLAY"),PLAYER_CAPTION:kL("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:kL("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:kL("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:kL("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:kL("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:kL("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:kL("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:kL("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:kL("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:kL("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:kL("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:kL("PLAYER_MINIMIZE"),PLAYER_NEXT:kL("PLAYER_NEXT"),PLAYER_PAUSE:kL("PLAYER_PAUSE"),PLAYER_PLAY:kL("PLAYER_PLAY"),
PLAYER_PREVIOUS:kL("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:kL("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:kL("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:kL("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:kL("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:kL("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:kL("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:kL("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:kL("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:kL("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:kL("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:kL("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:kL("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:kL("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:kL("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:kL("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:kL("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:kL("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:kL("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:kL("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:kL("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:kL("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:kL("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:kL("PLAY_ALL"),PLEASE_FIX_ERRORS:kL("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:kL("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:kL("PREVIOUS_VIDEO"),PRIVACY_POLICY:kL("PRIVACY_POLICY"),RELOAD:kL("RELOAD"),REQUIRED_LABEL:kL("REQUIRED_LABEL"),SAVE_PLAYLIST:kL("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:kL("SCRUB_SLIDE_USER_EDU"),SEARCH:kL("SEARCH","Search"),
SEARCH_APPEND_LABEL:kL("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:kL("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:kL("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:kL("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:kL("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:kL("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:kL("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:kL("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:kL("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:kL("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:kL("SEEK_SLIDER"),SETTINGS_LABEL:kL("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:kL("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:kL("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:kL("SHOW_LESS"),SHOW_MORE:kL("SHOW_MORE"),SHOW_PLAYER_CONTROLS:kL("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:kL("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:kL("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:kL("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:kL("SIGN_IN_ON_WEB"),STABLE_VOLUME:kL("STABLE_VOLUME"),STABLE_VOLUME_OFF:kL("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:kL("STABLE_VOLUME_ON"),STATS_FOR_NERDS:kL("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:kL("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:kL("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:kL("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:kL("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:kL("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:kL("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:kL("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:kL("TIMESTAMP_SECONDS"),TOGGLE_OFF:kL("TOGGLE_OFF"),TOGGLE_ON:kL("TOGGLE_ON"),TRENDING:kL("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:kL("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:kL("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:kL("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:kL("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:kL("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:kL("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:kL("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:kL("VIDEO_LINK_LABEL")};var ctd=_.eY(function(y){var W=y.playerApi;y=_.I0("button",function(w){_.gB(w,36843)});
var V=kL("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.O("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.O("button",{el:y,class:"ytPlayerControlsJumpForwardButtonButton",title:V,"aria-label":V,"on:click":_.YS(function(){_.Pn(36843);W&&W().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.O("span",null,_.O(_.jl,{icon:"FAST_FORWARD"}))))},"eg");var e9e=_.eY(function(y){var W=y.appApi;y=_.I0("button",function(w){_.gB(w,62946)});
var V=kL("OPEN_IN_MINIPLAYER");return _.O("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.O("button",{el:y,class:"ytMiniplayerButtonButton",title:V,"aria-label":V,"on:click":_.YS(function(){_.Pn(62946);var w,t;(t=(w=W()).openInMiniplayer)==null||t.call(w);return!1})},_.O(_.jl,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"fg");var h9E=_.eY(function(y){var W=y.playerApi;y=_.I0("button",function(F){_.gB(F,142812)});
var V=_.N(_.M1(!1,void 0,"I3VCyb")),w=V.next().value,t=V.next().value;V=function(){return kL("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(w()?1:2)})};
return _.O("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.O("button",{el:y,class:"ytPlaybackSpeedButtonButton",title:V,"aria-label":V,"on:click":_.YS(function(){_.Pn(142812);if(W){var F=W(),I=w();F.setPlaybackRate(I?1:2);t(!w())}return!1})},_.O("span",null,_.O(_.jl,{icon:function(){return w()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"gg");var oIt=_.eY(function(y){var W=y.title;var V=y.ariaLabel;var w=y.icon;var t=y.command;var F=y.veType;y=_.I0("button",function(I){F&&_.gB(I,F())});
return _.O("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.O("button",{el:y,class:"ytdThumbnailOverlayButtonButton",title:W,"aria-label":V,"on:click":_.YS(function(){F&&_.Pn(F());t&&_.hs().resolve(_.oA).resolveCommand(t())})},_.O(_.jl,{icon:w})))},"hg");var mr="";var K6j=_.eY(function(y){var W=y.playerControlsProps,V=y.onClickFn;y=_.DZ(function(){var F=W(),I=-1;F.captionsAvailable&&(I=F.captionsEnabled?1:0);return I},void 0,"WecR8e");
var w=_.DZ(function(){var F=W();return F.captionsAvailable?_.u5(F.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.u5("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),t=_.DZ(function(){var F=W();
F=F.captionsAvailable?F.captionsEnabled:void 0;return F},void 0,"Q17ly");
return _.O("yt-closed-captions-toggle-button",null,_.O(_.$Rm,{captionIconType:y,ariaLabel:w,ariaPressed:t,onClick:function(F){var I=W();if(I.captionsAvailable){var P=I.playerApi;if(P){var C=I.playerApi;if(C){var d=mr;if(d){C=C.getOption("captions","track");var L;mr=(L=C?C.displayName:null)!=null?L:d}else _.IW(C)?(d=_.Swv(C),mr=d.length?(L=p1u(d))?L.displayName:d[0].displayName:""):mr=""}ibP(P);_.e("mweb_disable_set_state_captions_killswitch")&&I.setState({captionsEnabled:!I.captionsEnabled})}}var z,
c;(c=(z=I.appApi).showCaptionsToggleToast)==null||c.call(z,I);V==null||V(F)},
isOverlay:!0}))},"ig");var ppC=_.eY(function(y){var W=y.data;return _.O("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.O(_.yF,{data:function(){return{type:16,text:_.y2G(W().label)}}}))},"jg");var iit=_.eY(function(y){var W=_.kS("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return y.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return y.size()==="small"?y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.O("animated-seek-arrows",{class:_.kS("ytPlayerControlsAnimatedSeekArrowsHost")},_.O("span",{class:W}),_.O("span",{class:W}),_.O("span",{class:W}))},"kg");
iit.idomCompat=!0;var fYj=_.eY(function(){var y=_.u5("PLAYER_SECONDS",{seconds_placeholder:"30"}),W=_.N(_.M1(!1,void 0,"Yj8msb")),V=W.next().value,w=W.next().value,t=_.N(_.M1(!1,void 0,"r9Z50e"));W=t.next().value;var F=t.next().value;t={};var I=_.kS("jumpForwardOverlayOverlay",(t.jumpForwardOverlayOverlayHidden=W,t));_.a8(function(){var P=null,C=null,d=function(){P!==null&&_.Xu().cancelJob(P);C!==null&&_.Xu().cancelJob(C);F(!0);w(!0);_.q4(_.Xu(),function(){F(!1)});
P=_.q4(_.Xu(),function(){F(!0);C=_.q4(_.Xu(),function(){w(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",d);_.XT(function(){window.removeEventListener("jump-forward-clicked",d)})});
return _.O("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.O(_.v,{cond:V,then:function(){return _.O("div",{class:I},_.O(iit,{direction:1,size:"large"}),_.O("div",null,y))}}))},"lg");var TQ4=_.zL.MUTE_VOLUME,mNW=_.zL.UNMUTE_VOLUME,Msv=_.eY(function(y){var W=y.muteIconType;var V=y.onClick;var w=y.useOutlineIcon;var t=y.useDelhiIcons;y=_.I0("button",function(P){_.gB(P,28662)});
var F=function(){var P=W(),C=w==null?void 0:w(),d=t==null?void 0:t(),L="",z="";switch(P){case -1:case 0:L=C?"VOLUME_OFF":d?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";z=mNW;break;case 1:L=C?"VOLUME_UP_OUTLINE":d?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";z=TQ4;break;case 2:L=C?"VOLUME_DOWN_OUTLINE":d?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";z=TQ4;break;default:_.gW(P)}return{iconName:L,ariaLabel:z}},I=function(){return F().ariaLabel};
return _.O("ytm-mute-button",{class:"ytmMuteButtonHost"},_.O("button",{el:y,class:"ytmMuteButtonButton",title:I,"aria-label":I,"on:click":_.YS(function(P){_.Pn(28662);V==null||V(P);return!1})},_.O("span",null,_.O(_.jl,{icon:function(){return F().iconName}}))))},"mg");var qg3=_.eY(function(y){var W=y.volumeProps;var V=y.onClickFn;var w=y.useOutlineIcon;var t=y.useDelhiIcons;return _.O("yt-mute-toggle-button",null,_.O(Msv,{muteIconType:function(){var F=W();return F.volumeMuted||F.volume===0?0:F.volume>50?1:2},
onClick:function(F){var I=W().playerApi;I&&(I.isMuted()?I.unMute():I.mute(!1));V==null||V(F)},
useOutlineIcon:function(){return!(w==null||!w())},
useDelhiIcons:function(){return!(t==null||!t())}}))},"ng");
qg3.idomCompat=!0;var UNj=_.eY(function(y){var W=y.data;var V=_.I0("ytm-paid-content-overlay-renderer");return _.O("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:V,"on:animationend":_.YS(function(){V.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.O(_.It,{command:function(){return W().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.O(_.v,{cond:function(){var w;return(w=W().icon)==null?void 0:w.iconType},
then:function(){return _.O("span",null,_.O(_.jl,{icon:function(){var w;return(w=W().icon)==null?void 0:w.iconType}}))}}),_.O("div",{class:"ytmPaidContentOverlayText"},_.O(_.Lv,{text:function(){return W().text}})),_.O(_.v,{cond:function(){return W().navigationEndpoint},
then:function(){return _.O(_.jl,{icon:"CHEVRON_RIGHT"})}})))},"og");
UNj.idomCompat=!0;var XVq=[].concat(_.GC([{register:function(y){var W=w4W(y),V;(V=y().playerApi)==null||V.addEventListener("onVolumeChange",W);return function(){}}},
{register:function(y){var W=tXP(y);y=y().playerApi;y==null||y.addEventListener("captionschanged",W);y==null||y.addEventListener("captionssettingschanged",W);y==null||y.addEventListener("onCaptionsTrackListChanged",W);return function(){}}},
{register:function(y){if(!_.e("mweb_screenreader_accessible_player"))return function(){};
var W=Fju(y),V=document.querySelector("video");V==null||V.addEventListener("touchend",W);return function(){V==null||V.removeEventListener("touchend",W)}}},
{register:function(y){if(!_.e("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var W=Fju(y),V=document.querySelector("video");V==null||V.addEventListener("focus",W);return function(){V==null||V.removeEventListener("focus",W)}}}]),[{register:function(y){var W=ZGd(y),V;
(V=y().playerApi)==null||V.addEventListener("onStateChange",W);return function(){}}},
{register:function(y){var W=yst(y),V;(V=y().playerApi)==null||V.addEventListener("onPlaybackRateChange",W);return function(){}}},
{register:function(y){var W=Wjd(y),V;(V=y().playerApi)==null||V.addEventListener("onVideoDataChange",W);return function(){}}},
{register:function(y){var W=VXE(y),V,w;(V=y())==null||(w=V.playerApi)==null||w.addEventListener("onVideoProgress",W);return function(){}}}]);var ukj=_.eY(function(y){var W=y.data;var V=function(){return _.u5("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+W().playbackRate})};
return _.O(_.v,{cond:function(){return W().playbackRate&&W().playbackRate!==1},
then:function(){return _.O("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.O("div",{class:"ytPlaybackRateOverlayOverlay"},_.O(iit,{direction:1,size:"small"}),_.O("div",{class:"ytPlaybackRateOverlayLabel"},V)))}})},"pg");var SgE=_.eY(function(y){var W=y.data;return _.O("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.O(_.v,{cond:function(){var V,w=(V=W())==null?void 0:V.playerResponse,t;return w==null?void 0:(t=w.paidContentOverlay)==null?void 0:t.paidContentOverlayRenderer},
then:function(V){return _.O(UNj,{data:V})}}))},"rg"),DNq=_.eY(function(y){var W=y.props;
var V=y.data;var w=y.options;var t=function(){var d,L,z,c;return(d=V())==null?void 0:(L=d.playerResponse)==null?void 0:(z=L.playerConfig)==null?void 0:(c=z.inlinePlaybackConfig)==null?void 0:c.showAudioControls},F=function(){var d,L;
if(t()&&((d=w())==null?void 0:(L=d.additionalButton)==null?void 0:L.button)!==void 0){var z,c,K;d=(z=V())==null?void 0:(c=z.playerApi)==null?void 0:(K=c.getSize())==null?void 0:K.height;if(!(d===void 0||d<180)){var f,U;return(f=w())==null?void 0:(U=f.additionalButton)==null?void 0:U.button}}},I=function(){var d,L;
return(d=w())==null?void 0:(L=d.additionalButton)==null?void 0:L.thumbnailOverlayButtonRenderers},P=function(){var d,L;
return(d=w())==null?void 0:(L=d.additionalButton)==null?void 0:L.thumbnailOverlayButtonViewModels},C=function(){var d=[_.O(qg3,{volumeProps:W}),
_.O(K6j,{playerControlsProps:W})];F()===1&&d.push(_.O(ctd,{playerApi:function(){return W().playerApi}}));
F()===2&&d.push(_.O(e9e,{appApi:function(){return W().appApi}}));
F()===3&&d.push(_.O(h9E,{playerApi:function(){return W().playerApi}}));
var L=I();if(F()===4&&L){L=_.N(L);for(var z=L.next(),c={};!z.done;c={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$53:void 0,command$jscomp$581:void 0},z=L.next()){z=z.value;c.tooltip$jscomp$2=z.tooltip;var K=void 0,f=void 0;c.ariaLabel$jscomp$22=((K=z.accessibility)==null?void 0:(f=K.accessibilityData)==null?void 0:f.label)||c.tooltip$jscomp$2;K=void 0;c.icon$jscomp$53=(K=z.icon)==null?void 0:K.iconType;c.command$jscomp$581=z.command;c.tooltip$jscomp$2&&c.ariaLabel$jscomp$22&&c.icon$jscomp$53&&
d.push(_.O(oIt,{title:function(U){return function(){return U.tooltip$jscomp$2}}(c),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$22}}(c),
icon:function(U){return function(){return U.icon$jscomp$53}}(c),
command:function(U){return function(){return U.command$jscomp$581}}(c)}))}}L=P();
if(F()===4&&L)for(L=_.N(L),z=L.next(),c={};!z.done;c={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$54:void 0,command$jscomp$582:void 0},z=L.next())z=z.value,c.tooltip$jscomp$3=z.title,c.ariaLabel$jscomp$23=z.accessibilityText||c.tooltip$jscomp$3,c.icon$jscomp$54=z.iconName,c.command$jscomp$582=_.tl(z.onTap),c.tooltip$jscomp$3&&c.ariaLabel$jscomp$23&&c.icon$jscomp$54&&d.push(_.O(oIt,{title:function(U){return function(){return U.tooltip$jscomp$3}}(c),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$23}}(c),
icon:function(U){return function(){return U.icon$jscomp$54}}(c),
command:function(U){return function(){return U.command$jscomp$582}}(c)}));
return d};
return _.O(_.v,{cond:t,then:function(){return _.O("div",{class:"ytInlinePlayerControlsTopRightControls"},_.O(_.YV,{each:C},function(d){return _.O("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.O("div",{class:"ytInlinePlayerControlsButtonIcon"},d))}))}})},"sg"),kDu=_.eY(function(y){var W=y.props;
var V=y.data;var w=y.options;y={};y=_.kS("ytInlinePlayerControlsBottomRightControls",(y.ytInlinePlayerControlsBottomRightControlsHidden=function(){var t;return NiC(V(),w())&&((t=w())==null?void 0:t.insetProgressBar)&&(W().isHovering||W().isDragging)},y));
return _.O("div",{class:y},_.O(lYj,{data:V}),_.O(_.v,{cond:function(){var t;return!((t=w())==null?0:t.hideTimeDisplay)},
then:function(){return _.O(xNe,{props:W,data:V})}}))},"tg"),lYj=_.eY(function(y){var W=y.data;
return _.O(_.Q7,{data:function(){var V;return $V4((V=W())==null?void 0:V.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:ppC})},"ug"),xNe=_.eY(function(y){var W=y.props;
var V=y.data;return _.O(_.v,{cond:function(){return W().isLive},
then:function(){return _.O(spP,null)},
else:function(){return _.O(At4,{props:W,data:V})}})},"vg"),At4=_.eY(function(y){var W=y.props;
var V=y.data;var w=_.DZ(function(){var t;return HGe((t=V())==null?void 0:t.thumbnailOverlays)},void 0,"kUmuA");
return _.O("div",{class:_.kS("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.zL.PLAYER_TIME_ELAPSED+" "+_.Brv(W().playedTime)}},_.O(_.yF,{data:function(){var t=_.Brv(W().videoDuration-W().playedTime);
return Object.assign({},{type:16,text:t},w())}}))},"wg"),spP=_.eY(function(){var y=_.kS("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.O("div",{class:y},_.O(_.yF,{data:{type:17,text:_.zL.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"xg"),Ygu=_.eY(function(y){var W=y.props;
var V=y.data;var w=y.options;return _.O(_.w3u,{progressBarProps:W,config:function(){var t,F=_.h((t=V())==null?void 0:t.multiMarkersPlayerBar,_.ttE),I;t=((I=w())==null?0:I.insetProgressBar)?2:1;var P;I=(P=w())==null?void 0:P.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:t,chapterData:F,isInlinePlayback:!0,doSeekOnClick:I,playheadDotBehavior:I?1:0}}})},"yg");_.iF(_.eY(function(y){var W=y.data;var V=y.appApi;var w=y.options;var t=Q8t(W,E_P(V));y={};V={};return _.O("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.O("div",{class:_.kS("ytInlinePlayerControlsDarkenedOverlay",(y.ytInlinePlayerControlsDarkenedOverlayShow=function(){return t().isHovering},y))}),_.O(fYj,null),_.O(ukj,{data:t}),_.O(SgE,{data:W}),_.O(z9j,{playerControlsProps:t,
isShortsPage:!1}),_.O("div",{class:_.kS((V.ytInlinePlayerControlsControlsHidden=function(){return t().isDragging},V))},_.O(DNq,{props:t,
data:W,options:w}),_.O(kDu,{props:t,data:W,options:w})),_.O(_.v,{cond:function(){return NiC(W(),w())},
then:function(){return _.O(Ygu,{props:t,data:W,options:w})}}))},"qg"),"yt-inline-player-controls",{props:{data:_.vB,
appApi:_.p5,options:_.vB}});var co=function(){var y=_.u.apply(this,arguments)||this;y.opts=null;y.playerControlsData=null;y.playerControlsAppApi={openInMiniplayer:function(){y.openInMiniplayer()}};
y.playerControlsOptions={};y.noAnimation=!1;y.playbackIntentTriggered=!1;y.positionData=null;y.hidden=!0;y.active=!1;y.playing=!1;y.videoPreviewDataIndex=0;y.JSC$18936_playerPromise=null;y.player=null;y.enableAudioControls=!1;y.hasBeenUnmuted=!1;y.captionsHaveBeenTurnedOff=!1;y.JSC$18936_playerEvents=new Map;y.videoPreviewFetchRequest=null;y.scheduledPreviewEndJobId=null;y.JSC$18936_preventProgressSaveTimer=null;y.watchEndpointStartTimeUpdaterInterval=null;y.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};y.windowOnBlurFn=function(){y.deactivate()};
return y};
_.p(co,_.u);_.E=co.prototype;
_.E.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.e("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.E.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18936_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18936_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18936_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18936_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Dp(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Dp(this,this.onScroll))};
_.E.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Dp(this,this.onScroll))};
_.E.onPageTypeChange=function(){this.deactivate()};
_.E.onWindowResized=function(){this.deactivate()};
_.E.onCaptionsChanged=function(y){y=!!y.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!y);this.setCaptionSize()};
_.E.setCaptionSize=function(){var y;if(this.active&&!this.captionsHaveBeenTurnedOff&&((y=this.player)==null?0:y.getCaptionWindowContainerId())){var W;(W=this.player)==null||W.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.E.currentPageAllowed=function(){return!this.isWatchPage};
_.E.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var y=this.positionData,W=y.initialTopPosition,V=y.initialHorizontalPosition;_.qg(this.hostElement,{"--ytd-video-preview-translate-left":y.finalHorizontalPosition-V+"px","--ytd-video-preview-translate-top":y.finalTopPosition-W+"px","--ytd-video-preview-original-top-position":W+"px","--ytd-video-preview-original-horizontal-position":V+"px",
"--ytd-video-preview-initial-scale":"scale("+y.initialScale+")","--ytd-video-preview-width":y.videoPreviewWidth+"px","--ytd-video-preview-height":y.videoPreviewHeight+"px"});return!0};
_.E.handleOpenVideoPreviewAction=function(y){var W=this,V;return _.g(function(w){if(!W.currentPageAllowed())return w.return(0);W.opts=y;return(V=W.alignVideoPreviewForAnimation(y.thumbnail))?w.return(W.activate()):w.return(0)})};
_.E.onMouseLeave=function(y){this.shouldDeactivateOnMouseLeave(y)&&this.deactivate()};
_.E.onScroll=function(){var y,W;((y=this.opts)==null?0:y.isAutoplay)&&((W=this.opts)==null?0:W.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.E.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.HU.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.E.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.E.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",co.JSC$18935_DEFAULT_CLICK_LOCATION_BEHAVIOR,co.JSC$18935_CLICK_LOCATION_ID_MAP)};
_.E.shouldDeactivateOnMouseLeave=function(y){y=y.relatedTarget;if(!y)return!0;var W;return(W=this.opts)!=null&&W.mediaRenderer?!_.f6(this.opts.mediaRenderer).contains(y):!0};
_.E.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.E.onPlaybackStart=function(){var y=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$18936_preventProgressSaveTimer=
_.q4(_.HU,function(){y.resetPreventProgressSaveTimer()},1E4);
var W;if((W=this.opts)==null?0:W.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.q4(_.HU,function(){y.hasMultipleVideoPreviews()?y.startPlaybackForNextVideo():y.deactivate()},this.opts.videoPreviewDurationMs);
var V;this.player.setGlobalCrop(((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.E.getRoundedCornersSize=function(){var y;if((y=this.opts)==null?0:y.roundedCornersSize){var W;return(W=this.opts)==null?void 0:W.roundedCornersSize}var V;if((V=this.opts)==null?0:V.enableRounding){var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="small")return 1;var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="medium")return 2;var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="large")return 3}return _.e("web_imp_inset_progress_bar")?3:0};
_.E.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.E.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.E.onMediaContainerClick=function(y){this.isShortcutClick(y)||(this.navigateToWatch(y),y.preventDefault(),y.stopPropagation())};
_.E.activate=function(){var y=this,W,V,w,t,F,I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:if(!y.currentPageAllowed())return L.return(0);V=(W=y.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint;w=_.P5.instance;if(!V||!w)return L.return(0);y.playbackIntentTriggered=!0;((t=y.opts)==null?0:t.mediaRenderer)&&((F=y.opts)==null||!F.isAutoplay)&&Rnm(y.opts.mediaRenderer,function(){y.deactivate()});
_.gy(y,function(){y.revealPreviewUi()});
I={};_.e("enable_unknown_lact_fix_on_html5")&&(_.hs().resolve(_.rL),I.lact=_.es());y.videoPreviewFetchRequest=kIe(w,y.getInlinePlaybackRequestData(y.videoPreviewData),I);_.l7(L,2);return L.yield(y.videoPreviewFetchRequest,4);case 4:P=L.yieldResult;if(((C=P)==null?void 0:(d=C.playabilityStatus)==null?void 0:d.status)==="OK")return L.return(y.handlePlayerResponse(P));throw Error("Vj");case 2:_.YX(L),y.deactivate();case 3:return L.return(1)}})};
_.E.getInlinePlaybackRequestData=function(y){var W,V=_.e("web_imp_player_mute_params")?((W=this.opts)==null?void 0:W.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:y.inlinePlaybackEndpoint,startPlaybackInMutedState:V}};
_.E.handlePlayerResponse=function(y){var W=this,V,w,t,F,I,P,C,d,L,z;return _.g(function(c){if(c.nextAddress==1){V=W.getInlinePlaybackVideoId();if(!(((w=y)==null?0:(t=w.videoDetails)==null?0:t.videoId)&&W.currentPageAllowed()&&W.playbackIntentTriggered&&W.opts&&V))return W.deactivate(),c.return(0);if(y.videoDetails.videoId!==V)return c.return(0);W.enableAudioControls=!!((F=y.playerConfig)==null?0:(I=F.inlinePlaybackConfig)==null?0:I.showAudioControls);y.trackingParams=W.getInlinePlaybackTrackingParams();
if(!W.inlinePlayer)return c.return(0);P={};if(d=_.h((C=W.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint,_.Iw))P.watch_endpoint=d;if(W.videoPreviewData){var K,f=(K=_.h(W.videoPreviewData.inlinePlaybackEndpoint,_.Iw))==null?void 0:K.startTimeSeconds;f!==void 0&&(y.playerConfig||(y.playerConfig={}),y.playerConfig.playbackStartConfig||(y.playerConfig.playbackStartConfig={}),y.playerConfig.playbackStartConfig.startPosition||(y.playerConfig.playbackStartConfig.startPosition={}),y.playerConfig.playbackStartConfig.startSeconds=
f,y.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(f*1E3))}W.inlinePlayer.loadVideoWithPlayerResponse(y,P);if(W.JSC$18936_playerPromise)return c.jumpTo(2);W.JSC$18936_playerPromise=W.inlinePlayer.getPlayerPromise();return c.yield(W.JSC$18936_playerPromise,3)}c.nextAddress!=2&&(L=c.yieldResult,L.setInlinePreview(!0),L.setSizeStyle(!1,!0),W.ytPlayerListenerBehavior.listenToPlayerEvents(L,W.JSC$18936_playerEvents),W.player=L,_.h1(W.hostElement,"player-api-ready"));((z=W.opts)==
null?0:z.showPlayerControls)&&W.videoPreviewData&&W.player&&(W.playerControlsData={playerResponse:y,isInlinePlayback:!0,thumbnailOverlays:W.videoPreviewData.thumbnailOverlays,playerApi:W.player},W.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!W.unroundCornersForPlayback,additionalButton:W.getAdditionalButtonType(W.videoPreviewData.thumbnailOverlays)});return c.return(2)})};
_.E.revealPreviewUi=function(){var y=this;this.playbackIntentTriggered&&_.cdn(this,function(){y.hasThumbnailPositionChangedSinceTriggered()||(y.updateActiveState(!0),y.noAnimation=!1)})};
_.E.hasThumbnailPositionChangedSinceTriggered=function(){var y=this.positionData,W=this.getThumbnailPositionData();return(y==null?void 0:y.initialTopPosition)!==(W==null?void 0:W.initialTopPosition)||(y==null?void 0:y.initialHorizontalPosition)!==(W==null?void 0:W.initialHorizontalPosition)};
_.E.getThumbnailPositionData=function(){var y,W;if((W=this.opts)==null||!W.thumbnail)return null;W=this.opts.thumbnail;var V=((y=this.opts)==null?0:y.cropPlayerToFillThumbnailHorizontally)?!1:!0;var w=W.getBoundingClientRect();y=w.width;W=w.height;var t=w.top+window.scrollY;w=w.left+window.scrollX;var F=V?Math.ceil(y):y;V=V?Math.ceil(W):W;var I=y/F;y={initialScale:I,initialTopPosition:t-12*I,finalTopPosition:t-12-(V-W)/2,initialHorizontalPosition:w-(12+(F-y)/2),finalHorizontalPosition:w-12-(F-y)/
2,videoPreviewWidth:F,videoPreviewHeight:V};return y};
_.E.updateActiveState=function(y){this.active=y;this.ytdReduxBehavior.dispatch(_.ig({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:y}))};
_.E.stopPlayer=function(y){y=y.resetWatchEndpointStartTime===void 0?!1:y.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(y)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.HU.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.E.deactivate=function(y){y=y===void 0?{}:y;y=y.resetWatchEndpointStartTime===void 0?!1:y.resetWatchEndpointStartTime;xL&&(xL.disconnect(),xL=null);this.stopPlayer({resetWatchEndpointStartTime:y});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.E.isValidThumbnailOverlayButton=function(y,W){y=y.thumbnailOverlayButtonRenderer;var V;return!!y&&!!y.tooltip&&!((V=y.icon)==null||!V.iconType)&&W.includes(y.icon.iconType)};
_.E.isValidThumbnailOverlayButtonViewModel=function(y,W){var V;y=_.h((V=y.thumbnailOverlayButtonViewModel)==null?void 0:V.overlayButton,_.H5);return!!y&&!!y.title&&!!y.iconName&&W.includes(y.iconName)};
_.E.getAdditionalButtonType=function(y){var W=this;if(_.e("web_imp_fastforward_button"))return{button:1};if(_.e("web_imp_miniplayer_button"))return{button:2};if(_.e("web_imp_playback_speed_button"))return{button:3};var V=["BOX_STACK_3"],w=(y||[]).filter(function(F){return W.isValidThumbnailOverlayButton(F,V)}).map(function(F){return F.thumbnailOverlayButtonRenderer});
if(w.length)return{button:4,thumbnailOverlayButtonRenderers:w};var t=["BOX_STACK_3"];y=(y||[]).filter(function(F){return W.isValidThumbnailOverlayButtonViewModel(F,t)}).map(function(F){return _.h(F.thumbnailOverlayButtonViewModel.overlayButton,_.H5)});
if(y.length)return{button:4,thumbnailOverlayButtonViewModels:y}};
_.E.allowCaptions=function(){var y;return!((y=this.opts)==null?0:y.forceCaptionsOff)};
_.E.allowUnmuting=function(){var y;return this.enableAudioControls&&!((y=this.opts)==null?0:y.forceMutedVolume)};
_.E.beginStartTimeUpdater=function(){var y=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.MO(function(){y.updateWatchEndpointStartTime()},1E3)};
_.E.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.E.resetPreventProgressSaveTimer=function(){this.JSC$18936_preventProgressSaveTimer!==null&&(_.HU.cancelJob(this.JSC$18936_preventProgressSaveTimer),this.JSC$18936_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.E.updateWatchEndpointStartTime=function(y){var W=this.videoPreviewData;if(this.player&&W!=null&&W.inlinePlaybackEndpoint&&!this.JSC$18936_preventProgressSaveTimer){y=y?0:Math.floor(this.player.getCurrentTime());var V=_.h(W.navigationEndpoint,_.Iw);V&&(V.startTimeSeconds=y);if(W=_.h(W.inlinePlaybackEndpoint,_.Iw))W.startTimeSeconds=y}};
_.E.isShortcutClick=function(y){return!!y&&(y.ctrlKey||y.shiftKey||y.metaKey)};
_.E.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.E.openInMiniplayer=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1){V=(W=y.videoPreviewData)==null?void 0:W.navigationEndpoint;if(!V)return w.return();_.s8().lockupActivation=!0;return w.yield(_.NnA(_.hs().resolve(_.VH),V),2)}_.s8().userActivation=!0;_.B7(w)})};
_.E.navigateToWatch=function(y){var W,V=(W=this.videoPreviewData)==null?void 0:W.navigationEndpoint;if(V){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(V,y,!0);else{if(_.e("web_thumbnail_to_watch_transition")){var w,t;(w=this.opts)==null||(t=w.onNavigateToWatchCallback)==null||t.call(w)}_.h1(this.hostElement,"yt-navigate",{endpoint:V})}this.deactivate()}};
_.E.getInlinePlaybackVideoId=function(){var y,W;return(W=_.h((y=this.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint,_.Iw))==null?void 0:W.videoId};
_.E.getInlinePlaybackTrackingParams=function(){var y,W;return(y=this.videoPreviewData)==null?void 0:(W=y.inlinePlaybackEndpoint)==null?void 0:W.clickTrackingParams};
_.E.hasMultipleVideoPreviews=function(){var y;return!!(((y=this.opts)==null?0:y.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.E.startPlaybackForNextVideo=function(){var y;(y=this.opts)!=null&&y.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())};
_.CM.Object.defineProperties(co.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.opts)==null?0:y.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.opts)==null||!y.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 y;if(Array.isArray((y=this.opts)==null?void 0:y.videoPreviewData)){var W;return(W=this.opts)==null?void 0:W.videoPreviewData[this.videoPreviewDataIndex]}var V;return(V=this.opts)==null?void 0:V.videoPreviewData}}});
co.prototype.onIsAdsVideoChange=co.prototype.onIsAdsVideoChange;co.prototype.onInlinePreviewIsEnabledChange=co.prototype.onInlinePreviewIsEnabledChange;co.prototype.optsChanged=co.prototype.optsChanged;co.prototype.onMouseLeave=co.prototype.onMouseLeave;co.JSC$18935_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);co.JSC$18935_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"}];
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],co.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],co.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],co.prototype,"componentBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.oj.YtSparklesClickLocationBehavior),_.R("design:type",Object)],co.prototype,"ytSparklesClickLocationBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],co.prototype,"opts",void 0);_.J([_.q(),_.R("design:type",Object)],co.prototype,"playerControlsData",void 0);
_.J([_.q(),_.R("design:type",Object)],co.prototype,"playerControlsAppApi",void 0);_.J([_.q(),_.R("design:type",Object)],co.prototype,"playerControlsOptions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],co.prototype,"noAnimation",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],co.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],co.prototype,"active",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],co.prototype,"playing",void 0);_.J([_.q({selector:_.Mnv}),_.R("design:type",Boolean)],co.prototype,"inlinePreviewIsEnabled",void 0);_.J([_.q(),_.R("design:type",String)],co.prototype,"pagePath",void 0);_.J([_.q({selector:_.QD}),_.R("design:type",Boolean)],co.prototype,"isWatchPage",void 0);_.J([_.M("videoPreviewData"),_.R("design:type",Object),_.R("design:paramtypes",[])],co.prototype,"thumbnailData",null);
_.J([_.M("opts","active"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"hidePlayerControls",null);_.J([_.M("opts"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"isAdsVideo",null);_.J([_.M("opts"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"roundedCornersSmall",null);
_.J([_.M("opts"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"roundedCornersMedium",null);_.J([_.M("opts"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"roundedCornersLarge",null);_.J([_.M("opts"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],co.prototype,"unroundCornersForPlayback",null);
_.J([_.M("opts","videoPreviewDataIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],co.prototype,"videoPreviewData",null);_.J([_.q(),_.R("design:type",Object)],co.prototype,"videoPreviewDataIndex",void 0);_.J([_.s$("#inline-player"),_.R("design:type",Object)],co.prototype,"inlinePlayer",void 0);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],co.prototype,"onMouseLeave",null);
_.J([_.Jc("opts"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],co.prototype,"optsChanged",null);_.J([_.Jc("inlinePreviewIsEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],co.prototype,"onInlinePreviewIsEnabledChange",null);_.J([_.xA("isAdsVideo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],co.prototype,"onIsAdsVideoChange",null);
_.J([_.k({is:"ytd-video-preview",disableElementRegistration:!0})],co);
_.Y(co,"ytd-video-preview",function(){if(L64!==void 0)return L64;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return L64=y},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Lkv,zJj,c7W;Lkv=function(y){return _.e("kevlar_watch_cinematics_invisible")||y.fullscreen&&_.e("kevlar_watch_cinematics_invisible_in_fullscreen")||y.theater&&!y.fullscreen&&_.e("kevlar_watch_cinematics_invisible_in_theater")};
zJj=function(){var y=document.createElement("canvas"),W=y.getContext("2d");if(!W)throw Error("po");_.Wg(y,{position:"absolute",width:"100%",height:"100%"});return{element:y,context:W}};
c7W=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.e("kevlar_watch_cinematics_css_blur")};
_.eJj=function(y,W,V){return Math.abs(y-W)<=(V||1E-6)};
_.hJe=function(y,W){return y==W?!0:y&&W?y.width==W.width&&y.height==W.height:!1};_.oBW=new _.zf("notificationActionRenderer");var Kkm=function(y){var W=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.UT;this.element.addEventListener("load",function(){W.loaded=!0;W.resolver.resolve(W.element)});
this.element.addEventListener("error",function(){W.failed=!0});
this.element.src=y};var p0j=function(y,W){this.image=y;this.frame=W};
p0j.prototype.drawToCanvas=function(y,W){var V=this.frame.width/this.frame.columns,w=this.frame.height/this.frame.rows,t=W.offsetX,F=W.offsetY;Lkv(W)?(y.fillStyle=W.fullscreen?"#000":"#0f0f0f",y.fillRect(t,F,(W==null?void 0:W.width)||V,(W==null?void 0:W.height)||w)):y.drawImage(this.image,this.frame.column*V,this.frame.row*w,V,w,t,F,(W==null?void 0:W.width)||V,(W==null?void 0:W.height)||w)};
var i4P=function(y){this.color=y};
i4P.prototype.drawToCanvas=function(y,W){var V=W.offsetX,w=W.offsetY,t=W.width,F=W.height;y.fillStyle=Lkv(W)?W.fullscreen?"#000":"#0f0f0f":this.color;y.fillRect(V,w,t,F)};var Z5=function(y,W){_.pP.call(this);this.playerApi=W;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.YY(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();f5t(this,y);TTW(this);this.update()};
_.p(Z5,_.pP);Z5.prototype.addEventListeners=function(){var y=this,W=function(){y.update()},V=function(t){y.paused||(t.type==="newdata"&&(y.mosaics.clear(),mXj(y),yg(y)),TTW(y),y.update())},w=function(){y.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",W);this.playerApi.addEventListener("onVideoDataChange",V);this.playerApi.addEventListener("onStateChange",w);this.addOnDisposeCallback(function(){y.playerApi.removeEventListener("onVideoProgress",W);y.playerApi.removeEventListener("onVideoDataChange",V);y.playerApi.removeEventListener("onStateChange",w)})};
var f5t=function(y,W){y.cinematicContainerRenderer!==W&&(y.cinematicContainerRenderer=W,mXj(y),yg(y),y.colorStoreUpdateJobId=_.HU.addLowPriorityJob(function(){var V;if((V=y.cinematicContainerRenderer.colorStore)!=null&&V.sampledColors){V=Infinity;for(var w=_.N(y.cinematicContainerRenderer.colorStore.sampledColors),t=w.next();!t.done;t=w.next()){t=t.value;var F=Number(t.key);F!==0&&F<V&&(V=F);F=_.wg(t.value);y.colorStore.set(t.key,F)}y.colorStoreTimeInterval=V}}))},mXj=function(y){y.colorStoreUpdateJobId&&
(_.HU.cancelJob(y.colorStoreUpdateJobId),y.colorStoreUpdateJobId=void 0);
y.colorStore.clear();y.currentStoryboardColor=void 0},Mg4=function(y,W){var V;
return(V=y.getStoryboardFrame(W))==null?void 0:V.url};
Z5.prototype.onPlayerStateChange=function(){this.update()};
Z5.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var TTW=function(y){var W=y.getStoryboardFrame(0);W&&(W=new _.YY(W.width/W.columns,W.height/W.rows),_.hJe(y.currentStoryboardSize,W)||(y.currentStoryboardSize=W,y.publish("STORYBOARD_SIZE_CHANGED",y.currentStoryboardSize)))},qOu=function(y,W){y.currentStoryboardIndex=W;
y.pendingStoryboardIndex=NaN;W=y.getStoryboardFrame(y.currentStoryboardIndex);y.currentStoryboard=new p0j(y.mosaics.get(W.url).element,W);y.publish("STORYBOARD_CHANGED",y.currentStoryboard);y.lastUpdateTime=(0,_.cU)()};
Z5.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var yg=function(y){y.currentStoryboardIndex=NaN;y.pendingStoryboardIndex=NaN;y.currentStoryboard&&(y.currentStoryboard=void 0,y.publish("STORYBOARD_CHANGED",void 0));y.lastUpdateTime=NaN};
Z5.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)yg(this);else{var y=this.playerApi.getPlayerState(1);if(y===-1||y===5||y===0)yg(this);else if(isNaN(this.lastUpdateTime)||!((0,_.cU)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(y=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){y=""+Math.round(y*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var W=this.colorStore.get(y);W?W!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=W,this.currentStoryboard=new i4P(W),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.cU)()):(_.rQ(new _.Js("Could not find color for timestamp: "+y,this.cinematicContainerRenderer)),yg(this))}else yg(this);else UXd(this,y)}};
var UXd=function(y,W){var V=y.getStoryboardFrameIndex(W);if(V!==y.currentStoryboardIndex&&V!==y.pendingStoryboardIndex){W=Mg4(y,V);var w=y.mosaics.get(W);w?w.loaded&&qOu(y,V):(y.pendingStoryboardIndex=V,V=new Kkm(W),y.mosaics.set(W,V),V.resolver.promise.then(function(){if(!y.isDisposed()&&!y.paused&&!isNaN(y.pendingStoryboardIndex)){var t=Mg4(y,y.pendingStoryboardIndex);if(t){var F;(F=y.mosaics.get(t))!=null&&F.loaded&&qOu(y,y.pendingStoryboardIndex)}else yg(y)}}))}};
Z5.prototype.getStoryboardFrameIndex=function(y){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(y,W)};
Z5.prototype.getStoryboardFrame=function(y){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,V,w;return((w=(V=this.playerApi).getStoryboardFrame)==null?void 0:w.call(V,y,W))||null};
Z5.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Vg=function(y,W,V,w){w=w===void 0?!1:w;_.Ru.call(this);this.cinematicContainerRenderer=W;this.playerApi=V;this.theater=this.fullscreen=!1;var t;this.ambientLightThemeEnabled=!w&&!!(W==null?0:(t=W.config)==null?0:t.enableInLightTheme);this.ambientFullscreenEnabled=w&&_.e("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=w&&_.e("web_cinematic_theater_mode");this.container=document.createElement("div");y.appendChild(this.container);var F;if(_.e("web_cinematic_theater_mode")||_.e("web_cinematic_fullscreen")||
(W==null?0:(F=W.config)==null?0:F.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);uOE(this);y=this.ambientV2Container||this.container;this.backCanvas=zJj();this.frontCanvas=zJj();y.appendChild(this.backCanvas.element);y.appendChild(this.frontCanvas.element);this.storyboardManager=new Z5(W,this.playerApi);_.Uf(this,this.storyboardManager);this.addEventListeners();SOE(this)?DXE(this,100+Wj(this)*3*2,100+Wj(this)*3*2):l5P(this);
xXv(this,this.storyboardManager.currentStoryboard)};
_.p(Vg,_.Ru);var uOE=function(y){y.ambientV2Container?kgj(y):(_.Wg(y.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+sk3(y)+", "+A7t(y)+")"}),c7W()&&_.Wg(y.container,"filter","blur("+_.pB("cinematic_watch_css_filter_blur_strength",40)+"px)"))},kgj=function(y){if(y.ambientV2Container){var W=y.playerApi.getVideoAspectRatio();
_.Wg(y.container,{"aspect-ratio":""+W,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Wg(y.ambientV2Container,{"aspect-ratio":""+W,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+sk3(y)+", "+A7t(y)+")"});c7W()&&_.Wg(y.ambientV2Container,"filter","blur("+_.pB("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Vg.prototype.setFullscreen=function(y,W){this.fullscreen=y;this.theater=!!W;uOE(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),y=this.storyboardManager.currentStoryboard,YOt(this),y&&BTe(this,y)};
Vg.prototype.addEventListeners=function(){var y=this,W=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(t){xXv(y,t)}),V=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){l5P(y)});
this.addOnDisposeCallback(function(){y.storyboardManager.unsubscribeByKey(W);y.storyboardManager.unsubscribeByKey(V)});
if(this.ambientV2Container){var w=function(){kgj(y)};
this.playerApi.addEventListener("onVideoDataChange",w);this.addOnDisposeCallback(function(){y.playerApi.removeEventListener("onVideoDataChange",w)})}};
var l5P=function(y){if(!SOE(y)){var W=y.storyboardManager.currentStoryboardSize;isNaN(W.width)||isNaN(W.height)||DXE(y,Number(W.width)+Wj(y)*3*2,Number(W.height)+Wj(y)*3*2)}},DXE=function(y,W,V){y.backCanvas.element.width=W;
y.backCanvas.element.height=V;y.frontCanvas.element.width=W;y.frontCanvas.element.height=V},SOE=function(y){return y.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},xXv=function(y,W,V){V=V===void 0?!1:V;
var w=y.frontCanvas.element.getAnimations()[0];w?(w.pause(),y.backCanvas.context.globalAlpha=Number(getComputedStyle(y.frontCanvas.element).opacity),y.frontCanvas.element.style.opacity="0",w.finish()):y.backCanvas.context.globalAlpha=1;y.backCanvas.context.drawImage(y.frontCanvas.element,0,0,y.backCanvas.element.width,y.backCanvas.element.height);YOt(y);W&&BTe(y,W);W=W?y.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.pB("cinematic_watch_fade_out_duration",500);w=_.pB("cinematic_watch_transition_frame_rate")/
1E3;var t={};w&&(t={easing:"steps("+Math.round(W*w)+")"});(V===void 0?0:V)||y.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:W,iterations:1},t));y.frontCanvas.element.style.opacity="1"},YOt=function(y){var W=y.ambientLightThemeEnabled||y.ambientTheaterModeEnabled,V=y.ambientLightThemeEnabled||y.ambientFullscreenEnabled;
y.frontCanvas.context.fillStyle=y.theater&&W||y.fullscreen&&V?"#000":"#0f0f0f";c7W()||(y.frontCanvas.context.filter="blur(0)");y.frontCanvas.context.fillRect(0,0,y.frontCanvas.element.width,y.frontCanvas.element.height)},BTe=function(y,W){c7W()||(y.frontCanvas.context.filter="blur("+Wj(y)+"px)");
y.frontCanvas.context.globalAlpha=y.fullscreen&&y.ambientFullscreenEnabled||y.theater&&y.ambientTheaterModeEnabled?_.pB("cinematic_watch_effect_letterbox_opacity",.8):_.pB("cinematic_watch_effect_opacity",.4);var V={offsetX:Wj(y)*3,offsetY:Wj(y)*3,theater:y.theater,fullscreen:y.fullscreen};SOE(y)&&(V.width=100,V.height=100);W.drawToCanvas(y.frontCanvas.context,V);y.frontCanvas.context.globalAlpha=1},Wj=function(y){var W;
return(W=y.cinematicContainerRenderer.config.blurStrength)!=null?W:5},sk3=function(y){var W,V;
if((y.fullscreen||y.theater)&&((W=y.cinematicContainerRenderer.config)==null?0:(V=W.watchFullscreenConfig)==null?0:V.colorSourceWidthMultiplier))return y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var w;return(w=y.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?w:y.cinematicContainerRenderer.config.colorSourceSizeMultiplier},A7t=function(y){var W,V;
if((y.fullscreen||y.theater)&&((W=y.cinematicContainerRenderer.config)==null?0:(V=W.watchFullscreenConfig)==null?0:V.colorSourceHeightMultiplier))return y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var w;return(w=y.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?w:y.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Vg.prototype.disposeInternal=function(){_.Ru.prototype.disposeInternal.call(this);this.container.remove()};
Vg.prototype.clear=function(){xXv(this,void 0,!0)};
Vg.prototype.pause=function(){this.storyboardManager.pause()};var J7u;J7u=_.YW(function(){var y,W,V=!((W=(y=document.createElement("canvas")).getContext)==null||!W.call(y,"2d")),w;y=!((w=CSS)==null||!w.supports("filter: blur(0)"));w=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var t;return V&&y&&w&&!((t=CSS)==null||!t.supports("aspect-ratio: 1 / 1"))});
_.w2=function(y,W){_.pP.call(this);this.container=y;this.playerApi=W;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=RJv(this);this.update()};
_.p(_.w2,_.pP);_.jkj=function(y){var W=document.documentElement.hasAttribute("dark");y.isDarkModeEnabled=W;y.update()};
_.$Xq=function(y,W){y.settingEnabled=W;y.update()};
_.w2.prototype.setFullscreen=function(y,W){this.fullscreen=y;this.theater=!!W;this.update()};
_.nBv=function(y,W){y.cinematicContainerRenderer=W;y.cinematicContainerRenderer&&(y.cinematicsVe=_.ad(y.isShorts()?227858:159022),_.U8(_.BC(),y.cinematicsVe),y.loggingClientData={watchCinematicContainerData:{presentationStyle:y.cinematicContainerRenderer.presentationStyle}});y.update()};
_.w2.prototype.isShorts=function(){var y,W;return((y=this.cinematicContainerRenderer)==null?void 0:(W=y.config)==null?void 0:W.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.w2.prototype.isAllowed=function(){var y;if(y=J7u()){var W,V,w;y=((V=this.cinematicContainerRenderer)==null?void 0:V.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((w=this.cinematicContainerRenderer)==null||!w.colorStore)||((W=this.cinematicContainerRenderer)==null?void 0:W.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(y)if(_.e("web_cinematics_pausing")){var t,F;y=this.isDarkModeEnabled||!!((t=this.cinematicContainerRenderer)==
null?0:(F=t.config)==null?0:F.enableInLightTheme)}else{var I,P;t=!!((I=this.cinematicContainerRenderer)==null?0:(P=I.config)==null?0:P.enableInLightTheme)&&(_.yC("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);y=this.isDarkModeEnabled||t}if(I=y){var C,d;I=!((d=(C=this.prefersReducedMotionQuery)==null?void 0:C.matches)!=null&&d)}return I};
_.H4e=function(y){(y=y.currentCinematicEffect)!=null&&(y=y.storyboardManager,y.paused=!1,TTW(y),y.update())};
_.w2.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var RJv=function(y){if(!_.e("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var W=window.matchMedia("(prefers-reduced-motion: reduce)"),V=function(){y.update()};
W.addListener(V);y.addOnDisposeCallback(function(){W.removeListener(V)});
return W}};
_.w2.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var y=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Vg(this.container,y,this.playerApi,this.isDarkModeEnabled),_.Uf(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var W=this.currentCinematicEffect;W.cinematicContainerRenderer!==
y&&(W.cinematicContainerRenderer=y,f5t(W.storyboardManager,y),uOE(W));y=_.l5();_.xF(0,194,!0);y.save();y=_.Xn();this.cinematicsVe&&y&&_.IB(y,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(y=_.Xn(),this.cinematicsVe&&y&&_.g5(y,[this.cinematicsVe],!1,this.loggingClientData),_.La(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.CM.Object.defineProperties(_.w2.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var nxu;var HxW;_.a6({_template:function(){if(HxW!==void 0)return HxW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=
y.content,V=W.insertBefore;nxu===void 0&&(nxu=document.createElement("template"));var w=nxu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return HxW=y},
is:"tp-yt-iron-pages",behaviors:[_.Gm,_.PC],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Jut;_.RaC=function(){if(_.e("kevlar_home_skeleton")&&!Jut){var y=document.querySelector("#home-page-skeleton");y&&(_.aw("hgcr"),_.ku(y),Jut=!0)}};
Jut=!1;_.Kx=new _.zf("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var u8j,Dsu,lzj,xsj,kUm,sF4,AHC,Ywu,JHW,RVC,jF4,HSv,azv,GUq,XFe,$sv,nbt,QF3;_.UsC=function(y,W,V){W=W===void 0?5:W;if(W!==0){var w=typeof y==="function"?y():document.querySelector(y);w?(V==null?0:V.enableSmartFocus)?_.xOv(w):w.focus():setTimeout(function(){_.UsC(y,W-1,V)},500)}};
u8j=function(y){return String.raw.apply(String,[{raw:y}].concat(_.GC(_.Ve.apply(1,arguments).map(function(W){return W instanceof Array?W.join(""):W}))))};
Dsu=function(y){var W=_.Ve.apply(1,arguments),V=W.length;if(!Array.isArray(y)||!Array.isArray(y.raw)||y.length!==y.raw.length||!_.zbm&&y===y.raw||!(_.zbm&&!_.cv6||_.nu(y))||V+1!==y.length)throw new TypeError("ha");return new Swj(Object.freeze({strings:Object.freeze(y),args:Object.freeze(W)}))};
lzj=function(y){return _.jjn(_.RFb(y&16777215))<.5};
xsj=function(y,W,V){var w=V.minimumRowsOfVideosBetweenSections===void 0?1:V.minimumRowsOfVideosBetweenSections;return y<(V.minimumRowsOfVideosAtStart===void 0?2:V.minimumRowsOfVideosAtStart)||W!==null&&y-W<=w?!1:!0};
kUm=function(y,W){var V=0,w=0;y=_.N(y);for(var t=y.next();!t.done;t=y.next()){var F=t.value;if(F.richItemRenderer)F.richItemRenderer.rowIndex=w,F.richItemRenderer.colIndex=V++,V===W&&(V=0,w++);else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.rowIndex=w,F.richGroupRenderer.colIndex=V,V+=F.richGroupRenderer.numColumns,V===W&&(V=0,w++);else if(F.richSectionRenderer){var I=t=void 0;if(F=_.h((t=F)==null?void 0:(I=t.richSectionRenderer)==null?void 0:I.content,_.pYz))F.rowIndex=
w++}}};
sF4=function(y,W){var V=W.contentElement;W=W.rendererToTagNameMap;if(V&&W&&W.size!==0){for(var w=new Map,t=_.N(V.children),F=t.next();!F.done;F=t.next()){F=F.value;var I=F.tagName.toLowerCase(),P=w.get(I);P||(P=[],w.set(I,P));P.push(F)}if(w.size!==0)for(t=Math.min(y.length,V.children.length),F=new Map,I=0;I<t;I++){P=Object.keys(y[I])[0];P=W.get(P);if(!P)break;var C=F.get(P);C===void 0&&(C=0,F.set(P,C));var d=w.get(P);if(!d||C>=d.length)break;F.set(P,C+1);P=d[C];C=V.children[I];C!==P&&(_.YGP=!0,_.Bta.set(P,
!0),V.insertBefore(P,C),_.Bta.delete(P),_.YGP=!1)}}};
AHC=function(y,W,V,w,t,F,I){w=w===void 0?{}:w;if(!y||!y.length)return[];y=y.slice();var P=[],C=[];t=null;for(var d=0,L=function(x){C.sort(function(H,a){return a.skippedOnRow-H.skippedOnRow});
for(var B,r=(B=C.shift())==null?void 0:B.content;r;)!r.richSectionRenderer&&x||P.push(r),B=void 0,r=(B=C.shift())==null?void 0:B.content},z=void 0;y.length>0||C.length>0;){for(var c=[],K=W;K>0;){var f=void 0,U=void 0,l=(U=C[0]&&C[0].skippedOnRow<d?(f=C.shift())==null?void 0:f.content:void 0)!=null?U:y.shift();
if(!l)break;if(l.richItemRenderer)f=l.richItemRenderer.targetId,U=void 0,f&&((U=I)==null?0:U.has(f))&&(f=I.get(f),!z||f&&f.timestamp>z.timestamp)&&(z=f),c.push(l),K--;else if(l.richGroupRenderer&&l.richGroupRenderer.numColumns!==void 0)l.richGroupRenderer.numColumns<=K?(c.push(l),K-=l.richGroupRenderer.numColumns):K===W&&l.richGroupRenderer.numColumns>W?(c.push({richGroupRenderer:Object.assign({},l.richGroupRenderer,{numColumns:W})}),K=0):C.push({content:l,skippedOnRow:d});else if(l.richSectionRenderer)if(xsj(d,
t,w)&&K===W){P.push(l);t=d;d++;continue}else C.push({content:l,skippedOnRow:d});else if(l.continuationItemRenderer){L(!0);P.push(l);K=0;break}if(K===0)P.push.apply(P,_.GC(c));else if(!V&&y.length===0){L(!1);P.push.apply(P,_.GC(c));K=0;break}}d++;z&&(P.push(z.content),d++);z=void 0}kUm(P,W);F&&sF4(P,F);return P};
Ywu=function(){return _.Ve.apply(0,arguments).flat().filter(function(y){return y}).join(";")};
JHW=function(){return Dsu(BAP,Ywu.apply(null,_.GC(_.Ve.apply(0,arguments))))};
RVC=function(y){switch(y){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
jF4=function(y){return y.talkToRecs};
HSv=function(y,W){if(W){var V=_.dP().getState().entities.flowStateEntity,w=$sv(y),t=[W];w&&w!==W&&t.push(w);var F=!0,I;if(V&&y.flowStateEntityKey&&((I=V[y.flowStateEntityKey])==null?void 0:I.primaryButtonDisabled)!==void 0){var P;F=!((P=V[y.flowStateEntityKey])==null||!P.primaryButtonDisabled)}nbt(y,w!=null?w:W,t,F)}};
azv=function(y){return _.Y0(_.dP(),function(W){return W.entities.flowStateEntity},function(W,V){if(y.flowStateEntityKey){var w,t=W==null?void 0:(w=W[y.flowStateEntityKey])==null?void 0:w.currentStepId,F;
V=V==null?void 0:(F=V[y.flowStateEntityKey])==null?void 0:F.currentStepId;F=_.dP().getState().talkToRecs;if(t&&t!==V){var I;W=(W==null?void 0:(I=W[y.flowStateEntityKey])==null?void 0:I.stepIdStack)||Object.keys(F.stepStates);I=!XFe(F==null?void 0:F.stepStates[t]);nbt(y,t,W,I)}}})};
GUq=function(y){return _.Y0(_.dP(),jF4,function(W){var V=$sv(y);if(V){var w=Object.keys(W.stepStates);W=!XFe(W==null?void 0:W.stepStates[V]);nbt(y,V,w,W)}})};
XFe=function(y){var W=Object.keys((y==null?void 0:y.selectionStates)||{}).reduce(function(F,I){return F||(y==null?void 0:y.selectionStates[I].isSelected)},!1),V,w,t=!!(y==null?0:(V=y.userQuery)==null?0:(w=V.userQuery)==null?0:w.trim());
return W||t};
$sv=function(y){if(y.flowStateEntityKey){var W,V,w=(W=_.dP().getState().entities.flowStateEntity)==null?void 0:(V=W[y.flowStateEntityKey])==null?void 0:V.currentStepId;if(w)return w}};
nbt=function(y,W,V,w){_.dP().dispatch(_.B5("flowStateEntity",y.flowStateEntityKey,{currentStepId:W,stepIdStack:V,key:y.flowStateEntityKey,primaryButtonDisabled:w}))};
_.rHm=function(y,W){return _.UB(y.entities,"youchatPendingResponseEntity",W)};
_.bSC=function(y){return function(W){_.dc(_.B5("youchatPendingResponseEntity",y,{entityKey:y,isPendingResponse:W}))}};
QF3=function(y){y==null||y.addEventListener("DOMLoaded",function(){y.goToAndPlay(y.totalFrames-48,!0)})};
_.cV=function(y){this.__isSoyCss=!0;this.css=u8j.apply(null,[y.strings].concat(_.GC(y.args)))};
_.cV.prototype.toString=function(){return this.css};
var Swj=function(){_.cV.apply(this,arguments)};
_.p(Swj,_.cV);var BAP=_.CF(["",""]);var ZSj;var yum;_.a6({_template:function(){if(yum!==void 0)return yum;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
var W=y.content,V=W.insertBefore;ZSj===void 0&&(ZSj=document.createElement("template"));var w=ZSj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return yum=y},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Wpt=new _.zf("talkToRecsFlowRenderer");var V2t=new _.zf("flowRootRenderer");var w$j=new _.zf("learningJourneyQuizViewModel");var t2j=new _.zf("chipsShelfViewModel");var Fpj=new _.zf("responsiveContainerConfiguration");var E8j=new _.zf("horizontalShelfViewModel");_.Nnm=new _.zf("engagementPanelSectionListRenderer");var I_3=new _.zf("conversationResourceViewModel");var g8P=function(){this.horizontal=!1},P3q=function(y,W){y.horizontal=W};
g8P.prototype.position=function(y,W,V,w){w=w===void 0?1:w;y=this.delta(y)*w+W;w=Math.max(W,V);return y>=Math.min(W,V)&&y<=w?y:V};
g8P.prototype.axis=function(y){y=this.direction(y);return y==="up"||y==="down"?"Y":"X"};var IZ=function(y,W,V){W=W===void 0?_.nc():W;this.target=y;this.manager=W;this.touchAction=V;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
IZ.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(_.GC(this.events)));for(var y=_.N(this.events),W=y.next();!W.done;W=y.next())this.listen(W.value)}};
IZ.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.GC(this.events)));for(var y=_.N(this.events),W=y.next();!W.done;W=y.next())this.unlisten(W.value)}};
IZ.prototype.listen=function(y){this.eventMap[y]&&this.target.addEventListener(y,this.eventMap[y])};
IZ.prototype.unlisten=function(y){this.eventMap[y]&&this.target.removeEventListener(y,this.eventMap[y])};var gr=function(){g8P.apply(this,arguments)};
_.p(gr,g8P);gr.prototype.direction=function(y){var W=y.detail;y=W.deltaY;W=W.deltaX;return y&&!this.horizontal?y>0?"down":"up":W&&this.horizontal?W>0?"right":"left":"none"};
gr.prototype.distance=function(y){return Math.abs(this.delta(y))};
gr.prototype.delta=function(y){var W=this.direction(y),V=y.detail;y=V.deltaX;V=V.deltaY;return W==="up"||W==="down"?V||0:y||0};
gr.prototype.velocity=function(y){var W=this.direction(y),V=y.detail;y=V.velocityX;V=V.velocityY;return Math.abs(W==="up"||W==="down"?V||0:y||0)};_.Pc=function(y,W,V,w,t,F){t=t===void 0?new gr:t;F=F===void 0?_.nc():F;IZ.call(this,W,F,w);var I=this;this.element=y;this.target=W;this.config=V;this.input=t;this.manager=F;this.events=["panstart","panmove","panend"];this.onPanStart=function(){I.config.draggingClass&&I.element.classList.add(I.config.draggingClass);I.config.startAction&&I.config.startAction()};
this.onPanMove=function(P){var C=C3W(I,P);if(C){I.move(P,C);C.fade&&I.fade(P,C);var d=I.input.direction(P);C.moveAction&&C.moveAction(Ofe(I,P,C),d)}};
this.onPanEnd=function(P){var C,d,L,z,c,K;return _.g(function(f){if(f.nextAddress==1){I.animationRequestId&&cancelAnimationFrame(I.animationRequestId);I.animationRequestId=void 0;C=C3W(I,P);if(!C)return f.return();d=C;L=d.triggerAction;z=d.fade;c=d.disableFinish;K=d.translateBack;var U=I.input.velocity(P),l=I.input.distance(P),x=I.threshold(C);return U>.3&&l>10||l>x?c?f.jumpTo(6):z?f.yield(v8d(I,P),6):f.yield(dZq(I,P,C),6):K?f.yield(I.translateBack(P),3):f.jumpTo(3)}f.nextAddress!=3&&L&&L();I.config.draggingClass&&
I.element.classList.remove(I.config.draggingClass);I.reset();_.B7(f)})};
y=Object.keys(V.triggers);this.directions=new Set(y);P3q(this.input,this.directions.has("right")||this.directions.has("left"))};
_.p(_.Pc,IZ);_.Pc.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var C3W=function(y,W){W=y.input.direction(W);return y.config.triggers[W]};
_.Pc.prototype.move=function(y,W){var V=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var w=V.input.axis(y),t=V.input.position(y,V.config.startPosition,W.endPosition,W.moveRatio||1);V.element.style.transform="translate"+w+"("+t+"px)";V.animationRequestId=void 0}))};
var Ofe=function(y,W,V){var w=V.moveRatio||1;V=Math.abs(y.config.startPosition-V.endPosition);return Math.min(y.input.distance(W)*w,V)/V};
_.Pc.prototype.fade=function(y,W){var V=W.endOpacity;y=Ofe(this,y,W);y>0&&(this.element.style.opacity=""+(((V||0)-1)*y+1))};
_.Pc.prototype.threshold=function(y){return y.threshold?y.threshold:Math.abs(y.endPosition-this.config.startPosition)/3};
var dZq=function(y,W,V){var w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1)return w=y.input.delta(W)+y.config.startPosition,t=y.input.axis(W),F=V,I=F.endPosition,P=F.transitionEndPosition,d=(C=P)!=null?C:I,L.yield(y.element.animate([{transform:"translate"+t+"("+w+"px)"},{transform:"translate"+t+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.element.style.transform="translate"+t+"("+d+"px)";_.B7(L)})};
_.Pc.prototype.translateBack=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1){if(!W.element.style.transform)return t.return();V=W.input.axis(y);w=W.config.startPosition;return t.yield(W.element.animate([{transform:W.element.style.transform},{transform:"translate"+V+"("+w+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}W.element.style.transform="translate"+V+"("+w+"px)";_.B7(t)})};
var v8d=function(y,W){var V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return V=y.input.delta(W)+y.config.startPosition,w=y.input.axis(W),t=V+70,F=y.element.style.opacity===""?1:y.element.style.opacity,I.yield(y.element.animate([{transform:"translate"+w+"("+V+"px)",opacity:F},{transform:"translate"+w+"("+t+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.element.style.transform="translate"+w+"("+t+"px)";y.element.style.opacity="0";_.B7(I)})};var Cx=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.scrollRate=3;y.autoScrollAnimationStart=0;y.autoScrollPaused=!1;y.autoScrollRafId=0;return y};
_.p(Cx,_.YA);_.E=Cx.prototype;_.E.created=function(){var y=this;this.boundAutoScrollHandler=function(W){y.autoScroll(W)}};
_.E.detached=function(){this.hostElement.removeEventListener("mouseout",_.Dp(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Dp(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Dp(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.E.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Dp(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Dp(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Dp(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Dp(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Dp(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Dp(this,this.endAutoScroll)),this.endAutoScroll())};
_.E.autoScroll=function(y){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=y);var W;if(W=!this.autoScrollPaused&&this.scrollTarget)W=this.scrollTarget,W=W.scrollHeight-W.scrollTop!==W.clientHeight;W&&(W=1E3/this.scrollRate,y-=this.autoScrollAnimationStart,y>W&&(this.scrollTarget.scrollTop+=Math.ceil(y/W),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.E.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.E.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Cx.prototype.autoScrollEnabledChanged=Cx.prototype.autoScrollEnabledChanged;_.J([_.q(),_.R("design:type",Object)],Cx.prototype,"scrollRate",void 0);_.J([_.q(),_.R("design:type",Object)],Cx.prototype,"scrollTarget",void 0);_.J([_.q(),_.R("design:type",Boolean)],Cx.prototype,"autoScrollEnabled",void 0);_.J([_.xA("autoScrollEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cx.prototype,"autoScrollEnabledChanged",null);_.J([_.BW()],Cx);_.Lpu=[Cx.prototype];var zam;var Ol=function(){var y=_.u.apply(this,arguments)||this;y.buttonUpdate=_.e("web_button_rework");y.dismissButtonOverrides=_.e("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;y.forceDarkTheme=!1;y.forceLightTheme=!1;y.dynamicTextHeight=94;y.hasOverflowButton=!1;y.isInfeedModernization=!1;return y};
_.p(Ol,_.u);_.E=Ol.prototype;_.E.computeUrlImg=function(y){if(y)return _.TP(y.thumbnails)};
_.E.getLogoHeight=function(y){return this.logoWithPadding(y)?"31":"24"};
_.E.getLogoClassName=function(y){return this.logoWithPadding(y)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.E.logoWithPadding=function(y){var W,V;return(y=(W=y.thumbnails)==null?void 0:(V=W[0])==null?void 0:V.height)&&y%31===0?!0:!1};
_.E.sendImpressionEndpoints=function(y){y.impressionEndpoints&&_.i5(this.hostElement,y.impressionEndpoints)};
_.E.observeBasicPalette=function(){var y,W,V=(y=this.data)==null?void 0:(W=y.colorData)==null?void 0:W.basicColorPaletteData;V?_.bF(this.hostElement,V):_.bF(this.hostElement,{})};
_.E.observeDataChanged=function(){var y;this.dynamicTextHeight=((y=this.data)==null?0:y.supplementalText)?74:94;var W;this.hasSupplementalText=!((W=this.data)==null||!W.supplementalText);if(_.e("web_button_rework")){var V,w,t,F;y=(V=this.data)==null?void 0:(w=V.actionButton)==null?void 0:(t=w.buttonRenderer)==null?void 0:(F=t.colorData)==null?void 0:F.basicColorPaletteData;var I,P,C;if(!((I=this.data)==null?0:(P=I.actionButton)==null?0:(C=P.buttonRenderer)==null?0:C.style)&&y){this.computeIsInfeedModernization(this.data)||
(y.borderColor=y.foregroundTitleColor);var d,L;this.set("data.actionButton.buttonRenderer",_.Gc.unsafeClone((d=this.data)==null?void 0:(L=d.actionButton)==null?void 0:L.buttonRenderer))}}};
_.E.observeDataForCounterfactual=function(){if(_.e("kevlar_banner_cf_extra_logging")){var y;((y=this.data)==null?0:y.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.E.computeSupplementalStyle=function(){var y;if((y=this.data)!=null&&y.supplementalText){var W,V,w;if((W=this.data)==null?0:(V=W.colorData)==null?0:(w=V.basicColorPaletteData)==null?0:w.foregroundActivatedColor)return y=_.V2(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+y+"; --yt-endpoint-hover-color:"+y+"; --yt-endpoint-visited-color:"+y+"; --yt-formatted-string-bold-font-weight:700;"}};
_.E.computeForcedDarkTheme=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.style,t,F,I;y=lzj(((t=this.data)==null?void 0:(F=t.colorData)==null?void 0:(I=F.basicColorPaletteData)==null?void 0:I.backgroundColor)||0);return w&&y};
_.E.computeForcedLightTheme=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.style,t,F,I;y=!lzj(((t=this.data)==null?void 0:(F=t.colorData)==null?void 0:(I=F.basicColorPaletteData)==null?void 0:I.backgroundColor)||0);return w&&y};
_.E.computeHasOverflowButton=function(y){return!!y.overflowButton};
_.E.computeHasTitle=function(y){return!!y.title};
_.E.computeTitleMaxFontSize=function(y){return this.computeHasOverflowButton(y)?28:64};
_.E.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.E.computeIsInfeedModernization=function(){var y,W,V,w,t=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(V=W.buttonRenderer)==null?void 0:(w=V.colorData)==null?void 0:w.basicColorPaletteData;return(t==null?void 0:t.backgroundColor)===452984831||(t==null?void 0:t.backgroundColor)===218103808};
Ol.prototype.observeDataForCounterfactual=Ol.prototype.observeDataForCounterfactual;Ol.prototype.observeDataChanged=Ol.prototype.observeDataChanged;Ol.prototype.observeBasicPalette=Ol.prototype.observeBasicPalette;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Ol.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],Ol.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ol.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ol.prototype,"buttonUpdate",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Ol.prototype,"hasSupplementalText",void 0);_.J([_.q(),_.R("design:type",Object)],Ol.prototype,"dismissButtonOverrides",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.R("design:type",Boolean)],Ol.prototype,"hasTitle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.R("design:type",Object)],Ol.prototype,"forceDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.R("design:type",Object)],Ol.prototype,"forceLightTheme",void 0);_.J([_.q(),_.R("design:type",Object)],Ol.prototype,"dynamicTextHeight",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.R("design:type",Object)],Ol.prototype,"hasOverflowButton",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.R("design:type",Object)],Ol.prototype,"isInfeedModernization",void 0);_.J([_.xA("data.colorData.basicColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ol.prototype,"observeBasicPalette",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ol.prototype,"observeDataChanged",null);_.J([_.xA("data.isVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ol.prototype,"observeDataForCounterfactual",null);_.J([_.k({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Ol);
_.Y(Ol,"ytd-banner-promo-renderer",function(){if(zam!==void 0)return zam;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zam=y},{mode:1});var cut;var eaP;var ha3;var vc=function(){return _.u.apply(this,arguments)||this};
_.p(vc,_.u);_.J([_.q(),_.R("design:type",Object)],vc.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.J([_.k({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],vc);
_.Y(vc,"ytd-hashtag-grid-tile-renderer",function(){if(ha3!==void 0)return ha3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ha3=y},{mode:1});var dr=function(){return _.u.apply(this,arguments)||this};
_.p(dr,_.u);dr.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
dr.prototype.updateRichGridTrendingHashtagsVisibility=function(){var y,W;if(((y=this.data)==null||!y.isExpanded)&&(W=this.data)!=null&&W.tiles){y=this.data.tiles.length;W=y>this.richGridItemsPerRow?this.richGridItemsPerRow+1:y;var V=Math.ceil(y/W);this.fullyVisibleRows=y%W===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
dr.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
dr.prototype.updateRichGridTrendingHashtagsVisibility=dr.prototype.updateRichGridTrendingHashtagsVisibility;_.J([_.q(),_.R("design:type",Object)],dr.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Number)],dr.prototype,"fullyVisibleRows",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],dr.prototype,"isShowMoreVisible",void 0);_.J([_.q({selector:_.r5,value:0}),_.R("design:type",Number)],dr.prototype,"richGridItemsPerRow",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.J([_.xA("data","richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dr.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.J([_.k({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],dr);
_.Y(dr,"ytd-hashtag-grid-shelf-renderer",function(){if(eaP!==void 0)return eaP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return eaP=y},{mode:1});var o8t;var Kpm;var Lx=function(){var y=_.u.apply(this,arguments)||this;y.visibleVideos=[];y.hiddenVideos=[];y.modern=_.e("web_modern_buttons");y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(Lx,_.u);_.E=Lx.prototype;_.E.attached=function(){var y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.onDarkModeToggledAction(y)};
_.E.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"}}}};
_.E.dataChanged=function(){var y=this;this.requestElementsPerRow();var W,V;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(V=this.data)==null?void 0:V.lightColorData;var w;if((w=this.currentColorPalette)==null?0:w.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.gy(this,function(){y.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.E.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.E.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.E.computeIsFirstFeedItem=function(y){return y};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y);this.data&&(this.currentColorPalette=y?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.E.getCurrentLogo=function(y,W){if(y)return W?y.darkLogoImage:y.lightLogoImage};
_.E.computeTitleStyle=function(y){var W;if((W=this.data)!=null&&W.title&&y&&y.textPrimary!==void 0)return"color:"+_.V2(y.textPrimary)+";"};
_.E.computeSubtitleStyle=function(y){var W;if((W=this.data)!=null&&W.subtitle&&y&&y.textSecondary!==void 0)return"color:"+_.V2(y.textSecondary)+";"};
_.E.computeDismissIconStyle=function(y){if(this.data&&this.data.dismissButton&&y&&y.textPrimary!==void 0)return"--yt-button-color:"+_.V2(y.textPrimary)+";"};
_.E.computeOverflowButtonStyle=function(y){if(this.data&&this.data.overflowButton&&y&&y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.V2(y.textPrimary)+";--yt-spec-icon-active-other:"+_.V2(y.textPrimary)+";"};
_.E.computeBackgroundStyle=function(y){if(y&&this.data){var W="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.TP((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&(W+='background-image:url("'+V+'");')}y.backgroundColor!==void 0&&(W+="background-color:"+_.wg(y.backgroundColor)+";");return W}};
_.E.computeButton=function(){var y,W=Object.assign({},_.h((y=this.data)==null?void 0:y.showMoreButton,_.wz));if(this.modern&&W){W.style="STYLE_MONO_OUTLINE";var V;if(y=(V=this.currentColorPalette)==null?void 0:V.textPrimary)W.colorData={basicColorPaletteData:{foregroundTitleColor:y,borderColor:y}}}return W};
_.E.shouldShowBottomButton=function(y,W){return!(y==null?0:y.header)&&!(y==null||!y.primaryButton)&&W<3};
_.E.checkExpanded=function(y){this.isExpanded=y&&y.content?this.hiddenVideos.length===0:!0};
_.E.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.E.getLogoHeight=function(y){return this.logoWithPadding(y)?"26":"20"};
_.E.getLogoImageId=function(y){return this.logoWithPadding(y)?"logo-image-with-padding":"logo-image"};
_.E.computeHasSectionHeader=function(y){return!!y.header};
_.E.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var y;if((y=this.data.primaryButton)==null?0:y.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 W;((W=this.data.dismissButton)==null?0:W.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var V,w;((V=this.data)==null?0:(w=V.primaryButton)==null?0:w.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.E.setVisibleVideos=function(y){if(this.data&&this.data.content)if(this.data.content.length){var W=this.data.content.length;this.data.header?y?(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.slimItemsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow-1),W))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.E.setHasMovieRenderer=function(){var y;if((y=this.data)!=null&&y.content){var W;this.hasMovieRenderer=!!_.h((W=this.data)==null?void 0:W.content[0],_.yBK)}else this.hasMovieRenderer=!1};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
_.E.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var y=_.N(this.hiddenMediaRenderers),W=y.next();!W.done;W=y.next())W.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(y=_.i6(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&y.focus()}};
_.E.updateTitleSpec=function(){var y;(y=this.data)!=null&&y.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.E.logoWithPadding=function(y){var W,V,w;return(y=(W=this.getCurrentLogo(y,this.isDarkTheme))==null?void 0:(V=W.thumbnails)==null?void 0:(w=V[0])==null?void 0:w.height)&&y%31===0?!0:!1};
_.E.onUpdateElementsPerRowAction=function(y,W,V){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y);V&&this.slimItemsPerRow!==V&&(this.slimItemsPerRow=V)};
Lx.prototype.slimItemsPerRowChanged=Lx.prototype.slimItemsPerRowChanged;Lx.prototype.elementsPerRowChanged=Lx.prototype.elementsPerRowChanged;Lx.prototype.dataChanged=Lx.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],Lx.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Lx.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Lx.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Lx.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Lx.prototype,"currentColorPalette",void 0);_.J([_.q(),_.R("design:type",Array)],Lx.prototype,"visibleVideos",void 0);_.J([_.q(),_.R("design:type",Array)],Lx.prototype,"hiddenVideos",void 0);
_.J([_.q(),_.R("design:type",Object)],Lx.prototype,"primaryButton",void 0);_.J([_.q({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],Lx.prototype,"elementsPerRow",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Lx.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Lx.prototype,"isExpanded",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Lx.prototype,"largeTitle",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Lx.prototype,"hasMovieRenderer",void 0);_.J([_.q(),_.R("design:type",Number)],Lx.prototype,"slimItemsPerRow",void 0);_.J([_.q(),_.R("design:type",Boolean)],Lx.prototype,"showLightVideoMetadata",void 0);_.J([_.q(),_.R("design:type",Boolean)],Lx.prototype,"showDarkVideoMetadata",void 0);_.J([_.q(),_.R("design:type",Number)],Lx.prototype,"videoMetadataColor",void 0);
_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],Lx.prototype,"miniMode",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.R("design:type",Boolean)],Lx.prototype,"isFirstFeedItem",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.R("design:type",Boolean)],Lx.prototype,"hasSectionHeader",void 0);
_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],Lx.prototype,"roundedContainer",void 0);_.J([_.Ac("#visible-video-container ytd-rich-grid-media"),_.R("design:type",Array)],Lx.prototype,"visibleMediaRenderers",void 0);_.J([_.Ac("#hidden-video-container ytd-rich-grid-media"),_.R("design:type",Array)],Lx.prototype,"hiddenMediaRenderers",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Lx.prototype,"modern",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lx.prototype,"dataChanged",null);_.J([_.xA("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lx.prototype,"elementsPerRowChanged",null);_.J([_.xA("slimItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lx.prototype,"slimItemsPerRowChanged",null);
_.J([_.k({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Lx);
_.Y(Lx,"ytd-brand-video-shelf-renderer",function(){if(Kpm!==void 0)return Kpm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Kpm=y},{mode:1});var p$P;var zK=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(zK,_.u);_.E=zK.prototype;_.E.attached=function(){var y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.onDarkModeToggledAction(y)};
_.E.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"}}}};
_.E.dataChanged=function(){this.requestElementsPerRow();var y,W;this.currentColorPalette=this.isDarkTheme?(y=this.data)==null?void 0:y.darkColorData:(W=this.data)==null?void 0:W.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.E.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.E.computeIsFirstFeedItem=function(y){return y};
_.E.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y);this.data&&(this.currentColorPalette=y?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(y),this.updateButtonPalette())};
_.E.shouldShowThumbnailInMetadata=function(y){return y<=1};
_.E.computeVideoMetadataColor=function(){if(this.data){var y;if((y=this.currentColorPalette)==null?0:y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.E.computeTitleStyle=function(y){var W;if((W=this.data)!=null&&W.title&&y&&y.textPrimary!==void 0)return"color:"+_.V2(y.textPrimary)+";"};
_.E.computeSubtitleStyle=function(y){var W;if((W=this.data)!=null&&W.subtitle&&y&&y.textSecondary!==void 0)return"color:"+_.V2(y.textSecondary)+";"};
_.E.computeOverflowButtonStyle=function(y){if(this.data&&this.data.overflowButton&&y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.V2(y.textPrimary)+";--yt-spec-icon-active-other:"+_.V2(y.textPrimary)+";"};
_.E.computeBackgroundStyle=function(y){if(y&&this.data){var W="";y.backgroundColor!==void 0&&(W+="background-color:"+_.wg(y.backgroundColor)+";");return W}};
_.E.computeHasOverflowButton=function(y){return!!y.overflowButton};
_.E.updateButtonPalette=function(){if(this.data){var y;if((y=this.data.primaryButton)==null?0:y.buttonRenderer){var W;if((W=this.currentColorPalette)==null?0:W.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var V;((V=this.currentColorPalette)==null?0:V.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)})}}};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
_.E.updateTitleSpec=function(){var y;(y=this.data)!=null&&y.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")};
_.E.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
zK.prototype.elementsPerRowChanged=zK.prototype.elementsPerRowChanged;zK.prototype.dataChanged=zK.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],zK.prototype,"ytdDismissibleItemBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],zK.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],zK.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],zK.prototype,"currentColorPalette",void 0);_.J([_.q(),_.R("design:type",Object)],zK.prototype,"primaryButton",void 0);
_.J([_.q({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],zK.prototype,"elementsPerRow",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],zK.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],zK.prototype,"titleSize",void 0);_.J([_.q(),_.R("design:type",Number)],zK.prototype,"videoMetadataColor",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],zK.prototype,"miniMode",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.R("design:type",Boolean)],zK.prototype,"isFirstFeedItem",void 0);_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],zK.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.R("design:type",Boolean)],zK.prototype,"hasOverflowButton",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zK.prototype,"dataChanged",null);_.J([_.xA("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zK.prototype,"elementsPerRowChanged",null);_.J([_.k({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],zK);
_.Y(zK,"ytd-brand-video-singleton-renderer",function(){if(p$P!==void 0)return p$P;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return p$P=y},{mode:_.qM("kevlar_poly_si_batch_j070")?1:2});var ifv;var f_t=_.eY(function(y){var W=y.data;return _.O(_.ca,{data:function(){return W().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(W().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var V=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":V=88;break a;default:V=88}return V},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return W().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Mi"),mZj=_.eY(function(y){var W=y.metadataRow;
var V=y.delimiter;return _.O(_.YV,{each:function(){return W().textParts||[]},
keyBy:"INDEX"},function(w,t){return _.O(_.o8,null,_.O(_.Lv,{text:w,noWrap:!0,userInput:!0}),_.O(Tnu,{delimiter:V,max:function(){return W().textParts.length},
index:t}))})},"Ni"),Tnu=_.eY(function(y){var W=y.delimiter;
var V=y.max;var w=y.index;return _.O(_.v,{cond:function(){return(W==null?void 0:W())&&V()-1>w()},
then:function(){return _.O("span",null,W)}})},"Oi"),M2C=_.eY(function(y){var W=y.data;
y={};return _.O("yt-profile-page-header-information-view-model",{class:_.kS("profile-page-header-information-view-model-wiz",(y["profile-page-header-information-view-model-wiz--mobile"]=!1,y))},_.O(_.v,{cond:function(){return W().onTap},
then:function(){return _.O(_.It,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.tl(W().onTap)}},_.O(_.Q7,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:f_t}))},
else:function(){return _.O("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.O(_.Q7,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:f_t}))}}),_.O("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.O(_.v,{cond:function(){return W().onTap},
then:function(){return _.O(_.Q7,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(V){var w=V.data;
return _.O(_.It,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.tl(w().onTap)}},_.O(_.Lv,{text:function(){return w().title}}))}})},
else:function(){return _.O(_.Q7,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(V){var w=V.data;
return _.O(_.Lv,{text:function(){return w().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.O(_.Q7,{data:function(){return W().metadata}},{profilePageHeaderMetadataViewModel:function(V){var w=V.data;
return _.O(_.v,{cond:function(){return w().metadataRows},
then:function(t){return _.O("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.O(_.YV,{each:t,keyBy:"INDEX"},function(F,I){return _.O(_.o8,null,_.O(mZj,{metadataRow:F,delimiter:" \u2022 "}),_.O(Tnu,{delimiter:" \u2022 ",max:function(){return t().length},
index:I}))}))}})}})))},"Pi");
M2C.idomCompat=!0;_.iF(M2C,"yt-profile-page-header-information-view-model",{props:{data:_.vB}});var cc=function(){return _.u.apply(this,arguments)||this};
_.p(cc,_.u);cc.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cc.prototype,"data",void 0);_.J([_.k({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],cc);
_.Y(cc,"ytd-effect-pivot-header-view-model",function(){if(ifv!==void 0)return ifv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ifv=
y},{mode:1});var qdv;var ea=function(){return _.u.apply(this,arguments)||this};
_.p(ea,_.u);ea.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ea.prototype,"data",void 0);_.J([_.k({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ea);
_.Y(ea,"ytd-source-pivot-header-renderer",function(){if(qdv!==void 0)return qdv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return qdv=y},{mode:1});_.UZv=_.eY(function(y){var W=y.data;var V=function(){var w;return _.tO((w=W())==null?void 0:w.rendererContext)};
y={};return _.O("content-list-item-view-model",{el:_.hl(_.FW(function(){return W().rendererContext})),
class:_.kS("ytContentListItemViewModelHost",(y.ytContentListItemViewModelTappable=V,y)),role:function(){return V()?"listitem":void 0},
tabindex:function(){return V()?0:void 0}},_.O("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.O("div",{class:"ytContentListItemViewModelImageContainer"},_.O(_.v,{cond:function(){return W().image},
then:function(w){return _.O(_.ca,{data:w,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.O(_.Q7,{data:function(){var w;
return(w=W())==null?void 0:w.avatar}},{avatarViewModel:_.ra})),_.O("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.O("div",{class:_.kS("ytContentListItemViewModelTitle",function(){a:{switch(W().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var w="ytContentListItemViewModelProminentTitle";
break a}w=void 0}return w})},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:"ytContentListItemViewModelMetadata"},_.O(_.Q7,{data:function(){return W().metadata}},{contentMetadataViewModel:function(w){return _.O(_.TX,{data:w.data,
layout:1})}})))),_.O("div",{class:"ytContentListItemViewModelActionButton"},_.O(_.Q7,{data:function(){var w;
return(w=W())==null?void 0:w.actionButton}},{buttonViewModel:_.lk,
toggleButtonViewModel:_.XV})))},"Qi");_.iF(_.eY(function(y){var W=function(){return y.data().background},V=function(){return y.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},w=function(){return y.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.O("yt-card-view-model",{class:_.kS("ytCardViewModelHost",y.className)},_.O(_.ml,{contentId:function(){return y.data().contentId}},function(){return _.O("div",{class:_.kS("ytCardViewModelCardViewModelInner",function(){return RVC(y.data().cardStyle)})},_.O(_.Q7,{data:W},{cinematicContainerViewModel:function(t){return _.O(_.FWz,{data:t.data})}}),_.O("div",{class:"ytCardViewModelContentWrapper"},_.O(_.v,{cond:function(){return!V()},
then:function(){var t={};return _.O("div",{class:"ytCardViewModelTopContent"},_.O(_.Q7,{data:function(){return y.data().topContent}},{contentListItemViewModel:function(F){return _.O(_.UZv,{data:F.data})}}),_.O("div",{class:_.kS("ytCardViewModelInlineTrailingAction",(t.ytCardViewModelInlineCenterTrailingAction=w,t))},_.O(_.Q7,{data:function(){return y.data().trailingAction}},{buttonViewModel:function(F){return _.O(_.lk,{data:F.data})}})))}}),_.O("div",{class:"ytCardViewModelBodyContent"},_.O(_.Q7,
{data:function(){return y.data().bodyContent}},{contentListItemViewModel:function(t){return _.O(_.UZv,{data:t.data})}}))),_.O(_.v,{cond:function(){return V()},
then:function(){return _.O("div",{class:"ytCardViewModelOverlayTrailingAction"},_.O(_.Q7,{data:function(){return y.data().trailingAction}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data})}}))}}))}))},"Ri"),"yt-card-view-model",{props:{data:_.vB,
className:_.vB}});_.iF(_.eY(function(y){var W=function(){return _.h(y.data().flowRoot,V2t)};
_.a8(function(){var V=W(),w=function(){},t=function(){};
if(V){var F,I,P,C=((P=_.h((F=W())==null?void 0:(I=F.steps)==null?void 0:I[0],_.eLj))==null?void 0:P.stepId)||"";HSv(V,C);w=azv(V);t=GUq(V)}_.XT(function(){var d=W();d&&_.dP().dispatch(_.B5("flowStateEntity",d.flowStateEntityKey));w();w=function(){};
t();t=function(){}})});
return _.O("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.O(_.ml,{contentId:function(){return y.data().contentId}},function(){return _.O("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.O(_.v,{cond:W,
then:function(V){return _.O(_.dNj,{data:V})}}))}))},"Si"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.vB}});_.iF(_.eY(function(){return _.O("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.O("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.O("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.O(_.WJC,null)),_.O(_.h2f,{data:{rows:1},isExploreHub:!0}))},"Ti"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.iF(_.eY(function(y){var W=y.data;var V=y.standardUnitMinWidth;y=_.N((0,_.iT2)(W));var w=y.next().value,t=y.next().value,F=function(){var P,C=(P=w())==null?void 0:P.contents;return C==null||C.length===0},I=function(){t(Object.assign({},w(),{contents:[]}))};
return _.O("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.hl(_.L7({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var P=_.h(W().chipsShelf,t2j);if(P!=null&&P!=null&&P.autoselectChipOnVisible){var C,d,L=_.h(P==null?void 0:(C=P.contents)==null?void 0:C[(d=P.autoselectedChipIndex)!=null?d:0],_.Nx);L&&L.tapCommand&&_.Id(L.tapCommand)}}}))},_.O(_.ml,{contentId:function(){return W().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.O("div",null,_.O("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.O(_.Q7,{data:function(){return W().header}},{sectionHeaderViewModel:function(P){return _.O(_.U2,{data:P.data,
disableHorizontalPadding:!0})}})),_.O("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.O(_.Q7,{data:function(){return W().chipsShelf}},{chipsShelfViewModel:function(P){return _.O(_.Tqz,{data:P.data,
callback:I,enableSingleChipSelection:!0})}})),_.O("div",null,_.O(_.v,{cond:F,
then:function(){return _.O("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.O(_.h2f,{data:{rows:1},isExploreHub:!0}))}}),_.O(_.Q7,{data:function(){var P;
return(P=w())==null?void 0:P.contents}},{richShelfRenderer:function(P){return _.O(_.iSA,{data:P.data,
isInnerShelf:!0,standardUnitMinWidth:V})}})))}))},"Ui"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.vB,
standardUnitMinWidth:_.vB}});var hN=function(){return _.u.apply(this,arguments)||this};
_.p(hN,_.u);
hN.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
hN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.J([_.m(_.y$),_.R("design:type",Object)],hN.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],hN.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hN.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Number)],hN.prototype,"standardUnitMinWidth",void 0);_.J([_.k({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],hN);
_.Y(hN,"ytd-rich-section-renderer",function(){if(o8t!==void 0)return o8t;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return o8t=y},{mode:_.qM("kevlar_poly_si_batch_j029")?
1:2});_.iF(_.sAq,"yt-profile-identity-info-view-model",{props:{data:_.vB,hideDivider:_.vB,isChannelInfoCard:_.vB}});_.iF(_.d6m,"yt-page-header-view-model",{props:{data:_.vB,noPadding:_.vB,enableBanner:_.vB,cinematicContainerTopbarOffset:_.vB,allowCinematicContainerOverflow:_.vB,displayAsSidebar:_.vB,displayAsPanel:_.vB,alwaysUseMediumTextMetadata:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=function(){var t;return(t=W().numColumns)!=null?t:2},w=function(){return V()>1?3:2};
y={};return _.O("ytd-rich-grid-group",{class:_.kS("ytdRichGridGroupHost",(y.ytdRichGridGroupHostFirstColumn=function(){return W().colIndex===0},y)),
style:_.Rd({"--ytd-rich-grid-group-num-columns":V,"--ytd-rich-grid-items-per-group":w})},_.O("div",{class:"ytdRichGridGroupContents"},_.O(_.Q7,{data:function(){var t;return(t=W().contents)==null?void 0:t.slice(0,w())}},{richItemRenderer:function(t){return _.O(_.KAr,{data:t.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Vi"),"ytd-rich-grid-group",{props:{data:_.vB}});var oZ=function(){var y=_.u.apply(this,arguments)||this;y.resizeOnObserverInit=!1;y.isInlinePreviewDisabled=_.e("web_disable_inline_preview");y.disableStickyFilterBar=!1;y.transparentBackgroundChipsBar=!1;y.hideChipsBar=!1;y.isWatchDefaultLayout=!0;y.continuationShowButton=!1;y.rowReducedHorizontalMargin=!1;y.useCompactList=!1;y.manualDownloadsPresent=!1;y.smartDownloadsPresent=!1;y.shouldRenderDownloadsBanner=!1;y.hasOptedIntoSmartDownloads=!1;y.elementsPerRow=4;y.typographyBump=!1;y.showGnomeContents=
!1;y.showExploreHubContents=!1;y.slimItemsPerRow=1;y.pageLoadingFromNavigation=!1;y.loggingRefactor=_.e("kevlar_rich_grid_logging_fix");y.resizeObserver=null;y.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"};y.rendererToTagNameMap=
new Map(Object.entries(y.contentMapping()).map(function(W){var V=_.N(W);W=V.next().value;V=V.next().value;return[W,V.component]}));
y.insertedContent=new Map;return y};
_.p(oZ,_.u);_.E=oZ.prototype;_.E.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var y=_.N(_.i6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=y.next();!W.done;W=y.next())W.value.useCompactList=this.useCompactList};
_.E.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var y=_.N(_.i6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=y.next();!W.done;W=y.next())W=W.value,W.sizing=this.sizing,W.typographyBump=this.typographyBump};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.E.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]]"}}}};
_.E.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}}};
_.E.attached=function(){document.addEventListener("yt-page-type-changed",_.Dp(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21580_throttledOnResize=new _.d7(this.resizeObserved,_.pB("rich_grid_resize_delay_ms",50),this)};
_.E.detached=function(){var y;(y=this.resizeObserver)==null||y.disconnect();document.removeEventListener("yt-page-type-changed",_.Dp(this,this.onPageChange))};
_.E.insertRichSection=function(y){var W=y.richItemTargetId;y=y.richSectionRendererToInsert;W&&y&&(this.insertedContent.set(W,{content:y,timestamp:Date.now()}),this.reflowContent())};
_.E.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.E.computeIsInlinePreviewEnabled=function(y,W,V){return _.e("web_disable_inline_preview")?!1:!V&&_.I3W({miniplayerIsActive:y,miniplayerPlaybackState:W})};
_.E.computeSizing=function(){var y=_.xqv(this.data);if(y||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return y?this.useCompactList?"COMPACT":y:this.miniMode?"COMPACT":_.e("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.E.updateItemMinAndMaxWidth=function(){var y=_.pB("rich_grid_max_item_width",500);y>0&&_.qg(this.hostElement,{"--ytd-rich-grid-item-max-width":y+"px"});var W;y=this.getRichItemMinWidth((W=this.hostElement)==null?void 0:W.clientWidth);y>0&&_.qg(this.hostElement,{"--ytd-rich-grid-item-min-width":y+"px"})};
_.E.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.E.resizeObserved=function(){_.Kg(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.E.navigateBackToHome=function(){_.e("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var y=_.hs().resolve(_.hn).isOnWatch(),W,V=((W=_.x1(location.pathname))==null?void 0:W.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(V)||y)&&this.gnomeContents&&_.e("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);y&&this.exploreHubContents&&_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.dP().dispatch(_.ig({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.E.onPageChange=function(){var y=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.e("disable_chip_select_on_nav")||_.Kg(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.HU.addJob(function(){y.pageLoadingFromNavigation=!1;_.e("disable_chip_select_on_nav")&&_.e("h5_reset_cache_and_filter_before_update_masthead")&&y.resetCacheAndIsFilteredFeed();y.setMasthead();y.maybeSetBigYoodle();y.forceRefreshAndLog();y.terminateVideoPreview();_.e("web_hide_gnome_until_user_navigates_back_to_home")&&
(y.dataChanged(),_.gy(y,function(){if(y.showGnomeContents){var W=Array.from(_.i6(y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(w){w=_.i6(w).querySelector("ytd-rich-shelf-renderer");return!!w&&w.isGnomeShelf()});
if(W){W=W.offsetTop-y.contentsElement.offsetTop;var V=_.hs().resolve(_.hn).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}));
_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(y.dataChanged(),_.gy(y,function(){if(y.showExploreHubContents&&!_.e("web_explore_hub_no_scroll")){var W=Array.from(_.i6(y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(w){return!!w.querySelector("ytd-talk-to-recs-flow-renderer")});
if(W){W=W.offsetTop-y.contentsElement.offsetTop;var V=_.hs().resolve(_.hn).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}))},8)):((_.e("web_hide_gnome_until_user_navigates_back_to_home")||_.e("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.E.dataChanged=function(){var y=this,W=_.pB("web_rich_grid_row_margin",0);W>0&&_.qg(this.hostElement,{"--ytd-rich-grid-row-margin":W+"px"});_.Kg(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.gy(this,function(){y.updateRichItemGridPositions();y.contentsElement&&_.qg(y.hostElement,{"--ytd-rich-grid-content-offset-top":y.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.E.initResizeObserver=function(){var y=this;if(window.ResizeObserver){var W;(W=this.resizeObserver)==null||W.disconnect();var V=!1;this.resizeObserver=new ResizeObserver(function(){if(V){var w;(w=y.resizeObserver)==null||w.disconnect();var t;(t=y.JSC$21580_throttledOnResize)==null||t.fire();requestAnimationFrame(function(){var I;(I=y.JSC$21580_throttledOnResize)==null||I.fire();y.initResizeObserver()})}else if(V=!0,y.resizeOnObserverInit){var F;
(F=y.JSC$21580_throttledOnResize)==null||F.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.E.contentLengthChanged=function(){if(_.e("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Kg(this.hostElement,"ytd-rich-item-index-update-action")};
_.E.updateElementsPerRow=function(){_.Kg(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.ig({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.ig({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.E.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.E.onRichShelfRendererCollapse=function(y){if(this.shownItems){var W=y.detail;y=this.shownItems.findIndex(function(w){var t,F;return((F=_.h(w==null?void 0:(t=w.richSectionRenderer)==null?void 0:t.content,_.pYz))==null?void 0:F.trackingParams)===W});
var V=y+1;y<0||V>=this.contentsElement.children.length||!this.shownItems[V].richItemRenderer||this.contentsElement.children[V].scrollIntoView({behavior:"smooth",block:"start"})}};
_.E.onSoftReloadPage=function(){this.scrollUpToTop()};
_.E.handleRerenderDownloadsData=function(){_.e("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.E.handlePlaylistRemoveVideosAction=function(y){var W;if(((W=_.h(y,_.RSs))==null?0:W.setVideoIds)&&this.data&&this.data.contents){y=_.h(y,_.RSs).setVideoIds;for(W=this.data.contents.length-1;W>=0;){var V=_.h(this.data.contents[W],_.ax);(V=V&&_.h(V.content,_.VB))&&V.setVideoId&&y.includes(V.setVideoId)&&this.splice("data.contents",W,1);W--}this.updateIndices()}};
_.E.updateIndices=function(){if(this.data&&this.data.contents)for(var y=0;y<this.data.contents.length;y++)this.set("data.contents."+y+".richItemRenderer.index",_.CO(String(y+1)))};
_.E.hasTopRowInlinePlayableVideoWithEndorsement=function(y){var W;return!((W=y.slice(0,this.getItemsPerRow()))==null||!W.some(function(V){var w;V=_.h(V==null?void 0:(w=V.richItemRenderer)==null?void 0:w.content,_.FB);var t;return(V==null?void 0:V.inlinePlaybackEndpoint)&&(V==null?void 0:(t=V.thumbnailOverlays)==null?void 0:t.some(function(F){return F.thumbnailOverlayEndorsementRenderer}))}))};
_.E.refreshGridLayoutNew=function(y,W,V,w){var t=w.postsPerRow;var F=w.slimItemsPerRow;var I=w.gameCardsPerRow;w=w.miniGameCardsPerRow;var P;if((P=this.data)==null||!P.contents||!this.containerWidth)return!1;var C;if((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize){var d=_.Ujz(this.data.responsiveContainerConfiguration,this.containerWidth),L;P=_.Cv(Object.assign({},d,{standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&d.isCompactList)}else P=_.Cv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=P.typographyBump;L=!1;if(y||this.elementsPerRow!==P.numItems||this.postsPerRow!==t||this.slimItemsPerRow!==F||this.gameCardsPerRow!==
I||this.miniGameCardsPerRow!==w||this.gutter!==P.gutter)L=this.elementsPerRow!==P.numItems,this.elementsPerRow=P.numItems,this.postsPerRow=t,this.slimItemsPerRow=F,this.gameCardsPerRow=I,this.miniGameCardsPerRow=w,this.gutter=P.gutter,this.itemWidth=P.itemWidth,this.reflowContent(W),_.qg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":P.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(V);this.ytdReduxBehavior.dispatch(_.ig({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:P.maxContainerWidth}));return L};
_.E.refreshGridLayout=function(y,W){var V,w=(V=this.hostElement)==null?void 0:V.clientWidth;this.containerWidth=this.adjustRichGridWidth(w,!0);var t;if((t=this.data)==null||!t.contents||!this.containerWidth)return y&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.e("rg_pending_reflow_ks")&&(y=!0,this.pendingForceReflow=!1);V=this.getRichItemMinWidth(w);var F=this.isShortsPanel?146:194,I=this.getMiniGameCardMinWidth(),P=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
w=V=this.calcElementsPerRow(V,P);(t=V<=3&&this.miniModeAllowed())&&(V=this.calcElementsPerRow(240,4));var C=this.calcMaxSlimElementsPerRow(V,P,this.isDefaultGrid);P=this.calcElementsPerRow(F,C);var d=this.calcElementsPerRow(this.isCompactGrid?F:154,C);F=this.calcElementsPerRow(this.isCompactGrid?F:I,C);I=!1;if(this.sizing)return this.refreshGridLayoutNew(y,W,t,{postsPerRow:w,slimItemsPerRow:P,gameCardsPerRow:d,miniGameCardsPerRow:F});if(y||this.elementsPerRow!==V||this.postsPerRow!==w||this.slimItemsPerRow!==
P||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==F)I=this.elementsPerRow!==V,this.elementsPerRow=V,this.postsPerRow=w,this.slimItemsPerRow=P,this.gameCardsPerRow=d,this.miniGameCardsPerRow=F,this.reflowContent(W),this.updateElementsPerRow(),_.qg(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)&&_.qg(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(t);_.Kg(this.hostElement,"yt-rich-grid-layout-refreshed");return I};
_.E.getRichItemMinWidth=function(y){var W=_.pB("rich_grid_min_item_width",310);if(!_.e("kevlar_disable_min_width_override")){var V,w;W=(w=(V=this.data)==null?void 0:V.minItemWidth)!=null?w:W}return W+_.Mqb(y)};
_.E.calcMaxSlimElementsPerRow=function(y,W,V){return(V===void 0?0:V)?y===1?2:y%2===0?_.e("web_shorts_2_by_3_reduce_items_per_row")&&y>=4?y/2*3-1:y/2*3:_.e("web_shorts_2_by_3_reduce_items_per_row")&&y>=3?y+1:y+2:W*2};
_.E.adjustRichGridWidth=function(y,W){var V=_.e("disable_rich_grid_guide_compensation");if(!this.isWatch&&!V){V=_.hs().resolve(_.eX(_.Fq));var w=V==null?void 0:V.guideElement;if(!(!V||V.getData()||w!=null&&w.opened||V.getMiniGuideVisible()))if(V.canFitPersistentGuide(y)&&V.getGuideExpandsAutomatically()){var t,F,I=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(F=t.getPropertyValue("--app-drawer-width"))==null?void 0:F.replace("px",""));y-=I||0}else if(V.canFitMiniGuide(y)){var P;
t=Number((I=window.getComputedStyle(this.hostElement))==null?void 0:(P=I.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:P.replace("px",""));y-=t||0}}y>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(y-=W?32:48));return y};
_.E.calcElementsPerRow=function(y,W){var V=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),w=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((V+w)/(y+w))||1,W)};
_.E.reflowContent=function(y){var W=this;if(!this.isReflowing){this.isReflowing=!0;var V,w,t=!!((V=this.data)==null?0:(w=V.contents)==null?0:w.some(function(K){return _.h(K,_.e3)}));
V=this.getItemsPerRow();var F;w=(F=this.data)==null?void 0:F.reflowOptions;y&&(_.aw("rgr_s"),_.gy(this,function(){_.aw("rgr_nrf")}));
y={};(F=_.i6(this.hostElement).querySelector("#contents"))&&(y={contentElement:F,rendererToTagNameMap:this.rendererToTagNameMap});F=(F=this.data.contents)?F.slice():[];var I=(_.e("web_hide_gnome_behind_feed_filter_chip")||_.e("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,P=_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,C=-1,d=-1;if(this.isHomePage&&P){for(P=0;P<F.length;P++){var L=void 0,z=void 0;_.h((L=F[P])==null?void 0:
(z=L.richSectionRenderer)==null?void 0:z.content,Wpt)&&(d=P)}d>-1&&(this.exploreHubContents=F.splice(d,1))}if(this.isHomePage&&I){for(d=0;d<F.length;d++)z=L=void 0,(P=_.h((L=F[d])==null?void 0:(z=L.richSectionRenderer)==null?void 0:z.content,_.pYz))&&I&&(z=L=void 0,P=_.h((L=P)==null?void 0:(z=L.contents)==null?void 0:z[0],_.ax),L=void 0,_.h((L=P)==null?void 0:L.content,_.psm)&&(C=d));C>-1&&(this.gnomeContents=F.splice(C,1))}var c=AHC(F,V,t,w,this.getRichGridStyle(),y,this.insertedContent);t=function(){W.shownItems=
c;W.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(c),_.gy(this,t)):t()}};
_.E.getFirstRowItems=function(y){for(var W=[],V=0;V<y.length;V++){var w=void 0,t=void 0,F=void 0,I=void 0,P=void 0,C=void 0;if(((w=y[V])==null?void 0:(t=w.richItemRenderer)==null?void 0:t.rowIndex)===0||((F=y[V])==null?void 0:(I=F.richGroupRenderer)==null?void 0:I.rowIndex)===0||((P=y[V])==null?void 0:(C=P.richSectionRenderer)==null?void 0:C.rowIndex)===0)W.push(y[V]);else break}return W};
_.E.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.E.handleChipCloudChipSelectAction=function(y,W){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.e("web_hide_gnome_behind_feed_filter_chip")&&(W?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.E.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.e("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.E.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.e("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.E.terminateVideoPreview=function(){_.Kg(this.hostElement,"yt-terminate-video-preview-action")};
_.E.updateRichItemGridPositions=function(){var y={gridData:{gridColumnCount:this.elementsPerRow}},W;if((W=this.data)==null?0:W.trackingParams)this.loggingRefactor?_.BC().stateChanged(this.data.trackingParams,y):(W=_.Xn())&&_.d5(W,_.nD(this.data.trackingParams),y);_.Kg(this.hostElement,"ytd-rich-item-index-update-action")};
_.E.miniModeAllowed=function(){return _.e("disable_channels_mini_mode")?!1:this.isChannelPage};
_.E.getMiniGameCardMinWidth=function(){return 154};
_.E.updateMiniMode=function(y){this.miniMode=this.miniModeAllowed()&&y;this.ytdReduxBehavior.dispatch(_.ig({type:"SET_RICH_GRID_MINI_MODE",payload:y}))};
_.E.isCurrentPage=function(){return location.pathname===this.pagePath};
_.E.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var y=_.hs().resolve(_.hn).getCurrentPage();y&&y.setScrollTop(0)}};
_.E.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.E.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.E.maybeSetBigYoodle=function(){var y,W=(y=this.data)==null?void 0:y.bigYoodle;this.bigYoodleData!==W&&(this.bigYoodleData=W)};
_.E.setMasthead=function(){var y;((y=this.data)==null?0:y.masthead)?this.mastheadData=this.data.masthead:_.e("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.E.getRichGridStyle=function(){var y,W;return(W=(y=this.data)==null?void 0:y.style)!=null?W:"RICH_GRID_STYLE_UNKNOWN"};
_.E.onIsShortsGridChange=function(){var y=this.ytdReduxBehavior,W=y.dispatch,V=this.getRichGridStyle();W.call(y,_.ig({type:"SET_RICH_GRID_STYLE",payload:V}))};
_.CM.Object.defineProperties(oZ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var y=_.hs().resolve(_.hn).getCurrentPage(),W,V,w;return(((W=this.data)==null?void 0:W.targetId)==="browse-feedFEsfv_audio_pivot"||_.e("web_enable_channel_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_channel_pivot"||_.e("web_enable_effect_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_effect_pivot")&&(y==null?void 0:y.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.e("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 y;return!((y=this.data)==null?0:y.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var y;return((y=_.hs().resolve(_.hn).getCurrentPage())==null?void 0:y.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var y;return((y=_.hs().resolve(_.hn).getCurrentPage())==null?void 0:y.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var y;return this.hideChipsBar||(((y=this.data)==null?void 0:y.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.e("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="watch-next-feed"&&!_.e("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?0:y.enableContentSpecificAspectRatio)||((W=this.data)==null?0:(V=W.responsiveContainerConfiguration)==null?0:V.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.pB("web_continuation_handler_margin",0):0}}});
oZ.prototype.onIsShortsGridChange=oZ.prototype.onIsShortsGridChange;oZ.prototype.onReloadContinuationFinish=oZ.prototype.onReloadContinuationFinish;oZ.prototype.reflowContent=oZ.prototype.reflowContent;oZ.prototype.handleRerenderDownloadsData=oZ.prototype.handleRerenderDownloadsData;oZ.prototype.onRichShelfRendererCollapse=oZ.prototype.onRichShelfRendererCollapse;oZ.prototype.onRequestElementsPerRow=oZ.prototype.onRequestElementsPerRow;oZ.prototype.contentLengthChanged=oZ.prototype.contentLengthChanged;
oZ.prototype.dataChanged=oZ.prototype.dataChanged;oZ.prototype.onSizingChange=oZ.prototype.onSizingChange;oZ.prototype.onUseCompactListChange=oZ.prototype.onUseCompactListChange;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],oZ.prototype,"ironResizableBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],oZ.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],oZ.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],oZ.prototype,"componentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],oZ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],oZ.prototype,"miniMode",void 0);_.J([_.q({value:[]}),_.R("design:type",Array)],oZ.prototype,"shownItems",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],oZ.prototype,"isReflowing",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],oZ.prototype,"isFilteredFeed",void 0);_.J([_.q({selector:_.i3y}),_.R("design:type",Boolean)],oZ.prototype,"guideIsExpanded",void 0);
_.J([_.q({selectorArgs:["entitySelectorType"],selector:function(y,W){if(_.e("kevlar_modern_downloads_page")&&W&&W!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":W=y.entities;var V=_.HE(W),w=_.Xr(W),t=_.Jgz(y),F=_.Bzv(y),I=_.Rg4(y),P=_.v0t(W),C=_.BE(V),d=_.aB(W);return _.pkv(V,w,P,_.cgv(W),t,F,C,d,I,_.$xv(y),_.ZH(y));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return y=_.HE(y.entities),_.flj(y);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return y=
_.PTn(y.entities),_.TGv(y);default:_.rQ(new _.Js("Error: entitySelectorType defined but not matched in selector.",y,W))}}}),
_.R("design:type",Object)],oZ.prototype,"entityDrivenRichGridData",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"resizeOnObserverInit",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"bigYoodleData",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"mastheadData",void 0);_.J([_.q(),_.R("design:type",Boolean)],oZ.prototype,"isInlinePreviewDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"disableStickyFilterBar",void 0);
_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"transparentBackgroundChipsBar",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oZ.prototype,"hideChipsBar",void 0);_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"isWatchDefaultLayout",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oZ.prototype,"continuationShowButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oZ.prototype,"rowReducedHorizontalMargin",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oZ.prototype,"useCompactList",void 0);_.J([_.q({selector:function(y){return _.Xr(y.entities).length>0}}),
_.R("design:type",Object)],oZ.prototype,"manualDownloadsPresent",void 0);_.J([_.q({selector:function(y){return _.HE(y.entities).length>0}}),
_.R("design:type",Object)],oZ.prototype,"smartDownloadsPresent",void 0);_.J([_.q({selector:_.Bzv}),_.R("design:type",Object)],oZ.prototype,"shouldRenderDownloadsBanner",void 0);_.J([_.q({selector:_.Jgz}),_.R("design:type",Object)],oZ.prototype,"hasOptedIntoSmartDownloads",void 0);_.J([_.xA("useCompactList"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"onUseCompactListChange",null);
_.J([_.xA("sizing","typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"onSizingChange",null);_.J([_.q({selector:_.q8R}),_.R("design:type",Number)],oZ.prototype,"miniplayerPlaybackState",void 0);_.J([_.q({selector:_.bg}),_.R("design:type",Boolean)],oZ.prototype,"miniplayerIsActive",void 0);
_.J([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.R("design:type",Boolean)],oZ.prototype,"isInlinePreviewEnabled",void 0);_.J([_.q({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.R("design:type",String)],oZ.prototype,"sizing",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oZ.prototype,"elementsPerRow",void 0);
_.J([_.q(),_.R("design:type",Object)],oZ.prototype,"typographyBump",void 0);_.J([_.q(),_.R("design:type",Number)],oZ.prototype,"itemWidth",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],oZ.prototype,"headerElement",void 0);_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],oZ.prototype,"contentsElement",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"dataChanged",null);
_.J([_.Jc("data.contents.length"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"contentLengthChanged",null);_.J([_.l6("yt-request-elements-per-row"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"onRequestElementsPerRow",null);
_.J([_.l6("yt-rich-shelf-renderer-collapse"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],oZ.prototype,"onRichShelfRendererCollapse",null);_.J([_.Jc("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"handleRerenderDownloadsData",null);
_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],oZ.prototype,"entitySelectorType",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isSub",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isWatch",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isShortsPanel",null);_.J([_.q({reflectToAttribute:!0}),_.M("isWatch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"reducedTopMargin",null);_.J([_.q({reflectToAttribute:!0}),_.M("data","isWatch","isWatchDefaultLayout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"noTopMargin",null);
_.J([_.q({reflectToAttribute:!0}),_.M("isInlinePreviewEnabled","shownItems"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"topRowEndorsement",null);_.J([_.M("data.header"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"hideHeader",null);_.J([_.l6("yt-rich-grid-reflow"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],oZ.prototype,"reflowContent",null);
_.J([_.l6("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"onReloadContinuationFinish",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isSlimGrid",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isShortsGrid",null);
_.J([_.M("data","isSlimGrid","isShortsGrid"),_.q(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"noRichItemGutterMargins",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isShortsGridSlim",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isCompactGrid",null);
_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"isDefaultGrid",null);_.J([_.M("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"hideChipsBarOnHome",null);_.J([_.M("data.targetId"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"hideChipsBarOnWatch",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oZ.prototype,"onIsShortsGridChange",null);_.J([_.M("data.enableContentSpecificAspectRatio"),_.q(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oZ.prototype,"force16By9ThumbnailAspectRatio",null);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],oZ.prototype,"continuationTriggerOffset",null);_.J([_.k({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],oZ);
_.Y(oZ,"ytd-rich-grid-renderer",function(){if(cut!==void 0)return cut;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cut=y},{mode:2});var uGj=_.eY(function(y){var W=y.thumbsUp,V=y.thumbsDown,w=y.rightAlignThumbs;y=_.N(_.M1(!1,void 0,"FjNDrf"));var t=y.next().value,F=y.next().value;y=_.N(_.M1(!1,void 0,"Tphjfb"));var I=y.next().value,P=y.next().value;y={};return _.O("div",{class:_.kS("ytwThumbsUpDownThumbs",(y.ytwThumbsUpDownRightAlign=function(){return w==null?void 0:w()},y))},_.O(_.XV,{data:W,
onToggle:function(C){F(C);I()&&P(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}),_.O(_.XV,{data:V,
onToggle:function(C){P(C);t()&&F(!1)},
buttonShapeOverrides:function(){return{toggled:I()}}}))},"Wi");
uGj.idomCompat=!0;var DZv=_.eY(function(y){var W=function(){return y.data().pendingStateEntityKey||""},V=_.Yn(_.rHm,W),w=function(){var P;
if(!(P=y.disabled())){var C;P=!((C=V())==null||!C.isPendingResponse)}return P},t=_.N(_.M1(JHW(""),void 0,"aC8eBe")),F=t.next().value,I=t.next().value;
_.HV(function(){requestAnimationFrame(function(){var P=y.data().onShowAnimationMs||0;P=P>0?JHW("--chip-animation-duration: "+P+"ms;"):JHW("");I(P)})});
return _.O("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:F},_.O(_.YV,{each:function(){return y.data().chipData||[]},
keyBy:"REFERENCE"},function(P){return _.O(SdW,{data:P,disabled:w,pendingStateKey:W,onError:y.onError})}))},"Xi"),SdW=_.eY(function(y){var W=_.gS("button"),V=_.N(_.M1(!0,void 0,"NaMiCd")),w=V.next().value,t=V.next().value,F=function(){return y.data().text.content},I=_.YS(function(P){var C,d,L,z,c,K,f,U;
return _.g(function(l){switch(l.nextAddress){case 1:P.stopPropagation();if(y.disabled())return l.return();d=String(Math.floor(((C=_.Sf())==null?void 0:C.getCurrentTime())||0)*1E3);L="youchat-"+Date.now();z=function(){_.F2(y.data().onClick||{});var x={continuationCommand:{token:y.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},B={inputComposerFormData:{clientMessageId:L,playerOffsetMs:d}};return new Promise(function(r,H){_.F2(x,{form:{formData:B},commandController:{onSuccess:function(a,
b){r(b)},
onServerError:function(a,b){H(b.error)}}})})};
c=_.bSC(y.pendingStateKey());c(!0);_.UsC("#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");t(!1);_.l7(l,2);return l.yield(z(),4);case 4:_.E6(l,3);break;case 2:K=_.YX(l),(U=(f=y).onError)==null||U.call(f,K);case 3:c(!1),_.B7(l)}})});
return _.O(_.v,{cond:w,then:function(){return _.O("div",{class:"ytwYouChatChipsDataChipWrapper"},_.O("button",{el:W,class:"ytwYouChatChipsDataChip","data-disabled":y.disabled,"on:click":I,tabindex:0},F))}})},"Yi");var l_d=_.eY(function(y){var W=y.data;var V=y.initiallyExpanded;var w=function(){var d;return(d=W().conversationResourceData)==null?void 0:d.learningGuideData};
y=_.N(_.Jl(function(){var d;return(d=V==null?void 0:V())!=null?d:!1}));
var t=y.next().value,F=y.next().value,I=function(){F(!0)},P=_.DZ(function(){var d,L;
return(L=(d=w())==null?void 0:d.sections)!=null?L:[]},void 0,"xl8NRc"),C=_.DZ(function(){return P().length>4},void 0,"oAM7of");
y=_.DZ(function(){var d;return!t()&&C()&&(d=w())!=null&&d.expandButton?P().slice(0,4):P()},void 0,"uzQ9rc");
return _.O("yt-conversation-resource-view-model",{class:_.kS("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.O(_.Q7,{data:y},{expandableMetadataViewModel:_.Oeu}),_.O(_.v,{cond:function(){return C()&&!t()},
then:function(){return _.O("div",{id:"showMoreButton"},_.O(_.Q7,{data:function(){var d;return(d=w())==null?void 0:d.expandButton}},{buttonViewModel:function(d){return _.O(_.lk,{data:d.data,
onClick:I})}}))}}))},"Zi");var xZu=_.eY(function(y){var W=function(){var b;return(b=y.data().text)==null?void 0:b.content},V=function(){var b,Fv;
return(b=y.data().webData)==null?void 0:(Fv=b.textResult)==null?void 0:Fv.content},w=_.hs().resolve(_.L5),t=_.D1(),F=function(){return y.data().chatResponseStyle},I=function(){return!y.data().transparentBackground},P=function(){return y.data().rightAlignThumbs},C=function(){return y.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||y.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},d=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:C()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:y.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},L=function(){var b;
return y.data().webData||((b=y.data().text)==null?void 0:b.content)||y.data().videoResultsData||y.data().conversationResourceViewModel||y.data().quiz},z=function(){return!!y.data().sectionHeader||L()},c=function(){var b;
return(b=y.data().videoResultsData)==null?void 0:b.videoShelf},K=function(){var b;
return _.h(((b=y.data().videoResultsData)==null?void 0:b.videoShelf)||{},E8j)},f=function(){var b;
return(b=y.data().webData)==null?void 0:b.sourcesShelf},U=function(){var b;
return _.h(((b=y.data().webData)==null?void 0:b.sourcesShelf)||{},E8j)},l=function(){return _.h(y.data().conversationResourceViewModel||{},I_3)},x=function(){return _.h(y.data().quiz||{},w$j)},B=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:y.data().thumbsDownViewModel&&y.data().thumbsUpViewModel},r=function(){return _.h(y.data().thumbsUpViewModel,_.aJ)},H=function(){return _.h(y.data().thumbsDownViewModel,_.aJ)};
_.HV(function(){requestAnimationFrame(function(){var b;(b=y.shouldAnimateIcon)!=null&&b.call(y)&&QF3(t.lottieEl)})});
var a={};return _.O("you-chat-item-view-model",{class:_.kS("ytwYouChatItemViewModelYouChatItemViewModel",(a.ytwYouChatItemViewModelColumnLayout=function(){return C()},a)),
"data-target-id":function(){return y.data().id||""}},_.O(_.v,{cond:function(){return y.data().removeIcon?!1:z()},
then:function(){var b={};return _.O("div",{"aria-hidden":"true"},_.O(_.fh,{className:_.kS("ytwYouChatItemViewModelIcon",(b.ytwYouChatItemViewModelRtl=w==="rtl",b.ytwYouChatItemViewModelHidden=function(){return!(y.data().hideIcon||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||F()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:z())},b)),
animationName:"YOUCHAT_ICON",data:d,animationRef:t}))}}),_.O(_.v,{cond:z,
then:function(){var b={};return _.O("div",{class:_.kS("ytwYouChatItemViewModelHost",(b.ytwYouChatItemViewModelHostNoPadding=function(){return!!y.data().sectionHeader&&!L()},b.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return F()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
b.ytwYouChatItemViewModelGradientBackground=I,b)),
role:"alert"},_.O(_.v,{cond:W,then:function(Fv){return _.O(_.LWJ,{text:Fv})}}),_.O(_.Q7,{data:function(){return y.data().sectionHeader}},{sectionHeaderViewModel:function(Fv){var Py={};
return _.O(_.U2,{data:Fv.data,className:_.kS("ytwYouChatItemViewModelSectionHeader",(Py.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!y.data().sectionHeader&&!L()},Py))})}}),_.O(_.v,{cond:V,
then:function(Fv){return _.O(_.LWJ,{text:Fv})}}),_.O(_.v,{cond:c,
then:function(){return _.O("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.O(_.WO,{data:K,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.O(_.v,{cond:f,
then:function(){return _.O("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.O(_.WO,{data:U,hasPeek:!0,disableArrows:!1}))}}),_.O(_.v,{cond:l,
then:function(){return _.O(l_d,{data:l})}}),_.O(_.v,{cond:x,
then:function(){return _.O(_.GOR,{data:x})}}),_.O(_.v,{cond:B,
then:function(){return _.O(uGj,{thumbsUp:r,thumbsDown:H,rightAlignThumbs:P})}}))}}),_.O(_.v,{cond:function(){return y.data().chipsData},
then:function(b){return _.O(DZv,{data:b,disabled:y.pending,onError:y.onError})}}))},"$i");
xZu.idomCompat={callbacks:{onError:!0,onSend:!0}};var kHW=_.eY(function(y){var W=function(){return y.data().choiceSelectedText},V=function(){return y.data().hasGradientBackground},w={};
return _.O("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.O(_.v,{cond:W,then:function(){return _.O("div",{class:"ytYouChatUserTurnChoiceSelected"},_.O(_.Lv,{text:W}))}}),_.O("div",{class:_.kS("ytYouChatUserTurnUserMessage",(w.ytYouChatUserTurnGradientContainer=V,w.ytYouChatUserTurnDefaultContainer=function(){return!V()},w))},function(){return y.data().text}))},"aj");var sO4=_.eY(function(y){var W=_.N((0,_.mbi)(y.data)).next().value;return _.O("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return y.data().targetId||""}},_.O(_.Q7,{data:function(){return y.data().header}},{chipBarViewModel:_.zu2}),_.O(_.Q7,{data:function(){return W().contents}},{accordionViewModel:_.ZEI,
alertBannerViewModel:_.iEs,chatLoadingViewModel:_.Vij,chatUserTurnViewModel:kHW,learningJourneyLoaderViewModel:_.avz,lockupViewModel:function(V){return _.O(_.US,{data:V.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:y.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(V){return _.O(xZu,{data:V.data,pending:!1})}}))},"bj");_.iF(_.eY(function(y){var W=_.N((0,_.mbi)(y.data)).next().value,V=_.I0("yt-section-list-renderer"),w=_.N(_.M1(void 0,void 0,"rQpPgc")),t=w.next().value,F=w.next().value,I=function(){var P;return _.h((P=y.data().sectionListLayoutConfiguration)==null?void 0:P.layoutConfiguration,Fpj)};
_.a8(function(){var P,C=(P=V.value)==null?void 0:P.clientWidth;if(I()){P=I();var d=P.responsiveSize;C=C<528?"CONTAINER_SIZE_NARROW":C<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var L=_.N(P.responsiveMap||[]);for(var z=L.next();!z.done;z=L.next())if(z=z.value,z.containerSize===C){L=z.containerType;break b}L=void 0}if(L&&d){b:{if(L==="CONTAINER_TYPE_VERTICAL_LIST")if(d==="RESPONSIVE_SIZE_STANDARD"){if(C!=="CONTAINER_SIZE_NARROW"){z="50%";break b}}else{z=C==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}z=void 0}P={responsiveSize:d,containerSize:C,containerType:L,force16By9ThumbnailAspectRatio:!P.enableContentSpecificAspectRatio,contentPreviewWidth:z,fullbleed:(L==="CONTAINER_TYPE_VERTICAL_LIST"||L==="CONTAINER_TYPE_GRID")&&C==="CONTAINER_SIZE_NARROW"&&!1}}else P=void 0}else P=void 0;F(P)});
return _.O("yt-section-list-renderer",{class:_.kS("ytSectionListRendererHost",y.className),el:V,"data-target-id":function(){return y.data().targetId||""}},_.O(_.Q7,{data:function(){return W().contents}},{itemSectionRenderer:function(P){return _.O(sO4,{data:P.data,
containerLayoutConfig:t})}}))},"cj"),"yt-section-list-renderer",{props:{data:_.vB,
className:_.p5}});var AuC;var Yd3;var BnE=function(){return _.u.apply(this,arguments)||this};
_.p(BnE,_.u);_.J([_.q(),_.R("design:type",Object)],BnE.prototype,"data",void 0);_.J([_.Zp({is:"yt-alert-renderer",disableElementRegistration:!0})],BnE);
_.Y(BnE,"yt-alert-renderer",function(){if(Yd3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;AuC===void 0&&(AuC=document.createElement("template"));var w=AuC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Yd3=y}y=Yd3;return y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.hpC=function(y,W){var V,w;W=W===void 0?{}:W;var t,F,I,P,C,d,L,z,c,K,f,U;return _.g(function(l){switch(l.nextAddress){case 1:t=W;F=t.shouldWrap===void 0?!0:t.shouldWrap;I=t.skipTransitionTimeoutMs===void 0?300:t.skipTransitionTimeoutMs;P=t.beforeTransition;C=t.afterTransition;if(!F||!document.startViewTransition||document.visibilityState==="hidden")return l.return(y());V=window.innerWidth;w=window.innerHeight;d=!1;(L=P)==null||L();_.l7(l,2);z=document.startViewTransition(y);c=setTimeout(function(){z.skipTransition();
d=!0},I);
return l.yield(z.ready,4);case 4:return clearTimeout(c),l.yield(z.finished,5);case 5:clearTimeout(c);(K=C)==null||K();_.E6(l,0);break;case 2:f=_.YX(l),(U=C)==null||U(),f&&!d&&document.visibilityState!=="hidden"&&V===window.innerWidth&&w===window.innerHeight&&_.ap(f),_.B7(l)}})};
_.Wn=function(){for(var y=Array(36),W=0,V,w=0;w<36;w++)w==8||w==13||w==18||w==23?y[w]="-":w==14?y[w]="4":(W<=2&&(W=33554432+Math.random()*16777216|0),V=W&15,W>>=4,y[w]=_.UHi[w==19?V&3|8:V]);return y.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ouE=_.CF(['<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>']),
K1P=_.L_r(ouE);K1P.setAttribute("style","display: none;");document.head.appendChild(K1P.content);_.Vv=_.wUb(function(y){var W=_.xu("DIV");y&&(W.className=y);W.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";y=_.xu("DIV");_.LCE(y,"200px","200px");W.appendChild(y);document.body.appendChild(W);y=W.offsetWidth-W.clientWidth;_.ku(W);return y});var pMt;var iaW;var wB=function(){var y=_.u.apply(this,arguments)||this;y.icon=null;return y};
_.p(wB,_.u);wB.prototype.dismiss=function(){_.h1(this.hostElement,"yt-live-chat-error-message-dismiss")};
wB.prototype.computeIcon=function(y){return y&&y.iconType?"yt-icons:"+y.iconType.toLowerCase():"yt-icons:close"};
_.J([_.q(),_.R("design:type",Object)],wB.prototype,"data",void 0);_.J([_.q({computed:"computeIcon(data.icon)"}),_.R("design:type",Object)],wB.prototype,"icon",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],wB);
_.Y(wB,"yt-live-chat-error-message-renderer",function(){if(iaW===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;pMt===void 0&&(pMt=document.createElement("template"));var w=pMt;V.call(W,w.content.cloneNode(!0),y.content.firstChild);iaW=y}y=iaW;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var njq,H1v,Xjt,ahE,QIC,Wyu,VrC,wbC,To,trv,Fyj,mQ,Evv,Nsj,Iy3,gv3,PA4,CAj,OC4,vvm,dSe,Lym,zHm,cJd,eHj,hHC,ove,KyW,pb4,iCW,fyP,Me,Tse,mSu,Mru,uE3,SLu,DSu,lyE,xSP,ksu,qL3,USj,AJm,YLu,Bse,JJq,RHm,smt,$Sv;njq=function(y,W){return _.UB(y.entities,"timedMarkersListSyncEntity",W)};
H1v=function(y,W){return _.UB(y.entities,"liveReactionsDataEntity",W)};
Xjt=function(y,W){y=_.UB(y.entities,"booleanEntity",W);return!(!y||!y.value)};
ahE=function(y,W){var V=_.Xn();V&&y&&_.Fr(V,_.nD(y),W)};
_.Go4=function(y){return y.watch.isWatchActive};
_.rij=function(y){return _.W5(y)||_.V7(y)||_.QTv(y)};
_.b1j=function(y){return!_.rij(y)};
_.f1=function(y){return y.watch.watchScrollTop};
QIC=function(y){return y.watch.isLiveChatCollapsed};
_.Z1u=function(){_.e("web_watch_log_theater_mode")&&_.oMv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.yJC=function(y,W,V){if(!y.includes("START_TIME_PLACEHOLDER")||!y.includes("END_TIME_PLACEHOLDER"))return y;var w=new Date(0),t=new Date(0);w.setUTCMilliseconds(W);t.setUTCMilliseconds(V);return y.replace("START_TIME_PLACEHOLDER",_.No(w,7)).replace("END_TIME_PLACEHOLDER",_.No(t,7))};
Wyu=function(y,W){return _.UB(y.entities,"booleanEntity",W)};
VrC=function(){return function(y){_.dc(_.B5("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:y}))}};
wbC=function(y){switch(y){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}};
To=function(y,W,V){var w=_.tl(V);y&&W&&w&&y.getPlayerPromise().then(function(t){_.puj(w)&&_.Xk();(new _.HG(t)).executeCommand(w,W);_.e("continue_playback_on_desktop_companion_click")||t.pauseVideo()})};
trv=function(y){var W=_.Kn(),V;if(V=_.ts("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;V=(w=V())==null?void 0:w.layoutId}else V=null;To(W,V,y)};
Fyj=function(y){var W=_.Kn(),V;if(V=_.ts("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;V=(w=V())==null?void 0:w.layoutId}else V=null;To(W,V,y)};
mQ=function(y,W){var V=y<0?"-":"";y=Math.abs(y);var w=Math.floor(y/3600),t=Math.floor(y)%3600,F=Math.floor(t/60);t=Math.floor(t)%60;var I="";(W===void 0?0:W)&&(I="."+Math.round((y-Math.floor(y))*10));return w>0?V+w+":"+(F<10?"0"+F:""+F)+":"+(t<10?"0"+t:""+t)+I:V+F+":"+(t<10?"0"+t:""+t)+I};
Evv=function(y){var W=y.match(/[^0-9:\.]/g);if(W&&W.length>0)return null;y=y.split(":");if(y.length===0||y.length>3)return null;W=1;for(var V=0;y.length>0;){var w=y.pop();if(w===void 0)break;var t=Number(w);if(w===""||isNaN(t))return null;V+=t*W;W*=60}return V};
Nsj=function(y,W,V,w){y=Math.max(V,y);W=Math.min(W,w-V);y+W>w?(V=w,y=V-W):V=y+W;return{start:y,end:V}};
Iy3=function(y,W,V,w,t,F){y<V?y=V:y+t>w&&(y=w-t);W>w&&(W=w);W=Math.min(y+F,Math.max(y+t,W));return{start:y,end:W}};
gv3=function(y,W,V,w,t,F){W>w?W=w:W-t<V&&(W=V+t);y<V&&(y=V);y=Math.min(W-t,Math.max(W-F,y));return{start:y,end:W}};
PA4=function(y){return _.e("web_transcript_cue_id_killswitch")?String(y):"ytd-transcript-renderer_"+y};
CAj=function(y){return _.e("web_transcript_cue_id_killswitch")?!0:y.startsWith("ytd-transcript-renderer")};
OC4=function(y){var W=_.Kn(),V;if(V=_.ts("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;V=(w=V())==null?void 0:w.layoutId}else V=null;To(W,V,y)};
vvm=function(y){y.style.height="auto";y.style.height=Math.min(y.scrollHeight||20,80)+"px"};
dSe=function(y,W,V){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:W,hasGradientBackground:V}}],insertByPositionInSection:{sectionTargetId:y,position:"INSERTION_POSITION_LAST"}}}]}}}};
Lym=function(y){var W=_.Kn(),V;V=(V=_.ts("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;To(W,V,y)};
zHm=function(y){var W=_.Kn(),V;V=(V=_.ts("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;To(W,V,y)};
cJd=function(y,W){W=W===void 0?!1:W;if(y.simpleText)y=[{text:y.simpleText}];else{var V;y=((V=y.runs)!=null?V:[]).map(function(w){return Object.assign({},w)})}if(W)for(W=_.N(y),V=W.next();!V.done;V=W.next())V.value.bold=!0;
return y};
eHj=function(y){var W=y.startEndTimeTemplate,V=y.startTimeUtcMillis;y=y.endTimeUtcMillis;if(W&&V&&y)return _.CO(_.yJC(_.OT(W),Number(V),Number(y)))};
hHC=function(y,W){var V,w,t=y==null?void 0:(V=y.viewCount)==null?void 0:(w=V.videoViewCountRenderer)==null?void 0:w.shortViewCount;if(!W&&t)return t;var F,I;return y==null?void 0:(F=y.viewCount)==null?void 0:(I=F.videoViewCountRenderer)==null?void 0:I.viewCount};
ove=function(y,W){var V=y==null?void 0:y.relativeDateText;return!W&&V?[V,!0]:[y==null?void 0:y.dateText,!1]};
KyW=function(y,W,V,w,t){w=w===void 0?!0:w;t=t===void 0?"":t;var F=hHC(y,W),I=_.N(ove(y,W)),P=I.next().value;I=I.next().value;W=W?y==null?void 0:y.sponsorsOnlyFirstTimeLongText:y==null?void 0:y.sponsorsOnlyFirstTimeShortText;var C=[];V&&F&&C.push(F);!V&&I||!P||C.push(P);y=[].concat(_.GC(C),[W,y==null?void 0:y.stationName,y==null?void 0:y.rating,y?eHj(y):void 0,y==null?void 0:y.upNextProgramText,y==null?void 0:y.superTitleLink]).filter(function(d){return!!d});
V={runs:[]};for(F=0;F<y.length;F++)V.runs.push.apply(V.runs,_.GC(cJd(y[F],w))),F<y.length-1&&V.runs.push({text:" "+t+" ",bold:w});return V};
pb4=function(y){if(y)return{runs:[{text:y,bold:!0}]}};
iCW=function(y){var W,V,w,t;if(y=y==null?void 0:(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.results)==null?void 0:(t=w.results)==null?void 0:t.contents){var F,I;return(I=(F=y.find(function(P){return!!P.videoPrimaryInfoRenderer}))==null?void 0:F.videoPrimaryInfoRenderer)==null?void 0:I.updatedMetadataEndpoint}};
fyP=function(y,W){var V;return(V=y.sourceConfigs)==null?void 0:V.find(function(w){return w.videoId===W})};
Me=function(y){return y==="End of video"||y==="End of playlist"};
Tse=function(y){var W,V,w,t;return(W=y.getWatchNextResponse())==null?void 0:(V=W.contents)==null?void 0:(w=V.twoColumnWatchNextResults)==null?void 0:(t=w.playlist)==null?void 0:t.playlist};
mSu=function(y){var W,V,w,t,F,I;return(W=Tse(y))==null?void 0:(V=W.playlistButtons)==null?void 0:(w=V.menuRenderer)==null?void 0:(t=w.topLevelButtons)==null?void 0:(F=t[0])==null?void 0:(I=F.playlistLoopButtonRenderer)==null?void 0:I.playlistLoopStateEntityKey};
Mru=function(y){var W=_.hs().resolve(_.wd),V;return(W=(V=_.h(W.getAutoplayEndpoint(),_.Iw))==null?void 0:V.playlistId)&&W===y};
uE3=function(y,W,V,w,t){function F(){_.HU.cancelJob(qe);var I=qL3(W,V/y.getPlaybackRate()),P=I.hours,C=I.minutes;I=(I.seconds*1E3||6E4)/y.getPlaybackRate();y.setVideoTimeLeft(USj(P,C));w&&y.getPlayerState()!==0&&y.setSleepTimerTimeLeft(USj(P,C,!0));(P>0||C>0)&&!t&&(qe=_.jf(_.HU,F,I))}
_.HU.cancelJob(qe);qe=_.jf(_.HU,F)};
SLu=function(y,W,V){function w(){_.HU.cancelJob(Uk);var t=qL3(W,V),F=t.hours;t=t.minutes;var I=6E4/y.getPlaybackRate();if(F>0||t>0)y.setSleepTimerTimeLeft(USj(F,t,!0)),Uk=_.jf(_.HU,w,I)}
_.HU.cancelJob(Uk);Uk=_.jf(_.HU,w)};
DSu=function(y,W){var V=y.getVolume()/(W/500),w=function(t){_.HU.cancelJob(uM);var F=Math.floor(t-V);y.setVolume(F,!1);F>0&&(uM=_.jf(_.HU,function(){w(F)},500))};
_.HU.cancelJob(uM);uM=_.jf(_.HU,function(){w(y.getVolume())})};
lyE=function(y,W){_.HU.cancelJob(uM);W&&y.syncVolume()};
xSP=function(){var y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.u5("SLEEP_TIMER_DISRUPTED")}}}}};_.hs().resolve(_.oA).resolveCommand(y)};
ksu=function(y){return(y.getDuration()-y.getProgressState().current)*1E3};
qL3=function(y,W){y=y+W-(0,_.cU)();if(y<=0)return{hours:0,minutes:0,seconds:0};var V=new smt(0,0,0,0,0,0,y);y=V.getHours();W=V.getMinutes();V=V.getSeconds();V!==0&&W++;W!==0&&W%60===0&&(y++,W=0);return{hours:y,minutes:W,seconds:V}};
USj=function(y,W,V){return y>0&&W>0?V?_.u5("TIME_LEFT_HOURS_MINUTES",{hours:y.toString(),minutes:W.toString()}):_.u5("TIME_HOURS_MINUTES",{hours:y.toString(),minutes:W.toString()}):y>0?V?_.SM("TIME_LEFT_HOURS",y):_.SM("TIME_HOURS",y):V?_.u5("TIME_LEFT_MINUTES",{minutes:W.toString()}):_.u5("TIME_MINUTES",{minutes:W.toString()})};
AJm=function(y,W){if(y.timelyActions)return y.timelyActions.find(function(V){var w;return((w=_.h(V,SO))==null?void 0:w.cueRangeId)===W})};
YLu=function(y){var W=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.MY(y);y.keyMap_.forEach(function(V,w){_.j4(W,w)||this.remove(w)},y)};
Bse=function(y,W){y.reloadContinuationItemsCommandMatcher=W};
_.Dh=function(y,W){y.insertBefore(W,y.childNodes[0]||null)};
JJq=function(y){if(y>=48&&y<=57||y>=96&&y<=106||y>=65&&y<=90||_.qW&&y==0)return!0;switch(y){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 _.MW;default:return!1}};
RHm=function(y){if(y.altKey&&!y.ctrlKey||y.metaKey||y.keyCode>=112&&y.keyCode<=123)return!1;if(JJq(y.keyCode))return!0;switch(y.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!_.MW;default:return y.keyCode<166||y.keyCode>183}};
smt=function(y,W,V,w,t,F,I){this.date=typeof y==="number"?new Date(y,W||0,V||1,w||0,t||0,F||0,I||0):new Date(y&&y.getTime?y.getTime():_.KF())};
_.pF(smt,_.R4);_.E=smt.prototype;_.E.getHours=function(){return this.date.getHours()};
_.E.getMinutes=function(){return this.date.getMinutes()};
_.E.getSeconds=function(){return this.date.getSeconds()};
_.E.getMilliseconds=function(){return this.date.getMilliseconds()};
_.E.getUTCDay=function(){return this.date.getUTCDay()};
_.E.getUTCHours=function(){return this.date.getUTCHours()};
_.E.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.E.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.E.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.E.setHours=function(y){this.date.setHours(y)};
_.E.setMinutes=function(y){this.date.setMinutes(y)};
_.E.setSeconds=function(y){this.date.setSeconds(y)};
_.E.setMilliseconds=function(y){this.date.setMilliseconds(y)};
_.E.setUTCHours=function(y){this.date.setUTCHours(y)};
_.E.setUTCMinutes=function(y){this.date.setUTCMinutes(y)};
_.E.setUTCSeconds=function(y){this.date.setUTCSeconds(y)};
_.E.setUTCMilliseconds=function(y){this.date.setUTCMilliseconds(y)};
_.E.add=function(y){_.R4.prototype.add.call(this,y);y.hours&&this.setUTCHours(this.date.getUTCHours()+y.hours);y.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+y.minutes);y.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+y.seconds)};
_.E.JSC$11204_toIsoString=function(y){var W=_.R4.prototype.JSC$11204_toIsoString.call(this,y);return y?W+"T"+_.pl(this.getHours(),2)+":"+_.pl(this.getMinutes(),2)+":"+_.pl(this.getSeconds(),2):W+"T"+_.pl(this.getHours(),2)+_.pl(this.getMinutes(),2)+_.pl(this.getSeconds(),2)};
_.E.equals=function(y){return this.getTime()==y.getTime()};
_.E.toString=function(){return this.JSC$11204_toIsoString()};
_.E.clone=function(){var y=new smt(this.date);y.firstDayOfWeek_=this.firstDayOfWeek_;y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return y};
_.jmj=function(y){return _.ig({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:y}})};
$Sv=new _.zf("imageTileRenderer");var nvE=new _.zf("adGridCardCollectionViewModel");var HCE=new _.zf("carouselTitleViewModel");var Xbj=new _.zf("ctaCarouselItemViewModel");var ayd=new _.zf("textFieldViewModel");_.GsP=new _.zf("engagementPanelHeaderShowNavigationButtonCommand");var rJj=new _.zf("hideEngagementPanelScrimAction");var bCu=new _.zf("setActivePanelItemAction");var Qm4=new _.zf("showEngagementPanelScrimAction");var ZC3=new _.zf("updateEngagementPanelAction");var yMC=new _.zf("updateSearchInVideoResultsAction");var W0q=new _.zf("transcriptCueGroupRenderer");var V7C=new _.zf("transcriptCueRenderer");var wLP=new _.zf("transcriptFooterRenderer");var t7C=new _.zf("engagementPanelAdSubtitleRenderer");var F04=new _.zf("videoDescriptionFantasySectionViewModel");var Eid=new _.zf("deleteClipEngagementPanelCommand");var NYE=new _.zf("loopCommand");var IJP=new _.zf("changeCreatorEndscreenVisibilityCommand");var gie=new _.zf("liveChatCallForQuestionsRenderer");var PSE=new _.zf("updateTimedMarkersSyncObserverCommand");var SO=new _.zf("timelyActionViewModel");var CSu=new _.zf("timelyActionsOverlayViewModel");var Oyd=new _.zf("repeatChapterCommand");var viW=new _.zf("watchPlayerOverflowMenuCommand");var d9e=new _.zf("compositeVideoOverlayRenderer");var L0m=new _.zf("sortFilterSubMenuRenderer");var zZu=new _.zf("switchListItemViewModel");var cMq=new _.zf("inputComposerViewModel");var eZe=new _.zf("transcriptEditSegmentCommand");var hZW=new _.zf("transcriptUpdateSegmentTextCommand");var oit=new _.zf("transcriptSearchBoxRenderer");var K0W=new _.zf("transcriptSegmentListRenderer");var pLu=new _.zf("transcriptSegmentRenderer");_.iyu=new _.zf("updateDateTextAction");var fJP=new _.zf("updateTitleAction");var TYm=new _.zf("updateViewershipAction");var m9t=new _.zf("carouselLockupRenderer");var lM=new _.zf("expandableVideoDescriptionBodyRenderer");var M7e=new _.zf("videoDescriptionHeaderRenderer");var qsP=new _.zf("videoDescriptionYouchatSectionViewModel");_.xj=_.pB("kevlar_watch_page_horizontal_margin",24);_.U9C=_.pB("kevlar_watch_page_columns_top_padding",24);_.uxv=426+_.xj*2;_.kj=_.pB("kevlar_watch_two_column_width_threshold",1E3);_.Ssd=_.xj*2;_.D93=_.pB("kevlar_watch_secondary_width",402);_.lJE=_.pB("kevlar_watch_max_player_width",1280);_.x9u=_.pB("kevlar_watch_flexy_metadata_height",136);_.kM4=_.Ssd+310+_.xj;_.s$E=_.Ssd+360+_.xj;var AMt={PAUSE_CHAT:18};var Ys4;var BYu;var sk=function(){return _.u.apply(this,arguments)||this};
_.p(sk,_.u);sk.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
sk.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var y=_.h(this.data.button,_.H5);y&&(y.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.CM.Object.defineProperties(sk,{template:{configurable:!0,enumerable:!0,get:function(){if(BYu===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Ys4===void 0&&(Ys4=document.createElement("template"));var w=Ys4;V.call(W,w.content.cloneNode(!0),y.content.firstChild);BYu=y}y=BYu;return y}}});
_.J([_.m(_.tZ),_.R("design:type",Object)],sk.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({selectorArgs:["data.enabledEntityKey"],selector:Xjt,observer:"onEnabledChange"}),_.R("design:type",Boolean)],sk.prototype,"enabled",void 0);_.J([_.q(),_.R("design:type",Object)],sk.prototype,"data",void 0);_.J([_.Zp({is:"yt-disableable-button-view-model",noInjection:!0})],sk);var JME;var RZj;var j$t=["transVert01","transVert02","transVert03"],$9u="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Ai=function(){var y=_.u.apply(this,arguments)||this;y.emojiManager=_.FX;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};y.reactionBuckets=[];y.noEmojiIdentifier="NO_EMOJI";return y};
_.p(Ai,_.u);_.E=Ai.prototype;_.E.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.E.desktopFountainEmojiSizePxChanged=function(){_.qg(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.E.createUserReactionAnimation=function(y){this.createEmojiAnimation(y,!0)};
_.E.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var y;((y=this.data)==null?0:y.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.B5("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.GC(this.emojiContainer.children)).forEach(function(W){W.remove()})};
_.E.detached=function(){this.cleanupFountain()};
_.E.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var y;this.reactionBuckets=_.Gc.unsafeClone((y=this.emojiFountainData)==null?void 0:y.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.E.processEmojiBucket=function(y){var W=this;if(this.reactionBuckets&&!(y>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var V=this.reactionBuckets[y];this.generateEmojiAnimations(V);if(y<this.reactionBuckets.length-1){var w;if(V==null?0:(w=V.duration)==null?0:w.seconds)this.emojiBucketTimerId=setTimeout(function(){W.processEmojiBucket(y+1)},Number(V.duration.seconds)*1E3)}}};
_.E.generateEmojiAnimations=function(y){var W=this,V=this.getRandomEmojiIdFromBucketWithOverride(y);if(V&&V!==this.noEmojiIdentifier){var w=0;y.targetEps?(w=this.linearInterpolateBounded(1,20,100,12,y.emojiSizeIndex||0),this.createEmojiAnimation(V,!1,y.emojiAnimationMs,w),w=this.getEmojiDelayMsFromTargetEps(y.targetEps)):(this.createEmojiAnimation(V),w=this.getEmojiDelayMsFromDistribution(y.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){W.generateEmojiAnimations(y)},w)}};
_.E.getRandomEmojiIdFromBucketWithOverride=function(y){if(!(y&&y.reactionsData&&y.reactionsData.length&&y.totalReactions))return this.noEmojiIdentifier;for(var W=y.totalReactions,V=1,w=_.N(y.reactionsData),t=w.next();!t.done;t=w.next())t=t.value,(t.reactionWeightOverride||t.reactionWeightOverride===0)&&t.reactionCount&&(W-=t.reactionCount,V-=t.reactionWeightOverride);w=!0;V<0&&(w=!1,W=y.totalReactions,V=1);if(w&&V>0&&W===0)if(V===1){t=0;for(var F=_.N(y.reactionsData),I=F.next();!I.done;I=F.next())I=
I.value,I.reactionCount&&I.reactionCount>0&&t++;t=1/t;F=_.N(y.reactionsData);for(I=F.next();!I.done;I=F.next())I.value.reactionWeightOverride=t}else for(t=1/(1-V),F=_.N(y.reactionsData),I=F.next();!I.done;I=F.next())I=I.value,I.reactionWeightOverride&&(I.reactionWeightOverride*=t);t=Math.random();F=0;I=_.N(y.reactionsData);for(var P=I.next();!P.done;P=I.next())if(P=P.value,P.reactionCount&&(F=(P.reactionWeightOverride||P.reactionWeightOverride===0)&&w?F+P.reactionWeightOverride:F+V*P.reactionCount/
W,F>t&&(P.reactionCount--,y.totalReactions--,P=this.reactionItemToEmojiString(P),P!==this.noEmojiIdentifier)))return P;return this.noEmojiIdentifier};
_.E.reactionItemToEmojiString=function(y){if(y.unicodeEmojiId)return y.unicodeEmojiId;if(y.emoteId)return y.emoteId;if(y.videoReactionType)switch(y.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.E.createEmojiAnimation=function(y,W,V,w){W=W===void 0?!1:W;this.lastEmojiRequestedForTesting=y;var t=y.startsWith("yt-icons:"),F=_.we(this.emojiManager,y);if(F||t){var I=document.createElement("emoji");I.classList.add("yt-emoji-fountain-view-model");I.classList.add(j$t[Math.floor(Math.random()*j$t.length)]);var P=document.createElement("div");P.classList.add("yt-emoji-fountain-view-model");P.classList.add("horizontal-container");P.classList.add($9u[Math.floor(Math.random()*$9u.length)]);W?(V=document.createElement("div"),
V.classList.add("user-reaction-bubble"),V.classList.add("yt-emoji-fountain-view-model"),P.appendChild(V)):(V&&(I.style.animationDuration=V+"ms",P.style.animationDuration=V+"ms"),w&&(I.style.width=w+"px",I.style.height=w+"px"));t?(t=document.createElement("yt-icon"),t.polymerController.icon=y,w&&(t.style.width=w+"px",t.style.height=w+"px"),y=t):y=this.emojiManager.createEmoji(F,!1);y.classList.add("yt-emoji-fountain-view-model");P.appendChild(y);I.appendChild(P);this.emojiContainer.appendChild(I);
I.addEventListener("animationend",function(){I.remove()});
var C,d;if((C=this.data)==null?0:(d=C.loggingDirectives)==null?0:d.trackingParams)W=W?_.ad(183501):_.ad(183500),ahE(this.data.loggingDirectives.trackingParams,W),_.M_z(W);setTimeout(function(){I&&I.remove()},2E3)}};
_.E.getEmojiDelayMsFromDistribution=function(y){return Math.random()*(y||1)*1E3};
_.E.getEmojiDelayMsFromTargetEps=function(y){return Math.random()*2*(1/y)*1E3};
_.E.linearInterpolateBounded=function(y,W,V,w,t){t=Math.min(Math.max(t,y),V);return(W*(V-t)+w*(t-y))/(V-y)};
Ai.prototype.onEmojiFountainDataEntityUpdate=Ai.prototype.onEmojiFountainDataEntityUpdate;Ai.prototype.desktopFountainEmojiSizePxChanged=Ai.prototype.desktopFountainEmojiSizePxChanged;Ai.prototype.isActiveChanged=Ai.prototype.isActiveChanged;_.J([_.q(),_.R("design:type",_.Vf)],Ai.prototype,"emojiManager",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],Ai.prototype,"ytLiveChatReduxBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ai.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(y,W){return _.UB(y.entities,"emojiFountainDataEntity",W)}}),
_.R("design:type",Object)],Ai.prototype,"emojiFountainData",void 0);_.J([_.q(),_.R("design:type",Boolean)],Ai.prototype,"isActive",void 0);_.J([_.xA("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ai.prototype,"isActiveChanged",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ai.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",String)],Ai.prototype,"lastEmojiRequestedForTesting",void 0);
_.J([_.q({value:function(){return _.pB("desktop_fountain_emoji_size_px",20)}}),
_.R("design:type",Number)],Ai.prototype,"desktopFountainEmojiSizePx",void 0);_.J([_.xA("desktopFountainEmojiSizePx"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ai.prototype,"desktopFountainEmojiSizePxChanged",null);_.J([_.s$("#emoji-container"),_.R("design:type",HTMLElement)],Ai.prototype,"emojiContainer",void 0);
_.J([_.xA("emojiFountainData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ai.prototype,"onEmojiFountainDataEntityUpdate",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Ai);
_.Y(Ai,"yt-emoji-fountain-view-model",function(){if(RZj===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;JME===void 0&&(JME=document.createElement("template"));var w=JME;V.call(W,w.content.cloneNode(!0),y.content.firstChild);RZj=y}y=RZj;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var nie;var HyP;var Yj=function(){return _.u.apply(this,arguments)||this};
_.p(Yj,_.u);Yj.prototype.onChoiceChanged=function(){this.data&&_.qg(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Yj.prototype.onChoiceChanged=Yj.prototype.onChoiceChanged;_.J([_.q(),_.R("design:type",Object)],Yj.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yj.prototype,"onChoiceChanged",null);_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Yj);
_.Y(Yj,"yt-live-chat-banner-poll-choice",function(){if(HyP===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;nie===void 0&&(nie=document.createElement("template"));var w=nie;V.call(W,w.content.cloneNode(!0),y.content.firstChild);HyP=y}y=HyP;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var XLC;var aJ3;var Bj=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework_with_live");y.small=!1;return y};
_.p(Bj,_.u);Bj.prototype.computeIsSmall=function(){var y;return((y=this.buttonOverrides)==null?void 0:y.size)==="S"};
Bj.prototype.computeId=function(){return this.data&&this.data.targetId};
_.J([_.m(_.FV.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],Bj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.J([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",String)],Bj.prototype,"id",void 0);_.J([_.q(),_.R("design:type",Object)],Bj.prototype,"buttonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],Bj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Bj.prototype,"modern",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.R("design:type",Object)],Bj.prototype,"small",void 0);_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-button"})],Bj);
_.Y(Bj,"yt-live-chat-button",function(){if(aJ3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;XLC===void 0&&(XLC=document.createElement("template"));var w=XLC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);aJ3=y}y=aJ3;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var GMe;var rMq;var Ji=function(){var y=_.u.apply(this,arguments)||this;y.inCollapsedBanner=!1;y.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};y.questionButtonOverrides={style:"mono",type:"filled"};return y};
_.p(Ji,_.u);_.E=Ji.prototype;_.E.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]]"}}}}}};
_.E.onContextMenuButtonClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
_.E.onYtRendererstamperFinished=function(){this.menuButton=_.i6(this.hostElement).querySelector("#menu-button")};
_.E.dataChanged=function(){var y,W;if((W=_.h((y=this.data)==null?void 0:y.overflowMenuButton,_.wz))==null?0:W.command)this.data.contextMenuEndpoint=_.h(this.data.overflowMenuButton,_.wz).command};
_.E.onButtonClick=function(){var y,W=_.h((y=this.data)==null?void 0:y.askQuestionButton,_.wz);if(W){if(W.trackingParams&&(y=_.nD(W.trackingParams))){var V=_.Xn();V&&_.PE(V,y)}_.h1(this.hostElement,"innertube-command",W.command)}};
Ji.prototype.onYtRendererstamperFinished=Ji.prototype.onYtRendererstamperFinished;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],Ji.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],Ji.prototype,"ytLiveChatItemBehavior",void 0);_.J([_.q({observer:"dataChanged"}),_.R("design:type",Object)],Ji.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ji.prototype,"inCollapsedBanner",void 0);_.J([_.q(),_.R("design:type",Object)],Ji.prototype,"buttonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],Ji.prototype,"questionButtonOverrides",void 0);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ji.prototype,"onYtRendererstamperFinished",null);
_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ji);
_.Y(Ji,"yt-live-chat-call-for-questions-renderer",function(){if(rMq===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;GMe===void 0&&(GMe=document.createElement("template"));var w=GMe;V.call(W,w.content.cloneNode(!0),y.content.firstChild);rMq=y}y=rMq;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var byd={};byd.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 y=this;window.requestAnimationFrame(function(){y.restoreFocusNode_||(y.restoreFocusNode_=document.activeElement);var W=_.JOE(y.hostElement);W.length&&W[W.length-1].focus()})},
isAttachedChanged_:function(y,W){y?this.focusChild_():W&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(y){this.hidden||_.O$(y).indexOf(this.hostElement)!==-1||(y.stopPropagation(),this.focusChild_())}};var Q$E;var ZyC;var RI=function(){return _.u.apply(this,arguments)||this};
_.p(RI,_.u);RI.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
RI.prototype.onClick=function(y){y.target!==this.confirmButton&&y.target!==this.cancelButton&&(this.hidden=!0)};
_.J([_.s$("#confirm_button"),_.R("design:type",Object)],RI.prototype,"confirmButton",void 0);_.J([_.s$("#cancel_button"),_.R("design:type",Object)],RI.prototype,"cancelButton",void 0);_.J([_.q(),_.R("design:type",yvh)],RI.prototype,"data",void 0);_.J([_.q({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],RI.prototype,"hidden",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(byd.YtLiveChatDialogBehavior),_.R("design:type",Object)],RI.prototype,"ytLiveChatDialogBehavior",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],RI);
var yvh=_.Y(RI,"yt-live-chat-dialog-renderer",function(){if(ZyC===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Q$E===void 0&&(Q$E=document.createElement("template"));var w=Q$E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);ZyC=y}y=ZyC;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var WL3;var V45,wyM=function(){if(V45!==void 0)return V45;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;WL3===void 0&&(WL3=document.createElement("template"));var w=WL3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return V45=y};var t41;var FLh;var jO=function(){var y=_.u.apply(this,arguments)||this;y.tooltip=null;y.data=null;y.id="";y.active=!1;y.icon="";y.disabled=!1;y.showTooltip=!1;y.useToggledActiveState=!0;y.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return y};
_.p(jO,_.u);_.E=jO.prototype;
_.E.dataChanged=function(){var y;((y=this.data)==null?0:y.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,_.Mg)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var W;if((W=this.data)==null?0:W.disabled)this.disabled=!0};
_.E.computeId=function(y){return y};
_.E.computeIcon=function(y,W){if(!y)return"";if(this.useToggledActiveState)return"yt-icons:"+y.toLowerCase();var V,w;return W&&((V=this.data)==null?0:(w=V.toggledIcon)==null?0:w.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+y.toLowerCase()};
_.E.logPDGEntryPoint=function(){_.JCv(_.uN("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")};
_.E.immediatelyShowTooltip=function(){var y=_.i6(this.hostElement).querySelector("#tooltip");y.animationDelay=0;y.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};y.show()};
_.E.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.E.onClick=function(y){var W;((W=this.data)==null?0:W.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(),y.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.h1(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.E.computeShowTooltip=function(y,W){return!!(y&&y.tooltip&&W)};
_.E.maybeUpdateTooltipText=function(){var y=this,W;if((W=this.data)==null?0:W.tooltip){var V=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Mg)(y.tooltip).textContent=V},250)}};
_.E.handleLiveChatActions=function(y){var W=this;y.length&&(this.id!=="creator"&&this.id!=="product-picker"||y.forEach(function(V){(V=W.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",V))&&V.durationSec===V.fullDurationSec&&W.startBubble(W.colorFromDecimal(V.startBackgroundColor))}))};
_.E.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.E.startBubble=function(y){_.qg(this.hostElement,{"--yt-live-chat-monetization-button-glow":y});this.hostElement.setAttribute("bubble","")};
_.E.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.E.colorFromDecimal=function(y){typeof y==="string"&&(y=Number(y));return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
jO.prototype.onAnimationEnd=jO.prototype.onAnimationEnd;jO.prototype.disabledChanged=jO.prototype.disabledChanged;jO.prototype.dataChanged=jO.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],jO.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.FV.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],jO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jO.prototype,"data",void 0);_.J([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",Object)],jO.prototype,"id",void 0);_.J([_.q({notify:!0,reflectToAttribute:!0}),_.R("design:type",Object)],jO.prototype,"active",void 0);
_.J([_.q({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.R("design:type",Object)],jO.prototype,"icon",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jO.prototype,"disabled",void 0);_.J([_.q({computed:"computeShowTooltip(data, disabled)"}),_.R("design:type",Object)],jO.prototype,"showTooltip",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jO.prototype,"useToggledActiveState",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jO.prototype,"dataChanged",null);_.J([_.xA("disabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jO.prototype,"disabledChanged",null);_.J([_.l6("animationend"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],jO.prototype,"onAnimationEnd",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],jO);
_.Y(jO,"yt-live-chat-icon-toggle-button-renderer",function(){if(FLh===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;t41===void 0&&(t41=document.createElement("template"));var w=t41;V.call(W,w.content.cloneNode(!0),y.content.firstChild);FLh=y}y=FLh;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var EPG;var NuG;var n1=function(){return _.u.apply(this,arguments)||this};
_.p(n1,_.u);n1.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J([_.q(),_.R("design:type",Object)],n1.prototype,"data",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],n1);
_.Y(n1,"yt-live-chat-message-input-prompt-header-renderer",function(){if(NuG===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;EPG===void 0&&(EPG=document.createElement("template"));var w=EPG;V.call(W,w.content.cloneNode(!0),y.content.firstChild);NuG=y}y=NuG;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var It5;var gP_;var Pnf;var Cn5;var Odf;var vPG;var dau=function(){return _.u.apply(this,arguments)||this};
_.p(dau,_.u);_.J([_.q(),_.R("design:type",Object)],dau.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],dau);
_.Y(dau,"yt-live-chat-message-subtext-renderer",function(){if(vPG===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Odf===void 0&&(Odf=document.createElement("template"));var w=Odf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);vPG=y}y=vPG;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Hj=function(){var y=_.u.apply(this,arguments)||this;y.subtextOnBottom=!1;y.buttonOverrides={style:"mono",type:"tonal"};return y};
_.p(Hj,_.u);Hj.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hj.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Hj.prototype,"subtextOnBottom",void 0);_.J([_.q(),_.R("design:type",Object)],Hj.prototype,"buttonOverrides",void 0);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Hj);
_.Y(Hj,"yt-live-chat-message-renderer",function(){if(Cn5===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Pnf===void 0&&(Pnf=document.createElement("template"));var w=Pnf;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Cn5=y}y=Cn5;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var LLR;var zb3;var Xc=function(){var y=_.u.apply(this,arguments)||this;y.isRemovable=!1;y.hasPrefilledText=!1;y.isInputDirty=!1;y.overCharacterLimit=!1;y.underCharacterLimit=!1;y.showErrorMessage=!1;return y};
_.p(Xc,_.u);_.E=Xc.prototype;_.E.computeId=function(){return this.data.id};
_.E.computeInputData=function(){return this.data.inputData};
_.E.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.E.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.E.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.E.getLiveChatRichMessageInput=function(){return _.i6(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.E.clearInput=function(){_.i6(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.E.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.E.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.E.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.E.handleTextInputCharCountChanged=function(y){y=y.detail&&y.detail.characterCount;y!==void 0&&(this.characterCount=y,y!==0&&(this.isInputDirty=!0))};
_.E.onInputFocusOut=function(){this.isInputDirty=!0};
_.E.onClickCloseButton=function(){_.h1(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Xc.prototype.handleTextInputCharCountChanged=Xc.prototype.handleTextInputCharCountChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Xc.prototype,"data",void 0);_.J([_.q({computed:"computeId(data.id)"}),_.R("design:type",String)],Xc.prototype,"id",void 0);_.J([_.q({computed:"computeInputData(data.inputData)"}),_.R("design:type",Object)],Xc.prototype,"inputData",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.R("design:type",Object)],Xc.prototype,"isRemovable",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.R("design:type",Object)],Xc.prototype,"hasPrefilledText",void 0);_.J([_.q({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.R("design:type",Number)],Xc.prototype,"charactersRemaining",void 0);
_.J([_.q(),_.R("design:type",Number)],Xc.prototype,"characterCount",void 0);_.J([_.q(),_.R("design:type",Object)],Xc.prototype,"isInputDirty",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.R("design:type",Object)],Xc.prototype,"overCharacterLimit",void 0);_.J([_.q({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.R("design:type",Object)],Xc.prototype,"underCharacterLimit",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.R("design:type",Object)],Xc.prototype,"showErrorMessage",void 0);_.J([_.l6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xc.prototype,"handleTextInputCharCountChanged",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Xc);
_.Y(Xc,"yt-live-chat-poll-editor-input",function(){if(zb3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;LLR===void 0&&(LLR=document.createElement("template"));var w=LLR;V.call(W,w.content.cloneNode(!0),y.content.firstChild);zb3=y}y=zb3;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var cvM;var eb3;var hbG={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},aI=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_button_rework_with_live");y.closeButtonOverrides={iconPosition:"icon-only"};y.startButtonOverrides={style:"mono",type:"filled"};y.addOptionButtonOverrides={style:"mono",type:"text"};return y};
_.p(aI,_.u);_.E=aI.prototype;
_.E.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"}}}}};
_.E.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var y;_.h((y=this.data)==null?void 0:y.startButton,_.wz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.E.computeId=function(){return this.data&&this.data.id||""};
_.E.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.E.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.E.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.E.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.E.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var y=0;y<this.pollEditorInfoWithDefaults.minPollOptions;y++)this.addPollOptionData()};
_.E.getIsValidPoll=function(){var y=this;if(!this.pollEditorInfoWithDefaults)return!1;var W=this.pollEditorInfoWithDefaults,V=W.minPollOptionChars,w=W.maxPollOptionChars,t=W.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>W.maxPollQuestionChars)return!1;W=_.i6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(W).every(function(F,I){F=F.characterCount;!F&&t[I]&&(F=y.ytRendererBehavior.getSimpleString(t[I]).length);return F!==void 0&&F>=V&&F<=w})};
_.E.isValidPollChanged=function(){var y;_.h((y=this.data)==null?void 0:y.startButton,_.wz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.E.addPollOptionData=function(){var y=this.pollEditorInfoWithDefaults,W=y.maxPollOptionChars,V=y.optionPlaceholderText,w=y.customOptionPlaceholderText,t=y.pollOptionData;this.currentNumPollOptions>=y.maxPollOptions||(y={liveChatPollOptionInput:{inputData:{placeholder:w[this.currentNumPollOptions]||V,maxCharacterLimit:W},maxCharacterLimit:W,minCharacterLimit:y.minPollOptionChars,hasPrefilledText:!!w[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=y.minPollOptions}},t.charCountErrorText&&
(y.liveChatPollOptionInput.charCountErrorText=t.charCountErrorText),t.charsRemainingAltLabel&&(y.liveChatPollOptionInput.charsRemainingAltLabel=t.charsRemainingAltLabel),t.removeOptionAltText&&(y.liveChatPollOptionInput.removeOptionAltText=t.removeOptionAltText),this.push("pollOptionsData",y),t=Array.from(_.i6(_.i6(this.hostElement).querySelector("#poll-options")).children),t.forEach(function(F,I){F.polymerController.set("data.id",I)}),_.i6(t[t.length-1]).querySelector("#input").focus())};
_.E.getPollOptionInputValues=function(){var y=this,W=[],V=_.i6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),w=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(V).forEach(function(t,F){var I=null;t=t.getLiveChatRichMessageInput();var P;(t==null?0:(P=t.textSegments)==null?0:P.length)?I=_.NH(t):w[F]&&(I=y.formattedStringToLiveChatRichMessageInput(w[F]));W.push(I)});
return W};
_.E.requestCreateAndStartPoll=function(y){var W=this.getPollOptionInputValues();if(!W.some(function(w){return!w})){W={optionText:W};
var V=_.i6(_.i6(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.liveChatRichMessageInput&&(W.questionText=_.NH(V.liveChatRichMessageInput));_.i5(this.hostElement,[y,W])}};
_.E.selectedChanged=function(){if(this.selected){var y=_.i6(_.i6(this.hostElement).querySelector("#start-button")).firstElementChild;if(y){var W;(W=_.i6(y).querySelector("#button")||_.f6(y).querySelector("button"))==null||W.focus()}}};
_.E.handleTextInputChanged=function(y){var W;((W=y.target)==null?void 0:W.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=y.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.E.handleStartButtonAction=function(y){y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),(y=y.detail.args[1])&&this.requestCreateAndStartPoll(y))};
_.E.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.E.handleServiceRequestCompleted=function(y){this.createPollRequestInFlight=!1;(y=y.detail&&y.detail.data)&&y.success&&(_.h1(this.hostElement,"picker-cancelled"),_.ow(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.E.onCloseClick=function(){_.h1(this.hostElement,"picker-cancelled");_.ow(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.E.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.E.handlePollEditorInputClosed=function(y){var W=this.pollOptionsData.findIndex(function(V){return V.liveChatPollOptionInput.id===y.detail.id});
this.splice("pollOptionsData",W,1);this.isValidPoll=this.getIsValidPoll()};
_.E.onPickerCancelled=function(){this.reset()};
_.E.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var y=_.i6(_.i6(this.hostElement).querySelector("#poll-question")).firstChild;y&&y.setLiveChatRichMessageInput(null);if(y=_.i6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){y=_.N(Array.from(y));for(var W=y.next();!W.done;W=y.next())W.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.E.formattedStringToLiveChatRichMessageInput=function(y){return y.simpleText?{text_segments:[y.simpleText]}:{text_segments:y.runs}};
_.CM.Object.defineProperties(aI.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(hbG,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
aI.prototype.onPickerCancelled=aI.prototype.onPickerCancelled;aI.prototype.handlePollEditorInputClosed=aI.prototype.handlePollEditorInputClosed;aI.prototype.handleServiceRequestCompleted=aI.prototype.handleServiceRequestCompleted;aI.prototype.handleServiceRequestSent=aI.prototype.handleServiceRequestSent;aI.prototype.handleTextInputChanged=aI.prototype.handleTextInputChanged;aI.prototype.selectedChanged=aI.prototype.selectedChanged;aI.prototype.isValidPollChanged=aI.prototype.isValidPollChanged;
aI.prototype.shouldInitializePollChanged=aI.prototype.shouldInitializePollChanged;aI.prototype.dataChanged=aI.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aI.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"modern",void 0);
_.J([_.q(),_.R("design:type",Object)],aI.prototype,"closeButtonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],aI.prototype,"startButtonOverrides",void 0);_.J([_.q(),_.R("design:type",Object)],aI.prototype,"addOptionButtonOverrides",void 0);_.J([_.q({computed:"computeId(data.id)",reflectToAttribute:!0}),_.R("design:type",String)],aI.prototype,"id",void 0);_.J([_.q({value:function(){return[]}}),
_.R("design:type",Array)],aI.prototype,"pollOptionsData",void 0);_.J([_.M("pollEditorInfoWithDefaults"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"pollQuestionData",null);_.J([_.q({value:0}),_.R("design:type",Number)],aI.prototype,"pollQuestionCharacterCount",void 0);_.J([_.M("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"pollQuestionCharactersRemaining",null);
_.J([_.q({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.R("design:type",Boolean)],aI.prototype,"overQuestionCharacterLimit",void 0);_.J([_.M("data.pollEditorInfo"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"pollEditorInfoWithDefaults",null);_.J([_.q({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.R("design:type",Number)],aI.prototype,"currentNumPollOptions",void 0);
_.J([_.q({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.R("design:type",Boolean)],aI.prototype,"hasMaxNumPollOptions",void 0);_.J([_.M("pollEditorInfoWithDefaults","pollOptionsData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aI.prototype,"shouldInitializePoll",null);_.J([_.q(),_.R("design:type",Object)],aI.prototype,"isValidPoll",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],aI.prototype,"createPollRequestInFlight",void 0);_.J([_.q(),_.R("design:type",Object)],aI.prototype,"selected",void 0);_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.R("design:type",Boolean)],aI.prototype,"showQuestionErrorMessage",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"dataChanged",null);_.J([_.xA("shouldInitializePoll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"shouldInitializePollChanged",null);_.J([_.xA("isValidPoll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"isValidPollChanged",null);
_.J([_.xA("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"selectedChanged",null);_.J([_.l6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aI.prototype,"handleTextInputChanged",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"handleServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aI.prototype,"handleServiceRequestCompleted",null);
_.J([_.l6("yt-live-chat-poll-editor-input-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aI.prototype,"handlePollEditorInputClosed",null);_.J([_.l6("picker-cancelled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onPickerCancelled",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],aI);
_.Y(aI,"yt-live-chat-poll-editor-panel-renderer",function(){if(eb3===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;cvM===void 0&&(cvM=document.createElement("template"));var w=cvM;V.call(W,w.content.cloneNode(!0),y.content.firstChild);eb3=y}y=eb3;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var oPG;var KLZ;var Go=function(){return _.u.apply(this,arguments)||this};
_.p(Go,_.u);Go.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Go.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.CM.Object.defineProperties(Go.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var y,W;return(y=this.data)==null?void 0:(W=y.title)==null?void 0:W.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var y;return _.tl((y=this.data)==null?void 0:y.onTapCommand)}}});
_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],Go.prototype,"ytEndpointBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Go.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Go.prototype,"itemId",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Go.prototype,"hasPromotion",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Go.prototype,"innertubeCommand",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Go);
_.Y(Go,"yt-live-chat-product-picker-panel-item-view-model",function(){if(KLZ===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;oPG===void 0&&(oPG=document.createElement("template"));var w=oPG;V.call(W,w.content.cloneNode(!0),y.content.firstChild);KLZ=y}y=KLZ;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var pyu;var idu;var r2=function(){var y=_.u.apply(this,arguments)||this;y.id="product-picker";y.selected=!1;y.closeButtonId="close-button";y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return y};
_.p(r2,_.u);_.E=r2.prototype;_.E.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.E.observeSelected=function(){this.selected&&this.hostElement.focus();var y=_.i6(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");y.length&&y[0].focus()};
_.E.onCloseBuyFlow=function(){_.h1(this.hostElement,"picker-cancelled")};
_.E.onCloseClick=function(){_.h1(this.hostElement,"picker-cancelled");var y;((y=this.data)==null?0:y.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.h(this.data.closeButton,_.H5))};
_.E.onCloseEngageWithAudienceEditorPanels=function(){_.h1(this.hostElement,"picker-cancelled")};
r2.prototype.observeSelected=r2.prototype.observeSelected;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],r2.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],r2.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],r2.prototype,"id",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],r2.prototype,"selected",void 0);_.J([_.q(),_.R("design:type",Object)],r2.prototype,"closeButtonId",void 0);_.J([_.xA("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],r2.prototype,"observeSelected",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],r2);
_.Y(r2,"yt-live-chat-product-picker-panel-view-model",function(){if(idu===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;pyu===void 0&&(pyu=document.createElement("template"));var w=pyu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);idu=y}y=idu;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var ftZ;var Tuf;var bM=function(){var y=_.u.apply(this,arguments)||this;y.iconId="";y.icon="";y.disabled=!1;y.systemIcons=_.e("kevlar_system_icons");return y};
_.p(bM,_.u);_.E=bM.prototype;_.E.attached=function(){_.e("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.E.computeIconId=function(y){return y&&y.icon&&y.icon.iconType?y.icon.iconType.toLowerCase():""};
_.E.computeIcon=function(y){return y&&y.icon&&y.icon.iconType?(y=y.icon.iconType.toLowerCase(),(y.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+y):""};
_.E.computeDisabled=function(y){return!!y};
_.E.computeCommand=function(y,W){return W?void 0:y};
_.E.computeTooltip=function(y,W){return W&&y?y:""};
_.E.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.CM.Object.defineProperties(bM.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.e("live_chat_compute_product_button_aria_label"))return"";var y="",W,V,w;if((W=this.data)==null?0:(V=W.text)==null?0:(w=V.runs)==null?0:w.length)y=this.data.text.runs[0].text||"";else{var t,F;if((t=this.data)==null?0:(F=t.text)==null?0:F.simpleText)y=this.data.text.simpleText}var I,P,C;if((I=this.data)==null?0:(P=I.subtext)==null?0:(C=P.runs)==null?0:C.length)y&&(y+=". "),y+=this.data.subtext.runs[0].text||
"";else{var d,L;if((d=this.data)==null?0:(L=d.subtext)==null?0:L.simpleText)y&&(y+=". "),y+=this.data.subtext.simpleText}return y}}});
_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],bM.prototype,"ytEndpointBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bM.prototype,"data",void 0);_.J([_.q({computed:"computeIconId(data)",reflectToAttribute:!0}),_.R("design:type",Object)],bM.prototype,"iconId",void 0);
_.J([_.q({computed:"computeIcon(data)",reflectToAttribute:!0}),_.R("design:type",Object)],bM.prototype,"icon",void 0);_.J([_.q({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.R("design:type",Object)],bM.prototype,"disabled",void 0);_.J([_.q({computed:"computeCommand(data.command, disabled)"}),_.R("design:type",Object)],bM.prototype,"command",void 0);_.J([_.q({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.R("design:type",String)],bM.prototype,"tooltip",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bM.prototype,"systemIcons",void 0);_.J([_.M("data.text","data.subtext"),_.q(),_.R("design:type",String),_.R("design:paramtypes",[])],bM.prototype,"ariaLabel",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],bM);
_.Y(bM,"yt-live-chat-product-button-renderer",function(){if(Tuf===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;ftZ===void 0&&(ftZ=document.createElement("template"));var w=ftZ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Tuf=y}y=Tuf;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var mah;var M4h;var Qg=function(){var y=_.u.apply(this,arguments)||this;y.selected=!1;y.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 y};
_.p(Qg,_.u);_.E=Qg.prototype;_.E.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"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.E.computeId=function(y){return y.id||""};
_.E.onCloseClick=function(){_.h1(this.hostElement,"picker-cancelled")};
_.E.observeSelected=function(){this.selected&&this.hostElement.focus();var y=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");y.length&&y[0].focus()};
_.E.onCloseBuyFlow=function(){_.h1(this.hostElement,"picker-cancelled")};
_.E.onCloseEngageWithAudienceEditorPanels=function(){_.h1(this.hostElement,"picker-cancelled")};
Qg.prototype.observeSelected=Qg.prototype.observeSelected;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qg.prototype,"data",void 0);
_.J([_.q({computed:"computeId(data)",reflectToAttribute:!0}),_.R("design:type",String)],Qg.prototype,"id",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qg.prototype,"selected",void 0);_.J([_.xA("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qg.prototype,"observeSelected",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Qg);
_.Y(Qg,"yt-live-chat-product-picker-renderer",function(){if(M4h===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;mah===void 0&&(mah=document.createElement("template"));var w=mah;V.call(W,w.content.cloneNode(!0),y.content.firstChild);M4h=y}y=M4h;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var qzM;var UaM;var uv1;var Sz1;var Zh=function(){return _.u.apply(this,arguments)||this};
_.p(Zh,_.u);Zh.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()};
Zh.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Zh.prototype.created=function(){this.ids={background:_.Wn(),maskOne:_.Wn(),maskTwo:_.Wn(),gradient:_.Wn(),largeBackground:_.Wn(),largeGradientOne:_.Wn(),largeGradientTwo:_.Wn(),largeGradientPath:_.Wn()}};
Zh.prototype.maybeLoadAnimationBackground=Zh.prototype.maybeLoadAnimationBackground;_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zh.prototype,"useLargeBackground",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Zh.prototype,"useAnimationBackground",void 0);_.J([_.q({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.R("design:type",Boolean)],Zh.prototype,"useRegularBackground",void 0);
_.J([_.q(),_.R("design:type",Object)],Zh.prototype,"ids",void 0);_.J([_.q(),_.R("design:type",Object)],Zh.prototype,"lottieAnimation",void 0);_.J([_.s$("#animation-background"),_.R("design:type",HTMLDivElement)],Zh.prototype,"animationBackground",void 0);_.J([_.xA("useAnimationBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zh.prototype,"maybeLoadAnimationBackground",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Zh);
_.Y(Zh,"yt-live-interactivity-component-background",function(){if(Sz1===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;uv1===void 0&&(uv1=document.createElement("template"));var w=uv1;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Sz1=y}y=Sz1;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var y5=function(){var y=_.u.apply(this,arguments)||this;y.characterCount=0;y.showInputErrorMessage=!1;y.startQnaRequestInFlight=!1;y.modern=_.e("web_button_rework_with_live");y.buttonOverrides={style:"mono",type:"filled"};y.closeButtonOverrides={iconPosition:"icon-only"};y.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return y};
_.p(y5,_.u);_.E=y5.prototype;
_.E.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]]"}}}}}};
_.E.onCharacterCountChanged=function(y){var W,V,w,t,F=(V=_.h(this==null?void 0:(W=this.data)==null?void 0:W.creatorCallForQuestions,gie))==null?void 0:(w=V.inputField)==null?void 0:(t=w.liveChatTextInputFieldRenderer)==null?void 0:t.maxCharacterLimit,I,P;F!=null&&(y==null?void 0:(I=y.detail)==null?void 0:I.characterCount)!=null&&_.h(this==null?void 0:(P=this.data)==null?void 0:P.startButton,_.wz)&&(W=y.detail.characterCount>F,this.set("data.startButton.buttonRenderer.isDisabled",y.detail.characterCount===
0||W),this.showInputErrorMessage=W)};
_.E.onCloseClick=function(){_.h1(this.hostElement,"picker-cancelled");_.ow(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.E.onPickerCancelled=function(){var y=_.i6(this.hostElement).querySelector("#qna-creator-text-input-field");y&&y.setLiveChatRichMessageInput(null)};
_.E.handleOpenQnaStartPanel=function(){var y=_.i6(this.hostElement).querySelector("#qna-creator-text-input-field");y&&y.focus()};
_.E.handleStartButtonAction=function(y){var W=this;if(y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),y=y.detail.args[1])){var V=_.i6(this.hostElement).querySelector("#qna-creator-text-input-field"),w;(V==null?0:(w=V.liveChatRichMessageInput)==null?0:w.textSegments)&&V.liveChatRichMessageInput.textSegments.length!==0&&(w={rich_message:_.NH(V.liveChatRichMessageInput)},_.i5(this.hostElement,[y,w]).then(function(){_.h1(W.hostElement,"picker-cancelled")}))}};
_.E.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.E.handleServiceRequestCompleted=function(y){var W;y=y==null?void 0:(W=y.detail)==null?void 0:W.data;(y==null?0:y.actions)&&y.actions.length>0?this.startQnaRequestInFlight=!1:_.ow(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.E.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
y5.prototype.handleServiceRequestError=y5.prototype.handleServiceRequestError;y5.prototype.handleServiceRequestCompleted=y5.prototype.handleServiceRequestCompleted;y5.prototype.handleServiceRequestSent=y5.prototype.handleServiceRequestSent;y5.prototype.onPickerCancelled=y5.prototype.onPickerCancelled;y5.prototype.onCharacterCountChanged=y5.prototype.onCharacterCountChanged;_.J([_.q(),_.R("design:type",Object)],y5.prototype,"characterCount",void 0);
_.J([_.q(),_.R("design:type",Object)],y5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],y5.prototype,"showInputErrorMessage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],y5.prototype,"startQnaRequestInFlight",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],y5.prototype,"modern",void 0);_.J([_.q(),_.R("design:type",Object)],y5.prototype,"buttonOverrides",void 0);
_.J([_.q(),_.R("design:type",Object)],y5.prototype,"closeButtonOverrides",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],y5.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.m(_.ER.YtLiveChatItemBehavior),_.R("design:type",_.N$)],y5.prototype,"ytLiveChatItemBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],y5.prototype,"ytActionHandlerBehavior",void 0);_.J([_.l6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],y5.prototype,"onCharacterCountChanged",null);_.J([_.l6("picker-cancelled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y5.prototype,"onPickerCancelled",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y5.prototype,"handleServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],y5.prototype,"handleServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],y5.prototype,"handleServiceRequestError",null);_.J([_.k({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],y5);
_.Y(y5,"yt-live-chat-qna-start-panel-renderer",function(){if(UaM===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;qzM===void 0&&(qzM=document.createElement("template"));var w=qzM;V.call(W,w.content.cloneNode(!0),y.content.firstChild);UaM=y}y=UaM;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Da3;var lt3;var Wb=function(){return _.u.apply(this,arguments)||this};
_.p(Wb,_.u);Wb.prototype.dismiss=function(){_.h1(this.hostElement,"yt-live-chat-error-message-dismiss")};
Wb.prototype.edit=function(){_.h1(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.J([_.q(),_.R("design:type",Object)],Wb.prototype,"data",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Wb);
_.Y(Wb,"yt-live-chat-text-actions-error-message-renderer",function(){if(lt3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Da3===void 0&&(Da3=document.createElement("template"));var w=Da3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);lt3=y}y=lt3;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var xa_;var kGM;var sRh;var AvG;var V5=function(){var y=_.u.apply(this,arguments)||this;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.newnessDotEligible=!1;return y};
_.p(V5,_.u);V5.prototype.sendReaction=function(){var y,W,V=((y=this.data)==null?void 0:y.emojiId)||((W=this.data)==null?void 0:W.emoteId),w;V&&((w=this.data)==null?0:w.shouldTriggerAnimation)&&_.ow(this.hostElement,"yt-create-user-reaction-animation",[V]);var t;(y=_.tl((t=this.data)==null?void 0:t.onTap))&&_.kc(y,this.hostElement);this.showNewnessDot&&_.ow(this.hostElement,"yt-hide-newness-dot")};
V5.prototype.onClick=function(y){(!y||y.clientX||y.clientY)&&this.sendReaction()};
V5.prototype.onKeyDown=function(y){y.key!=="Enter"&&y.key!==" "||y.repeat||this.sendReaction()};
_.CM.Object.defineProperties(V5.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!(((y=this.data)==null?0:y.emojiId)||((W=this.data)==null?0:W.emoteId))}}});
_.J([_.q(),_.R("design:type",Object)],V5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],V5.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],V5.prototype,"newnessDotEligible",void 0);_.J([_.M("data.maybeShowNewnessDot"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],V5.prototype,"showNewnessDot",null);_.J([_.M("data.emojiId","data.emoteId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],V5.prototype,"useYtImage",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],V5);
_.Y(V5,"yt-reaction-control-panel-button-view-model",function(){if(AvG===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;sRh===void 0&&(sRh=document.createElement("template"));var w=sRh;V.call(W,w.content.cloneNode(!0),y.content.firstChild);AvG=y}y=AvG;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Yz5;var BuG;var ws=function(){var y=_.u.apply(this,arguments)||this;y.reactionControlPanelExpanded=!1;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.newnessDotEligible=!1;return y};
_.p(ws,_.u);_.E=ws.prototype;_.E.expandedButtonsChanged=function(){var y,W;_.qg(this.hostElement,{"--expanded-buttons-height":((W=(y=this.expandedButtonsData)==null?void 0:y.length)!=null?W:0)*36+"px"})};
_.E.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}}};
_.E.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.E.onMouseLeave=function(){var y=this;this.collapseTimer=setTimeout(function(){y.reactionControlPanelExpanded=!1},500)};
_.E.onFocusIn=function(){this.onMouseEnter()};
_.E.onFocusOut=function(){this.onMouseLeave()};
_.E.onCollapsedButtonFocusIn=function(){var y=this;setTimeout(function(){var W;(W=y.expandedButtons.querySelector("button"))==null||W.focus()},100)};
_.E.onCollapsedButtonFocusOut=function(y){y.stopPropagation()};
_.CM.Object.defineProperties(ws.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var y,W;return _.Gc.unsafeClone((y=this.liveReactionsData)==null?void 0:y.emojiButtonData)||((W=this.data)==null?void 0:W.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var y;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((y=this.data)==null||!y.maybeShowNewnessDot)}}});
ws.prototype.expandedButtonsChanged=ws.prototype.expandedButtonsChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],ws.prototype,"ytLiveChatReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ws.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ws.prototype,"reactionControlPanelExpanded",void 0);_.J([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:H1v}),_.R("design:type",Object)],ws.prototype,"liveReactionsData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ws.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],ws.prototype,"newnessDotEligible",void 0);
_.J([_.M("liveReactionsData","data.expandedButtons"),_.R("design:type",Object),_.R("design:paramtypes",[])],ws.prototype,"expandedButtonsData",null);_.J([_.M("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.q({reflectToAttribute:!0}),_.R("design:type",Object),_.R("design:paramtypes",[])],ws.prototype,"showNewnessDot",null);_.J([_.s$("#expanded-buttons"),_.R("design:type",HTMLElement)],ws.prototype,"expandedButtons",void 0);
_.J([_.xA("expandedButtonsData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ws.prototype,"expandedButtonsChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],ws);
_.Y(ws,"yt-reaction-control-panel-view-model",function(){if(BuG===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Yz5===void 0&&(Yz5=document.createElement("template"));var w=Yz5;V.call(W,w.content.cloneNode(!0),y.content.firstChild);BuG=y}y=BuG;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var tJ=new _.Zb("yt-live-chat"),JvZ=Date.parse("2024-7-24"),FE=function(){var y=_.u.apply(this,arguments)||this;y.emojiManager=_.FX;y.newnessDotEligible=!1;y.newnessDotImpressionCounted=!1;y.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return y};
_.p(FE,_.u);_.E=FE.prototype;_.E.emojiCustomizationEnabledChanged=function(){var y;((y=this.data)==null?0:y.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((y=tJ.getCreationTime("emoji-customization-count"))&&y<JvZ&&tJ.set("emoji-customization-count","0"),y=Number(tJ.get("emoji-customization-count"))||0,y<3&&(this.newnessDotEligible=!0,tJ.set("emoji-customization-count",(y+1).toString())),this.newnessDotImpressionCounted=!0)};
_.E.hideNewnessDot=function(){this.newnessDotEligible=!1;tJ.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.E.handleReactionsMute=function(y){var W=_.Xn(),V=_.ad(206221),w={checkboxData:{state:y?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};W&&_.PE(W,V,w);this.reactionsMuted=y};
_.E.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.E.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}}};
_.CM.Object.defineProperties(FE.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var y;return(!((y=this.liveReactionsData)==null||!y.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
FE.prototype.liveReactionsSettingChanged=FE.prototype.liveReactionsSettingChanged;FE.prototype.emojiCustomizationEnabledChanged=FE.prototype.emojiCustomizationEnabledChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tZ),_.R("design:type",Object)],FE.prototype,"ytLiveChatReduxBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],FE.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],FE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",_.Vf)],FE.prototype,"emojiManager",void 0);_.J([_.q(),_.R("design:type",Object)],FE.prototype,"newnessDotEligible",void 0);_.J([_.q(),_.R("design:type",Object)],FE.prototype,"newnessDotImpressionCounted",void 0);
_.J([_.q({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Xjt}),_.R("design:type",Boolean)],FE.prototype,"liveReactionsSetting",void 0);_.J([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:H1v}),_.R("design:type",Object)],FE.prototype,"liveReactionsData",void 0);_.J([_.q({value:function(){var y=_.e("enable_lwe_web_mute"),W=tJ.get("allow-reactions");return W===void 0?!1:!W&&y}}),
_.R("design:type",Boolean)],FE.prototype,"reactionsMuted",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FE.prototype,"liveReactionsEnabled",null);_.J([_.xA("data.emojiCustomizationEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FE.prototype,"emojiCustomizationEnabledChanged",null);
_.J([_.xA("liveReactionsEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FE.prototype,"liveReactionsSettingChanged",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],FE);
_.Y(FE,"yt-reaction-control-panel-overlay-view-model",function(){if(kGM===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;xa_===void 0&&(xa_=document.createElement("template"));var w=xa_;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kGM=y}y=kGM;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Rb_={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(y){var W=this.$.pickers.selected;if(W){_.i6(this.hostElement).removeAttribute(W+"-open");var V="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(V="#picker-buttons",W==="emoji"&&_.i6(this.hostElement).querySelector("#emoji-picker-button")&&(V="#emoji-picker-button"));if(V=_.i6(this.hostElement).querySelector(V).querySelector("#"+W))V.active=!1}V=y;W==y&&(V=null);W!=
y&&_.i6(this.hostElement).setAttribute(y+"-open","");this.$.pickers.selected=V;_.ow(this.hostElement,"yt-live-chat-picker-changed",[V])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var EL=function(){var y=_.u.apply(this,arguments)||this;y.numSentMessages=0;y.timeoutDurationMs=0;y.timeoutMs=0;y.lastTimeoutTimeMs=0;y.pendingMessageId="";y.hasFiredInitialFocusActions=!1;y.isBeforeFocusEnabled=!0;y.id="";y.characterCount=0;y.maxCharacterLimit=0;y.remainingCharacterCount=0;y.inputExpanded=!1;y.buttonOverrides={iconPosition:"icon-only"};y.inReplyPanel=!1;y.countdownRatio=0;y.isTooltipVisible=!1;y.tooltipTimeout=1E4;y.systemIcons=_.e("kevlar_system_icons");y.tallerEmojiPicker=_.e("live_chat_taller_emoji_picker");
y.sendReplyMessageInFlight=!1;y.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"};y.onResize=function(){y.maybeToggleCharacterCount()};
return y};
_.p(EL,_.u);_.E=EL.prototype;
_.E.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"}}}};
_.E.attached=function(){window.addEventListener("resize",this.onResize)};
_.E.detached=function(){window.removeEventListener("resize",this.onResize)};
_.E.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.E.sendMessage=function(){var y=this,W,V,w,t;return _.g(function(F){if(y.sendDisabled)return F.return();y.isTooltipVisible&&_.ow(y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(y.data.sendButton&&y.data.sendButton.buttonRenderer){y.input.completeEmojis();W=y.data.sendButton.buttonRenderer.serviceEndpoint;if(!W)return F.return();w=((V=_.h(W,_.n$i))==null?void 0:V.clientIdPrefix)||"";t={client_message_id:w+String(y.numSentMessages++),rich_message:_.NH(y.input.liveChatRichMessageInput)};
y.pendingMessageId=t.client_message_id;y.inReplyPanel&&(y.sendReplyMessageInFlight=!0);_.i5(y.hostElement,[W,t]);y.input.setLiveChatRichMessageInput(null)}_.B7(F)})};
_.E.handleSendButtonAction=function(y){y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),this.sendMessage())};
_.E.onSendCompleted=function(y,W){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(y=this.get("timeoutDurationUsec",W.data))&&this.handleTimeout(Number(y)/1E3);this.errorMessage=this.get("errorMessage",W.data);this.pendingMessageId=""};
_.E.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ow(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.E.handlePickerButtonToggle=function(y){y=y.detail.targetId;this.ytPickerBehavior.togglePicker_(y);if(y==="emoji")this.input.focus();else if(y==="qna-start-panel"){var W,V;(W=_.i6(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(V=W.querySelector("#qna-creator-text-input-field"))==null||V.focus()}};
_.E.onComponentReplaced=function(y){var W,V;y.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((W=y.replacement.liveChatMessageInputRenderer)==null?0:(V=W.headerRenderer)==null?0:V.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.E.onEmojiSelect=function(y){this.input.focus();this.input.insertEmoji(y.detail)};
_.E.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.E.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ow(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ow(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.E.onOpenPopupAction=function(y,W){var V=this;W===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ow(V.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.E.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.E.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.E.focusChanged=function(){this.maybeToggleCharacterCount()};
_.E.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var y=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",y>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.E.computeId=function(){return this.data&&this.data.targetId||""};
_.E.computeSendDisabled=function(y,W,V,w){y=!!(!y||W&&y>W||w);(W=_.i6(this.hostElement).querySelector("#send-button"))&&W.children.length&&(W.children[0].disabled=y);return y};
_.E.handleTimeout=function(y){this.timeoutDurationMs=this.timeoutMs=y;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.E.updateTimeout=function(y){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(y-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=y,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.E.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.E.onErrorMessageEdit=function(y){this.input.setLiveChatRichMessageInput(y.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.E.errorMessageChanged=function(){var y=this;_.Er(function(){_.ow(y.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.E.computeAuthorNameColor=function(y){var W;if(_.e("live_chat_author_name_color_usernames")&&(y==null?0:(W=y.authorName)==null?0:W.simpleText))return _.IoG(_.g64(y.authorName.simpleText));if(_.e("live_chat_seed_color_usernames")&&(y==null?0:y.authorSeedColorArgb))return _.IoG(_.uE(y.authorSeedColorArgb));if(_.e("live_chat_colored_usernames"))return"#cc0000";var V;return _.e("live_chat_simple_color_usernames")&&(y==null?0:(V=y.authorName)==null?0:V.simpleText)&&(y==null?0:y.authorUsernameColorLight)&&
(y==null?0:y.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.uE(y.authorUsernameColorDark):_.uE(y.authorUsernameColorLight):""};
_.E.onIsTooltipVisibleChanged=function(){var y=_.i6(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){y.hidden=!1;y.setAttribute("role","alert")},0):(y.hidden=!0,y.removeAttribute("role"))};
_.E.onFocusedChanged=function(y){this.inputFocused=y.detail.value};
_.CM.Object.defineProperties(EL.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 y;return!((y=this.data)==null||!y.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.pickers)==null?void 0:W.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return y?this.ytRendererBehavior.getSimpleString(y):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
EL.prototype.onIsTooltipVisibleChanged=EL.prototype.onIsTooltipVisibleChanged;EL.prototype.errorMessageChanged=EL.prototype.errorMessageChanged;EL.prototype.onErrorMessageEdit=EL.prototype.onErrorMessageEdit;EL.prototype.onErrorMessageDismiss=EL.prototype.onErrorMessageDismiss;EL.prototype.focusChanged=EL.prototype.focusChanged;EL.prototype.characterCountChanged=EL.prototype.characterCountChanged;EL.prototype.onEmojiSelect=EL.prototype.onEmojiSelect;EL.prototype.handlePickerButtonToggle=EL.prototype.handlePickerButtonToggle;
EL.prototype.onSendError=EL.prototype.onSendError;EL.prototype.onSendCompleted=EL.prototype.onSendCompleted;EL.prototype.sendMessage=EL.prototype.sendMessage;EL.prototype.dataChanged=EL.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(Rb_.YtPickerBehavior),_.R("design:type",Object)],EL.prototype,"ytPickerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.FV.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],EL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"hasFiredInitialFocusActions",void 0);
_.J([_.q(),_.R("design:type",Object)],EL.prototype,"isBeforeFocusEnabled",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"data",void 0);_.J([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",Object)],EL.prototype,"id",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"characterCount",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"maxCharacterLimit",void 0);
_.J([_.q(),_.R("design:type",Object)],EL.prototype,"remainingCharacterCount",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],EL.prototype,"inputExpanded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],EL.prototype,"inputFocused",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],EL.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.J([_.q(),_.R("design:type",_.PK)],EL.prototype,"participantsManager",void 0);
_.J([_.q(),_.R("design:type",Object)],EL.prototype,"buttonOverrides",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],EL.prototype,"inReplyPanel",void 0);_.J([_.M("characterCount, maxCharacterLimit, countdownActive"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"sendDisabled",null);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"countdownRatio",void 0);
_.J([_.M("countdownRatio"),_.R("design:type",Number),_.R("design:paramtypes",[])],EL.prototype,"countdownStrokeDashOffset",null);_.J([_.M("countdownRatio"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"countdownActive",null);_.J([_.M("data.interactionMessage"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"hasInteractionMessage",null);
_.J([_.M("data.emojiPickerButton"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"hasEmojiPickerButton",null);_.J([_.M("data, characterCount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"showAvatar",null);_.J([_.M("data.pickers"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EL.prototype,"hasProductPickerPanelViewModel",null);
_.J([_.q(),_.R("design:type",Object)],EL.prototype,"errorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"genericErrorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"isTooltipVisible",void 0);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"tooltipTimeout",void 0);_.J([_.M("data.onInitialFocusCommand"),_.R("design:type",String),_.R("design:paramtypes",[])],EL.prototype,"tooltipMessage",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],EL.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],EL.prototype,"tallerEmojiPicker",void 0);_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],EL.prototype,"authorNameColor",null);_.J([_.q(),_.R("design:type",Object)],EL.prototype,"sendReplyMessageInFlight",void 0);_.J([_.s$("#input"),_.R("design:type",_.utJ)],EL.prototype,"input",void 0);
_.J([_.s$("#count"),_.R("design:type",HTMLElement)],EL.prototype,"count",void 0);_.J([_.s$("#input-container"),_.R("design:type",HTMLElement)],EL.prototype,"inputContainer",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"dataChanged",null);_.J([_.l6("yt-live-chat-send-message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],EL.prototype,"sendMessage",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[Event,_.z$]),_.R("design:returntype")],EL.prototype,"onSendCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"onSendError",null);
_.J([_.l6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],EL.prototype,"handlePickerButtonToggle",null);_.J([_.l6("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],EL.prototype,"onEmojiSelect",null);
_.J([_.xA("characterCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"characterCountChanged",null);_.J([_.xA("inputFocused"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"focusChanged",null);_.J([_.l6("yt-live-chat-error-message-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"onErrorMessageDismiss",null);
_.J([_.l6("yt-live-chat-error-message-edit"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],EL.prototype,"onErrorMessageEdit",null);_.J([_.xA("errorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"errorMessageChanged",null);_.J([_.xA("isTooltipVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EL.prototype,"onIsTooltipVisibleChanged",null);
_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],EL);
_.Y(EL,"yt-live-chat-message-input-renderer",function(){if(gP_===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;It5===void 0&&(It5=document.createElement("template"));var w=It5;V.call(W,w.content.cloneNode(!0),y.content.firstChild);gP_=y}y=gP_;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var jRZ;var $a3;var NS=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.firedOnClickCommand=!1;y.inReplyPanel=!1;return y};
_.p(NS,_.u);
NS.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"}}}};
NS.prototype.onButtonToggle=function(y){y.target.disabled||this.ytPickerBehavior.togglePicker_(y.detail.targetId)};
NS.prototype.onClick=function(){var y=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ow(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return y.firedOnClickCommand=!1},5E3))};
_.CM.Object.defineProperties(NS.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.panels)==null?void 0:W.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}}});
NS.prototype.onButtonToggle=NS.prototype.onButtonToggle;_.J([_.m(Rb_.YtPickerBehavior),_.R("design:type",Object)],NS.prototype,"ytPickerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],NS.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],NS.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Object)],NS.prototype,"firedOnClickCommand",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],NS.prototype,"inReplyPanel",void 0);_.J([_.M("data.pickers"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],NS.prototype,"hasProductPickerPanelViewModel",null);
_.J([_.l6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],NS.prototype,"onButtonToggle",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],NS);
_.Y(NS,"yt-live-chat-restricted-participation-renderer",function(){if($a3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;jRZ===void 0&&(jRZ=document.createElement("template"));var w=jRZ;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$a3=y}y=$a3;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Im=function(){var y=_.u.apply(this,arguments)||this;y.genericErrorMessage=_.CO("Error, try again.");y.inReplyPanel=!1;y.hideBorder=!1;return y};
_.p(Im,_.u);Im.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}}}}}};
_.CM.Object.defineProperties(Im,{template:{configurable:!0,enumerable:!0,get:function(){return wyM()}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Im.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Im.prototype,"genericErrorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],Im.prototype,"inReplyPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Im.prototype,"hideBorder",void 0);
_.J([_.Zp({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Im);_.Y(Im,"yt-live-chat-engagement-panel-input-renderer",function(){return wyM()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var nPh,Hd_;nPh=_.ad(115994);Hd_=_.ad(115993);_.gs=function(y,W,V){var w=this;var t=V.dragDownAction;this.layer=0;this.JSC$22230_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$22230_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var F=_.BC();_.uT(F,nPh,this.layer);_.uT(F,Hd_,this.layer);this.dragDownAction=function(){t();_.gp(F,{visualElement:w.fullscreen?nPh:Hd_})};
this.gesture=new _.Pc(y,W,this.JSC$22230_watchConfig,"pandown");this.attach()};
_.gs.prototype.attach=function(){this.gesture.attach()};
_.gs.prototype.detach=function(){this.gesture.detach()};
_.gs.prototype.update=function(y){this.fullscreen=y;this.gesture.config=y?this.JSC$22230_watchFullScreenConfig:this.JSC$22230_watchConfig};var Xyh={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(y){if(y&&y.length==1&&Array.isArray(y[0].loggingUrls)){y=_.Gc.unsafeClone(y[0]);var W=this.macros||{},V=this.getAdModuleClient_();if(!V)return _.T2();y.loggingUrls.forEach(function(w){if(w.baseUrl){var t=w.baseUrl;var F=W;F=F===void 0?{}:F;t=V.getOptions().includes("replaceUrlMacros")?_.n7f(V,"replaceUrlMacros",{url:t,additionalMapping:F}):t;w.baseUrl=t}},this);
y=[y]}return _.i5(this.hostElement,y)},
getAdModuleClient_:function(){var y=_.Kn(this);return y?(y=y.getPlayer())?new _.HG(y):null:null}}]};var atu;var Pb=function(){var y=_.u.apply(this,arguments)||this;y.isCollapsed=!1;y.modernPanels=_.e("kevlar_watch_modern_panels");y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return y};
_.p(Pb,_.u);_.E=Pb.prototype;_.E.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.E.onDonateTap=function(){var y=this.get("data.donateButton.buttonRenderer.command");if(y){var W=_.Xn(),V=this.get("data.donateButton.buttonRenderer.trackingParams");W&&V&&_.PE(W,_.nD(V));this.ytOpenPopupBehavior.openPopup(y)}};
_.E.onShowMore=function(){this.isCollapsed=!1;var y=_.Xn(),W=this.get("data.expandButton.buttonRenderer.trackingParams");y&&W&&_.PE(y,_.nD(W))};
_.E.onShowLess=function(){this.isCollapsed=!0};
_.E.dataChanged=function(){_.qg(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.handleUpdate=function(y){if(y=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",y))this.set("data.startLabel",y.startLabel),this.set("data.endLabel",y.endLabel),this.set("data.progress",y.progress),this.set("data.amountRaisedLabel",y.amountRaisedLabel),this.dataChanged()};
_.E.handleOpenPopupAction=function(y){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",y)&&_.ow(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.E.computeHeaderBackgroundUrl=function(y,W){if(y)return W?y.headerBackgroundDarkUrl:y.headerBackgroundUrl};
_.E.isProgressBarVisible=function(y){return!(!y||y.progress===void 0)};
_.E.headerBackgroundClass=function(){return _.yC("HTML_DIR")==="rtl"?"flip":""};
Pb.prototype.dataChanged=Pb.prototype.dataChanged;_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],Pb.prototype,"ytOpenPopupBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Pb.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Pb.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Pb.prototype,"isCollapsed",void 0);_.J([_.q({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.R("design:type",String)],Pb.prototype,"headerBackgroundUrl",void 0);_.J([_.q(),_.R("design:type",Boolean)],Pb.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Pb.prototype,"modernPanels",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pb.prototype,"dataChanged",null);_.J([_.k({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Pb);
_.Y(Pb,"ytd-donation-shelf-renderer",function(){if(atu!==void 0)return atu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return atu=y},{mode:1});var GG_;var rvM=function(){return _.u.apply(this,arguments)||this};
_.p(rvM,_.u);_.J([_.q(),_.R("design:type",Object)],rvM.prototype,"data",void 0);_.J([_.k({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],rvM);
_.Y(rvM,"ytd-donation-unavailable-renderer",function(){if(GG_!==void 0)return GG_;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return GG_=y},{mode:1});var bdG;var CC=function(){return _.u.apply(this,arguments)||this};
_.p(CC,_.u);CC.prototype.computeIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],CC.prototype,"data",void 0);_.J([_.k({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],CC);
_.Y(CC,"ytd-limited-state-message-renderer",function(){if(bdG!==void 0)return bdG;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return bdG=y},{mode:1});var QR1;var OL=function(){return _.u.apply(this,arguments)||this};
_.p(OL,_.u);OL.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
OL.prototype.onTap=function(y){var W=this.data&&this.data.endpoint;W&&!_.c5(_.O$(y),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.h1(this.hostElement,"yt-navigate",{endpoint:W})};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],OL.prototype,"data",void 0);_.J([_.k({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],OL);
_.Y(OL,"ytd-autotagging-metadata-renderer",function(){if(QR1!==void 0)return QR1;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return QR1=y},{mode:1});var Zd3;var vb=function(){return _.u.apply(this,arguments)||this};
_.p(vb,_.u);vb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vb.prototype,"data",void 0);_.J([_.k({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],vb);
_.Y(vb,"ytd-autotagging-metadata-row-renderer",function(){if(Zd3!==void 0)return Zd3;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Zd3=y},{mode:1});var yAf;var Wfh;var ds=function(){var y=_.u.apply(this,arguments)||this;y.engagementPanelContent=!1;return y};
_.p(ds,_.u);ds.prototype.computeHasDividerLine=function(y,W){return y&&!W};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ds.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.R("design:type",Boolean)],ds.prototype,"hasDividerLine",void 0);_.J([_.q(),_.R("design:type",Object)],ds.prototype,"engagementPanelContent",void 0);
_.J([_.k({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ds);
_.Y(ds,"ytd-metadata-row-header-renderer",function(){if(Wfh!==void 0)return Wfh;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Wfh=y},{mode:1});var VQZ;var LC=function(){return _.u.apply(this,arguments)||this};
_.p(LC,_.u);LC.prototype.computeHasDividerLine=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LC.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.R("design:type",Boolean)],LC.prototype,"hasDividerLine",void 0);_.J([_.k({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],LC);
_.Y(LC,"ytd-metadata-row-renderer",function(){if(VQZ!==void 0)return VQZ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return VQZ=y},{mode:1});var wz3;var zs=function(){return _.u.apply(this,arguments)||this};
_.p(zs,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zs.prototype,"data",void 0);_.J([_.k({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],zs);
_.Y(zs,"ytd-metadata-with-image-row-renderer",function(){if(wz3!==void 0)return wz3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wz3=y},{mode:1});var tQ_;var cb=function(){var y=_.u.apply(this,arguments)||this;y.rounded=!0;y.fixie=!1;y.fullWidth=!1;return y};
_.p(cb,_.u);_.E=cb.prototype;_.E.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.onDataChanged=function(){var y=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(W){y.onEndpointLinkKeyPress(W)}))};
_.E.onEndpointLinkKeyPress=function(y){y.target===this.endpointLink&&y.keyCode===13&&_.h1(this.hostElement,"click")};
_.E.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var y;if((y=this.data)==null?0:y.endpoint)_.fg(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.E.onYtNavigate=function(y){this.endpointHref||(y.stopPropagation(),y.preventDefault())};
_.E.onInformationButtonContainerClick=function(y){y.target.id!=="information-button-container"&&(y.stopPropagation(),y.preventDefault())};
_.E.computeStyle=function(y){return y};
_.E.computeIsThumbnailStyle=function(y){return y==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.E.computeThumbnailWidth=function(y){switch(y){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}};
_.E.computeThumbnailObjectFit=function(y){switch(y){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.CM.Object.defineProperties(cb.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
cb.prototype.onYtNavigate=cb.prototype.onYtNavigate;cb.prototype.onClick=cb.prototype.onClick;cb.prototype.onDataChanged=cb.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cb.prototype,"componentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],cb.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],cb.prototype,"componentStyle",void 0);_.J([_.q({computed:"computeIsThumbnailStyle(data.style)"}),_.R("design:type",Boolean)],cb.prototype,"isThumbnailStyle",void 0);_.J([_.q({computed:"computeThumbnailObjectFit(data.style)"}),_.R("design:type",String)],cb.prototype,"thumbnailObjectFit",void 0);
_.J([_.q({computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],cb.prototype,"thumbnailWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cb.prototype,"rounded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cb.prototype,"fixie",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cb.prototype,"fullWidth",void 0);_.J([_.s$("#endpoint-link"),_.R("design:type",HTMLAnchorElement)],cb.prototype,"endpointLink",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cb.prototype,"onDataChanged",null);_.J([_.M("data.endpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],cb.prototype,"endpointHref",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],cb.prototype,"onClick",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cb.prototype,"onYtNavigate",null);_.J([_.k({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],cb);
_.Y(cb,"ytd-rich-metadata-renderer",function(){if(tQ_!==void 0)return tQ_;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tQ_=y},{mode:_.qM("kevlar_poly_si_batch_j075")?1:2});var FfG;var er=function(){var y=_.u.apply(this,arguments)||this;y.fixie=!1;y.fullWidth=!1;return y};
_.p(er,_.u);er.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
er.prototype.computeHasDividerLine=function(y){return y};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],er.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.R("design:type",Boolean)],er.prototype,"hasDividerLine",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],er.prototype,"fixie",void 0);_.J([_.q(),_.R("design:type",Object)],er.prototype,"fullWidth",void 0);
_.J([_.k({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],er);
_.Y(er,"ytd-rich-metadata-row-renderer",function(){if(FfG!==void 0)return FfG;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return FfG=y},{mode:1});var hJ=function(){var y=_.u.apply(this,arguments)||this;y.engagementPanelContent=!1;y.fixie=!1;y.fullWidth=!1;return y};
_.p(hJ,_.u);
hJ.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"}}}};
hJ.prototype.computeCollapsibleItems=function(y,W,V){return y===void 0||W===void 0||V===void 0||V?[]:y.slice(W)};
hJ.prototype.computeAlwaysShownItems=function(y,W){return y&&y.length?y.slice(0,W):[]};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hJ.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],hJ.prototype,"collapsed",void 0);
_.J([_.q({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.R("design:type",Array)],hJ.prototype,"alwaysShownItems",void 0);_.J([_.q({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.R("design:type",Array)],hJ.prototype,"collapsibleItems",void 0);_.J([_.q(),_.R("design:type",Object)],hJ.prototype,"engagementPanelContent",void 0);_.J([_.q(),_.R("design:type",Object)],hJ.prototype,"fixie",void 0);
_.J([_.q(),_.R("design:type",Object)],hJ.prototype,"fullWidth",void 0);_.J([_.k({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],hJ);
_.Y(hJ,"ytd-metadata-row-container-renderer",function(){if(yAf!==void 0)return yAf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return yAf=y},{mode:1});var EJ1;var om=function(){var y=_.u.apply(this,arguments)||this;y.currentPageUrl="";y.baseUrl="";y.isHiddenByUser=null;y.hidden=!1;y.showAboveScrim=!1;y.watchNextGrid=_.e("kevlar_watch_grid");y.modernButtons=_.e("web_modern_buttons");y.roundedContainer=!0;y.noBorder=!1;y.roundBackground=!_.e("live_chat_round_background_killswitch");y.overflowHideChat=_.e("live_chat_overflow_hide_chat");y.forceDarkTheme=!1;y.theaterWatchWhile=!1;y.isListeningForPlayerProgress=!1;y.JSC$22266_playerEvents=new Map;y.isFrameReady=
!1;y.player=null;y.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 y};
_.p(om,_.u);_.E=om.prototype;_.E.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Kg(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.E.created=function(){var y=this;this.handleIframeEventListener=function(W){y.handleIframeEvent(W)};
this.handleKeyboardEventListener=function(W){y.handleKeyboardEvent(W)};
this.JSC$22266_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22266_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22266_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22266_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22266_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.E.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()};
_.E.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};
_.E.computeBaseUrl=function(y){var W="/live_chat";this.isChatReplay()&&(W="/live_chat_replay");return _.pH(_.KH(_.oP(_.Ey(y),W),null),"").toString()};
_.E.dataChanged=function(){_.e("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.E.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var y=this.url;if(this.isChatReplay()&&this.player){var W=Math.floor(this.player.getProgressState().current*1E3);y=_.If(_.Ey(y),"playerOffsetMs",W.toString()).toString()}W=this.chatframe;try{var V=y==="about:blank"?_.ebm:_.ye(y),w=W.contentDocument.location,t=_.w$(V);t!==void 0&&w.replace(t)}catch(F){W.src=y}}};
_.E.collapsedChanged=function(){_.h1(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.E.handleIframeEvent=function(y){if(y&&this.baseUrl.startsWith(y.origin)&&y.source===this.chatframe.contentWindow&&_.VK(y.data))if(y.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(y);else if(y.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(y.data["yt-show-feedback-dialog"]){var W=_.hs().resolve(_.eX(_.jm6));if(W){var V=y.ports,w;V&&V.length&&(w=function(){V[0].postMessage({})});
y=y.data["yt-show-feedback-dialog"];W.showFeedbackDialog(y.customProductData,y.feedbackContent,w,y.bucket)}}else if(y.data["yt-show-survey"])_.h1(this.hostElement,"yt-show-survey",y.data["yt-show-survey"]);else if(y.data["yt-purchase-membership"])_.hs().resolve(_.oA).resolveCommand(y.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(y.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(y.data["yt-tunnel-out-live-service-request"]);else if(y.data["yt-user-activity"])_.cp();
else if(y.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(y.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(y.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(y.data["yt-open-popup"]);else if(y.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(y.data["yt-log-flow-logging-event-command"]);else if(y.data["yt-hide-live-chat"])this.onShowHideChat();else y.data["yt-report-moderation-state-log"]&&
this.player&&(W={cpn:this.player.getVideoData().cpn},_.Hp("liveChatBeingModerated",W))};
_.E.attachLiveChatResponseVeTrackingParams=function(y){y=_.nD(y);var W=_.Xn(),V=_.ts("liveChatRenderer.trackingParams",this.data);W&&V&&_.Fr(W,_.nD(V),y)};
_.E.handleBuyflowMessages=function(y){var W=y.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,V=y.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,w=y.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.HSR(_.hD(_.C6),W.replace(/-/g,"+").replace(/_/g,"/"),function(t){y.ports[0].postMessage({success:!0,buyFlowResponse:t})},void 0,function(t){y.ports[0].postMessage({success:!1,
error:t&&t.message||"Buyflow rejected without error."})},_.l5().get("hl"),void 0,function(){y.ports[0].postMessage({closed:!0})},V,w)};
_.E.setupPlayerProgressRelay=function(){var y=this;if(!this.isListeningForPlayerProgress){var W=_.pn();W!=null&&W.getPlayerPromise&&(W.getPlayerPromise().then(function(V){y.playerApiReady(V)}),this.isListeningForPlayerProgress=!0)}};
_.E.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.E.playerApiReady=function(y){this.setPlayer(y)};
_.E.playerProgressHandler=function(){if(this.player){var y=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":y.current})}};
_.E.playerAdStartHandler=function(y){this.postToContentWindow({"yt-player-ad-start":y})};
_.E.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.E.playerStateChangeHandler=function(y){this.postToContentWindow({"yt-player-state-change":y})};
_.E.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22266_playerEvents);y&&(this.player=y,this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$22266_playerEvents),_.h1(this.hostElement,"player-api-ready"))};
_.E.liveChatPageUrl=function(y,W,V,w){return!V||W?"about:blank":V.liveChatRenderer?(W=_.Ey(this.currentPageUrl).JSC$9958_queryData_,YLu(W),y=_.Ey(y),W.add("continuation",V.liveChatRenderer.continuations[0].reloadContinuationData.continuation),V=_.H9()==="USER_INTERFACE_THEME_DARK",(w||V)&&W.add("dark_theme","true"),_.KH(y,W),w=_.Ey(y.toString()),V=w.JSC$9958_queryData_,"SESSION_INDEX"in _.Qa&&(V.add("authuser",_.yC("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Qa&&V.add("pageId",_.yC("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Qa&&V.add("sdc",_.yC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),w.toString()):""};
_.E.isCollapsed=function(y,W){return W!==null?W:this.isChatReplay()||y&&y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage?!0:y?y.liveChatRenderer?y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.e("live_chat_hide_premiere_replay_message")||y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.E.isHidden=function(y,W,V){var w=W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage,t=W&&W.liveChatRenderer&&W.liveChatRenderer.showHideButton,F=W&&W.liveChatRenderer&&W.liveChatRenderer.showButton;return V&&y&&!w&&!F||!V&&y&&!w&&!t?!0:W&&W.liveChatRenderer&&W.liveChatRenderer.initialDisplayState?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.E.computeButtonOverride=function(y,W){if(y&&W)return{type:"outline"}};
_.E.setCollapsedState=function(y){_.h(y,_.ubA)&&(this.isHiddenByUser=!!_.h(y,_.ubA).collapsed,!this.isHiddenByUser&&_.e("enable_teaser_framework_web_client")&&_.ow(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.E.forwardReduxActionToIframe=function(y){this.postToContentWindow({"yt-live-chat-forward-redux-action":y})};
_.E.onLoopRangeChange=function(y){this.showAboveScrim=!(y==null||!y.postId)};
_.E.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.E.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.E.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.E.sendDarkThemePostMessage=function(y){this.postToContentWindow({"yt-live-chat-set-dark-theme":y})};
_.E.onLiveChatBuyFlowCallback=function(y){this.postToContentWindow({"yt-live-chat-buy-flow-callback":y})};
_.E.handleKeyboardEvent=function(y){(0,_.Gc.containsValue)(AMt,y.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:y.type,keyCode:y.keyCode}})};
_.E.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.E.postToContentWindow=function(y){if(this.isFrameReady)try{var W=window.location.protocol+"//"+window.location.host,V;(V=this.chatframe)!=null&&V.contentWindow?this.chatframe.contentWindow.postMessage(y,W):_.rQ(new _.Js("Tried posting a message to an iframe with no content window",y))}catch(w){_.ap(w)}};
_.E.shouldHideChatFrame=function(y){return y&&_.e("hide_live_chat_button_when_collapsed")};
_.CM.Object.defineProperties(om.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.e("live_chat_overflow_hide_chat")||_.e("web_watch_chat_hide_button_killswitch"))return _.e("live_chat_overflow_hide_chat");var y,W,V,w;return!!((y=this.data)==null?0:(W=y.liveChatRenderer)==null?0:(V=W.header)==null?0:(w=V.liveChatHeaderRenderer)==null?0:w.collapseButton)}}});
om.prototype.collapsedChanged=om.prototype.collapsedChanged;om.prototype.urlChanged=om.prototype.urlChanged;om.prototype.dataChanged=om.prototype.dataChanged;om.prototype.onShowHideChat=om.prototype.onShowHideChat;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],om.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],om.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],om.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],om.prototype,"ytOpenPopupBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],om.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],om.prototype,"currentPageUrl",void 0);
_.J([_.q({computed:"computeBaseUrl(currentPageUrl,data)"}),_.R("design:type",Object)],om.prototype,"baseUrl",void 0);_.J([_.q({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.R("design:type",String)],om.prototype,"url",void 0);_.J([_.q(),_.R("design:type",Object)],om.prototype,"isHiddenByUser",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.R("design:type",Object)],om.prototype,"hidden",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.R("design:type",Boolean)],om.prototype,"collapsed",void 0);_.J([_.q({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.R("design:type",Boolean)],om.prototype,"hideChatFrame",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"showAboveScrim",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"watchNextGrid",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],om.prototype,"modernButtons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"noBorder",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],om.prototype,"roundBackground",void 0);
_.J([_.q({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.R("design:type",Object)],om.prototype,"toggleButtonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],om.prototype,"overflowHideChat",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"forceDarkTheme",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],om.prototype,"enableShowWithoutHideChatButton",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],om.prototype,"theaterWatchWhile",void 0);_.J([_.s$("#chatframe"),_.R("design:type",HTMLIFrameElement)],om.prototype,"chatframe",void 0);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],om.prototype,"onShowHideChat",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],om.prototype,"dataChanged",null);
_.J([_.xA("url"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],om.prototype,"urlChanged",null);_.J([_.xA("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],om.prototype,"collapsedChanged",null);_.J([_.k({is:"ytd-live-chat-frame",disableElementRegistration:!0})],om);
_.Y(om,"ytd-live-chat-frame",function(){if(EJ1!==void 0)return EJ1;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return EJ1=y},{mode:1});var Nmu;var KC=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_modern_buttons");y.buttonOverrides={style:"call-to-action",type:"filled"};return y};
_.p(KC,_.u);KC.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=_.V2(this.data.backgroundColor)))};
KC.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var y=this.getFormattedStringLoggingDirectives(this.data.headline);y&&this.rendererBehavior.logExplicitClick(y)}};
KC.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var y=this.getFormattedStringLoggingDirectives(this.data.description);y&&this.rendererBehavior.logExplicitClick(y)}};
KC.prototype.getFormattedStringLoggingDirectives=function(y){return y&&y.runs&&y.runs.length>0&&y.runs[0]&&y.runs[0].loggingDirectives?y.runs[0].loggingDirectives:null};
KC.prototype.dataChanged=KC.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KC.prototype,"rendererBehavior",void 0);_.J([_.m(Xyh.YtMacroReplacementBehavior),_.R("design:type",Object)],KC.prototype,"macroReplacementBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KC.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],KC.prototype,"navigationEndpoint",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],KC.prototype,"enableColors",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],KC.prototype,"modern",void 0);_.J([_.q(),_.R("design:type",Object)],KC.prototype,"buttonOverrides",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KC.prototype,"dataChanged",null);_.J([_.k({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],KC);
_.Y(KC,"ytd-action-basic-immersive-content-renderer",function(){if(Nmu!==void 0)return Nmu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Nmu=y},{mode:1});var II3;var gJf;var pC=function(){return _.u.apply(this,arguments)||this};
_.p(pC,_.u);pC.prototype.dataChanged=function(){var y;((y=this.data)==null?void 0:y.backgroundColor)!==void 0&&_.qg(this.hostElement,{"--bgu-color":_.V2(this.data.backgroundColor)})};
pC.prototype.onImageTileClick=function(){var y;((y=this.data)==null?0:y.navigationEndpoint)&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var W;((W=this.data)==null?0:W.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.CM.Object.defineProperties(pC.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.data)==null?void 0:y.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 y;return((y=this.data)==null?void 0:y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var y,W,V;if(((y=this.data)==null?void 0:(W=y.detailsLine)==null?void 0:W.texts)!=null&&((V=this.data)==null?void 0:V.detailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.detailsLine.texts.map(function(t){return t.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var y,W,V;if(((y=this.data)==null?void 0:(W=y.optionalDetailsLine)==null?void 0:W.texts)!=null&&((V=this.data)==null?void 0:V.optionalDetailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.optionalDetailsLine.texts.map(function(t){return t.text}).join("")}return null}}});
pC.prototype.dataChanged=pC.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pC.prototype,"rendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],pC.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pC.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.backgroundColor"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pC.prototype,"hasBackgroundColor",null);
_.J([_.M("data.objectFit"),_.R("design:type",Object),_.R("design:paramtypes",[])],pC.prototype,"getObjectFit",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.tileRenderingStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],pC.prototype,"hasTileMetadata",null);_.J([_.M("data.detailsLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],pC.prototype,"getSecondaryDetails",null);
_.J([_.M("data.optionalDetailsLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],pC.prototype,"getOptionalDetails",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pC.prototype,"dataChanged",null);_.J([_.k({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],pC);
_.Y(pC,"ytd-image-tile-renderer",function(){if(gJf!==void 0)return gJf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return gJf=y},{mode:1});var P2u;var iA=function(){return _.u.apply(this,arguments)||this};
_.p(iA,_.u);iA.prototype.getOpenLinkIcon=function(){return _.e("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
iA.prototype.onSitelinkTap=function(){_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.e("kevlar_command_handler_migration_killswitch"))_.fg(this.hostElement,this.data.clickCommands,this.hostElement);else for(var y=_.N(this.data.clickCommands),W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],iA.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iA.prototype,"rendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iA.prototype,"data",void 0);_.J([_.k({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],iA);
_.Y(iA,"ytd-sitelink-renderer",function(){if(P2u!==void 0)return P2u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return P2u=y},{mode:1});var fC=function(){var y=_.u.apply(this,arguments)||this;y.paddingFix=_.e("enable_ads_web_ep_buenos_aires_and_padding_fix");return y};
_.p(fC,_.u);fC.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"}}}};
fC.prototype.dataChanged=function(){var y=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;y.ytMacroReplacementBehavior.sendServiceRequestAction([W])})};
fC.prototype.shouldHideFooter=function(y){return!(y&&_.e("use_ads_engagement_panel_desktop_footer_cta"))};
_.CM.Object.defineProperties(fC.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var w;return(w=_.h(V,$Sv))==null?void 0:w.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var w;return((w=_.h(V,$Sv))==null?void 0:w.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
fC.prototype.dataChanged=fC.prototype.dataChanged;_.J([_.m(Xyh.YtMacroReplacementBehavior),_.R("design:type",Object)],fC.prototype,"ytMacroReplacementBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fC.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fC.prototype,"paddingFix",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],fC.prototype,"removeBorderFromImageTiles",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],fC.prototype,"useFooteredMetadataRenderingStyle",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fC.prototype,"dataChanged",null);_.J([_.k({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],fC);
_.Y(fC,"ytd-action-engagement-panel-content-renderer",function(){if(II3!==void 0)return II3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return II3=y},{mode:1});var C2f;var Oq_=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;return _.O("ad-grid-card-image-full-metadata-view-model",{class:function(){var w;return((w=W().interaction)==null?0:w.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V)),
"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.O(_.Bv,{data:w.data,
customCommandResolver:V})}})),_.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.O(_.v,{cond:function(){return W().headline},
then:function(w){return _.O(_.Lv,{text:w,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.O(_.v,{cond:function(){return W().detailsLine},
then:function(w){return _.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.O(_.Q7,{data:w},{adDetailsLineViewModel:function(t){return _.O(_.qD,{data:t.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.O(_.v,{cond:function(){return W().secondaryDetailsLine},
then:function(w){return _.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.O(_.Q7,{data:w},{adDetailsLineViewModel:function(t){return _.O(_.qD,{data:t.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"lj");var vJG=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;return _.O("ad-grid-card-image-view-model",{class:function(){var w;return((w=W().interaction)==null?0:w.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V)),
"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.O(_.Bv,{data:w.data,
customCommandResolver:V})}}),_.O("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.O(_.Q7,{data:function(){return W().adCardBadge}},{adCardBadgeViewModel:_.vHR})))},"mj");var dr1=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;return _.O("ad-grid-card-text-view-model",{class:function(){var w;return((w=W().interaction)==null?0:w.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V)),
"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.O(_.v,{cond:function(){return W().title},
then:function(w){return _.O(_.Lv,{text:w,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.O("div",{class:function(){return _.e("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.O(_.YV,{each:function(){var w;
return((w=W())==null?void 0:w.descriptions)||[]},
keyBy:"INDEX"},function(w){return _.O(_.Lv,{text:w,className:function(){return _.e("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.O("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.O(_.Q7,{data:function(){return W().moreInfoButton}},{adButtonViewModel:function(w){return _.O(_.p9,{data:w.data,
customCommandResolver:V})}})))},"nj");var Lf_=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;var w=y.adGridCardCollectionStyle;return _.O("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(t){var F,I=(F=W().interaction)==null?void 0:F.onFirstVisible;t&&I&&_.Id(I)},
showOption:_.oz})),style:function(){return"grid-template-columns: repeat("+wbC(w?w():W().style)+", minmax(0, 1fr));"}},_.O(_.Q7,{data:function(){var t;
return(t=W())==null?void 0:t.gridCards}},{adGridCardImageViewModel:function(t){return _.O(vJG,{data:t.data,
customCommandResolver:V})},
adGridCardImageFullMetadataViewModel:function(t){return _.O(Oq_,{data:t.data,customCommandResolver:V})},
adGridCardTextViewModel:function(t){return _.O(dr1,{data:t.data,customCommandResolver:V})}}))},"oj");_.iF(_.eY(function(y){var W=y.data;return _.O("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.hl(_.L7({visibilityCallback:function(V){var w,t=(w=W().interaction)==null?void 0:w.onFirstVisible;V&&t&&_.Id(t)},
showOption:_.oz}),_.Pe(function(){return W().interaction},trv))},_.O("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.O(_.v,{cond:_.iLn("(min-width: "+((0,_.Vv)()+_.kj)+"px)"),
then:function(){return _.O(_.Q7,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.O(Lf_,{data:V.data,
customCommandResolver:trv})}})},
else:function(){return _.O(_.Q7,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.O(Lf_,{data:V.data,
customCommandResolver:trv,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.O("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.O(_.Q7,{data:function(){return W().adButton}},{adButtonViewModel:function(V){return _.O(_.p9,{data:V.data,
customCommandResolver:trv})}})))},"pj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;return _.O("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.hl(_.L7({visibilityCallback:function(V){var w,t=(w=W().interaction)==null?void 0:w.onFirstVisible;V&&t&&_.Id(t)},
showOption:_.oz}),_.Pe(function(){return W().interaction},Fyj))},_.O("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.O(_.Q7,{data:function(){if(_.iLn("(min-width: "+((0,_.Vv)()+_.kj)+"px)")())var V=W().adGridCardCollection;
else{V=Object.assign({},_.h(W().adGridCardCollection,nvE));var w;V.gridCards!==void 0&&((w=V.gridCards)==null?void 0:w.length)>1?V.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":V.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";V={adGridCardCollectionViewModel:V}}return V}},{adGridCardCollectionViewModel:function(V){return _.O(Lf_,{data:V.data,
customCommandResolver:Fyj})}})),_.O("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.O(_.Q7,{data:function(){return W().adButton}},{adButtonViewModel:function(V){return _.O(_.p9,{data:V.data,
customCommandResolver:Fyj})}})))},"qj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.vB}});var Ts=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return y};
_.p(Ts,_.u);_.E=Ts.prototype;_.E.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"}}}};
_.E.attached=function(){this.getDataFromPlayerAndRender()};
_.E.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.E.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.E.getDataFromPlayerAndRender=function(){var y=this,W=_.Kn(this.hostElement);W&&W.getPlayerPromise().then(function(V){y.getCachedDataAndListen(V)})};
_.E.getCachedDataAndListen=function(y){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=y)};
_.E.resolveCachedActions=function(){var y=_.ts("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(y=y&&y())&&!_.Gc.isEmpty(y)&&this.sendUpdateEngagementPanelAction(y);(y=(y=_.ts("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&y())&&!_.Gc.isEmpty(y)&&this.sendChangeEngagementPanelVisibilityAction(y);(y=(y=_.ts("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&y())&&!_.Gc.isEmpty(y)&&this.sendScrollToEngagementPanelCommand(y)};
_.E.sendUpdateEngagementPanelAction=function(y){var W;_.ow(this.hostElement,"yt-update-engagement-panel-action",[(W=_.Gc.get(y,"action"))!=null?W:y])};
_.E.sendChangeEngagementPanelVisibilityAction=function(y){_.ow(this.hostElement,"yt-change-engagement-panel-visibility-action",[y])};
_.E.sendScrollToEngagementPanelCommand=function(y){_.ow(this.hostElement,"yt-scroll-to-engagement-panel-command",[y])};
_.E.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.e("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.rQ(Error("zo"))};
Ts.prototype.dataChanged=Ts.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ts.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ts.prototype,"componentBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],Ts.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ts.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Ts.prototype,"player",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ts.prototype,"dataChanged",null);_.J([_.k({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ts);
_.Y(Ts,"ytd-ads-engagement-panel-content-renderer",function(){if(C2f!==void 0)return C2f;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return C2f=y},{mode:1});var ziG;var my=function(){var y=_.u.apply(this,arguments)||this;y.player=null;y.JSC$22303_playerEvents=new Map;y.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return y};
_.p(my,_.u);_.E=my.prototype;_.E.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]]"}}}}}};
_.E.created=function(){this.player=null;this.JSC$22303_playerEvents=new Map;this.JSC$22303_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22303_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22303_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22303_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.E.attached=function(){var y=this,W=_.Kn();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));W&&W.getPlayerPromise().then(function(V){y.setPlayer(V);y.set("isPageLoad",!1)})};
_.E.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22303_playerEvents);this.set("player",y);y&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$22303_playerEvents),y.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.E.onLoopRangeChange=function(y){var W=_.hs().resolve(_.eX(_.hn));if((!W||W.isOnWatch())&&this.hostElement.clientHeight){var V;!y&&((V=this.data)==null?0:V.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.E.onVideoProgress=function(y){var W,V,w=((W=this.player)==null?void 0:(V=W.getPresentingPlayerType)==null?void 0:V.call(W))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w);var t;if(!w&&(t=this.player)!=null&&t.getLoopRange()){V=this.player.getLoopRange();W=V.startTimeMs;V=V.endTimeMs;w=this.player.getProgressState(1).seekableStart;var F;W<w*1E3&&((F=this.data)==null?0:F.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
y=V<y*1E3;var I;((I=this.player)==null?0:I.getLoopRange())&&y&&this.player.seekTo(W/1E3)}};
_.E.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.E.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.E.onYtDeleteClipEngagementPanelCommand=function(y){_.h(y,Eid).command&&this.ytComponentBehavior.resolveCommand(_.h(y,Eid).command)};
_.CM.Object.defineProperties(my.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.CO("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],my.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],my.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],my.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],my.prototype,"isAdPlaying",void 0);_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],my.prototype,"isPageLoad",void 0);_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],my.prototype,"isDarkTheme",void 0);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],my.prototype,"voteCount",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],my.prototype,"channelEndpoint",null);_.J([_.M("channelEndpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],my.prototype,"channelHref",null);_.J([_.k({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],my);
_.Y(my,"ytd-clip-attribution-renderer",function(){if(ziG!==void 0)return ziG;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ziG=y},{mode:1});var cAh;var MS=function(){var y=_.u.apply(this,arguments)||this;y.player=null;y.JSC$22308_playerEvents=new Map;return y};
_.p(MS,_.u);_.E=MS.prototype;_.E.created=function(){this.player=null;this.JSC$22308_playerEvents=new Map;this.JSC$22308_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22308_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22308_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.E.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E.attached=function(){var y=this,W=_.Kn();W&&W.getPlayerPromise().then(function(V){y.setPlayer(V);y.set("isPageLoad",!1)})};
_.E.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22308_playerEvents);this.set("player",y);if(y){this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$22308_playerEvents);var W;(y==null?void 0:(W=y.getPresentingPlayerType)==null?void 0:W.call(y))===2&&this.playerAdStartHandler()}};
_.E.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.E.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.E.onVideoProgress=function(){var y,W,V=((y=this.player)==null?void 0:(W=y.getPresentingPlayerType)==null?void 0:W.call(y))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],MS.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],MS.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],MS.prototype,"isAdPlaying",void 0);
_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],MS.prototype,"isPageLoad",void 0);_.J([_.k({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],MS);
_.Y(MS,"ytd-clip-section-footer-renderer",function(){if(cAh!==void 0)return cAh;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cAh=y},{mode:1});var eiu;var hi3;var qS=function(){return _.u.apply(this,arguments)||this};
_.p(qS,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qS.prototype,"data",void 0);_.J([_.k({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],qS);
_.Y(qS,"ytd-clip-ad-state-renderer",function(){if(hi3!==void 0)return hi3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return hi3=y},{mode:1});var oJh;var UL=function(){var y=_.u.apply(this,arguments)||this;y.value="";y.valid=!1;y.userChangedValue=!1;y.disabled=!1;y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return y};
_.p(UL,_.u);_.E=UL.prototype;_.E.detached=function(){this.userChangedValue=!1};
_.E.handleKeyDown=function(y){if(_.MW)var W=13;else _.fhy&&_.qW?W=13:W=13;y.keyCode===W&&y.preventDefault()};
_.E.handleInput=function(){var y=_.i6(this.hostElement).querySelector("#title");if(y){var W=(y.value||"").replace(/\r|\n/g," ");this.set("value",W);y.value=W;this.valid=y.validate();this.userChangedValue=!0}};
_.E.handleBlur=function(){this.valid=_.i6(this.hostElement).querySelector("#title").validate()};
_.E.onValueChanged=function(){_.h1(this.hostElement,"title-changed",{title:this.value})};
_.E.onValidChanged=function(){_.h1(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.E.setInput=function(y,W){var V=_.i6(this.hostElement).querySelector("#title");V&&(V.value=y,this.handleInput(),W&&(V.invalid=!1,this.valid=!0))};
_.E.onClipCreationDisable=function(){this.set("disabled",!0)};
_.E.onClipCreationEnable=function(){this.set("disabled",!1)};
_.E.onClipCreationVisibilityChange=function(y){var W=this;y.visible?requestAnimationFrame(function(){var V;((V=_.i6(W.hostElement).querySelector("#title"))==null?void 0:V.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
UL.prototype.onValidChanged=UL.prototype.onValidChanged;UL.prototype.onValueChanged=UL.prototype.onValueChanged;UL.prototype.handleBlur=UL.prototype.handleBlur;UL.prototype.handleInput=UL.prototype.handleInput;UL.prototype.handleKeyDown=UL.prototype.handleKeyDown;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],UL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],UL.prototype,"value",void 0);_.J([_.q(),_.R("design:type",Object)],UL.prototype,"valid",void 0);_.J([_.q(),_.R("design:type",Object)],UL.prototype,"userChangedValue",void 0);_.J([_.q(),_.R("design:type",Object)],UL.prototype,"disabled",void 0);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],UL.prototype,"handleKeyDown",null);
_.J([_.l6("input"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UL.prototype,"handleInput",null);_.J([_.l6("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UL.prototype,"handleBlur",null);_.J([_.xA("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UL.prototype,"onValueChanged",null);
_.J([_.xA("valid"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UL.prototype,"onValidChanged",null);_.J([_.k({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],UL);
_.Y(UL,"ytd-clip-creation-text-input-renderer",function(){if(oJh!==void 0)return oJh;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return oJh=y},{mode:1});var Kf1;var pzM;var iqu;var fIu;var Tm3;var uA=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};y.pendingStoryboardImages_={};y.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];y.tickLabelInterval=30;y.mediumTickInterval=5;y.largeTickInterval=15;y.aboveRulerHeight=32;y.rulerHeight=50;y.smallTickHeight=4;y.mediumTickHeight=8;y.largeTickHeight=16;y.mediaListeners_=
{};return y};
_.p(uA,_.u);_.E=uA.prototype;_.E.attached=function(){var y=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(W){W=_.N(["screen and (min-resolution: "+W+")","screen and (max-resolution: "+W+")"]);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=window.matchMedia(V);w&&(y.mediaListeners_[V]=y.updatePixelRatio_.bind(y),w.addEventListener?w.addEventListener("change",y.mediaListeners_[V]):w.addListener?w.addListener(y.mediaListeners_[V]):delete y.mediaListeners_[V])}})};
_.E.detached=function(){this.setPlayer(null);for(var y=_.N(Object.keys(this.mediaListeners_)),W=y.next();!W.done;W=y.next()){var V=W.value;W=this.mediaListeners_[V];(V=window.matchMedia(V))&&(V.removeEventListener?V.removeEventListener("change",W):V.removeListener&&V.removeListener(W))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.E.onVisibilityChangedAction_=function(y){var W=this;y.visible&&!this.player_&&(y=_.Kn())&&y.getPlayerPromise().then(function(V){W.setPlayer(V)})};
_.E.setPlayer=function(y){y&&this.set("player_",y)};
_.E.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.E.setUpCanvas_=function(){var y=this.rulerWidth,W=this.devicePixelRatio_,V=this.visible;this.set("canvasReady_",!1);if(V&&W!==0){V=this.aboveRulerHeight+this.rulerHeight;var w=_.i6(this.hostElement).querySelector("#ticks");w.width=y*W;w.height=V*W;w.style.width=y+"px";w.style.height=V+"px";w.getContext("2d").scale(W,W);this.set("canvasReady_",!0)}};
_.E.drawRuler_=function(y,W,V,w,t,F,I,P,C,d,L,z){y&&V&&W&&(y=_.i6(this.hostElement).querySelector("#ticks"),W=y.getContext("2d"),W.clearRect(0,0,y.width,y.height),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.lineWidth=2,W.beginPath(),W.moveTo(0,this.aboveRulerHeight),W.lineTo(y.width,this.aboveRulerHeight),W.moveTo(0,y.height),W.lineTo(y.width,y.height),W.stroke(),this.drawRulerTicks_(y,F,t,w),this.drawStoryboardImages_(y,V,F,t,w),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
W.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(I-F,w,!1),this.rulerHeight),V=this.timeToPixels_(P-F,w,!1),W.fillRect(V,this.aboveRulerHeight,y.width-V,this.rulerHeight),this.drawSpeedLines_(y,F,z))};
_.E.drawRulerTicks_=function(y,W,V,w){var t=y.getContext("2d");t.save();t.lineWidth=1;for(var F=Math.floor(Math.max(0,W-this.tickLabelInterval));F<W+V;F++){t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var I=(F-W)*w;t.beginPath();t.moveTo(I,y.height);var P=this.smallTickHeight;F%this.largeTickInterval===0?P=this.largeTickHeight:F%this.mediumTickInterval===0&&(P=this.mediumTickHeight);t.lineTo(I,y.height-P);t.stroke();F%this.tickLabelInterval===0&&(t.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),t.fillText(mQ(F),I+4,12),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.moveTo(I,0),t.lineTo(I,this.aboveRulerHeight),t.stroke())}t.restore()};
_.E.percentToHex_=function(y){y=Math.round(y*255).toString(16);y.length<2&&(y="0"+y);return y};
_.E.drawSpeedLines_=function(y,W,V){var w=y.getContext("2d");w.save();var t=Math.min(25,Math.abs(V)-15)/25,F=y.width*.3*t,I=y.width*-.3,P=y.width*1.3,C=this.aboveRulerHeight;y=y.height;var d=Math.round(4*t),L=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");L.length<7&&(L="#"+L.substring(1,4).repeat(2));var z=this.percentToHex_(.5+t/2);z=L+z;L+="00";if(t>0)for(t=0;t<d;t++){var c=I+Math.random()*(P-I),K=C+Math.random()*(y-C),f=F+W%F,U=w.createLinearGradient(c,K,c+f,K);
V<0?(U.addColorStop(0,z),U.addColorStop(.4,z),U.addColorStop(.9,L)):(U.addColorStop(.1,L),U.addColorStop(.6,z),U.addColorStop(1,z));w.strokeStyle=U;w.lineWidth=1;w.beginPath();w.moveTo(c,K);w.lineTo(c+f,K);w.stroke()}w.restore()};
_.E.getStoryboardForTime_=function(y,W,V){V===void 0&&(V=W.getNumberOfStoryboardLevels()-1);y=W.getStoryboardFrameIndex(y,V);return W.getStoryboardFrame(y,V)};
_.E.drawStoryboardImages_=function(y,W,V,w,t){if(!this.disabled){y=y.getContext("2d");var F=this.getStoryboardForTime_(0,W);if(F){var I=F.width/F.columns;F=F.height/F.rows;var P=I/F,C=this.rulerHeight*P;C=this.tickLabelInterval*(P<this.tickLabelInterval*t/this.rulerHeight?1/Math.floor(this.tickLabelInterval*t/C):Math.round(C/(this.tickLabelInterval*t)));var d=C*t,L=this.rulerHeight,z=d/this.rulerHeight,c=Math.floor(Math.max(0,V-C));for(c-=c%C;c<V+w;c+=C){var K=this.getStoryboardForTime_(c,W),f=this.getPreloadedStoryboard_(K.url);
if(f){var U=(c-V)*t,l=this.aboveRulerHeight,x=K.column*I,B=K.row*F;if(P<z){var r=L/(d/P);K=I;r*=F;B+=(F-r)/2}else K=d/(L*P)*I,r=F,x+=(I-K)/2;y.drawImage(f,x,B,K,r,U,l,d,L)}else this.fetchStoryboardImage_(K)}}}};
_.E.getPreloadedStoryboard_=function(y){return this.storyboardImages_.find(function(W){if(W.src==y)return!0;var V=W.src.indexOf(y);return V!=-1&&V==W.src.length-y.length})};
_.E.fetchStoryboardImage_=function(y){var W=this,V=this.getPreloadedStoryboard_(y.url),w=this.pendingStoryboardImages_[y.url];V||w!==void 0||(V=new Promise(function(t){var F=new Image(y.width,y.height);F.src=y.url;F.onload=function(){t(F)};
F.onerror=function(){t(null)}}),this.pendingStoryboardImages_[y.url]=V,V.then(function(t){t&&W.push("storyboardImages_",t);
return t}).finally(function(){delete W.pendingStoryboardImages_[y.url]}))};
_.E.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.E.timeToPixels_=function(y,W,V){y*=W;return V===void 0||V?y+"px":y};
_.E.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
uA.prototype.drawRuler_=uA.prototype.drawRuler_;uA.prototype.setUpCanvas_=uA.prototype.setUpCanvas_;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],uA.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],uA.prototype,"start",void 0);_.J([_.q({value:30}),_.R("design:type",Number)],uA.prototype,"end",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],uA.prototype,"visible",void 0);_.J([_.q(),_.R("design:type",Object)],uA.prototype,"player_",void 0);_.J([_.q(),_.R("design:type",Number)],uA.prototype,"tickSpacing",void 0);_.J([_.q(),_.R("design:type",Number)],uA.prototype,"windowSizeSec",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],uA.prototype,"rulerWidth",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],uA.prototype,"rulerShift",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],uA.prototype,"canvasReady_",void 0);_.J([_.q({value:function(){return[]}}),
_.R("design:type",Array)],uA.prototype,"storyboardImages_",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],uA.prototype,"disabled",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],uA.prototype,"forceRender_",void 0);_.J([_.q({value:1}),_.R("design:type",Number)],uA.prototype,"devicePixelRatio_",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],uA.prototype,"windowSpeed",void 0);
_.J([_.xA("visible","devicePixelRatio_","rulerWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uA.prototype,"setUpCanvas_",null);
_.J([_.xA("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.R("design:returntype")],uA.prototype,"drawRuler_",null);_.J([_.Zp({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],uA);
_.Y(uA,"yt-clip-creation-scrubber-canvas",function(){if(Tm3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Tm3=y}y=Tm3;return y},
{mode:2});var mrG;var MQx;var Sr=function(){var y=_.u.apply(this,arguments)||this;y.start=0;y.end=30;y.visible=!1;y.draggingLeft_=!1;y.draggingRight_=!1;y.draggingRuler_=!1;y.draggingWindow_=!1;y.seekableStart=0;y.seekableEnd=0;y.rulerWidth_=0;y.rulerShift_=0;y.windowSlideSpeed=0;y.disabled=!1;y.initialized=!1;y.durationAccessibilityLabel="";y.activeLoopRange_=!1;y.rulerDragMouseStart_=0;y.rulerDragRulerStart_=0;y.rulerDragStartTime_=0;y.rulerDragEndTime_=0;y.dragMouseLastX_=0;y.scrollInterval_=null;y.scrubberVe_=null;y.boundHandlers_=
{};y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return y};
_.p(Sr,_.u);_.E=Sr.prototype;
_.E.created=function(){var y=this;this.JSC$22321_playerEvents=new Map;this.JSC$22321_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22321_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22321_playerEvents.set("onStateChange",this.onStateChange_);var W={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(W).forEach(function(V){y.boundHandlers_[V]=W[V].bind(y)})};
_.E.attached=function(){this.activeLoopRange_=!1;_.i6(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.i6(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.ad(156731)};
_.E.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.i6(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.i6(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.E.onVisibilityChangedAction_=function(y){var W=this;y.visible&&!this.player_&&(y=_.Kn())&&y.getPlayerPromise().then(function(V){W.setPlayer(V)})};
_.E.setPlayer=function(y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22321_playerEvents);y&&(this.set("player_",y),this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$22321_playerEvents))};
_.E.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.E.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.E.beginHandleDrag_=function(y){this.disabled||(y.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=y.clientX,y.target===_.i6(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():y.target===_.i6(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.E.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.E.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.E.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.E.beginRulerDrag_=function(y){this.disabled||(y.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=y.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.E.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.E.beginWindowScroll_=function(){var y=this;this.scrollInterval_=setInterval(function(){var W=y.windowSlideSpeed;if(W=_.eJj(y.start,y.boundedRulerStartLimit_())?W-.1:_.eJj(y.end,y.boundedRulerEndLimit_())?W+.1:0){var V=y.capRulerOffset_(y.rulerShift_+W);V==y.rulerShift_?W=0:(y.set("rulerShift_",V),_.h1(y.hostElement,"set-fixed-length-range",{start:y.start+W,duration:y.end-y.start}))}y.set("windowSlideSpeed",W)},33)};
_.E.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.E.endDrag_=function(){this.logClick();var y=void 0;this.draggingRight_?y=this.end-1:this.draggingLeft_&&(y=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,y);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))};
_.E.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.E.updateRulerSize_=function(){this.set("rulerWidth_",_.i6(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.E.handleMouseDrag_=function(y){y.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(y):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(y):this.draggingWindow_&&this.handleWindowDrag_(y))};
_.E.handleRulerDrag_=function(y){y=this.pixelsToTime_(y.clientX-this.rulerDragMouseStart_);y=this.capRulerOffset_(this.rulerDragRulerStart_-y);this.set("rulerShift_",y);var W=this.rulerDragStartTime_-(this.rulerDragRulerStart_-y);_.h1(this.hostElement,"set-fixed-length-range",{start:W,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-y)-W})};
_.E.handleWindowDrag_=function(y){var W=y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=y.clientX;y=this.pixelsToTime_(W);_.h1(this.hostElement,"set-fixed-length-range",{start:this.start+y,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.E.capRulerOffset_=function(y){var W=this.seekableStart-this.pixelsToTime_(16),V=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(W,y),V)};
_.E.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.E.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.E.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.E.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.E.handleWindowHandleDrag_=function(y){var W=y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=y.clientX;y=this.pixelsToTime_(W);if(this.draggingLeft_){var V=this.start+y;var w=this.end}else this.draggingRight_&&(V=this.start,w=this.end+y);_.h1(this.hostElement,"set-range",{start:V,end:w,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.E.onVideoProgress_=function(y){this.disabled||(y=this.timeToPixels_(y-this.rulerShift_,this.tickSpacing_),_.i6(this.hostElement).querySelector("#playhead").style.transform="translateX("+y+")")};
_.E.onClipCreationDisable_=function(){this.endDrag_()};
_.E.timeToPixels_=function(y,W,V){y*=W;return V===void 0||V?y+"px":y};
_.E.pixelsToTime_=function(y){return y/this.tickSpacing_};
_.E.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.E.centerRuler_=function(y,W,V){this.set("rulerShift_",this.capRulerOffset_(y+(W-y)/2-V/2))};
_.E.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.E.updateLoopRange_=function(y,W,V,w,t,F,I){y&&(W&&w&&!V?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(y.pauseVideo(),y.seekTo(t,!1,void 0,void 0,50)):this.draggingRight_?(y.pauseVideo(),y.seekTo(F-.1,!1,void 0,void 0,50)):(I!==void 0?y.seekTo(I,!0,void 0,void 0,50):(W=y.getCurrentTime(),W<t||W>F?y.seekTo(t,!0,void 0,void 0,50):y.seekTo(W,!0,void 0,void 0,50)),y.playVideo()),y.setLoopRange({startTimeMs:t*1E3,endTimeMs:F*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(y.getCurrentTime())):
this.activeLoopRange_&&(y.setLoopRange(null),this.activeLoopRange_=!1))};
_.E.updateHandles_=function(){_.i6(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.i6(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.E.updateRuler_=function(){var y=this.end,W=this.start,V=this.draggableStartLimit_(),w=this.draggableEndLimit_();(W<V-.001||y>w+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.E.computeDurationLabel_=function(y,W){return y?y.replace("$clip_length",parseFloat(W).toFixed(1)):""};
_.E.computeDuration_=function(y,W){return this.isValidTime_(y)&&this.isValidTime_(W)&&y<W?W-y:0};
_.E.isValidTime_=function(y){return isNaN(parseFloat(y))||y<0?!1:this.player_?y>=this.seekableStart&&y<=this.seekableEnd:!0};
_.E.computeWindowSizeSec_=function(y,W,V){return Math.min((y||12E4)/1E3,V-W)};
_.E.computeTickSpacing_=function(y,W){return W?W/y:1};
_.E.onDragStateChanged_=function(){_.h1(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.E.centerRangeOnTime_=function(y){var W=this.duration;y=Nsj(y-W/2,W,this.seekableStart,this.seekableEnd);_.h1(this.hostElement,"set-fixed-length-range",{start:y.start,duration:y.end-y.start})};
_.E.nearlyLessThan_=function(y,W,V){return y+(V===void 0?1E-6:V)<W};
_.E.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var y=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(y,this.start)||this.nearlyLessThan_(this.end,y))&&this.centerRangeOnTime_(y)}};
_.E.onStateChange_=function(y){this.visible&&!this.disabled&&y==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.E.computeDragState_=function(y,W,V,w){return y?"left":W?"right":V?"ruler":w?"window":"none"};
_.E.logClick=function(){var y=_.Xn(),W=_.Hf();y&&W&&this.scrubberVe_&&(_.e("combine_ve_grafts")?_.U8(_.BC(),this.scrubberVe_,W):_.Fr(y,W,this.scrubberVe_),_.PE(y,this.scrubberVe_))};
Sr.prototype.onDragStateChanged_=Sr.prototype.onDragStateChanged_;Sr.prototype.updateRuler_=Sr.prototype.updateRuler_;Sr.prototype.updateHandles_=Sr.prototype.updateHandles_;Sr.prototype.onUpdateLoopRange=Sr.prototype.onUpdateLoopRange;Sr.prototype.onInitializedChanged_=Sr.prototype.onInitializedChanged_;Sr.prototype.onVisibleChanged_=Sr.prototype.onVisibleChanged_;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Sr.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",Object)],Sr.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"start",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"end",void 0);_.J([_.q({computed:"computeDuration_(start, end)"}),_.R("design:type",Number)],Sr.prototype,"duration",void 0);
_.J([_.q(),_.R("design:type",String)],Sr.prototype,"lengthTemplate",void 0);_.J([_.q({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.R("design:type",String)],Sr.prototype,"durationLabel",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"visible",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"player_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"draggingLeft_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"draggingRight_",void 0);
_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"draggingRuler_",void 0);_.J([_.q({value:!1}),_.R("design:type",Object)],Sr.prototype,"draggingWindow_",void 0);_.J([_.q({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.R("design:type",Number)],Sr.prototype,"tickSpacing_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"seekableStart",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"seekableEnd",void 0);
_.J([_.q(),_.R("design:type",Number)],Sr.prototype,"windowSizeMs",void 0);_.J([_.q({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.R("design:type",Number)],Sr.prototype,"windowSizeSec_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"rulerWidth_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"rulerShift_",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"windowSlideSpeed",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Sr.prototype,"disabled",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"initialized",void 0);_.J([_.q(),_.R("design:type",Object)],Sr.prototype,"durationAccessibilityLabel",void 0);_.J([_.q({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.R("design:type",String)],Sr.prototype,"dragState",void 0);
_.J([_.xA("visible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"onVisibleChanged_",null);_.J([_.xA("initialized"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"onInitializedChanged_",null);_.J([_.xA("player_","visible","disabled","initialized","start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"onUpdateLoopRange",null);
_.J([_.xA("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"updateHandles_",null);_.J([_.xA("start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"updateRuler_",null);
_.J([_.xA("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sr.prototype,"onDragStateChanged_",null);_.J([_.Zp({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Sr);
_.Y(Sr,"yt-clip-creation-scrubber-view",function(){if(MQx===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;mrG===void 0&&(mrG=document.createElement("template"));var w=mrG;V.call(W,w.content.cloneNode(!0),y.content.firstChild);MQx=y}y=MQx;return y},{mode:2});var Dy=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};y.startHighlightTimeout=0;y.endHighlightTimeout=0;return y};
_.p(Dy,_.u);_.E=Dy.prototype;_.E.attached=function(){var y=this;this.startInput.addEventListener("input",function(W){return y.handleStartInput_(W)});
this.endInput.addEventListener("input",function(W){return y.handleEndInput_(W)});
this.startInput.addEventListener("focusout",function(W){return y.handleStartBlur_(W)});
this.endInput.addEventListener("focusout",function(W){return y.handleEndBlur_(W)})};
_.E.setPlayer=function(y){this.set("player_",y)};
_.E.onSetFixedLengthRange_=function(y){var W=y.detail;y=W.start;var V=W.duration,w=W.startLimit;W=W.endLimit;w||(w=this.seekableStart_);W||(W=this.seekableEnd_);y=Nsj(y,V,w,W);this.start=y.start;this.end=y.end};
_.E.onSetRange_=function(y){var W=y.detail;y=W.start;var V=W.end,w=W.startLimit;W=W.endLimit;w||(w=this.seekableStart_);W||(W=this.seekableEnd_);if(y=Iy3(y,V,w,W,this.minLengthSec,this.maxLengthSec))this.start=y.start,this.end=y.end};
_.E.updateInputs_=function(){var y=this.end,W=this.start;this.startInput.focused||(this.startInput.value=mQ(W,!0));this.endInput.focused||(this.endInput.value=mQ(y,!0))};
_.E.handleStartInput_=function(y){y=Evv(y.target.value);if(y===null)this.set("startValid",!1);else{var W=this.end,V=Iy3(y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("endWillUpdate",V.end!==W),this.set("startValid",V.start===y)):this.set("startValid",!1)}};
_.E.handleEndInput_=function(y){y=Evv(y.target.value);if(y===null)this.set("endValid",!1);else{var W=this.start,V=gv3(this.start,y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("startWillUpdate",V.start!==W),this.set("endValid",V.end===y)):this.set("endValid",!1)}};
_.E.handleStartBlur_=function(y){y=Evv(y.target.value);y===null?this.startInput.value=mQ(this.start,!0):this.forceUpdateInputs_(Iy3(y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.E.handleEndBlur_=function(y){y=Evv(y.target.value);y===null?this.endInput.value=mQ(this.end,!0):this.forceUpdateInputs_(gv3(this.start,y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.E.forceUpdateInputs_=function(y){y&&(this.start=y.start,this.end=y.end);this.startInput.value=mQ(this.start,!0);this.endInput.value=mQ(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.E.initializeClipRange_=function(){var y=this.seekableEnd_,W=this.seekableStart_,V=this.visible_,w=this.player_;if(!w||!V||W===null||!y)this.set("initialized",!1);else if(!this.initialized){var t=w.getCurrentTime(),F=this.getDefaultLengthSec_();V=w.getVideoData();var I=w.getPlayerState()==1,P=V.isLive;F=Math.min(F,y-W);t=Math.max(0,t);y=P?gv3(t-F,t,W,y,this.minLengthSec,this.maxLengthSec):I?Nsj(t-F/2,F,W,y):Nsj(t,F,W,y);this.start=y.start;this.end=y.end;this.set("initialized",!0);V.isLive&&w.seekTo(y.start);
this.startInput.value=mQ(this.start,!0);this.endInput.value=mQ(this.end,!0)}};
_.E.onStartChanged_=function(){var y=this;_.h1(this.hostElement,"start-changed",{start:this.start});var W;isNaN((W=this.oldStart)!=null?W:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){y.set("highlightStart",!1);y.startHighlightTimeout=0;y.oldStart=y.start},3E3))};
_.E.onEndChanged_=function(){var y=this;_.h1(this.hostElement,"end-changed",{end:this.end});var W;isNaN((W=this.oldEnd)!=null?W:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){y.set("highlightEnd",!1);y.endHighlightTimeout=0;y.oldEnd=y.end},3E3))};
_.E.onVisibilityChangedAction_=function(y){var W=this;this.set("visible_",y.visible);this.visible_&&!this.player_&&(y=_.Kn())&&y.getPlayerPromise().then(function(V){W.setPlayer(V)})};
_.E.computeMinLengthSec_=function(y){return y/1E3||5};
_.E.computeMaxLengthSec_=function(y){return y/1E3||60};
_.E.computeDefaultLengthSec_=function(y){return y/1E3};
_.E.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.E.computeSeekableStart_=function(y,W){return y&&W?y.getProgressState(1).seekableStart:0};
_.E.computeSeekableEnd_=function(y,W){return y&&W?y.getProgressState(1).seekableEnd:0};
_.E.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.E.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.E.onDragState_=function(y){this.set("highlightStart",y.detail.startChanging);this.set("highlightEnd",y.detail.endChanging)};
Dy.prototype.onDragState_=Dy.prototype.onDragState_;Dy.prototype.onEndChanged_=Dy.prototype.onEndChanged_;Dy.prototype.onStartChanged_=Dy.prototype.onStartChanged_;Dy.prototype.initializeClipRange_=Dy.prototype.initializeClipRange_;Dy.prototype.updateInputs_=Dy.prototype.updateInputs_;Dy.prototype.onSetRange_=Dy.prototype.onSetRange_;Dy.prototype.onSetFixedLengthRange_=Dy.prototype.onSetFixedLengthRange_;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dy.prototype,"data",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],Dy.prototype,"start",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],Dy.prototype,"startValid",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dy.prototype,"startWillUpdate",void 0);_.J([_.q({value:30}),_.R("design:type",Number)],Dy.prototype,"end",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],Dy.prototype,"endValid",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dy.prototype,"endWillUpdate",void 0);_.J([_.q({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.R("design:type",Number)],Dy.prototype,"minLengthSec",void 0);
_.J([_.q({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.R("design:type",Number)],Dy.prototype,"maxLengthSec",void 0);_.J([_.q({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.R("design:type",Number)],Dy.prototype,"defaultLengthSec",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Dy.prototype,"visible_",void 0);_.J([_.q(),_.R("design:type",Object)],Dy.prototype,"player_",void 0);
_.J([_.q({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.R("design:type",Number)],Dy.prototype,"seekableStart_",void 0);_.J([_.q({computed:"computeSeekableEnd_(player_, visible_)"}),_.R("design:type",Number)],Dy.prototype,"seekableEnd_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Dy.prototype,"initialized",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dy.prototype,"disabled",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dy.prototype,"highlightStart",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Dy.prototype,"highlightEnd",void 0);_.J([_.s$("#start"),_.R("design:type",HTMLInputElement)],Dy.prototype,"startInput",void 0);_.J([_.s$("#end"),_.R("design:type",HTMLInputElement)],Dy.prototype,"endInput",void 0);
_.J([_.l6("set-fixed-length-range"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Dy.prototype,"onSetFixedLengthRange_",null);_.J([_.l6("set-range"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Dy.prototype,"onSetRange_",null);_.J([_.xA("start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dy.prototype,"updateInputs_",null);
_.J([_.xA("player_","visible_","seekableStart_","seekableEnd_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dy.prototype,"initializeClipRange_",null);_.J([_.xA("start"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dy.prototype,"onStartChanged_",null);_.J([_.xA("end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dy.prototype,"onEndChanged_",null);
_.J([_.l6("clips-drag-state"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Dy.prototype,"onDragState_",null);_.J([_.Zp({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Dy);
_.Y(Dy,"yt-clip-creation-scrubber-renderer",function(){if(fIu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;iqu===void 0&&(iqu=document.createElement("template"));var w=iqu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);fIu=y}y=fIu;return y},{mode:2});var lA=function(){var y=_.u.apply(this,arguments)||this;y.player_=null;y.JSC$22335_playerEvents=new Map;y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return y};
_.p(lA,_.u);_.E=lA.prototype;_.E.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"}}}};
_.E.created=function(){this.JSC$22335_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22335_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22335_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22335_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.E.detached=function(){this.setPlayer(null)};
_.E.onVisibilityChangedAction_=function(y){var W=this,V;if((V=this.data)==null?0:V.externalVideoId){var w;this.videoId=(w=this.data)==null?void 0:w.externalVideoId}this.getPlayer().then(function(t){if(y.visible)W.returnTime=t.getCurrentTime(),W.isAtLiveHead=t.getProgressState().isAtLiveHead;else{var F=W.returnTime;W.isAtLiveHead&&(F=Number.POSITIVE_INFINITY);t.seekTo(F,void 0,void 0,void 0,51)}})};
_.E.getPlayer=function(){var y=this;if(!this.player_){var W=_.Kn();if(W)return W.getPlayerPromise().then(function(V){y.setPlayer(V);return V})}return Promise.resolve(this.player_)};
_.E.setPlayer=function(y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22335_playerEvents);if(y){this.player_=y;var W;((W=this.data)==null?0:W.externalVideoId)||this.set("videoId",y.getVideoData().video_id||"");var V;(y==null?void 0:(V=y.getPresentingPlayerType)==null?void 0:V.call(y))===2&&(this.set("isAdPlaying",!0),_.ow(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$22335_playerEvents)}};
_.E.ready=function(){_.i6(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.E.onTitleChanged_=function(y){this.set("titleValue",y.detail.title)};
_.E.onStartChanged_=function(y){this.set("start",y.detail.start)};
_.E.onEndChanged_=function(y){this.set("end",y.detail.end)};
_.E.onTitleValidChanged_=function(y){this.set("titleValid",y.detail.valid)};
_.E.onStartValidChanged_=function(y){this.set("startValid",y.detail.valid)};
_.E.onEndValidChanged_=function(y){this.set("endValid",y.detail.valid)};
_.E.onVideoDataChange_=function(){var y;if((y=this.data)==null||!y.externalVideoId){var W;this.set("videoId",((W=this.player_)==null?void 0:W.getVideoData().video_id)||"")}};
_.E.computeFormValid_=function(y,W,V,w){return!!(y&&W&&V&&w)};
_.E.computeCancelButton_=function(y,W,V){return y&&_.h(y,_.wz)?{buttonRenderer:Object.assign({},_.h(y,_.wz),{isDisabled:W||V})}:null};
_.E.computeSubmitButton_=function(y,W,V){return y&&_.h(y,_.wz)?{buttonRenderer:Object.assign({},_.h(y,_.wz),{command:void 0,isDisabled:!this.formValid||W||V})}:null};
_.E.computeSubmitCommand_=function(y){return y||null};
_.E.onSubmit_=function(y){var W=this;y.stopPropagation();y.preventDefault();this.submitCommand_&&(y={},y.comment_text=this.titleValue,y.clip_external_video_id=this.videoId,y.clip_offset_ms=parseInt(this.start*1E3,10),y.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.i5(this.hostElement,[this.submitCommand_,y]).then(function(){W.set("isLoading_",!1)},function(){W.set("isLoading_",!1)}))};
_.E.playerAdStartHandler_=function(){_.ow(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.E.playerAdEndHandler_=function(){_.ow(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.E.onVideoProgress_=function(){var y=this;this.getPlayer().then(function(W){var V,w=(W==null?void 0:(V=W.getPresentingPlayerType)==null?void 0:V.call(W))===2;y.isAdPlaying!==w&&(w?y.playerAdStartHandler_():y.playerAdEndHandler_())})};
lA.prototype.onEndValidChanged_=lA.prototype.onEndValidChanged_;lA.prototype.onStartValidChanged_=lA.prototype.onStartValidChanged_;lA.prototype.onTitleValidChanged_=lA.prototype.onTitleValidChanged_;lA.prototype.onEndChanged_=lA.prototype.onEndChanged_;lA.prototype.onStartChanged_=lA.prototype.onStartChanged_;lA.prototype.onTitleChanged_=lA.prototype.onTitleChanged_;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],lA.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",Object)],lA.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lA.prototype,"data",void 0);_.J([_.q({value:""}),_.R("design:type",String)],lA.prototype,"titleValue",void 0);
_.J([_.q({value:!1}),_.R("design:type",Boolean)],lA.prototype,"titleValid",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],lA.prototype,"start",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],lA.prototype,"startValid",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],lA.prototype,"end",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],lA.prototype,"endValid",void 0);_.J([_.q({value:""}),_.R("design:type",String)],lA.prototype,"videoId",void 0);
_.J([_.q({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.R("design:type",Boolean)],lA.prototype,"formValid",void 0);_.J([_.q({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.R("design:type",Object)],lA.prototype,"submitButton_",void 0);_.J([_.q({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.R("design:type",Object)],lA.prototype,"submitCommand_",void 0);
_.J([_.q({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.R("design:type",Object)],lA.prototype,"cancelButton_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],lA.prototype,"isLoading_",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],lA.prototype,"isAdPlaying",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],lA.prototype,"returnTime",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],lA.prototype,"isAtLiveHead",void 0);
_.J([_.l6("title-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onTitleChanged_",null);_.J([_.l6("start-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onStartChanged_",null);_.J([_.l6("end-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onEndChanged_",null);
_.J([_.l6("title-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onTitleValidChanged_",null);_.J([_.l6("start-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onStartValidChanged_",null);_.J([_.l6("end-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],lA.prototype,"onEndValidChanged_",null);
_.J([_.Zp({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],lA);
_.Y(lA,"yt-clip-creation-renderer",function(){if(pzM===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Kf1===void 0&&(Kf1=document.createElement("template"));var w=Kf1;V.call(W,w.content.cloneNode(!0),y.content.firstChild);pzM=y}y=pzM;return y},{mode:2});var xv=function(){return _.u.apply(this,arguments)||this};
_.p(xv,_.u);xv.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"}}}};
xv.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(y){return y.hasOwnProperty("clipCreationRenderer")})&&_.ow(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
xv.prototype.onPanelContentVisibleChanged=xv.prototype.onPanelContentVisibleChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],xv.prototype,"ytVisibilityBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],xv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],xv.prototype,"panelContentVisible",void 0);_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xv.prototype,"onPanelContentVisibleChanged",null);_.J([_.k({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],xv);
_.Y(xv,"ytd-clip-section-renderer",function(){if(eiu!==void 0)return eiu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return eiu=y},{mode:1});var qE_;var kv=function(){return _.u.apply(this,arguments)||this};
_.p(kv,_.u);_.E=kv.prototype;
_.E.onKeyDown=function(y){if(this.snippetElements.length!==0&&(y=y.keyCode,y===38||y===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);y===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.QW(this.highlightedIndex,-1,this.snippetElements.length);y=this.snippetElements.length;var W=this.highlightedIndex%y;this.highlightedIndex=W*y<0?W+y:W;y=this.snippetElements[this.highlightedIndex];this.highlightSnippet(y);this.ensureVisible(y)}};
_.E.onKeyUp=function(y){var W=this;RHm(y)&&(y.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.HU.cancelJob(this.inputTimerId),this.inputTimerId=_.HU.addLowPriorityJob(function(){W.typedValue&&(W.fetchSnippets(W.typedValue),W.logInputGesture(W.data))},1E3))};
_.E.onClick=function(y){(y=_.CtK(y.target,null,"snippet-item"))&&this.selectSnippet(y)};
_.E.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.E.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.E.ready=function(){var y=this;this.inputElement.addEventListener("focus",function(){y.snippetsWrapper.style.removeProperty("display")})};
_.E.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.E.getSourceTimelines=function(){if(!this.data)return[];var y=[];if(this.data.searchInVideoSources)for(var W=_.N(this.data.searchInVideoSources),V=W.next();!V.done;V=W.next())V=V.value,V==="SEARCH_IN_VIDEO_SOURCE_ASR"?y.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):V==="SEARCH_IN_VIDEO_SOURCE_OCR"&&y.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return y};
_.E.fetchSnippets=function(y){var W=_.ow(this.hostElement,"yt-get-current-video-id-action")[0],V=this.getSourceTimelines();y={getSearchInVideoCommand:{externalVideoId:W,query:y!=null?y:"",sourceTimelines:V},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})};
_.E.filterSnippets=function(y,W){var V=this;if(W){this.filteredSnippets=(0,_.Gc.unsafeClone)(y);var w=RegExp(_.TDt(W),"i");this.filteredSnippets=this.filteredSnippets.filter(function(I){return w.test(V.ytRendererBehavior.getSimpleString(I.snippet))});
y=_.N(this.filteredSnippets);for(var t=y.next();!t.done;t=y.next()){t=t.value;var F=this.ytRendererBehavior.getSimpleString(t.snippet);t.snippet={runs:[{text:F.substring(0,F.toLowerCase().indexOf(W))},{text:F.substring(F.toLowerCase().indexOf(W),F.toLowerCase().indexOf(W)+W.length),bold:!0},{text:F.substring(F.toLowerCase().indexOf(W)+W.length,F.length)}]}}}else this.filteredSnippets=y};
_.E.onUpdateSearchInVideoResults=function(y){if(!(this.snippets.length>0)){var W,V,w;if((w=(W=_.h(y,yMC))==null?void 0:(V=W.results)==null?void 0:V.length)!=null&&w){var t;this.filteredSnippets=this.snippets=((t=_.h(y,yMC))==null?void 0:t.results).map(function(F){var I,P,C;return{startMs:F==null?void 0:(I=F.searchInVideoResultRenderer)==null?void 0:I.startMs,startTimeText:F==null?void 0:(P=F.searchInVideoResultRenderer)==null?void 0:P.startTimeText,snippet:F==null?void 0:(C=F.searchInVideoResultRenderer)==
null?void 0:C.snippet}})}}};
_.E.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};
_.E.highlightSnippet=function(y){y.classList.add("highlighted")};
_.E.removeSnippetHighlight=function(y){y.classList.remove("highlighted")};
_.E.selectSnippet=function(y){this.typedValue=String(y.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(y);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.E.ensureVisible=function(y){var W=this.snippetsWrapper.scrollTop,V=W+this.snippetsWrapper.clientHeight,w=y.offsetTop-this.snippetsWrapper.offsetTop;y=w+y.clientHeight;w<W?this.snippetsWrapper.scrollTop-=W-w:y>V&&(this.snippetsWrapper.scrollTop+=y-V)};
_.E.seekPlayer=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1){if(!y)return w.jumpTo(0);W=Number(y.dataset.startOffset);return w.yield(_.pn().getPlayerPromise(),3)}V=w.yieldResult;V.seekTo(W/1E3,!0);V.wakeUpControls();_.B7(w)})};
_.E.logInputGesture=function(y){var W=_.Xn();W&&(y==null?0:y.trackingParams)&&_.vE(W,_.nD(y.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.E.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("typed-value-changed",this.typedValue))};
_.E.updateTypedValueFromBinding=function(y){this.typedValue=y.currentTarget.value};
kv.prototype.typedValueChangedForBinding=kv.prototype.typedValueChangedForBinding;kv.prototype.dataChanged=kv.prototype.dataChanged;kv.prototype.panelContentVisibleChanged=kv.prototype.panelContentVisibleChanged;kv.prototype.onClick=kv.prototype.onClick;kv.prototype.onKeyUp=kv.prototype.onKeyUp;kv.prototype.onKeyDown=kv.prototype.onKeyDown;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kv.prototype,"data",void 0);_.J([_.q({value:[]}),_.R("design:type",Array)],kv.prototype,"snippets",void 0);_.J([_.q({value:[]}),_.R("design:type",Array)],kv.prototype,"filteredSnippets",void 0);_.J([_.q({value:[]}),_.R("design:type",Array)],kv.prototype,"snippetElements",void 0);
_.J([_.s$("#siv-input"),_.R("design:type",HTMLElement)],kv.prototype,"inputElement",void 0);_.J([_.s$("#siv-snippets-wrapper"),_.R("design:type",HTMLElement)],kv.prototype,"snippetsWrapper",void 0);_.J([_.q(),_.R("design:type",String)],kv.prototype,"typedValue",void 0);_.J([_.q({value:-1}),_.R("design:type",Number)],kv.prototype,"highlightedIndex",void 0);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[_.ks]),_.R("design:returntype")],kv.prototype,"onKeyDown",null);
_.J([_.l6("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[_.ks]),_.R("design:returntype")],kv.prototype,"onKeyUp",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],kv.prototype,"onClick",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],kv.prototype,"panelContentVisible",void 0);
_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kv.prototype,"panelContentVisibleChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kv.prototype,"dataChanged",null);_.J([_.xA("typedValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kv.prototype,"typedValueChangedForBinding",null);
_.J([_.k({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],kv);
_.Y(kv,"ytd-search-in-video-renderer",function(){if(qE_!==void 0)return qE_;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qE_=y},{mode:1});var Urx;var sL=function(){return _.u.apply(this,arguments)||this};
_.p(sL,_.u);sL.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
sL.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]]"}}}}}};
sL.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var y,W,V,w,t=(W=_.h((y=this.data)==null?void 0:y.onClickCommand,_.Jr))==null?void 0:(V=W.item)==null?void 0:(w=V.notificationTextRenderer)==null?void 0:w.successResponseText;t&&_.D0u(this.hostElement,t)}};
_.CM.Object.defineProperties(sL.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return this.isProductPlaceholder&&((y=this.data)==null?void 0:(W=y.hiddenProductOptions)==null?void 0:W.showDropCountdown)&&!!((V=this.data)==null?0:(w=V.hiddenProductOptions)==null?0:w.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var y;return!this.isProductPlaceholder&&!((y=this.data)==null?0:y.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null?0:y.priceReplacementText)&&!((W=this.data)==null||!W.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],sL.prototype,"componentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sL.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"useCenterLayoutContainer",null);_.J([_.q({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],sL.prototype,"buttonOverride",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"isProductPlaceholder",null);
_.J([_.M("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"showDropCountdown",null);_.J([_.M("isProductPlaceholder","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"showBrandName",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"showPriceReplacementText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"showPrice",null);
_.J([_.M("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],sL.prototype,"showMetadata",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],sL);
_.Y(sL,"ytd-product-list-item-renderer",function(){if(Urx!==void 0)return Urx;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Urx=y},{mode:1});var u6h;var AJ=function(){return _.u.apply(this,arguments)||this};
_.p(AJ,_.u);AJ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
AJ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
AJ.prototype.panelContentVisibleChanged=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return y.playerApi?V.jumpTo(2):V.yield(_.pn().getPlayerPromise(),3);V.nextAddress!=2&&(y.playerApi=V.yieldResult);(W=y.playerApi)==null||W.productsInVideoVisibilityUpdated(!!y.panelContentVisible);_.B7(V)})};
AJ.prototype.panelContentVisibleChanged=AJ.prototype.panelContentVisibleChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],AJ.prototype,"panelContentVisible",void 0);_.J([_.q(),_.R("design:type",Object)],AJ.prototype,"data",void 0);
_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],AJ.prototype,"panelContentVisibleChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],AJ);
_.Y(AJ,"ytd-product-list-renderer",function(){if(u6h!==void 0)return u6h;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return u6h=y},{mode:1});var SEx;var Yv=function(){var y=_.u.apply(this,arguments)||this;y.hideTimestamps=!!_.SL("hide-transcript-timestamps");y.currentCueIndex=-1;y.flatCues=[];y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};y.TEST_ONLY={getFlatCues:function(){return y.flatCues}};
return y};
_.p(Yv,_.u);_.E=Yv.prototype;_.E.hideTimestampsChanged=function(){_.ui("hide-transcript-timestamps",this.hideTimestamps)};
_.E.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.E.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.E.dataChanged=function(){var y;if((y=this.data)!=null&&y.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;y=_.N(this.data.cueGroups);for(var W=y.next();!W.done;W=y.next()){W=_.N(_.h(W.value,W0q).cues);for(var V=W.next();!V.done;V=W.next())this.flatCues.push(Number(_.h(V.value,V7C).startOffsetMs))}}};
_.E.onYtPlayerTimeChanged=function(y){if(!(y<0)){for(var W=this.currentCueIndex,V=W;;){var w=V>=0?this.flatCues[V]/1E3:-1;if(y+.5<w)--V;else if(w=V+1<this.flatCues.length?this.flatCues[V+1]/1E3:Infinity,y+.5>w)V+=1;else break}V!==W&&(W>=0&&((y=this.getCueElement(W))&&y.classList.remove("active"),(W=this.getCueGroupElement(W))&&W.classList.remove("active")),(W=this.getCueElement(V))&&W.classList.add("active"),(W=this.getCueGroupElement(V))&&W.classList.add("active"),this.currentCueIndex=V,this.isHovered||
this.scrollElementToTop(V))}};
_.E.scrollElementToTop=function(y){y=this.getCueElement(y>=3?y-3:0);this.hostElement.scrollTop=Math.min(y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.E.getCueElement=function(y){return _.i6(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[y]+'"]')};
_.E.getCueGroupElement=function(y){return(y=this.getCueElement(y))&&y.parentElement?y.parentElement.parentElement:null};
_.E.onTap=function(y){var W=_.vW(y);y.target.classList.contains("cue")&&this.seekCueElement(W)};
_.E.onKeyPress=function(y){y.keyCode==13&&(y=_.CtK(y.target,null,"cue"))&&this.seekCueElement(y)};
_.E.seekCueElement=function(y){y=Number(y.getAttribute("start-offset"));_.ow(this.hostElement,"yt-transcript-player-seek",[y/1E3])};
_.E.onMouseEnter=function(){this.isHovered=!0};
_.E.onMouseLeave=function(){this.isHovered=!1};
Yv.prototype.onMouseLeave=Yv.prototype.onMouseLeave;Yv.prototype.onMouseEnter=Yv.prototype.onMouseEnter;Yv.prototype.onKeyPress=Yv.prototype.onKeyPress;Yv.prototype.onTap=Yv.prototype.onTap;Yv.prototype.dataChanged=Yv.prototype.dataChanged;Yv.prototype.hideTimestampsChanged=Yv.prototype.hideTimestampsChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yv.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Yv.prototype,"hideTimestamps",void 0);_.J([_.q(),_.R("design:type",Boolean)],Yv.prototype,"isHovered",void 0);_.J([_.xA("hideTimestamps"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yv.prototype,"hideTimestampsChanged",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yv.prototype,"dataChanged",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Yv.prototype,"onTap",null);_.J([_.l6("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Yv.prototype,"onKeyPress",null);
_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yv.prototype,"onMouseEnter",null);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yv.prototype,"onMouseLeave",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Yv);
_.Y(Yv,"ytd-transcript-body-renderer",function(){if(SEx!==void 0)return SEx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return SEx=y},{mode:1});var DrZ;var Bb=function(){var y=_.u.apply(this,arguments)||this;y.darkerPanels=_.e("web_watch_darker_panels");return y};
_.p(Bb,_.u);Bb.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bb.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Bb.prototype,"darkerPanels",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Bb);
_.Y(Bb,"ytd-transcript-footer-renderer",function(){if(DrZ!==void 0)return DrZ;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return DrZ=y},{mode:1});var lI3;var xru;var JJ=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.showClearButton=!1;return y};
_.p(JJ,_.u);_.E=JJ.prototype;_.E.handleInput=function(y){var W=this;y.target.value.length?_.NM(this,"ytdTranscriptSearchBoxSearch",function(){W.emitSearchEvent(y)},500):(_.dhy(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=y.target.value.length>0};
_.E.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.E.handleClick=function(){var y,W=(y=this.data)==null?void 0:y.trackingParams;W&&_.DN(_.BC(),W)};
_.E.handleClear=function(){_.dhy(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var y,W,V=(W=_.h((y=this.data)==null?void 0:y.clearButton,_.wz))==null?void 0:W.trackingParams;V&&_.DN(_.BC(),V);this.clear()};
_.E.emitSearchEvent=function(y){_.h1(this.hostElement,"yt-transcript-search-box-search",{query:y.target.value});var W,V;(y=(V=_.h((W=this.data)==null?void 0:W.searchButton,_.wz))==null?void 0:V.trackingParams)&&_.DN(_.BC(),y)};
_.E.emitClearEvent=function(){_.h1(this.hostElement,"yt-transcript-search-box-clear")};
_.CM.Object.defineProperties(JJ.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.i6(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JJ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],JJ.prototype,"systemIcons",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],JJ);
_.Y(JJ,"ytd-transcript-search-box-renderer",function(){if(xru!==void 0)return xru;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xru=y},{mode:1});var kRh;var ssG;var Rm=function(){return _.u.apply(this,arguments)||this};
_.p(Rm,_.u);Rm.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var y,W;this.sectionHeaderAriaLabel=(y=this.data)==null?void 0:(W=y.accessibility)==null?void 0:W.accessibilityData.label}};
Rm.prototype.fireSelectedEvent=function(y){_.h1(this.hostElement,"ytd-transcript-section-header",{startMs:y})};
Rm.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Rm.prototype.handleKeyPress=function(y){this.data&&y.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.CM.Object.defineProperties(Rm.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.enableTappableTranscriptHeader)!=null?W:!1}}});
Rm.prototype.dataChanged=Rm.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],Rm.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],Rm.prototype,"sectionHeaderAriaLabel",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rm.prototype,"enableTappableTranscriptHeader",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rm.prototype,"dataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Rm);
_.Y(Rm,"ytd-transcript-section-header-renderer",function(){if(ssG!==void 0)return ssG;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ssG=y},{mode:1});var AAh;var YEG;var jr=function(){var y=_.u.apply(this,arguments)||this;y.isEditMode=!1;y.touchCaptionsEnabled=!1;y.deleteCaptionCorrectionPopupCommand=null;y.voteCaptionCorrectionPopupCommand=null;y.roundedContainer=!0;y.mouseOver=!1;y.textChanged=!1;y.messages={suggest_correction:_.u5("suggest_correction",void 0,"Edit caption"),suggested_caption:_.u5("suggested_caption",void 0,"Suggested caption"),submit_correction:_.u5("submit_correction",void 0,"Submit for review"),cancel_correction:_.u5("cancel_correction",
void 0,"Cancel"),replay_segment:_.u5("replay_segment",void 0,"Re-play segment"),delete_correction:_.u5("delete_correction",void 0,"Delete correction")};y.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return y};
_.p(jr,_.u);_.E=jr.prototype;_.E.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)};
_.E.handleDelete=function(y){if(this.deleteCaptionCorrectionPopupCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);y.stopPropagation()}};
_.E.handleSubmit=function(y){if(this.data&&this.data.submitCaptionCorrectionCommand&&(y.stopPropagation(),this.textChanged)){var W;y=(W=_.h(this.data.submitCaptionCorrectionCommand,_.rS6))==null?void 0:W.params;W=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:y,correctionText:String(this.ironTextAreaElement.value),originalText:_.OT(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(W);this.isEditMode=!1}};
_.E.handleUpdateSegmentText=function(y){(y=_.h(y,hZW))&&y.targetId&&this.data&&y.targetId===this.data.targetId&&(y.userCorrection&&(this.editedText=y.userCorrection),y.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.OT(this.data.snippet)),y.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=y.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=y.voteCaptionCorrectionPopupCommand?
y.voteCaptionCorrectionPopupCommand:null,y.accessibility&&(this.segmentAriaLabel=y.accessibility.accessibilityData.label))};
_.E.handleCancel=function(y){this.isEditMode=!1;y.stopPropagation();this.logClientVe(159409)};
_.E.handleEditSegmentCommand=function(y){(y=_.h(y,eZe))&&y.targetId&&this.data&&y.targetId===this.data.targetId&&this.handleEdit()};
_.E.handleEditButtonClick=function(y){this.data&&(this.handleEdit(),y.stopPropagation())};
_.E.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var y;(y=this.ironTextAreaElement.textarea)==null||y.focus();this.logClientVe(159407)}};
_.E.handleMouseEnter=function(){this.mouseOver=!0};
_.E.handleMouseLeave=function(){this.mouseOver=!1};
_.E.handleReplay=function(y){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),y.stopPropagation(),this.logClientVe(159408))};
_.E.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()))};
_.E.handleKeypress=function(y){this.data&&(this.isEditMode?y.stopPropagation():this.isEnterPress(y)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(y)&&this.logClientVe(138758))};
_.E.handleTextboxClick=function(y){y.stopPropagation()};
_.E.handleTextboxKeydown=function(y){this.isControlEnterPress(y)?this.handleSubmit(y):y.key==="Escape"&&this.handleCancel(y)};
_.E.handleTextboxKeyup=function(){this.textChanged=_.OT(this.latestText)!==String(this.ironTextAreaElement.value)};
_.E.fireSelectedEvent=function(y){_.h1(this.hostElement,"yt-transcript-segment-selected",{startMs:y})};
_.E.fireReplayEvent=function(y,W){_.h1(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(y-100,0),endMs:W})};
_.E.fireEditEvent=function(y,W){_.h1(this.hostElement,"yt-transcript-segment-edit",{startMs:y,endMs:W})};
_.E.isEnterPress=function(y){return y.key==="Enter"||y.code==="Enter"||y.code==="NumpadEnter"||y.keyCode===13?!0:!1};
_.E.isControlEnterPress=function(y){var W=y.key==="Enter"||y.code==="Enter"||y.code==="NumpadEnter"||y.keyCode===13;return(y.ctrlKey||y.metaKey)&&W};
_.E.isCopyPress=function(y){var W=y.ctrlKey;return y.key==="c"&&W};
_.E.logClick=function(){var y,W=(y=this.data)==null?void 0:y.trackingParams;W&&_.DN(_.BC(),W)};
_.E.logClientVe=function(y){_.Sn(_.BC(),_.ad(y))};
_.CM.Object.defineProperties(jr.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}}});
jr.prototype.handleMouseLeave=jr.prototype.handleMouseLeave;jr.prototype.handleMouseEnter=jr.prototype.handleMouseEnter;jr.prototype.dataChanged=jr.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],jr.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],jr.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],jr.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jr.prototype,"isEditMode",void 0);_.J([_.q(),_.R("design:type",Object)],jr.prototype,"touchCaptionsEnabled",void 0);_.J([_.q(),_.R("design:type",Object)],jr.prototype,"editedText",void 0);_.J([_.q(),_.R("design:type",Object)],jr.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.J([_.q(),_.R("design:type",Object)],jr.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.J([_.q(),_.R("design:type",String)],jr.prototype,"segmentAriaLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jr.prototype,"roundedContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jr.prototype,"mouseOver",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],jr.prototype,"textChanged",void 0);_.J([_.q(),_.R("design:type",Object)],jr.prototype,"messages",void 0);
_.J([_.s$("#suggestion"),_.R("design:type",Object)],jr.prototype,"ironTextAreaElement",void 0);_.J([_.M("data","editedText"),_.R("design:type",Object),_.R("design:paramtypes",[])],jr.prototype,"latestText",null);_.J([_.M("touchCaptionsEnabled","isEditMode"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jr.prototype,"enableEditButton",null);
_.J([_.M("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jr.prototype,"enableUndoButton",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jr.prototype,"dataChanged",null);_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jr.prototype,"handleMouseEnter",null);
_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jr.prototype,"handleMouseLeave",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],jr);
_.Y(jr,"ytd-transcript-segment-renderer",function(){if(YEG!==void 0)return YEG;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YEG=y},{mode:1});var $v=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};y.isError=!1;y.darkerPanels=_.e("web_watch_darker_panels");y.useParentMaxHeight=_.e("web_watch_transscript_use_parent_max_height");y.segmentOffsets=[];y.segmentIndex=-1;return y};
_.p($v,_.u);_.E=$v.prototype;_.E.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"}}}}};
_.E.segmentsChanged=function(){this.updateOffsets()};
_.E.onYtPlayerTimeChanged=function(y){for(var W=this.segmentIndex,V=W;;){if(V>=0){var w=this.segmentOffsets[V].start;var t=this.segmentOffsets[V].isAutoScrollable}else w=-1,t=!0;var F=y+.5;if(!t){w=V+1<this.segmentOffsets.length?this.segmentOffsets[V+1].start:Infinity;if(F>=w){V+=1;continue}V=-1;break}if(F<w)w=V-1>=0&&this.segmentOffsets[V-1].isAutoScrollable,t=V===0||w?1:2,V-=t;else if(t=V+1<this.segmentOffsets.length&&this.segmentOffsets[V+1].isAutoScrollable?1:2,w=V+t<this.segmentOffsets.length?
this.segmentOffsets[V+t].start:Infinity,F>w)V+=t;else{if(V<0)break;V<this.segmentOffsets.length&&F>this.segmentOffsets[V].end&&(V=-1);break}}if(W!==V){if(W>=0){var I;(I=this.getSegmentElement(W))==null||I.classList.remove("active")}this.segmentIndex=V;if(!(V<0)){var P;(P=this.getSegmentElement(V))==null||P.classList.add("active");this.isHovered||this.scrollElementToTop(V)}}};
_.E.handleSegmentEdit=function(y){y.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=y.target,_.ow(this.hostElement,"yt-transcript-player-edit",[y.detail.startMs/1E3,y.detail.endMs/1E3]))};
_.E.handleSegmentSelected=function(y){_.ow(this.hostElement,"yt-transcript-player-seek",[y.detail.startMs/1E3])};
_.E.handleSegmentReplay=function(y){_.ow(this.hostElement,"yt-transcript-player-replay",[y.detail.startMs/1E3,y.detail.endMs/1E3])};
_.E.handleSectionHeaderSelected=function(y){_.ow(this.hostElement,"yt-transcript-player-seek",[y.detail.startMs/1E3])};
_.E.onMouseEnter=function(){this.isHovered=!0};
_.E.onMouseLeave=function(){this.isHovered=!1};
_.E.onRetryButtonClick=function(){_.h1(this.hostElement,"transcript-retry-button-click")};
_.E.getSegmentElement=function(y){return _.i6(this.hostElement).querySelector(":nth-child("+(y+1)+")")};
_.E.scrollElementToTop=function(y){y=this.getSegmentElement(y>=2?y-2:0);this.hostElement.scrollTop=Math.min(y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.E.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(y){var W,V=(W=y.transcriptSegmentRenderer)!=null?W:y.transcriptSectionHeaderRenderer;return{start:Number(V.startMs)/1E3,end:Number(V.endMs)/1E3,isAutoScrollable:y.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.E.clearHighlightedSegments=function(){var y=_.i6(this.hostElement);y=_.N(y.querySelectorAll("ytd-transcript-segment-renderer"));for(var W=y.next();!W.done;W=y.next())W.value.classList.remove("active")};
_.CM.Object.defineProperties($v.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.searchResultSegments)||((W=this.data)==null?void 0:W.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$v.prototype.onMouseLeave=$v.prototype.onMouseLeave;$v.prototype.onMouseEnter=$v.prototype.onMouseEnter;$v.prototype.handleSectionHeaderSelected=$v.prototype.handleSectionHeaderSelected;$v.prototype.handleSegmentReplay=$v.prototype.handleSegmentReplay;$v.prototype.handleSegmentSelected=$v.prototype.handleSegmentSelected;$v.prototype.handleSegmentEdit=$v.prototype.handleSegmentEdit;$v.prototype.segmentsChanged=$v.prototype.segmentsChanged;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$v.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],$v.prototype,"isError",void 0);
_.J([_.q(),_.R("design:type",Object)],$v.prototype,"noResultLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$v.prototype,"darkerPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$v.prototype,"useParentMaxHeight",void 0);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],$v.prototype,"segments",null);
_.J([_.M("segments","noResultLabel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],$v.prototype,"displayNoResults",null);_.J([_.xA("segments"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$v.prototype,"segmentsChanged",null);_.J([_.l6("yt-transcript-segment-edit"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],$v.prototype,"handleSegmentEdit",null);
_.J([_.l6("yt-transcript-segment-selected"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],$v.prototype,"handleSegmentSelected",null);_.J([_.l6("yt-transcript-segment-replay"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],$v.prototype,"handleSegmentReplay",null);
_.J([_.l6("ytd-transcript-section-header"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],$v.prototype,"handleSectionHeaderSelected",null);_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$v.prototype,"onMouseEnter",null);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$v.prototype,"onMouseLeave",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$v);
_.Y($v,"ytd-transcript-segment-list-renderer",function(){if(AAh!==void 0)return AAh;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AAh=y},{mode:1});var nC=function(){var y=_.u.apply(this,arguments)||this;y.hideTimestamps=!!_.SL("hide-transcript-timestamps");y.isLoadingTranscripts=!1;y.darkerPanels=_.e("web_watch_darker_panels");y.isError=!1;y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return y};
_.p(nC,_.u);_.E=nC.prototype;_.E.headerChanged=function(){var y,W;this.baseGetTranscriptsCommand=(W=_.h((y=this.data)==null?void 0:y.header,oit))==null?void 0:W.onTextChangeCommand};
_.E.bodyChanged=function(){var y=this.getBodyRenderer();y&&(y.initialSegments&&(this.initialTranscriptsRenderer=y),y.noResultLabel&&(this.noResultLabel=y.noResultLabel),y.retryLabel&&(this.retryLabel=y.retryLabel))};
_.E.detached=function(){this.clearSearchBoxText()};
_.E.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.E.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"}}}};
_.E.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.E.fireSearch=function(y){var W=this;if(y){var V=y.detail.query;if(this.baseGetTranscriptsCommand){var w;y=(w=_.h(this.baseGetTranscriptsCommand,_.UY6))==null?void 0:w.params;var t;w=_.h((t=this.data)==null?void 0:t.footer,wLP);var F;if((t=(F=_.h(w==null?void 0:w.languageMenu,L0m))==null?void 0:F.subMenuItems)&&t.length>0&&(F=t.find(function(C){return C.selected}))){var I,P;
y=(I=F.continuation)==null?void 0:(P=I.reloadContinuationData)==null?void 0:P.continuation}I=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:y,searchQuery:V}});this.ytComponentBehavior.resolveCommand(I,{commandController:{onServerError:function(){W.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Bse(this.ytContinuationHandlerBehavior,function(){return V===W.getCurrentSearchBoxText()})}}};
_.E.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.E.onRetryButtonClick=function(){this.isError=!1;var y={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:y}))};
_.E.hideTimestampsChanged=function(){_.ui("hide-transcript-timestamps",this.hideTimestamps)};
_.E.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.E.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.E.handleSignalActionCopyTranscript=function(){var y=this,W=this.getBodyRenderer();W&&(W=((W==null?void 0:W.searchResultSegments)||(W==null?void 0:W.initialSegments)||[]).map(function(V){return _.h(V,pLu)}).filter(function(V){return!!V}).map(function(V){return{snippet:V.snippet||{runs:[{text:""}]},
startTimeText:V.startTimeText||{simpleText:""}}}).map(function(V){var w=(V.snippet.runs||[]).reduce(function(t,F){return t+F.text},"");
return y.hideTimestamps?w:V.startTimeText.simpleText+" "+w}).join("\n"),this.copyToClipboard(W))};
_.E.copyToClipboard=function(y){navigator.clipboard&&navigator.clipboard.writeText(y)};
_.E.getCurrentSearchBoxText=function(){var y;return(y=this.searchBox)==null?void 0:y.value};
_.E.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.E.getBodyRenderer=function(){var y;return _.h((y=this.data)==null?void 0:y.body,K0W)};
_.E.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.CM.Object.defineProperties(nC.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.i6(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
nC.prototype.hideTimestampsChanged=nC.prototype.hideTimestampsChanged;nC.prototype.searchCleared=nC.prototype.searchCleared;nC.prototype.fireSearch=nC.prototype.fireSearch;nC.prototype.onReloadContinuationFinish=nC.prototype.onReloadContinuationFinish;nC.prototype.bodyChanged=nC.prototype.bodyChanged;nC.prototype.headerChanged=nC.prototype.headerChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],nC.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],nC.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nC.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nC.prototype,"hideTimestamps",void 0);
_.J([_.q(),_.R("design:type",Object)],nC.prototype,"isLoadingTranscripts",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nC.prototype,"darkerPanels",void 0);_.J([_.q(),_.R("design:type",Object)],nC.prototype,"isError",void 0);_.J([_.xA("data.header"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nC.prototype,"headerChanged",null);
_.J([_.Jc("data.body"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nC.prototype,"bodyChanged",null);_.J([_.l6("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nC.prototype,"onReloadContinuationFinish",null);_.J([_.l6("yt-transcript-search-box-search"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],nC.prototype,"fireSearch",null);
_.J([_.l6("yt-transcript-search-box-clear"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nC.prototype,"searchCleared",null);_.J([_.xA("hideTimestamps"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nC.prototype,"hideTimestampsChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],nC);
_.Y(nC,"ytd-transcript-search-panel-renderer",function(){if(kRh!==void 0)return kRh;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return kRh=y},{mode:1});var Hb=function(){var y=_.u.apply(this,arguments)||this;y.player=null;y.playerPollJobId=0;return y};
_.p(Hb,_.u);_.E=Hb.prototype;_.E.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.E.onLoadReloadContinuation=function(y){_.e("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:y.target.data.continuation}}):(y={clickTrackingParams:y.target.data.clickTrackingParams,getTranscriptEndpoint:{params:y.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}}))};
_.E.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"}}}};
_.E.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.E.attached=function(){this.updatePlayerListening()};
_.E.detached=function(){this.updatePlayerListening()};
_.E.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.E.startPlayerListening=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return(W=_.Kn())?V.yield(W.getPlayerPromise(),2):V.return();y.player=V.yieldResult;y.playerPollJobId=_.HU.addLowPriorityJob(function(){y.getPlayerVideoProgress()},1E3);
y.player.addEventListener("onCueRangeEnter",function(w){y.onCueRangeEnter(w)});
y.player.addEventListener("onCueRangeExit",function(w){y.onCueRangeExit(w)});
y.player.addEventListener("onStateChange",function(w){y.onPlayerStateChange(w)});
y.player.addEventListener("SEEK_TO",function(w){y.onPlayerSeek(w)});
_.B7(V)})};
_.E.getPlayerVideoProgress=function(){var y=this;_.HU.cancelJob(this.playerPollJobId);if(this.player){var W=this.player.getCurrentTime();_.ow(this.hostElement,"yt-player-time-changed",[W])}this.playerPollJobId=_.HU.addLowPriorityJob(function(){y.getPlayerVideoProgress()},1E3)};
_.E.stopPlayerListening=function(){this.player=null;_.HU.cancelJob(this.playerPollJobId)};
_.E.onPlayerStateChange=function(y){y===2&&this.removePendingCue()};
_.E.onPlayerSeek=function(y){var W;if(W=this.pendingReplayCueId)W=this.pendingReplayCueId,W=y===(_.e("web_transcript_cue_id_killswitch")?Number(W):Number(W.split("_")[1]));W||this.removePendingCue()};
_.E.onCueRangeEnter=function(y){CAj(y)&&(this.pendingReplayCueId=y)};
_.E.onCueRangeExit=function(y){CAj(y)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.E.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.E.onYtTranscriptPlayerSeek=function(y){this.player&&this.player.seekTo(y,!0)};
_.E.onYtTranscriptPlayerReplay=function(y,W){this.player&&(this.player.addCueRange(PA4(y),y,W),this.player.seekTo(y,!0),this.player.playVideo())};
_.E.onYtTranscriptPlayerEdit=function(y,W){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(PA4(y),y,W),this.player.seekTo(y,!0))};
Hb.prototype.onLoadReloadContinuation=Hb.prototype.onLoadReloadContinuation;Hb.prototype.panelContentVisibleChanged=Hb.prototype.panelContentVisibleChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Hb.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Hb.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hb.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Hb.prototype,"panelContentVisible",void 0);_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hb.prototype,"panelContentVisibleChanged",null);
_.J([_.l6("yt-load-reload-continuation"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],Hb.prototype,"onLoadReloadContinuation",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Hb);
_.Y(Hb,"ytd-transcript-renderer",function(){if(lI3!==void 0)return lI3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lI3=y},{mode:1});var BmG;var JAx;var XE=function(){return _.u.apply(this,arguments)||this};
_.p(XE,_.u);XE.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.fg(this.hostElement,[this.data.clickCommand],this.hostElement))};
XE.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Vv)()+_.kj)+"px)"};
XE.prototype.updateShouldHideFromBinding=function(y){this.shouldHide=y.detail.value};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XE.prototype,"rendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XE.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],XE.prototype,"shouldHide",void 0);_.J([_.k({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],XE);
_.Y(XE,"ytd-ad-engagement-panel-banner-renderer",function(){if(JAx!==void 0)return JAx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return JAx=y},{mode:_.qM("kevlar_poly_si_batch_j070")?1:2});var Rih;var am=function(){var y=_.u.apply(this,arguments)||this;y.modernPanels=_.e("kevlar_watch_modern_panels");y.buttonUpdate=_.e("web_modern_buttons");y.adsSemanticText=_.e("enable_ads_web_ep_buenos_aires_and_padding_fix");return y};
_.p(am,_.u);am.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.J([_.q(),_.R("design:type",Object)],am.prototype,"data",void 0);_.J([_.q({computed:"computeHideDefaultAdBadge(data)"}),_.R("design:type",Boolean)],am.prototype,"hideDefaultAdBadge",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],am.prototype,"modernPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],am.prototype,"buttonUpdate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],am.prototype,"adsSemanticText",void 0);
_.J([_.k({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],am);
_.Y(am,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Rih!==void 0)return Rih;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Rih=y},{mode:1});var jsZ;var Gs=function(){var y=_.u.apply(this,arguments)||this;y.darkerPanels=_.e("web_watch_darker_panels");y.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");y.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");y.modernPanels=_.e("kevlar_watch_modern_panels");y.headerClickListener=function(W){y.onHeaderClick(W)};
y.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return y};
_.p(Gs,_.u);_.E=Gs.prototype;_.E.computeAdsInfoButton=function(){if(_.e("web_modern_buttons")){var y,W;return(W=_.h((y=this.data)==null?void 0:y.subtitleComplex,t7C))==null?void 0:W.adInfoRenderer}};
_.E.updateHeaderClickListener=function(){var y,W,V;((y=this.data)==null?0:y.navigationEndpoint)||((W=this.data)==null?0:W.onClickCommand)||_.h((V=this.data)==null?void 0:V.visibilityButton,_.tg)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.E.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}}}}}};
_.E.collapsedChanged=function(){var y;(y=this.data)!=null&&y.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.e("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.E.focus=function(y){var W=this;this.titleElement&&_.HU.addJob(function(){_.Pp(W.titleElement,y)},0,500)};
_.E.computeTitleAriaLabel=function(y){var W=[];if(y.title){var V,w;W.push(this.ytRendererBehavior.getSimpleString(y.title)||((V=y.title.accessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label))}y.contextualInfo&&W.push(this.ytRendererBehavior.getSimpleString(y.contextualInfo));return W.join(" ")};
_.E.onHeaderClick=function(y){this.shouldTriggerHeaderClick(y)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.fg(this.hostElement,[this.data.onClickCommand],this.hostElement)):(y=this.getVisibilityToggleButton())&&y.click())};
_.E.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var y=_.h(this.data.visibilityButton,_.wz)||_.h(this.data.visibilityButton,_.tg);y&&this.ytRendererBehavior.logExplicitClick(y)}};
_.E.getVisibilityToggleButton=function(){var y=_.i6(this.hostElement).querySelector("#visibility-button").firstElementChild;return(y==null?void 0:y.is)==="ytd-toggle-button-renderer"?y:null};
_.E.shouldTriggerHeaderClick=function(y){return!_.c5(_.O$(y),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.E.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(y){y=_.h(y,_.GsP);this.targetId&&(y==null?void 0:y.targetId)===this.targetId&&(y=y.navigationButton)&&this.set("data.navigationButton",y)};
_.CM.Object.defineProperties(Gs.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!!(((y=this.entity)==null?0:y.isActionButtonHidden)||this.hideActionButton)}}});
Gs.prototype.collapsedChanged=Gs.prototype.collapsedChanged;Gs.prototype.updateHeaderClickListener=Gs.prototype.updateHeaderClickListener;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Gs.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],Gs.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Gs.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],Gs.prototype,"targetId",void 0);_.J([_.q(),_.R("design:type",Boolean)],Gs.prototype,"collapsed",void 0);_.J([_.q(),_.R("design:type",Boolean)],Gs.prototype,"hideActionButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Gs.prototype,"shortsPanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Gs.prototype,"liveChatEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Gs.prototype,"learningChatEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Gs.prototype,"darkerPanels",void 0);_.J([_.s$("#title"),_.R("design:type",HTMLElement)],Gs.prototype,"titleElement",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],Gs.prototype,"headerElement",void 0);
_.J([_.q({computed:"computeAdsInfoButton(data)"}),_.R("design:type",Object)],Gs.prototype,"adsInfoButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Gs.prototype,"enableSqueezebackPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Gs.prototype,"enableAnchoredPanel",void 0);_.J([_.q({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(y,W){return _.UB(y.entities,"engagementPanelTitleHeaderEntity",W)}}),
_.R("design:type",Object)],Gs.prototype,"entity",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Gs.prototype,"modernPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Gs.prototype,"adsSemanticText",null);_.J([_.xA("data","data.navigationEndpoint","data.onClickCommand"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gs.prototype,"updateHeaderClickListener",null);
_.J([_.Jc("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gs.prototype,"collapsedChanged",null);_.J([_.M("entity","hideActionButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Gs.prototype,"isActionButtonHidden",null);_.J([_.k({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Gs);
_.Y(Gs,"ytd-engagement-panel-title-header-renderer",function(){if(jsZ!==void 0)return jsZ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return jsZ=y},{mode:1});var $r1;var rs=function(){return _.u.apply(this,arguments)||this};
_.p(rs,_.u);rs.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rs.prototype,"data",void 0);_.J([_.k({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],rs);
_.Y(rs,"ytd-macro-markers-info-item-renderer",function(){if($r1!==void 0)return $r1;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return $r1=y},{mode:1});var nJ_;var aIZ=function(y,W,V,w,t,F){_.Ru.call(this);var I=this;this.JSC$22437_containerElement=y;this.hostElement=W;this.supportedSyncItems=V;this.syncEntityKey=w;this.options=t;this.renderLazyListItems=F;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;HqM(this);XzM(this);this.JSC$22437_scrollAnimation=new _.ty(function(P){y.scrollTop=P});
_.Uf(this,this.JSC$22437_scrollAnimation);this.addOnDisposeCallback(function(){I.exitBrowsingMode(!1);I.activeItem&&I.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.p(aIZ,_.Ru);var HqM=function(y){var W=_.Y0(_.hs().resolve(_.w0),function(V){return V.entities.markersEngagementPanelSyncEntity||{}},function(V,w){var t;
V[y.syncEntityKey]!==w[y.syncEntityKey]&&((t=V[y.syncEntityKey])==null?void 0:t.activeItemIndex)!==void 0&&y.updatePanelActiveItem(V[y.syncEntityKey].activeItemIndex)});
y.unsubscribeFromTimedMarkersListSyncEntity=W;y.addOnDisposeCallback(W);GRG(y)},GRG=function(y){var W=_.hs().resolve(_.w0);
W=_.L2b(W.getState(),y.syncEntityKey);(W==null?void 0:W.activeItemIndex)!==void 0&&(W=y.getItemByIndex(W.activeItemIndex))&&y.setActiveItem(W)},XzM=function(y){var W=new _.d7(y.onScroll,50,y);
_.Uf(y,W);var V=function(){W.fire()};
y.JSC$22437_containerElement.addEventListener("scroll",V);y.addOnDisposeCallback(function(){y.JSC$22437_containerElement.removeEventListener("scroll",V)})};
_.E=aIZ.prototype;
_.E.updatePanelActiveItem=function(y){var W=this.getItemByIndex(y);if(W){if(this.setActiveItem(W),this.contentVisible)if(this.browsingMode){var V;((V=this.options)==null?void 0:V.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(y=rA3(this),W.offsetTop<this.JSC$22437_containerElement.clientHeight+this.JSC$22437_containerElement.scrollTop&&y&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));bqh(this)}else this.scrollToItem(W)}else _.rQ(new _.Js("Could not find "+this.supportedSyncItems+
" sync child to set active.",y,this.JSC$22437_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.E.getItemByIndex=function(y){var W;(W=this.renderLazyListItems)==null||W.call(this,y);W=this.JSC$22437_containerElement.querySelectorAll(this.supportedSyncItems);if(W.length>y)return W[y]};
_.E.setActiveItem=function(y){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));y.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=y};
_.E.scrollToItem=function(y){y=this.getScrollPositionForItem(y);this.JSC$22437_containerElement.scrollTop!==y&&this.JSC$22437_scrollAnimation.start(this.JSC$22437_containerElement.scrollTop,y,300)};
_.E.getScrollPositionForItem=function(y){if(this.JSC$22437_containerElement.querySelectorAll(this.supportedSyncItems)[0]===y)return 0;var W,V=((W=this.options)==null?0:W.percentOffset)?this.JSC$22437_containerElement.clientHeight*this.options.percentOffset:0;y=_.yc(y).y+this.JSC$22437_containerElement.scrollTop-(_.yc(this.JSC$22437_containerElement).y+V);return Math.max(0,Math.min(y,this.JSC$22437_containerElement.scrollHeight-this.JSC$22437_containerElement.offsetHeight))};
_.E.onScroll=function(){this.activeItemBelowSyncPosition=rA3(this);if(this.activeItem&&!this.JSC$22437_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22437_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var y;switch((y=this.options)==null?void 0:y.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Qsh(this));bqh(this);break;default:this.enterBrowsingMode(!0)}}};
_.E.enterBrowsingMode=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1){if(W.browsingMode)return t.return();W.browsingMode=!0;y&&W.hostElement.classList.add("browsing-mode");W.playerExitBrowsingModeListener=function(){W.exitBrowsingMode(!1)};
return t.yield(_.u8(),2)}V=t.yieldResult;(w=V)==null||w.addEventListener("SEEK_TO",W.playerExitBrowsingModeListener);_.B7(t)})};
_.E.exitBrowsingMode=function(y){y=y===void 0?!0:y;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),y&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.E.removePlayerSeekListener=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1)return y.playerExitBrowsingModeListener?w.yield(_.u8(),3):w.jumpTo(0);W=w.yieldResult;(V=W)==null||V.removeEventListener("SEEK_TO",y.playerExitBrowsingModeListener);y.playerExitBrowsingModeListener=void 0;_.B7(w)})};
var bqh=function(y){var W;((W=y.options)==null?void 0:W.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Qsh(y)?y.hostElement.classList.remove("browsing-mode"):y.activeItem&&y.hostElement.classList.add("browsing-mode"))},rA3=function(y){if(!y.activeItem)return!1;
var W,V=((W=y.options)==null?0:W.percentOffset)?y.JSC$22437_containerElement.clientHeight*y.options.percentOffset:0;return y.activeItem.offsetTop>=y.JSC$22437_containerElement.scrollTop+V},Qsh=function(y){if(!y.activeItem)return!1;
var W=y.activeItem.offsetTop+14<=y.JSC$22437_containerElement.scrollTop+y.JSC$22437_containerElement.clientHeight;return y.activeItem.offsetTop+y.activeItem.clientHeight-14>=y.JSC$22437_containerElement.scrollTop&&W};
aIZ.prototype.panelContentVisibleChanged=function(y){(this.contentVisible=y)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Zqh=function(y,W){y.syncEntityKey=W;var V;(V=y.unsubscribeFromTimedMarkersListSyncEntity)==null||V.call(y);HqM(y)},ym5=function(y,W){y.options=W};var bA=function(){var y=_.u.apply(this,arguments)||this;y.browsingMode=!1;y.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return y};
_.p(bA,_.u);_.E=bA.prototype;_.E.activeItemChanged=function(){if(!_.e("synced_panel_scrolling_controller")){var y;((y=this.syncEntity)==null?void 0:y.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.E.created=function(){var y=this;_.e("synced_panel_scrolling_controller")||(this.JSC$22441_scrollAnimation=new _.ty(function(W){y.contents.scrollTop=W}),this.boundExitBrowsingMode=function(){y.exitBrowsingMode(!1)})};
_.E.detached=function(){if(_.e("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.E.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"}}}};
_.E.dataChanged=function(){var y=this;_.e("synced_panel_scrolling_controller")?_.gy(this,function(){if(y.scrollController){var W;(W=y.scrollController)==null||W.exitBrowsingMode(!1);var V,w,t;(w=y.scrollController)==null||Zqh(w,(t=(V=y.data)==null?void 0:V.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key");var F,I,P;(P=y.scrollController)==null||ym5(P,{percentOffset:(F=y.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(I=y.data)==null?void 0:I.floatingPillType})}else{var C,
d,L,z;y.scrollController=new aIZ(y.contents,y.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(z=(C=y.data)==null?void 0:C.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(d=y.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(L=y.data)==null?void 0:L.floatingPillType},function(c){y.renderLazyListItems(c)})}y.scrollController.panelContentVisibleChanged(!!y.panelContentVisible)}):this.exitBrowsingMode()};
_.E.computeButtonShape=function(){var y=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){y.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.E.computeSyncEnabled=function(y){return!(y==null||!y.syncButtonLabel)};
_.E.renderLazyListItems=function(y){for(var W=this.contents.children,V=0,w=0;w<W.length;w++){var t=void 0;(t=W[w].ytLazyListBehavior)==null||t.fillRemainingListItems();var F=void 0,I=void 0;t=_.h((F=this.data)==null?void 0:(I=F.contents)==null?void 0:I[w],_.lsq);I=F=void 0;if((F=t)==null?0:(I=F.contents)==null?0:I.length)V+=t.contents.length;if(V>=y)break}};
_.E.getItemByIndex=function(y){this.renderLazyListItems(y);var W=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(W.length>y)return W[y]};
_.E.setActiveItem=function(y){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);y.active!==void 0&&(y.active=!0);this.currentActiveItem=y};
_.E.handleSetActivePanelItemAction=function(y){if((y=_.h(y,bCu))&&this.panelTargetId===y.panelTargetId){y=y.itemIndex;if(_.e("synced_panel_scrolling_controller")){var W,V;var w=(V=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key"}else{var t;w=(t=this.data)==null?void 0:t.syncModelEntityKey}if(w){var F;((F=this.syncEntity)==null?void 0:F.activeItemIndex)!==y&&this.ytdReduxBehavior.dispatch(_.B5("markersEngagementPanelSyncEntity",w,{key:w,activeItemIndex:y}))}else this.updatePanelActiveItem(y)}};
_.E.updatePanelActiveItem=function(y){var W=this.getItemByIndex(y);W?(this.setActiveItem(W),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(W)):_.rQ(new _.Js("Could not find ytd-macro-markers-list-renderer sync child to set active.",y,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.E.scrollToItem=function(y){y=this.getScrollPositionForItem(y);this.contents.scrollTop!==y&&this.JSC$22441_scrollAnimation.start(this.contents.scrollTop,y,300)};
_.E.getScrollPositionForItem=function(y){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===y)return 0;y=_.yc(y).y+this.contents.scrollTop-_.yc(this.contents).y-this.getStickyHeaderHeight(y);return Math.min(y,this.contents.scrollHeight-this.contents.offsetHeight)};
_.E.getStickyHeaderHeight=function(y){if(y.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var W,V,w;return(w=(W=y.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(V=W.header)==null?void 0:V.offsetHeight)!=null?w:0}return 0};
_.E.onScroll=function(){_.e("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22441_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.E.enterBrowsingMode=function(){var y=this;return _.g(function(W){if(W.nextAddress==1){if(y.browsingMode)return W.return();y.browsingMode=!0;return W.yield(_.pn().getPlayerPromise(),2)}y.player=W.yieldResult;y.player.addEventListener("SEEK_TO",y.boundExitBrowsingMode);_.B7(W)})};
_.E.exitBrowsingMode=function(y){this.browsingMode&&(this.browsingMode=!1,(y===void 0||y)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.E.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.E.onSyncClick=function(){if(_.e("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.exitBrowsingMode()}else this.exitBrowsingMode()};
_.E.panelContentVisibleChanged=function(){if(_.e("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
bA.prototype.panelContentVisibleChanged=bA.prototype.panelContentVisibleChanged;bA.prototype.dataChanged=bA.prototype.dataChanged;bA.prototype.activeItemChanged=bA.prototype.activeItemChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],bA.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],bA.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bA.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],bA.prototype,"useCustomColors",void 0);_.J([_.q({computed:"computeSyncEnabled(data)"}),_.R("design:type",Boolean)],bA.prototype,"syncEnabled",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],bA.prototype,"panelTargetId",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],bA.prototype,"panelContentVisible",void 0);_.J([_.s$("#contents"),_.R("design:type",HTMLElement)],bA.prototype,"contents",void 0);_.J([_.s$("#sync-container"),_.R("design:type",HTMLElement)],bA.prototype,"syncContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bA.prototype,"browsingMode",void 0);
_.J([_.q({selectorArgs:["data.syncModelEntityKey"],selector:_.L2b}),_.R("design:type",Object)],bA.prototype,"syncEntity",void 0);_.J([_.xA("syncEntity.activeItemIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bA.prototype,"activeItemChanged",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bA.prototype,"dataChanged",null);
_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bA.prototype,"panelContentVisibleChanged",null);_.J([_.k({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],bA);
_.Y(bA,"ytd-macro-markers-list-renderer",function(){if(nJ_!==void 0)return nJ_;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nJ_=y},{mode:1});var WCf;var Q5=function(){return _.u.apply(this,arguments)||this};
_.p(Q5,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Q5.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Q5.prototype,"data",void 0);_.J([_.k({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Q5);
_.Y(Q5,"ytd-error-corrections-section-item-renderer",function(){if(WCf!==void 0)return WCf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return WCf=y},{mode:1});var VPh;var Zy=function(){return _.u.apply(this,arguments)||this};
_.p(Zy,_.u);Zy.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Zy.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zy.prototype,"data",void 0);_.J([_.k({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Zy);
_.Y(Zy,"ytd-error-corrections-section-renderer",function(){if(VPh!==void 0)return VPh;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return VPh=y},{mode:1});var wdf;var yh=function(){return _.u.apply(this,arguments)||this};
_.p(yh,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],yh.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yh.prototype,"data",void 0);_.J([_.k({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],yh);
_.Y(yh,"ytd-topic-link-renderer",function(){if(wdf!==void 0)return wdf;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wdf=y},{mode:1});var tPh;var WL=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("kevlar_modern_sd_v2");y.modernLockupV2=_.e("modernize_structured_description_playlist_lockups_v2");y.modernTypography=_.e("web_modern_typography");return y};
_.p(WL,_.u);WL.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],WL.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],WL.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],WL.prototype,"modernLockupV2",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],WL.prototype,"modernTypography",void 0);_.J([_.k({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],WL);
_.Y(WL,"ytd-video-description-course-section-renderer",function(){if(tPh!==void 0)return tPh;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tPh=y},{mode:1});var FC5;var Vh=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("kevlar_modern_sd_v2");y.modernTypography=_.e("web_modern_typography");return y};
_.p(Vh,_.u);Vh.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Vh.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Vh.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Vh.prototype,"modernTypography",void 0);
_.J([_.k({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Vh);
_.Y(Vh,"ytd-video-description-files-section-renderer",function(){if(FC5!==void 0)return FC5;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return FC5=y},{mode:1});var EEZ;var wY=function(){return _.u.apply(this,arguments)||this};
_.p(wY,_.u);wY.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wY.prototype,"data",void 0);_.J([_.k({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],wY);
_.Y(wY,"ytd-video-description-gaming-section-renderer",function(){if(EEZ!==void 0)return EEZ;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return EEZ=y},{mode:1});var NWM;var tM=function(){var y=_.u.apply(this,arguments)||this;y.isExpanded=!1;return y};
_.p(tM,_.u);tM.prototype.computeHasDefaultMetadataEndpoint=function(y){var W;y=y==null?void 0:(W=y.defaultMetadata)==null?void 0:W.runs;return!(!y||y.length!==1||!y[0].navigationEndpoint)};
tM.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.CM.Object.defineProperties(tM.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tM.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tM.prototype,"isExpanded",void 0);_.J([_.q({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],tM.prototype,"hasDefaultMetadataEndpoint",void 0);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tM.prototype,"isExpandable",null);_.J([_.M("data","isExpandable","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tM.prototype,"showExpandedMetadata",null);_.J([_.k({is:"ytd-info-row-renderer",disableElementRegistration:!0})],tM);
_.Y(tM,"ytd-info-row-renderer",function(){if(NWM!==void 0)return NWM;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return NWM=y},{mode:1});var IqG;var Fx=function(){var y=_.u.apply(this,arguments)||this;y.currentIndex=0;y.supportComponentResize=!0;y.modern=_.e("kevlar_modern_sd_v2");y.JSC$22467_lastScrollContainerWidth=NaN;return y};
_.p(Fx,_.u);_.E=Fx.prototype;
_.E.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"}}}};
_.E.getItemsPath=function(){return"videoLockups"};
_.E.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.E.onIronResize=function(){this.updateVideoLockupStyles()};
_.E.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.E.updateVideoLockupStyles=function(){var y;this.JSC$22467_scrollContainer!==void 0&&(y=this.videoLockups)!=null&&y.length&&(y=this.JSC$22467_scrollContainer.clientWidth,y!==this.JSC$22467_lastScrollContainerWidth&&(this.JSC$22467_lastScrollContainerWidth=y,_.qg(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(y*.8,415)+"px"}),_.h1(this.hostElement,"iron-resize")))};
_.CM.Object.defineProperties(Fx.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.carouselLockups)return y;W=_.N(this.data.carouselLockups);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;((w=_.h(V,m9t))==null?0:w.videoLockup)&&y.push(_.h(V,m9t).videoLockup)}return y}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoLockups)==null||!y.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.carouselLockups)return y;var V;return(V=_.h(this.data.carouselLockups[this.scrollCount],m9t))==null?void 0:V.infoRows}}});
Fx.prototype.dataChanged=Fx.prototype.dataChanged;Fx.prototype.onIronResize=Fx.prototype.onIronResize;Fx.prototype.hiddenChanged=Fx.prototype.hiddenChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Fx.prototype,"componentBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],Fx.prototype,"ytdHorizontalListBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Fx.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Fx.prototype,"inlineStructuredDescription",void 0);_.J([_.q({value:2}),_.R("design:type",Number)],Fx.prototype,"initialCount",void 0);_.J([_.q(),_.R("design:type",Object)],Fx.prototype,"currentIndex",void 0);
_.J([_.q(),_.R("design:type",Number)],Fx.prototype,"scrollCount",void 0);_.J([_.q(),_.R("design:type",Object)],Fx.prototype,"supportComponentResize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Fx.prototype,"contentHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Fx.prototype,"modern",void 0);_.J([_.s$("#scroll-container"),_.R("design:type",HTMLDivElement)],Fx.prototype,"JSC$22467_scrollContainer",void 0);
_.J([_.xA("contentHidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fx.prototype,"hiddenChanged",null);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],Fx.prototype,"videoLockups",null);_.J([_.M("videoLockups"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fx.prototype,"hasVideoLockups",null);
_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fx.prototype,"onIronResize",null);_.J([_.M("data","scrollCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],Fx.prototype,"infoRows",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fx.prototype,"dataChanged",null);_.J([_.k({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Fx);
_.Y(Fx,"ytd-video-description-music-section-renderer",function(){if(IqG!==void 0)return IqG;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return IqG=y},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var gEx;var Es=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("kevlar_modern_sd_v2");y.modernTypography=_.e("web_modern_typography");return y};
_.p(Es,_.u);Es.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.J([_.q({}),_.R("design:type",Object)],Es.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Es.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Es.prototype,"modernTypography",void 0);
_.J([_.k({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Es);
_.Y(Es,"ytd-video-description-transcript-section-renderer",function(){if(gEx!==void 0)return gEx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return gEx=y},{mode:1});var Pth;_.iF(_.eY(function(y){var W=_.Yn(_.OPP,function(){return y.data().firstProviderLinkStatusEntityKey}),V=_.Yn(_.OPP,function(){return y.data().secondProviderLinkStatusEntityKey}),w=function(){var t,F;
return((t=W())==null?void 0:t.linked)||((F=V())==null?void 0:F.linked)};
return _.O("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.O(_.Lv,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return y.data().sectionTitle}}),_.O(_.Lv,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return w()?y.data().connectedMessage:y.data().notConnectedMessage}}),_.O(_.v,{cond:w,
then:function(){return _.O(_.Q7,{data:function(){return y.data().connectedButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.O(_.v,{cond:function(){return!w()},
then:function(){return _.O(_.Q7,{data:function(){return y.data().notConnectedButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"rj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;return _.O("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.O("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.O(_.Lv,{text:function(){return W().sectionTitle}})),_.O("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.O(_.Lv,{text:function(){return W().bodyHeader}})),_.O("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.O(_.Lv,{text:function(){return W().bodyText}})),_.O(_.v,
{cond:function(){return W().attributionText},
then:function(){return _.O("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.O(_.Lv,{text:function(){return W().attributionText}}))}}))},"sj"),"how-this-was-made-section-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){return _.O("yt-video-description-youchat-section-view-model",{class:_.kS("ytVideoDescriptionYouchatSectionViewModelHost")},_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.O(_.Lv,{text:function(){return y.data().sectionTitle}})),_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.O(_.Lv,{text:function(){return y.data().subHeaderText}})),_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.O(_.lk,{data:function(){return _.h(y.data().primaryButton,
_.H5)}})))},"tj"),"yt-video-description-youchat-section-view-model",{props:{data:_.vB}});var N9=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return y};
_.p(N9,_.u);_.E=N9.prototype;
_.E.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}}}}}};
_.E.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.E.dataChanged=function(){var y,W;this.hasDescriptionOnly=!(((y=this.data)==null?void 0:(W=y.items)==null?void 0:W.length)!==1||!_.h(this.data.items[0],lM))};
_.E.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.E.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.E.autoFocusDescription=function(){var y;((y=_.hs().resolve(_.eX(_.MC)))==null?0:y.isKeyBoardInUse())&&this.description&&_.Ci(this.description)};
_.E.resize=function(){if(_.e("kevlar_disable_sd_resize"))this.JSC$22475_cardList&&_.h1(this.JSC$22475_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.h1(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.h1(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.E.scrollToSection=function(y){if(y=this.getSectionElement(y))_.ow(this.hostElement,"yt-scroll-to-watch-element",[y]),y.focus()};
_.E.getSectionElement=function(y){switch(y){case "infocards-item-section":var W;return(W=this.infocardsSection)!=null?W:null;case "transcript-item-section":var V;return(V=this.transcriptSection)!=null?V:null;case "how-this-was-made-section-item-section":var w;return(w=this.howThisWasMadeSection)!=null?w:null;case "files-item-section":var t;return(t=this.filesSection)!=null?t:null;default:return null}};
_.E.handleSetActiveItemAction=function(y){var W=_.h(y,bCu),V=W&&(W==null?void 0:W.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22475_cardList;if(W&&V){y=this.currentActiveChapter;var w=this.currentActiveProblem;W=V==null?void 0:V.getItemByIndex(W.itemIndex);var t=V=!0;W&&(W.active=!0,W.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(V=y!==W,t=!1,this.currentActiveChapter=W):(W==null?void 0:W.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(V=!1,t=w!==W,this.currentActiveProblem=W));y&&V&&(y.active=!1);w&&t&&(w.active=!1)}};
_.CM.Object.defineProperties(N9.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.e("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
N9.prototype.onYtExpanderMoreTapped=N9.prototype.onYtExpanderMoreTapped;N9.prototype.onHiddenChanged=N9.prototype.onHiddenChanged;N9.prototype.dataChanged=N9.prototype.dataChanged;N9.prototype.panelContentVisibleChanged=N9.prototype.panelContentVisibleChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],N9.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],N9.prototype,"ironResizableBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],N9.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],N9.prototype,"panelContentVisible",void 0);_.J([_.q(),_.R("design:type",Boolean)],N9.prototype,"hasDescriptionOnly",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],N9.prototype,"inlineStructuredDescription",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],N9.prototype,"hidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],N9.prototype,"shortsPanel",void 0);_.J([_.q(),_.R("design:type",Object)],N9.prototype,"videoSummary",void 0);_.J([_.q(),_.R("design:type",Object)],N9.prototype,"merchShelf",void 0);
_.J([_.M("videoSummary"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],N9.prototype,"showVideoSummary",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],N9.prototype,"engagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],N9.prototype,"watchWhileSdp",void 0);_.J([_.s$("ytd-expandable-video-description-body-renderer"),_.R("design:type",Object)],N9.prototype,"description",void 0);
_.J([_.s$("ytd-horizontal-card-list-renderer"),_.R("design:type",Object)],N9.prototype,"JSC$22475_cardList",void 0);_.J([_.s$("ytd-horizontal-card-list-renderer[center-items]"),_.R("design:type",Object)],N9.prototype,"problemWalkthroughCardList",void 0);_.J([_.s$("ytd-shelf-renderer"),_.R("design:type",Object)],N9.prototype,"shelfSection",void 0);_.J([_.s$("ytd-video-description-music-section-renderer"),_.R("design:type",Object)],N9.prototype,"musicMetadataSection",void 0);
_.J([_.s$("ytd-video-description-infocards-section-renderer"),_.R("design:type",Object)],N9.prototype,"infocardsSection",void 0);_.J([_.s$("ytd-video-description-transcript-section-renderer"),_.R("design:type",Object)],N9.prototype,"transcriptSection",void 0);_.J([_.s$("how-this-was-made-section-view-model"),_.R("design:type",Object)],N9.prototype,"howThisWasMadeSection",void 0);_.J([_.s$("ytd-video-description-files-section-renderer"),_.R("design:type",Object)],N9.prototype,"filesSection",void 0);
_.J([_.xA("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"panelContentVisibleChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"dataChanged",null);_.J([_.xA("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"onHiddenChanged",null);
_.J([_.l6("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"onYtExpanderMoreTapped",null);_.J([_.k({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],N9);
_.Y(N9,"ytd-structured-description-content-renderer",function(){if(Pth!==void 0)return Pth;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Pth=y},{mode:2});var CtG;var Oe5;var I$=function(){return _.u.apply(this,arguments)||this};
_.p(I$,_.u);I$.prototype.computeAriaLabel=function(y){var W,V;return(y==null?void 0:(W=y.accessibility)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label)||_.u5("LOADING",void 0,"Loading")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],I$.prototype,"data",void 0);_.J([_.q({computed:"computeAriaLabel(data)"}),_.R("design:type",String)],I$.prototype,"ariaLabel",void 0);_.J([_.Zp({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],I$);
_.Y(I$,"yt-content-loading-renderer",function(){if(Oe5===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;CtG===void 0&&(CtG=document.createElement("template"));var w=CtG;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Oe5=y}y=Oe5;return y},{mode:_.qM("kevlar_poly_si_batch_j043")?1:2});_.iF(_.eY(function(y){var W=_.N(_.M1(!1,void 0,"QkPiwb")),V=W.next().value,w=W.next().value;W=_.N(_.M1(!1,void 0,"AFECB"));var t=W.next().value,F=W.next().value;_.a8(function(){var C=_.h(y.data().collaboratePlaylistCollaborationSetting,zZu);C&&w(C.switchedOnByDefault);var d=_.h(y.data().allowNewCollaboratorsPlaylistCollaborationSetting,zZu);d&&F(d.switchedOnByDefault);if(!C&&!d||!C&&y.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")w(!0),F(!0)});
var I=function(C){w(C);F(C);var d=y.data().playlistCollaborationEntityKey||"";var L=_.vC().getState();(L=_.UB(L.entities,"playlistCollaborationEntity",d))&&(L==null?void 0:L.isCollaborative)===C||_.vC().dispatch(_.B5("playlistCollaborationEntity",d,Object.assign({},L,{isCollaborative:C})))},P=function(C){F(C)};
return _.O("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.O("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.O(_.Q7,{data:function(){return y.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.O(_.xmJ,{data:C.data,
onSwitch:I})}})),_.O(_.v,{cond:V,
then:function(){return _.O(_.o8,null,_.O("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.O(_.Q7,{data:function(){return y.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(C){return _.O(_.xmJ,{data:C.data,
onSwitch:P,overrideDisabled:!1})}})),_.O(_.v,{cond:t,
then:function(){return _.O("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.O(_.Q7,{data:function(){return y.data().copyLinkButton}},{buttonViewModel:_.lk}))}}),_.O("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.O(_.Q7,{data:function(){return y.data().playlistCollaborators}},{contentListItemViewModel:_.UZv})))}}))},"uj"),"playlist-collaboration-view-model",{props:{data:_.vB}});var vEM=_.eY(function(y){var W=y.data;var V=y.customCommandResolver;return _.O(_.o8,null,_.O("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.O(_.Q7,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(w){return _.O(_.Lvi,{data:w.data,
customCommandResolver:V})}})),_.O("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.O(_.v,{cond:function(){return W().headline},
then:function(w){return _.O(_.Lv,{text:w,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.O("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.O(_.Q7,{data:function(){return W().adBadge}},{adBadgeViewModel:function(w){return _.O(_.MD,{data:w.data,
hasDot:function(){return W().primaryDetailsLine!==void 0},
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.O(_.Q7,{data:function(){return W().primaryDetailsLine}},{adDetailsLineViewModel:function(w){return _.O(_.qD,{data:w.data,
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"vj"),du_=_.eY(function(y){var W=y.data;
var V=y.customCommandResolver;return _.O("ad-avatar-lockup-view-model",{class:function(){var w;return((w=W().interaction)==null?0:w.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.hl(_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz}),_.Pe(function(){return W().interaction},V)),
"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O(_.$V,null,_.O(_.BV,{when:function(){return W().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.O(vEM,{data:W,
customCommandResolver:V})}),_.O(_.j0,null,function(){return null})))},"wj");_.iF(_.eY(function(y){var W=y.data;var V=y.panelContentVisibility;y=_.L7({visibilityCallback:function(F){var I,P=(I=W().interaction)==null?void 0:I.onFirstVisible;F&&P&&_.Id(P)},
showOption:_.oz});var w=_.Pe(function(){return W().interaction},OC4);
_.rf(function(){var F,I;if(I=_.ts("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;I=(P=I())==null?void 0:P.onLayoutVisibleCallback}else I=null;(F=I)==null||F()});
var t=function(){return V()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.O("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.hl(y,w)},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.O(_.v,{cond:_.iLn("(min-width: "+((0,_.Vv)()+_.kj)+"px) or (max-width: 600px)"),then:function(){return _.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(F){return _.O(_.Bv,{data:F.data,
targetHeight:80,customCommandResolver:OC4})}})}})),_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.O(_.Q7,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.O(du_,{data:F.data,
customCommandResolver:OC4})}})),_.O(_.v,{cond:t,
then:function(){return _.O(_.Q7,{data:function(){return W().adButton}},{adButtonViewModel:function(F){return _.O(_.p9,{data:F.data,
customCommandResolver:OC4})}})},
else:function(){return _.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:_.lk})}}),_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.O(_.Q7,{data:function(){var F=_.h(W().toggleButton,_.aJ);
return{toggleButtonViewModel:Object.assign({},F,{isTogglingDisabled:!0,isToggled:t()})}}},{toggleButtonViewModel:_.XV})))))},"xj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.vB,
panelContentVisibility:_.vB}});_.iF(_.eY(function(y){var W=function(){return _.h(y.data().inputComposerViewModel,cMq)},V=function(){var f;
return((f=W())==null?void 0:f.youchatPendingResponseEntityKey)||""},w=_.Yn(_.rHm,V),t=function(){var f;
return!((f=w())==null||!f.isPendingResponse)},F=_.N(_.M1(!0,void 0,"DR0q1d")),I=F.next().value,P=F.next().value,C=function(){return W().sectionTargetId||"youchat_messages_section"};
F=_.gS("yt-chat-input-view-model");var d=_.I0("textarea"),L=_.Yn(Wyu,"chat_input_view_model_state"),z=VrC(),c=function(){var f;return!((f=L())==null||!f.value)};
_.a8(function(){var f;if(!c()&&((f=W())==null?0:f.welcomeFeatureContinuation)){f={continuationCommand:{token:W().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var U,l=String(Math.floor(((U=_.Sf())==null?void 0:U.getCurrentTime())||0)*1E3);U={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:l}};_.F2(f,{form:{formData:U}});z(!0)}var x=C(),B;(B=_.hs().resolve(_.eX(_.jL)))==null||B.addEventListener("yt-navigate-start",function(){_.G$.remove(x);z(!1)},
{once:!0})});
var K=function(){var f=d.value.value;d.value.value="";vvm(d.value);var U,l=((U=W())==null?void 0:U.enableGradientColorBg)||!1;U=dSe(C(),f,l);_.F2(U);var x=_.bSC(V()),B;_.Id(((B=W())==null?void 0:B.onSubmitCommand)||{});x(!0);var r;B=String(Math.floor(((r=_.Sf())==null?void 0:r.getCurrentTime())||0)*1E3);var H;r={continuationCommand:{token:(H=W())==null?void 0:H.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};f={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:f,
playerOffsetMs:B}};_.F2(r,{form:{formData:f},commandController:{onSuccess:function(){x(!1)},
onServerError:function(){var a=C();_.F2({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:a}}]}}});x(!1)}}})};
return _.O("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:F},_.O("div",{class:"chatInputViewModelChatInputWrapper"},_.O("form",{class:"chatInputViewModelChatInputForm"},_.O("textarea",{class:"chatInputViewModelChatInput",el:d,"on:keydown":_.YS(function(f){var U=t()||!1;vvm(d.value);U||f.key!=="Enter"||f.shiftKey||(f.preventDefault(),K());return!1}),
"on:keyup":_.YS(function(){P(d.value.value.length===0);return!1}),
placeholder:function(){var f,U;var l=_.h((U=W())==null?void 0:U.inputFormField,ayd);return l==null?void 0:(f=l.contentProperties)==null?void 0:f.placeholderText},
rows:1}),_.O(_.lk,{data:function(){return _.h(y.data().sendButton,_.H5)},
onClick:function(f){f.preventDefault();K();P(d.value.value.length===0)},
buttonOverrides:function(){return{disabled:I()||t()}}})),_.O(_.Lv,{className:"chatInputViewModelChatDisclaimer",
text:function(){var f;return(f=_.h(y.data().disclaimer,_.xnK))==null?void 0:f.text}})))},"yj"),"yt-chat-input-view-model",{props:{data:_.vB}});var LCx=["engagement-panel-clip-create","engagement-panel-clip-view"],z4x=0,gY=function(){var y=_.u.apply(this,arguments)||this;var W;y.headerData=(W=y.data)==null?void 0:W.header;y.darkerPanels=_.e("web_watch_darker_panels");y.matchContentTheme=_.e("web_watch_panel_content_match_theme");y.disableAutoFill=!1;y.isFullscreen=!1;y.isTheaterMode=!1;y.modernPanels=_.e("kevlar_watch_modern_panels");y.liveChatReplyPanel=!1;y.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");y.disableBackdropFilter=
_.e("web_disable_backdrop_filter");y.trackEngagementPanelVisibility=_.e("web_watch_track_engagement_panel_visibility");y.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 y};
_.p(gY,_.u);_.E=gY.prototype;
_.E.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(y){var W;return(y==null?void 0:(W=y.webComponentHint)==null?void 0:W.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.E.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var y;if((y=this.hostElement.parentElement)==null?0:y.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.E.detached=function(){this.updateTheaterDisablement()};
_.E.showPanel=function(){var y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.HU.addJob(function(){y.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.E.maybeScrollToItemSection=function(y){var W=this,V,w=y==null?void 0:(V=y.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;w&&_.HU.addJob(function(){var t;(t=W.sectionListRendererElement)==null||t.scrollToItemSection(w)},8)};
_.E.hidePanel=function(){var y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.HU.addJob(function(){y.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.E.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.E.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.E.updatePanel=function(y,W,V,w){var t=this;if((y=y==null?void 0:y.engagementPanelSectionListRenderer)||w){if(y){w=y.header;var F=y.content,I=y.footer;(y=y.targetId)&&this.set("data.targetId",y);w&&this.set("data.header",w);F&&this.set("data.content",F);I&&this.set("data.footer",I)}else w&&(y=w.content,F=w.secondaryHeaderContent,(w=w.targetId)&&this.set("data.targetId",w),y&&this.set("data.content",y),F&&(this.secondaryHeaderData=F));this.updateChildVisibilityProperties();if(W){var P;_.e("kevlar_update_panel_focus_scroll_killswitch")||
(P={preventScroll:!0});this.focus(P)}_.gy(this,function(){_.h1(t.hostElement,"yt-refit");t.maybeScrollToItemSection(V)})}};
_.E.computeHeaderData=function(){var y,W=(0,_.Gc.unsafeClone)((y=this.data)==null?void 0:y.header);if(W){y=new _.zf(Object.keys(W)[0]);var V=_.h(W,y),w=_.h(this.secondaryHeaderData,y);w&&_.Z8(W,y,Object.assign({},w,V))}return W};
_.E.getReloadContinuation=function(){var y,W,V,w=_.N(((y=this.data)==null?void 0:(W=y.content)==null?void 0:(V=W.sectionListRenderer)==null?void 0:V.continuations)||[]);for(y=w.next();!y.done;y=w.next())if(y=y.value,y.reloadContinuationData)return y.reloadContinuationData.continuation};
_.E.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var y;((y=this.data)==null?0:y.targetId)&&(y=this.contentElement.firstElementChild)&&y.setAttribute("panel-target-id",this.data.targetId)};
_.E.forwardPopupClosedToFlowRootRenderer=function(){var y=_.i6(this.hostElement).querySelector("ytd-flow-root-renderer");if(y)y.onPopupClosed()};
_.E.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var y;if(!LCx.includes((y=this.theaterDisablementPanelIdentifier)!=null?y:""))if(y=_.e("web_watch_imax_theater_mode")&&this.isTheaterMode,y=_.e("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||y,_.e("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||y){var W;this.visibility=(W=this.data)==null?void 0:W.visibility;var V;this.trackEngagementPanelVisibility&&((V=this.data)==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var w,t,F,I;this.contentEmpty=!!(((w=this.data)==null?0:(t=w.content)==null?0:t.structuredDescriptionContentRenderer)&&Object.keys((F=this.data)==null?void 0:(I=F.content)==null?void 0:
I.structuredDescriptionContentRenderer).length===0);(W=_.hs().resolve(_.$t))&&W.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.E.isTheaterModeChanged=function(){_.e("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.E.isFullscreenChanged=function(){_.e("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.E.focus=function(y){if(this.header)this.header.focus(y);else{var W;(W=_.i6(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||W.focus(y)}};
_.E.visibilityChanged=function(){if(!_.e("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var y=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=w||!this.lastVisibility,F,I,P,C=((F=this.data)==null?void 0:(I=F.identifier)==null?void 0:
I.tag)||((P=this.data)==null?void 0:P.panelIdentifier);if(y&&t){var d;((d=this.data)==null?0:d.onShowCommands)&&_.fg(this.hostElement,this.data.onShowCommands,this.hostElement);C&&_.dP().dispatch(_.ig({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:C}}))}else if(W&&V){var L;((L=this.data)==null?0:L.onHideCommands)&&_.fg(this.hostElement,this.data.onHideCommands,this.hostElement);C&&_.dP().dispatch(_.ig({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:C}}))}y&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*z4x++));_.e("kevlar_watch_focus_on_engagement_panels")&&y&&w&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.E.notifyVisibilityChanged=function(y){var W;_.Kg(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,y,(W=this.data)==null?void 0:W.targetId])};
_.E.updateTheaterDisablement=function(){if(!_.e("kevlar_watch_theater_disablement_killswitch")){var y=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&LCx.includes(y)&&!_.e("watch_next_grid_ignore_disallowed_panels")){var W=_.W5(_.dP().getState()),V=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";y!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():V?(this.originalTheaterState===void 0&&(this.originalTheaterState=W,this.theaterDisablementPanelIdentifier=
y),W&&_.ow(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.E.clearTheaterDisablement=function(){_.ow(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.E.updateChildVisibilityProperties=function(){this.hostElement||_.e("kevlar_panel_property_init_killswitch")||this._enableProperties();var y=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=y);var W,V=(W=this.headerElement)==null?void 0:W.firstElementChild;if(V&&!this.adHeaderImageLockupViewModel){W=y==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";V.collapsed=W;V=_.i6(V).querySelector("#visibility-button");if(!V)return;(V=V.firstElementChild)&&
V.polymerController.is==="ytd-toggle-button-renderer"&&V.polymerController.data.isToggled!==W&&V.polymerController.set("data.isToggled",W)}var w;if(W=(w=this.contentElement)==null?void 0:w.firstElementChild)if(y&&y!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")W.removeAttribute("panel-content-visible");else{W.setAttribute("panel-content-visible","");var t;(t=W.markDirty)==null||t.call(W)}};
_.E.onYtChangeEngagementPanelVisibilityAction=function(y){var W=this,V,w=(V=this.data)==null?void 0:V.targetId,t,F,I;V=((t=this.data)==null?void 0:(F=t.identifier)==null?void 0:F.tag)||((I=this.data)==null?void 0:I.panelIdentifier);var P=_.h(y,_.APJ),C;y=w&&(P==null?void 0:P.targetId)===w||V&&(P==null?void 0:(C=P.panelIdentifier)==null?void 0:C.tag)===V;this.dialog&&y&&(P==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(w==="engagement-panel-comments-section"?_.ow(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ow(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",V]));!_.e("kevlar_use_engagement_panel_management_component")&&y&&(w=P.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!w?_.HU.addJob(function(){W.visibility=P.visibility},2,this.hideDelayMs):this.visibility=P.visibility,P.visibility&&this.notifyVisibilityChanged(P.visibility))};
_.E.onYtScrollToEngagementPanelCommand=function(y){var W,V=(W=this.data)==null?void 0:W.targetId,w,t,F;W=((w=this.data)==null?void 0:(t=w.identifier)==null?void 0:t.tag)||((F=this.data)==null?void 0:F.panelIdentifier);y=_.h(y,_.rP6);var I;(V&&(y==null?void 0:y.targetId)===V||W&&(y==null?void 0:(I=y.panelIdentifier)==null?void 0:I.tag)===W)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ow(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.E.attachVEs=function(y){var W,V;(y==null?0:(W=y.content)==null?0:(V=W.productListRenderer)==null?0:V.trackingParams)&&_.BC().graftServerVe(y.content.productListRenderer.trackingParams);var w,t;(y==null?0:(w=y.content)==null?0:(t=w.transcriptRenderer)==null?0:t.trackingParams)&&_.BC().graftServerVe(y.content.transcriptRenderer.trackingParams)};
_.E.onYtUpdateEngagementPanelAction=function(y){var W,V=(W=this.data)==null?void 0:W.targetId;y=_.h(y,ZC3);V&&(y==null?void 0:y.targetId)===V&&(this.updatePanel({engagementPanelSectionListRenderer:{header:y==null?void 0:y.header,content:y==null?void 0:y.content}},!1),this.attachVEs(y))};
_.E.onYtShowEngagementPanelScrimAction=function(y){var W,V=(W=this.data)==null?void 0:W.targetId;y=_.h(y,Qm4);V&&(y==null?void 0:y.engagementPanelTargetId)===V&&(this.scrimmed=!0)};
_.E.onYtHideEngagementPanelScrimAction=function(y){var W,V=(W=this.data)==null?void 0:W.targetId;y=_.h(y,rJj);V&&(y==null?void 0:y.engagementPanelTargetId)===V&&(this.scrimmed=!1)};
_.E.getIdentifier=function(){var y,W,V;return((y=this.data)==null?void 0:y.panelIdentifier)||((W=this.data)==null?void 0:(V=W.identifier)==null?void 0:V.tag)};
_.E.getSurface=function(){var y,W;return(y=this.data)==null?void 0:(W=y.identifier)==null?void 0:W.surface};
_.CM.Object.defineProperties(gY.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var y=this.getIdentifier();return y==="engagement-panel-youchat"||y==="PAyouchat"}}});
gY.prototype.visibilityChanged=gY.prototype.visibilityChanged;gY.prototype.isFullscreenChanged=gY.prototype.isFullscreenChanged;gY.prototype.isTheaterModeChanged=gY.prototype.isTheaterModeChanged;gY.prototype.dataChanged=gY.prototype.dataChanged;gY.prototype.forwardPopupClosedToFlowRootRenderer=gY.prototype.forwardPopupClosedToFlowRootRenderer;gY.prototype.onYtRendererstamperFinished=gY.prototype.onYtRendererstamperFinished;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],gY.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],gY.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],gY.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"data",void 0);
_.J([_.q({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.R("design:type",Object)],gY.prototype,"headerData",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"secondaryHeaderData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"visibility",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"contentEmpty",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"scrimmed",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"dialog",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"dropdown",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"darkerPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"matchContentTheme",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"disableAutoFill",void 0);
_.J([_.q({reflectToAttribute:!0,value:_.e("optimal_reading_width_comments_ep")}),_.R("design:type",Boolean)],gY.prototype,"optimalReadingWidthComments",void 0);_.J([_.q(),_.R("design:type",Number)],gY.prototype,"hideDelayMs",void 0);_.J([_.q({selector:_.V7,reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"isFullscreen",void 0);_.J([_.q({selector:_.W5,reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"isTheaterMode",void 0);
_.J([_.q(),_.R("design:type",Number)],gY.prototype,"showDelayMs",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.targetId"),_.R("design:type",Object),_.R("design:paramtypes",[])],gY.prototype,"targetId",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],gY.prototype,"webSize",null);_.J([_.q(),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],gY.prototype,"hideFooterBorder",null);
_.J([_.q(),_.R("design:type",Object)],gY.prototype,"isWatch",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"originalTheaterState",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"theaterDisablementPanelIdentifier",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"modernPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"isWatchWhilePanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"shortsPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"liveChatEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],gY.prototype,"learningChatEngagementPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"liveChatReplyPanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"enableAnchoredPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gY.prototype,"disableBackdropFilter",void 0);_.J([_.q(),_.R("design:type",Object)],gY.prototype,"trackEngagementPanelVisibility",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],gY.prototype,"headerElement",void 0);_.J([_.s$("#header > *"),_.R("design:type",HTMLElement)],gY.prototype,"header",void 0);
_.J([_.s$("ytd-section-list-renderer"),_.R("design:type",Object)],gY.prototype,"sectionListRendererElement",void 0);_.J([_.s$("panel-ad-header-image-lockup-view-model"),_.R("design:type",HTMLElement)],gY.prototype,"adHeaderImageLockupViewModel",void 0);_.J([_.s$("#content"),_.R("design:type",HTMLElement)],gY.prototype,"contentElement",void 0);
_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"onYtRendererstamperFinished",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.J([_.Jc("data","isFullscreen","isTheaterMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"dataChanged",null);
_.J([_.xA("isTheaterMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"isTheaterModeChanged",null);_.J([_.xA("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"isFullscreenChanged",null);_.J([_.xA("visibility"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gY.prototype,"visibilityChanged",null);
_.J([_.k({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],gY);
_.Y(gY,"ytd-engagement-panel-section-list-renderer",function(){if(BmG!==void 0)return BmG;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return BmG=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var cm3;var PL=function(){var y=_.u.apply(this,arguments)||this;y.lastRenderedPanelIds=new Set;y.visiblePanels=[];y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return y};
_.p(PL,_.u);_.E=PL.prototype;_.E.dataChanged=function(){if(this.data){for(var y=[],W=_.N(this.data),V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0,t=void 0,F=(w=V)==null?void 0:(t=w.engagementPanelSectionListRenderer)==null?void 0:t.visibility;t=w=void 0;((w=V)==null?0:(t=w.engagementPanelSectionListRenderer)==null?0:t.targetId)&&F!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&y.push(V)}this.visiblePanels=y}else this.visiblePanels=[]};
_.E.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}}};
_.E.withoutVisiblePanelById=function(y){return this.visiblePanels.filter(function(W){var V;return((V=W.engagementPanelSectionListRenderer)==null?void 0:V.targetId)!==y})};
_.E.onYtChangeEngagementPanelVisibilityAction=function(y){var W=this,V=_.h(y,_.APJ);if(this.data&&(V==null?0:V.targetId)&&(V==null?0:V.visibility)){var w,t=(w=this.data.find(function(I){var P;return((P=I.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===V.targetId}))==null?void 0:w.engagementPanelSectionListRenderer;
if(t){var F=this.withoutVisiblePanelById(V.targetId);V.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(y=this.data.find(function(I){var P;return((P=I.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===V.targetId}))&&(F=[y].concat(_.GC(F)));
this.hideDelayMs&&V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&F.length===0?_.HU.addJob(function(){t.visibility=V.visibility;W.visiblePanels=F},10,this.hideDelayMs):(t.visibility=V.visibility,this.visiblePanels=F);
_.Kg(this.hostElement,"yt-engagement-panels-visible-changed",[F])}}};
_.E.onRendererstamperFinished=function(){var y=new Set(this.visiblePanels.map(function(W){var V;return(V=W.engagementPanelSectionListRenderer)==null?void 0:V.targetId}));
this.handlePanelVisibilityChange(y,this.lastRenderedPanelIds);this.lastRenderedPanelIds=y};
_.E.handlePanelVisibilityChange=function(y,W){y=y===void 0?new Set:y;W=W===void 0?new Set:W;if(this.data)for(var V=_.N(this.data),w=V.next();!w.done;w=V.next()){w=w.value;var t=void 0,F=void 0,I=(t=w)==null?void 0:(F=t.engagementPanelSectionListRenderer)==null?void 0:F.targetId;if(I&&(t=W.has(I),F=y.has(I),I=void 0,!t&&F?(F=t=void 0,I=(t=w)==null?void 0:(F=t.engagementPanelSectionListRenderer)==null?void 0:F.onShowCommands):t&&!F&&(F=t=void 0,I=(t=w)==null?void 0:(F=t.engagementPanelSectionListRenderer)==
null?void 0:F.onHideCommands),I))for(w=_.N(I),I=w.next();!I.done;I=w.next())this.ytComponentBehavior.resolveCommand(I.value)}};
PL.prototype.onRendererstamperFinished=PL.prototype.onRendererstamperFinished;PL.prototype.dataChanged=PL.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],PL.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],PL.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PL.prototype,"lastRenderedPanelIds",void 0);_.J([_.q(),_.R("design:type",Number)],PL.prototype,"hideDelayMs",void 0);_.J([_.q(),_.R("design:type",Array)],PL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],PL.prototype,"visiblePanels",void 0);_.J([_.q(),_.R("design:type",Boolean)],PL.prototype,"isWatchWhilePanel",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PL.prototype,"dataChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PL.prototype,"onRendererstamperFinished",null);_.J([_.k({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],PL);
_.Y(PL,"ytd-watch-engagement-panels",function(){if(cm3!==void 0)return cm3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cm3=y},{mode:1});var e4x;var Cy=function(){return _.u.apply(this,arguments)||this};
_.p(Cy,_.u);Cy.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.c7(_.i6(this.hostElement).querySelector("#text"),_.Tmm(_.qE2,this.data.companionLegalText))};
Cy.prototype.computeAutoScrollEnabled=function(y,W){return y&&!W};
Cy.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Cy.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Cy.prototype.expandedChanged=Cy.prototype.expandedChanged;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Lpu),_.R("design:type",Object)],Cy.prototype,"ytdAutoScrollBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Cy.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Cy.prototype,"expanded",void 0);
_.J([_.q({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.R("design:type",Boolean)],Cy.prototype,"autoScrollEnabled",void 0);_.J([_.q(),_.R("design:type",String)],Cy.prototype,"expanderIcon",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cy.prototype,"dataChanged",null);
_.J([_.xA("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cy.prototype,"expandedChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Cy);
_.Y(Cy,"ytd-companion-legal-text-renderer",function(){if(e4x!==void 0)return e4x;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return e4x=y},{mode:1});var h4G;var Os=function(){var y=_.u.apply(this,arguments)||this;y.buttonUpdate=_.e("web_modern_buttons");y.kevlarWatchGrid=_.e("kevlar_watch_grid");y.centerAlignDescription=_.e("action_companion_center_align_description");y.truncateDomain=_.e("action_companion_truncate_domain");return y};
_.p(Os,_.u);_.E=Os.prototype;_.E.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.E.getOnLayoutVisibleCallback=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.E.getLayoutId=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.E.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Os.JSC$22522_DEFAULT_AD_BADGE_RENDERER);var y=this.getOnLayoutVisibleCallback();y&&y()}};
_.E.getButtonRenderer=function(y){return y.actionButton&&_.h(y.actionButton,_.wz)?(delete _.h(y.actionButton,_.wz).navigationEndpoint,_.h(y.actionButton,_.wz)):{}};
_.E.onClick=function(y){var W=this;if((!_.e("web_modern_buttons")||!_.c5(_.O$(y),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){y=_.Kn();var V=this.getLayoutId();y&&V&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(w){(new _.HG(w)).executeCommand(W.data.navigationEndpoint,V)}):_.e("kevlar_companion_resolve_command_killswitch")?_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ow(this.hostElement,"yt-companion-ad-clicked",["action-companion",V])}};
_.CM.Object.defineProperties(Os.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(V=W.adRating)==null?0:V.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 y,W,V,w;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(V=W.adRating)==null?0:(w=V.ratingIcon)==null?0:w.iconType)?_.D8(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(V=W.texts)==null?0:(w=V[0])==null?0:w.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 y,W;return((y=this.data)==null?0:(W=y.description)==null?0:W.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var y=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return y?y.indexOf("/default_banner")!==-1:!0}}});
Os.prototype.onClick=Os.prototype.onClick;Os.prototype.dataChanged=Os.prototype.dataChanged;Os.JSC$22522_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.u5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Os.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Os.prototype,"rendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Os.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Os.prototype,"buttonUpdate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Os.prototype,"kevlarWatchGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Os.prototype,"centerAlignDescription",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Os.prototype,"truncateDomain",void 0);
_.J([_.q({computed:"computeButtonOverride(buttonUpdate)"}),_.R("design:type",Object)],Os.prototype,"buttonOverride",void 0);_.J([_.M("data.detailsLine.adRating.ratingText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Os.prototype,"getRating",null);_.J([_.M("getRating"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Os.prototype,"computeRatingHidden",null);
_.J([_.M("data.detailsLine.adRating.ratingIcon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Os.prototype,"iconType",null);_.J([_.M("data.detailsLine.texts.0.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Os.prototype,"getDetailsLine",null);_.J([_.M("getDetailsLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Os.prototype,"computeDetailsLineHidden",null);
_.J([_.M("data.description.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Os.prototype,"getDescriptionText",null);_.J([_.M("getDescriptionText"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Os.prototype,"computeDescriptionTextHidden",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Os.prototype,"interactionLoggingClientData",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Os.prototype,"hideBanner",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Os.prototype,"dataChanged",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Os.prototype,"onClick",null);_.J([_.k({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Os);
_.Y(Os,"ytd-action-companion-ad-renderer",function(){if(h4G!==void 0)return h4G;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return h4G=y},{mode:_.qM("kevlar_poly_si_batch_j067")?1:2});var oE_;var KCf;var vL=function(){var y=_.u.apply(this,arguments)||this;y.buttonUpdate=_.e("web_modern_buttons");y.hideLegacyBanner=_.e("enable_dsa_one_click_ata_translators_infeed_elements");y.adInfoButtonStyle="mono";y.adInfoButtonType="text";y.noDotAdBadge=!0;return y};
_.p(vL,_.u);_.E=vL.prototype;_.E.getOnLayoutVisibleCallback=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.E.getLayoutId=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.E.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 y=this.data.image.thumbnail.thumbnails[0];this.imageSrc=y.url?_.ye(y.url):void 0;this.imageWidth=y.width||0;this.imageHeight=y.height||0}this.data.clickthroughEndpoint&&_.h(this.data.clickthroughEndpoint,_.wS)&&(y=_.h(this.data.clickthroughEndpoint,_.wS).url,_.e("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
y||"":y?(y=_.ye(y),this.clickThroughUrl=_.G3(y)):this.clickThroughUrl=void 0);(y=this.getOnLayoutVisibleCallback())&&y()}};
_.E.onClick=function(y){_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(y)};
_.E.handleClick=function(){var y=this;this.data&&this.data.clickthroughEndpoint&&(_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(W){y.macroReplacementBehavior.sendServiceRequestAction([W])}),_.ow(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.E.onLoad=function(){_.Kg(this.hostElement,"yt-refit-popups-action")};
_.CM.Object.defineProperties(vL.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}}});
vL.prototype.onLoad=vL.prototype.onLoad;vL.prototype.onClick=vL.prototype.onClick;vL.prototype.dataChanged=vL.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vL.prototype,"rendererBehavior",void 0);_.J([_.m(Xyh.YtMacroReplacementBehavior),_.R("design:type",Object)],vL.prototype,"macroReplacementBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vL.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vL.prototype,"buttonUpdate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vL.prototype,"hideLegacyBanner",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vL.prototype,"adInfoButtonStyle",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vL.prototype,"adInfoButtonType",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vL.prototype,"macros",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vL.prototype,"interactionLoggingClientData",null);_.J([_.q(),_.R("design:type",String)],vL.prototype,"clickThroughUrl",void 0);_.J([_.q(),_.R("design:type",_.HZ)],vL.prototype,"imageSrc",void 0);_.J([_.q(),_.R("design:type",Number)],vL.prototype,"imageWidth",void 0);_.J([_.q(),_.R("design:type",Number)],vL.prototype,"imageHeight",void 0);_.J([_.q(),_.R("design:type",Object)],vL.prototype,"noDotAdBadge",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vL.prototype,"dataChanged",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],vL.prototype,"onClick",null);_.J([_.l6("load"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vL.prototype,"onLoad",null);_.J([_.k({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],vL);
_.Y(vL,"ytd-image-companion-renderer",function(){if(KCf!==void 0)return KCf;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return KCf=y},{mode:_.qM("kevlar_poly_si_batch_j067")?1:2});var pdx;var dY=function(){return _.u.apply(this,arguments)||this};
_.p(dY,_.u);_.E=dY.prototype;_.E.dataChanged=function(){this.set("data.adBadge",dY.JSC$22531_DEFAULT_AD_BADGE_RENDERER);if(this.data){var y=this.getOnLayoutVisibleCallback();y&&y()}};
_.E.getOnLayoutVisibleCallback=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.E.getLayoutId=function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.E.onCompanionClicked=function(y){this.data&&(y.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ow(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.E.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var y=_.Kn(),W=this.getLayoutId(),V=this.data.clickToAdvSiteEndpoint;y&&W&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(w){(new _.HG(w)).executeCommand(V,W)}):_.h1(this.hostElement,"yt-navigate",{endpoint:V})}};
_.E.sendTrackingPings=function(y){if(y&&y.length!==0&&y[0].loggingUrls&&(y=y[0].loggingUrls.map(this.getBaseUrl)))for(var W=0;W<y.length;W++)_.Fk(y[W])};
_.E.getBaseUrl=function(y){return y.baseUrl||""};
_.CM.Object.defineProperties(dY.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.ts("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}}});
dY.prototype.onCompanionClicked=dY.prototype.onCompanionClicked;dY.prototype.dataChanged=dY.prototype.dataChanged;dY.JSC$22531_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.u5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dY.prototype,"data",void 0);_.J([_.s$("#title"),_.R("design:type",HTMLElement)],dY.prototype,"shopTitle",void 0);
_.J([_.Jc("data.impressionEndpoints"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dY.prototype,"dataChanged",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],dY.prototype,"interactionLoggingClientData",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],dY.prototype,"onCompanionClicked",null);
_.J([_.k({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],dY);
_.Y(dY,"ytd-shopping-companion-renderer",function(){if(pdx!==void 0)return pdx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return pdx=y},{mode:1});_.iF(_.eY(function(y){var W=y.data;y=_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz});var V=_.Pe(function(){return W().interaction},Lym);
_.rf(function(){var w,t;t=(t=_.ts("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(w=t)==null||w()});
return _.O("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.YS(function(w){_.Kg(w.currentTarget,"yt-refit-popups-action")}),
el:_.hl(y,V),"aria-label":function(){var w,t;return(w=W().interaction)==null?void 0:(t=w.accessibility)==null?void 0:t.label}},_.O("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.O(_.Bv,{data:w.data,
targetHeight:80,customCommandResolver:Lym})}})),_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.O(_.Q7,{data:function(){return W().adBadge}},{adBadgeViewModel:function(w){return _.O(_.MD,{data:w.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:_.lk}))))},"zj"),"banner-image-layout-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;y=_.L7({visibilityCallback:function(w){var t,F=(t=W().interaction)==null?void 0:t.onFirstVisible;w&&F&&_.Id(F)},
showOption:_.oz});var V=_.Pe(function(){return W().interaction},zHm);
_.rf(function(){var w,t;t=(t=_.ts("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(w=t)==null||w()});
return _.O("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.hl(y,V)},_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.O(_.Q7,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.O(_.Bv,{data:w.data,
targetHeight:80,customCommandResolver:zHm})}})),_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.O(_.Q7,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.O(du_,{data:w.data,
customCommandResolver:zHm})}})),_.O(_.Q7,{data:function(){return W().adButton}},{adButtonViewModel:function(w){return _.O(_.p9,{data:w.data,
customCommandResolver:zHm})}}),_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.O(_.Q7,{data:function(){return W().menu}},{buttonViewModel:_.lk}))))},"Aj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.vB}});var ie5={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"},Ly=function(){var y=_.u.apply(this,arguments)||this;y.updateCompanionDataJobId=0;y.contentVideoId=null;y.player=null;y.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return y};
_.p(Ly,_.u);_.E=Ly.prototype;_.E.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:ie5}}};
_.E.attached=function(){var y=this,W=_.Kn();W&&W.getPlayerPromise().then(function(V){y.getCachedDataAndListen(V)})};
_.E.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.E.updateRendererStamper=function(){var y={};if(this.data)for(var W in ie5)if(this.data[W]){y[W]=this.data[W];break}if(this.oneofRenderer!=void 0||Object.keys(y).length)this.oneofRenderer=y};
_.E.getCachedDataAndListen=function(y){var W=this.retrieveCachedCompanionData();W&&Object.keys(W).length&&this.receiveCompanionData(W);this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=y};
_.E.retrieveCachedCompanionData=function(){return _.Vj.yt&&_.Vj.yt.www&&_.Vj.yt.www.ads&&_.Vj.yt.www.ads.eventcache&&_.Vj.yt.www.ads.eventcache.getLastCompanionData?_.Vj.yt.www.ads.eventcache.getLastCompanionData():null};
_.E.receiveCompanionData=function(y){y&&Object.keys(y).length?(this.contentVideoId=y.contentVideoId,this.setCompanionData(y)):this.setCompanionData(y)};
_.E.setCompanionData=function(y){this.cancelPendingCompanionAdJobs();if(y){this.updateCompanionDataJobId=0;for(var W in ie5)ie5.hasOwnProperty(W)&&(this.data[W]=void 0);y.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",y.shoppingCompanionCarouselRenderer):y.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",y.imageCompanionAdRenderer):y.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",y.actionCompanionAdRenderer),_.Kg(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Kg(this.hostElement,"yt-hide-tvfilm-offer-module")):y.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",y.bannerImageLayoutViewModel):y.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",y.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.E.dataChanged=function(){var y=this,W=_.Kn();W?W.getPlayerPromise().then(function(V){y.contentVideoId&&V.getVideoUrl().includes("v="+y.contentVideoId)||(y.cancelPendingCompanionAdJobs(),y.updateRendererStamper())}):_.FU(Error("Ao"))};
_.E.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.HU.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.E.handleCompanionAdClicked=function(y,W){this.player.onAdUxClicked(y,W);this.player.pauseVideo()};
Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ly.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ly.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],Ly.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ly.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Ly.prototype,"oneofRenderer",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ly.prototype,"dataChanged",null);_.J([_.k({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Ly);
_.Y(Ly,"ytd-companion-slot-renderer",function(){if(oE_!==void 0)return oE_;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return oE_=y},{mode:_.qM("kevlar_poly_si_batch_j067")?
1:2});var fqx;var zM=function(){return _.u.apply(this,arguments)||this};
_.p(zM,_.u);zM.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
zM.prototype.dataChanged=zM.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zM.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],zM.prototype,"companionSlotData",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zM.prototype,"dataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],zM);
_.Y(zM,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(fqx!==void 0)return fqx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fqx=y},{mode:1});var TWR;var cL=function(){var y=_.u.apply(this,arguments)||this;y.skinnyMode=!1;y.COMPACT_EVENT_COUNT=4;y.onShelfToggleButtonTap=function(){y.logTap(y.data);y.showingMore=!y.showingMore};
y.onShelfToggleButtonFocus=function(){y.showingMore||(y.logTap(y.data),y.showingMore=!0,_.gy(y,function(){var W=y.COMPACT_EVENT_COUNT-1,V;(V=_.i6(y.hostElement).querySelector("#event-"+W))==null||V.focus()}))};
return y};
_.p(cL,_.u);_.E=cL.prototype;_.E.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.E.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.E.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Dp(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Dp(this.infoTooltip,this.infoTooltip.hide))};
_.E.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Dp(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Dp(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Dp(this.infoTooltip,this.infoTooltip.hide))};
_.E.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)};
_.E.onShowingMoreChanged=function(){var y;this.showingMoreChanged((y=this.showingMore)!=null?y:!1)};
_.E.showingMoreChanged=function(y){var W=this.get("data.events")||[];this.set("restEvents",W.slice(1,y?W.length:this.COMPACT_EVENT_COUNT).map(function(V){return V.ticketEventRenderer}));
W.slice(0,y?W.length:this.COMPACT_EVENT_COUNT).forEach(function(V){var w=_.Xn();V=V.ticketEventRenderer.trackingParams;_.Hf()&&w&&V&&(V=_.nD(V),w&&_.NK(w,V))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.E.computeAriaLabel=function(y){return y.subtitle1+", "+y.subtitle2};
_.E.logTap=function(y){_.Hf()&&this.ytRendererBehavior.logExplicitClick(y)};
_.E.isKeyboardAction=function(y){return this.get("detail.x",y)===0&&this.get("detail.y",y)===0};
_.E.onFirstEventTap=function(y){y.target&&this.handleTap(y.target,this.firstEvent,this.isKeyboardAction(y))};
_.E.onTicketLinkTap=function(y){y.target&&this.handleTap(y.target,y.model.item,this.isKeyboardAction(y))};
_.E.handleTap=function(y,W,V){if(W.buttonCommand)if(W.hasMultipleOffers)Object.assign(_.h(W.buttonCommand,_.Hq),{properties:{source:V?"keyboard":"tap"}}),this.logTap(W),this.popupPositionTarget=y,_.fg(this.hostElement,[W.buttonCommand],this.hostElement);else{var w;if((w=_.h(W.buttonCommand,_.wS))==null?0:w.url)this.logTap(W),_.P7(window,_.h(W.buttonCommand,_.wS).url)}};
cL.prototype.onShowingMoreChanged=cL.prototype.onShowingMoreChanged;cL.prototype.dataChanged=cL.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cL.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],cL.prototype,"firstEvent",void 0);_.J([_.q(),_.R("design:type",Object)],cL.prototype,"restEvents",void 0);_.J([_.q(),_.R("design:type",String)],cL.prototype,"imageUrl",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],cL.prototype,"showingMore",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],cL.prototype,"canShowMore",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cL.prototype,"skinnyMode",void 0);_.J([_.q(),_.R("design:type",HTMLElement)],cL.prototype,"popupPositionTarget",void 0);_.J([_.s$("#banner-info-tooltip"),_.R("design:type",Object)],cL.prototype,"infoTooltip",void 0);
_.J([_.s$("#info-container"),_.R("design:type",HTMLElement)],cL.prototype,"infoContainer",void 0);_.J([_.s$("#shelf-toggler"),_.R("design:type",HTMLElement)],cL.prototype,"shelfToggleButton",void 0);_.J([_.s$("#separator"),_.R("design:type",HTMLDivElement)],cL.prototype,"separator",void 0);_.J([_.q(),_.R("design:type",String)],cL.prototype,"shelfTogglerLabelText",void 0);_.J([_.q(),_.R("design:type",String)],cL.prototype,"shelfTogglerIcon",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cL.prototype,"dataChanged",null);_.J([_.Jc("showingMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cL.prototype,"onShowingMoreChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],cL);
_.Y(cL,"ytd-ticket-shelf-renderer",function(){if(TWR!==void 0)return TWR;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TWR=y},{mode:1});var muG;var MPx;var e7=function(){return _.u.apply(this,arguments)||this};
_.p(e7,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],e7.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],e7);
_.Y(e7,"ytd-comments-entry-point-message-renderer",function(){if(MPx!==void 0)return MPx;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return MPx=y},{mode:1});var q3Z;var hM=function(){return _.u.apply(this,arguments)||this};
_.p(hM,_.u);_.CM.Object.defineProperties(hM.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.teaserAvatar)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hM.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],hM.prototype,"hasAvatar",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],hM);
_.Y(hM,"ytd-comments-entry-point-teaser-renderer",function(){if(q3Z!==void 0)return q3Z;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return q3Z=y},{mode:1});var UuM;var o$=function(){return _.u.apply(this,arguments)||this};
_.p(o$,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],o$.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],o$);
_.Y(o$,"ytd-comments-simplebox-renderer",function(){if(UuM!==void 0)return UuM;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UuM=y},{mode:1});var Ky=function(){var y=_.u.apply(this,arguments)||this;y.fullHeight=!_.e("comment_teaser_full_height_kill_switch")&&_.e("kevlar_watch_grid");return y};
_.p(Ky,_.u);Ky.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"}}}};
Ky.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ky.prototype.onTap=function(){var y=this.tapCommand;y&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(y))};
Ky.prototype.onKeyUp=function(y){if(y.keyCode===13)this.onTap()};
_.CM.Object.defineProperties(Ky.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.onTap)return this.data.onTap;var W,V;if(((W=this.data)==null?0:W.teaserContent)||((V=this.data)==null?0:V.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)!=null&&y.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Ky.prototype.onKeyUp=Ky.prototype.onKeyUp;Ky.prototype.onTap=Ky.prototype.onTap;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ky.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ky.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ky.prototype,"fullHeight",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"tapCommand",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"simpleboxPlaceholder",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ky.prototype,"hasSimpleboxPlaceholder",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"simpleboxAvatar",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"teaserContent",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ky.prototype,"hasTeaserContent",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"teaserAvatar",null);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ky.prototype,"hasTeaserAvatar",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"messageText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ky.prototype,"contentRenderer",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ky.prototype,"hasContents",null);
_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ky.prototype,"hasContentRenderer",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ky.prototype,"onTap",null);_.J([_.l6("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[_.ks]),_.R("design:returntype")],Ky.prototype,"onKeyUp",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ky);
_.Y(Ky,"ytd-comments-entry-point-header-renderer",function(){if(muG!==void 0)return muG;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return muG=y},{mode:1});var uj_;_.e("web_enable_sink_animated_rolling_character_and_number")?_.iF(_.AVR,"yt-animated-rolling-number",{props:{numberText:_.vB,numberValue:_.vB,heightPx:_.vB,fontSizeMultiplier:_.vB,shouldAnimate:_.vB,forceRollUp:_.vB}}):_.Sl(_.InR,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var S3f=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),DuM={numberText:"",heightPx:2*S3f,shouldAnimate:!1},py=function(){var y=_.u.apply(this,arguments)||this;y.usingAnimatedComponents=!0;y.wasDetailed=!1;y.JSC$22568_browserSupportsAnimation=_.e("web_supports_animations_api");y.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};y.detailed=!1;y.shouldAnimate=!1;y.viewCountProps=DuM;y.dateTextProps=
DuM;y.metadataBadgesInDescription=_.e("web_metadata_badges_in_description");return y};
_.p(py,_.u);_.E=py.prototype;_.E.resetAnimationState=function(){this.shouldAnimate=!1};
_.E.updateDynamicMetadata=function(){if(this.JSC$22568_browserSupportsAnimation){if(!this.detailed){var y,W,V,w;var t=(y=this.videoPrimaryInfoRenderer)==null?void 0:(W=y.viewCount)==null?void 0:(V=W.videoViewCountRenderer)==null?void 0:(w=V.extraShortViewCount)==null?void 0:w.simpleText;var F,I,P,C;var d=(F=this.videoPrimaryInfoRenderer)==null?void 0:(I=F.viewCount)==null?void 0:(P=I.videoViewCountRenderer)==null?void 0:(C=P.shortViewCount)==null?void 0:C.simpleText}if(!d){var L,z,c,K;t=(L=this.videoPrimaryInfoRenderer)==
null?void 0:(z=L.viewCount)==null?void 0:(c=z.videoViewCountRenderer)==null?void 0:(K=c.unlabeledViewCountValue)==null?void 0:K.simpleText;var f,U,l,x;d=(f=this.videoPrimaryInfoRenderer)==null?void 0:(U=f.viewCount)==null?void 0:(l=U.videoViewCountRenderer)==null?void 0:(x=l.viewCount)==null?void 0:x.simpleText}var B,r,H;y=Number((B=this.videoPrimaryInfoRenderer)==null?void 0:(r=B.viewCount)==null?void 0:(H=r.videoViewCountRenderer)==null?void 0:H.originalViewCount);var a,b;B=(a=this.videoPrimaryInfoRenderer)==
null?void 0:(b=a.relativeDateText)==null?void 0:b.simpleText;var Fv;a=!((Fv=this.videoPrimaryInfoRenderer)==null||!Fv.relativeDateText);if(t&&d&&y&&(B||!a)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Fv=d.split(new RegExp("("+t+")"));t=pb4(Fv[0]);var Py;d={numberText:(Py=Fv[1])!=null?Py:"",numberValue:y,heightPx:2*S3f,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var du;Py=((du=Fv[2])!=null?du:"")+"  ";this.setViewCount(d,t,pb4(Py));
if(!this.detailed&&a){t=B.split(/(\d+)/);du=pb4(t[0]);var mL;Py={numberText:(mL=t[1])!=null?mL:"",heightPx:2*S3f,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var un;mL=((un=t[2])!=null?un:"")+"  ";this.setDateText(Py,du,pb4(mL))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.E.setViewCount=function(y,W,V){_.OT(W)!==_.OT(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=W);this.viewCountProps.numberText!==(y==null?void 0:y.numberText)&&(this.viewCountProps=y||DuM);_.OT(V)!==_.OT(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=V)};
_.E.setDateText=function(y,W,V){_.OT(W)!==_.OT(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=W);this.dateTextProps.numberText!==(y==null?void 0:y.numberText)&&(this.dateTextProps=y||DuM);_.OT(V)!==_.OT(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=V)};
_.E.onYtUpdateViewershipAction=function(y){this.videoPrimaryInfoRenderer&&(_.h(y,TYm).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.h(y,TYm).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.h(y,TYm).viewCount)))};
_.E.onYtUpdateDateTextAction=function(y){if(this.videoPrimaryInfoRenderer){y=_.h(y,_.iyu).dateText;this.shouldAnimate=!0;var W;((W=this.videoPrimaryInfoRenderer)==null?0:W.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",y):this.set("videoPrimaryInfoRenderer.dateText",y)}};
_.CM.Object.defineProperties(py.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return KyW(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.OT(KyW(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OT(this.viewCountPreNumberText),this.viewCountProps.numberText,_.OT(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OT(this.dateTextPreNumberText),this.dateTextProps.numberText,_.OT(this.dateTextPostNumberText)].join("")}}});
py.prototype.updateDynamicMetadata=py.prototype.updateDynamicMetadata;py.prototype.resetAnimationState=py.prototype.resetAnimationState;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],py.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],py.prototype,"videoPrimaryInfoRenderer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"detailed",void 0);_.J([_.q(),_.R("design:type",Object)],py.prototype,"shouldAnimate",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"viewCountPreNumberText",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"viewCountProps",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"viewCountPostNumberText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"dateTextPreNumberText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"dateTextProps",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"dateTextPostNumberText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],py.prototype,"metadataBadgesInDescription",void 0);_.J([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.R("design:type",Object),_.R("design:paramtypes",[])],py.prototype,"infoText",null);
_.J([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.R("design:type",String),_.R("design:paramtypes",[])],py.prototype,"descriptionInfoTooltipText",null);_.J([_.M("detailed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],py.prototype,"showDescriptionInfoTooltip",null);
_.J([_.M("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.R("design:type",String),_.R("design:paramtypes",[])],py.prototype,"animatedViewCountAccessibilityLabel",null);_.J([_.M("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.R("design:type",String),_.R("design:paramtypes",[])],py.prototype,"animatedDateTextAccessibilityLabel",null);
_.J([_.xA("videoPrimaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],py.prototype,"resetAnimationState",null);_.J([_.xA("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],py.prototype,"updateDynamicMetadata",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-watch-info-text"})],py);
_.Y(py,"ytd-watch-info-text",function(){if(uj_!==void 0)return uj_;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return uj_=y},{mode:1});var lqu;var xu5="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var kj1=_.eY(function(y){var W=y.data;var V=y.setTapCommand;_.H1(function(){var w=_.tl(W().onTap);V(w)},"X4onJd");
return _.O("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.O(_.Q7,{data:function(){return W().avatar}},{avatarViewModel:_.ra}),_.O("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.O("span",null,function(){return W().simpleboxText})))},"Bj");var svR=_.eY(function(y){return _.O("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.O(_.v,{cond:function(){return _.h(y.data().avatar,_.EZ)},
then:function(W){return _.O(_.ra,{data:W,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.O("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.O(_.Lv,{text:function(){return y.data().teaserText}})))},"Cj");var Amu=_.eY(function(y){var W=y.data;var V=y.setTapCommand;_.H1(function(){var w=_.tl(W().onTap);V(w)},"PmAol");
return _.O("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.O(_.Q7,{data:function(){return W().teasers}},{commentsEntryPointTeaserViewModel:svR}))},"Dj");var Y3G=_.eY(function(y){var W=y.data;var V=y.setTapCommand;_.H1(function(){var w=_.tl(W().onTap);V(w)},"Nh3Hjd");
return _.O("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.O(_.Lv,{text:function(){return W().messageText}}))},"Ej");var BWG=_.eY(function(y){var W=y.data;var V=y.setTapCommand;var w=y.isDisabled;_.H1(function(){var t=(w==null?0:w())?void 0:_.tl(W().onTap);V(t)},"omeiWe");
return _.O("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.O(_.jl,{icon:function(){return W().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.O(_.v,{cond:function(){return W().image},
then:function(t){return _.O(_.ca,{data:t,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.O(_.Lv,{text:function(){return W().text},
className:function(){return W().image||W().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.O(_.Q7,{data:function(){return W().button}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:w==null?void 0:w()}}})}}))},"Fj");var Jm_=_.eY(function(y){var W=y.data;var V=y.itemIndex;var w=y.selectedIndex;var t=y.indexUpdatedCallback;var F=y.observer;y=y.title;var I=_.I0("yt-carousel-item-view-model",function(z){_.e("web_metadata_carousel_elref_bugfix")&&F&&F().observe(z)}),P=function(z){V()===w()&&t(z)},C=_.tn(QIC),d=_.tn(_.ZYR),L=function(){var z,c,K;
return((z=W())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!C()||((c=W())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&d().includes("PAposts_by_host")||((K=W())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&d().includes("PAyouchat")};
_.a8(function(){_.e("web_metadata_carousel_elref_bugfix")||F&&F().observe(I.value)});
return _.O("yt-carousel-item-view-model",{el:I,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":y},_.O(_.Q7,{data:function(){var z,c;return(c=(z=_.h(W().carouselItem,Xbj))==null?void 0:z.textCarousel)!=null?c:W().carouselItem}},{textCarouselItemViewModel:function(z){return _.O(BWG,{data:z.data,
setTapCommand:P,isDisabled:L})},
commentTeaserCarouselItemViewModel:function(z){return _.O(Amu,{data:z.data,setTapCommand:P})},
commentInputBoxCarouselItemViewModel:function(z){return _.O(kj1,{data:z.data,setTapCommand:P})},
commentsEntryPointMessageViewModel:function(z){return _.O(Y3G,{data:z.data,setTapCommand:P})}}))},"Gj");var R45=_.eY(function(y){var W=y.numDots;var V=y.activeIndex;return _.O("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.O(_.YV,{each:function(){return Array.from({length:W()})},
keyBy:"INDEX"},function(w,t){return _.O("div",{class:function(){var F={};return _.sU("ytCarouselDotsShapeDot",(F.ytCarouselDotsShapeDotActive=t===V(),F))}})}))},"Hj");var jv1=_.eY(function(y){var W=y.data;var V=y.handleCarouselNavigation;var w=y.numItems;var t=y.selectedIndex;var F=function(){return{disabled:t()===0}},I=function(){return{disabled:t()===w()-1}};
return _.O("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.O("div",null,_.O("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return W().title}),_.O(_.v,{cond:function(){return W().subtitle},
then:function(P){return _.O("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return W().subtitleAccessibilityText}},P)}})),_.O(_.v,{cond:function(){return w()>1},
then:function(){return _.O("div",{class:"ytCarouselTitleViewModelNavigation"},_.O(R45,{numDots:w,activeIndex:t}),_.O(_.v,{cond:function(){return W().previousButton},
then:function(P){return _.O(_.Q7,{data:P},{buttonViewModel:function(C){return _.O(_.lk,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(-1)},
buttonOverrides:F})}})}}),_.O(_.v,{cond:function(){return W().nextButton},
then:function(P){return _.O(_.Q7,{data:P},{buttonViewModel:function(C){return _.O(_.lk,{data:C.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(1)},
buttonOverrides:I})}})}}))}}))},"Ij");_.iF(_.eY(function(y){var W=y.data;var V,w=_.I0("yt-video-metadata-carousel-view-model"),t=_.I0("div",function(a){if(_.e("web_metadata_carousel_elref_bugfix")){var b=function(){var Fv=a.offsetWidth*U(),Py=24*(U()-1);c(Fv+Py)};
b();window.ResizeObserver&&(V=new ResizeObserver(b),V.observe(a))}}),F=_.yC("HTML_DIR")==="rtl",I=!1,P=0,C=0;
y=_.N(_.M1(0,void 0,"f4aYxe"));var d=y.next().value,L=y.next().value;y=_.N(_.M1(0,void 0,"kU9O9"));var z=y.next().value,c=y.next().value;y=_.N(_.M1(!1,void 0,"GqphDd"));var K=y.next().value,f=y.next().value,U=function(){var a,b,Fv;return(Fv=(a=W())==null?void 0:(b=a.carouselTitles)==null?void 0:b.length)!=null?Fv:0},l=function(){t.value&&t.value.scrollLeft!==P&&L((F?t.value.scrollLeft<P:t.value.scrollLeft>P)?Math.min(d()+1,U()-1):Math.max(d()-1,0))},x;
window.IntersectionObserver&&(x=new IntersectionObserver(function(a){a=_.N(a);for(var b=a.next();!b.done;b=a.next())if(b.value.isIntersecting){if(I){I=!1;break}l()}else L(C)},{threshold:.2}));
_.H1(function(){if(t.value){var a=(F?-1:1)*(z()/U()+12)*(K()&&x?C:d());typeof t.value.scrollTo==="function"?t.value.scrollTo({left:a,behavior:"smooth"}):t.value.scrollLeft=a;P=a;C=K()&&x?C:d()}},"ZP1VMb");
var B,r=function(a){B=a};
_.a8(function(){if(!_.e("web_metadata_carousel_elref_bugfix")){var a=function(){var Fv=t.value.offsetWidth*U(),Py=24*(U()-1);c(Fv+Py)};
a();if(window.ResizeObserver){var b=new ResizeObserver(a);b.observe(t.value);_.XT(function(){b.disconnect();x&&x.disconnect()})}}});
_.XT(function(){if(_.e("web_metadata_carousel_elref_bugfix")){var a;(a=V)==null||a.disconnect();var b;(b=x)==null||b.disconnect()}});
var H=function(a){a=d()+a;a>=0&&a<U()&&(I=!0,L(a))};
return _.O("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:w,"on:click":_.YS(function(a){if(_.VS(_.We(a),w.value,["BUTTON".toString()])||!B)return!1;_.hs().resolve(_.oA).resolveCommand(B,{forceClickLogging:!0});return!1}),
"on:touchstart":_.YS(function(){f(!0);return!1}),
"on:touchend":_.YS(function(){x||l();f(!1);return!1}),
hidden:function(){var a,b;return!((a=W())==null?0:(b=a.carouselItems)==null?0:b.length)}},_.O("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.O(_.v,{cond:function(){return W().carouselTitles},
then:function(a){return _.O(_.Q7,{data:function(){return a()[K()&&x?C:d()]}},{carouselTitleViewModel:function(b){return _.O(jv1,{data:b.data,
handleCarouselNavigation:H,numItems:U,selectedIndex:d})}})}})),_.O("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:t},_.O("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+z()+"px;"}},_.O(_.v,{cond:function(){return W().carouselItems},
then:function(a){return _.O(_.YV,{each:a},function(b,Fv){return _.O(_.Q7,{data:function(){return b}},{carouselItemViewModel:function(Py){return _.O(Jm_,{data:Py.data,
itemIndex:Fv,selectedIndex:d,indexUpdatedCallback:r,observer:x,title:function(){a:{var du=Fv();var mL,un=(mL=W())==null?void 0:mL.carouselTitles;if(un&&(du=un[du])){var hv;du=(hv=_.h(du,HCE))==null?void 0:hv.title;break a}du=void 0}return du}})}})})}}))))},"Jj"),"yt-video-metadata-carousel-view-model",{props:{data:_.vB}});var $uM=_.e("web_action_buttons_update_owner_width")?32:12,iS=function(){var y=_.u.apply(this,arguments)||this;y.isHovering=!1;y.enableColorSampling=_.e("web_delhi_colorful_sd");y.metadataBadgesInDescription=_.e("web_metadata_badges_in_description");y.descriptionCollapsed=!0;y.useFadedScrimDescription=_.e("kevlar_enable_faded_scrim_on_description");y.skinnyMode=!1;y.playlist=!1;y.isDark=document.documentElement.hasAttribute("dark");y.disableVideoOwnerOnTap=_.e("swatchie_video_owner_on_tap_ks");y.swatcherooDelayLoad=
_.e("swatcheroo_enable_ghost_cards");y.primaryMenuWidth=0;y.videoId="";y.titleHeadlineXs=_.e("web_watch_typography_title_headline_xs");y.titleHeadlineS=_.e("web_watch_typography_title_headline_s");y.titleHeadlineM=_.e("web_watch_typography_title_headline_m");y.titleHashtagBlackLinkified=_.e("web_title_hashtag_black_linkified");y.titleHashtagGreyLinkified=_.e("web_title_hashtag_grey_linkified");y.actionButtonsUpdateOwnerWidth=_.e("web_action_buttons_update_owner_width");y.shouldForceIconOnly=!1;y.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};y.isFullscreen=!1;y.isTheaterMode=!1;return y};
_.p(iS,_.u);_.E=iS.prototype;_.E.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.E.updateOwnerAndDescriptionPosition=function(){_.e("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Dh(this.bottomRowElement,this.ownerElement)):(_.Dh(this.bottomRowElement,this.descriptionElement),_.Dh(this.topRowElement,this.ownerElement)))};
_.E.titleOnTap=function(y){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||this.handleExpandDescriptionCommands()}};
_.E.videoOwnerOnTap=function(y){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.E.detached=function(){var y=this,W;return _.g(function(V){(W=y.resizeObserver)==null||W.disconnect();_.B7(V)})};
_.E.maybeAttachResizeObserver=function(){var y=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.d7(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.E.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var y=this.hostElement.clientWidth,W=Math.max(this.largerItemWrap?400:350,y/2-$uM);if(_.e("web_action_buttons_update_owner_width")){var V;W=(((V=document.getElementById("owner"))==null?void 0:V.clientWidth)||0)+$uM}this.actionsOnSeparateLine=this.primaryMenuWidth>y-W?!0:!1}};
_.E.stripAttributedDescription=function(y){return{content:y.content.replace(/[\r\n]{2,}/g,"\n")}};
_.E.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.e("web_modern_buttons"),forceIconButton:!_.e("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:_.e("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"}}}};
_.E.videoPrimaryInfoRendererChanged=function(){var y;if((y=this.videoPrimaryInfoRenderer)==null?0:y.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.E.videoSecondaryInfoRendererChanged=function(){var y,W;(W=(y=this.descriptionInlineExpander).collapse)==null||W.call(y);this.descriptionExpandClientVe=_.ad(110509);this.descriptionCollapseClientVe=_.ad(110510);y=_.Xn();W=_.Hf();y&&W&&(_.e("combine_ve_grafts")?(_.U8(_.BC(),this.descriptionExpandClientVe,W),_.U8(_.BC(),this.descriptionCollapseClientVe,W)):_.EB(y,W,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.E.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.E.updateTopLevelIconsOnly=function(){var y=this;_.e("top_level_update_killswitch")||this.menu&&_.HU.addLowPriorityJob(function(){y.menu.topLevelIconsOnly=y.skinnyMode},_.pB("swathceroo_delay_flexible_menu_update",100))};
_.E.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.e("web_action_buttons_minimize_subscribe")};
_.E.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.E.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.E.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.E.onYtTextInlineExpanderExpandedChanged=function(){if(!_.e("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var y,W;(W=(y=this.structuredDescriptionContentRendererElement).resize)==null||W.call(y)}};
_.E.onRenderStamperFinished=function(y){(y==null?void 0:y.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.E.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.E.onYtExpanderLessTapped=function(){var y,W=(y=this.videoSecondaryInfoRenderer)==null?void 0:y.showLessCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.E.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.E.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.E.onDescriptionClick=function(y){if(!_.c5(_.O$(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.e("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.E.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.E.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.E.logCollapseClick=function(){var y=_.Xn();y&&this.descriptionCollapseClientVe&&_.PE(y,this.descriptionCollapseClientVe)};
_.E.logExpandClick=function(){var y=_.Xn();y&&this.descriptionExpandClientVe&&_.PE(y,this.descriptionExpandClientVe)};
_.E.collapseDescription=function(){this.descriptionCollapsed=!0};
_.E.scrollToTopOfContainer=function(){_.ow(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.E.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.E.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.E.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.E.resize=function(){if(this.descriptionInlineExpander){var y,W;(W=(y=this.descriptionInlineExpander).resize)==null||W.call(y)}else _.rQ(new _.Js("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var V;(V=this.menu)==null||V.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.e("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.E.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var y,W,V,w,t=_.e("web_action_buttons_update_owner_width")?(V=(y=_.i6(this.menu).querySelector("#button-shape"))==null?void 0:y.clientWidth)!=null?V:0:(w=(W=_.i6(this.menu).querySelector("#button"))==null?void 0:W.clientWidth)!=null?w:0,F,I;y=((I=(F=_.i6(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:F.clientWidth)!=null?I:0)+8+t;var P,C;t=(C=(P=_.i6(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:P.children.length)!=null?C:2;y<=8*t||(this.primaryMenuWidth=y)}};
_.E.onYtUpdateTitleAction=function(y){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.h(y,fJP).title)};
_.E.onYtUpdateDescriptionAction=function(y){if(y=_.h(y,_.WKE)){var W,V=!((W=this.videoSecondaryInfoRenderer)==null||!W.attributedDescription);y.isEmpty||!y.description&&!y.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):y.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",y.attributedDescription):y.description&&(V?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.y4(y.description)):this.set("videoSecondaryInfoRenderer.description",y.description))}};
_.E.onYtDarkModeToggledAction=function(y){this.isDark=y};
_.E.registerPanel=function(){if(!_.e("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var y=_.e("web_watch_imax_theater_mode")&&this.isTheaterMode;y=_.e("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||y;var W=_.hs().resolve(_.$t);W&&!y&&W.registerPanel("engagement-panel-structured-description",this)}};
_.E.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.E.parseColorSamplingData=function(){var y;if(_.e("web_delhi_colorful_sd")&&((y=this.structuredDescriptionContentRenderer)==null?0:y.items)&&(y=this.structuredDescriptionContentRenderer.items.find(function(t){return!!_.h(t,lM)}))){var W,V;
this.hoverColor={lightTheme:(W=_.h(y,lM))==null?void 0:W.lightThemeColorPalette,darkTheme:(V=_.h(y,lM))==null?void 0:V.darkThemeColorPalette};var w;this.hoverText=(w=_.h(y,lM))==null?void 0:w.colorSampledDescriptionBodyText}};
_.E.updateHoverColor=function(){if(_.e("web_delhi_colorful_sd")){var y=this.hoverColor,W={},V;y=(V=this.isDark?y==null?void 0:y.darkTheme:y==null?void 0:y.lightTheme)!=null?V:{};V=_.N(xu5);for(var w=V.next();!w.done;w=V.next()){w=w.value;var t=y[w];W["--yt-saturated-"+_.uu(w)]=t?_.wg(t):"initial"}_.qg(this.hostElement,W)}};
_.E.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.E.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.E.showPanel=function(y){this.expandDescription();var W=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;W.resize();var V,w=y==null?void 0:(V=y.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;w?_.HU.addJob(function(){W==null||W.scrollToSection(w)},8):this.scrollToTopOfContainer()};
_.E.isVisible=function(){return!this.descriptionCollapsed};
_.E.getReloadContinuation=function(){};
_.E.hidePanel=function(){};
_.E.updatePanel=function(){};
_.CM.Object.defineProperties(iS.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var y;return _.e("web_delhi_colorful_sd")&&(y=this.structuredDescriptionContentRenderer)!=null&&y.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(W){return!_.h(W,lM)&&!_.h(W,M7e)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.structuredDescriptionContentRendererComputed)!=null&&y.items){var W;y=_.N((W=this.structuredDescriptionContentRendererComputed)==null?void 0:W.items);for(W=y.next();!W.done;W=y.next())if(W=_.h(W.value,_.Q4m))return W}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoPrimaryInfoRenderer)==null?0:y.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!!((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.owner)==null?0:(V=W.videoOwnerRenderer)==null?0:V.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var y,W;if((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.attributedDescription)==null?0:W.content){var V,w;return(w=this.stripAttributedDescription((V=this.videoSecondaryInfoRenderer)==null?void 0:V.attributedDescription))!=null?w:{runs:[]}}}if(_.e("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var t,F,I,P;return(P=(I=(t=this.videoSecondaryInfoRenderer)==
null?void 0:t.description)!=null?I:(F=this.videoSecondaryInfoRenderer)==null?void 0:F.attributedDescription)!=null?P:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.videoSecondaryInfoRenderer)==null?void 0:y.headerRuns)!=null?W:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.commentsEntryPointHeaderRenderer)==null||!y.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoMetadataCarousel)==null||!y.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.pB("swatchie_desc_lines",3):this.hasTeaserCarousel?_.pB("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var y,W,V=Object.assign({},(y=this.videoSecondaryInfoRenderer)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0&&!(V.rows.length<=V.collapsedItemCount))return V.rows=V.rows.slice(V.collapsedItemCount),V.collapsedItemCount=0,V}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var y,W,V=Object.assign({},(y=this.videoSecondaryInfoRenderer)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0)return V.rows=V.rows.slice(0,V.collapsedItemCount),V.collapsedItemCount=V.rows.length,V}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.structuredDescriptionContentRendererComputed)==null?0:(W=y.items)==null?0:W.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 y;return(y=this.videoSecondaryInfoRenderer)==null?void 0:y.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.owner)==null?0:(V=W.videoOwnerRenderer)==null?0:V.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return!!((y=this.videoPrimaryInfoRenderer)==null?0:(W=y.videoActions)==null?0:(V=W.menuRenderer)==null?0:(w=V.flexibleItems)==null?0:w.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.dL(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.dL(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var y=this;if(_.e("web_title_hashtag_grey_delinkified")){var W,V=_.Gc.unsafeClone((W=this.videoPrimaryInfoRenderer)==null?void 0:W.title);(W=V==null?void 0:V.runs)&&W.forEach(function(w){if(w==null?0:w.navigationEndpoint)w.textColor=4284506208,y.isDark&&(w.textColor=4289374890)});
return V}return(V=this.videoPrimaryInfoRenderer)==null?void 0:V.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.e("web_title_hashtag_black_delinkified")||_.e("web_title_hashtag_grey_delinkified")}}});
iS.prototype.updateHoverColor=iS.prototype.updateHoverColor;iS.prototype.parseColorSamplingData=iS.prototype.parseColorSamplingData;iS.prototype.resetDescriptionState=iS.prototype.resetDescriptionState;iS.prototype.registerPanel=iS.prototype.registerPanel;iS.prototype.onYtExpanderLessTapped=iS.prototype.onYtExpanderLessTapped;iS.prototype.onYtExpanderMoreTapped=iS.prototype.onYtExpanderMoreTapped;iS.prototype.onRenderStamperFinished=iS.prototype.onRenderStamperFinished;
iS.prototype.onYtTextInlineExpanderExpandedChanged=iS.prototype.onYtTextInlineExpanderExpandedChanged;iS.prototype.onYtTextInlineExpanderCollapseClicked=iS.prototype.onYtTextInlineExpanderCollapseClicked;iS.prototype.onYtTextInlineExpanderExpandClicked=iS.prototype.onYtTextInlineExpanderExpandClicked;iS.prototype.moveActionsElement=iS.prototype.moveActionsElement;iS.prototype.updateShouldForceIconOnly=iS.prototype.updateShouldForceIconOnly;iS.prototype.updateTopLevelIconsOnly=iS.prototype.updateTopLevelIconsOnly;
iS.prototype.structuredDescriptionContentRendererChanged=iS.prototype.structuredDescriptionContentRendererChanged;iS.prototype.videoSecondaryInfoRendererChanged=iS.prototype.videoSecondaryInfoRendererChanged;iS.prototype.videoPrimaryInfoRendererChanged=iS.prototype.videoPrimaryInfoRendererChanged;iS.prototype.maybeUpdateActionsOnSeparateLine=iS.prototype.maybeUpdateActionsOnSeparateLine;iS.prototype.updateOwnerAndDescriptionPosition=iS.prototype.updateOwnerAndDescriptionPosition;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],iS.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],iS.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],iS.prototype,"ytdReduxBehavior",void 0);_.J([_.s$("#above-the-fold"),_.R("design:type",HTMLElement)],iS.prototype,"aboveTheFoldContainer",void 0);_.J([_.s$("#menu ytd-menu-renderer"),_.R("design:type",Object)],iS.prototype,"menu",void 0);_.J([_.s$("#description-inline-expander"),_.R("design:type",Object)],iS.prototype,"descriptionInlineExpander",void 0);
_.J([_.s$("#faded-structured-description"),_.R("design:type",Object)],iS.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.J([_.s$("#structured-description"),_.R("design:type",Object)],iS.prototype,"structuredDescriptionContentRendererElement",void 0);_.J([_.s$("#title"),_.R("design:type",HTMLElement)],iS.prototype,"titleElement",void 0);_.J([_.s$("#description"),_.R("design:type",HTMLElement)],iS.prototype,"descriptionElement",void 0);
_.J([_.s$("#description-interaction"),_.R("design:type",Object)],iS.prototype,"descriptionInteraction",void 0);_.J([_.s$("#owner"),_.R("design:type",HTMLElement)],iS.prototype,"ownerElement",void 0);_.J([_.s$("#top-row"),_.R("design:type",HTMLElement)],iS.prototype,"topRowElement",void 0);_.J([_.s$("#bottom-row"),_.R("design:type",HTMLElement)],iS.prototype,"bottomRowElement",void 0);_.J([_.s$("#actions"),_.R("design:type",HTMLElement)],iS.prototype,"actionsElement",void 0);
_.J([_.s$("#bottom-actions"),_.R("design:type",HTMLElement)],iS.prototype,"bottomActionsElement",void 0);_.J([_.s$("#ytd-watch-info-text"),_.R("design:type",Object)],iS.prototype,"watchInfoTextElement",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"videoPrimaryInfoRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"videoSecondaryInfoRenderer",void 0);
_.J([_.q(),_.R("design:type",Object)],iS.prototype,"commentsEntryPointHeaderRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"videoMetadataCarousel",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"structuredDescriptionContentRenderer",void 0);_.J([_.M("structuredDescriptionContentRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"structuredDescriptionContentRendererComputed",null);
_.J([_.q(),_.R("design:type",Object)],iS.prototype,"videoSummary",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"merchShelf",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"infoPanelBelowMetadata",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"hoverColor",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"hoverText",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"isHovering",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"enableColorSampling",void 0);_.J([_.M("structuredDescriptionContentRendererComputed"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"productShelf",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"metadataBadgesInDescription",void 0);_.J([_.M("videoPrimaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"shouldHideBadges",null);
_.J([_.M("productShelf","descriptionCollapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"shouldShowProductShelf",null);_.J([_.q(),_.R("design:type",Boolean)],iS.prototype,"isWatchFlexy",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"descriptionCollapsed",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],iS.prototype,"useFadedScrimDescription",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"skinnyMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("videoSecondaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"largerItemWrap",null);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"playlist",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"clarifyBox",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"playerAds",void 0);
_.J([_.q(),_.R("design:type",Boolean)],iS.prototype,"isDark",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],iS.prototype,"actionsOnSeparateLine",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"disableVideoOwnerOnTap",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"swatcherooDelayLoad",void 0);_.J([_.q(),_.R("design:type",Boolean)],iS.prototype,"suppressTopLevelMetadataRows",void 0);
_.J([_.q(),_.R("design:type",Object)],iS.prototype,"primaryMenuWidth",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"videoId",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"titleHeadlineXs",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"titleHeadlineS",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"titleHeadlineM",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"titleHashtagBlackLinkified",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"titleHashtagGreyLinkified",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.J([_.q(),_.R("design:type",Object)],iS.prototype,"shouldForceIconOnly",void 0);
_.J([_.Jc("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"updateOwnerAndDescriptionPosition",null);_.J([_.Jc("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.J([_.M("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"descriptionText",null);_.J([_.M("videoSecondaryInfoRenderer.headerRuns"),_.R("design:type",Array),_.R("design:paramtypes",[])],iS.prototype,"headerRuns",null);
_.J([_.q({value:!1}),_.M("commentsEntryPointHeaderRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"hasTeaser",null);_.J([_.q({value:!1,reflectToAttribute:!0}),_.M("videoMetadataCarousel"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"hasTeaserCarousel",null);_.J([_.q({value:3}),_.M("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"descriptionMaxLines",null);
_.J([_.M("videoSecondaryInfoRenderer.metadataRowContainer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"collapsibleMetadataRows",null);_.J([_.M("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"alwaysVisibleMetadataRows",null);
_.J([_.M("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"hasInlineStructuredDescription",null);_.J([_.M("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"showInlineStructuredDescription",null);
_.J([_.M("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"descriptionExpandCommand",null);_.J([_.M("videoSecondaryInfoRenderer.owner"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"videoOwnerCommand",null);_.J([_.q({reflectToAttribute:!0}),_.M("videoPrimaryInfoRenderer.videoActions"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"flexMenuEnabled",null);
_.J([_.q({selector:_.V7,reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"isFullscreen",void 0);_.J([_.q({selector:_.W5,reflectToAttribute:!0}),_.R("design:type",Object)],iS.prototype,"isTheaterMode",void 0);_.J([_.M("descriptionText","useFadedScrimDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"showAttributedStringDescription",null);
_.J([_.M("descriptionText","useFadedScrimDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"showFormattedStringDescription",null);_.J([_.M("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iS.prototype,"showFadedStructuredDescription",null);
_.J([_.Jc("videoPrimaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"videoPrimaryInfoRendererChanged",null);_.J([_.M("videoPrimaryInfoRenderer.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"videoTitle",null);_.J([_.M("videoPrimaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],iS.prototype,"noEndpoints",null);
_.J([_.Jc("videoSecondaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"videoSecondaryInfoRendererChanged",null);_.J([_.xA("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"structuredDescriptionContentRendererChanged",null);
_.J([_.xA("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"updateTopLevelIconsOnly",null);_.J([_.xA("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"updateShouldForceIconOnly",null);_.J([_.xA("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"moveActionsElement",null);
_.J([_.l6("yt-text-inline-expander-expand-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"onYtTextInlineExpanderExpandClicked",null);_.J([_.l6("yt-text-inline-expander-collapse-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.J([_.l6("yt-text-inline-expander-expanded-changed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],iS.prototype,"onRenderStamperFinished",null);
_.J([_.l6("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"onYtExpanderMoreTapped",null);_.J([_.l6("yt-expander-less-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"onYtExpanderLessTapped",null);
_.J([_.xA("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"registerPanel",null);_.J([_.xA("videoSecondaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"resetDescriptionState",null);
_.J([_.xA("structuredDescriptionContentRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"parseColorSamplingData",null);_.J([_.xA("hoverColor","isDark"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iS.prototype,"updateHoverColor",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-watch-metadata"})],iS);
_.Y(iS,"ytd-watch-metadata",function(){if(lqu!==void 0)return lqu;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return lqu=y},{mode:2});_.Qv_=function(y){_.Ru.call(this);this.JSC$22592_watchApi=y;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;nEx(this);Heh(this);XdR(this);aqR(this);Gjf(this);rm1(this);be3(this)};
_.p(_.Qv_,_.Ru);var XdR=function(y){var W=function(){_.e("kevlar_is_pupi_enabled")||fy(y)};
y.JSC$22592_watchApi.getRoot().addEventListener("yt-player-updated",W);y.addOnDisposeCallback(function(){y.JSC$22592_watchApi.getRoot().removeEventListener("yt-player-updated",W)})},Gjf=function(y){if(_.e("kevlar_endscreen_auto_theater_mode")){var W=y.JSC$22592_watchApi.subscribeToActiveChanged(function(){Zex(y)},!1);
y.addOnDisposeCallback(W)}},nEx=function(y){var W,V,w,t,F;
_.g(function(I){if(I.nextAddress==1)return I.yield(y.JSC$22592_watchApi.playerApi,2);W=I.yieldResult;V=function(P){P=!!P;TM(y)&&(P=P?2:1,_.en.getInstance().setState(P,!0,!1))};
w=function(P){P&&_.b1j(_.dP().getState())&&(_.ow(y.JSC$22592_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),y.temporaryTheaterMode=!0)};
t=function(P){_.e("kevlar_player_update_autonav_on_new_data")&&P.type==="newdata"&&(_.e("kevlar_is_pupi_enabled")||fy(y))};
F=function(P){y.onPlayerStateChange(P)};
_.e("kevlar_endscreen_auto_theater_mode")&&W.addEventListener("onAutonavCancelled",w);W.addEventListener("onAutonavChangeRequest",V);W.addEventListener("onVideoDataChange",t);W.addEventListener("onStateChange",F);y.addOnDisposeCallback(function(){W.removeEventListener("onAutonavChangeRequest",V);W.removeEventListener("onVideoDataChange",t);W.removeEventListener("onStateChange",F);_.e("kevlar_endscreen_auto_theater_mode")&&W.removeEventListener("onAutonavCancelled",w)});
_.B7(I)})},Heh=function(y){y.JSC$22592_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){y.autonavCancelledBySignal=!0;
_.e("kevlar_is_pupi_enabled")||fy(y)});
y.JSC$22592_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(W,V,w){V&&fy(y,w)});
y.JSC$22592_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){TM(y)&&_.en.getInstance().setState(2,!0,!0)});
y.JSC$22592_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){TM(y)&&_.en.getInstance().setState(1,!0,!0)});
y.addOnDisposeCallback(function(){y.JSC$22592_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");y.JSC$22592_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");y.JSC$22592_watchApi.unregisterActionHandler("yt-enable-autoplay-command");y.JSC$22592_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},aqR=function(y){var W=y.JSC$22592_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){be3(y)}),V=y.JSC$22592_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){rm1(y)});
y.addOnDisposeCallback(function(){y.JSC$22592_watchApi.unsubscribeByKey(W);y.JSC$22592_watchApi.unsubscribeByKey(V)})},be3=function(y){y.autonavCancelledBySignal=!1;
_.e("kevlar_is_pupi_enabled")||fy(y)},rm1=function(y){var W=y.JSC$22592_watchApi.getWatchNextResponse(),V,w;
var t=(W=(w=_.h(W==null?void 0:(t=W.playerOverlays)==null?void 0:(V=t.playerOverlayRenderer)==null?void 0:V.autonavToggle,_.wB2))==null?void 0:w.enabled)?2:1;_.e("kevlar_is_pupi_enabled")?_.en.getInstance().setState(t,!1,!1):fy(y);_.e("web_persist_server_autonav_state_on_client")&&typeof W==="boolean"&&_.N9R(t===2)},TM=function(y){if(y.autonavCancelledBySignal)return!1;
var W,V,w,t;return!!((W=y.JSC$22592_watchApi.getWatchNextResponse())==null?0:(V=W.contents)==null?0:(w=V.twoColumnWatchNextResults)==null?0:(t=w.autoplay)==null?0:t.autoplay)};
_.Qv_.prototype.onPlayerStateChange=function(y){if(y===0){y=!_.en.getInstance().isAutoplaySetExplicitly();var W=this.JSC$22592_watchApi.getWatchNextResponse(),V,w,t,F;W=_.h(W==null?void 0:(V=W.contents)==null?void 0:(w=V.twoColumnWatchNextResults)==null?void 0:(t=w.autoplay)==null?void 0:(F=t.autoplay)==null?void 0:F.autoplayExplicitChoiceDialogRenderer,_.fsE);TM(this)&&y&&W&&_.xc.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:W},popupType:"DIALOG"}})}else Zex(this)};
var Zex=function(y){y.temporaryTheaterMode&&(y.temporaryTheaterMode=!1,_.ow(y.JSC$22592_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},fy=function(y,W){W=W===void 0?!1:W;
var V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22592_watchApi.playerApi,2);V=w.yieldResult;TM(y)?V.setAutonavState(_.en.getInstance().getState(),W):V.setAutonavState(1,W);_.B7(w)})};var y_3={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"};_.Vhh=function(y){_.Ru.call(this);var W=this;this.JSC$22597_watchApi=y;var V=this.JSC$22597_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WhZ(W)});
this.addOnDisposeCallback(function(){W.JSC$22597_watchApi.unsubscribeByKey(V)});
WhZ(this)};
_.p(_.Vhh,_.Ru);var WhZ=function(y){var W=y.JSC$22597_watchApi.getPlayerResponse(),V=y.JSC$22597_watchApi.getWatchNextResponse();if(!_.jOv(W==null?void 0:W.playabilityStatus,V==null?void 0:V.playerOverlays)){var w;var t=W==null?void 0:(w=W.playabilityStatus)==null?void 0:w.errorScreen}y.JSC$22597_watchApi.provideRenderingData("ERROR_SCREEN",t)};var wZG=_.eY(function(y){var W=y.data;y=_.e("web_watch_video_details_hide_subtitle");var V=_.e("web_watch_video_details_single_line_title"),w=_.YS(function(){var P=W().onTap;P&&_.hs().resolve(_.oA).resolveCommand(P)}),t={},F={},I={};
return _.O("yt-player-overlay-video-details-renderer",{class:_.kS("ytPlayerOverlayVideoDetailsRendererHost",(t.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.e("web_watch_video_details_transparent_background"),t)),"on:click":w,role:"button"},_.O("h2",{class:_.kS("ytPlayerOverlayVideoDetailsRendererTitle",(F.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return V},F))},_.O(_.Lv,{text:function(){return W().title}})),_.O("div",{class:_.kS("ytPlayerOverlayVideoDetailsRendererSubtitle",
(I.ytPlayerOverlayVideoDetailsRendererHideSubtitle=y,I))},_.O(_.Lv,{text:function(){return W().subtitle}})))},"Kj");var m0={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},th1=_.eY(function(y){var W=y.data;var V=_.tn(_.V7),w=_.e("web_watch_action_bar_resize_buttons"),t=_.e("delhi_modern_web_player_icons")&&!_.e("enable_web_delhi_icons"),F=function(){return w&&!V()?{size:"M"}:void 0};
y={};return _.O("yt-player-quick-action-buttons",{class:_.kS("ytPlayerQuickActionButtonsHost",(y.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!V()},y))},_.O(_.YV,{each:function(){if(t){var I=W();
I=JSON.parse(JSON.stringify(I));for(var P=_.N(I),C=P.next();!C.done;C=P.next()){var d=C.value,L=void 0;C=_.h((L=_.h(d,_.QJ))==null?void 0:L.toggleButtonViewModel,_.aJ);var z=void 0;L=_.h((z=_.h(d,_.bI))==null?void 0:z.toggleButtonViewModel,_.aJ);z=_.h(d,_.H5);d=_.h(d,_.aJ);if(C)L=_.h(C.defaultButtonViewModel,_.H5),C=_.h(C.toggledButtonViewModel,_.H5),L&&L.iconName&&(L.iconName=m0[L.iconName]),C&&C.iconName&&(C.iconName=m0[C.iconName]);else if(L)C=_.h(L.defaultButtonViewModel,_.H5),L=_.h(L.toggledButtonViewModel,
_.H5),C&&C.iconName&&(C.iconName=m0[C.iconName]),L&&L.iconName&&(L.iconName=m0[L.iconName]);else if(z)z.iconName&&(z.iconName=m0[z.iconName]);else if(d){C=_.h(d.defaultButtonViewModel,_.H5);L=_.h(d.toggledButtonViewModel,_.H5);d=void 0;if((d=C)==null?0:d.iconName)C.iconName=m0[C.iconName];C=void 0;if((C=L)==null?0:C.iconName)L.iconName=m0[L.iconName]}}}else I=W();return I}},function(I){return _.O(_.Q7,{data:function(){return I}},{buttonViewModel:function(P){return _.O(_.lk,{data:P.data,
buttonOverrides:F})},
likeButtonViewModel:function(P){return _.O(_.Q$,{data:P.data,buttonShapeOverrideables:F,disableIconAnimation:!0})},
dislikeButtonViewModel:function(P){return _.O(_.ba,{data:P.data,buttonShapeOverrideables:F})},
toggleButtonViewModel:function(P){return _.O(_.XV,{data:P.data,buttonShapeOverrides:F})}})}))},"Lj");_.ERh=function(y){_.Ru.call(this);var W=this;this.JSC$22602_watchApi=y;y=_.N(_.M1({},void 0,"ufFdVc"));this.quickActionsViewModel=y.next().value;this.setQuickActionsViewModel=y.next().value;y=_.N(_.M1({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=y.next().value;this.setPlayerOverlayVideoDetailsRenderer=y.next().value;var V=this.JSC$22602_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Fh5(W)});
this.addOnDisposeCallback(function(){W.JSC$22602_watchApi.unsubscribeByKey(V)});
Fh5(this)};
_.p(_.ERh,_.Ru);
var Fh5=function(y){var W,V,w,t,F,I,P,C,d,L,z,c,K,f;_.g(function(U){if(U.nextAddress==1)return U.yield(y.JSC$22602_watchApi.playerApi,2);W=U.yieldResult;V=y.JSC$22602_watchApi.getWatchNextResponse();F=(w=V)==null?void 0:(t=w.playerOverlays)==null?void 0:t.playerOverlayRenderer;P=_.h((I=F)==null?void 0:I.fullscreenQuickActionsBar,_.FII);(d=(C=y).setQuickActionsViewModel)==null||d.call(C,P||{});P&&N3G(y,W);c=(L=F)==null?void 0:(z=L.videoDetails)==null?void 0:z.playerOverlayVideoDetailsRenderer;(f=(K=
y).setPlayerOverlayVideoDetailsRenderer)==null||f.call(K,c||{});c&&Ifh(y,W);_.B7(U)})},N3G=function(y,W){if(!y.quickActionButtonsContainer){y.quickActionButtonsContainer=document.createElement("div");
W.setFullscreenQuickActions(y.quickActionButtonsContainer);var V=function(){return y.quickActionsViewModel().quickActionButtons||[]},w=_.nG(y.quickActionButtonsContainer,function(){return _.O(th1,{data:V})});
y.addOnDisposeCallback(function(){W.setFullscreenQuickActions(void 0);w()})}},Ifh=function(y,W){if(!y.playerOverlayVideoDetailsRendererContainer){y.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
W.setPlayerOverlayVideoDetailsRenderer(y.playerOverlayVideoDetailsRendererContainer);var V=_.nG(y.playerOverlayVideoDetailsRendererContainer,function(){return _.O(wZG,{data:y.playerOverlayVideoDetailsRenderer})});
y.addOnDisposeCallback(function(){W.setPlayerOverlayVideoDetailsRenderer(void 0);V()})}};_.M9=function(y){_.Ru.call(this);var W=this;this.JSC$22607_watchApi=y;this.JSC$22607_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;y=_.Y0(_.dP(),_.V7,function(V){W.onFullscreenChanged(V)});
this.addOnDisposeCallback(y);y=_.Y0(_.dP(),_.f1,function(V){W.onWatchScroll(V)});
this.addOnDisposeCallback(y);_.e("kevlar_watch_while_v2")&&(y=_.Y0(_.dP(),_.bg,function(V){gR3(W,V)}),this.addOnDisposeCallback(y));
P__(this);C_f(this);Ou3();this.onWatchScroll(_.f1(_.dP().getState()));_.W4("START_IN_FULL_WINDOW_MODE")&&this.JSC$22607_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.p(_.M9,_.Ru);var P__=function(y){y.JSC$22607_watchApi.registerActionHandler("yt-fullscreen-change-action",function(W){var V=y.JSC$22607_watchApi.isActive();W&&!V||_.dP().dispatch(_.ig({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!W}}))});
y.addOnDisposeCallback(function(){y.JSC$22607_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},C_f=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22607_watchApi.playerApi,2);W=w.yieldResult;V=function(){y.onFullerscreenEduClicked()};
W.addEventListener("onFullerscreenEduClicked",V);y.addOnDisposeCallback(function(){W.removeEventListener("onFullerscreenEduClicked",V)});
_.B7(w)})};
_.M9.prototype.onFullscreenChanged=function(y){var W=this,V;return _.g(function(w){if(w.nextAddress==1)return W.isFullscreen=!!_.Lg(),w.yield(W.JSC$22607_watchApi.playerApi,2);V=w.yieldResult;W.JSC$22607_miniplayerActive||V.setFauxFullscreen(W.isFullscreen);if(y&&(W.JSC$22607_watchApi.focusOnPlayer(),!W.fullerscreenEduButtonShownThisPlayback)){W.fullerscreenEduButtonShownThisPlayback=!0;var t=_.SL("yt-fullerscreen-edu-button-shown-count")||0;_.ui("yt-fullerscreen-edu-button-shown-count",t+1,31536E3);
W.updateFullerscreenEduButtonSubtleModeState()}_.B7(w)})};
var gR3=function(y,W){var V;_.g(function(w){if(w.nextAddress==1)return y.JSC$22607_miniplayerActive=W,w.yield(y.JSC$22607_watchApi.playerApi,2);V=w.yieldResult;V.setFauxFullscreen(!y.JSC$22607_miniplayerActive&&y.isFullscreen);_.B7(w)})};
_.M9.prototype.onWatchScroll=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return _.e("external_fullscreen_with_edu")?t.yield(W.JSC$22607_watchApi.playerApi,2):t.return();V=t.yieldResult;w=y<=0;W.shouldShowFullerscreenEdu!==w&&(W.shouldShowFullerscreenEdu=w,V.updateFullerscreenEduButtonVisibility(!W.shouldShowFullerscreenEdu));_.B7(t)})};
_.M9.prototype.onFullerscreenEduClicked=function(){this.JSC$22607_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var y=_.SL("yt-fullerscreen-edu-button-click-count")||0;_.ui("yt-fullerscreen-edu-button-click-count",y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.M9.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var y=this,W,V,w,t,F,I;return _.g(function(P){if(P.nextAddress==1)return W=_.SL("yt-fullerscreen-edu-button-click-count")||0,V=_.SL("yt-fullerscreen-edu-button-shown-count")||0,w=_.pB("external_fullscreen_button_click_threshold"),t=_.pB("external_fullscreen_button_shown_threshold"),F=W>=w||V>=t,P.yield(y.JSC$22607_watchApi.playerApi,2);I=P.yieldResult;I.updateFullerscreenEduButtonSubtleModeState(F);_.B7(P)})};
_.M9.prototype.disposeInternal=function(){_.Ru.prototype.disposeInternal.call(this);var y=_.Lg();_.e("kevlar_exit_fullscreen_leaving_watch")&&y&&_.z2(y)};
var Ou3=function(){if(_.e("web_watch_add_viewport_meta_tag")){var y=document.querySelector("meta[name=viewport]"),W=document.head;W&&!y&&(y=document.createElement("meta"),y.name="viewport",y.content="width=device-width, initial-scale=1.0, viewport-fit=cover",W.appendChild(y))}};_.q9=function(y){_.Ru.call(this);var W=this;this.JSC$22611_watchApi=y;this.jobId=0;this.pendingRequestId=void 0;var V=this.JSC$22611_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vRx(W)});
this.addOnDisposeCallback(function(){W.JSC$22611_watchApi.unsubscribeByKey(V)});
vRx(this)};
_.p(_.q9,_.Ru);var d5x=function(y){_.HU.cancelJob(y.jobId);y.pendingRequestId=void 0},vRx=function(y){d5x(y);
var W=iCW(y.JSC$22611_watchApi.getWatchNextResponse());if(W){var V=250,w,t=(w=_.h(W,_.whQ))==null?void 0:w.initialDelayMs;_.e("web_watch_updated_metadata_server_initial_delay")&&t&&(V=t);y.jobId=_.HU.addLowPriorityJob(function(){return y.fetchUpdatedMetadata(W)},V)}};
_.q9.prototype.fetchUpdatedMetadata=function(y,W){var V=this,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x;return _.g(function(B){switch(B.nextAddress){case 1:W&&(w={continuation:W});if(!_.e("web_get_updated_metadata_fantasy_panel_continuation_params")){B.jumpTo(2);break}t=_.hs().resolve(_.$t);F="PAsports_fantasy";return B.yield(t.isVisible(F,!0),3);case 3:B.yieldResult&&(d=(P=(I=t).getUpdatePanelContinuationData)==null?void 0:(C=P.call(I,F))==null?void 0:C.updatePanelContinuationRequest)&&(w||(w={}),w.clientParams=
{panelContinuationParams:{panelContinuation:d}});case 2:L=_.hs().resolve(_.QY);if(!L)return _.ap(Error("Bo")),B.return();z={};V.pendingRequestId=z;return B.yield(_.OP(L,y,w),4);case 4:c=B.yieldResult;if(z!==V.pendingRequestId)return B.return();U=(K=c)==null?void 0:(f=K.continuation)==null?void 0:f.timedContinuationData;((l=U)==null?0:l.continuation)&&((x=U)==null?0:x.timeoutMs)&&(V.jobId=_.HU.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(y,U.continuation)},U.timeoutMs));
_.B7(B)}})};
_.q9.prototype.disposeInternal=function(){_.Ru.prototype.disposeInternal.call(this);d5x(this)};var Lhu=_.eY(function(y){var W=_.YS(function(){var w=y.data().videoId;if(y.active())w=_.hz(w),_.hs().resolve(_.oA).resolveCommand(w);else{var t=y.playerApi(),F=t.getAvailableAudioTracks(),I,P,C=(I=y.sourceVideoConfig().audioTracks)==null?void 0:(P=I.find(function(d){return d.isDefaultForSource}))==null?void 0:P.id;
if(F=F.find(function(d){return d.getLanguageInfo().getId()===C}))t.setAudioTrack(F,!0),t.setCompositeParam({activeVideoId:w}),y.setActiveSourceId(w)}}),V={};
return _.O("ytw-composite-source-video-overlay",{class:_.kS("ytwCompositeSourceVideoOverlayHost",(V.ytwCompositeSourceVideoOverlayActive=y.active,V.ytwCompositeSourceVideoOverlayInteracting=y.interacting,V)),style:_.Rd({left:function(){var w;return((w=y.data().topLeftCornerX)!=null?w:0)*100+"%"},
top:function(){var w;return((w=y.data().topLeftCornerY)!=null?w:0)*100+"%"},
width:function(){var w;return((w=y.data().width)!=null?w:0)*100+"%"},
height:function(){var w;return((w=y.data().height)!=null?w:0)*100+"%"}}),
"on:click":W},_.O("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Mj");var z1u=_.eY(function(y){var W=_.N(_.Jl(function(){var I,P=(I=y.data().sources)==null?void 0:I.find(function(C){return C.isActive});
if(P)return P.videoId})),V=W.next().value,w=W.next().value;
W=_.N(_.M1(!1,void 0,"WI4BUb"));var t=W.next().value,F=W.next().value;return _.O("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.YS(function(){F(!0)}),
"on:mouseout":_.YS(function(){F(!1)})},_.O(_.v,{cond:function(){return y.data().sources},
then:function(I){return _.O(_.YV,{each:I},function(P){return _.O(Lhu,{data:P,active:function(){return P.videoId===V()},
setActiveSourceId:w,interacting:t,playerApi:y.playerApi,sourceVideoConfig:function(){return fyP(y.compositeVideoConfig(),P.videoId)}})})}}))},"Nj");_.h1_=function(y){_.Ru.call(this);this.JSC$22627_watchApi=y;y=_.N(_.M1({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=y.next().value;this.setCompositeVideoOverlayRenderer=y.next().value;y=_.N(_.M1({},void 0,"U5hcq"));this.compositeVideoConfig=y.next().value;this.setCompositeVideoConfig=y.next().value;c_Z(this);e1G(this)};
_.p(_.h1_,_.Ru);var c_Z=function(y){var W=y.JSC$22627_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){e1G(y)});
y.addOnDisposeCallback(function(){y.JSC$22627_watchApi.unsubscribeByKey(W)})},oRu=function(y){var W;
return _.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22627_watchApi.playerApi,2);W=V.yieldResult;W.setCompositeVideoOverlayRendererComponent(y.container);_.B7(V)})},KhR=function(y){var W;
return _.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22627_watchApi.playerApi,2);W=V.yieldResult;W.setCompositeVideoOverlayRendererComponent(void 0);_.B7(V)})},pZx=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22627_watchApi.playerApi,2);W=w.yieldResult;y.container=document.createElement("div");V=_.nG(y.container,function(){return _.O(z1u,{data:y.compositeVideoOverlayRenderer,compositeVideoConfig:y.compositeVideoConfig,playerApi:W})});
y.addOnDisposeCallback(V);_.B7(w)})},e1G=function(y){var W,V,w,t,F,I,P,C;
_.g(function(d){return d.nextAddress==1?(W=y.JSC$22627_watchApi.getPlayerResponse(),F=_.h((V=W)==null?void 0:(w=V.overlay)==null?void 0:(t=w.playerControlsOverlayRenderer)==null?void 0:t.compositeVideoOverlay,d9e),C=(I=W)==null?void 0:(P=I.playerConfig)==null?void 0:P.compositeVideoConfig,F&&y.setCompositeVideoOverlayRenderer(F),C&&y.setCompositeVideoConfig(C),F&&C?y.container?d.jumpTo(6):d.yield(pZx(y),6):iu3(y)?d.yield(KhR(y),0):d.jumpTo(0)):iu3(y)?d.jumpTo(0):d.yield(oRu(y),0)})},iu3=function(y){var W;
return!((W=y.container)==null||!W.parentElement)};
_.h1_.prototype.disposeInternal=function(){iu3(this)&&KhR(this);_.Ru.prototype.disposeInternal.call(this)};_.qxM=function(y){_.Ru.call(this);var W=this;this.JSC$22633_watchApi=y;var V=this.JSC$22633_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var w=W.JSC$22633_watchApi.getPlayerResponse();if(w){var t,F;if(w=_.h((t=w.endscreen)==null?void 0:(F=t.endscreenRenderer)==null?void 0:F.hideButton,_.aJ)){var I;(I=W.setEndscreenHideButton)==null||I.call(W,w);ffh(W)}}});
this.addOnDisposeCallback(function(){W.JSC$22633_watchApi.unsubscribeByKey(V)});
y=_.N(_.M1({},void 0,"PPHRb"));this.endscreenHideButton=y.next().value;this.setEndscreenHideButton=y.next().value;T3M(this);m5G(this);MhG(this)};
_.p(_.qxM,_.Ru);var ffh=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return y.creatorEndscreenHideButtonContainer?w.return():w.yield(y.JSC$22633_watchApi.playerApi,2);W=w.yieldResult;y.creatorEndscreenHideButtonContainer=document.createElement("div");_.gf(y.creatorEndscreenHideButtonContainer,!1);W.setCreatorEndscreenHideButton(y.creatorEndscreenHideButtonContainer);V=_.nG(y.creatorEndscreenHideButtonContainer,function(){return _.O(_.XV,{data:y.endscreenHideButton,useOutlinedIcon:!0})});
y.addOnDisposeCallback(function(){V();var t;(t=W)==null||t.setCreatorEndscreenHideButton(void 0)});
_.B7(w)})},T3M=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22633_watchApi.playerApi,2);W=w.yieldResult;V=function(){y.creatorEndscreenHideButtonContainer&&_.gf(y.creatorEndscreenHideButtonContainer,!0)};
W.addEventListener("endscreenelementshown",V);y.addOnDisposeCallback(function(){var t;(t=W)==null||t.removeEventListener("endscreenelementshown",V)});
_.B7(w)})},m5G=function(y){var W=function(){y.creatorEndscreenHideButtonContainer&&_.gf(y.creatorEndscreenHideButtonContainer,!1)},V=y.JSC$22633_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",W),w=y.JSC$22633_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",W);
y.addOnDisposeCallback(function(){y.JSC$22633_watchApi.unsubscribeByKey(V);y.JSC$22633_watchApi.unsubscribeByKey(w)})},MhG=function(y){y.JSC$22633_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(W){var V=_.h(W,IJP);
y.JSC$22633_watchApi.playerApi.then(function(w){w==null||w.setCreatorEndscreenVisibility(!!V.hide)})});
y.addOnDisposeCallback(function(){y.JSC$22633_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.uMZ=function(y){_.Ru.call(this);this.JSC$22639_watchApi=y;U5Z(this)};
_.p(_.uMZ,_.Ru);var U5Z=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22639_watchApi.playerApi,2);W=w.yieldResult;V=function(t){_.dP().dispatch(_.ig({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:t}}))};
W.addEventListener("onRetroModeChanged",V);y.addOnDisposeCallback(function(){W.removeEventListener("onRetroModeChanged",V)});
_.B7(w)})};var Uk=0,qe=0,uM=0;var Sx5;Sx5=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Us=function(y){_.Ru.call(this);this.JSC$22652_watchApi=y;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;D5h(this)};
_.p(_.Us,_.Ru);
var D5h=function(y){var W,V,w;_.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$22652_watchApi.playerApi,2);W=t.yieldResult;if(y.isDisposed())return t.return();y.sessionStorage=_.c_d("yt-sleep-timer");y.sessionStorage||_.rQ(new _.Js("SessionStorage for Sleep Timer is undefined."));((V=y.sessionStorage)==null?void 0:V.get("yt-sleep-timer"))==="true"&&(xSP(),(w=y.sessionStorage)==null||w.remove("yt-sleep-timer"),W.syncVolume());lfR(y,W);x53(y,W);k33(y,W);_.B7(t)})},lfR=function(y,W){var V=function(d){y.onSleepTimerSettingsChanged(d,
W)},w=function(d){y.onPlayerStateChange(d,W)},t=function(){y.onLoopChange(W)},F=function(){y.onCloseMiniplayer(W)},I=function(){uE3(W,(0,_.cU)(),ksu(W),y.selectedOption==="End of video",W.getPlayerState()!==1)},P=function(){y.onSeekComplete(W)},C=function(){_.HU.cancelJob(qe);
var d=W.getCurrentTime()>=W.getDuration(),L=y.selectedOption==="End of video"||y.selectedOption==="End of playlist"&&!Mru(y.playlistId);d&&L&&sG_(y,W)};
W.addEventListener("onSleepTimerSettingsChanged",V);W.addEventListener("onLoopChange",t);W.addEventListener("onLoopRangeChange",t);W.addEventListener("onStateChange",w);W.addEventListener("onCloseMiniplayer",F);W.addEventListener("onSleepTimerFeatureAvailable",I);W.addEventListener("SEEK_COMPLETE",P);W.addEventListener("onAdStart",C);y.addOnDisposeCallback(function(){W.removeEventListener("onSleepTimerSettingsChanged",V);W.removeEventListener("onLoopChange",t);W.removeEventListener("onLoopRangeChange",
t);W.removeEventListener("onStateChange",w);W.removeEventListener("onCloseMiniplayer",F);W.removeEventListener("onSleepTimerFeatureAvailable",I);W.removeEventListener("SEEK_COMPLETE",P);W.removeEventListener("onAdStart",C)})},x53=function(y,W){var V=y.JSC$22652_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var w=W.getVideoData().video_id,t,F=(t=Tse(y.JSC$22652_watchApi))==null?void 0:t.playlistId;
y.pauseAutonavPlayback&&(W.pauseVideo(),W.syncVolume(),y.pauseAutonavPlayback=!1);if(y.selectedOption==="End of video"&&w!==y.videoId)uS(y,W);else{if(y.selectedOption==="End of playlist"){t=Mru(y.playlistId);if(F!==y.playlistId){uS(y,W);break a}t?t&&A_3(y,W):Yx3(y,W)}y.videoId=w;y.playlistId=F}}});
y.addOnDisposeCallback(function(){y.JSC$22652_watchApi.unsubscribeByKey(V)})},k33=function(y,W){var V=_.hs().resolve(_.w0),w=_.Y0(V,_.Tzu,function(F){F&&y.selectedOption!=="Off"&&uS(y,W)}),t=y.JSC$22652_watchApi.subscribeToActiveChanged(function(F){var I,P;
return _.g(function(C){if(C.nextAddress==1)return C.yield(_.s8().navigationFinishPromise,2);I=!_.cj2();P=_.hs().resolve(_.VH).isMiniplayerActive();F||!Me(y.selectedOption)||P||I||uS(y,W);_.B7(C)})},!1);
V=_.Y0(V,function(F){return F.entities.playlistLoopStateEntity||{}},function(F){F=F===void 0?{}:F;
var I=mSu(y.JSC$22652_watchApi);if(I){var P;((P=F[I])==null?void 0:P.state)==="PLAYLIST_LOOP_STATE_ALL"&&Me(y.selectedOption)&&uS(y,W)}});
y.addOnDisposeCallback(w);y.addOnDisposeCallback(V);y.addOnDisposeCallback(t)};
_.Us.prototype.onSleepTimerSettingsChanged=function(y,W){switch(y){case "Off":this.selectedOption!=="Off"&&uS(this,W);break;case "End of video":case "End of playlist":B3_(this,y,W);break;default:B3_(this,y,W,Sx5.get(y))}};
_.Us.prototype.onLoopChange=function(y){(y.getLoopVideo()||y.getLoopRange())&&Me(this.selectedOption)&&uS(this,y)};
_.Us.prototype.onCloseMiniplayer=function(y){Me(this.selectedOption)&&uS(this,y)};
var B3_=function(y,W,V,w){J_R(y,V);y.selectedOption=W;y.videoId=V.getVideoData().video_id;y.playlistId="";var t;(t=y.sessionStorage)==null||t.set("yt-sleep-timer","true");y.adjustmentsCount++;uE3(V,(0,_.cU)(),ksu(V),y.selectedOption==="End of video");if(y.selectedOption==="End of video")Yx3(y,V),R1Z(y,V);else if(y.selectedOption==="End of playlist"){R1Z(y,V);var F,I;y.playlistId=(I=(F=Tse(y.JSC$22652_watchApi))==null?void 0:F.playlistId)!=null?I:"";Mru(y.playlistId)||Yx3(y,V)}else w&&(y.presetFadeSchedulerId=
_.jf(_.HU,function(){DSu(V,15E3)},w-15E3),y.presetPauseSchedulerId=_.jf(_.HU,function(){sG_(y,V)},w),SLu(V,(0,_.cU)(),w))},sG_=function(y,W){if(y.JSC$22652_watchApi.isActive()){var V={dismissDialogEndpoint:{}};
var w={commandExecutorCommand:{commands:[V,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};V={buttonViewModel:{title:_.u5("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:V}}};w={buttonViewModel:{title:_.u5("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:w}}};var t={dialogHeaderViewModel:{headline:{content:_.u5("SLEEP_TIMER_ENDED_TITLE")}}},
F={basicContentViewModel:{paragraphs:[{text:{content:_.u5("SLEEP_TIMER_ENDED_TEXT")}}]}};V={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:t,content:F,footer:{panelFooterViewModel:{primaryButton:V,secondaryButton:w,shouldHideDivider:!0}}}}}}};_.hs().resolve(_.oA).resolveCommand(V,{form:{element:y}})}else xSP();jGZ(y,!1);$53(y,W);W.pauseVideo();_.en.getInstance().getState()===2&&W.getPlayerState()===5&&(y.pauseAutonavPlayback=!0)},uS=function(y,W){jGZ(y,!0);
$53(y,W);xSP()},$53=function(y,W){J_R(y,W);
y.selectedOption="Off";y.videoId="";y.playlistId="";y.adjustmentsCount=0;var V;(V=y.sessionStorage)==null||V.remove("yt-sleep-timer");_.HU.cancelJob(Uk);W.resetSleepTimerMenuSettings()},jGZ=function(y,W){W={timer_length_adjustment_times_during_session:y.adjustmentsCount-1,
is_session_cancelled:W};switch(y.selectedOption){case "Off":W.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:W.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",W.option_duration_in_minutes=Sx5.get(y.selectedOption)/6E4}_.Hp("sleepTimerSessionFinishEvent",W)};
_.Us.prototype.onPlayerStateChange=function(y,W){y===1?uE3(W,(0,_.cU)(),ksu(W),this.selectedOption==="End of video"):y===0?(_.HU.cancelJob(qe),W.setVideoTimeLeft(USj(0,0))):y===2&&_.HU.cancelJob(qe);this.selectedOption==="End of video"?y===0?sG_(this,W):y===2&&lyE(W):this.selectedOption!=="End of playlist"||Mru(this.playlistId)||(y===0?sG_(this,W):y===2&&lyE(W))};
_.Us.prototype.onSeekComplete=function(y){y.getPlayerState()===2&&uE3(y,(0,_.cU)(),ksu(y),this.selectedOption==="End of video",!0)};
_.Us.prototype.onCueRangeEnter=function(y,W){y==="sleep-timer-fade-audio"&&DSu(W,(W.getDuration()-W.getProgressState().current)*1E3)};
_.Us.prototype.onCueRangeExit=function(y,W){y==="sleep-timer-fade-audio"&&W.getPlayerState()!==0&&lyE(W,!0)};
var Yx3=function(y,W){W.addCueRange("sleep-timer-fade-audio",W.getDuration()-15,W.getDuration());W.addEventListener("onCueRangeEnter",function(V){y.onCueRangeEnter(V,W)});
W.addEventListener("onCueRangeExit",function(V){y.onCueRangeExit(V,W)})},A_3=function(y,W){W.removeCueRange("sleep-timer-fade-audio");
W.removeEventListener("onCueRangeEnter",function(V){y.onCueRangeEnter(V,W)});
W.removeEventListener("onCueRangeExit",function(V){y.onCueRangeExit(V,W)})},J_R=function(y,W){Me(y.selectedOption)?A_3(y,W):(_.HU.cancelJob(y.presetPauseSchedulerId),_.HU.cancelJob(y.presetFadeSchedulerId),y.presetPauseSchedulerId=0,y.presetFadeSchedulerId=0);
lyE(W,!0)},R1Z=function(y,W){W.setLoop(!1);
W.setLoopVideo(!1);W.setLoopRange(null);(y=mSu(y.JSC$22652_watchApi))&&_.hs().resolve(_.w0).dispatch(_.B5("playlistLoopStateEntity",y,{key:y,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.afu=function(y){_.Ru.call(this);this.JSC$22655_watchApi=y;nRu(this);Hu3(this);XZ_(this);y=y.getRoot();if(y.is==="ytd-watch-flexy"||y.is==="ytd-watch-grid")y.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Z1u();_.e("web_watch_log_theater_mode_cookie_state")&&_.k_.get("wide","0")==="1"&&_.oMv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.p(_.afu,_.Ru);var nRu=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22655_watchApi.playerApi,2);W=w.yieldResult;V=function(t){G3G(y,!!t)};
W.addEventListener("SIZE_CLICKED",V);y.addOnDisposeCallback(function(){W.removeEventListener("SIZE_CLICKED",V)});
_.B7(w)})},Hu3=function(y){y.JSC$22655_watchApi.registerActionHandler("yt-toggle-theater-mode",function(W,V){G3G(y,W,V===void 0?!0:V)});
y.addOnDisposeCallback(function(){y.JSC$22655_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.afu.prototype.getState=function(){return _.W5(_.dP().getState())};
var G3G=function(y,W,V){V=V===void 0?!0:V;var w,t,F,I=_.e("enable_player_resize_transition")&&!!y.JSC$22655_watchApi.getWatchNextResponse()&&!((w=y.JSC$22655_watchApi.getWatchNextResponse())==null?0:(t=w.contents)==null?0:(F=t.twoColumnWatchNextResults)==null?0:F.conversationBar);_.hpC(function(){_.dP().dispatch(_.ig({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:W}}));_.e("theater_mode_scroll_to_top_killswitch")||y.JSC$22655_watchApi.scrollWatchTo(0,!1);_.Lg()&&_.e("external_fullscreen")&&_.z2(document.documentElement);
XZ_(y);V&&_.s1("wide",W?"1":"0",-1);_.ow(y.JSC$22655_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);y.JSC$22655_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:W});W&&_.Z1u()},{shouldWrap:I})},XZ_=function(y){var W;
_.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22655_watchApi.playerApi,2);W=V.yieldResult;W.setSizeStyle(!0,y.getState());_.B7(V)})};var QGZ=function(y){_.Ru.call(this);var W=this;this.playerApi=y;this.timeToPanelSyncKeyMap={};var V;if(y==null?0:(V=y.isReady)==null?0:V.call(y)){V=_.Y0(_.hs().resolve(_.w0),function(t){return t.entities.timedMarkersListSyncEntity||{}},function(t,F){t=t===void 0?{}:t;
F=F===void 0?{}:F;for(var I=_.N(Object.keys(F)),P=I.next();!P.done;P=I.next())P=P.value,t[P]!==F[P]&&r_G(W,F[P]);F=_.N(Object.keys(t));for(I=F.next();!I.done;I=F.next())I=I.value,P=t[I],W.timeToPanelSyncKeyMap[I]&&buG(W,P)});
this.addOnDisposeCallback(V);var w=function(t){W.onCueRangeEnter(t)};
y.addEventListener("onCueRangeEnter",w);this.addOnDisposeCallback(function(){var t;(t=y.removeEventListener)==null||t.call(y,"onCueRangeEnter",w)})}};
_.p(QGZ,_.Ru);
var buG=function(y,W){var V,w;if((V=y.playerApi)==null?0:(w=V.isReady)==null?0:w.call(V)){var t;if((V=W==null?void 0:(t=W.timedListData)==null?void 0:t.sections)&&W!=null&&W.key)for(t=_.N(V),V=t.next();!V.done;V=t.next())if(V=V.value,V.timedSyncDataList&&V.sectionId)for(w=0;w<V.timedSyncDataList.length;w++){var F=V.timedSyncDataList[w];F.syncItemId&&y.playerApi.addCueRange(V.sectionId+"_"+W.key+"_"+F.syncItemId,Number(F.videoTimeMs)/1E3,w===V.timedSyncDataList.length-1?0x8000000000000:Number(V.timedSyncDataList[w+
1].videoTimeMs)/1E3)}}},r_G=function(y,W){var V,w;
if((V=y.playerApi)==null?0:(w=V.isReady)==null?0:w.call(V)){var t;if((V=W==null?void 0:(t=W.timedListData)==null?void 0:t.sections)&&W!=null&&W.key)for(t=_.N(V),V=t.next();!V.done;V=t.next())if(V=V.value,V.timedSyncDataList&&V.sectionId){w=_.N(V.timedSyncDataList);for(var F=w.next();!F.done;F=w.next())F=F.value,F.syncItemId&&y.playerApi.removeCueRange(V.sectionId+"_"+W.key+"_"+F.syncItemId)}}};
QGZ.prototype.onCueRangeEnter=function(y){for(var W=_.N(Object.keys(this.timeToPanelSyncKeyMap)),V=W.next();!V.done;V=W.next()){V=V.value;var w=_.N(y.split("_"+V+"_")),t=w.next().value;w=w.next().value;if(t&&w){y=_.hs().resolve(_.w0);W=this.timeToPanelSyncKeyMap[V];var F=_.L2b(y.getState(),W);V=Zuu(V,t,w);if(V===-1)break;V={activeSyncId:w,activeItemIndex:V,activeSectionInfo:{sectionIdentifier:t}};F?y.dispatch(_.Z6("markersEngagementPanelSyncEntity",W,V)):y.dispatch(_.B5("markersEngagementPanelSyncEntity",
W,Object.assign({},{key:W},V)));break}}};
var Zuu=function(y,W,V){var w=_.hs().resolve(_.w0),t,F;y=(t=njq(w.getState(),y))==null?void 0:(F=t.timedListData)==null?void 0:F.sections;if(!y)return-1;t=0;F=_.N(y);for(y=F.next();!y.done;y=F.next()){y=y.value;w=y.timedSyncDataList||[];if(y.sectionId===W)return W=w.findIndex(function(I){return I.syncItemId===V}),W===-1?W:t+W;
t+=w.length}return-1};_.Vmu=function(y){_.Ru.call(this);var W=this;this.JSC$22668_watchApi=y;this.unresolvedCommands=[];this.JSC$22668_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(V){yX1(W,V)});
this.addOnDisposeCallback(function(){W.JSC$22668_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
WXM(this)};
_.p(_.Vmu,_.Ru);var WXM=function(y){var W;_.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22668_watchApi.playerApi,2);W=V.yieldResult;if(y.isDisposed())return V.return();y.timedSyncObserver=new QGZ(W);y.unresolvedCommands.length&&(y.unresolvedCommands.forEach(function(w){return yX1(y,w)}),y.unresolvedCommands=[]);
_.Uf(y,y.timedSyncObserver);_.B7(V)})},yX1=function(y,W){if(y.timedSyncObserver){var V=_.h(W,PSE);
if(V&&V.timedSyncEntityKey&&V.panelSyncEntityKey){y=y.timedSyncObserver;W=V.timedSyncEntityKey;var w=V.panelSyncEntityKey;V=!!V.isEnabled;V=V===void 0?!0:V;var t=_.hs().resolve(_.w0);t=njq(t.getState(),W);V?y.timeToPanelSyncKeyMap[W]||(y.timeToPanelSyncKeyMap[W]=w,buG(y,t)):(delete y.timeToPanelSyncKeyMap[W],r_G(y,t))}}else y.unresolvedCommands.push(W)};var w73=_.eY(function(y){var W=y.data,V=y.maybeLogSmartSkipClientData,w=null,t=null,F=_.e("web_enable_auto_focus_for_timely_action_button"),I=function(){w=document.activeElement},P=function(){W().smartSkipMetadata&&(w=document.activeElement,_.UsC(function(){return t}))},C=function(L){if(W().smartSkipMetadata&&(!L||L.key!=="Enter")){w&&w.isConnected&&(_.UsC(function(){return w}),w=null);
var z;(z=t)==null||z.blur()}};
y=_.YS(function(){V==null||V(!0,W());return!1});
var d=_.hl(_.FW(function(){return W().rendererContext},{onTap:function(L,z){z({disableClickTracking:!0})}}),_.L7({visibilityCallback:function(L){if(F)L?t&&W().smartSkipMetadata&&(P(),document.addEventListener("focusin",I)):(document.removeEventListener("focusin",I),C());
else if(L){L=_.w7(W().rendererContext);var z=Number(W().maxVisibleDurationMilliseconds),c,K=(c=_.h(W().rendererContext,_.Bq))==null?void 0:c.label;L&&z&&K&&(c={label:K,command:L,durationMs:z},_.hs().resolve(_.kT).enqueue(c))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.HV(function(){if(F){var L;if((t=(L=d.value)==null?void 0:L.querySelector("button"))&&W().smartSkipMetadata){var z;(z=d.value)==null||z.addEventListener("keydown",C)}}});
_.XT(function(){F&&(t&&W().smartSkipMetadata&&t.removeEventListener("keydown",C),document.removeEventListener("focusin",I),C())});
return _.O("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:d,"on:click":y},_.O(_.Q7,{data:function(){return W().content}},{buttonViewModel:_.lk}))},"Oj");var tm1=_.eY(function(y){var W=y.data,V=y.playerApi,w=_.hs().resolve(_.vPu);y=_.N(_.Jl(function(){W()}));
var t=y.next().value,F=y.next().value,I=function(){return AJm(W(),t())},P=function(d,L){var z,c,K=(z=_.h(L==null?void 0:L.rendererContext,_.JY))==null?void 0:(c=z.loggingDirectives)==null?void 0:c.trackingParams;
if((L=L==null?void 0:L.smartSkipMetadata)&&L.loggingData&&(c=L.loggingData,L=c.algorithmId,z=c.startMilliseconds,c=c.endMilliseconds,L&&z!==void 0&&c!==void 0)){var f,U;d={smartSkipData:Object.assign({},{versionName:L,startMediaTimeMs:z,endMediaTimeMs:c},d&&{userInteractionMediaTimeMs:(Math.floor(((f=_.Kn())==null?void 0:(U=f.getPlayer())==null?void 0:U.getCurrentTime())||0)*1E3).toString()})};f=_.Xn();var l;K&&(l=_.nD(K));f&&l&&_.d5(f,l,d)}},C=function(d,L){var z=AJm(W(),d);
if(z){var c=_.h(z,SO),K;if(K=L)K=V(),z=_.h(z,SO),K=z!=null&&z.smartSkipMetadata?!(K==null?0:K.isSameMarkerTypeVisible((z==null?void 0:z.smartSkipMetadata.markerKey)||"")):!0;if(K){var f,U;(c==null?0:(f=c.smartSkipMetadata)==null?0:(U=f.loggingData)==null?0:U.isCounterfactual)||(P(!1,c),F(d))}else L||t()!==d||F(void 0)}};
_.H1(function(){var d=W().timelyActions;if(d){d=_.N(d);for(var L=d.next();!L.done;L=d.next()){L=_.h(L.value,SO);var z=void 0;(z=L)!=null&&z.cueRangeId&&w.timelyActionsMap.set(L.cueRangeId,C)}_.XT(function(){w.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.O("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.O(_.Q7,{data:I},{timelyActionViewModel:function(d){return _.O(w73,{data:d.data,maybeLogSmartSkipClientData:function(){P(!0,_.h(I(),SO))}})}}))},"Pj");_.EXM=function(y){_.Ru.call(this);this.JSC$22680_watchApi=y;y=_.N(_.M1({},void 0,"pLDp2"));this.timelyActionsOverlay=y.next().value;this.setTimelyActionsOverlay=y.next().value;FXR(this)};
_.p(_.EXM,_.Ru);var FXR=function(y){var W,V,w,t;_.g(function(F){if(F.nextAddress==1)return N$x(y),IB5(y),y.timelyActionsContainer=document.createElement("div"),F.yield(y.JSC$22680_watchApi.playerApi,2);W=F.yieldResult;(w=(V=W).insertTimelyActionUi)==null||w.call(V,y.timelyActionsContainer);t=_.nG(y.timelyActionsContainer,function(){return _.O(tm1,{data:y.timelyActionsOverlay,playerApi:W})});
y.addOnDisposeCallback(t);_.B7(F)})},IB5=function(y){var W=y.JSC$22680_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){N$x(y)});
y.addOnDisposeCallback(function(){y.JSC$22680_watchApi.unsubscribeByKey(W)})},N$x=function(y){var W=y.JSC$22680_watchApi.getWatchNextResponse();
if(W){var V,w;if(W=_.h((V=W.playerOverlays)==null?void 0:(w=V.playerOverlayRenderer)==null?void 0:w.timelyActionsOverlayViewModel,CSu)){var t;(t=y.setTimelyActionsOverlay)==null||t.call(y,W)}}};_.P7x=function(y){_.Ru.call(this);this.JSC$22684_watchApi=y;gXh(this)};
_.p(_.P7x,_.Ru);var gXh=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22684_watchApi.playerApi,2);W=w.yieldResult;V=function(t){_.xc.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.h(t,_.oBW)},popupType:"TOAST"}})};
W.addEventListener("onYtShowToast",V);y.addOnDisposeCallback(function(){W.removeEventListener("onYtShowToast",V)});
_.B7(w)})};var C71,dlZ,h81,OJR,vXG,e8x,z8R,cXG,oXM,KXZ;C71=!1;_.LX3=function(y){_.Ru.call(this);this.JSC$22687_watchApi=y;this.fullscreen=this.theater=!1;OJR(this);vXG(this);dlZ(this)};
_.p(_.LX3,_.Ru);dlZ=function(y){var W,V,w;_.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$22687_watchApi.playerApi,2);W=t.yieldResult;if(y.isDisposed())return t.return();V=y.JSC$22687_watchApi.getElement("CINEMATICS");if(!V)return t.return();y.JSC$22687_cinematicController=new _.w2(V,W);_.Uf(y,y.JSC$22687_cinematicController);_.jkj(y.JSC$22687_cinematicController);z8R(y,_.yWb());w=y.JSC$22687_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(F){cXG(y,F)});
y.addOnDisposeCallback(function(){y.JSC$22687_watchApi.unsubscribeByKey(w)});
e8x(y);cXG(y,y.JSC$22687_cinematicController.isAllowed());_.e("web_cinematic_manager_redux_killswitch")?_.S7(y,y.fullscreen,y.theater):h81(y);oXM(y);_.B7(t)})};
h81=function(y){y.fullscreen=_.V7(_.dP().getState());y.theater=_.W5(_.dP().getState());_.S7(y,y.fullscreen,y.theater);var W=_.Y0(_.dP(),_.V7,function(w){y.fullscreen=w;_.S7(y,y.fullscreen,y.theater)}),V=_.Y0(_.dP(),_.W5,function(w){y.theater=w;
_.S7(y,y.fullscreen,y.theater)});
y.addOnDisposeCallback(W);y.addOnDisposeCallback(V)};
OJR=function(y){var W=y.JSC$22687_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e8x(y)});
y.addOnDisposeCallback(function(){y.JSC$22687_watchApi.unsubscribeByKey(W)})};
vXG=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22687_watchApi.playerApi,2);W=w.yieldResult;V=function(t){z8R(y,t)};
W.addEventListener("cinematicSettingsToggleChange",V);y.addOnDisposeCallback(function(){W.removeEventListener("cinematicSettingsToggleChange",V)});
_.B7(w)})};
e8x=function(y){var W=y.JSC$22687_watchApi.getWatchNextResponse(),V;W=_.h(W==null?void 0:(V=W.pageVisualEffects)==null?void 0:V[0],_.Kx);var w;(w=y.JSC$22687_cinematicController)==null||_.nBv(w,W)};
z8R=function(y,W){var V;(V=y.JSC$22687_cinematicController)==null||_.$Xq(V,W);KXZ(y)};
cXG=function(y,W){var V;_.g(function(w){if(w.nextAddress==1)return _.e("kevlar_watch_cinematics_invisible")&&(W=!1),w.yield(y.JSC$22687_watchApi.playerApi,2);V=w.yieldResult;V.updateCinematicSettings(W);KXZ(y);_.B7(w)})};
oXM=function(y){var W=_.l5();if(_.e("kevlar_measure_ambient_mode_idle")&&!W.getFlag(192)&&!C71){C71=!0;var V=_.Jt(_.HU,function(){_.hs().resolve(_.Lhe).start(1E4)},5E3);
y.addOnDisposeCallback(function(){_.HU.cancelJob(V);_.hs().resolve(_.Lhe).stop()})}};
_.S7=function(y,W,V){y.fullscreen=W;y.theater=V;var w;(w=y.JSC$22687_cinematicController)==null||w.setFullscreen(y.fullscreen,y.theater);if(_.e("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(y.theater||y.fullscreen){var t;(t=y.JSC$22687_cinematicController)==null||_.H4e(t)}else if((y=y.JSC$22687_cinematicController)!=null){var F;(F=y.currentCinematicEffect)==null||F.pause()}};
KXZ=function(y){if(_.e("web_cinematic_theater_mode")||_.e("web_cinematic_fullscreen")){var W;y.JSC$22687_watchApi.getRoot().toggleCinematicsActive(!((W=y.JSC$22687_cinematicController)==null||!W.isEnabled()))}};_.T$3=function(y){_.Ru.call(this);var W=this;this.JSC$22690_watchApi=y;this.commentsReady=!1;this.setCommentsJobId=0;y=_.Y0(_.dP(),_.f1,function(){p7R(W)});
this.addOnDisposeCallback(y);var V=this.JSC$22690_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iJG(W)}),w=this.JSC$22690_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){iJG(W)});
this.addOnDisposeCallback(function(){W.JSC$22690_watchApi.unsubscribeByKey(V);W.JSC$22690_watchApi.unsubscribeByKey(w)});
var t=function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&fBh(W,"false")};
this.JSC$22690_watchApi.getRoot().addEventListener("yt-page-data-will-update",t);this.addOnDisposeCallback(function(){W.JSC$22690_watchApi.getRoot().removeEventListener("yt-page-data-will-update",t)});
iJG(this)};
_.p(_.T$3,_.Ru);var iJG=function(y){y.commentsReady=!1;_.HU.cancelJob(y.setCommentsJobId);y.setCommentsJobId=_.Jt(_.HU,function(){p7R(y)},1E3)},p7R=function(y){if(!y.commentsReady){_.aw("cmi");
_.HU.cancelJob(y.setCommentsJobId);var W,V,w,t,F=(W=y.JSC$22690_watchApi.getWatchNextResponse())==null?void 0:(V=W.contents)==null?void 0:(w=V.twoColumnWatchNextResults)==null?void 0:(t=w.results)==null?void 0:t.results.contents;W=void 0;if(F&&F.length)for(F=_.N(F),V=F.next();!V.done;V=F.next())if(V=V.value,t=w=void 0,((w=V)==null?void 0:(t=w.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"){_.e("web_watch_provide_undefined_comments")?W=V.itemSectionRenderer:y.JSC$22690_watchApi.provideRenderingData("COMMENTS",
V.itemSectionRenderer);fBh(y,"true");break}_.e("web_watch_provide_undefined_comments")&&y.JSC$22690_watchApi.provideRenderingData("COMMENTS",W);y.commentsReady=!0;y.JSC$22690_watchApi.dispatchEvent("yt-watch-comments-ready")}},fBh=function(y,W){var V;
(V=y.JSC$22690_watchApi.getElement("COMMENTS"))==null||V.setAttribute("canScheduleJobs",W)};_.ki=function(y){_.Ru.call(this);var W=this;this.JSC$22693_watchApi=y;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.e("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.e("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.e("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.pB("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)ml5(this);
else{var V=this.JSC$22693_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DJ(W);lS(W)}),w=this.JSC$22693_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xi(W);
lS(W)});
this.JSC$22693_watchApi.getRoot().is==="ytd-watch-grid"&&_.e("swatcheroo_pbs_load_grid")&&(MmG(this),qch(this));this.addOnDisposeCallback(function(){W.JSC$22693_watchApi.unsubscribeByKey(V);W.JSC$22693_watchApi.unsubscribeByKey(w);_.HU.cancelJob(W.provideRichGridJobId)});
DJ(this);xi(this)}};
_.p(_.ki,_.Ru);var ml5=function(y){var W=y.JSC$22693_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y.providePlayerJobId=_.b8(_.HU,function(){DJ(y);lS(y)},y.provideAllDataDelayMs)}),V=y.JSC$22693_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){y.provideWatchNextJobId=_.b8(_.HU,function(){xi(y);
lS(y)},y.provideAllDataDelayMs)}),w=y.JSC$22693_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){y.provideWatchNextJobId=_.b8(_.HU,function(){xi(y);
lS(y)},y.provideAllDataDelayMs)});
y.JSC$22693_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Jt(_.HU,function(){DJ(y);xi(y);lS(y)},100)});
y.JSC$22693_watchApi.addPageDisposeJob(function(){_.HU.cancelJob(y.provideWatchNextJobId);_.HU.cancelJob(y.providePlayerJobId)});
y.addOnDisposeCallback(function(){y.JSC$22693_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");y.JSC$22693_watchApi.unsubscribeByKey(W);y.JSC$22693_watchApi.unsubscribeByKey(V);y.JSC$22693_watchApi.unsubscribeByKey(w);_.HU.cancelJob(y.providePlayerJobId);_.HU.cancelJob(y.provideWatchNextJobId)});
DJ(y);xi(y)},DJ=function(y){var W=y.JSC$22693_watchApi.getPlayerResponse(),V,w,t=(w=W==null?void 0:(V=W.playabilityStatus)==null?void 0:V.messageRenderers)!=null?w:[],F,I;
W=(I=W==null?void 0:(F=W.playabilityStatus)==null?void 0:F.messages)!=null?I:[];F=_.N(W);for(I=F.next();!I.done;I=F.next())t.push({alertRenderer:{text:_.CO(I.value),type:"WARNING"}});y.JSC$22693_watchApi.provideRenderingData("ALERTS",t)},xi=function(y){var W=[],V,w,t,F=y.JSC$22693_watchApi.getWatchNextResponse(),I,P,C,d,L=F==null?void 0:(I=F.contents)==null?void 0:(P=I.twoColumnWatchNextResults)==null?void 0:(C=P.results)==null?void 0:(d=C.results)==null?void 0:d.contents;
if(L)for(I=_.N(L),P=I.next();!P.done;P=I.next())if(P=P.value,P.videoPrimaryInfoRenderer)var z=P;else if(P.videoSecondaryInfoRenderer){var c=P;d=C=void 0;P=Object.assign({},(C=P.videoSecondaryInfoRenderer)==null?void 0:(d=C.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(P.rows&&P.collapsedItemCount!==void 0){P.rows=P.rows.slice(0,P.collapsedItemCount).filter(function(jQ){return!!jQ.richMetadataRowRenderer});
P.collapsedItemCount=P.rows.length;var K={metadataRowContainerRenderer:P}}}else if(P.merchandiseShelfRenderer)var f=P;else if(P.ticketShelfRenderer)var U=P;else if(P.expandableMetadataRenderer)var l=P;else if(P.itemSectionRenderer)if(C=P.itemSectionRenderer.contents,d=void 0,y.directlyProvideComments&&((d=P.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section")_.aw("cmi"),y.JSC$22693_watchApi.provideRenderingData("COMMENTS",P.itemSectionRenderer);else if(C)for(P=_.N(C),C=
P.next();!C.done;C=P.next())if(C=C.value,C.commentsEntryPointHeaderRenderer)var x=C;else if(C.clarificationRenderer||C.infoPanelContainerRenderer||C.infoPanelContentRenderer||C.emergencyOneboxRenderer){W.push(C);var B=B||!!c}else C.limitedStateMessageRenderer?w=C:C.videoMetadataCarouselViewModel&&(t=C);if(_.e("web_watch_merch_in_sd_when_ticket_shelf_present")&&f&&U){var r=f;f=void 0}if(y.provideWatchNextSecondaryResults){var H,a,b;y.JSC$22693_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
F==null?void 0:(H=F.contents)==null?void 0:(a=H.twoColumnWatchNextResults)==null?void 0:(b=a.secondaryResults)==null?void 0:b.secondaryResults)}if(y.JSC$22693_watchApi.getRoot().is==="ytd-watch-grid"){var Fv,Py;y.JSC$22693_watchApi.provideRenderingData("LIVE_CHAT",F==null?void 0:(Fv=F.contents)==null?void 0:(Py=Fv.twoColumnWatchNextResults)==null?void 0:Py.conversationBar)}var du,mL,un,hv;(H=F==null?void 0:(du=F.contents)==null?void 0:(mL=du.twoColumnWatchNextResults)==null?void 0:(un=mL.secondaryResults)==
null?void 0:(hv=un.secondaryResults)==null?void 0:hv.offerModule)&&(H.donationShelfRenderer||H.donationUnavailableRenderer)&&y.JSC$22693_watchApi.getRoot().is!=="ytd-watch-grid"&&(V=H);du=y.JSC$22693_watchApi.getPlayerResponse();if(!du||!_.jOv(du.playabilityStatus,F==null?void 0:F.playerOverlays)){var $P;if(F==null?0:($P=F.contents)==null?0:$P.singleColumnWatchNextResults){var sz,Wz;var mf=F==null?void 0:(sz=F.contents.singleColumnWatchNextResults.results)==null?void 0:(Wz=sz.results)==null?void 0:
Wz.contents}else{var OE,Qj,Kq,zR;$P=!!(L==null?0:(OE=L[0])==null?0:(Qj=OE.itemSectionRenderer)==null?0:(Kq=Qj.contents)==null?0:(zR=Kq[0])==null?0:zR.backgroundPromoRenderer);var l2,lt;OE=!!(F==null?0:(l2=F.contents)==null?0:(lt=l2.twoColumnWatchNextResults)==null?0:lt.secondaryResults);$P&&!OE&&(mf=L)}}L=W[0];l2=W[1];B&&W.length===1&&(l2=L,L=void 0);y.JSC$22693_watchApi.provideRenderingData("PRIMARY_INFO",z);y.JSC$22693_watchApi.provideRenderingData("SECONDARY_INFO",c);y.JSC$22693_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
x);y.JSC$22693_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",t);y.JSC$22693_watchApi.provideRenderingData("CLARIFICATION",L);y.JSC$22693_watchApi.provideRenderingData("RICH_METADATA",K);y.JSC$22693_watchApi.provideRenderingData("MERCH_SHELF",f);_.e("web_watch_merch_in_sd_when_ticket_shelf_present")&&y.JSC$22693_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",r);y.JSC$22693_watchApi.provideRenderingData("TICKET_SHELF",U);y.JSC$22693_watchApi.provideRenderingData("LIMITED_STATE",w);y.JSC$22693_watchApi.getRoot().is!==
"ytd-watch-grid"&&y.JSC$22693_watchApi.provideRenderingData("DONATION_SHELF",V);y.JSC$22693_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",mf);y.JSC$22693_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",l2);y.JSC$22693_watchApi.provideRenderingData("EXPANDABLE_METADATA",l);if(y.swatcherooProvideAllDataOnScheduledJob){var yu,Na,F6,TR,eP,hA;z=F==null?void 0:(yu=F.contents)==null?void 0:(Na=yu.twoColumnWatchNextResults)==null?void 0:(F6=Na.secondaryResults)==null?void 0:(TR=F6.secondaryResults)==
null?void 0:(eP=TR.results)==null?void 0:(hA=eP[0])==null?void 0:hA.richGridRenderer;y.JSC$22693_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)}};
_.ki.prototype.hasCompanionAds=function(y){var W,V;return(V=y==null?void 0:(W=y.adPlacements)==null?void 0:W.some(function(w){var t,F,I,P;return(w==null?void 0:(t=w.adPlacementRenderer)==null?void 0:(F=t.renderer)==null?void 0:F.actionCompanionAdRenderer)||(w==null?void 0:(I=w.adPlacementRenderer)==null?void 0:(P=I.renderer)==null?void 0:P.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?V:!1};
var lS=function(y){if(!_.e("swaterdoo_ps_wn_handle_ks")){y.swatcherooProvideAllDataOnScheduledJob||qch(y,3E3);var W=y.JSC$22693_watchApi.getPlayerResponse(),V,w,t,F,I,P=(V=y.JSC$22693_watchApi.getWatchNextResponse())==null?void 0:(w=V.contents)==null?void 0:(t=w.twoColumnWatchNextResults)==null?void 0:(F=t.secondaryResults)==null?void 0:(I=F.secondaryResults)==null?void 0:I.offerModule;W=y.hasCompanionAds(W);var C,d;V=(P==null?void 0:(C=P.tvfilmOfferModuleRenderer)==null?void 0:C.clientShouldSuppressIfCompanionAdDisplayed)||
(P==null?void 0:(d=P.unlimitedOfferModuleRenderer)==null?void 0:d.suppressIfCompanionAds);C=W&&V;y.JSC$22693_watchApi.getRoot().is==="ytd-watch-grid"&&y.JSC$22693_watchApi.provideRenderingData("OFFER_MODULE",C?void 0:P)}},qch=function(y,W){_.e("swatcheroo_pbs_load_grid")&&(y.provideRichGridJobId&&_.HU.cancelJob(y.provideRichGridJobId),y.provideRichGridJobId=_.b8(_.HU,function(){y.provideRichGridJobId=0;
var V,w,t,F,I,P,C,d=(V=y.JSC$22693_watchApi.getWatchNextResponse())==null?void 0:(w=V.contents)==null?void 0:(t=w.twoColumnWatchNextResults)==null?void 0:(F=t.secondaryResults)==null?void 0:(I=F.secondaryResults)==null?void 0:(P=I.results)==null?void 0:(C=P[0])==null?void 0:C.richGridRenderer;d&&y.JSC$22693_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)},W))},MmG=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22693_watchApi.playerApi,2);W=w.yieldResult;V=function(){y.onPlaybackStart()};
W.addEventListener("onPlaybackStartExternal",V);y.addOnDisposeCallback(function(){W.removeEventListener("onPlaybackStartExternal",V)});
_.B7(w)})};
_.ki.prototype.onPlaybackStart=function(){qch(this)};_.uy5=function(y){_.Ru.call(this);var W=this;this.JSC$22703_watchApi=y;y.playerApi.then(function(V){W.player=V});
this.gestures=new _.gs(this.JSC$22703_watchApi.getRoot(),y.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Go4(_.dP().getState())&&_.f1(_.dP().getState())<=0)if(_.V7(_.dP().getState())){var V;(V=W.player)==null||V.toggleFullscreen()}else _.ow(W.JSC$22703_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
UlG(this)};
_.p(_.uy5,_.Ru);var UlG=function(y){var W=_.Y0(_.dP(),_.V7,function(V){y.onFullscreenChanged(V)});
y.addOnDisposeCallback(W);W=_.Y0(_.dP(),_.f1,function(V){y.gestures&&(V>0?y.gestures.detach():y.gestures.attach())});
y.addOnDisposeCallback(W)};
_.uy5.prototype.onFullscreenChanged=function(y){this.gestures&&this.gestures.update(y)};_.Dlh=function(y){_.Ru.call(this);var W=this;this.JSC$22706_watchApi=y;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(y.subscribeToActiveChanged(function(V){W.onActiveChanged(V)}));
Scu(this)};
_.p(_.Dlh,_.Ru);var lB3=function(y){if(_.e("swatcheroo_page_dispose_all_watch_data"))y.pageDisposalDataTypes=Object.values(y_3).filter(function(V){return V!=="PLAYLIST"});
else if(_.e("swatcheroo_page_dispose_rich_grid")){var W;(W=y.pageDisposalDataTypes)==null||W.push("RICH_GRID_RENDERER")}},Scu=function(y){_.e("swatcheroo_enable_ghost_cards")&&(lB3(y),y.JSC$22706_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.HU.cancelJob(y.clearDataJobId);
y.clearDataJobId=0}),y.runPageDisposeJob=function(){var W=_.hs().resolve(_.hn).getDestinationPageType()==="watch";
y.clearDataJobId=_.b8(_.HU,y.runClearDataJob,W?0:_.pB("web_watch_delay_page_dispose_ms",1E4))},y.runClearDataJob=function(){xl1(y)},y.runOnYtNavigateAwayFinish=function(){y.clearDataJobId&&(_.HU.cancelJob(y.clearDataJobId),y.clearDataJobId=0,xl1(y))},document.addEventListener("yt-navigate-finish",y.runOnYtNavigateAwayFinish),y.JSC$22706_watchApi.addPageDisposeJob(y.runPageDisposeJob),y.addOnDisposeCallback(function(){y.JSC$22706_watchApi.removePageDisposeJob(y.runPageDisposeJob);
y.JSC$22706_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",y.runOnYtNavigateAwayFinish)}))},xl1=function(y){y.pageDisposalDataTypes.forEach(function(W){y.JSC$22706_watchApi.provideRenderingData(W,void 0)});
y.clearDataJobId=0};
_.Dlh.prototype.onActiveChanged=function(y){y&&((y=document.querySelector("#watch-page-skeleton"))&&_.ku(y),kC_(this),document.body.removeAttribute("no-y-overflow"),_.W4("IS_SHELL_LOAD")&&_.RaC())};
var kC_=function(y){_.g(function(W){if(W.nextAddress==1)return W.yield(y.JSC$22706_watchApi.playerApi,2);_.ID();_.B7(W)})};var shZ;shZ=_.e("kevlar_watch_while_counterfactual")?0:.25;_.ss=function(y){_.Ru.call(this);this.JSC$22709_watchApi=y;this.JSC$22709_watchWhileEnabled=_.e("kevlar_watch_while_v2");this.pipEnabled=_.e("web_enable_pip_on_miniplayer");AX_(this);Ycf(this);B$_(this)};
_.p(_.ss,_.Ru);var AX_=function(y){y.JSC$22709_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){JXh(y)});
y.addOnDisposeCallback(function(){y.JSC$22709_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Ycf=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22709_watchApi.playerApi,2);W=w.yieldResult;V=function(){JXh(y)};
W.addEventListener("onCollapseMiniplayer",V);y.addOnDisposeCallback(function(){W.removeEventListener("onCollapseMiniplayer",V)});
_.B7(w)})},B$_=function(y){var W=y.JSC$22709_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&W&&y.JSC$22709_watchWhileEnabled&&(y.playerIntersectionObserver=new IntersectionObserver(function(V){y.handleIntersect(V)},{threshold:[shZ]}),y.playerIntersectionObserver.observe(W),y.addOnDisposeCallback(function(){var V;
(V=y.playerIntersectionObserver)==null||V.disconnect()}))},JXh=function(y){var W,V,w;
_.g(function(t){if(t.nextAddress==1){W=_.hs().resolve(_.hn);V=W.data;w=_.C1y(V.response,V.playerResponse);_.s8().miniplayerButtonActivation=!0;if(y.pipEnabled)return _.s8().watchPipActivation=!0,t.jumpTo(2);_.hs().resolve(_.VH).collapse();return t.yield(_.s8().navigationFinishPromise,2)}if(t.nextAddress!=4)return _.s8().currentEndpoint=w.watchEndpoint||null,t.yield(_.hs().resolve(_.VH).activate(y.JSC$22709_watchApi.getElement("PLAYER"),w,V),4);_.s8().userActivation=!0;_.B7(t)})};
_.ss.prototype.handleIntersect=function(y){R8G(this,y[y.length-1])};
var R8G=function(y,W){y.watchWhileJobId&&_.HU.cancelJob(y.watchWhileJobId);y.watchWhileJobId=_.HU.addLowPriorityJob(function(){var V,w;return _.g(function(t){if(t.nextAddress==1)return y.watchWhileJobId=void 0,V=_.hs().resolve(_.VH),W.intersectionRatio>shZ?V.isMiniplayerActive()?t.yield(V.deactivate(),0):t.jumpTo(0):(w=!V.isMiniplayerActive())?t.yield(jh1(y),5):t.jumpTo(4);t.nextAddress!=4&&(w=t.yieldResult);if(!w)return t.jumpTo(0);_.s8().watchWhileActivation=!0;return t.yield($lG(y),0)})},100)},
jh1=function(y){return _.g(function(W){return W.nextAddress==1?_.e("kevlar_watch_while_paused")?W.return(!0):W.yield(y.isPlayerPlaying(),2):W.return(W.yieldResult)})};
_.ss.prototype.isPlayerPlaying=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22709_watchApi.playerApi,2);W=V.yieldResult;return V.return(W.getPlayerStateObject().isPlaying)})};
var $lG=function(y){var W,V;return _.g(function(w){W=_.hs().resolve(_.hn).data;V=_.C1y(W.response,W.playerResponse);_.s8().currentEndpoint=V.watchEndpoint||null;return w.yield(_.hs().resolve(_.VH).activate(y.JSC$22709_watchApi.getElement("PLAYER"),V,W),0)})};_.X7h=function(y){_.Ru.call(this);this.JSC$22713_watchApi=y;nXG(this);HJZ(this)};
_.p(_.X7h,_.Ru);var HJZ=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22713_watchApi.playerApi,2);W=w.yieldResult;V=function(t){var F;t.sessionData&&t.sessionData.itct&&(F=t.sessionData.itct);var I=t.watchEndpoint;if(I&&t.sessionData&&t.sessionData.autonav)I=_.AFy(I,F);else{var P;I=_.hz(t.videoId,(P=t.listId)!=null?P:void 0,F)}F={endpoint:I};t.sessionData&&(F.tempData=t.sessionData);y.JSC$22713_watchApi.dispatchEvent("yt-navigate",F)};
W.addEventListener("onPlayVideo",V);y.addOnDisposeCallback(function(){W.removeEventListener("onPlayVideo",V)});
_.B7(w)})},nXG=function(y){var W=function(V){y.onYtNavigate(V)};
y.JSC$22713_watchApi.getRoot().addEventListener("yt-navigate",W);y.addOnDisposeCallback(function(){y.JSC$22713_watchApi.getRoot().removeEventListener("yt-navigate",W)})};
_.X7h.prototype.onYtNavigate=function(y){var W=this,V,w,t,F,I,P,C,d,L;return _.g(function(z){if(z.nextAddress==1){if(!((V=y.detail)==null?0:(w=V.endpoint)==null?0:w.watchEndpoint))return z.return();t=y.detail.endpoint.watchEndpoint;F=W.JSC$22713_watchApi.getWatchNextResponse();P=_.h((I=F)==null?void 0:I.currentVideoEndpoint,_.Iw);if(!P)return z.return();if(t.videoId!==P.videoId||t.playlistId&&t.playlistId!==P.playlistId||typeof t.startTimeSeconds!=="number")return z.jumpTo(0);y.stopPropagation();
(C=_.e("kevlar_watch_while_v2")&&!_.e("kevlar_watch_while_counterfactual"))&&_.hs().resolve(_.VH).isMiniplayerActive()||W.JSC$22713_watchApi.scrollWatchTo(0,!0);return z.yield(W.JSC$22713_watchApi.playerApi,3)}d=z.yieldResult;L=t.startTimeSeconds;d.seekTo(L,void 0,void 0,void 0,84);d.wakeUpControls();L<d.getDuration()&&d.playVideo();_.B7(z)})};_.GCR=function(y){_.Ru.call(this);var W=this;this.JSC$22716_watchApi=y;var V=this.JSC$22716_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aBh(W)});
this.addOnDisposeCallback(function(){W.JSC$22716_watchApi.unsubscribeByKey(V)});
aBh(this)};
_.p(_.GCR,_.Ru);var aBh=function(y){var W=y.JSC$22716_watchApi.getWatchNextResponse();if(W){var V,w=[].concat(_.GC((V=W==null?void 0:W.engagementPanels)!=null?V:[]));w.unshift.apply(w,_.GC(rXG(W)));y.JSC$22716_watchApi.provideRenderingData("ENGAGEMENT_PANELS",w)}},bJG=function(y){var W,V,w,t=(W=y.engagementPanels)==null?void 0:(V=W.find(function(K){var f;
return((f=K.engagementPanelSectionListRenderer)==null?void 0:f.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(w=V.engagementPanelSectionListRenderer.content)==null?void 0:w.structuredDescriptionContentRenderer,F;
if(_.h(t==null?void 0:(F=t.items)==null?void 0:F.find(function(K){return!!_.h(K,qsP)}),qsP))return!0;
var I,P,C,d;if(y=(((I=y.contents)==null?void 0:(P=I.twoColumnWatchNextResults)==null?void 0:(C=P.results)==null?void 0:(d=C.results)==null?void 0:d.contents)||[]).find(function(K){return K.videoPrimaryInfoRenderer})){var L,z,c;
return(((L=y.videoPrimaryInfoRenderer)==null?void 0:(z=L.videoActions)==null?void 0:(c=z.menuRenderer)==null?void 0:c.flexibleItems)||[]).some(function(K){K=_.h(K,_.mn6);if(!K)return!1;var f,U;K=(f=K.topLevelButton)==null?void 0:(U=f.buttonViewModel)==null?void 0:U.onTap;if(!K)return!1;f=_.tl(K);if(!f)return!1;var l;return((l=_.h(f,_.rx))==null?void 0:l.panelIdentifier)==="PAyouchat"})}return!1},rXG=function(y){var W=[];
if(!_.e("web_watch_inject_placeholder_fantasy_panel_killswitch")){var V,w,t,F=(V=y.engagementPanels)==null?void 0:(w=V.find(function(P){var C;return((C=P.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(t=w.engagementPanelSectionListRenderer.content)==null?void 0:t.structuredDescriptionContentRenderer,I;
_.h(F==null?void 0:(I=F.items)==null?void 0:I.find(function(P){return!!_.h(P,F04)}),F04)&&(V=_.UsL("PAsports_fantasy"),V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(V))}bJG(y)&&(y=_.UsL("PAyouchat"),y.engagementPanelSectionListRenderer.targetId="PAyouchat",y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(y));
return W};_.ZJ5=function(y){_.Ru.call(this);this.JSC$22719_watchApi=y;Qhx(this)};
_.p(_.ZJ5,_.Ru);var Qhx=function(y){y.JSC$22719_watchApi.registerActionHandler("yt-loop-command",function(W){yU3(y,W)});
y.JSC$22719_watchApi.registerActionHandler("yt-repeat-chapter-command",function(W){Wb1(y,W)});
y.addOnDisposeCallback(function(){y.JSC$22719_watchApi.unregisterActionHandler("yt-loop-command");y.JSC$22719_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},yU3=function(y,W){var V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22719_watchApi.playerApi,2);V=w.yieldResult;_.h(W,NYE).loop?(V.setLoopRange({startTimeMs:Number(_.h(W,NYE).startTimeMs),endTimeMs:Number(_.h(W,NYE).endTimeMs),postId:_.h(W,NYE).postId,type:"clips"}),V.playVideo()):V.setLoopRange(null);_.B7(w)})},Wb1=function(y,W){var V,w;
_.g(function(t){if(t.nextAddress==1)return t.yield(y.JSC$22719_watchApi.playerApi,2);V=t.yieldResult;w=_.h(W,Oyd).repeat;w==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(V.setLoopRange({startTimeMs:Number(_.h(W,Oyd).startTimeMs),endTimeMs:Number(_.h(W,Oyd).endTimeMs),type:"repeatChapter"}),V.playVideo()):w==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&V.setLoopRange(null);_.B7(t)})};_.w35=function(y){_.Ru.call(this);this.JSC$22724_watchApi=y;VD1(this)};
_.p(_.w35,_.Ru);var VD1=function(y){y.JSC$22724_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(W){tD1(y,W)});
y.addOnDisposeCallback(function(){y.JSC$22724_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},tD1=function(y,W){var V,w,t,F,I,P,C,d,L,z,c;
_.g(function(K){if(K.nextAddress==1)return K.yield(y.JSC$22724_watchApi.playerApi,2);V=K.yieldResult;if(F=(t=(w=_.h(W,viW))==null?void 0:w.highlightedMenuItemKey)!=null?t:"")(P=(I=V).highlightSettingsMenuItem)==null||P.call(I,F);if(L=(d=(C=_.h(W,viW))==null?void 0:C.openMenuItemKey)!=null?d:"")(c=(z=V).openSettingsMenuItem)==null||c.call(z,L);_.B7(K)})};var Fb3=_.qK("/youtube/app/watch/player_state","playerStateEntity");_.NUh=function(y){_.Ru.call(this);this.JSC$22727_watchApi=y;EYf(this)};
_.p(_.NUh,_.Ru);var ISR=function(y){switch(y){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"}},EYf=function(y){var W,V;
_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22727_watchApi.playerApi,2);W=w.yieldResult;V=function(t){y.onPlayerStateChange(t)};
W.addEventListener("onStateChange",V);y.addOnDisposeCallback(function(){W.removeEventListener("onStateChange",V)});
_.B7(w)})};
_.NUh.prototype.onPlayerStateChange=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(W.JSC$22727_watchApi.playerApi,2);V=t.yieldResult;w=V.getVideoData().video_id;_.vC().dispatch(_.B5("playerStateEntity",Fb3,{key:Fb3,playerState:ISR(y),videoId:w}));_.B7(t)})};_.Pjh=function(y){_.Ru.call(this);var W=this;this.JSC$22731_watchApi=y;this.enableExternalPlaylistPanelInPlayer=_.e("delhi_web_player_use_external_playlist_panel");_.hs().resolve(_.wd).setPlayer(this.JSC$22731_watchApi.getElement("PLAYER"));y=this.JSC$22731_watchApi.subscribeToActiveChanged(function(V){W.onActiveChanged(V)});
this.addOnDisposeCallback(y);gYZ(this)};
_.p(_.Pjh,_.Ru);var gYZ=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return y.enableExternalPlaylistPanelInPlayer?w.yield(y.JSC$22731_watchApi.playerApi,2):w.return();W=w.yieldResult;V=function(){if(y.playlistPanelElement)y.playlistPanelElement.onToggleExpanded()};
W.addEventListener("onToggleExternalPlaylistPanel",V);y.addOnDisposeCallback(function(){W.removeEventListener("onToggleExternalPlaylistPanel",V)});
_.B7(w)})};
_.Pjh.prototype.onActiveChanged=function(y){var W=this,V=_.hs().resolve(_.wd),w=function(){CjR(W)};
y?(this.playlistPanelElement=this.JSC$22731_watchApi.getElement("PLAYLIST_PANEL"))?(V.setPlaylistComponent(this.playlistPanelElement),V.addEventListener("yt-playlist-data-updated",w),this.addOnDisposeCallback(function(){V.removeEventListener("yt-playlist-data-updated",w)}),CjR(this)):_.FU(Error("Co")):(V.removeEventListener("yt-playlist-data-updated",w),V.cancelVideoSkip())};
var CjR=function(y){var W=_.hs().resolve(_.wd);y.JSC$22731_watchApi.provideRenderingData("PLAYLIST",W.getPlaylistData())};_.AM=function(y){_.Ru.call(this);var W=this;this.JSC$22734_watchApi=y;this.onPageScroll=function(){W.scrollThrottle.fire();W.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.d7(this.onThrottledScroll,200,this);_.Uf(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.d7(this.onMastheadThrottledScroll,50,this);_.Uf(this,this.mastheadScrollThrottle);this.animation=new _.ty(function(V){W.JSC$22734_watchApi.getRoot().setScrollTop(V)});
y=_.Y0(_.dP(),_.V7,function(){W.onFullscreenChanged()});
this.addOnDisposeCallback(y);Oz_(this);vYG(this);this.onThrottledScroll()};
_.p(_.AM,_.Ru);
_.AM.prototype.onFullscreenChanged=function(){var y=this,W=this.JSC$22734_watchApi.getRoot();!this.pageScrollElement&&W.pageScrollElement?(this.pageScrollElement=W.pageScrollElement,W.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){y.pageScrollElement&&y.pageScrollElement.removeEventListener("scroll",y.onPageScroll)})):this.pageScrollElement&&!W.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Oz_=function(y){window.addEventListener("scroll",y.onPageScroll);y.addOnDisposeCallback(function(){window.removeEventListener("scroll",y.onPageScroll)})},vYG=function(y){y.JSC$22734_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(W){a:{var V;
if(V=y.JSC$22734_watchApi.getRoot().contains(W)&&!y.animation.isAnimating()){V=W.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var w,t,F=(W==null?void 0:(w=W.parentElement)==null?void 0:(t=w.parentElement)==null?void 0:t.id)==="fixed-secondary";V=!(V&&F)}if(V){if(_.e("kevlar_watch_scroll_manager_absolute_offset_killswitch"))w=W.offsetTop;else for(w=0,t=W;t!==null;)w+=t.offsetTop,w-=t.scrollTop,t=t.offsetParent;t=w;w=t-24;W=t+W.offsetHeight+24;t=y.JSC$22734_watchApi.getRoot().getPageScrollingElement();
V=y.JSC$22734_watchApi.getRoot().getScrollTop();F=V+t.clientHeight-56;if(w<V+56)W=w-56;else if(W>F)W-=t.clientHeight;else break a;y.scrollWatchTo(Math.max(0,W),!0)}}});
y.addOnDisposeCallback(function(){y.JSC$22734_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.AM.prototype.onThrottledScroll=function(){var y=_.dP(),W=y.dispatch,V=this.JSC$22734_watchApi.getRoot().getScrollTop();W.call(y,_.ig({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:V}}))};
_.AM.prototype.onMastheadThrottledScroll=function(){this.JSC$22734_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22734_watchApi.getRoot().getScrollTop())};
_.AM.prototype.scrollWatchTo=function(y,W){(W===void 0?0:W)?this.animation.start(this.JSC$22734_watchApi.getRoot().getScrollTop(),Math.max(0,y),500):this.JSC$22734_watchApi.getRoot().setScrollTop(y)};_.zCx=function(y){_.Ru.call(this);var W=this;this.JSC$22737_watchApi=y;var V=this.JSC$22737_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dGu(W)}),w=this.JSC$22737_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Lbx(W)});
this.addOnDisposeCallback(function(){W.JSC$22737_watchApi.unsubscribeByKey(V);W.JSC$22737_watchApi.unsubscribeByKey(w)});
dGu(this);Lbx(this)};
_.p(_.zCx,_.Ru);
var dGu=function(y){var W,V,w,t=(w=(W=y.JSC$22737_watchApi.getPlayerResponse())==null?void 0:(V=W.videoDetails)==null?void 0:V.title)!=null?w:"";y.JSC$22737_watchApi.dispatchEvent("yt-update-title",t)},Lbx=function(y){var W,V,w,t,F,I,P,C=(P=((I=(W=y.JSC$22737_watchApi.getWatchNextResponse())==null?void 0:(V=W.contents)==null?void 0:(w=V.twoColumnWatchNextResults)==null?void 0:(t=w.results)==null?void 0:(F=t.results)==null?void 0:F.contents)!=null?I:[]).find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?
void 0:P.videoPrimaryInfoRenderer;
(W=_.OT(C==null?void 0:C.title))&&y.JSC$22737_watchApi.dispatchEvent("yt-update-title",W)};_.eCh=function(y){_.Ru.call(this);this.JSC$22740_watchApi=y;cU3(this)};
_.p(_.eCh,_.Ru);var cU3=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$22740_watchApi.playerApi,2);W=w.yieldResult;V=function(){y.onYpcContentRequest()};
W.addEventListener("onYpcContentRequest",V);y.addOnDisposeCallback(function(){W.removeEventListener("onYpcContentRequest",V)});
_.B7(w)})};
_.eCh.prototype.onYpcContentRequest=function(){var y,W,V,w,t,F=(y=this.JSC$22740_watchApi.getWatchNextResponse())==null?void 0:(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.secondaryResults)==null?void 0:(t=w.secondaryResults)==null?void 0:t.offerModule,I,P,C,d;y=(d=(C=(P=(I=F==null?void 0:F.episodeOfferModuleRenderer)!=null?I:F==null?void 0:F.movieOfferModuleRenderer)!=null?P:F==null?void 0:F.unlimitedOfferModuleRenderer)!=null?C:F==null?void 0:F.liveOfferModuleRenderer)!=
null?d:F==null?void 0:F.tvfilmOfferModuleRenderer;var L,z,c;F=(c=F==null?void 0:(L=F.tvfilmOfferModuleRenderer)==null?void 0:(z=L.actionButtons)==null?void 0:z.length)!=null?c:0;z=Math.max(F-1,0);var K,f,U;L=(U=y==null?void 0:(K=y.offerButton)==null?void 0:K.buttonRenderer)!=null?U:y==null?void 0:(f=y.actionButtons)==null?void 0:f[z].buttonRenderer;var l,x;(K=(x=(l=L==null?void 0:L.navigationEndpoint)!=null?l:L==null?void 0:L.serviceEndpoint)!=null?x:L==null?void 0:L.command)&&_.xc.instance.resolveCommand(K)};
}catch(e){_._DumpException(e)}
try{
var Xpj,$Nu,R9e;_.jpm=function(){var y=_.Gc.clone(Jtu),W;return(new _.qN(function(V,w){y.onSuccess=function(t){_.hzj(t)?V(new R9e(t)):w(new _.eR("Request failed, status="+_.TJ(t),"net.badstatus",t))};
y.onError=function(t){w(new _.eR("Unknown request error","net.unknown",t))};
y.onTimeout=function(t){w(new _.eR("Request timed out","net.timeout",t))};
W=_.uC("//googleads.g.doubleclick.net/pagead/id",y)})).thenCatch(function(V){if(V instanceof _.Fu){var w;
(w=W)==null||w.abort()}return _.Gb(V)})};
_.nIP=function(y){a:{var W="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var V=y.raw_embedded_player_response;if(!V&&(y=y.embedded_player_response))try{V=JSON.parse(y)}catch(t){break a}if(V)b:for(var w in $Nu)if($Nu[w]==V.embeddedPlayerMode){W=$Nu[w];break b}}return W==="EMBEDDED_PLAYER_MODE_PFL"};
_.Hi3=function(){if(_.e("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.JRt())return Error("yf");var y=_.yC("PLAYER_VARS",{});if(_.Gc.get(y,"privembed",!1)=="1")return Error("zf");if(_.nIP(y))return Error("Af")};
Xpj=function(y){switch(y){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:_.gW(y,"unknown result type")}};
_.aYt=function(y,W,V){W=_.YRz[W];V={detected:y===0,source:W.jua,detectionResult:Xpj(y),contentCpn:V};_.Hp("biscottiBasedDetection",V);_.Nkf.increment(W.jua,y);W.n4O!==void 0&&_.Z7("CATSTAT",_.sLG(y,W))};
_.hw=function(y,W){var V={};V.key=y;V.value=W;return _.eF4().then(function(w){return new Promise(function(t,F){try{var I=w.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(V);I.onsuccess=function(){t()};
I.onerror=function(){F()}}catch(P){F(P)}})})};
_.rtP=function(){var y=_.pB("user_engagement_experiments_rate_limit_ms"),W=GDj.get("last-user-engagement-exp-trigger-timestamp");return!W||(0,_.cU)()>=W+y?(GDj.set("last-user-engagement-exp-trigger-timestamp",(0,_.cU)()),!0):!1};
_.oM=function(y,W,V,w,t){W=W===void 0?null:W;V=V===void 0?null:V;w=w===void 0?null:w;t=t===void 0?null:t;y={youThereEventType:y};V&&(y.lactThresholdMs=V.lactThresholdMs,y.mediaPosSec=V.promptDelaySec,y.lactServerRequestMs=V.lactServerRequestMs,y.triggerReason=V.triggerReason);t!=null&&(y.renderingMediaPosSec=Math.round(t));W||(W=_.Xn());W&&(y.clientScreenNonce=W);w&&(y.clientPlaybackNonce=w);_.Hp("youThere",y)};
$Nu={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"};R9e=function(y){this.xhr=y};
_.eR=function(y,W,V){_.yj.call(this,y+", errorCode="+W);this.errorCode=W;this.xhr=V;this.name="PromiseAjaxError"};
_.p(_.eR,_.yj);var Jtu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var GDj=new _.Zb("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.BQ3=function(y){return _.ig({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:y})};
}catch(e){_._DumpException(e)}
try{
var R$,S93,lS_,xGG,kcM,sSx,Y9h,X3h,aS1,GcG,AUR,DGh,jSZ,RCh,QS_;_.u0u=function(){var y=window.location.hash;y.charAt(0)==="#"&&(y=y.charAt(1)==="!"?y.substring(2):y.substring(1));return _.gi(y)};
R$=function(y,W,V){var w;return _.g(function(t){if(t.nextAddress==1)return t.yield(W(),2);w=t.yieldResult;V(w,y);_.B7(t)})};
S93=function(){return _.g(function(y){return y.nextAddress==1?y.yield((_.Hi3()!==void 0?_.Gb(Error("Bf")):_.jpm()).then(function(){return 1},function(W){if(W.message==="Biscotti id is disabled")return 3;
_.rQ("Failed fetching bid");return 0}),2):y.return(y.yieldResult)})};
lS_=function(){var y=_.hx("ZXIjZ3VrbmEycm1henJzeXQtaGF2ZW4tZW1iZWQtcGxheQ=="),W=_.hx("bWUjd3I1NHVraG14N3liaWZyYQ==");return document.querySelector(W+DGh+y)?0:1};
xGG=function(){return _.iK4(_.Cc)};
kcM=function(){return _.f9v()===0?0:_.TeG()};
sSx=function(){return _.uXG(_.Hhz([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Y9h=function(){return _.LoL(AUR)};
_.BU3=function(y){_.g(function(W){switch(W.nextAddress){case 1:return W.yield(R$("b.f_",S93,y),2);case 2:return W.yield(R$("j.s_",_.v5a,y),3);case 3:return W.yield(R$("r.s_",_.PfP,y),4);case 4:return W.yield(R$("e.h_",Y9h,y),5);case 5:if(!_.e("ab_det_sc_inj")){W.jumpTo(6);break}return W.yield(R$("s.i_",_.Ko4,y),6);case 6:if(_.e("ab_deg_unex_thr")){W.jumpTo(8);break}return W.yield(R$("a.o_",_.hUa,y),8);case 8:if(_.e("ks_get_o_pp")){W.jumpTo(10);break}return W.yield(R$("g.o_",_.eU4,y),10);case 10:if(_.e("ks_det_gpbl")){W.jumpTo(12);
break}return W.yield(R$("p.i_",_.cCL,y),12);case 12:return W.yield(R$("f.i_",_.Zhd,y),14);case 14:return W.yield(R$("a.b_",_.I9P,y),15);case 15:return W.yield(R$("p.m_",_.VVv,y),16);case 16:if(!_.e("ab_det_el_h_v2")){W.jumpTo(17);break}return W.yield(R$("n.h_",sSx,y),17);case 17:return W.yield(R$("o.p_",xGG,y),19);case 19:return W.yield(R$("e.i_",lS_,y),20);case 20:if(_.e("ab_det_apm"))return W.yield(R$("o.a_",kcM,y),0);W.jumpTo(0)}})};
_.JU1=function(y,W){y={videoId:y};W&&(y.playlistId=W);return y};
_.$Gf=function(){if(_.JRt()){var y=_.yC("PLAYER_VARS",{});if(_.Gc.get(y,"privembed",!1)!="1"&&!_.nIP(y)){var W=function(){RCh=!0;"google_ad_status"in window?_.Z7("DCLKSTAT",1):_.Z7("DCLKSTAT",2)};
try{_.ym(_.V7f,W)}catch(V){}jSZ.push(_.HU.addLowPriorityJob(function(){if(!(RCh||"google_ad_status"in window)){try{_.Dct(_.V7f.toString(),W)}catch(V){}RCh=!0;_.Z7("DCLKSTAT",3)}},5E3))}}};
_.j7=function(y,W,V){V=V===void 0?!1:V;var w=Math.max(y.width,_.uxv);if(_.e("kevlar_watch_feed_big_thumbs")&&y.width>=1550-_.Vv()&&y.height>=800)w-=_.s$E;else if(y.width>=_.kj){var t=_.Ssd+_.D93+_.xj;_.e("kevlar_watch_feed_big_thumbs")&&(t=_.kM4);w-=t}else w-=_.Ssd;w=Math.min(w,_.lJE);t=240;V&&(t=380);W<.5624||(!_.e("kevlar_watch_flexy_disable_small_window_sizing")&&(y.height<630&&y.width>=657||y.height>=630&&y.width>=_.kj&&y.width<1327)?t=360:!_.e("kevlar_watch_flexy_disable_large_window_sizing")&&
y.height>=630&&y.width>=1327&&(t=480));var F=Math.min(w*W,y.height-(56+_.U9C+_.x9u));F=Math.max(F,t);W<1?w=F/W:y.width>=_.kj&&(w=_.j7(y,.5625,V).width);return new _.YY(Math.round(w),Math.round(F))};
_.nYG=function(y){var W=0;y.indexOf("h")!=-1&&(y=y.split("h"),W=y[0]*60*60,y=y[1]);y.indexOf("m")!=-1&&(y=y.split("m"),W=y[0]*60+W,y=y[1]);y.indexOf("s")!=-1?(y=y.split("s"),W=y[0]*1+W):W=y*1+W;return W};
_.Hz_=function(){_.pB("service_worker_push_logged_out_prompt_watches")!=-1&&_.Ta("WatchCount").then(function(y){y>=100||_.hw("WatchCount",y+1)})};
X3h=function(y){var W=y.externalVideoId||"";return W?y.isShortsEligible?"https://www.youtube.com/shorts/"+W:"https://www.youtube.com/watch?v="+W:""};
aS1=function(y){var W=[];y.viewCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:y.viewCount});y.likeCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:y.likeCount});return W};
GcG=function(y){var W,V,w={"@context":"https://schema.org","@type":"VideoObject",description:_.OT(y.description),duration:"PT"+(y.lengthSeconds||"0")+"S",embedUrl:y.embed?y.embed.iframeUrl:"",name:_.OT(y.title),thumbnailUrl:((W=y.thumbnail)==null?void 0:(V=W.thumbnails)==null?void 0:V.map(function(L){return L&&L.url||""}))||[],
uploadDate:y.publishDate};_.e("mweb_video_schema_id_killswitch")||(w["@id"]=X3h(y));W=aS1(y);W.length&&(w.interactionStatistic=W);y.category&&(w.genre=y.category);y.ownerChannelName&&(w.author=y.ownerChannelName);y.liveBroadcastDetails&&(w.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:y.liveBroadcastDetails.startTimestamp,endDate:y.liveBroadcastDetails.endTimestamp}]);if(y.learningResource){y=y.learningResource;w["@type"]=["VideoObject","LearningResource"];var t;if((t=y.learningResourceType)==
null?0:t.length)w.learningResourceType=y.learningResourceType[0];var F;if((F=y.educationalAlignment)==null?0:F.length)w.educationalAlignment={"@type":"AlignmentObject",targetName:y.educationalAlignment[0]};var I;if((I=y.educationalLevel)==null?0:I.length){t=y.educationalLevel[0];var P;if((P=y.educationalLevelCountry)==null?0:P.length)t+=" ("+y.educationalLevelCountry+")";w.educationalLevel=t}var C,d;if(((C=y.learningResourceType)==null?0:C.length)&&y.learningResourceType[0]==="Problem walkthrough"&&
((d=y.problemDescriptions)==null?0:d.length))for(w.hasPart=[],P=_.N(y.problemDescriptions),C=P.next();!C.done;C=P.next())t=C.value,C=t.problemDescriptionText,d=t.startOffset,t=t.url,C&&d!==void 0&&t&&w.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:C,text:C,startOffset:d,url:t})}return w};
_.rU_=function(y){return _.ig({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:y}})};
AUR=[[["cnkjOHV4czA2ODIwa2J0cHJpbWE=",null,null],[null,["ZXIjZzE1cXpzZWhtdXd5eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","cGUjZ2Iwc2ZraGg2eDR6c3R5bGUtc2Nv"],null],["YWQjY2U3azVyZWpjbzZubWFzdGhlYWQt",["ZXIjZjZhN3lhNTFpeG9peXRkLXJpY2gtZ3JpZC1yZW5kZXI="],null],[null,["ZXIjODY0MWtkOGFja2NteXRkLXJpY2gtZ3JpZC1yZW5kZXI=","b3BlIzkyYW16aWJqeHdic3R5bGUtc2M="],null],[null,["ZXIjYmFsb2NzZnM4YnVweXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","b3BlIzEzYWd1djJuaGNkc3R5bGUtc2M="],null],[null,["ZXIjb2c0MmsxM3dtdTZveXRkLWFkLXNsb3QtcmVuZGVy"],
null]],[["YWRzI3M2bDJ2OWhzY3FtcGxheWVyLQ==",null,null]],[["ZXIjcWJ6MG1jd2FyNHl6ZGVzY3JpcHRpb24taW5u",null,null],[null,null,"ZXIjNHJqenM5NHZmODN1eXRkLW1lcmNoLXNoZWxmLXJlbmRlcg=="],["aW4jMmU0bm02bjQybWs3bWE=",["ZXIjb2NkZTl5ZmgwbXJweXRkLW1lcmNoLXNoZWxmLXJlbmRlcg=="],null]]];DGh="#";jSZ=[];RCh=!1;_.bzu=["engagement-panel-ads"];QS_=new _.zf("updateSentimentBarStateCommand");_.Zz5=new _.zf("showSurveyCommand");_.$i=new _.zf("changeMarkersVisibilityCommand");var W1_,VAh,Euu,F1x,tAG,ny;_.yGG=function(y,W){this.playerProvider_=y;this.actionSenderElement_=W;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.yGG.prototype.reset=function(){W1_(this);this.isUserPredictedAbsent_=!1};
W1_=function(y,W){!y.youThereData_||y.showWarningJob_||W!==void 0&&W||(_.oM("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Xn(),y.youThereData_,y.clientPlaybackNonce_),_.Xk());_.HU.cancelJob(y.showWarningJob_);y.showWarningJob_=0;_.HU.cancelJob(y.showBlockingWarningJob_);y.showBlockingWarningJob_=0;_.HU.cancelJob(y.pausePlaybackJob_);y.pausePlaybackJob_=0;y.youThereData_=null;y.clientPlaybackNonce_=void 0;y.inYouThereFlow_=!1};
_.wMh=function(y,W){var V,w,t;_.g(function(F){if(F.nextAddress==1)return y.reset(),F.yield(y.playerProvider_().getPlayerPromise(),2);V=F.yieldResult;y.clientPlaybackNonce_=V.getVideoData().cpn;y.youThereData_=W.configData.youThereData;if(!y.youThereData_)return F.return();if(y.youThereData_.triggerReason&&y.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.rtP())return _.oM("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Xn(),y.youThereData_,y.clientPlaybackNonce_),F.return();w=y.youThereData_.promptDelaySec;
t=V.getCurrentTime();y.showWarningJob_=_.HU.addLowPriorityJob(function(){return _.g(function(I){y.showWarningJob_=0;return I.yield(VAh(y),0)})},Math.max(w-t,0)*1E3);
_.B7(F)})};
VAh=function(y){var W,V,w,t,F,I;return _.g(function(P){if(P.nextAddress==1)return P.yield(y.playerProvider_().getPlayerPromise(),2);if(P.nextAddress!=3)return W=P.yieldResult,V=W.getCurrentTime(),P.yield(tAG(y),3);w=P.yieldResult;if(!w||!y.youThereData_)return P.return();if(_.e("check_user_lact_at_prompt_shown_time_on_web")&&(t=parseInt(y.youThereData_.lactThresholdMs,10),_.es()<t))return _.oM("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Xn(),y.youThereData_,y.clientPlaybackNonce_),P.return();if(y.youThereData_.playbackPauseDelayMs<=
0)return F1x(y),P.return();!_.e("external_fullscreen")&&(F=_.Lg())&&(y.ignoreFullscreenExitUserActivity_=!0,_.HU.addLowPriorityJob(function(){y.ignoreFullscreenExitUserActivity_=!1},2E3),_.z2(F));
y.youThereData_.showToastWarningPrompt&&(ny(y,y.youThereData_.showWarningActions),y.inYouThereFlow_=!0,_.oM("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Xn(),y.youThereData_,y.clientPlaybackNonce_,V),_.oM("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Xn(),y.youThereData_,y.clientPlaybackNonce_,V));I=0;y.youThereData_.blockingPromptDelayMs&&(I=y.youThereData_.blockingPromptDelayMs);y.showBlockingWarningJob_=_.HU.addLowPriorityJob(function(){return _.g(function(C){y.showBlockingWarningJob_=0;return C.yield(Euu(y),
0)})},I);
_.B7(P)})};
Euu=function(y){var W,V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield(tAG(y),2);W=t.yieldResult;if(!y.youThereData_)return t.return();W&&(y.youThereData_.showBlockingWarningAction&&(_.oM("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Xn(),y.youThereData_,y.clientPlaybackNonce_),(V=_.h(y.youThereData_.showBlockingWarningAction,_.mR))?ny(y,V.commands):ny(y,[y.youThereData_.showBlockingWarningAction]),y.inYouThereFlow_=!0),w=y.youThereData_.playbackPauseDelayMs,y.pausePlaybackJob_=
_.HU.addLowPriorityJob(function(){return _.g(function(F){y.pausePlaybackJob_=0;return F.yield(F1x(y),0)})},w));
_.B7(t)})};
F1x=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(tAG(y),2);W=V.yieldResult;if(!y.youThereData_)return V.return();W&&(_.oM("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Xn(),y.youThereData_,y.clientPlaybackNonce_),ny(y,y.youThereData_.showPausedActions),y.inYouThereFlow_=!0);_.B7(V)})};
_.yGG.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var y=_.h(this.youThereData_.userActiveDuringFlowAction,_.mR);y?ny(this,y.commands):ny(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.oM("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Xn(),this.youThereData_,this.clientPlaybackNonce_),_.Xk());W1_(this,!0)}_.NJ_(this,!1)};
_.IaR=function(y){_.oM("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Xn(),y.youThereData_,y.clientPlaybackNonce_)};
tAG=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(y.playerProvider_().getPlayerPromise(),2);W=w.yieldResult;V=W.getPlayerState();return w.return(V==-1||V==1||V==3)})};
_.NJ_=function(y,W){var V;_.g(function(w){if(w.nextAddress==1){if(y.isUserPredictedAbsent_==W)return w.jumpTo(0);y.isUserPredictedAbsent_=W;return w.yield(y.playerProvider_().getPlayerPromise(),3)}V=w.yieldResult;V.setUserEngagement(W);W&&_.oM("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Xn(),y.youThereData_,y.clientPlaybackNonce_);_.B7(w)})};
ny=function(y,W){if(_.e("handle_service_request_actions")||_.e("kevlar_youthere_service_endpoint_actions_killswitch"))_.fg(y.actionSenderElement_,W,y.actionSenderElement_);else{W=_.N(W);for(var V=W.next();!V.done;V=W.next())V=V.value,V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.i5(y.actionSenderElement_,[V]):_.fg(y.actionSenderElement_,[V],y.actionSenderElement_)}};var guG;var Pzh;var HL=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return y};
_.p(HL,_.u);HL.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var y=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(y=this.data.percentIfLiked||0,this.activated=!0):(y=this.data.percentIfIndifferent||0,this.activated=!1);_.i6(this.hostElement).querySelector("#like-bar").style.width=y+"%"}};
HL.prototype.handleUpdateSentimentBarStateCommand=function(y){this.data&&this.set("data.likeStatus",_.h(y,QS_).likeStatus)};
HL.prototype.observeLikeStatus=HL.prototype.observeLikeStatus;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],HL.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],HL.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],HL.prototype,"activated",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],HL.prototype,"systemIcons",void 0);_.J([_.xA("data.likeStatus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HL.prototype,"observeLikeStatus",null);_.J([_.k({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],HL);
_.Y(HL,"ytd-sentiment-bar-renderer",function(){if(Pzh!==void 0)return Pzh;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Pzh=y},{mode:1});var CzZ;var Xx=function(){var y=_.u.apply(this,arguments)||this;y.small=!0;return y};
_.p(Xx,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Xx.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Xx.prototype,"small",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Xx);
_.Y(Xx,"ytd-video-view-count-renderer",function(){if(CzZ!==void 0)return CzZ;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return CzZ=y},{mode:_.qM("kevlar_poly_si_batch_j080")?1:2});var a$=function(){var y=_.u.apply(this,arguments)||this;y.infoFormattedStrings=[];y.wrapVideoActions=_.e("kevar_watch_wrap_video_actions");y.hideSentimentBar=_.e("kevlar_watch_hide_sentiment_bar");y.actionMap={};return y};
_.p(a$,_.u);_.E=a$.prototype;_.E.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.e("web_modern_buttons"),forceIconButton:!_.e("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.E.dataChanged=function(){_.e("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.E.computeInfoFormattedStrings=function(y){if(!y)return[];var W=[];y.dateText&&W.push(y.dateText);y.stationName&&W.push(y.stationName);y.rating&&W.push(y.rating);y.startEndTimeTemplate&&y.startTimeUtcMillis&&y.endTimeUtcMillis&&W.push(_.CO(_.yJC(_.OT(y.startEndTimeTemplate),Number(y.startTimeUtcMillis),Number(y.endTimeUtcMillis))));y.upNextProgramText&&W.push(y.upNextProgramText);return W};
_.E.scheduleInitialUpdatedMetadataRequest=function(){var y,W=(y=this.data)==null?void 0:y.updatedMetadataEndpoint;if(W){var V;y=Number((V=_.h(W,_.whQ))==null?void 0:V.initialDelayMs);V=isNaN(y)?250:y;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),V)}};
_.E.setSentimentBarWidth=function(){var y=this;_.gy(this,function(){var W=_.i6(y.hostElement).querySelector("ytd-menu-renderer");if(W){W=W.topLevelButtons;for(var V=0,w=0;w<W.length;w++){var t=W[w],F=y.get("toggleButtonSupportedData.toggleButtonIdData.id",t.data);if(F==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||F==="TOGGLE_BUTTON_ID_TYPE_LIKE")V+=t.clientWidth+8;else break}V&&(y.sentiment.style.width=V-8+" px")}})};
_.E.fetchUpdatedMetadata=function(y){var W;y&&(W={continuation:y});var V;(y=(V=this.data)==null?void 0:V.updatedMetadataEndpoint)&&_.hs().resolve(_.oA).resolveCommand(y,{form:Object.assign({},W,{element:this.hostElement})})};
_.E.onYtServiceRequestSent=function(y,W){W.endpoint&&_.h(W.endpoint,_.tD)&&(this.hasUpdateSentimentBarStateCommands()&&!_.e("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.h(W.endpoint,_.tD).status),this.setSentimentBarWidth())};
_.E.hasUpdateSentimentBarStateCommands=function(){var y,W,V,w,t=(w=(y=this.data)==null?void 0:(W=y.videoActions)==null?void 0:(V=W.menuRenderer)==null?void 0:V.topLevelButtons)!=null?w:[];y=_.N(t);for(W=y.next();!W.done;W=y.next()){W=W.value;t=w=V=void 0;var F=(V=W.toggleButtonRenderer)==null?void 0:(w=V.toggleButtonSupportedData)==null?void 0:(t=w.toggleButtonIdData)==null?void 0:t.id;if(F==="TOGGLE_BUTTON_ID_TYPE_LIKE"||F==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){w=V=void 0;W=(w=_.h((V=W.toggleButtonRenderer)==
null?void 0:V.defaultServiceEndpoint,_.mR))==null?void 0:w.commands;if(!W)break;W=_.N(W);for(V=W.next();!V.done;V=W.next())if(_.h(V.value,QS_))return!0}}return!1};
_.E.onYtServiceRequestCompleted=function(y,W){var V;(y=(V=W.data)==null?void 0:V.loggingDirectives)&&_.kOa(_.BC(),y);this.get("continuation.timedContinuationData",W.data)&&this.data&&this.data.updatedMetadataEndpoint&&(W=W.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,W.continuation),W.timeoutMs))};
_.E.computeHasDateText=function(y){return!!y&&!!y.dateText};
_.CM.Object.defineProperties(a$.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return!((w=(y=this.data)==null?void 0:(W=y.videoActions)==null?void 0:(V=W.menuRenderer)==null?void 0:V.flexibleItems)==null||!w.length)}}});
a$.prototype.onYtServiceRequestCompleted=a$.prototype.onYtServiceRequestCompleted;a$.prototype.onYtServiceRequestSent=a$.prototype.onYtServiceRequestSent;a$.prototype.dataChanged=a$.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],a$.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.et.YtTaskEmitterBehavior),_.R("design:type",Object)],a$.prototype,"ytTaskEmitterBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],a$.prototype,"data",void 0);_.J([_.q({computed:"computeInfoFormattedStrings(data)"}),_.R("design:type",Array)],a$.prototype,"infoFormattedStrings",void 0);
_.J([_.q({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],a$.prototype,"hasDateText",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a$.prototype,"wrapVideoActions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],a$.prototype,"hideSentimentBar",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],a$.prototype,"flexMenuEnabled",null);
_.J([_.s$("#sentiment"),_.R("design:type",Object)],a$.prototype,"sentiment",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a$.prototype,"dataChanged",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],a$.prototype,"onYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],a$.prototype,"onYtServiceRequestCompleted",null);
_.Y(a$,"ytd-video-primary-info-renderer",function(){if(guG===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);guG=y}y=guG;return y},{mode:1});var Oau;var GM=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return y};
_.p(GM,_.u);_.E=GM.prototype;_.E.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"}}}};
_.E.dataChanged=function(){var y;this.descriptionToggled=!((y=this.data)==null||!y.defaultExpanded);var W;this.collapsed=this.descriptionAlwaysCollapsed||!((W=this.data)==null?0:W.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.ad(110509);this.showLessClientVe=_.ad(110510);y=_.Xn();W=_.Hf();y&&W&&_.EB(y,W,[this.showMoreClientVe,this.showLessClientVe])};
_.E.onYtExpanderMoreTapped=function(){var y,W=(y=this.data)==null?void 0:y.showMoreCommand;W&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(W);(y=_.Xn())&&this.showMoreClientVe&&_.PE(y,this.showMoreClientVe)};
_.E.onYtExpanderLessTapped=function(){var y=_.Xn();y&&this.showLessClientVe&&_.PE(y,this.showLessClientVe);var W;(y=(W=this.data)==null?void 0:W.showLessCommand)&&this.componentBehavior.resolveCommand(y)};
_.E.handleUpdateDateTextAction=function(y){this.data&&this.data.dateText&&this.set("data.dateText",_.h(y,_.iyu).dateText)};
_.E.handleUpdateDescriptionAction=function(y){if(y=_.h(y,_.WKE))y.isEmpty||!y.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.y4(y.description)):this.set("data.description",y.description)};
_.E.onYtChangeEngagementPanelVisibilityAction=function(y){if(_.e("web_structured_description_show_more")||_.e("web_engagement_panel_open_description")){var W,V=(W=_.h(y,_.APJ))==null?void 0:W.targetId,w;y=((w=_.h(y,_.APJ))==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";V==="engagement-panel-structured-description"&&y&&(this.descriptionToggled=!0)}};
_.E.updateCollapsedFromBinding=function(y){this.collapsed=y.detail.value};
_.E.updateDescriptionToggledFromBinding=function(y){this.descriptionToggled=y.detail.value};
_.E.updateCanCollapseFromBinding=function(y){this.canCollapse=y.detail.value};
_.CM.Object.defineProperties(GM.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer;return!!V&&!!V.rows&&V.rows.length>V.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.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}}});
GM.prototype.onYtExpanderLessTapped=GM.prototype.onYtExpanderLessTapped;GM.prototype.onYtExpanderMoreTapped=GM.prototype.onYtExpanderMoreTapped;GM.prototype.dataChanged=GM.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],GM.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],GM.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],GM.prototype,"collapsed",void 0);_.J([_.q(),_.R("design:type",Boolean)],GM.prototype,"descriptionToggled",void 0);
_.J([_.q(),_.R("design:type",Boolean)],GM.prototype,"canCollapse",void 0);_.J([_.q(),_.R("design:type",Object)],GM.prototype,"subscribeButtonData",void 0);_.J([_.q(),_.R("design:type",Number)],GM.prototype,"descriptionCollapsedHeight",void 0);_.J([_.q(),_.R("design:type",Object)],GM.prototype,"structuredDescriptionContentRenderer",void 0);_.J([_.q({value:function(){return _.e("web_watch_description_always_collapsed")}}),
_.R("design:type",Boolean)],GM.prototype,"descriptionAlwaysCollapsed",void 0);_.J([_.s$("#description"),_.R("design:type",HTMLDivElement)],GM.prototype,"description",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GM.prototype,"dataChanged",null);_.J([_.l6("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GM.prototype,"onYtExpanderMoreTapped",null);
_.J([_.l6("yt-expander-less-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GM.prototype,"onYtExpanderLessTapped",null);_.J([_.M("data.metadataRowContainer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"metadataCollapsible",null);_.J([_.M("data","structuredDescriptionContentRenderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"hasInlineStructuredDescription",null);
_.J([_.M("data.attributedDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"hasAttributedDescription",null);_.J([_.M("hasInlineStructuredDescription","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"loadStructuredDescription",null);_.J([_.M("data","structuredDescriptionContentRenderer","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"showInlineStructuredDescription",null);
_.J([_.M("data","hasInlineStructuredDescription","metadataCollapsible"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],GM.prototype,"descriptionAlwaysCollapsible",null);
_.Y(GM,"ytd-video-secondary-info-renderer",function(){if(Oau===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);Oau=y}y=Oau;return y},{mode:2});var vu1;var rY=function(){return _.u.apply(this,arguments)||this};
_.p(rY,_.u);rY.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:_.e("web_modern_buttons"),forceIconButton:!_.e("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
rY.prototype.activate=function(y){y.appendTo(this.player);y.getPlayerPromise().then(function(W){W.setMinimized(!0)});
this.active=!0};
rY.prototype.deactivate=function(){var y=this.player.firstElementChild;y.getPlayerPromise().then(function(W){W.setMinimized(!1)});
this.active=!1;return y};
rY.prototype.onScrollUpTap=function(){var y=_.hs().resolve(_.hn).getCurrentPage();y&&y.setScrollTop(0)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rY.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rY.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],rY.prototype,"active",void 0);
_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.R("design:type",Boolean)],rY.prototype,"darkLaunch",void 0);_.J([_.s$("#player"),_.R("design:type",HTMLDivElement)],rY.prototype,"player",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],rY);
_.Y(rY,"ytd-miniplayer-bar-renderer",function(){if(vu1!==void 0)return vu1;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vu1=y},{mode:1});_.iF(_.eY(function(y){var W=_.I0("script");_.H1(function(){var V;if(V=JSON)V=GcG(y.data()),V=_.d$(JSON.stringify(V).replace(/</g,"\\u003C"));var w=y.data(),t=_.OT(w.title).trim().length===0,F=!w.publishDate||w.publishDate.trim().length===0,I,P,C,d,L=!((I=w.thumbnail)==null?0:(P=I.thumbnails)==null?0:P.length)||!((C=w.thumbnail)==null?0:C.thumbnails[0].url)||((d=w.thumbnail)==null?void 0:d.thumbnails[0].url.trim().length)===0;W.value&&V&&!(t||F||L)&&_.LJ(W.value,V)},"I9AhLd");
return _.O("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.O("script",{el:W,type:"application/ld+json"}))},"Qj"),"player-microformat-renderer",{props:{data:_.p5}});
}catch(e){_._DumpException(e)}
try{
var oY1,mGZ;_.hC_=function(y){return y.watch.watchWindowSize};
oY1=function(y,W,V,w){if(y.isLockupToWatchTransitionEnabled){if(W){var t={};y.viewTransitionCoordinator.registerElement(W,(t["lockup-to-watch"]="player-lockup-to-watch",t["watch-next-appears"]="player-watch-next-loaded",t))}V&&(W={},y.viewTransitionCoordinator.registerElement(V,(W["lockup-to-watch"]="below-lockup-to-watch",W["watch-next-appears"]="below-watch-next-loaded",W)));w&&(V={},y.viewTransitionCoordinator.registerElement(w,(V["watch-next-appears"]="secondary-watch-next-loaded",V)))}};
_.Kbx=function(y){return _.ig({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:y}})};
mGZ=function(y){_.Ru.call(this);var W=this;this.JSC$22744_watchApi=y;y=_.Y0(_.dP(),_.QTv,function(){p31(W)});
this.addOnDisposeCallback(y);y=_.Y0(_.dP(),_.hC_,function(){p31(W)});
this.addOnDisposeCallback(y);izh(this);fSf(this);TUh()};
_.p(mGZ,_.Ru);var izh=function(y){var W=function(w){_.dP().dispatch(_.jmj(w.matches))},V=window.matchMedia("(max-width: "+(999+_.Vv())+"px)");
V.addListener(W);y.addOnDisposeCallback(function(){V.removeListener(W)});
W(V)},fSf=function(y){y.JSC$22744_watchApi.registerActionHandler("yt-window-resized",function(){TUh()});
y.addOnDisposeCallback(function(){y.JSC$22744_watchApi.unregisterActionHandler("yt-window-resized")})},TUh=function(){var y=_.B9();
_.dP().dispatch(_.ig({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:y.width,height:y.height}}}))},p31=function(y){var W;
_.g(function(V){if(V.nextAddress==1)return V.yield(y.JSC$22744_watchApi.playerApi,2);W=V.yieldResult;W.setSize(NaN,NaN);_.B7(V)})};var MDG=function(y){_.Ru.call(this);var W=_.hs().resolve(_.Hu);oY1(W,y.getElement("PLAYER_CONTAINER"),y.getElement("BELOW_THE_PLAYER"),y.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var V=y.getElement("PLAYER_CONTAINER"),w=y.getElement("BELOW_THE_PLAYER"),t=y.getElement("SECONDARY");W.isLockupToWatchTransitionEnabled&&(V&&_.g7(W.viewTransitionCoordinator,V),w&&_.g7(W.viewTransitionCoordinator,w),t&&_.g7(W.viewTransitionCoordinator,t))})};
_.p(MDG,_.Ru);_.Yi=function(y){_.pP.call(this);var W=this;this.rootElement=y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){W.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.p(_.Yi,_.pP);_.E=_.Yi.prototype;_.E.getRoot=function(){return this.rootElement};
_.E.getElement=function(y){return this.rootElement.getElement(y)};
_.E.setPlayerResponse=function(y){this.playerResponse=y;this.publish("PLAYER_RESPONSE_UPDATED",y)};
_.E.getPlayerResponse=function(){return this.playerResponse};
_.E.setWatchNextResponse=function(y){this.watchNextResponse===y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",y))};
_.E.getWatchNextResponse=function(){return this.watchNextResponse};
_.E.registerActionHandler=function(y,W){var V=this;if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.FD(_.tL.getInstance(),(w[y]=W,w),this.getRoot())}else this.actionHandlers.has(y)||(this.actionHandlers.set(y,[]),w={},_.FD(_.tL.getInstance(),(w[y]=function(){var t=_.Ve.apply(0,arguments);return(V.actionHandlers.get(y)||[]).map(function(F){return F.apply(null,_.GC(t))})},w),this.getRoot())),this.actionHandlers.get(y).push(W)};
_.E.unregisterActionHandler=function(y){if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.Eh(_.tL.getInstance(),(W[y]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(y))?(W.pop(),W.length===0&&(W={},_.Eh(_.tL.getInstance(),(W[y]=!0,W),this.getRoot()),this.actionHandlers.delete(y))):_.rQ(new _.Js("Attempted to unregister an action handler which is not registered.",y))};
_.E.addPageDisposeJob=function(y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nd(this.rootElement.pageDisposeJobs,y)};
_.E.removePageDisposeJob=function(y){this.rootElement.pageDisposeJobs&&_.GG(this.rootElement.pageDisposeJobs,y)};
_.E.dispatchEvent=function(y,W){_.h1(this.rootElement,y,W)};
_.E.provideRenderingData=function(y,W){this.rootElement.provideRenderingData(y,W)};
_.E.scrollWatchTo=function(y,W){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(y,W)};
_.E.focusOnPlayer=function(){var y=this.getElement("PLAYER");_.gy(y,function(){if(y&&y.firstElementChild){var W=y.querySelector(".html5-video-player");W&&(_.eU(_.hs().resolve(_.rL)),W.focus())}else _.rQ(Error("Do"))})};
_.E.updateCinematicFullscreenConfig=function(){if(_.e("web_cinematic_manager_redux_killswitch")){var y=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,V;(V=this.watchCinematicManager)==null||_.S7(V,W,y)}};
_.E.subscribeToActiveChanged=function(y,W){W=W===void 0?!0:W;var V=_.Y0(_.dP(),_.Go4,function(w){y(w)});
W&&y(_.Go4(_.dP().getState()));return V};
_.E.isActive=function(){return _.Go4(_.dP().getState())};
_.E.onAttached=function(){var y=_.e("external_fullscreen");_.e("use_unified_flag_accessor")&&(y=_.hs().resolve(_.XdE).retriever.getFlag(_.tH6));(y||_.W4("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var q9f=function(y){return y.getRoot().is==="ytd-watch-flexy"||y.getRoot().is==="ytd-watch-grid"},BL=function(y){return y.getRoot().is==="ytd-watch-fixie"};
_.Yi.prototype.initPersistentModules=function(){if(BL(this)||q9f(this)&&_.e("kevlar_watch_flexy_theater_manager")){var y=new _.afu(this);_.Uf(this,y)}y=new _.Dlh(this);_.Uf(this,y);y=new _.M9(this);_.Uf(this,y);y=new _.ki(this);_.Uf(this,y);y=new _.NUh(this);_.Uf(this,y);y=new _.Us(this);_.Uf(this,y);if(BL(this)||q9f(this)&&_.e("kevlar_watch_flexy_playlist_manager"))y=new _.Pjh(this),_.Uf(this,y);_.e("web_thumbnail_to_watch_transition")&&(y=new MDG(this),_.Uf(this,y))};
_.Yi.prototype.initOrDisposeActiveModules=function(y){y?(this.watchScrollManager=new _.AM(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.X7h(this)),this.activeModules.push(new _.Qv_(this)),BL(this)&&this.activeModules.push(new mGZ(this)),this.activeModules.push(new _.zCx(this)),this.activeModules.push(new _.ss(this)),(BL(this)||_.e("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Vhh(this)),this.activeModules.push(new _.ZJ5(this)),
(BL(this)||_.e("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.eCh(this)),(BL(this)||_.e("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.P7x(this)),_.e("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LX3(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.e("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.w35(this)),_.e("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uy5(this)),
y=_.e("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.e("kevlar_watch_flexy_comments_manager")&&!y&&this.activeModules.push(new _.T$3(this)),_.e("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.q9(this)),this.activeModules.push(new _.Vmu(this)),this.activeModules.push(new _.GCR(this)),_.e("web_enable_timely_actions")&&this.activeModules.push(new _.EXM(this)),_.e("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.qxM(this)),
_.e("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.h1_(this)),_.e("web_fullscreen_components")&&this.activeModules.push(new _.ERh(this)),_.e("web_player_rtr_ctrls")&&this.activeModules.push(new _.uMZ(this))):(_.zk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Yi.prototype.disposeInternal=function(){_.pP.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.CM.Object.defineProperties(_.Yi.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var $Z4,i1,n8E,Hft,a_u,GHe,X$E,ruu;$Z4=function(){var y=_.kF();y.info||(y.info={});return y.info};
i1=function(y){return Math.round(_.BN()+y)};
n8E=function(){var y;if(_.e("csi_use_performance_navigation_timing")){var W,V,w,t=_.YF==null?void 0:(y=_.YF.getEntriesByType)==null?void 0:(W=y.call(_.YF,"navigation"))==null?void 0:(V=W[0])==null?void 0:(w=V.toJSON)==null?void 0:w.call(V);t?(t.requestStart=i1(t.requestStart),t.responseEnd=i1(t.responseEnd),t.redirectStart=i1(t.redirectStart),t.redirectEnd=i1(t.redirectEnd),t.domainLookupEnd=i1(t.domainLookupEnd),t.connectStart=i1(t.connectStart),t.connectEnd=i1(t.connectEnd),t.responseStart=i1(t.responseStart),
t.secureConnectionStart=i1(t.secureConnectionStart),t.domainLookupStart=i1(t.domainLookupStart),t.isPerformanceNavigationTiming=!0,y=t):y=_.YF.timing}else y=_.e("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.YF.timing)):_.YF.timing;return y};
Hft=function(){if(_.YF.getEntriesByType){var y=_.YF.getEntriesByType("paint");if(y=_.By(y,function(V){return V.name==="first-paint"}))return i1(y.startTime)}var W;
_.e("csi_use_performance_navigation_timing")?W=_.YF.getEntriesByType("first-paint")[0].startTime:W=_.YF.timing.msFirstPaint;return W?Math.max(0,W):0};
a_u=function(){var y=window.location.protocol,W=_.YF.getEntriesByType("resource");W=_.fF(W,function(V){return V.name.indexOf(y+"//fonts.gstatic.com/s/")===0});
(W=X$E(W,function(V,w){return w.duration>V.duration?w:V}))&&W.startTime>0&&W.responseEnd>0&&(_.J1("wffs",i1(W.startTime)),_.J1("wffe",i1(W.responseEnd)))};
GHe=function(y,W){y=document.querySelector(y);if(!y)return!1;var V="",w=y.nodeName;w==="SCRIPT"?(V=y.src,V||(V=y.getAttribute("data-timing-href"))&&(V=window.location.protocol+V)):w==="LINK"&&(V=y.href);_.CJ(document)&&y.setAttribute("nonce",_.CJ(document));return V?(y=_.YF.getEntriesByName(V))&&y[0]&&(y=y[0],V=_.BN(),_.J1("rsf_"+W,V+Math.round(y.fetchStart)),_.J1("rse_"+W,V+Math.round(y.responseEnd)),y.transferSize!==void 0&&y.transferSize===0)?!0:!1:!1};
_.fx=function(y,W){_.wi(function(){_.A1("").info.actionType=y;W&&_.Z7("TIMING_AFT_KEYS",W);_.Z7("TIMING_ACTION",y);var V=_.lGz(_.yC("TIMING_INFO",{}));Object.keys(V).length>0&&_.Rw(V);V={isNavigation:!0,actionType:_.h$L(_.yC("TIMING_ACTION"))};var w=_.yC("PREVIOUS_ACTION");w&&(V.previousAction=_.h$L(w));if(w=_.yC("CLIENT_PROTOCOL"))V.httpProtocol=w;if(w=_.yC("CLIENT_TRANSPORT"))V.transportProtocol=w;(w=_.Xn())&&w!=="UNDEFINED_CSN"&&(V.clientScreenNonce=w);w=_.D2y();if(w===1||w===-1)V.isVisible=!0;
w=_.CJv().loadType==="cold";var t=$Z4();w||(w=t.yt_lt==="cold");if(w){V.loadType="cold";w=$Z4();t=n8E();var F=_.BN(),I=_.yC("CSI_START_TIMESTAMP_MILLIS",0);I>0&&!_.e("embeds_web_enable_csi_start_override_killswitch")&&(F=I);F&&(_.J1("srt",t.responseStart),w.prerender!==1&&_.fGL(F));w=Hft();w>0&&_.J1("fpt",w);w=n8E();w.isPerformanceNavigationTiming&&_.Rw({performanceNavigationTiming:!0},void 0);_.J1("nreqs",w.requestStart,void 0);_.J1("nress",w.responseStart,void 0);_.J1("nrese",w.responseEnd,void 0);
w.redirectEnd-w.redirectStart>0&&(_.J1("nrs",w.redirectStart,void 0),_.J1("nre",w.redirectEnd,void 0));w.domainLookupEnd-w.domainLookupStart>0&&(_.J1("ndnss",w.domainLookupStart,void 0),_.J1("ndnse",w.domainLookupEnd,void 0));w.connectEnd-w.connectStart>0&&(_.J1("ntcps",w.connectStart,void 0),_.J1("ntcpe",w.connectEnd,void 0));w.secureConnectionStart>=_.BN()&&w.connectEnd-w.secureConnectionStart>0&&(_.J1("nstcps",w.secureConnectionStart,void 0),_.J1("ntcpe",w.connectEnd,void 0));_.YF&&"getEntriesByType"in
_.YF&&a_u();w=[];if(document.querySelector&&_.YF&&_.YF.getEntriesByName)for(var P in ruu)ruu.hasOwnProperty(P)&&(t=ruu[P],GHe(P,t)&&w.push(t));if(w.length>0)for(V.resourceInfo=[],P=_.N(w),w=P.next();!w.done;w=P.next())V.resourceInfo.push({resourceCache:w.value})}_.Rw(V);V=_.sn();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);P=V.preLoggedGelInfos;V=_.vgz();w=void 0;for(t=0;t<P.length;t++)if(F=P[t],F.loadType){w=F.loadType;break}if(_.CJv().loadType==="cold"&&(V.loadType==="cold"||w==="cold")){w=_.Ojv();
t=_.sn();t=t.gelTicks?t.gelTicks:t.gelTicks={};for(var C in w)if(!(C in t))if(typeof w[C]==="number")_.J1(C,_.jM(C));else if(_.e("log_repeated_ytcsi_ticks"))for(F=_.N(w[C]),I=F.next();!I.done;I=F.next())I=I.value,_.J1(C.slice(1),I);C={};w=!1;P=_.N(P);for(t=P.next();!t.done;t=P.next())w=t.value,_.bu(V,w),_.bu(C,w),w=!0;w&&_.Rw(C)}_.Aqt(!0);C=_.yC("TIMING_ACTION");_.ts("ytglobal.timingready_")&&C&&_.aGt()&&_.s4d()&&_.U2a()})()};
X$E=function(y,W){return Array.prototype.reduce.call(y,W,{duration:0})};
ruu={'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 bft={};bft.YtVisibilityRootBehavior=[_.W7Q.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.La(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.yC("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var y=_.yC("INNERTUBE_CLIENT_NAME")!=="WEB";_.e("kevlar_use_vimio_behavior")&&y&&_.yjK()}}];_.TK={};_.TK.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(y){y.detail.contextProvider=this;y.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
bft.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.v5();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(y){var W=this;this.pageCount+=1;_.e("kevlar_use_vimio_behavior")&&(_.yC("INNERTUBE_CLIENT_NAME")==="WEB"?_.HU.addJob(function(){W.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(y)},
loadPage_:function(y){this.data=y},
ytPageBehaviorActiveObserver_:function(y){var W=this;_.e("kevlar_use_vimio_behavior")&&(y?_.yC("INNERTUBE_CLIENT_NAME")==="WEB"?_.HU.addJob(function(){W.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(y){if(!this.setScrollTopJobId_){var W=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){W.setScrollTopJobId_=0;var V=_.hs().resolve(_.eX(_.rL));V&&_.eU(V);this.getPageScrollingElement().scrollTop=y}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.nl(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var jOm;var px=function(){var y=_.u.apply(this,arguments)||this;y.playerListenerConfig=null;y.actionMap={"yt-show-watch-page-survey":"openSurvey"};return y};
_.p(px,_.u);_.E=px.prototype;_.E.dataChanged=function(){var y=this,W=_.Kn();W&&W.getPlayerPromise().then(function(w){y.maybeRemovePlayerListeners(w)});
var V=this.data&&this.data.survey;V&&((V=(V=V.singleOptionSurveyRenderer||V.checkboxSurveyRenderer||V.multiStageSurveyRenderer)&&V.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(W,V):this.openSurvey())};
_.E.triggerWatchPageSurvey=function(y,W){var V=this,w,t,F,I,P,C,d,L,z;return _.g(function(c){if(c.nextAddress==1)return y?c.yield(y.getPlayerPromise(),2):c.return();V.player=c.yieldResult;if(!V.player)return c.return();w={};t=_.N(W);for(F=t.next();!F.done;F=t.next())I=F.value,P=_.N(V.createEventListenerPair(I)),C=P.next().value,d=P.next().value,L=C,z=d,L&&z&&(w[L]=z,V.ytPlayerListenerBehavior.listenToPlayerEvent(V.player,L,z));V.playerListenerConfig=w;_.B7(c)})};
_.E.createEventListenerPair=function(y){var W=y.playbackEventTrigger;return W?this.handlePlaybackTrigger(W):(y=y.watchTimeTrigger)?this.handleWatchTimeTrigger(y):[void 0,void 0]};
_.E.handleWatchTimeTrigger=function(y){var W=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var V=y.videoWatchFraction,w=y.watchTimeSec;return w&&V?["onVideoProgress",function(){W.player&&W.isWatchTimeConditionMet(W.player,V,w)&&W.showSurvey()}]:[void 0,
void 0]};
_.E.isWatchTimeConditionMet=function(y,W,V){var w=y.getProgressState(),t=w.current-this.lastKnownPlaybackPosition;t<5&&(this.accumulatedMediaTime+=t);this.lastKnownPlaybackPosition=w.current;w=Math.round(this.accumulatedMediaTime/w.duration*1E3)/1E3;return y.getPresentingPlayerType&&y.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>V||w>W)};
_.E.handlePlaybackTrigger=function(y){var W=this;y=y.playbackEvent;if(y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var V="onStateChange";var w=function(t){t===0&&W.showSurvey()}}else y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(V="onVideoProgress",w=function(t){W.player&&W.player.getPresentingPlayerType&&W.player.getPresentingPlayerType()===1&&t&&W.showSurvey()}):y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(V="onAdEnd",w=this.showSurvey);
return[V,w]};
_.E.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.E.openSurvey=function(){var y=this,W=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.BQ3(!!W));_.HU.addJob(function(){y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:W}})},0,0)};
_.E.maybeRemovePlayerListeners=function(y){if(this.playerListenerConfig){for(var W=_.N(Object.keys(this.playerListenerConfig)),V=W.next();!V.done;V=W.next())V=V.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(y,V,this.playerListenerConfig[V]);this.playerListenerConfig=null}};
px.prototype.dataChanged=px.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],px.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],px.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],px.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],px.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],px.prototype,"playerListenerConfig",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],px.prototype,"lastKnownPlaybackPosition",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],px.prototype,"accumulatedMediaTime",void 0);_.J([_.q(),_.R("design:type",Object)],px.prototype,"player",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],px.prototype,"dataChanged",null);_.J([_.k({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],px);
_.Y(px,"ytd-survey-trigger-renderer",function(){if(jOm!==void 0)return jOm;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return jOm=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Dej=new _.zf("promotedSparklesWebRenderer");var lhW=new _.zf("relatedChipCommand");var xeW;var koW;var L1=function(){return _.u.apply(this,arguments)||this};
_.p(L1,_.u);L1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],L1.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],L1);
_.Y(L1,"ytd-compact-tvfilm-entry-point-renderer",function(){if(koW!==void 0)return koW;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return koW=y},{mode:1});var sI4;var AiW;var YkC;var zo=function(){return _.u.apply(this,arguments)||this};
_.p(zo,_.u);zo.prototype.ready=function(){this.initializeDefs()};
zo.prototype.initializeDefs=function(){var y=this.meta.byKey("yt-icons"),W=_.i6(y).querySelector("#star"),V=_.i6(y).querySelector("#star_half");y=_.i6(y).querySelector("#star_border");W&&this.defs.appendChild(W.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0));y&&this.defs.appendChild(y.cloneNode(!0))};
zo.prototype.percentChanged=function(){for(var y=this.rating;y.firstChild;)y.removeChild(y.firstChild);var W=Math.round(this.percent/10);y=Math.floor(W/2);W%=2;var V=5-y-W;this.appendStars("star",y,0);this.appendStars("star_half",W,y);this.appendStars("star_border",V,y+W)};
zo.prototype.appendStars=function(y,W,V){for(var w=0;w<W;w++){var t=(18+this.spacing)*(w+V),F=document.createElementNS("http://www.w3.org/2000/svg","use");_.hw3(F,"#"+y);F.setAttribute("x",""+t);F.setAttribute("y","0");this.rating.appendChild(F)}};
zo.prototype.percentChanged=zo.prototype.percentChanged;_.J([_.s$("#defs"),_.R("design:type",HTMLElement)],zo.prototype,"defs",void 0);_.J([_.s$("#rating"),_.R("design:type",HTMLElement)],zo.prototype,"rating",void 0);_.J([_.q(),_.R("design:type",Number)],zo.prototype,"percent",void 0);_.J([_.q({value:6}),_.R("design:type",Number)],zo.prototype,"spacing",void 0);_.J([_.q({value:_.Jq.create("iron-meta",{type:"iconset"})}),_.R("design:type",_.n8)],zo.prototype,"meta",void 0);
_.J([_.xA("percent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zo.prototype,"percentChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-ratings"})],zo);
_.Y(zo,"ytd-ratings",function(){if(YkC!==void 0)return YkC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YkC=y},{mode:1});var cj=function(){return _.u.apply(this,arguments)||this};
_.p(cj,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cj.prototype,"data",void 0);_.J([_.k({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],cj);
_.Y(cj,"ytd-offer-review-renderer",function(){if(AiW!==void 0)return AiW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return AiW=y},{mode:1});var eO=function(){var y=_.u.apply(this,arguments)||this;y.badges=[{textBadge:{label:_.CO("CC")}}];return y};
_.p(eO,_.u);_.E=eO.prototype;_.E.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.E.dataChanged=function(){var y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(y&&y.commandMetadata&&_.h(y.commandMetadata,_.Xf)&&_.h(y.commandMetadata,_.Xf).fireAutomatically)_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}});else{var W;y&&((W=_.h(y,_.Xf))==null?0:W.fireAutomatically)&&_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})}};
_.E.isEmptyContent=function(y){return this.isStorefrontEntryPointEmpty(y)&&this.shouldHideOfferModule(y)};
_.E.isStorefrontEntryPointEmpty=function(y){return!y||!y.storefrontEntryPoint};
_.E.shouldHideOfferModule=function(y){return!!y.hideVideoDetails};
_.E.isOfferModuleNavigationInactive=function(y){return!y.navigationEndpoint&&!y.serviceEndpoint};
_.E.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
eO.prototype.dataChanged=eO.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],eO.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.R("design:type",Boolean)],eO.prototype,"hidden",void 0);
_.J([_.q(),_.R("design:type",Object)],eO.prototype,"badges",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eO.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],eO);
_.Y(eO,"ytd-movie-offer-module-renderer",function(){if(sI4!==void 0)return sI4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sI4=y},{mode:1});var B2u;var hi=function(){return _.u.apply(this,arguments)||this};
_.p(hi,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],hi.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hi.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],hi);
_.Y(hi,"ytd-media-masthead-renderer",function(){if(B2u!==void 0)return B2u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return B2u=y},{mode:1});var Jid;_.iF(_.gxq,"course-metadata-view-model",{props:{data:_.p5,isOverlay:_.p5}});var oI=function(){var y=_.u.apply(this,arguments)||this;y.isMetadataVisible=!1;y.modernPanels=_.e("kevlar_watch_modern_panels");y.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return y};
_.p(oI,_.u);_.E=oI.prototype;
_.E.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"}}}}};
_.E.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.E.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.E.expanderChanged=function(){var y;if((y=this.data)==null?0:y.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.E.isExpandButtonToggled=function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.expandMetadataButton,_.aJ))==null?void 0:W.isToggled};
_.E.onVisibilityButtonClick=function(){var y;if((y=this.data)==null?0:y.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.E.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
oI.prototype.expanderChanged=oI.prototype.expanderChanged;oI.prototype.dataChanged=oI.prototype.dataChanged;oI.prototype.descriptionChanged=oI.prototype.descriptionChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],oI.prototype,"actionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],oI.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],oI.prototype,"isMetadataVisible",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oI.prototype,"modernPanels",void 0);_.J([_.s$("#expander"),_.R("design:type",Object)],oI.prototype,"expander",void 0);_.J([_.xA("data.description"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oI.prototype,"descriptionChanged",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oI.prototype,"dataChanged",null);_.J([_.xA("isMetadataVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oI.prototype,"expanderChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],oI);
_.Y(oI,"ytd-tvfilm-offer-module-renderer",function(){if(Jid!==void 0)return Jid;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Jid=y},{mode:2});var Rcm;var K1=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return y};
_.p(K1,_.u);K1.prototype.dataChanged=function(){this.hostElement.hidden=!1};
K1.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
K1.prototype.onThumbnailTap=function(y){this.data&&this.data.serviceEndpoint&&(_.hs().resolve(_.oA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),y.stopPropagation())};
K1.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
K1.prototype.dataChanged=K1.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],K1.prototype,"rendererBehaviors",void 0);_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],K1.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],K1.prototype,"data",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],K1.prototype,"dataChanged",null);_.J([_.k({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],K1);
_.Y(K1,"ytd-unlimited-offer-module-renderer",function(){if(Rcm!==void 0)return Rcm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Rcm=y},{mode:1});var jIu;var $eP;var p1=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return y};
_.p(p1,_.u);p1.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
p1.prototype.handleRelatedChipCommand=function(y){y=_.h(y,lhW);var W=y.contents;W?_.Kg(this.hostElement,"yt-item-section-replace-action",[W,y.targetSectionIdentifier]):_.Kg(this.hostElement,"yt-item-section-continuation-action",[y.continuationData,y.targetSectionIdentifier])};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],p1.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],p1.prototype,"data",void 0);_.J([_.Zp({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],p1);
_.Y(p1,"yt-related-chip-cloud-renderer",function(){if($eP===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;jIu===void 0&&(jIu=document.createElement("template"));var w=jIu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$eP=y}y=$eP;return y},{mode:2});var iM=function(){var y=_.u.apply(this,arguments)||this;y.isTwoColumns=!0;y.hideOfferModules=!1;y.watchFeedBigThumbs=_.e("kevlar_watch_feed_big_thumbs");y.watchNextGridHideChips=_.e("kevlar_watch_grid_hide_chips");y.eligibleToSwitchToGrid=_.e("web_watch_eligible_to_switch_to_grid");y.disableShortsShelfHeightOverride=_.e("web_shorts_wn_shelf_ratio_tuning");y.isWatchNextGrid=!1;y.reuseComponents=!_.e("kevlar_watch_grid");y.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return y};
_.p(iM,_.u);_.E=iM.prototype;
_.E.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.e("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}}};
_.E.getItemsPath=function(){return"data.results"};
_.E.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.E.created=function(){this.ytLazyListBehavior.initialCount=1};
_.E.ready=function(){_.qg(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%"})};
_.E.resultsChanged=function(){if(this.data&&this.data.results){for(var y=this.data.results,W=null,V=null,w=0;w<y.length;w++)y[w].relatedChipCloudRenderer?W=y[w].relatedChipCloudRenderer:y[w].itemSectionRenderer&&(V=y[w].itemSectionRenderer);if(W&&V)for(this.set("data.continuations",[]),y=_.h(W.content,_.Un6).chips,W=0;W<y.length;W++)if(w=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",y[W]),w.loadCached||!w.contents){w.contents=V.contents;break}}};
_.E.dataChanged=function(){var y=this,W;if((W=this.data)!=null&&W.results&&this.hasAllowedInstreamAd(this.playerData)){if(W=this.data.results.filter(function(P){return!!P.promotedSparklesWebRenderer})){for(var V=0;V<W.length;V++){var w=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",W[V]);
if(w)for(var t=0;t<w.length;t++)w[t]&&w[t].baseUrl&&_.Fk(w[t].baseUrl)}this.set("data.results",this.data.results.filter(function(P){return!P.promotedSparklesWebRenderer}))}if(W=this.data.results.filter(function(P){return!!y.getSparklesAd(P)})){W=_.N(W);
for(t=W.next();!t.done;t=W.next())if(w=V=void 0,t=(V=this.getSparklesAd(t.value))==null?void 0:(w=V.errorCommand)==null?void 0:w.loggingUrls)for(V=_.N(t),w=V.next();!w.done;w=V.next())(w=w.value)&&w.baseUrl&&_.Fk(w.baseUrl);var F,I;this.set("data.results",(F=this.data)==null?void 0:(I=F.results)==null?void 0:I.filter(function(P){return!P.adSlotRenderer}))}}};
_.E.getSparklesAd=function(y){var W,V;y=_.h((W=y.adSlotRenderer)==null?void 0:(V=W.fulfillmentContent)==null?void 0:V.fulfilledLayout,_.s1m);return _.h(y==null?void 0:y.renderingContent,Dej)};
_.E.hasAllowedInstreamAd=function(y){y=this.get("adPlacements",y)||[];for(var W=0;W<y.length;W++){var V=this.get("adPlacementRenderer.config.adPlacementConfig",y[W]);if(V&&V.suppressDisplayAd)return!0}return!1};
_.E.computeHideUnlimitedOfferModule=function(y,W){return y&&y.offerModule&&W&&y.offerModule.unlimitedOfferModuleRenderer&&y.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(W)?!0:!1};
_.E.hideUnlimitedOfferModuleChanged=function(){var y=_.i6(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");y&&(y.hidden=this.hideUnlimitedOfferModule)};
_.E.updateLockupContainerTypes=function(y){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||W.forEach(function(V){V.containerType=y})}};
_.E.computeHideTvfilmOfferModule=function(y,W){var V,w;return!!((y==null?0:(V=y.offerModule)==null?0:(w=V.tvfilmOfferModuleRenderer)==null?0:w.clientShouldSuppressIfCompanionAdDisplayed)&&W&&this.hasCompanionAds(W))};
_.E.hideTvfilmOfferModuleChanged=function(){var y=_.i6(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");y&&(y.hidden=this.hideTvfilmOfferModule)};
_.E.hasCompanionAds=function(y){y=this.get("adPlacements",y)||[];for(var W=0;W<y.length;W++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",y[W]))return!0;var V=void 0,w=void 0,t=void 0;if(!_.e("web_watch_top_banner_companion_check_killswitch")&&((V=y[W])==null?0:(w=V.adPlacementRenderer)==null?0:(t=w.renderer)==null?0:t.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.E.hasSuppressedResults=function(y){return y==null?!0:y.filter(function(W){return!W.continuationItemRenderer&&!W.compactPromotedVideoRenderer&&!W.promotedSparklesWebRenderer}).length===0};
_.E.computeShowButton=function(y,W){return this.isWatchNextGrid?y:y||this.hasSuppressedResults(W)};
_.E.showButtonChanged=function(){if(this.isWatchNextGrid){var y=_.i6(this.hostElement).querySelector("ytd-rich-grid-renderer");y&&this.showButton!==null&&(y.continuationShowButton=this.showButton)}else{y=_.i6(this.hostElement).querySelector("yt-next-continuation");var W=_.i6(this.hostElement).querySelector("ytd-continuation-item-renderer"),V=_.i6(this.hostElement).querySelector("ytd-item-section-renderer");y&&(y.showButton=this.showButton);W&&(W.showButton=this.showButton);V&&(V.continuationShowButton=
this.showButton)}};
_.E.continuationTap=function(y){var W;if(((W=this.data)==null?void 0:W.continuations)!=null&&y.target.tagName==="TP-YT-PAPER-BUTTON")for(y=this.data.continuations,W=0;W<y.length;W++)y[W].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(y[W].nextContinuationData||{})};
_.E.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("shown-items-changed",this.shownItems))};
_.CM.Object.defineProperties(iM.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.shownItems)==null||!y.some(function(W){return!!W.lockupViewModel||W.compactVideoRenderer}))}}});
iM.prototype.shownItemsChangedForBinding=iM.prototype.shownItemsChangedForBinding;iM.prototype.showButtonChanged=iM.prototype.showButtonChanged;iM.prototype.hideTvfilmOfferModuleChanged=iM.prototype.hideTvfilmOfferModuleChanged;iM.prototype.updateLockupContainerTypes=iM.prototype.updateLockupContainerTypes;iM.prototype.hideUnlimitedOfferModuleChanged=iM.prototype.hideUnlimitedOfferModuleChanged;iM.prototype.dataChanged=iM.prototype.dataChanged;iM.prototype.resultsChanged=iM.prototype.resultsChanged;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],iM.prototype,"ytLazyListBehavior",void 0);_.J([_.m(_.Pv.YtNextContinuationBehavior),_.R("design:type",Object)],iM.prototype,"ytNextContinuationBehavior",void 0);
_.J([_.m(_.gk),_.R("design:type",Object)],iM.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],iM.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iM.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],iM.prototype,"playerData",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],iM.prototype,"autoFill",void 0);_.J([_.q({value:60}),_.R("design:type",Number)],iM.prototype,"targetFramerate",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"isTwoColumns",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"hideOfferModules",void 0);_.J([_.q(),_.R("design:type",Object)],iM.prototype,"shownItems",void 0);_.J([_.q({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.R("design:type",Boolean)],iM.prototype,"hideUnlimitedOfferModule",void 0);
_.J([_.q({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.R("design:type",Boolean)],iM.prototype,"hideTvfilmOfferModule",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"watchFeedBigThumbs",void 0);_.J([_.q(),_.R("design:type",Object)],iM.prototype,"watchNextGridHideChips",void 0);_.J([_.q(),_.R("design:type",Object)],iM.prototype,"eligibleToSwitchToGrid",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"disableShortsShelfHeightOverride",void 0);_.J([_.q({selector:_.wp,reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"isGridViewEnabled",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],iM.prototype,"showMoreButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],iM.prototype,"isWatchNextGrid",void 0);
_.J([_.q({computed:"computeShowButton(showMoreButton, data.results)"}),_.R("design:type",Boolean)],iM.prototype,"showButton",void 0);_.J([_.Jc("data.results.*"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"resultsChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"dataChanged",null);
_.J([_.xA("hideUnlimitedOfferModule"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"hideUnlimitedOfferModuleChanged",null);_.J([_.M("isGridViewEnabled","containsLockups","data"),_.q({reflectToAttribute:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],iM.prototype,"lockupContainerType",null);
_.J([_.xA("lockupContainerType","data"),_.R("design:type",Function),_.R("design:paramtypes",[Number]),_.R("design:returntype")],iM.prototype,"updateLockupContainerTypes",null);_.J([_.xA("hideTvfilmOfferModule"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"hideTvfilmOfferModuleChanged",null);_.J([_.xA("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"showButtonChanged",null);
_.J([_.xA("shownItems"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iM.prototype,"shownItemsChangedForBinding",null);_.J([_.M("shownItems"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],iM.prototype,"containsLockups",null);
_.Y(iM,"ytd-watch-next-secondary-results-renderer",function(){if(xeW===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);xeW=y}y=xeW;return y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.dRG={};
_.dRG.YtdWatchBehavior=[_.X.YtRendererBehavior,_.Cr.YtPlayerListenerBehavior,_.ph.YtRendererstamperBehavior,_.ik.YtActionHandlerBehavior,_.TK.YtPageBehavior,_.AZ.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.W4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.e("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.W4("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},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 _.e("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.e("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 _.pB("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.pB("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.e("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.e("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.e("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var y={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:_.FC(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FC(["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"||_.e("swa_prov_panels_ks")?y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return y},
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 y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){y.showMetadataPlaceholder_()},
function(){_.e("web_watch_dont_clear_comments")||y.clearComments_()},
function(){y.clearPlayerAds_()},
function(){y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.e("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.e("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.yGG(function(){return _.oJ(y)},this.hostElement);
this.pageDisposeJobs.push(function(){y.youThereManager_.reset()});
_.e("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){y.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Mf;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;_.e("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));_.e("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Dp(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(y){y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:y}),y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(y){_.e("kevlar_watch_flexy_theater_manager")&&(this.theater=y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(y){!_.e("kevlar_watch_while_v2")&&!_.e("web_watch_pip")||y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(y){this.active!==void 0&&(this.fullscreen=y,_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(y){this.active!==void 0&&(_.h1(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(y){this.initCsi_();this.updatePageData_(y)},
updatePageData_:function(y){var W=this;if(y)if(this.data===y){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=y;this.playlist&&_.HN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.aw("nw");this.loading=!1;_.Jt(_.HU,function(){W.initDclkstatus_();var w,t=((w=W.player)==null?void 0:w.getVideoData().cpn)||"";_.BU3(function(F,I){_.aYt(F,I,t)})})},
onPageLoadWithSameData_:function(){_.e("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 y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!y);this.set("loadingData.playlistLoading",y&&y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),y=this.watchNextSkeletonEl_.firstElementChild;y;)y.classList.remove("hidden"),y=y.nextElementSibling;if(_.e("kevlar_watch_frame0_loading_state")){var W,V,w;y=(W=this.loadingData)==null?void 0:(V=W.endpoint)==null?void 0:(w=V.watchEndpoint)==null?void 0:w.videoId;var t;y&&(t="https://i.ytimg.com/vi/"+y+"/frame0.jpg");_.i6(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var y=_.i6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&y&&(y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,V;(V=(W=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(W);var w,t;(t=(w=this.watchMetadata).resize)==null||t.call(w)}_.e("kevlar_watch_frame0_loading_state")&&(_.i6(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(y){var W=_.i6(this.hostElement).querySelector(y);W?_.cN(W,!1):_.rQ(new _.Js("Overscroll monitor not found for component: ",y))},
removeSplitScrollMouseTrap:function(y){var W=_.i6(this.hostElement).querySelector(y);W?_.eM(W):_.rQ(new _.Js("Disposal component for  overscroll monitoring not found: ",y))},
onLoadingChanged_:function(y){y?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(y){var W=this;y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.HU.addLowPriorityJob(function(){W.onWindowResized_(_.B9(!0))})},
updateTheaterModeState_:function(y){if(!_.e("kevlar_watch_flexy_theater_manager")){y=y||this.fullWindowMode_;if(this.theater!==void 0||y)this.theater=y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();y&&_.Z1u()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.e("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var y=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.e("external_fullscreen")&&this.fullscreen&&(y=!0);_.e("web_watch_error_screen_fix")&&(y=this.fullBleedPlayer);y=y?_.i6(this.hostElement).querySelector("#player-full-bleed-container"):_.i6(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),V=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip");W.parentElement!==y&&(V&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.oJ(this).appendTo(y,W),_.e("web_watch_error_screen_fix")||y.appendChild(_.i6(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var y=_.i6(this.hostElement).querySelector("#error-screen"),W=this.fullBleedPlayer?_.i6(this.hostElement).querySelector("#player-full-bleed-container"):_.i6(this.hostElement).querySelector("#player");y.parentElement!==W&&W.appendChild(y)},
deactivateMiniplayerAndResetPlayer:function(){var y=this;return _.g(function(W){if(W.nextAddress==1)return W.yield(_.hs().resolve(_.VH).deactivate(),2);y.updatePlayerLocation();_.B7(W)})},
updateCinematicsLocation:function(){var y=this.getElement("CINEMATICS");if(y){var W=this.getCinematicsLocationContainer();y.parentElement!==W&&W.appendChild(y);var V;(V=this.watchController)==null||V.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.i6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.i6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(y,W,V){var w=document.documentElement.hasAttribute("dark"),t=w&&_.e("web_cinematic_theater_mode"),F=w&&_.e("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return V||y&&t||W&&F||(W||y)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var y=this,W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.e("kevlar_watch_flexy_comments_manager")||this.initComments_();_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.hs().resolve(_.wd).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,_.e("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.HU.addLowPriorityJob(function(){_.Kg(y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.e("web_watch_start_chat_in_theater_mode")){var V,w,t;if((V=this.data)==null?0:(w=V.contents)==null?0:(t=w.twoColumnWatchNextResults)==null?0:t.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var F,I;((F=this.data)==null?0:(I=F.contents)==null?0:I.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(y){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);y&&y.playabilityStatus&&(W=this.isVideoPlayable_(y.playabilityStatus,this.getPlayerOverlays_(this.data)),y=this.isLiveStreamOffline_(y.playabilityStatus),W&&!y||_.gy(this,function(){_.aw("pbu")}));
this.setPlayerAds_();_.Kg(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(y,W){if((_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"))&&this.playerData&&W)return this.playerData.videoDetails},
watchPageActiveChanged_:function(y){_.dP().dispatch(_.Kbx(this.active));y?this.activate_():this.deactivate_()},
attached:function(){var y=this;this.watchController=new _.Yi(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);_.e("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.oJ(this);_.e("kevlar_disable_prepare_player")||
W.preparePlayer();_.e("kevlar_watch_flexy_playlist_manager")||_.hs().resolve(_.wd).setPlayer(W);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.Vv()+"px"};this.is==="ytd-watch-grid"&&(W["--ytd-watch-flexy-sidebar-width"]=_.D93+"px",W["--ytd-watch-grid-horizontal-page-margins"]=_.xj+"px",W["--ytd-watch-grid-columns-top-margins"]=_.U9C+"px",W["--ytd-watch-grid-min-player-height-medium"]="360px");!_.pB("kv_pl_mx_sz_ks")&&
_.pB("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lJE+"px");_.pB("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.x9u+"px");this.safeUpdateStyles(W);_.e("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.gs(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return y.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.i6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var y=_.Vv(),W=_.kj+y,V=W;this.fixedPanels&&(W+=_.D93);var w=657+y;y=1327+y;_.i6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.i6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(y+"px)");_.i6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(y+"px)");
_.i6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var y=_.i6(this.hostElement).querySelector("#miniplayer-bar").firstChild,W=this.squeezeback&&!_.e("web_watch_squeezeback_player_size_killswitch");return y&&y.active||this.theater||_.e("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||W||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.YY(NaN,NaN):_.j7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.j7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.La(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var y=this;this.onWindowResized_(_.B9());_.e("browse_skeleton_removal_on_watch_killswitch")||_.W4("IS_SHELL_LOAD")&&_.RaC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.oJ(this);W.addEventListener("yt-player-updated",_.Dp(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(V){y.playerApiReady_(V)});
_.e("kevlar_watch_flexy_playlist_manager")||(W=_.hs().resolve(_.wd),_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.Dp(this,this.onYtNavigate_)),W.setPlaylistComponent(_.i6(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.Dp(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.HU.addLowPriorityJob(function(){_.h1(y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oJ(this).removeEventListener("yt-player-updated",_.Dp(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.e("kevlar_watch_flexy_playlist_manager")){var y=_.hs().resolve(_.wd);_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&y.removeEventListener("yt-navigate",_.Dp(this,this.onYtNavigate_));
y.cancelVideoSkip();y.removeEventListener("yt-playlist-data-updated",_.Dp(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.h1(this.hostElement,"yt-autonav-pause-player",!1);y=_.Lg();_.e("kevlar_exit_fullscreen_leaving_watch")&&y&&_.z2(y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(y){this.player&&this.player.updateVideoData({rvs:y.rvs})},
getPageContents:function(y){return y&&y.contents&&y.contents.twoColumnWatchNextResults&&y.contents.twoColumnWatchNextResults.results&&y.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(y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y)},
onRetrieveLocation_:function(y,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);y.stopPropagation()},
onSubscriptionChanged_:function(y,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fx("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.i6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.i6(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(y){this.player=y;this.setPlayerState(y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.e("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.e("kevlar_unified_player")||_.e("kevlar_player_new_bootstrap_adoption"))&&_.ID()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(y,W){W=W===void 0?!0:W;_.Lg()&&_.e("external_fullscreen")&&_.z2(document.documentElement);this.theaterRequested_=y;W&&_.s1("wide",y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ow(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.h1(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(y){_.bb(y,typeof this.player),this.player&&_.bb(y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var y;((y=this.player)==null?0:y.isFullscreen())?this.player.toggleFullscreen():_.ow(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(y,W){return this.loading?W:!!Object.keys(y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(y){if(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.youThereRenderer&&_.wMh(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(y){return y||{}},
userEngagementConfigDataChanged_:function(y){if(y)if(y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.es()<y.lowEngagementThresholdMs||_.NJ_(W,!0)}else y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ow(this.hostElement,"yt-autonav-pause-user-engagement",[y])},
isPlayerUnavailable_:function(y,W,V){return!!y&&!this.isVideoPlayable_(y,V)&&!W},
getPlayerOverlays_:function(y){return(y==null?void 0:y.playerOverlays)||null},
isVideoPlayable_:function(y,W){if(!y)return!1;var V=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",y)||this.get("errorScreen.ypcTrailerRenderer",y);y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",y);var t;W=W==null?void 0:(t=W.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!V||!!w||!!y||!!W},
hasWatchNextResponseErrorRenderer:function(y){var W=this.getPageContents(y),V,w,t,F,I;return!(y==null?0:(V=y.contents)==null?0:(w=V.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((t=W[0])==null?0:(F=t.itemSectionRenderer)==null?0:(I=F.contents[0])==null?0:I.backgroundPromoRenderer)},
isLiveStreamOffline_:function(y){return y?y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(y,W,V){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.e("web_no_skip_video_on_verification_checks")?(y==null?void 0:y.status)&&t.includes(y.status):y&&y.status==="AGE_CHECK_REQUIRED";var F=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",y);F==void 0&&(F=!0);!V||this.isVideoPlayable_(y,this.getPlayerOverlays_(W))||
w||t||!F||_.hs().resolve(_.wd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Hz_()},
onPlayerFeedbackStartRequest_:function(y){_.ow(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:y}])},
onPlayerFeedbackArticleRequest_:function(y){_.ow(this.hostElement,"yt-help-dialog-requested",[y])},
onPlayerYpcContentRequest_:function(){var y,W,V,w,t,F,I,P,C=((y=this.data)==null?NaN:(W=y.contents)==null?NaN:(V=W.twoColumnWatchNextResults)==null?NaN:(w=V.secondaryResults)==null?NaN:(t=w.secondaryResults)==null?NaN:(F=t.offerModule)==null?NaN:(I=F.tvfilmOfferModuleRenderer)==null?NaN:(P=I.actionButtons)==null?NaN:P.length)-1;y=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];W=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=W.next();!V.done;V=W.next())for(V=V.value,w=_.N(y),t=w.next();!t.done;t=w.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.kc(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(y){_.h1(this.hostElement,"yt-autonav-pause-player",y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(y){y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.h1(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(y)},
setPlayerState:function(y){_.dP().dispatch(_.vrf(y))},
onPlayerSubscribe_:function(y){_.ow(this.hostElement,"yt-player-subscribe",[y])},
onPlayerUnsubscribe_:function(y){_.ow(this.hostElement,"yt-player-unsubscribe",[y])},
onPlayerAdYtShowToast_:function(y){_.ow(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(y){if(y)return y},
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(y){return!_.e("web_watch_move_summary_to_sd")&&!!y},
computeWatchMetadataRefresh:function(){return _.e("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.e("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var y,W,V,w;this.watchNextSecondaryResults=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.secondaryResults)==null?void 0:w.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.e("swatcheroo_pbs_load_grid")&&!_.e("swatcheroo_provide_all_data_on_scheduled_job")){_.HU.cancelJob(this.setRichGridJobId_);var y,W,V,w,t,F,I;this.setRichGridRendererData((y=this.data)==null?void 0:(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.secondaryResults)==null?void 0:(t=w.secondaryResults)==null?void 0:(F=t.results)==null?void 0:(I=F[0])==null?
void 0:I.richGridRenderer)}},
setRichGridRendererData:function(y){this.richGridRendererData=y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var y,W=(y=this.data)==null?void 0:y.engagementPanels;if(W==null?0:W.length){y=null;W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;if(((w=V.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){y=V;break}}var t,F,I;y=(t=y)==null?void 0:(F=t.engagementPanelSectionListRenderer)==null?void 0:(I=F.content)==null?void 0:I.structuredDescriptionContentRenderer;if(y==null?0:y.items){t=
[];F=_.N(y.items);for(I=F.next();!I.done;I=F.next()){I=I.value;if(!_.e("sd_horizontal_list_show_nav_killswitch")){var P=w=V=W=y=void 0,C=void 0,d=(y=I.horizontalCardListRenderer)==null?void 0:(W=y.header)==null?void 0:(V=W.richListHeaderRenderer)==null?void 0:(w=V.navigationButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:(C=P.command)==null?void 0:C.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(L){return!_.h(L,_.GsP)}))}(!I.expandableVideoDescriptionBodyRenderer&&
!I.videoDescriptionHeaderRenderer||_.e("web_delhi_colorful_sd"))&&t.push(I)}return{items:t}}}},
constructWarning_:function(y){return{text:_.CO(y),type:"WARNING"}},
isPlaShelfEnabled_:function(y){if((this.get("adPlacements",y)||[]).length)return!0;y=this.get("playerAds",y)||[];return!(!y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var y=this;_.h1(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.e("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.oJ(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.h1(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var y=this;this.commentsReady=!1;_.HU.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Jt(_.HU,function(){y.setComments_()},1E3)},
setComments_:function(){if(!_.e("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.aw("cmi");_.HU.cancelJob(this.setCommentsJobId_);var y=this.getPageContents(this.data);if(y&&y.length){y=_.N(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.h1(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.aw("cmc")},
doRemoveComments_:function(){this.comments={};_.e("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.HU.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.HU.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(y,W){var V=_.h(W.endpoint,_.Iw);V&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==W.videoId||V.playlistId&&V.playlistId!==W.playlistId||V.index!==void 0&&V.index!==W.index||typeof V.startTimeSeconds!=="number"||(y.stopPropagation(),this.setScrollTop(0),_.oJ(this).getPlayerPromise().then(function(w){var t=V.startTimeSeconds;w.seekTo(t);w.wakeUpControls();t<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var y=_.u0u();"t"in y&&(y=_.nYG(y.t),this.player.seekTo(y,!0))},
updateTitleFromWatchNext:function(y){y=this.getPageContents(y);var W,V;(y=_.OT(y==null?void 0:(W=y[0])==null?void 0:(V=W.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.h1(this.hostElement,"yt-update-title",y)},
updateTitle_:function(y){y=this.get("videoDetails.title",y)||"";_.h1(this.hostElement,"yt-update-title",y)},
syncWithRemoteVideo_:function(y,W,V){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===V&&(V=w.list,_.e("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),w.video_id!==y||V!=W)){var t;_.e("kevlar_player_watch_endpoint_navigation")?t=_.AFy(_.JU1(y,W)):t=this.buildWatchEndpoint_(y,W);_.h1(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(y,W,V){return _.hz(y,W,V)},
initDclkstatus_:function(){_.$Gf()},
attachWatchPageSkeleton_:function(){var y=document.querySelector("#watch-page-skeleton");if(y){var W=y.querySelector("#primary-info"),V=y.querySelector("#secondary-info"),w=y.querySelector("#related");W&&_.i6(this.hostElement).querySelector("#info-skeleton").appendChild(W);V&&_.i6(this.hostElement).querySelector("#meta-skeleton").appendChild(V);w&&(_.i6(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.ku(y)}},
handlePlayerUpdated_:function(){_.oJ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(y,W){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof W!=="undefined"){var V=this.watchNextSkeletonEl_.children,w=y&&y.indexSplices.length?y.indexSplices[0].index:0;y=Math.min(this.watchNextShownItems.length,V.length);W||(w=0,y=V.length);for(W=w;W<y;W++)V[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(y){_.e("external_fullscreen")||_.ow(this.hostElement,"yt-player-fullscreen",[y.fullscreen])},
onFullscreenChange_:function(y){this.fullscreen=y;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.oJ(this);W.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.Lg())});
this.updateFullBleedElementLocations();y&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(y,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(y){return y},
computeShouldShowMerchShelf:function(y,W){return W&&!!y},
computeResponseHasComments:function(y){var W,V,w,t,F;return!!(y==null?0:(W=y.contents)==null?0:(V=W.twoColumnWatchNextResults)==null?0:(w=V.results)==null?0:(t=w.results)==null?0:(F=t.contents)==null?0:F.some(function(I){var P;return(I==null?void 0:(P=I.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(y,W,V,w){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&w?!1:!!y&&!!Object.keys(y).length&&!W},
identity:_.Jv,onWindowResized_:function(y){this.windowSize_=y;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(y){var W=this;y&&y.type!=="dataloaded"&&y.type!=="dataupdated"||_.oJ(this).getPlayerPromise().then(function(V){var w=V.getPlayerState();w!==5&&w!==0&&(V=1/V.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==V&&(W.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(y){var W=this,V=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"),w=function(){if(W.watchMetadata){var t,F;(F=(t=W.watchMetadata).resize)==null||F.call(t)}_.oJ(W).getPlayerPromise().then(function(I){if(_.e("kevlar_set_internal_player_size")){if(!V||!W.isMiniplayerActive()){var P=W.calculateCurrentPlayerSize_();I.setInternalSize(P.width,P.height)}}else I.setSize(NaN,NaN);_.e("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
y?w():_.b8(_.HU,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(y){this.set("data.survey",y.detail)},
onYtShowSurveyCommand_:function(y){this.set("data.survey",_.h(y,_.Zz5).survey)},
onDownloadedVideoDeleted:function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1){if(!W.active||(V=W.playerData)==null||!V.offlineState||W.videoId!==y)return t.return();(w=W.player)==null||w.stopVideo();_.s8().navigatingAwayFromWatchDeletedVideo=!0;_.kc(_.NGz,W.hostElement);return t.yield(_.s8().navigationFinishPromise,2)}_.s8().navigatingAwayFromWatchDeletedVideo=!1;_.B7(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var y;this.theater?y=_.QW(.5625*this.windowSize_.width,480,this.windowSize_.height-185):y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==y&&(this.watchWhileScrollThreshold_=y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var y=_.i6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&y){var W=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!y.active&&W&&V>=this.watchWhileScrollThreshold_?(y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):y.active&&(!W||V<this.watchWhileScrollThreshold_&&!_.Lg())&&(y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var y=_.i6(this.hostElement).querySelector("#secondary-inner");if(y){var W=_.i6(this.hostElement).querySelector("#below"),V=_.i6(this.hostElement).querySelector("#secondary"),w=_.i6(this.hostElement).querySelector("#comments");w&&V&&W&&(this.defaultTwoColumnLayout?(y.appendChild(w),V.appendChild(y)):(W.appendChild(w),_.Dh(W,y)))}}},
isTwoColumnsChanged_:function(y,W){if(y!==!0||W!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(y=_.i6(this.hostElement).querySelector("#secondary-inner"))){W=_.i6(this.hostElement).querySelector("#below");var V=_.i6(this.hostElement).querySelector("#secondary"),w=_.i6(this.hostElement).querySelector("#comments");w&&V&&W&&(this.isTwoColumns_?(y.appendChild(w),V.appendChild(y)):(W.appendChild(w),
_.Dh(W,y)))}}else{y=!_.e("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);W=_.i6(this.hostElement).querySelector("#panels");var t=_.i6(this.hostElement).querySelector("#alerts");V=_.i6(this.hostElement).querySelector("#playlist");w=_.i6(this.hostElement).querySelector("#related");var F=_.i6(this.hostElement).querySelector("#donation-shelf"),I=_.i6(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.i6(this.hostElement).querySelector("#secondary-inner"),
y&&(t.appendChild(W),t.appendChild(V)),t.appendChild(F),t.appendChild(w)):(y&&(_.r4(W,t),_.r4(V,t)),_.r4(F,t),I&&_.r4(w,I));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.e("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.e("web_watch_enable_fs_squeezeback_panels")&&_.e("web_watch_theater_chat")){var y=_.i6(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.e("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?(W=_.i6(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.fixedPanels=!0):(this.fixedPanels=
!1,W=_.i6(this.hostElement).querySelector("#playlist"),y&&W?_.bQ(y,W):_.rQ(new _.Js("Missing element when updating chat location",{"chatContainer defined":!!y,"playlist defined":!!W})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(y,W){return _.e("sw_metadata_vis_toggle_ks")?!0:!!y||!!W},
computeForceDarkPanelTheme:function(y){return _.e("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&y:!1},
safeUpdateStyles:function(y){try{_.qg(this.hostElement,y)}catch(W){_.rQ(W)}},
videoHeightToWidthRatioChanged_:function(y,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(y){this.videoHeightToWidthRatio_=1/y},
computeIsVerticalVideo_:function(y){return y>=1},
computeIsFourThreeToSixteenNineVideo_:function(y){return y<=.7501&&y>=.5624},
computeIsExtraWideVideo_:function(y){return y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oJ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oJ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.IaR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(y){var W=_.SL(y)||0;_.ui(y,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var y=_.SL("yt-fullerscreen-edu-button-click-count")||0,W=_.SL("yt-fullerscreen-edu-button-shown-count")||0,V=_.pB("external_fullscreen_button_shown_threshold"),w=y>=_.pB("external_fullscreen_button_click_threshold")||W>=V;_.oJ(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(y,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.hs().resolve(_.wd).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.HU.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.HU.addLowPriorityJob(function(){y.fullHeightPanelPositionUpdateJobId=0;var W=_.i6(y.hostElement).querySelector("#secondary"),V=_.i6(y.hostElement).querySelector("#fixed-secondary");W=W.getBoundingClientRect();var w=W.width;y.swatcherooSqueezeback&&
(w+=_.xj);if(y.swatcherooSqueezeback){var t=_.i6(y.hostElement).querySelector("#squeezeback-constraining-container");t.style.width=w+"px";t.style.flex="0 0 "+w+"px"}V.style.width=w+"px";V.style.left=W.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.HU.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.HU.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;var W;!y.isTwoColumns_||y.theater||y.fullscreen?W=460:W=y.calculateNormalPlayerSize_().height;var V=W+"px";_.e("live_chat_taller_height")&&!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.e("live_chat_medium_height")&&!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.e("live_chat_scaled_height")&&!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.fg(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(y){var W=_.i6(this.hostElement).querySelector("#engagement-panel-scrim");y?W.addEventListener("tap",_.Dp(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.Dp(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(y){if(this.hostElement.contains(y)&&!this.scrollToAnimation_.isAnimating()){var W=y.offsetTop-24;y=y.offsetTop+y.offsetHeight+24;var V=this.getPageScrollingElement(),w=this.getScrollTop(),t=w+V.clientHeight-56;if(W<w+56)W-=56;else if(y>t)W=y-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var y=this.hostElement.querySelector("#comments");if(y&&!this.scrollToAnimation_.isAnimating()){y=y.offsetTop-56-24;if(_.e("kevlar_comment_teaser_scroll_to_midpoint")&&(y-=_.B3().height/3,y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtEngagementPanelVisibleChanged:function(y,W,V){if(this.active&&this.trackEngagementPanelVisibility&&!_.bzu.includes(V)){if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Kg(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var w=_.hs().resolve(_.$t);this.visiblePanelIdentifiers_.forEach(function(t){t!==V&&w.hidePanel(t)})}this.visiblePanelIdentifiers_.add(V)}W!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(y){return y?"":"watch-active-metadata"},
computeNewMetadataClass:function(y){return y?"watch-active-metadata":""},
computeFullBleedPlayer:function(y,W,V){return _.e("web_watch_error_screen_fix")?_.e("external_fullscreen")&&y||W||this.enableFullBleedSingleColumnDefaultPlayer&&!V:y||W||this.enableFullBleedSingleColumnDefaultPlayer&&!V},
computeDefaultLayout:function(y){return!y},
computeDefaultTwoColumnLayout:function(y,W){return!y&&W},
updatePanelsLocation:function(){if(_.e("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var y=_.i6(this.hostElement).querySelector("#below"),W=_.i6(this.hostElement).querySelector("#panels"),V=_.i6(this.hostElement).querySelector("#playlist"),w=_.i6(this.hostElement).querySelector("#chat-container"),t=_.i6(this.hostElement).querySelector("#panels-full-bleed-container"),F=_.i6(this.hostElement).querySelector("#secondary-inner"),I=this.fullscreen||this.theater&&this.iMaxTheaterMode,P=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;I?(t.appendChild(W),t.appendChild(w),t.appendChild(V)):this.isTwoColumns_?(P?(y=_.i6(this.hostElement).querySelector("#columns"),(w==null?void 0:w.parentElement)!==y&&y.append(w),this.fixedPanels=!0):_.Dh(F,w),_.Dh(F,W),_.Dh(F,V)):(y.appendChild(W),y.appendChild(w),y.appendChild(V))}},
swatcherooUpdatePanelsLocation:function(y,W,V,w,t,F){if(this.is==="ytd-watch-grid"){W=y&&!W;this.swatcherooSplitScroll&&(W?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));V=_.i6(this.hostElement).querySelector("#panels");var I=_.i6(this.hostElement).querySelector("#playlist"),P=_.i6(this.hostElement).querySelector("#fixed-secondary"),C=_.i6(this.hostElement).querySelector("#fixed-below"),
d=_.i6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),L=_.i6(this.hostElement).querySelector("#chat-container");F&&(y?P.appendChild(V):C.appendChild(V));t?y?P.appendChild(L):C.appendChild(L):_.bQ(L,d);w?y?P.appendChild(I):C.appendChild(I):_.bQ(I,d);this.swatcherooSplitScroll&&(y=_.i6(this.hostElement).querySelector("#secondary"),w=_.i6(this.hostElement).querySelector("#columns"),t=_.i6(this.hostElement).querySelector("#fixed-columns-secondary"),W?
t.appendChild(y):w.appendChild(y))}},
computeMetadataSkinnyMode:function(y,W,V){return this.is!=="ytd-watch-grid"?!1:y?V:W},
computeWatchWhilePanelsActive:function(y,W){return y||W},
computeNoBorderOnChat:function(y){return _.e("web_watch_theater_chat_no_border")&&y},
computeLiveChatPresentAndExpanded:function(y,W){return y&&!W},
computePanelExpanded:function(y,W,V){return y||W||V},
computeSqueezeback:function(y,W,V,w){if(_.e("web_watch_enable_fs_squeezeback_panels")){var t=this.iMaxTheaterMode&&this.theater;return(y||W||V)&&(w||t)}},
computeSwatcherooSqueezeback:function(y,W,V){return this.is!=="ytd-watch-grid"||_.e("ww_squeezeback_killswitch")?!1:y&&W&&V},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(y){_.oJ(this).getPlayerPromise().then(function(W){var V;(V=W.changeMarkerVisibility)==null||V.call(W,_.h(y,_.$i).isVisible||!1,_.h(y,_.$i).entityKeys||[],_.h(y,_.$i).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(y){this.liveChatCollapsed=y.detail;_.dP().dispatch(_.rU_(y.detail));if(!this.liveChatCollapsed&&this.squeezeback){var W=_.hs().resolve(_.$t);this.visiblePanelIdentifiers_.forEach(function(V){W.hidePanel(V)})}},
onSetPlaylistCollapsed:function(y){_.e("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!y)},
provideRenderingData:function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=W;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=
W;break;case "DONATION_SHELF":this.donation=W;break;case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
W}},
toggleCinematicsActive:function(y){this.cinematicsActive=y},
isMiniplayerActive:function(){return _.hs().resolve(_.VH).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var QpP;_.biP=function(y){if(!(0,_.QIL)(y))throw Error("K``"+String(y));};
_.Zit=function(y){return y.findIndex(function(W){return QpP.indexOf(W.tagName)>-1})>-1};
_.yLq=function(){var y=_.hs().resolve(_.YK);_.pCG(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(y.isFullscreenEnabled()?_.z2(document.documentElement):_.Gf4(document.documentElement))};
QpP=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.iG=new Map;_.iG.set(32,59972);_.iG.set(27,50765);_.iG.set(70,60102);_.iG.set(76,60221);_.iG.set(77,60222);_.iG.set(74,60223);_.iG.set(84,60224);_.iG.set(38,61941);_.iG.set(40,61942);_.iG.set(73,62521);_.iG.set(67,62522);_.iG.set(80,63390);_.iG.set(78,63397);_.iG.set(75,59972);_.iG.set(188,63385);_.iG.set(190,63384);_.iG.set(36,63387);
_.iG.set(35,63386);_.iG.set(37,63388);_.iG.set(39,63389);_.iG.set(79,63423);_.iG.set(87,63424);_.iG.set(107,63426);_.iG.set(109,63425);_.iG.set(65,63428);_.iG.set(83,63430);_.iG.set(68,63429);_.iG.set(221,63431);_.iG.set(219,63432);_.iG.set(97,63439);_.iG.set(98,63440);_.iG.set(99,63441);_.iG.set(100,63442);_.iG.set(101,63443);_.iG.set(102,63444);_.iG.set(103,63445);_.iG.set(104,63446);_.iG.set(105,63447);_.fP=new Map;_.fP.set(80,63390);_.fP.set(78,63397);_.fP.set(188,63400);_.fP.set(190,63401);
_.fP.set(191,60765);_.fP.set(13,247917);_.TL=new Map;_.me=new Map;
}catch(e){_._DumpException(e)}
try{
var Gku,Quu,ZaW,yoe;_.nuq=function(y){return y.ui.guideIsVisibleButNotPersistent};
_.Hat=function(y){return y.ui.tabGesturesIsActive};
_.XMm=function(){var y=_.iC("service_worker_scope");try{return navigator.serviceWorker.getRegistration(y)}catch(W){return Promise.reject(W)}};
_.aat=function(y){return!(!y||!y.pushManager)};
Gku=function(){return _.XMm().then(_.aat).catch(function(){return!1})};
_.rGE=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Gku():Promise.resolve(!1)};
_.baC=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Quu=function(){var y,W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(_.Hh.getInstance(),2);case 2:y=w.yieldResult;if(!y){W=void 0;w.jumpTo(3);break}return w.yield(y.get("lmqf"),4);case 4:W=w.yieldResult;case 3:switch((V=W)||(V="SD"),V){case "HD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
ZaW=function(y){var W,V,w;return _.g(function(t){if(t.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.e("disable_av1_setting")){var F=window.localStorage["yt-player-av1-pref"];F=F==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":F==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else F="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(W=y===F)return t.jumpTo(2);w=V=y;return t.yield(Quu(),3)}t.nextAddress!=2&&(W=w===t.yieldResult);return t.return(W)})};var WTj;var VHt=_.jx.IronButtonState,w1C=(0,_.BQ)(HTMLElement);
_.a6({_template:function(){if(WTj!==void 0)return WTj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;yoe===void 0&&(yoe=document.createElement("template"));var w=yoe;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return WTj=y},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[VHt,_.JB,_.$f,_.Xg],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(y){var W=(0,_.l4)(this);W.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:y});W.shadowRoot.appendChild(y);return w1C.prototype._attachDom.call(this,y)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var y=this.contentElement;y&&y.selectedItem&&this._setSelectedItem(y.selectedItem)},
get contentElement(){for(var y=_.Yy(this.$.content).getDistributedNodes(),W=0,V=y.length;W<V;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(y){this._setSelectedItem(y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)===this&&this.open()},
_selectedItemChanged:function(y){var W="";y?W=y.label||y.getAttribute("label")||y.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(y,W){return W?W:y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var y=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",y)}});_.Lk=new _.zf("navigateAction");var tHj=new _.zf("formRenderer");var za=function(){var y=_.YA.apply(this,arguments)||this;y.showInput=!1;return y};
_.p(za,_.YA);_.E=za.prototype;_.E.detached=function(){this.showInput&&window.removeEventListener("click",_.Dp(this,this.closeOnOutsideClick_))};
_.E.stopPropagation_=function(y){this.showInput&&y.stopPropagation()};
_.E.closeOnOutsideClick_=function(y){this.closeOnOutsideClickCondition(y)&&(this.showInput=!1,window.removeEventListener("click",_.Dp(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.E.closeOnOutsideClickCondition=function(){return!0};
_.E.closeOnOutsideClickHandler=function(){};
_.E.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Dp(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.E.openOnClickHandler=function(){};
_.E.showInputChanged=function(){};
_.E.setShowInput=function(y){this.showInput=y};
za.prototype.setShowInput=za.prototype.setShowInput;za.prototype.showInputChanged=za.prototype.showInputChanged;za.prototype.openOnClickHandler=za.prototype.openOnClickHandler;za.prototype.openOnClick_=za.prototype.openOnClick_;za.prototype.closeOnOutsideClickHandler=za.prototype.closeOnOutsideClickHandler;za.prototype.closeOnOutsideClickCondition=za.prototype.closeOnOutsideClickCondition;za.prototype.closeOnOutsideClick_=za.prototype.closeOnOutsideClick_;za.prototype.stopPropagation_=za.prototype.stopPropagation_;
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],za.prototype,"showInput",void 0);_.J([_.l6("click"),_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],za.prototype,"stopPropagation_",null);_.J([_.xA("showInput"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],za.prototype,"showInputChanged",null);_.J([_.BW()],za);_.FTe=[za.prototype];var Edm;var Nfm;var cn=function(){return _.u.apply(this,arguments)||this};
_.p(cn,_.u);_.E=cn.prototype;_.E.computePreselectedOption=function(y,W){return W===this.itemSelected_?y:void 0};
_.E.dataChanged_=function(){var y=this;this.preselectedSubreason=this.itemSelected_=-1;var W;(W=this.data)!=null&&W.key&&_.gy(this,function(){var V,w=Number((V=y.data)==null?void 0:V.key);!Number.isNaN(w)&&(y.itemSelected_=w,V=(V=(y.data.items||[])[w])&&V.optionSelectableItemRenderer&&V.optionSelectableItemRenderer.preselectedIndex)&&(y.preselectedSubreason=V)})};
_.E.isSubReasonHidden_=function(y,W){return y!=W};
_.E.onTopItemSelected_=function(y,W){for(var V=_.i6(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),w=0,t=V.length;w<t;w++)V[w].select(0);_.ow(this.hostElement,"yt-report-form-update",[W.item.value]);y.stopPropagation()};
_.E.onItemSelected_=function(y,W){_.ow(this.hostElement,"yt-report-form-update",[W.item.value]);y.stopPropagation()};
_.E.getItem_=function(y){return y.serviceItem?y.serviceItem:y.navigationItem?y.navigationItem:y.optionSelectableItemRenderer?y.optionSelectableItemRenderer:null};
_.E.computeText_=function(y){return(y=this.getItem_(y))?this.ytRendererBehavior.getSimpleString(y.text):null};
_.E.validate=function(){return this.itemSelected_!==-1};
_.E.computeAriaLabel_=function(y){var W=_.OT(y.text);(y=y.accessibility&&y.accessibility.accessibilityData&&y.accessibility.accessibilityData.label)&&(W+=". "+y);return W};
_.E.computeItemSelected_=function(y){return y};
_.E.preventSelection_=function(y){y.stopPropagation();this.tooltipTapped=!0};
_.E.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.E.updateItemSelectedFromBinding=function(y){this.itemSelected_=y.detail.value};
_.E.save=function(){var y;this.validate()&&(y=this.data)!=null&&y.items&&(y=this.data.items[this.itemSelected_],y!=null&&y.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(y.optionSelectableItemRenderer.submitEndpoint)||_.i5(this.hostElement,[y.optionSelectableItemRenderer.submitEndpoint])))};
cn.prototype.onPaperRippleTransitionEnd_=cn.prototype.onPaperRippleTransitionEnd_;cn.prototype.dataChanged_=cn.prototype.dataChanged_;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cn.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cn.prototype,"data",void 0);_.J([_.q({value:-1}),_.R("design:type",Number)],cn.prototype,"itemSelected_",void 0);
_.J([_.q({computed:"computeItemSelected_(itemSelected_)"}),_.R("design:type",Number)],cn.prototype,"value",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],cn.prototype,"restoreFocusOnClose",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],cn.prototype,"tooltipTapped",void 0);_.J([_.q({value:-1}),_.R("design:type",Number)],cn.prototype,"preselectedSubreason",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cn.prototype,"dataChanged_",null);_.J([_.l6("transitionend"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cn.prototype,"onPaperRippleTransitionEnd_",null);_.J([_.Zp({is:"yt-options-renderer",disableElementRegistration:!0})],cn);
_.Y(cn,"yt-options-renderer",function(){if(Nfm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Edm===void 0&&(Edm=document.createElement("template"));var w=Edm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Nfm=y}y=Nfm;return y},{mode:2});var IZj;var gde;var POe;var COu;var Obq;var vdj;var e5=function(){return _.u.apply(this,arguments)||this};
_.p(e5,_.u);e5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
e5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
e5.prototype.onTap=function(y){if(this.hostElement.classList.contains("selected")||_.pg(this.hostElement,"yt-share-panel-can-select-contact-action"))y&&y.detail&&(y.detail.x||y.detail.y)&&_.i6(this.hostElement).querySelector("#target").blur(),(y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:y?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ow(this.hostElement,"yt-share-panel-select-contact-action",[y])};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.J([_.q({observer:"onDataChanged"}),_.R("design:type",Object)],e5.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.R("design:type",String)],e5.prototype,"componentTitle",void 0);_.J([_.s$("#thumbnail"),_.R("design:type",Object)],e5.prototype,"thumbnail",void 0);_.J([_.Zp({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],e5);
_.Y(e5,"yt-enrolled-contact-renderer",function(){if(vdj===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Obq===void 0&&(Obq=document.createElement("template"));var w=Obq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);vdj=y}y=vdj;return y},{mode:2});var d1E;var LTj;var h9=function(){return _.u.apply(this,arguments)||this};
_.p(h9,_.u);h9.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
h9.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
h9.prototype.onTap=function(y){if(this.hostElement.classList.contains("selected")||_.pg(this.hostElement,"yt-share-panel-can-select-contact-action"))y&&y.detail&&(y.detail.x||y.detail.y)&&_.i6(this.hostElement).querySelector("#target").blur(),(y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:y?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ow(this.hostElement,"yt-share-panel-select-contact-action",[y])};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.J([_.q({observer:"onDataChanged"}),_.R("design:type",Object)],h9.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.R("design:type",String)],h9.prototype,"componentTitle",void 0);_.J([_.s$("#thumbnail"),_.R("design:type",Object)],h9.prototype,"thumbnail",void 0);_.J([_.Zp({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],h9);
_.Y(h9,"yt-suggested-contact-renderer",function(){if(LTj===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;d1E===void 0&&(d1E=document.createElement("template"));var w=d1E;V.call(W,w.content.cloneNode(!0),y.content.firstChild);LTj=y}y=LTj;return y},{mode:2});var oW=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-share-panel-reset-action":"onReset"};return y};
_.p(oW,_.u);oW.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"}}}}}};
oW.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ow(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
oW.prototype.onReset=function(){for(var y=_.i6(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),W=y.length-1;W>=0;W--)y[W].classList.toggle("selected")};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],oW.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({observer:"onDataChanged"}),_.R("design:type",Object)],oW.prototype,"data",void 0);
_.J([_.Zp({is:"yt-contact-section-renderer",disableElementRegistration:!0})],oW);
_.Y(oW,"yt-contact-section-renderer",function(){if(COu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;POe===void 0&&(POe=document.createElement("template"));var w=POe;V.call(W,w.content.cloneNode(!0),y.content.firstChild);COu=y}y=COu;return y},{mode:2});var Kk=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return y};
_.p(Kk,_.u);_.E=Kk.prototype;_.E.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"}}}};
_.E.onYtRefreshFormCommand=function(y){var W;(y=_.h((W=_.h(y,_.aCK))==null?void 0:W.formRenderer,tHj))&&this.set("data",y)};
_.E.reset=function(){var y=_.i6(this.hostElement).querySelector("#fields").children;y=_.N(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.reset&&W.reset()};
_.E.getForm=function(){var y={},W=_.i6(this.hostElement).querySelector("#fields").children;W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;if(!V.validate())return null;y[V.data.key]=V.value}return y};
_.E.submitFormFields=function(){if(this.fields)for(var y=_.N(this.fields),W=y.next();!W.done;W=y.next())W=W.value,W.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?W.save():W.nodeName==="YT-OPTIONS-RENDERER"&&W.save()};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Kk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Kk.prototype,"data",void 0);_.J([_.Ac("#fields > *"),_.R("design:type",Array)],Kk.prototype,"fields",void 0);
_.J([_.Zp({is:"yt-form-renderer",disableElementRegistration:!0})],Kk);
_.Y(Kk,"yt-form-renderer",function(){if(gde===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;IZj===void 0&&(IZj=document.createElement("template"));var w=IZj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);gde=y}y=gde;return y},{mode:2});var zw4;var pk=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return y};
_.p(pk,_.u);pk.prototype.onCheckboxChange=function(y){this.data&&(y=(this.checked=_.vW(y).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})};
pk.prototype.handleUpdateCheckboxCommand=function(y){(y=_.h(y,_.PKJ))&&this.data&&this.data.id===y.id&&(this.set("data.disabled",y.disabled),this.set("data.title",y.title))};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],pk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pk.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],pk.prototype,"checked",void 0);_.J([_.k({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],pk);
_.Y(pk,"ytd-settings-checkbox-renderer",function(){if(zw4!==void 0)return zw4;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return zw4=y},{mode:1});var cod;var im=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return y};
_.p(im,_.u);im.prototype.dataChanged=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return y.radio.removeAttribute("checked"),!y.data||!y.data.id||y.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.baC()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(W=y.data&&y.data.id)?V.yield(ZaW(y.data.id),4):V.jumpTo(3):(y.set("data.hidden",!0),V.jumpTo(0));V.nextAddress!=3&&(W=V.yieldResult);W&&_.ow(y.hostElement,"yt-select-settings-radio-option",[y.data.id]);_.B7(V)})};
im.prototype.onButtonChanged=function(y){_.vW(y).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ow(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
im.prototype.onSelectOption=function(y){this.data&&this.data.id&&(this.data.id===y?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
im.prototype.dataChanged=im.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);_.J([_.s$("#radio"),_.R("design:type",Object)],im.prototype,"radio",void 0);_.J([_.q(),_.R("design:type",Object)],im.prototype,"data",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],im.prototype,"dataChanged",null);_.J([_.k({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],im);
_.Y(im,"ytd-settings-radio-option-renderer",function(){if(cod!==void 0)return cod;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return cod=y},{mode:1});var ewe;var fk=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return y};
_.p(fk,_.u);
fk.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"}}}};
fk.prototype.handleUpdateTextCommand=function(y){(y=_.h(y,_.CKQ))&&this.data&&this.data.id===y.id&&this.set("data",y)};
fk.prototype.handleUpdateConnectedAppRendererCommand=function(y){if(_.h(y,_.dYi)&&this.data){var W,V;if(y=(W=_.h(y,_.dYi))==null?void 0:(V=W.newConnectedAppRenderer)==null?void 0:V.connectedAppRenderer)this.data=y}};
fk.prototype.computeConnectedAppStyle=function(y){return y.style?y.style.toLowerCase().replace(/_/g,"-"):""};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fk.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.R("design:type",String)],fk.prototype,"connectedAppStyle",void 0);_.J([_.k({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],fk);
_.Y(fk,"ytd-connected-app-renderer",function(){if(ewe!==void 0)return ewe;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ewe=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Gk("iuT5Oc");

_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("L3n37");
var K1h=function(y){return y.watch.isLearningJourneyActive},pM_=_.ad(115994),ia3=_.ad(115993),fa_=function(y,W,V){var w=this;
var t=V.dragDownAction;this.layer=0;this.JSC$22809_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$22809_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var F=_.BC();_.uT(F,pM_,this.layer);_.uT(F,ia3,this.layer);this.dragDownAction=function(){t();_.gp(F,{visualElement:w.fullscreen?pM_:ia3})};
this.gesture=new _.Pc(y,W,this.JSC$22809_watchConfig,"pandown");this.attach()};
fa_.prototype.attach=function(){this.gesture.attach()};
fa_.prototype.detach=function(){this.gesture.detach()};
fa_.prototype.update=function(y){this.fullscreen=y;this.gesture.config=y?this.JSC$22809_watchFullScreenConfig:this.JSC$22809_watchConfig};var TJ3=function(y){_.pP.call(this);var W=this;this.rootElement=y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){W.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.p(TJ3,_.pP);_.E=TJ3.prototype;_.E.getRoot=function(){return this.rootElement};
_.E.getElement=function(y){return this.rootElement.getElement(y)};
_.E.setPlayerResponse=function(y){this.playerResponse=y;this.publish("PLAYER_RESPONSE_UPDATED",y)};
_.E.getPlayerResponse=function(){return this.playerResponse};
_.E.setWatchNextResponse=function(y){this.watchNextResponse===y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",y))};
_.E.getWatchNextResponse=function(){return this.watchNextResponse};
_.E.registerActionHandler=function(y,W){var V=this;if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.FD(_.tL.getInstance(),(w[y]=W,w),this.getRoot())}else this.actionHandlers.has(y)||(this.actionHandlers.set(y,[]),w={},_.FD(_.tL.getInstance(),(w[y]=function(){var t=_.Ve.apply(0,arguments);return(V.actionHandlers.get(y)||[]).map(function(F){return F.apply(null,_.GC(t))})},w),this.getRoot())),this.actionHandlers.get(y).push(W)};
_.E.unregisterActionHandler=function(y){if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.Eh(_.tL.getInstance(),(W[y]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(y))?(W.pop(),W.length===0&&(W={},_.Eh(_.tL.getInstance(),(W[y]=!0,W),this.getRoot()),this.actionHandlers.delete(y))):_.rQ(new _.Js("Attempted to unregister an action handler which is not registered.",y))};
_.E.addPageDisposeJob=function(y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nd(this.rootElement.pageDisposeJobs,y)};
_.E.removePageDisposeJob=function(y){this.rootElement.pageDisposeJobs&&_.GG(this.rootElement.pageDisposeJobs,y)};
_.E.dispatchEvent=function(y,W){_.h1(this.rootElement,y,W)};
_.E.provideRenderingData=function(y,W){this.rootElement.provideRenderingData(y,W)};
_.E.scrollWatchTo=function(y,W){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(y,W)};
_.E.focusOnPlayer=function(){var y=this.getElement("PLAYER");_.gy(y,function(){if(y&&y.firstElementChild){var W=y.querySelector(".html5-video-player");W&&(_.eU(_.hs().resolve(_.rL)),W.focus())}else _.rQ(Error("Do"))})};
_.E.updateCinematicFullscreenConfig=function(){var y=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,V;(V=this.watchCinematicManager)==null||_.S7(V,W,y)};
_.E.subscribeToActiveChanged=function(y,W){W=W===void 0?!0:W;var V=_.Y0(_.dP(),K1h,function(w){y(w)});
W&&y(K1h(_.dP().getState()));return V};
_.E.isActive=function(){return K1h(_.dP().getState())};
_.E.onAttached=function(){var y=_.e("external_fullscreen");_.e("use_unified_flag_accessor")&&(y=_.hs().resolve(_.XdE).retriever.getFlag(_.tH6));(y||_.W4("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.E.initPersistentModules=function(){if(_.e("kevlar_watch_flexy_theater_manager")){var y=new _.afu(this);_.Uf(this,y)}y=new _.Dlh(this);_.Uf(this,y);y=new _.M9(this);_.Uf(this,y);y=new _.ki(this);_.Uf(this,y);y=new _.NUh(this);_.Uf(this,y);y=new _.Us(this);_.Uf(this,y);_.e("kevlar_watch_flexy_playlist_manager")&&(y=new _.Pjh(this),_.Uf(this,y))};
_.E.initOrDisposeActiveModules=function(y){y?(this.watchScrollManager=new _.AM(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.X7h(this)),this.activeModules.push(new _.Qv_(this)),this.activeModules.push(new _.zCx(this)),this.activeModules.push(new _.ss(this)),_.e("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Vhh(this)),this.activeModules.push(new _.ZJ5(this)),_.e("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.eCh(this)),
_.e("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.P7x(this)),_.e("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LX3(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.e("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.w35(this)),_.e("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uy5(this)),y=_.e("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.e("kevlar_watch_flexy_comments_manager")&&!y&&this.activeModules.push(new _.T$3(this)),_.e("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.q9(this)),this.activeModules.push(new _.Vmu(this)),this.activeModules.push(new _.GCR(this)),_.e("web_enable_timely_actions")&&this.activeModules.push(new _.EXM(this)),_.e("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.qxM(this)),_.e("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.h1_(this)),
_.e("web_fullscreen_components")&&this.activeModules.push(new _.ERh(this)),_.e("web_player_rtr_ctrls")&&this.activeModules.push(new _.uMZ(this))):(_.zk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.E.disposeInternal=function(){_.pP.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.CM.Object.defineProperties(TJ3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var mR3={},MA1=["learning-journey-engagement-panel","PAlearning_chat"];
mR3.YtdLearningJourneyWatchBehavior=[_.X.YtRendererBehavior,_.Cr.YtPlayerListenerBehavior,_.ph.YtRendererstamperBehavior,_.ik.YtActionHandlerBehavior,_.TK.YtPageBehavior,_.AZ.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 _.W4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.e("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 _.W4("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 _.e("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.e("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 _.pB("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.pB("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_watch_rounded_player_large")||_.e("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 _.e("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.e("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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:_.FC(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.FC(["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 y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){y.showMetadataPlaceholder_()},
function(){_.e("web_watch_dont_clear_comments")||y.clearComments_()},
function(){y.clearPlayerAds_()},
function(){y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.e("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.e("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.yGG(function(){return _.oJ(y)},this.hostElement);
this.pageDisposeJobs.push(function(){y.youThereManager_.reset()});
_.e("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){y.resetFullerscreenEduButtonForNewPlayback_()}));
_.e("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Mf;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;_.e("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.e("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));_.e("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Dp(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(y){y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:y}),y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(y){_.e("kevlar_watch_flexy_theater_manager")&&(this.theater=y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.e("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(y){!_.e("kevlar_watch_while_v2")&&!_.e("web_watch_pip")||y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(y){this.active!==void 0&&(this.fullscreen=y,_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(y){this.active!==void 0&&(_.h1(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(y){this.initCsi_();this.updatePageData_(y)},
updatePageData_:function(y){var W=this;if(y)if(this.data===y){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=y;this.playlist&&_.HN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.aw("nw");this.loading=!1;_.Jt(_.HU,function(){W.initDclkstatus_();var w,t=((w=W.player)==null?void 0:w.getVideoData().cpn)||"";_.BU3(function(F,I){_.aYt(F,I,t)})})},
onPageLoadWithSameData_:function(){_.e("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 y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!y);this.set("loadingData.playlistLoading",y&&y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),y=this.watchNextSkeletonEl_.firstElementChild;y;)y.classList.remove("hidden"),y=y.nextElementSibling;var W,V,w;y=(W=this.loadingData)==null?void 0:(V=W.endpoint)==null?void 0:(w=V.watchEndpoint)==null?void 0:w.videoId;var t;y&&(t="https://i.ytimg.com/vi/"+y+"/frame0.jpg");_.i6(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var y=_.i6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&y&&(y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,V;(V=(W=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(W);var w,t;(t=(w=this.watchMetadata).resize)==null||t.call(w)}_.i6(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(y){var W=_.i6(this.hostElement).querySelector(y);W?_.cN(W,!1):_.rQ(new _.Js("Overscroll monitor not found for component: ",y))},
removeSplitScrollMouseTrap:function(y){var W=_.i6(this.hostElement).querySelector(y);W?_.eM(W):_.rQ(new _.Js("Disposal component for  overscroll monitoring not found: ",y))},
onLoadingChanged_:function(y){y?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(y){var W=this;y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.HU.addLowPriorityJob(function(){W.onWindowResized_(_.B9(!0))})},
updateTheaterModeState_:function(y){if(!_.e("kevlar_watch_flexy_theater_manager")){y=y||this.fullWindowMode_;if(this.theater!==void 0||y)this.theater=y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();y&&_.Z1u()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var y=this.theater;_.e("external_fullscreen")&&this.fullscreen&&(y=!0);y=y?_.i6(this.hostElement).querySelector("#player-full-bleed-container"):_.i6(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),V=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip");W.parentElement!==y&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.oJ(this).appendTo(y,W),y.appendChild(_.i6(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var y=this;return _.g(function(W){if(W.nextAddress==1)return W.yield(_.hs().resolve(_.VH).deactivate(),2);y.updatePlayerLocation();_.B7(W)})},
updateCinematicsLocation:function(){var y=this.getElement("CINEMATICS");if(y){var W=this.getCinematicsLocationContainer();y.parentElement!==W&&W.appendChild(y);var V;(V=this.watchController)==null||V.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.i6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.i6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(y,W){var V=document.documentElement.hasAttribute("dark"),w=V&&_.e("web_cinematic_theater_mode"),t=V&&_.e("web_cinematic_fullscreen");V=!V&&this.cinematicLightTheme;return y&&w||W&&t||(W||y)&&V},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var y;(y=this.watchController)==null||y.setWatchNextResponse(this.data);_.e("kevlar_watch_flexy_comments_manager")||this.initComments_();_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.hs().resolve(_.wd).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.e("web_watch_start_chat_in_theater_mode")){var W,
V,w;if((W=this.data)==null?0:(V=W.contents)==null?0:(w=V.twoColumnWatchNextResults)==null?0:w.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var t,F;((t=this.data)==null?0:(F=t.contents)==null?0:F.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(y){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);y&&y.playabilityStatus&&(W=this.isVideoPlayable_(y.playabilityStatus,this.getPlayerOverlays_(this.data)),y=this.isLiveStreamOffline_(y.playabilityStatus),W&&!y||_.gy(this,function(){_.aw("pbu")}));
this.setPlayerAds_();_.Kg(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(y){_.dP().dispatch(_.ig({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));y?this.activate_():this.deactivate_()},
attached:function(){var y=this;this.watchController=new TJ3(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.e("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.oJ(this);_.e("kevlar_disable_prepare_player")||W.preparePlayer();_.e("kevlar_watch_flexy_playlist_manager")||_.hs().resolve(_.wd).setPlayer(W);this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.Vv()+
"px"};!_.pB("kv_pl_mx_sz_ks")&&_.pB("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lJE+"px");_.pB("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.x9u+"px");this.safeUpdateStyles(W);_.e("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new fa_(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return y.onPlayerTouchPanDown_()}}));
_.e("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.i6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var y=_.Vv(),W=_.kj+y,V=W;this.fixedPanels&&(W+=_.D93);var w=657+y;y=1327+y;_.i6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.i6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(y+"px)");_.i6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(y+"px)");
_.i6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var y=_.i6(this.hostElement).querySelector("#miniplayer-bar").firstChild;return y&&y.active||this.theater||_.e("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.YY(NaN,NaN):_.j7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.j7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.La(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var y=this;this.onWindowResized_(_.B9());_.e("browse_skeleton_removal_on_watch_killswitch")||_.W4("IS_SHELL_LOAD")&&_.RaC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.oJ(this);W.addEventListener("yt-player-updated",_.Dp(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(V){y.playerApiReady_(V)});
_.e("kevlar_watch_flexy_playlist_manager")||(W=_.hs().resolve(_.wd),_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.Dp(this,this.onYtNavigate_)),W.setPlaylistComponent(_.i6(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.Dp(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.HU.addLowPriorityJob(function(){_.h1(y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oJ(this).removeEventListener("yt-player-updated",_.Dp(this,this.onPlayerUpdated_));if(!_.e("kevlar_watch_flexy_playlist_manager")){var y=_.hs().resolve(_.wd);_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&y.removeEventListener("yt-navigate",_.Dp(this,this.onYtNavigate_));y.cancelVideoSkip();y.removeEventListener("yt-playlist-data-updated",_.Dp(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.e("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.h1(this.hostElement,"yt-autonav-pause-player",!1);y=_.Lg();_.e("kevlar_exit_fullscreen_leaving_watch")&&y&&_.z2(y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(y){this.player&&this.player.updateVideoData({rvs:y.rvs})},
getPageContents:function(y){return y&&y.contents&&y.contents.twoColumnWatchNextResults&&y.contents.twoColumnWatchNextResults.results&&y.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(y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y)},
onRetrieveLocation_:function(y,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);y.stopPropagation()},
onSubscriptionChanged_:function(y,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fx("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.i6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.i6(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(y){this.player=y;this.setPlayerState(y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.e("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.e("kevlar_unified_player")||_.e("kevlar_player_new_bootstrap_adoption"))&&_.ID()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(y,W){W=W===void 0?!0:W;_.Lg()&&_.e("external_fullscreen")&&_.z2(document.documentElement);this.theaterRequested_=y;W&&_.s1("wide",y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ow(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.h1(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(y){_.bb(y,typeof this.player),this.player&&_.bb(y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var y;((y=this.player)==null?0:y.isFullscreen())?this.player.toggleFullscreen():_.ow(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(y,W){return this.loading?W:!!Object.keys(y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(y){if(y){y=_.N(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.youThereRenderer&&_.wMh(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(y){return y||{}},
userEngagementConfigDataChanged_:function(y){if(y)if(y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.es()<y.lowEngagementThresholdMs||_.NJ_(W,!0)}else y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ow(this.hostElement,"yt-autonav-pause-user-engagement",[y])},
isPlayerUnavailable_:function(y,W,V){return!!y&&!this.isVideoPlayable_(y,V)&&!W},
getPlayerOverlays_:function(y){return(y==null?void 0:y.playerOverlays)||null},
isVideoPlayable_:function(y,W){if(!y)return!1;var V=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",y)||this.get("errorScreen.ypcTrailerRenderer",y);y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",y);var t;W=W==null?void 0:(t=W.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!V||!!w||!!y||!!W},
hasWatchNextResponseErrorRenderer:function(y){var W=this.getPageContents(y),V,w,t,F,I;return!(y==null?0:(V=y.contents)==null?0:(w=V.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((t=W[0])==null?0:(F=t.itemSectionRenderer)==null?0:(I=F.contents[0])==null?0:I.backgroundPromoRenderer)},
isLiveStreamOffline_:function(y){return y?y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(y,W,V){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.e("web_no_skip_video_on_verification_checks")?(y==null?void 0:y.status)&&t.includes(y.status):y&&y.status==="AGE_CHECK_REQUIRED";var F=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",y);F==void 0&&(F=!0);!V||this.isVideoPlayable_(y,this.getPlayerOverlays_(W))||
w||t||!F||_.hs().resolve(_.wd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Hz_()},
onPlayerFeedbackStartRequest_:function(y){_.ow(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:y}])},
onPlayerFeedbackArticleRequest_:function(y){_.ow(this.hostElement,"yt-help-dialog-requested",[y])},
onPlayerYpcContentRequest_:function(){var y,W,V,w,t,F,I,P,C=((y=this.data)==null?NaN:(W=y.contents)==null?NaN:(V=W.twoColumnWatchNextResults)==null?NaN:(w=V.secondaryResults)==null?NaN:(t=w.secondaryResults)==null?NaN:(F=t.offerModule)==null?NaN:(I=F.tvfilmOfferModuleRenderer)==null?NaN:(P=I.actionButtons)==null?NaN:P.length)-1;y=[".offerButton.buttonRenderer.",".actionButtons."+(C>=0?C:0)+".buttonRenderer."];W=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=W.next();!V.done;V=W.next())for(V=V.value,w=_.N(y),t=w.next();!t.done;t=w.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.kc(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(y){_.h1(this.hostElement,"yt-autonav-pause-player",y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(y){y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.h1(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(y)},
setPlayerState:function(y){_.dP().dispatch(_.vrf(y))},
onPlayerSubscribe_:function(y){_.ow(this.hostElement,"yt-player-subscribe",[y])},
onPlayerUnsubscribe_:function(y){_.ow(this.hostElement,"yt-player-unsubscribe",[y])},
onPlayerAdYtShowToast_:function(y){_.ow(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(y){if(y)return y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(y){return!_.e("web_watch_move_summary_to_sd")&&!!y},
computeWatchMetadataRefresh:function(){return _.e("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var y,W,V,w;this.watchNextSecondaryResults=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(w=V.secondaryResults)==null?void 0:w.secondaryResults}},
setRichGridRendererData:function(y){this.richGridRendererData=y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var y,W=(y=this.data)==null?void 0:y.engagementPanels;if(W==null?0:W.length){y=null;W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;if(((w=V.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){y=V;break}}var t,F,I;y=(t=y)==null?void 0:(F=t.engagementPanelSectionListRenderer)==null?void 0:(I=F.content)==null?void 0:I.structuredDescriptionContentRenderer;if(y==null?0:y.items){t=
[];F=_.N(y.items);for(I=F.next();!I.done;I=F.next()){I=I.value;if(!_.e("sd_horizontal_list_show_nav_killswitch")){var P=w=V=W=y=void 0,C=void 0,d=(y=I.horizontalCardListRenderer)==null?void 0:(W=y.header)==null?void 0:(V=W.richListHeaderRenderer)==null?void 0:(w=V.navigationButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:(C=P.command)==null?void 0:C.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(L){return!_.h(L,_.GsP)}))}I.expandableVideoDescriptionBodyRenderer||
I.videoDescriptionHeaderRenderer||t.push(I)}return{items:t}}}},
constructWarning_:function(y){return{text:_.CO(y),type:"WARNING"}},
isPlaShelfEnabled_:function(y){if((this.get("adPlacements",y)||[]).length)return!0;y=this.get("playerAds",y)||[];return!(!y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var y=this;_.h1(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.e("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.oJ(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.h1(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var y=this;this.commentsReady=!1;_.HU.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Jt(_.HU,function(){y.setComments_()},1E3)},
setComments_:function(){if(!_.e("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.aw("cmi");_.HU.cancelJob(this.setCommentsJobId_);var y=this.getPageContents(this.data);if(y&&y.length){y=_.N(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.h1(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.aw("cmc")},
doRemoveComments_:function(){this.comments={};_.e("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.HU.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.HU.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(y,W){var V=_.h(W.endpoint,_.Iw);V&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==W.videoId||V.playlistId&&V.playlistId!==W.playlistId||V.index!==void 0&&V.index!==W.index||typeof V.startTimeSeconds!=="number"||(y.stopPropagation(),this.setScrollTop(0),_.oJ(this).getPlayerPromise().then(function(w){var t=V.startTimeSeconds;w.seekTo(t);w.wakeUpControls();t<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var y=_.u0u();"t"in y&&(y=_.nYG(y.t),this.player.seekTo(y,!0))},
updateTitleFromWatchNext:function(y){y=this.getPageContents(y);var W,V;(y=_.OT(y==null?void 0:(W=y[0])==null?void 0:(V=W.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.h1(this.hostElement,"yt-update-title",y)},
updateTitle_:function(y){y=this.get("videoDetails.title",y)||"";_.h1(this.hostElement,"yt-update-title",y)},
syncWithRemoteVideo_:function(y,W,V){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===V&&(V=w.list,_.e("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),w.video_id!==y||V!=W)){var t;_.e("kevlar_player_watch_endpoint_navigation")?t=_.AFy(_.JU1(y,W)):t=this.buildWatchEndpoint_(y,W);_.h1(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(y,W,V){return _.hz(y,W,V)},
initDclkstatus_:function(){_.$Gf()},
attachWatchPageSkeleton_:function(){var y=document.querySelector("#watch-page-skeleton");if(y){var W=y.querySelector("#primary-info"),V=y.querySelector("#secondary-info"),w=y.querySelector("#related");W&&_.i6(this.hostElement).querySelector("#info-skeleton").appendChild(W);V&&_.i6(this.hostElement).querySelector("#meta-skeleton").appendChild(V);w&&(_.i6(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.ku(y)}},
handlePlayerUpdated_:function(){_.oJ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(y,W){if(this.watchNextSkeletonEl_&&typeof W!=="undefined"){var V=this.watchNextSkeletonEl_.children,w=y&&y.indexSplices.length?y.indexSplices[0].index:0;y=Math.min(this.watchNextShownItems.length,V.length);W||(w=0,y=V.length);for(W=w;W<y;W++)V[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(y){_.e("external_fullscreen")||_.ow(this.hostElement,"yt-player-fullscreen",[y.fullscreen])},
onFullscreenChange_:function(y){this.fullscreen=y;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.oJ(this);W.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.Lg())});
this.updateFullBleedElementLocations();y&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(y,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(y){return y},
computeShouldShowMerchShelf:function(y,W){return W&&!!y},
computeResponseHasComments:function(y){var W,V,w,t,F;return!!(y==null?0:(W=y.contents)==null?0:(V=W.twoColumnWatchNextResults)==null?0:(w=V.results)==null?0:(t=w.results)==null?0:(F=t.contents)==null?0:F.some(function(I){var P;return(I==null?void 0:(P=I.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(y,W){this.responseHasComments=this.computeResponseHasComments(this.data);return!!y&&!!Object.keys(y).length&&!W},
identity:_.Jv,onWindowResized_:function(y){this.windowSize_=y;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(y){var W=this;y&&y.type!=="dataloaded"&&y.type!=="dataupdated"||_.oJ(this).getPlayerPromise().then(function(V){var w=V.getPlayerState();w!==5&&w!==0&&(V=1/V.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==V&&(W.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(y){var W=this,V=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"),w=function(){if(W.watchMetadata){var t,F;(F=(t=W.watchMetadata).resize)==null||F.call(t)}_.oJ(W).getPlayerPromise().then(function(I){if(_.e("kevlar_set_internal_player_size")){if(!V||!W.isMiniplayerActive()){var P=W.calculateCurrentPlayerSize_();I.setInternalSize(P.width,P.height)}}else I.setSize(NaN,NaN);_.e("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
y?w():_.b8(_.HU,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(y){this.set("data.survey",y.detail)},
onYtShowSurveyCommand_:function(y){this.set("data.survey",_.h(y,_.Zz5).survey)},
onDownloadedVideoDeleted:function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1){if(!W.active||(V=W.playerData)==null||!V.offlineState||W.videoId!==y)return t.return();(w=W.player)==null||w.stopVideo();_.s8().navigatingAwayFromWatchDeletedVideo=!0;_.kc(_.NGz,W.hostElement);return t.yield(_.s8().navigationFinishPromise,2)}_.s8().navigatingAwayFromWatchDeletedVideo=!1;_.B7(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var y;this.theater?y=_.QW(.5625*this.windowSize_.width,480,this.windowSize_.height-185):y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==y&&(this.watchWhileScrollThreshold_=y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var y=_.i6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&y){var W=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!y.active&&W&&V>=this.watchWhileScrollThreshold_?(y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):y.active&&(!W||V<this.watchWhileScrollThreshold_&&!_.Lg())&&(y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(y,W){if(y!==!0||W!==void 0){y=!_.e("live_chat_over_engagement_panels");W=_.i6(this.hostElement).querySelector("#chat-container");var V=_.i6(this.hostElement).querySelector("#plj-sidebar"),w=_.i6(this.hostElement).querySelector("#panels"),t=_.i6(this.hostElement).querySelector("#plj-panels"),F=_.i6(this.hostElement).querySelector("#plj-playlist"),I=_.i6(this.hostElement).querySelector("#alerts"),P=_.i6(this.hostElement).querySelector("#playlist"),C=_.i6(this.hostElement).querySelector("#related"),
d=_.i6(this.hostElement).querySelector("#donation-shelf"),L=_.i6(this.hostElement).querySelector("#comments");this.isTwoColumns_?(I=_.i6(this.hostElement).querySelector("#secondary-inner"),I.appendChild(V),V.appendChild(F),F.appendChild(P),V.appendChild(t),y&&I.appendChild(w),_.e("web_watch_theater_chat")||I.appendChild(W),y||I.appendChild(w),I.appendChild(d),I.appendChild(C)):(y&&_.r4(w,I),_.r4(P,I),_.e("web_watch_theater_chat")||_.r4(W,I),y||_.r4(w,I),_.r4(d,I),L&&(t&&_.r4(t,L),_.r4(C,L)));_.e("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.e("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.e("web_watch_theater_chat")){var y=_.i6(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.e("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.e("web_watch_theater_chat_beside_player")?(W=_.i6(this.hostElement).querySelector("#panels-full-bleed-container"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.panelsBesidePlayer=!0):_.e("web_watch_theater_fixed_chat")&&
(W=_.i6(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.fixedPanels=!0):(_.e("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.e("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.i6(this.hostElement).querySelector("#playlist"),y&&W?_.bQ(y,W):_.rQ(new _.Js("Missing element when updating chat location",{"chatContainer defined":!!y,"playlist defined":!!W})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(y,W){return _.e("sw_metadata_vis_toggle_ks")?!0:!!y||!!W},
computeForceDarkPanelTheme:function(y){return _.e("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&y:!1},
safeUpdateStyles:function(y){try{_.qg(this.hostElement,y)}catch(W){_.rQ(W)}},
videoHeightToWidthRatioChanged_:function(y,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(y){this.videoHeightToWidthRatio_=1/y},
computeIsVerticalVideo_:function(y){return y>=1},
computeIsFourThreeToSixteenNineVideo_:function(y){return y<=.7501&&y>=.5624},
computeIsExtraWideVideo_:function(y){return y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oJ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oJ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.IaR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(y){var W=_.SL(y)||0;_.ui(y,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var y=_.SL("yt-fullerscreen-edu-button-click-count")||0,W=_.SL("yt-fullerscreen-edu-button-shown-count")||0,V=_.pB("external_fullscreen_button_shown_threshold"),w=y>=_.pB("external_fullscreen_button_click_threshold")||W>=V;_.oJ(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(y,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.hs().resolve(_.wd).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var y=this;this.panelMaxHeightUpdateJob_&&_.HU.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.HU.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;var W;!y.isTwoColumns_||y.theater||y.fullscreen?W=460:W=y.calculateNormalPlayerSize_().height;var V=W+"px";_.e("live_chat_taller_height")&&!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.e("live_chat_medium_height")&&
!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.e("live_chat_scaled_height")&&!y.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})})},
onYtShowEngagementPanelScrimAction_:function(y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.fg(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(y){var W=_.i6(this.hostElement).querySelector("#engagement-panel-scrim");y?W.addEventListener("tap",_.Dp(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.Dp(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(y){if(this.hostElement.contains(y)&&!this.scrollToAnimation_.isAnimating()){var W=y.offsetTop-24;y=y.offsetTop+y.offsetHeight+24;var V=this.getPageScrollingElement(),w=this.getScrollTop(),t=w+V.clientHeight-56;if(W<w+56)W-=56;else if(y>t)W=y-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var y=this.hostElement.querySelector("#comments");if(y&&!this.scrollToAnimation_.isAnimating()){y=y.offsetTop-56-24;if(_.e("kevlar_comment_teaser_scroll_to_midpoint")&&(y-=_.B3().height/3,y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtEngagementPanelVisibleChanged:function(y,W,V){this.active&&this.trackEngagementPanelVisibility&&!_.bzu.includes(V)&&(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(V),W!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(y){return y?"":"watch-active-metadata"},
computeNewMetadataClass:function(y){return y?"watch-active-metadata":""},
computeFullBleedPlayer:function(y,W){return y||W},
computeDefaultLayout:function(y){return!y},
computeDefaultTwoColumnLayout:function(y,W){return!y&&W},
computeWatchWhilePanelsActive:function(y,W){return y||W},
computeNoBorderOnChat:function(y){return _.e("web_watch_theater_chat_no_border")&&y},
computeLiveChatPresentAndExpanded:function(y,W){return y&&!W},
computePanelExpanded:function(y,W,V){return y||W||V},
onChangeMarkersVisibility:function(y){_.oJ(this).getPlayerPromise().then(function(W){var V;(V=W.changeMarkerVisibility)==null||V.call(W,_.h(y,_.$i).isVisible||!1,_.h(y,_.$i).entityKeys||[],_.h(y,_.$i).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(y){this.liveChatCollapsed=y.detail;_.dP().dispatch(_.rU_(y.detail))},
provideRenderingData:function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=W;break;case "DONATION_SHELF":this.donation=W;break;
case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=W}},
toggleCinematicsActive:function(y){this.cinematicsActive=y},
isMiniplayerActive:function(){return _.hs().resolve(_.VH).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(y){return MA1.map(function(W){return y.find(function(V){var w;return(V==null?void 0:(w=V.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===W})}).filter(function(W){return W!==void 0})},
getNonLearningJourneyEngagementPanels:function(y){return y.filter(function(W){var V;return!MA1.includes((W==null?void 0:(V=W.engagementPanelSectionListRenderer)==null?void 0:V.targetId)||"")})}}];var qfh;var ZJ=function(){var y=_.u.apply(this,arguments)||this;y.flexy=!0;y.learningJourney=!0;y.roundedInfoPanel=!0;y.viewTransitionEnabled=_.e("enable_player_resize_transition");y.smallerChatMinHeight=_.e("live_chat_smaller_min_height");y.cinematicTheaterMode=_.e("web_cinematic_theater_mode");y.transparentTheaterMode=_.e("web_transparent_theater_mode");y.cinematicFullscreen=_.e("web_cinematic_fullscreen");y.useLargerMaxPlayerValue=_.e("kevlar_flexy_use_larger_player_value");y.cinematicFullscreenV2=_.e("web_cinematic_fullscreen_v2");
y.isDarkTheme=document.documentElement.hasAttribute("dark");y.theaterLargerPlayer=_.e("web_watch_theater_larger_player");y.defaultCollapsePlaylist=_.e("web_watch_default_collapse_playlist");return y};
_.p(ZJ,_.u);_.E=ZJ.prototype;_.E.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.E.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.E.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.E.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.E.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.E.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.E.updateIsTwoColumnsFromBinding=function(y){_.e("web_watch_update_narrow_width_killswitch")||_.dP().dispatch(_.jmj(!y.detail.value));this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.E.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.E.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.E.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.E.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.E.updateShownItemsFromBinding=function(y){y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value};
_.E.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22818_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22818_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.CM.Object.defineProperties(ZJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.h(this.data.pageVisualEffects[W],_.Kx))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.learningJourneyEngagementPanels)==null?void 0:y.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.learningJourneyEngagementPanels)==null?void 0:y.find(function(c){var K;return(c==null?void 0:(K=c.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="learning-journey-engagement-panel"});
if(W){var V,w,t,F,I,P,C,d,L;if(y=(d=((C=(I=((F=W==null?void 0:(V=W.engagementPanelSectionListRenderer)==null?void 0:(w=V.content)==null?void 0:(t=w.sectionListRenderer)==null?void 0:t.contents)!=null?F:[])[0])==null?void 0:(P=I.itemSectionRenderer)==null?void 0:P.contents)!=null?C:[])[0])==null?void 0:(L=d.accordionViewModel)==null?void 0:L.onTitleTap){var z=_.tl(y);if(z)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.xc.instance.resolveCommand(z)}}}}}}});
_.CM.Object.defineProperties(ZJ,{template:{configurable:!0,enumerable:!0,get:function(){if(qfh===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);qfh=y}y=qfh;return y}}});
ZJ.prototype.updateMiniplayerIsActiveValue=ZJ.prototype.updateMiniplayerIsActiveValue;ZJ.prototype.updateScrollTopValue=ZJ.prototype.updateScrollTopValue;ZJ.prototype.updateFullscreenValue=ZJ.prototype.updateFullscreenValue;ZJ.prototype.updateTheaterValue=ZJ.prototype.updateTheaterValue;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);
_.J([_.m(mR3.YtdLearningJourneyWatchBehavior),_.R("design:type",Object)],ZJ.prototype,"ytdWatchBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],ZJ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ZJ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],ZJ.prototype,"playerData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"flexy",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"learningJourney",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"roundedInfoPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"viewTransitionEnabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"smallerChatMinHeight",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"cinematicTheaterMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"transparentTheaterMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"cinematicFullscreen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"useLargerMaxPlayerValue",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"cinematicFullscreenV2",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"isDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZJ.prototype,"theaterLargerPlayer",void 0);_.J([_.q(),_.R("design:type",Object)],ZJ.prototype,"defaultCollapsePlaylist",void 0);_.J([_.q({selector:_.W5}),_.R("design:type",Object)],ZJ.prototype,"theaterValue",void 0);
_.J([_.q({selector:_.V7}),_.R("design:type",Object)],ZJ.prototype,"fullscreenValue",void 0);_.J([_.q({selector:_.f1}),_.R("design:type",Object)],ZJ.prototype,"scrollTopValue",void 0);_.J([_.q({selector:_.bg}),_.R("design:type",Object)],ZJ.prototype,"miniplayerIsActiveValue",void 0);_.J([_.s$("#ytd-plj-player"),_.R("design:type",HTMLElement)],ZJ.prototype,"ytdPlayer",void 0);_.J([_.s$("#playlist"),_.R("design:type",HTMLElement)],ZJ.prototype,"JSC$22818_ytdPlaylistPanelRenderer",void 0);
_.J([_.KP("ytd-comments"),_.R("design:type",HTMLElement)],ZJ.prototype,"ytdComments",void 0);_.J([_.s$("#primary"),_.R("design:type",HTMLElement)],ZJ.prototype,"primary",void 0);_.J([_.s$("#secondary"),_.R("design:type",HTMLElement)],ZJ.prototype,"secondary",void 0);_.J([_.s$("#player-container"),_.R("design:type",HTMLElement)],ZJ.prototype,"playerContainer",void 0);_.J([_.s$("#cinematics"),_.R("design:type",HTMLElement)],ZJ.prototype,"JSC$22818_cinematics",void 0);
_.J([_.xA("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZJ.prototype,"updateTheaterValue",null);_.J([_.xA("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZJ.prototype,"updateFullscreenValue",null);_.J([_.xA("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZJ.prototype,"updateScrollTopValue",null);
_.J([_.xA("miniplayerIsActiveValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZJ.prototype,"updateMiniplayerIsActiveValue",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZJ.prototype,"cinematicLightTheme",null);_.J([_.q({reflectToAttribute:!0}),_.M("learningJourneyEngagementPanels"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZJ.prototype,"hasLearningJourneyPanels",null);
_.J([_.M("learningJourneyEngagementPanels"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZJ.prototype,"backButtonData",null);_.J([_.k({is:"ytd-watch-learning-journey"})],ZJ);_.mP.registerService(_.Fkj,ZJ);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("Tm0L3c");
var zp_;var cG1;var epZ=function(){return _.u.apply(this,arguments)||this};
_.p(epZ,_.u);_.J([_.k({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],epZ);
_.Y(epZ,"ytd-ghost-comments-renderer",function(){if(cG1===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);cG1=y}y=cG1;return y},{mode:1});var hph;var ouR=function(){return _.u.apply(this,arguments)||this};
_.p(ouR,_.u);_.J([_.k({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],ouR);
_.Y(ouR,"ytd-ghost-watch-metadata-renderer",function(){if(hph===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);hph=y}y=hph;return y},{mode:1});var Qh=function(){var y=_.u.apply(this,arguments)||this;y.ghostGridRenderer={rows:6};y.roundedInfoPanel=!0;y.hideOfferModules=!0;y.smallerChatMinHeight=_.e("live_chat_smaller_min_height");y.cinematicTheaterMode=_.e("web_cinematic_theater_mode");y.transparentTheaterMode=_.e("web_transparent_theater_mode");y.darkerPanels=_.e("web_watch_darker_panels");y.cinematicFullscreen=_.e("web_cinematic_fullscreen");y.cinematicFullscreenV2=_.e("web_cinematic_fullscreen_v2");y.isDarkTheme=document.documentElement.hasAttribute("dark");
return y};
_.p(Qh,_.u);_.E=Qh.prototype;_.E.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.E.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.E.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.E.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.E.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.E.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.E.updateIsTwoColumnsFromBinding=function(y){this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.E.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.E.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.E.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.E.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.E.updateShownItemsFromBinding=function(y){_.e("swatcheroo_direct_use_rich_grid")||(y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value)};
_.E.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22806_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22806_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.CM.Object.defineProperties(Qh.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.h(this.data.pageVisualEffects[W],_.Kx))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}}});
Qh.prototype.updateMiniplayerIsActiveValue=Qh.prototype.updateMiniplayerIsActiveValue;Qh.prototype.updateScrollTopValue=Qh.prototype.updateScrollTopValue;Qh.prototype.updateFullscreenValue=Qh.prototype.updateFullscreenValue;Qh.prototype.updateTheaterValue=Qh.prototype.updateTheaterValue;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Qh.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.dRG.YtdWatchBehavior),_.R("design:type",Object)],Qh.prototype,"ytdWatchBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Qh.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qh.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Qh.prototype,"ghostGridRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],Qh.prototype,"playerData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"roundedInfoPanel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"hideOfferModules",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"smallerChatMinHeight",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"cinematicTheaterMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"transparentTheaterMode",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"darkerPanels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"cinematicFullscreen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"cinematicFullscreenV2",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Qh.prototype,"isDarkTheme",void 0);_.J([_.q({selector:_.W5}),_.R("design:type",Object)],Qh.prototype,"theaterValue",void 0);
_.J([_.q({selector:_.V7}),_.R("design:type",Object)],Qh.prototype,"fullscreenValue",void 0);_.J([_.q({selector:_.f1}),_.R("design:type",Object)],Qh.prototype,"scrollTopValue",void 0);_.J([_.q({selector:_.bg}),_.R("design:type",Object)],Qh.prototype,"miniplayerIsActiveValue",void 0);_.J([_.s$("#ytd-player"),_.R("design:type",HTMLElement)],Qh.prototype,"ytdPlayer",void 0);_.J([_.s$("#playlist"),_.R("design:type",HTMLElement)],Qh.prototype,"JSC$22806_ytdPlaylistPanelRenderer",void 0);
_.J([_.s$("#ytd-comments"),_.R("design:type",HTMLElement)],Qh.prototype,"ytdComments",void 0);_.J([_.s$("#primary"),_.R("design:type",HTMLElement)],Qh.prototype,"primary",void 0);_.J([_.s$("#secondary"),_.R("design:type",HTMLElement)],Qh.prototype,"secondary",void 0);_.J([_.s$("#player-container"),_.R("design:type",HTMLElement)],Qh.prototype,"playerContainer",void 0);_.J([_.s$("#cinematics"),_.R("design:type",HTMLElement)],Qh.prototype,"JSC$22806_cinematics",void 0);
_.J([_.xA("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qh.prototype,"updateTheaterValue",null);_.J([_.xA("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qh.prototype,"updateFullscreenValue",null);_.J([_.xA("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qh.prototype,"updateScrollTopValue",null);
_.J([_.xA("miniplayerIsActiveValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qh.prototype,"updateMiniplayerIsActiveValue",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Qh.prototype,"cinematicLightTheme",null);
_.Y(Qh,"ytd-watch-grid",function(){if(zp_===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);zp_=y}y=zp_;return y},{mode:2});_.mP.registerService(_.tgv,Qh);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("CF909");
var L13;var bS=function(){var y=_.u.apply(this,arguments)||this;y.flexy=!0;y.roundedInfoPanel=!0;y.viewTransitionEnabled=_.e("enable_player_resize_transition");y.smallerChatMinHeight=_.e("live_chat_smaller_min_height");y.cinematicTheaterMode=_.e("web_cinematic_theater_mode");y.transparentTheaterMode=_.e("web_transparent_theater_mode");y.cinematicFullscreen=_.e("web_cinematic_fullscreen");y.useLargerMaxPlayerValue=_.e("kevlar_flexy_use_larger_player_value");y.isDarkTheme=document.documentElement.hasAttribute("dark");
y.defaultCollapsePlaylist=_.e("web_watch_default_collapse_playlist");y.retroModeReduxValue=!1;return y};
_.p(bS,_.u);_.E=bS.prototype;_.E.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.E.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.E.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.E.updateRetroModeReduxValue=function(){_.e("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.E.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.E.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.E.updateIsTwoColumnsFromBinding=function(y){_.e("web_watch_update_narrow_width_killswitch")||_.dP().dispatch(_.jmj(!y.detail.value));this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.E.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.E.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.E.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.E.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.E.updateShownItemsFromBinding=function(y){y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value};
_.E.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22801_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22801_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.CM.Object.defineProperties(bS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.h(this.data.pageVisualEffects[W],_.Kx))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}}});
_.CM.Object.defineProperties(bS,{template:{configurable:!0,enumerable:!0,get:function(){if(L13===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);L13=y}y=L13;return y}}});
bS.prototype.updateRetroModeReduxValue=bS.prototype.updateRetroModeReduxValue;bS.prototype.updateScrollTopValue=bS.prototype.updateScrollTopValue;bS.prototype.updateFullscreenValue=bS.prototype.updateFullscreenValue;bS.prototype.updateTheaterValue=bS.prototype.updateTheaterValue;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.dRG.YtdWatchBehavior),_.R("design:type",Object)],bS.prototype,"ytdWatchBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],bS.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bS.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],bS.prototype,"playerData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"flexy",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"roundedInfoPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"viewTransitionEnabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"smallerChatMinHeight",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"cinematicTheaterMode",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"transparentTheaterMode",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"cinematicFullscreen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"useLargerMaxPlayerValue",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bS.prototype,"isDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],bS.prototype,"defaultCollapsePlaylist",void 0);
_.J([_.q({selector:_.W5}),_.R("design:type",Object)],bS.prototype,"theaterValue",void 0);_.J([_.q({selector:_.V7}),_.R("design:type",Object)],bS.prototype,"fullscreenValue",void 0);_.J([_.q({selector:_.f1}),_.R("design:type",Object)],bS.prototype,"scrollTopValue",void 0);_.J([_.q({selector:_.bg}),_.R("design:type",Object)],bS.prototype,"miniplayerIsActive",void 0);_.J([_.q({selector:function(y){return y.watch.isWatchRetroMode}}),
_.R("design:type",Object)],bS.prototype,"retroModeReduxValue",void 0);_.J([_.KP("ytd-player"),_.R("design:type",HTMLElement)],bS.prototype,"ytdPlayer",void 0);_.J([_.s$("#playlist"),_.R("design:type",HTMLElement)],bS.prototype,"JSC$22801_ytdPlaylistPanelRenderer",void 0);_.J([_.KP("ytd-comments"),_.R("design:type",HTMLElement)],bS.prototype,"ytdComments",void 0);_.J([_.s$("#primary"),_.R("design:type",HTMLElement)],bS.prototype,"primary",void 0);
_.J([_.s$("#secondary"),_.R("design:type",HTMLElement)],bS.prototype,"secondary",void 0);_.J([_.s$("#player-container"),_.R("design:type",HTMLElement)],bS.prototype,"playerContainer",void 0);_.J([_.s$("#below"),_.R("design:type",HTMLElement)],bS.prototype,"below",void 0);_.J([_.s$("#cinematics"),_.R("design:type",HTMLElement)],bS.prototype,"JSC$22801_cinematics",void 0);
_.J([_.xA("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bS.prototype,"updateTheaterValue",null);_.J([_.xA("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bS.prototype,"updateFullscreenValue",null);_.J([_.xA("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bS.prototype,"updateScrollTopValue",null);
_.J([_.xA("retroModeReduxValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bS.prototype,"updateRetroModeReduxValue",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],bS.prototype,"cinematicLightTheme",null);_.J([_.k({is:"ytd-watch-flexy"})],bS);_.mP.registerService(_.w0G,bS);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("nmfa2d");
var UGG;var JM=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;y.errorScreen=null;y.playlistData={};return y};
_.p(JM,_.u);_.E=JM.prototype;_.E.getPlayer=function(){return this.ytdPlayer};
_.E.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:_.FC(["aa","eocs"])}}};
_.E.onActiveChanged=function(){_.dP().dispatch(_.Kbx(this.ytPageBehavior.active))};
_.E.playerDataChanged=function(){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData)};
_.E.dataChanged=function(){var y;(y=this.watchController)==null||y.setWatchNextResponse(this.data)};
_.E.sizeChanged=function(){var y,W;(W=(y=this.metadata).resize)==null||W.call(y)};
_.E.attached=function(){this.watchController=new _.Yi(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.E.detached=function(){_.La(this.watchController);this.watchController=void 0};
_.E.getPlayerContainer=function(){return this.playerContainer};
_.E.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22753_playlistPanel}};
_.E.provideRenderingData=function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=W;break;case "ERROR_SCREEN":this.errorScreen=W!=null?W:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=W;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=W;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=W;break;case "RICH_METADATA":this.richMetadataRowContainer=W;break;case "CLARIFICATION":this.clarificationData=W;break;case "PLAYLIST":this.playlistData=
W!=null?W:{};break;case "MERCH_SHELF":this.merchShelf=W;break;case "TICKET_SHELF":this.ticketShelf=W;break;case "LIMITED_STATE":this.limitedState=W;break;case "DONATION_SHELF":this.donationShelf=W;break;case "ALERTS":this.alerts=W}};
_.CM.Object.defineProperties(JM.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return!this.hidden&&!!((y=this.data)==null?0:(W=y.contents)==null?0:(V=W.twoColumnWatchNextResults)==null?0:V.conversationBar)}}});
JM.prototype.sizeChanged=JM.prototype.sizeChanged;JM.prototype.dataChanged=JM.prototype.dataChanged;JM.prototype.playerDataChanged=JM.prototype.playerDataChanged;JM.prototype.onActiveChanged=JM.prototype.onActiveChanged;_.J([_.m(_.TK.YtPageBehavior),_.R("design:type",Object)],JM.prototype,"ytPageBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],JM.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],JM.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"playerData",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],JM.prototype,"hidden",void 0);_.J([_.s$("#ytd-player"),_.R("design:type",HTMLElement)],JM.prototype,"ytdPlayer",void 0);_.J([_.s$("#player-container"),_.R("design:type",HTMLElement)],JM.prototype,"playerContainer",void 0);_.J([_.s$("#metadata"),_.R("design:type",Object)],JM.prototype,"metadata",void 0);_.J([_.s$("#playlist"),_.R("design:type",HTMLElement)],JM.prototype,"JSC$22753_playlistPanel",void 0);
_.J([_.q({selector:_.b1j,reflectToAttribute:!0}),_.R("design:type",Object)],JM.prototype,"fixie",void 0);_.J([_.q({selector:_.rij,reflectToAttribute:!0}),_.R("design:type",Object)],JM.prototype,"singleColumn",void 0);_.J([_.q({selector:function(y){return _.W5(y)&&!_.V7(y)},
reflectToAttribute:!0}),_.R("design:type",Object)],JM.prototype,"theater",void 0);_.J([_.q({selector:_.V7,reflectToAttribute:!0}),_.R("design:type",Object)],JM.prototype,"fullscreen",void 0);_.J([_.q({selector:_.hC_}),_.R("design:type",Object)],JM.prototype,"windowSize",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"singleColumnContents",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"errorScreen",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"playlistData",void 0);
_.J([_.q(),_.R("design:type",Object)],JM.prototype,"videoPrimaryInfoRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"videoSecondaryInfoRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"richMetadataRowContainer",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"clarificationData",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"commentsEntryPointHeaderRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"ticketShelf",void 0);
_.J([_.q(),_.R("design:type",Object)],JM.prototype,"merchShelf",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"donationShelf",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"limitedState",void 0);_.J([_.q(),_.R("design:type",Object)],JM.prototype,"alerts",void 0);_.J([_.M("playlistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],JM.prototype,"hasPlaylistData",null);
_.J([_.M("data","hidden"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JM.prototype,"hasChat",null);_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JM.prototype,"onActiveChanged",null);_.J([_.xA("playerData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JM.prototype,"playerDataChanged",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JM.prototype,"dataChanged",null);_.J([_.xA("windowSize","singleColumn"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JM.prototype,"sizeChanged",null);
_.Y(JM,"ytd-watch-fixie",function(){if(UGG===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);UGG=y}y=UGG;return y},{mode:1});_.mP.registerService(_.Vga,JM);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("xwEKAe");
var X0e=function(y){var W=_.l5();if(W.getFlag(202))W=W.getFlag(201);else{var V;W=(y==null?void 0:(V=y.config)==null?void 0:V.settingOnByDefault)!==void 0?y.config.settingOnByDefault:!_.e("web_shorts_cinematics_disabled_by_default")}return W},a5W=function(y){var W=_.l5();
_.xF(0,201,y);_.xF(0,202,!0);W.save()},Gg4=function(y){return(y=_.ZUu(y))?_.W44(y):0},r7j=function(y){return y.shorts.isSmallScreenSqueezeback},b4e=function(y){return y.shorts.isPlaybackStarted},yie=function(y){var W=_.g2j(3),V=new Set;
_.XT(function(){return void V.forEach(function(w){return void w()})});
return function(w){var t=_.Lb(W);try{var F=Qkj(Z4t(y),w);V.add(F);return function(){F();V.delete(F)}}finally{_.Lb(t)}}},WQq=function(y){var W=y.children;
var V=y.root;_.HV(function(){var w=yie(V)(W);_.XT(w)});
return document.createTextNode("")},Qkj=function(y,W){var V=VOW(y);
y=_.N(_.we4(W,!0));W=y.next().value;var w=y.next().value;V.append.apply(V,_.GC(W));return function(){w();V.remove()}},Z4t=function(y){if(typeof y==="string")return y=document.querySelector(y),_.biP(y),y;
if(_.pG(y)&&y.nodeType===Node.ELEMENT_NODE)return y;if(!y.__value&&!y.__optional){var W=_.s2z.USE_ELEMENT_NOT_ASSIGNED(y.__expectedTagName);y.__hasErrored=!0;throw W;}return y.value},VOW=function(y){var W=document.createElementNS(y.namespaceURI,y.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return y.appendChild(W)},wj4=function(y,W,V,w){y=W-y;
V=w-V;return Math.sqrt(y*y+V*V)},tOd=function(y,W){y&&_.hs().resolve(_.oA).resolveCommand(y,{forceClickLogging:!0,
form:{element:W}})},FQj=function(y,W,V,w){y=W-y;
V=w-V;return Math.sqrt(y*y+V*V)},Ejd=function(y,W){y&&_.hs().resolve(_.oA).resolveCommand(y,{forceClickLogging:!0,
form:{element:W}})},N2C=function(){return _.hs().resolve(_.YK).dismissedIndices},IhC=function(y){return _.ig({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:y}})},gjq=function(y){return _.ig({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:y}})},ti=function(y){return _.ig({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:y}})};var Fc=function(y,W){if(y instanceof Fc)this.array_=y.array_;else{var V;if(V=_.bn(y))a:{for(var w=V=0;w<y.length;w++){if(!_.bn(y[w])||V>0&&y[w].length!=V){V=!1;break a}for(var t=0;t<y[w].length;t++)if(typeof y[w][t]!=="number"){V=!1;break a}V==0&&(V=y[w].length)}V=V!=0}if(V)this.array_=_.ru(y);else if(y instanceof _.YY)this.array_=PMu(y.height,y.width);else if(typeof y==="number"&&typeof W==="number"&&y>0&&W>0)this.array_=PMu(y,W);else throw Error("qo");}this.size_=new _.YY(this.array_[0].length,
this.array_.length)},CMt=function(y,W,V){for(var w=0;w<y.getSize().height;w++)for(var t=0;t<y.getSize().width;t++)W.call(V,y.array_[w][t],w,t,y)},O1m=function(y,W){var V=new Fc(y.getSize());
CMt(y,function(w,t,F){V.array_[t][F]=W.call(void 0,w,t,F,y)});
return V},PMu=function(y,W){for(var V=[],w=0;w<y;w++){V[w]=[];
for(var t=0;t<W;t++)V[w][t]=0}return V};
Fc.prototype.add=function(y){if(!_.hJe(this.size_,y.getSize()))throw Error("ro");return O1m(this,function(W,V,w){return W+y.array_[V][w]})};
Fc.prototype.equals=function(y,W){if(this.size_.width!=y.size_.width||this.size_.height!=y.size_.height)return!1;W=W||0;for(var V=0;V<this.size_.height;V++)for(var w=0;w<this.size_.width;w++)if(!_.eJj(this.array_[V][w],y.array_[V][w],W))return!1;return!0};
Fc.prototype.getSize=function(){return this.size_};
var Ek=function(y,W,V){return W>=0&&W<y.size_.height&&V>=0&&V<y.size_.width?y.array_[W][V]:null};
Fc.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Ne=function(y,W,V,w){if(!(W>=0&&W<y.size_.height&&V>=0&&V<y.size_.width))throw Error("so`"+W+"`"+V+"`"+y.size_.height+"`"+y.size_.width);y.array_[W][V]=w};
Fc.prototype.multiply=function(y){if(y instanceof Fc){if(this.size_.width!=y.getSize().height)throw Error("to");return vj3(this,y)}if(typeof y==="number")return det(this,y);throw Error("uo");};
var vj3=function(y,W){var V=new Fc(y.size_.height,W.getSize().width);CMt(V,function(w,t,F){for(var I=w=0;I<this.size_.width;I++)w+=Ek(this,t,I)*Ek(W,I,F);Ne(V,t,F,w)},y);
return V},det=function(y,W){return O1m(y,function(V){return V*W})};var LQE=new _.zf("inlineSurveyRenderer");var zc4=new _.zf("interstitialViewModel");var ciP=new _.zf("reelNavigateCommand");var ecu=new _.zf("reelNonVideoContentDismissalCommand");var hcj=new _.zf("showReelsCommentsOverlayCommand");var oj3=new _.zf("shortsSuggestedActionViewModel");var KQE=new _.zf("videoInteractionPopUpRenderer");var pjd;var i1m;var fhd;var II=function(){var y=_.u.apply(this,arguments)||this;y.ctaVisualElement=null;y.currentCsn=null;return y};
_.p(II,_.u);_.E=II.prototype;_.E.onDataChanged=function(){this.maybeLogShows()};
_.E.computeButtonShape=function(){var y=this;if(this.data)return{buttonText:_.OT(this.data.text),state:"active",onTap:function(){y.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.E.maybeCreateCtaVe=function(){var y;if((y=this.data)!=null&&y.badgeInteractionLogging){var W;if(y=(W=this.data.badgeInteractionLogging)==null?void 0:W.trackingParams)this.ctaVisualElement=_.nD(y)}};
_.E.maybeLogClicks=function(){this.currentCsn=_.Xn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.PE(this.currentCsn,this.ctaVisualElement)};
_.E.maybeLogShows=function(){this.currentCsn=_.Xn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.IB(this.currentCsn,[this.ctaVisualElement])};
_.E.onTap=function(){var y;if((y=this.data)!=null&&y.onClickCommand){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand);this.maybeLogClicks()}};
II.prototype.onDataChanged=II.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],II.prototype,"ytComponentBehavior",void 0);_.J([_.q({}),_.R("design:type",Object)],II.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],II.prototype,"onDataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],II);
_.Y(II,"ytd-shopping-overlay-badge-renderer",function(){if(fhd!==void 0)return fhd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fhd=y},{mode:1});_.iF(_.dut,"reel-sound-metadata-view-model",{props:{data:_.p5,overlayDensity:_.p5}});_.iF(_.NUP,"player-disclosure-view-model",{props:{data:_.vB}});_.iF(_.eXz,"pivot-button-view-model",{props:{data:_.p5,className:_.p5}});_.iF(_.hXE,"reel-action-bar-view-model",{props:{data:_.vB,buttonShapeOverrideables:_.vB}});_.iF(_.eY(function(y){function W(){var Py,du,mL,un,hv=(du=_.h((Py=r())==null?void 0:Py.command,_.Jr))==null?void 0:(mL=du.item)==null?void 0:(un=mL.notificationTextRenderer)==null?void 0:un.successResponseText;if(hv)_.ow(w.value,"yt-open-popup-action",[_.zw(hv),w.value]);else if(H())tOd(H(),f.value);else{var $P;tOd(($P=r())==null?void 0:$P.command,f.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=y.data;var w=_.I0("yt-player-overlay-video-interactions");y=_.N(_.M1("0px",void 0,"O1N7Ce"));var t=y.next().value,F=y.next().value;y=_.N(_.M1("0px",void 0,"tTDBdb"));var I=y.next().value,P=y.next().value;y=_.N(_.M1(0,void 0,"fh8Zkc"));var C=y.next().value,d=y.next().value;y=_.N(_.M1(0,void 0,"CUjqGd"));var L=y.next().value,z=y.next().value,c=function(){var Py;if(((Py=_.Sf())==null?void 0:Py.getPlayerState())!==-1){w.value.style.display="inherit";var du;(du=_.Sf())==null||du.removeEventListener("onStateChange",
c)}K()},K=function(){var Py=document.querySelector("video");
if(Py){d(Py.getBoundingClientRect().width);z(Py.getBoundingClientRect().height);var du;F((Py==null?void 0:(du=Py.style)==null?void 0:du.left)||"0px");var mL;P((Py==null?void 0:(mL=Py.style)==null?void 0:mL.top)||"0px")}};
_.H1(function(){var Py,du,mL;if(((Py=_.Sf())==null?void 0:Py.getPlayerState())===-1&&Math.round(((mL=(du=_.Sf())==null?void 0:du.getVideoAspectRatio())!=null?mL:0)*100)!==Math.round(C()/L()*100)){w.value.style.display="none";var un,hv;z(C()/((hv=(un=_.Sf())==null?void 0:un.getVideoAspectRatio())!=null?hv:1))}},"VB5m5");
_.HV(function(){var Py;(Py=_.Sf())==null||Py.addEventListener("onStateChange",c);window.addEventListener("resize",K);K();var du,mL,un;if((un=(du=V())==null?void 0:(mL=du.regions)==null?void 0:mL[0])==null||!un.transformationMatrix)throw Error("yo");var hv;if((hv=V())==null?0:hv.trackingParams){var $P;_.BC().graftServerVe(($P=V().trackingParams)!=null?$P:"")}_.XT(function(){var sz;(sz=_.Sf())==null||sz.removeEventListener("onStateChange",c);window.removeEventListener("resize",K)})});
var f=_.I0("svg"),U=_.N(_.M1(!1,void 0,"TPsTce"));y=U.next().value;var l=U.next().value,x=_.N(_.M1(!1,void 0,"Uz6CHf"));U=x.next().value;var B=x.next().value,r=function(){var Py;return _.h((Py=V())==null?void 0:Py.popUp,KQE)},H=function(){var Py;
return(Py=V())==null?void 0:Py.command},a=function(){return _.h(H(),_.Jn)!==void 0};
x=_.YS(function(){W();return!1});
var b={},Fv={};return _.O("yt-player-overlay-video-interactions",{el:w},_.O("svg",{"on:mouseover":_.YS(function(){a()&&l(!0);B(!0);return!1}),
"on:mouseout":_.YS(function(){l(!1);B(!1);return!1}),
"on:keydown":_.YS(function(Py){Py.key==="Enter"&&W();return!1}),
"on:focus":_.YS(function(){a()&&l(!0);return!1}),
"on:blur":_.YS(function(){a()&&l(!1);return!1}),
el:f,tabindex:0,"aria-label":function(){var Py;return(Py=V())==null?void 0:Py.a11yString},
id:"player-overlay-video-interaction-svg",class:_.kS("yt-player-overlay-video-interactions__interactions-svg",(b["yt-player-overlay-video-interactions__interactions-svg-hover"]=y,b),(Fv["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=U,Fv)),role:"button",style:function(){var Py,du,mL,un=(mL=(Py=V())==null?void 0:(du=Py.regions)==null?void 0:du[0].transformationMatrix)!=null?mL:[];Py=C();du=L();mL=[];for(var hv=0,$P=-1;hv<un.length;hv++)hv%3===0&&($P++,mL[$P]=[]),mL[$P].push(un[hv]);
un=new Fc(mL);mL=new Fc([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);mL=un.multiply(mL);un=new Fc([[0,0],[0,0],[0,0],[0,0]]);for(hv=0;hv<mL.getSize().width;hv++){$P=Ek(mL,0,hv);var sz=Ek(mL,1,hv);if($P===null||sz===null)throw Error("xo`"+(hv+1).toString());Ne(un,hv,0,$P*Py);Ne(un,hv,1,sz*du)}Py=Ek(un,0,0);hv=Ek(un,1,0);du=Ek(un,0,1);$P=Ek(un,1,1);if(Py===null||hv===null||du===null||$P===null)throw Error("vo");mL=wj4(Py,hv,du,$P);sz=Ek(un,3,0);un=Ek(un,3,1);if(sz===null||un===null)throw Error("wo");un=wj4(Py,
sz,du,un);$P=(Number(($P*-1).toFixed(2))-Number((du*-1).toFixed(2)))/(Number(hv.toFixed(2))-Number(Py.toFixed(2)));sz=Math.atan($P)*180/Math.PI;hv=$P===Number.POSITIVE_INFINITY?-90:$P===Number.NEGATIVE_INFINITY?90:Object.is($P,-0)?180:$P===0?0:$P>0?sz*-1:Py<hv?sz*-1:Math.abs(sz)+180;return"left:calc("+Py+"px + "+t()+"); top:calc("+(du+"px + "+I()+"); width:")+(mL+"px; height:")+(un+"px; transform:rotate(")+(hv+"deg);")},
"on:click":x}))},"gj"),"yt-player-overlay-video-interactions",{props:{data:_.vB}});_.iF(_.Ozm,"yt-reel-metapanel-view-model",{props:{data:_.vB,overlayDensity:_.vB}});var T2W=_.eY(function(y){var W=y.children;var V=y.region;y=_.N(_.M1(void 0,void 0,"rwJZyc"));var w=y.next().value,t=y.next().value;y=_.N(_.M1("0px",void 0,"H14H5c"));var F=y.next().value,I=y.next().value;y=_.N(_.M1("0px",void 0,"Mn8Uvf"));var P=y.next().value,C=y.next().value;y=_.N(_.M1(0,void 0,"QQCIqc"));var d=y.next().value,L=y.next().value;y=_.N(_.M1(0,void 0,"HyEvh"));var z=y.next().value,c=y.next().value,K=function(){var r=w();if(r){var H;if(((H=_.Sf())==null?void 0:H.getPlayerState())!==-1){r.style.display=
"inherit";var a;(a=_.Sf())==null||a.removeEventListener("onStateChange",K)}U()}},f=function(){var r=document.querySelectorAll("video");
return Array.from(r).find(function(H){var a;return H==null?void 0:(a=H.style)==null?void 0:a.width})},U=function(){var r=f();
if(r){L(r.getBoundingClientRect().width);c(r.getBoundingClientRect().height);var H;I((r==null?void 0:(H=r.style)==null?void 0:H.left)||"0px");var a;C((r==null?void 0:(a=r.style)==null?void 0:a.top)||"0px")}};
_.H1(function(){var r=w();if(r){var H,a,b;if(((H=_.Sf())==null?void 0:H.getPlayerState())===-1&&Math.round(((b=(a=_.Sf())==null?void 0:a.getVideoAspectRatio())!=null?b:0)*100)!==Math.round(d()/z()*100)){r.style.display="none";var Fv,Py;c(d()/((Py=(Fv=_.Sf())==null?void 0:Fv.getVideoAspectRatio())!=null?Py:1))}}},"RdGxIf");
var l=function(){U()},x;
_.HV(function(){U();var r;if(!(V==null?0:(r=V())==null?0:r.transformationMatrix))throw Error("yo");var H;(H=_.Sf())==null||H.addEventListener("onStateChange",K);if(window.ResizeObserver){if(r=f())x=new ResizeObserver(l),x.observe(r)}else window.addEventListener("resize",U);_.XT(function(){var a;(a=_.Sf())==null||a.removeEventListener("onStateChange",K);x?x.disconnect():window.removeEventListener("resize",U)})});
var B=function(){var r,H,a=(H=V==null?void 0:(r=V())==null?void 0:r.transformationMatrix)!=null?H:[];r=d();H=z();for(var b=[],Fv=0,Py=-1;Fv<a.length;Fv++)Fv%3===0&&(Py++,b[Py]=[]),b[Py].push(a[Fv]);a=new Fc(b);b=new Fc([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);b=a.multiply(b);a=new Fc([[0,0],[0,0],[0,0],[0,0]]);for(Fv=0;Fv<b.getSize().width;Fv++){Py=Ek(b,0,Fv);var du=Ek(b,1,Fv);if(Py===null||du===null)throw Error("xo`"+(Fv+1).toString());Ne(a,Fv,0,Py*r);Ne(a,Fv,1,du*H)}r=Ek(a,0,0);Fv=Ek(a,1,0);H=Ek(a,0,1);
Py=Ek(a,1,1);if(r===null||Fv===null||H===null||Py===null)throw Error("vo");b=FQj(r,Fv,H,Py);du=Ek(a,3,0);a=Ek(a,3,1);if(du===null||a===null)throw Error("wo");a=FQj(r,du,H,a);Py=(Number((Py*-1).toFixed(2))-Number((H*-1).toFixed(2)))/(Number(Fv.toFixed(2))-Number(r.toFixed(2)));du=Math.atan(Py)*180/Math.PI;Fv=Py===Number.POSITIVE_INFINITY?-90:Py===Number.NEGATIVE_INFINITY?90:Object.is(Py,-0)?180:Py===0?0:Py>0?du*-1:r<Fv?du*-1:Math.abs(du)+180;return"left:calc("+r+"px + "+F()+"); top:calc("+(H+"px + "+
P()+"); width:")+(b+"px; height:")+(a+"px; transform:rotate(")+(Fv+"deg);")};
return _.O(WQq,{root:"#sticker-layer"},function(){return _.O("yt-overlay-sticker",{el:_.hl(t),style:B,class:"ytOverlayStickerHost"},W)})},"hj");var meP=_.eY(function(y){function W(){var K,f,U,l,x=(f=_.h((K=C())==null?void 0:K.command,_.Jr))==null?void 0:(U=f.item)==null?void 0:(l=U.notificationTextRenderer)==null?void 0:l.successResponseText;if(x)_.ow(w.value,"yt-open-popup-action",[_.zw(x),w.value]);else if(d())Ejd(d(),w.value);else{var B;Ejd((B=C())==null?void 0:B.command,w.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=y.data;var w=_.I0("svg"),t=_.N(_.M1(!1,void 0,"T9Bq7b"));y=t.next().value;var F=t.next().value,I=_.N(_.M1(!1,void 0,"iMHq9c"));t=I.next().value;var P=I.next().value,C=function(){var K;return _.h((K=V())==null?void 0:K.popUp,KQE)},d=function(){var K;
return(K=V())==null?void 0:K.command},L=function(){return _.h(d(),_.Jn)!==void 0};
I=_.YS(function(){W();return!1});
var z={},c={};return _.O("svg",{"on:mouseover":_.YS(function(){L()&&F(!0);P(!0);return!1}),
"on:mouseout":_.YS(function(){F(!1);P(!1);return!1}),
"on:keydown":_.YS(function(K){K.key==="Enter"&&W();return!1}),
"on:focus":_.YS(function(){L()&&F(!0);return!1}),
"on:blur":_.YS(function(){L()&&F(!1);return!1}),
el:w,tabindex:0,"aria-label":function(){var K;return(K=V())==null?void 0:K.a11yString},
id:"player-overlay-video-interaction-svg",class:_.kS("ytPlayerOverlayInteractionInteractionsSvg",(z.ytPlayerOverlayInteractionInteractionsSvgHover=y,z),(c.ytPlayerOverlayInteractionInteractionsSvgHideOutline=t,c)),role:"button","on:click":I})},"jj");_.iF(_.eY(function(y){var W=y.data;_.HV(function(){var V;if((V=W())==null?0:V.trackingParams){var w;_.BC().graftServerVe((w=W().trackingParams)!=null?w:"")}});
return _.O("yt-player-overlay-interaction",null,_.O(T2W,{region:function(){var V,w;return(V=W())==null?void 0:(w=V.regions)==null?void 0:w[0]}},_.O(meP,Object.assign({},y))))},"ij"),"yt-player-overlay-interaction",{props:{data:_.vB}});var g2=function(){var y=_.u.apply(this,arguments)||this;y.showScrubber=!1;y.isWatchWhileMode=!1;y.enableRemixButton=_.e("web_enable_shorts_remix_handoff_ep");y.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");y.enableNewStickers=_.e("use_shorts_sticker_overlay_web");y.anchoredPanelActive=!1;y.enableLivingroomLayout=_.e("reels_enable_livingroom_layout");y.enablePlayerMetadataContainer=_.e("reels_web_enable_metadata_container");y.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");
y.useAspectRatio=_.e("web_use_aspect_ratio");y.isSqueezebackActive=!1;y.smallScreenSqueezeback=!1;y.isPlayerStarted=!1;y.overlayDensity=0;y.isOverlay=!1;y.isImmersive=!1;y.isImmersiveHorizontal=!1;y.isFullscreen=!1;y.onWindowResized=function(){var W;y.set("isImmersive",((W=window.getComputedStyle(y.hostElement))==null?void 0:W.getPropertyValue("--immersive-mode-on"))==="1");y.set("isImmersiveHorizontal",y.isImmersive&&y.enableLivingroomLayout&&!y.isWatchWhileMode)};
return y};
_.p(g2,_.u);_.E=g2.prototype;_.E.updateIsOverlay=function(y){this.isOverlay=y.detail.value};
_.E.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.e("web_enable_flexible_overlay")||_.e("web_enable_format_first")||_.e("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.E.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.E.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.E.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.E.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.E.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.E.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.E.ready=function(){(_.e("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"))&&(!_.e("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.iC("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.iC("reels_action_justified_content")||"flex-start")};
_.E.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.E.setFakeLoadingButtons=function(){_.e("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.u5("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.u5("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.u5("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.u5("SHARE_LABEL",void 0,"Share")}}}),_.e("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.u5("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()};
_.E.setEmptyOverlayMetadata=function(){_.e("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}))};
_.CM.Object.defineProperties(g2.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.infoPanel)}}});
g2.prototype.onIsActiveChanged=g2.prototype.onIsActiveChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],g2.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],g2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],g2.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],g2.prototype,"isActive",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],g2.prototype,"hidden",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],g2.prototype,"useShortsIcon",void 0);_.J([_.q({value:"left"}),_.R("design:type",String)],g2.prototype,"buttonTooltipPosition",void 0);
_.J([_.q({value:_.e("reels_enable_livingroom_layout")?"top":"left"}),_.R("design:type",String)],g2.prototype,"likeButtonTooltipPosition",void 0);_.J([_.q({value:"none"}),_.R("design:type",String)],g2.prototype,"textTransform",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"showScrubber",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"isWatchWhileMode",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.infoPanel"),_.R("design:type",Object),_.R("design:paramtypes",[])],g2.prototype,"hasInfoPanel",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"enableRemixButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"enableAnchoredPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"enableNewStickers",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"anchoredPanelActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"enableLivingroomLayout",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],g2.prototype,"enablePlayerMetadataContainer",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"enableSqueezebackPanels",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"useAspectRatio",void 0);_.J([_.q({selector:_.Psb,reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"isSqueezebackActive",void 0);_.J([_.q({selector:r7j,reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"smallScreenSqueezeback",void 0);_.J([_.q({selector:b4e}),_.R("design:type",Object)],g2.prototype,"isPlayerStarted",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"overlayDensity",void 0);_.J([_.q(),_.R("design:type",Object)],g2.prototype,"isOverlay",void 0);_.J([_.q({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.R("design:type",Boolean)],g2.prototype,"isShortsOverlay",void 0);_.J([_.q(),_.R("design:type",Object)],g2.prototype,"isImmersive",void 0);_.J([_.q(),_.R("design:type",Object)],g2.prototype,"isImmersiveHorizontal",void 0);
_.J([_.q({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.R("design:type",Boolean)],g2.prototype,"isShortsImmersive",void 0);_.J([_.q({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.R("design:type",Object)],g2.prototype,"buttonOverride",void 0);_.J([_.q({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.R("design:type",Object)],g2.prototype,"actionBarButtonOverride",void 0);
_.J([_.q({selector:_.u0,reflectToAttribute:!0}),_.R("design:type",Object)],g2.prototype,"isFullscreen",void 0);_.J([_.xA("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],g2.prototype,"onIsActiveChanged",null);_.J([_.k({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],g2);
_.Y(g2,"ytd-reel-player-overlay-renderer",function(){if(i1m!==void 0)return i1m;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return i1m=y},{mode:1});var MOu;var Pj=function(){var y=_.u.apply(this,arguments)||this;y.videoDuration=0;y.playedTime=0;y.isActive=!1;y.JSC$22009_playerEvents=new Map;return y};
_.p(Pj,_.u);_.E=Pj.prototype;_.E.created=function(){this.JSC$22009_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22009_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.E.attached=function(){this.getPlayerAndInitializeListeners()};
_.E.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22009_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Dp(this,this.onPageChanged))};
_.E.getPlayerAndInitializeListeners=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return W=_.Kn(),W?V.yield(W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Dp(y,y.onPageChanged)),V.jumpTo(0));y.player=V.yieldResult;y.initializePlayerListeners();_.B7(V)})};
_.E.onPageChanged=function(y){var W=this;return _.g(function(V){if(V.nextAddress==1)return y.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.pn().getPlayerPromise(),2);W.player=V.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Dp(W,W.onPageChanged));_.B7(V)})};
_.E.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22009_playerEvents)};
_.E.onVideoDataChange=function(y){var W=this;return _.g(function(V){if(!W.player||y.type!=="newdata")return V.return();W.videoDuration=_.e("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(y.playertype).seekableEnd:W.player.getDuration(y.playertype);W.playedTime=0;_.B7(V)})};
_.E.onVideoProgress=function(y){var W=this,V,w;return _.g(function(t){if(!W.player)return t.return();V=W.player.getPresentingPlayerType();w=W.player.getPlayerState();W.videoDuration=_.e("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(V).seekableEnd:W.player.getDuration(V);W.playedTime=w===0?W.videoDuration:y;_.B7(t)})};
_.E.getPercentPlayed=function(y,W){return y?_.QW(W/y,0,1):0};
_.CM.Object.defineProperties(Pj.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 y="";return y=this.videoDuration&&this.playedTime?y+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):y+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Pj.prototype,"componentBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],Pj.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Pj.prototype,"player",void 0);_.J([_.q(),_.R("design:type",Object)],Pj.prototype,"videoDuration",void 0);_.J([_.q(),_.R("design:type",Object)],Pj.prototype,"playedTime",void 0);_.J([_.q(),_.R("design:type",Object)],Pj.prototype,"isActive",void 0);
_.J([_.M("videoDuration","playedTime"),_.R("design:type",Number),_.R("design:paramtypes",[])],Pj.prototype,"percentPlayed",null);_.J([_.M("videoDuration","playedTime"),_.R("design:type",Object),_.R("design:paramtypes",[])],Pj.prototype,"percentPlayedStyle",null);_.J([_.M("videoDuration","isActive"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pj.prototype,"hideProgressBar",null);
_.Y(Pj,"ytd-progress-bar-line",function(){if(MOu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);MOu=y}y=MOu;return y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var qkW;_.iF(_.$Rm,"ytm-closed-captioning-button",{props:{captionIconType:_.vB,onClick:_.p5,ariaLabel:_.vB,ariaPressed:_.vB,isOverlay:_.p5,isModern:_.p5}});_.iF(_.EYq,"desktop-shorts-volume-controls",{props:{orientation:_.vB}});var C1=function(){var y=_.u.apply(this,arguments)||this;y.playerState=null;y.isMuted=!1;y.shortsModernControlsEnabled=_.e("web_shorts_modern_controls");y.volumeControlsOrientationState=_.e("web_shorts_modern_controls")?"vertical_down":"horizontal_right";y.isOverlay=!0;y.captionIconType=-1;y.ariaLabel="";y.overlayDensity=0;y.JSC$22012_playerEvents=new Map;y.onClosedCaptionsButtonClick=function(){y.player&&_.IW(y.player)&&(y.player.toggleSubtitles(),y.updateCaptionIconType())};
return y};
_.p(C1,_.u);_.E=C1.prototype;_.E.created=function(){this.JSC$22012_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22012_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22012_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.E.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.ad(28662);this.playPauseButtonClientVE=_.ad(36842);this.fullscreenButtonToggleOffClientVE=_.ad(222256);this.fullscreenButtonToggleOnClientVE=_.ad(222257);var y=_.Xn(),W=_.Hf();y&&W&&(_.e("combine_ve_grafts")?(_.U8(_.BC(),this.muteButtonClientVE,W),_.U8(_.BC(),this.playPauseButtonClientVE,W)):_.EB(y,W,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.E.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22012_playerEvents),this.player=null)};
_.E.updateCaptionIconType=function(){var y=-1,W=void 0,V=_.u5("CLOSED_CAPTIONS_DISABLED");this.player&&_.IW(this.player)&&(_.Sfu(this.player)?(W=!0,V=_.u5("CLOSED_CAPTIONS_ON"),y=1):(W=!1,V=_.u5("CLOSED_CAPTIONS_OFF"),y=0));this.captionIconType=y;this.ariaPressedState=W;this.ariaLabel=V};
_.E.getPlayerAndInitializeListeners=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return W=_.Kn(),W?V.yield(W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Dp(y,y.onPageChanged)),V.jumpTo(0));y.player=V.yieldResult;y.initializePlayerListeners();_.B7(V)})};
_.E.onPageChanged=function(y){var W=this;return _.g(function(V){if(V.nextAddress==1)return y.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.pn().getPlayerPromise(),2);W.player=V.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Dp(W,W.onPageChanged));_.B7(V)})};
_.E.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22012_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.E.onPlayerStateChange=function(y){this.playerState=y};
_.E.onPlayerVolumeChange=function(y){this.isMuted=y.muted};
_.E.onPlayPauseButtonClick=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(_.pn().getPlayerPromise(),2);W=w.yieldResult;(V=_.Xn())&&y.playPauseButtonClientVE&&_.PE(V,y.playPauseButtonClientVE);W.getPlayerState()!==1?W.playVideo():W.pauseVideo();_.B7(w)})};
_.E.computePlayPauseIcon=function(y){return y===2||y===-1||y===5?_.e("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.e("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.e("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.E.computeFullscreenLabel=function(y){return y?_.u5("FULLSCREEN_EXIT_LABEL"):_.u5("FULLSCREEN_ENTER_LABEL")};
_.E.computePlayPauseLabel=function(y){return y===1||y===3?_.u5("PLAYER_LABEL_PAUSE"):_.u5("PLAYER_LABEL_PLAY")};
_.E.onMuteButtonClick=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(_.pn().getPlayerPromise(),2);W=w.yieldResult;(V=_.Xn())&&y.muteButtonClientVE&&_.PE(V,y.muteButtonClientVE);W.isMuted()?W.unMute(!0):W.mute(!0);_.B7(w)})};
_.E.computeMuteIcon=function(y){return y?"miniplayer:volume-off":"miniplayer:volume-up"};
_.E.computeMuteLabel=function(y){return y?_.u5("PLAYER_LABEL_UNMUTE"):_.u5("PLAYER_LABEL_MUTE")};
_.E.onFullscreenButtonClick=function(){var y=_.Xn();y&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.PE(y,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.PE(y,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.yLq()};
_.CM.Object.defineProperties(C1.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var y=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(){y.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.e("web_shorts_modern_controls")?"player_full_exit_alt":_.e("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.e("web_shorts_modern_controls")?"player_full_enter_alt":_.e("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],C1.prototype,"componentBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],C1.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],C1.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"player",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"playerState",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"isMuted",void 0);
_.J([_.q({computed:"computePlayPauseIcon(playerState)"}),_.R("design:type",String)],C1.prototype,"playPauseIcon",void 0);_.J([_.q({computed:"computeMuteIcon(isMuted)"}),_.R("design:type",String)],C1.prototype,"muteIcon",void 0);_.J([_.q({selector:_.u0}),_.R("design:type",Boolean)],C1.prototype,"isFullscreen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],C1.prototype,"shortsModernControlsEnabled",void 0);
_.J([_.q(),_.R("design:type",Object)],C1.prototype,"volumeControlsOrientationState",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"isOverlay",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"captionIconType",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"ariaLabel",void 0);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"ariaPressedState",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],C1.prototype,"overlayDensity",void 0);
_.J([_.M("playerState"),_.R("design:type",Object),_.R("design:paramtypes",[])],C1.prototype,"playPauseButtonData",null);_.J([_.M("isFullscreen"),_.R("design:type",Object),_.R("design:paramtypes",[])],C1.prototype,"fullscreenButtonData",null);_.J([_.q(),_.R("design:type",Object)],C1.prototype,"onClosedCaptionsButtonClick",void 0);_.J([_.M("isFullscreen"),_.R("design:type",String),_.R("design:paramtypes",[])],C1.prototype,"fullscreenIcon",null);
_.Y(C1,"ytd-shorts-player-controls",function(){if(qkW===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);qkW=y}y=qkW;return y},{mode:1});var Ueu;_.iF(_.rJR,"yt-interstitial-view-model",{props:{data:_.vB}});var ucv=_.eY(function(y){var W=y.data;return _.O("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.O("h1",{class:"reelWatchBreakViewModelHostTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O("h2",{class:"reelWatchBreakViewModelHostBody"},_.O(_.Lv,{text:function(){return W().body},
isOverlay:!0})),_.O(_.Q7,{data:function(){return W().buttons}},{buttonViewModel:function(V,w){return _.O("div",{class:function(){return w()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.O(_.lk,{data:V.data}))}}))},"kj");
ucv.idomCompat=!0;_.iF(ucv,"reel-watch-break-view-model",{props:{data:_.vB}});var Ok=function(){return _.u.apply(this,arguments)||this};
_.p(Ok,_.u);Ok.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}}};
_.CM.Object.defineProperties(Ok.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.h((y=this.data)==null?void 0:y.renderer,LQE)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.h((y=this.data)==null?void 0:y.renderer,zc4)}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ok.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Ok.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ok.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.renderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ok.prototype,"isSurvey",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.renderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ok.prototype,"isInterstitialViewModel",null);_.J([_.k({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Ok);
_.Y(Ok,"ytd-reel-non-video-content-renderer",function(){if(Ueu!==void 0)return Ueu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return Ueu=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var Ske;_.iF(_.Fbj,"desktop-shorts-player-controls",{});var vj=function(){var y=_.u.apply(this,arguments)||this;y.isPlayerPaused=!1;y.isPlayerStarted=!1;y.showPlayerControls=!1;y.showScrubber=!1;y.autoHideJobId=0;y.modern=_.e("web_button_rework");y.overlayType=_.iC("web_shorts_expanded_overlay_type");y.panelData=void 0;y.isWatchWhileMode=!1;y.hasError=!1;y.panelShowDelayMs=1;y.scrubberComponent={};y.isFullscreen=!1;y.shouldHideOverlay=!1;y.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");y.enablePersistentAnchoredPanel=_.e("desktop_shorts_v2_persistent_anchored_panel");
y.hideWatchWhilePanel=_.e("web_shorts_hide_watch_while_panel");y.useAspectRatio=_.e("web_use_aspect_ratio");y.isPersistentPanelActive=!1;y.anchoredPanelActive=!1;y.isShortsPipActive=!1;y.smallScreenSqueezeback=!1;y.enableFlexibleOverlay=_.e("web_enable_flexible_overlay");y.overlayDensity=0;y.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};y.onWindowResized=function(){_.NM(y,
"calculateOverlayDensity",function(){y.calculateOverlayDensity()},100)};
return y};
_.p(vj,_.u);_.E=vj.prototype;_.E.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.E.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.E.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var y=_.hs().resolve(_.$t);this.isWatchWhileMode&&(_.e("web_enable_shorts_new_carousel")?_.HU.addJob(function(){y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.E.handleShowReelsCommentsOverlayCommand=function(y){y=_.h(y,hcj);this.isActive&&(y==null?0:y.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))};
_.E.updateEngagementPanelVisibility=function(y,W){y&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:W?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:y}})};
_.E.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.E.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.hs().resolve(_.YK).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.E.handleWatchWhilePanelScrimClick=function(){var y=_.hs().resolve(_.$t);this.activeWatchWhilePanel&&(y.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.E.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.E.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.e("web_enable_shorts_new_carousel")?0:void 0}}};
_.E.handlePlayerClick=function(y){var W=this,V,w;if((w=(V=window).matchMedia)!=null&&w.call(V,"(any-pointer: coarse)").matches||!y)this.showPlayerControls=!0,_.HU.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Jt(_.HU,function(){W.showPlayerControls=!1},4E3)};
_.E.isFirstReel=function(){return this.index===0};
_.E.handleMouseenter=function(){_.HU.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.E.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.E.handleScrubberEnter=function(){this.showScrubber=!0};
_.E.handleScrubberLeave=function(){this.showScrubber=!1};
_.E.maybeLogNonDefaultAspectRatio=function(){var y;(y=this.data)!=null&&y.thumbnail&&this.isActive&&.5625!==Gg4(this.data.thumbnail)&&_.oMv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.E.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var y=document.querySelector("#shorts-container");if(y){y=y.offsetWidth/2-this.playerContainer.offsetWidth/2;y=y>=368?1:y>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&y===1&&(y=0);this.isPersistentPanelActive&&(y=0);window.innerWidth<=599&&(y=2);this.overlayDensity=y;var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity)}}};
_.E.onOverlayDensityChange=function(){var y;(y=this.onOverlayDensityChanged)==null||y.call(this,this.index,this.overlayDensity);(y=_.i6(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&y.set("overlayDensity",this.overlayDensity);if(y=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))y.overlayDensity=this.overlayDensity};
_.E.isVideoContent=function(y){_.hs().resolve(_.YK);return!!_.h(y,_.Jx)};
_.E.isNonVideoContent=function(y){_.hs().resolve(_.YK);return!!_.h(y,_.Wh)};
_.E.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.CM.Object.defineProperties(vj.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var y,W;return _.e("web_enable_format_first")||((y=this.data)==null?void 0:y.adsOverlay)&&_.e("web_enable_format_first_ads_only")||((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer)&&_.e("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.e("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var y;return!this.isActive||!this.isPlayerStarted||(y=this.data)!=null&&y.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.data)==null?0:y.command)&&this.isVideoContent(this.data.command)){var W,V;if(((W=this.data)==null?0:W.adsOverlay)&&Object.keys((V=this.data)==null?void 0:V.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var w,t;if(((w=this.data)==null?0:w.reelPlayerOverlayRenderer)&&Object.keys((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
vj.prototype.onOverlayDensityChange=vj.prototype.onOverlayDensityChange;vj.prototype.calculateOverlayDensity=vj.prototype.calculateOverlayDensity;vj.prototype.maybeLogNonDefaultAspectRatio=vj.prototype.maybeLogNonDefaultAspectRatio;vj.prototype.onEngagementPanelsChanged=vj.prototype.onEngagementPanelsChanged;vj.prototype.onScrubberDataChange=vj.prototype.onScrubberDataChange;vj.prototype.updateShouldHideOverlay=vj.prototype.updateShouldHideOverlay;
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],vj.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],vj.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],vj.prototype,"index",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],vj.prototype,"isActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],vj.prototype,"isHiddenInDom",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"isPlayerPaused",void 0);_.J([_.q({selector:b4e}),_.R("design:type",Object)],vj.prototype,"isPlayerStarted",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"showPlayerControls",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"showScrubber",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"autoHideJobId",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"overlayType",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],vj.prototype,"ytdReduxBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"watchWhileEngagementPanels",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"panelData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"isWatchWhileMode",void 0);_.J([_.q(),_.R("design:type",String)],vj.prototype,"activeWatchWhilePanel",void 0);
_.J([_.q(),_.R("design:type",Object)],vj.prototype,"hasError",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"panelShowDelayMs",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"scrubberComponent",void 0);_.J([_.q({selector:_.u0,reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"isFullscreen",void 0);_.J([_.q(),_.R("design:type",Object)],vj.prototype,"shouldHideOverlay",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"enableAnchoredPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"enablePersistentAnchoredPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"hideWatchWhilePanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"useAspectRatio",void 0);
_.J([_.q({selector:_.Psb,reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"isPersistentPanelActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"anchoredPanelActive",void 0);_.J([_.q({selector:_.Sy,reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"isShortsPipActive",void 0);_.J([_.q({selector:r7j,reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"smallScreenSqueezeback",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],vj.prototype,"enableFormatFirst",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"enableFlexibleOverlay",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],vj.prototype,"overlayDensity",void 0);_.J([_.q(),_.R("design:type",Function)],vj.prototype,"onOverlayDensityChanged",void 0);
_.J([_.q(),_.M("isActive","hasError","isPlayerStarted"),_.R("design:type",Object),_.R("design:paramtypes",[])],vj.prototype,"shouldRenderPlayerElements",null);_.J([_.q(),_.M("isActive","isWatchWhileMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],vj.prototype,"watchWhileOrPersistentActive",null);_.J([_.xA("isActive","hasError","showingExpandedOverlay"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"updateShouldHideOverlay",null);
_.J([_.q({reflectToAttribute:!0}),_.M("isActive","isPlayerStarted","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vj.prototype,"shouldRenderScrubber",null);_.J([_.xA("shouldRenderScrubber"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"onScrubberDataChange",null);_.J([_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],vj.prototype,"overlayComponent",null);
_.J([_.xA("watchWhileEngagementPanels"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"onEngagementPanelsChanged",null);_.J([_.s$("#player-container"),_.R("design:type",HTMLElement)],vj.prototype,"playerContainer",void 0);_.J([_.s$("#cinematic-container"),_.R("design:type",HTMLElement)],vj.prototype,"cinematicContainer",void 0);
_.J([_.xA("isPersistentPanelActive","data.thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"maybeLogNonDefaultAspectRatio",null);_.J([_.xA("isPersistentPanelActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"calculateOverlayDensity",null);_.J([_.xA("overlayDensity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vj.prototype,"onOverlayDensityChange",null);
_.J([_.k({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],vj);
_.Y(vj,"ytd-reel-video-renderer",function(){if(Ske!==void 0)return Ske;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Ske=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var d2=function(){var y=_.u.apply(this,arguments)||this;y.isPreviousPageShorts=!1;y.index=0;y.delayedActiveIndex=0;y.playablePreviousIndex=null;y.isPlayerPaused=!1;y.isPlayerStarted=!1;y.intersectionObserverThreshold=.6;y.fitToVisibleBounds=!1;y.pageSubtype="shorts";y.enablePreviousContinuation=_.e("shorts_in_playlists_web");y.shortsPipEnabled=_.e("web_shorts_pip");y.isDark=document.documentElement.hasAttribute("dark");y.shortsViewTransitions=_.e("web_shorts_view_transitions");y.isFullscreen=!1;y.isShortsPipActive=
!1;y.buttonOverride={iconPosition:"icon-only",size:"XL"};y.anchoredPanelActive=!1;y.isActive=!1;y.smallScreenPersistentPanel=!1;y.isPersistentPanelActive=!1;y.smallScreenSqueezeBack=!1;y.enableScrollIntoViewCenter=_.e("web_scroll_into_view_center");y.formatFirst=_.e("web_enable_format_first")||_.e("web_enable_format_first_ads_only")||_.e("web_enable_format_first_organic_only");y.enableFlexibleOverlay=_.e("web_enable_flexible_overlay");y.useAspectRatio=_.e("web_use_aspect_ratio");y.isShortsInitialized=
!1;y.hidePreviousButtonImmediately=!1;y.showPreviousButtonImmediately=!1;y.endOfNextContinuation=!1;y.currentPlayerIndex=0;y.nextReelVe=_.ad(56921);y.prevReelVe=_.ad(56922);y.loopToggleOffVe=_.ad(198013);y.loopToggleOnVe=_.ad(198014);y.ambientModeToggleVe=_.ad(227860);y.reelPlayerPausedStateRendererVe=_.ad(141313);y.storedPlaybackSpeed=null;y.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"};y.onOverlayDensityChanged=function(W,V){var w;(w=y.getActiveReelVideo(W))==null||w.setAttribute("overlay-density",String(V))};
return y};
_.p(d2,_.u);_.E=d2.prototype;
_.E.deflateInactivePreviousSlides=function(){var y=_.pB("web_shorts_deflate_inactive_slides_aggressive_distance");if(y>0&&this.shortsProcessedSequence&&this.activeIndex){y=this.activeIndex-y;for(var W=0;W<=y;W++){var V=void 0;((V=this.shortsProcessedSequence[W].reelPlayerOverlayRenderer)==null?0:V.metapanel)&&this.set("shortsProcessedSequence."+W+".reelPlayerOverlayRenderer",{});V=void 0;((V=this.shortsProcessedSequence[W].adsOverlay)==null?0:V.adSlotMetadata)&&this.set("shortsProcessedSequence."+W+
".adsOverlay",{})}}};
_.E.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.E.onResize=function(){var y=_.dP(),W=y.dispatch,V=this.calculateIsSmallWidth();W.call(y,_.ig({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:V}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.E.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:_.e("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.E.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var y=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,W=y,V=0;y<250&&(W=y+this.shortsInnerContainer.clientWidth,V=24);_.qg(this.hostElement,{"--ytd-shorts-header-width":W+"px","--ytd-shorts-top-spacing":V+"px"})}};
_.E.isFirstShorts=function(y){return y?this.index===-y.length:this.index===0};
_.E.isActiveReel=function(y,W,V){V&&(W=this.calculatePrevIndex(W,V));return y===W};
_.E.onFullscreenChange=function(){if(_.e("web_fullscreen_shorts")){var y;(y=this.getActiveReelVideo(this.activeIndex))==null||y.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.hs().resolve(_.VH).close(!0)}};
_.E.engagementPanelsChanged=function(){var y;this.watchWhileEngagementPanels=(y=this.data)==null?void 0:y.engagementPanels};
_.E.unregisterPanels=function(){var y=_.hs().resolve(_.$t);if(this.watchWhileEngagementPanels)for(var W=_.N(this.watchWhileEngagementPanels),V=W.next();!V.done;V=W.next()){var w=void 0,t=void 0;V=(w=V.value.engagementPanelSectionListRenderer)==null?void 0:(t=w.identifier)==null?void 0:t.tag;y&&V&&y.panelMap.delete(V)}};
_.E.isVideoContent=function(y){return this.isVideoContentCommand(y==null?void 0:y.command)};
_.E.getActiveReelVideo=function(y){return _.i6(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+y+'"]')};
_.E.calculatePrevIndex=function(y,W){return W?y-((W==null?void 0:W.length)||0):-1};
_.E.onKeydown=function(y){var W=_.O$(y)||[];if(!_.Zit(W))if(y.code==="ArrowUp")y.preventDefault(),this.handlePrevButtonClick();else if(y.code==="ArrowDown")y.preventDefault(),this.handleNextButtonClick();else if(y.code==="KeyM")this.toggleMuteUnmuteVideo();else if(y.code==="KeyK"||y.code==="Space")this.togglePlayPauseVideo();else if((y.code==="KeyA"||y.code==="ArrowLeft")&&_.e("web_shorts_keyboard_enable_seek_shortcuts")){var V;(V=this.player)==null||V.seekBy(-5)}else if((y.code==="KeyD"||y.code===
"ArrowRight")&&_.e("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var w;(w=this.player)==null||w.seekBy(5)}};
_.E.onServiceRequestCompleted=function(y,W){y=W.data;y.continuationEndpoint&&y.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:y.entries,continuationEndpoint:y.continuationEndpoint}}):y.prevContinuationEndpoint&&y.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:y.prevEntries,prevContinuationEndpoint:y.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.E.handleEngagementPanelVisibilityChanged=function(y,W){var V=_.hs().resolve(_.$t);if(y&&V){var w,t=((w=y.identifier)==null?void 0:w.tag)||y.panelIdentifier||y.targetId;if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==t){V.hidePanel(this.activePanel);var F;this.activePanel=((F=y.identifier)==null?void 0:F.tag)||y.panelIdentifier}else this.isPersistentPanelActive=!0,_.dP().dispatch(IhC(!0)),this.anchoredPanelActive=!0,this.activePanel=t;else W==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===t&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.dP().dispatch(IhC(!1)))}};
_.E.handlePanelScrimClick=function(){var y=_.hs().resolve(_.$t);this.activePanel&&(y.hidePanel(this.activePanel),_.dP().dispatch(IhC(!1)))};
_.E.getShortsLoopSetting=function(){var y,W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return _.e("kevlar_shorts_auto_advance")?F.yield(_.Hh.getInstance(),2):F.return(!0);case 2:return(y=F.yieldResult)?F.yield(y.get("sfvles"),3):F.return(!0);case 3:return V=(W=F.yieldResult)!=null?W:!1,F.yield(y.get("sfvle"),4);case 4:return t=(w=F.yieldResult)!=null?w:!0,V?F.return(t):F.return(!0)}})};
_.E.handleSignalActionToggleLoopShortsOff=function(){var y=this,W,V,w;return _.g(function(t){switch(t.nextAddress){case 1:if(!y.player)return t.return();y.player.setLoopVideo(!1);W=_.BC();_.Sn(W,y.loopToggleOffVe);return t.yield(_.Hh.getInstance(),2);case 2:return(V=t.yieldResult)?t.yield(V.set("sfvle",!1),3):t.return();case 3:return t.yield(V.set("sfvles",!0),4);case 4:w=_.l5(),_.xF(0,203,!1),_.xF(0,204,!0),w.save(),_.B7(t)}})};
_.E.handleSignalActionToggleLoopShortsOn=function(){var y=this,W,V,w;return _.g(function(t){switch(t.nextAddress){case 1:if(!y.player)return t.return();y.player.setLoopVideo(!0);W=_.BC();_.Sn(W,y.loopToggleOnVe);return t.yield(_.Hh.getInstance(),2);case 2:return(V=t.yieldResult)?t.yield(V.set("sfvle",!0),3):t.return();case 3:return t.yield(V.set("sfvles",!0),4);case 4:w=_.l5(),_.xF(0,203,!0),_.xF(0,204,!0),w.save(),_.B7(t)}})};
_.E.handleSignalActionToggleCinematicShortsOn=function(){a5W(!0);var y;(y=this.JSC$22036_cinematicController)==null||_.$Xq(y,!0);_.Sn(_.BC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.E.handleSignalActionToggleCinematicShortsOff=function(){a5W(!1);var y;(y=this.JSC$22036_cinematicController)==null||_.$Xq(y,!1);_.Sn(_.BC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.E.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.E.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.E.unhideCurrentOverlay=function(){if(this.overlayContainer){var y=this.overlayContainer.querySelector("#experiment-overlay");y&&_.HU.addLowPriorityJob(function(){y.style.display="unset"},100)}};
_.E.getCurrentShort=function(){if(this.currentEndpoint){var y=this.currentEndpoint;if(this.isNonVideoContentCommand(y)){var W=_.h(y,_.Wh);return{reelNonVideoContentRenderer:_.h(W==null?void 0:W.renderer,_.eIq),command:y}}if(this.data){var V;W=(V=_.h(this.currentEndpoint,_.Jx))==null?void 0:V.thumbnail;var w;V=(w=this.data.overlay)==null?void 0:w.reelPlayerOverlayRenderer;_.hs().resolve(_.YK);y=this.data;var t,F;w=(t=y.overlay)==null?void 0:(F=t.shortsAdsRenderer)==null?void 0:F.adSlots;if(w!==void 0)w.length===
0?(_.ce("Shorts ads returned no ad slots."),y=void 0):(w.length>1&&_.ce("Shorts ads has more than one ad slots."),y=_.h(w[0],_.Yvq));else{var I,P;y=_.h((I=y.overlay)==null?void 0:(P=I.shortsAdsRenderer)==null?void 0:P.overlay,_.Yvq)}I=y;y=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.h(this.currentEndpoint,_.Jx),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:V,thumbnail:W,command:y,adsOverlay:I}}}};
_.E.created=function(){var y=this;this.scrollToVideoThrottle=new _.d7(function(W){var V;(V=y.getActiveReelVideo(W))==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.d7(function(W){var V;(V=y.getActiveReelVideo(W))==null||V.scrollIntoView({behavior:"auto",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.E.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.E.attached=function(){var y=this;_.hs().resolve(_.YK).registerRootElement(this);this.pageScrollElement=_.i6(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Dp(this,this.processResetAction));_.e("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.e("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var W=
y.getActiveReelVideo(y.activeIndex);y.maybeCreateIntersectionObserver();W==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"});y.shortsContainer.style.overflowY="scroll"}))};
_.E.calculateSqueezebackPanelSize=function(){var y=this,W=window.innerWidth-456-(window.innerHeight-106)*.5625;_.HU.addLowPriorityJob(function(){W<360?_.dP().dispatch(gjq(!0)):(y.hostElement.style.setProperty("--anchored-panel-width",Math.min(W,480)+"px"),_.dP().dispatch(gjq(!1)))})};
_.E.detached=function(){var y=_.hs().resolve(_.YK);y.rootElement=void 0;var W;(W=y.unsubscribeFromStore)==null||W.call(y);y.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Dp(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.E.onResizeFinished=function(y,W){var V=this,w=new ResizeObserver(function(){V.shortsContainer.style.overflowY="hidden";_.HU.addLowPriorityJob(function(){W()},100)});
w.observe(y);return w};
_.E.resetDocumentScrollTop=function(){var y,W;if((y=document)==null?0:(W=y.scrollingElement)==null?0:W.scrollTop)document.scrollingElement.scrollTop=0};
_.E.loadPage_=function(y){var W=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),y){var V;!_.e("web_enable_delay_shorts_sequence_call")&&((V=_.h(this.currentEndpoint,_.Jx))==null?0:V.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=y;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){W.isPlayerStarted&&(W.handleOnPlaybackCommand(),W.afterPlayerStarted=function(){})};
this.registerPanel(y)}};
_.E.afterPlayerStarted=function(){};
_.E.handleOnPlaybackCommand=function(){if(_.e("web_shorts_comment_stickers")&&this.isPlayerStarted){var y,W=(y=_.h(this.currentEndpoint,_.Jx))==null?void 0:y.onPlaybackCommand;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.E.maybeCreateIntersectionObserver=function(){var y=this,W=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==W){this.intersectionObserverThreshold=W;var V={rootMargin:"0px",threshold:W},w;(w=this.intersectionObserver)==null||w.disconnect();this.intersectionObserver=new IntersectionObserver(function(t){t=_.N(t);for(var F=t.next();!F.done;F=t.next())if(F=F.value,F.intersectionRatio>W){F=Number(F.target.id);if(isNaN(F))break;if(F===y.index)break;
_.$2v();y.loadVideo(F);_.rw("r_vtc")}},V);
this.observeShorts()}};
_.E.observeShorts=function(){var y=[].concat(_.GC(_.i6(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=void 0;(V=this.intersectionObserver)==null||V.observe(W)}};
_.E.initCsi=function(){_.fx("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var y={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"}},W,V;if((W=this.playerData)==null?0:(V=W.cacheMetadata)==null?0:V.isCacheHit)y.isCacheHit=!0;var w;if(W=(w=_.h(this.currentEndpoint,_.Jx))==null?void 0:
w.prefetchTaskId)y.prefetchInfo={taskId:W};_.HN(y)};
_.E.isAd=function(){var y,W;return!!((y=_.h(this.currentEndpoint,_.Jx))==null?0:(W=y.adClientParams)==null?0:W.isAd)};
_.E.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.E.getPlayerContainer=function(){var y;return(y=_.i6(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:y.playerContainer};
_.E.onPlayerStateChange=function(y){var W=this;this.isPlayerPaused=y===2;y!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?y===1&&this.index===0&&(this.isPlayerStarted||_.dP().dispatch(ti(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.dP().dispatch(ti(!0)));this.player&&!this.player.getLoopVideo()&&_.HU.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(V){var w;(w=W.player)==null||w.setLoopVideo(V)})});
this.isPlayerPaused&&_.e("web_shorts_paused_state_logging")&&_.IB(_.Xn(),[this.reelPlayerPausedStateRendererVe])};
_.E.isInBackground=function(){var y=window.document.visibilityState;return!(!y||y==="visible")};
_.E.isShortPlayable=function(){if(_.e("kevlar_playable_short_killswitch"))return!0;var y;return(y=this.playerData)!=null&&y.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.E.setNormalPlaybackSpeed=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(y.getPlayer().getPlayerPromise(),2);W=w.yieldResult;V=W.getPlaybackRate();V!==1&&(y.storedPlaybackSpeed=V,W.setPlaybackRate(1));_.B7(w)})};
_.E.restorePlaybackSpeed=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1)return y.storedPlaybackSpeed===null?V.jumpTo(0):V.yield(y.getPlayer().getPlayerPromise(),3);W=V.yieldResult;W.setPlaybackRate(y.storedPlaybackSpeed);y.storedPlaybackSpeed=null;_.B7(V)})};
_.E.playerDataChanged=function(){var y=this,W,V,w,t,F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1){W=y.getPlayer();(V=y.intersectionObserver)==null||V.disconnect();if(y.playerData){if(((w=y.playerData.videoDetails)==null?void 0:w.videoId)!==((t=W.getPlayer())==null?void 0:t.getVideoData().video_id)){F={};if(I=_.h(y.currentEndpoint,_.Jx))F.watch_endpoint=I,I.endTimeSeconds&&(F.end=I.endTimeSeconds);W.loadVideoWithPlayerResponse(y.playerData,F)}}else return L.return();return y.player?L.jumpTo(2):
L.yield(W.getPlayerPromise(),3)}L.nextAddress!=2&&(y.player=L.yieldResult,y.JSC$22036_playerStateChangeListener=y.onPlayerStateChange.bind(y),y.player.addEventListener("onStateChange",y.JSC$22036_playerStateChangeListener),_.e("kevlar_client_enable_shorts_player_bootstrap")&&_.ID(),y.scrollToVideoThrottle.fire(y.index),y.movePlayerToVideo(y.index),_.HU.addLowPriorityJob(function(){y.getShortsLoopSetting().then(function(z){var c;(c=y.player)==null||c.setLoopVideo(z)})}),_.tF2.resolve(y.player),y.player.syncVolume(),
y.getPlayer().focusOnPlayer());
_.HU.addLowPriorityJob(function(){y.observeShorts()},100);
P=y.player.getPlayerState(y.player.getPresentingPlayerType());P!==1||y.isPlayerStarted||_.dP().dispatch(ti(!0));y.updateBackNavContainerWidth();C=_.h(y.currentEndpoint,_.Jx);((d=C)==null?0:d.startTimeSeconds)&&y.player.seekTo(C.startTimeSeconds);if(y.JSC$22036_cinematicController||y.cinematicsInitializeJobId)return L.return();y.cinematicsInitializeJobId=_.HU.addLowPriorityJob(function(){y.initCinematicController();y.cinematicsInitializeJobId=void 0});
_.B7(L)})};
_.E.onShortUndoDismiss=function(){var y=this,W=N2C().pop();W!==void 0&&(_.gy(this,function(){y.showCardWithIndex(W)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.E.onShortsDismiss=function(y){if(y=y.detail.reelDismissalActionRenderer)(y=_.h(y.onDismissalCompletionRenderer,_.oBW))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:y}}}),this.scrollAndDismissCard()};
_.E.processReelNonVideoContentDismissalCommand=function(y){var W=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);y=_.h(y,ecu);this.activeDimissalTimeout=setTimeout(function(){W.scrollAndDismissCard()},Number(y==null?void 0:y.delayMs))};
_.E.scrollAndDismissCard=function(){var y=this,W=this.index;N2C().push(W);_.gy(this,function(){var V=y.getPlayableNextIndex();V!==null&&(V=y.getActiveReelVideo(V),y.hideCardWithIndex(W),V==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"}))})};
_.E.hideCardWithIndex=function(y){if(y=this.getActiveReelVideo(y))y.hidden=!0};
_.E.showCardWithIndex=function(y){if(y=this.getActiveReelVideo(y))y.hidden=!1};
_.E.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.E.activeChanged=function(y){_.dP().dispatch(_.ig({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:y}}));if(y)document.addEventListener("keydown",_.Dp(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var W;(W=this.player)==null||W.sendAbandonmentPing()}var V;(V=this.player)==null||V.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Dp(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.E.graftClientVisualElements=function(){if(this.data){var y=_.BC();_.twi(y,_.T2({response:this.reelWatchSequenceResponse}));_.U8(y,this.nextReelVe);_.U8(y,this.prevReelVe);_.e("kevlar_shorts_auto_advance")&&(_.U8(y,this.loopToggleOffVe),_.U8(y,this.loopToggleOnVe));_.U8(y,this.ambientModeToggleVe);_.IB(_.Xn(),[this.nextReelVe,this.prevReelVe]);_.e("web_shorts_paused_state_logging")&&_.U8(y,this.reelPlayerPausedStateRendererVe)}};
_.E.graftNvcRenderer=function(){var y,W,V,w,t=this.index<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(W=y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:W.command:(V=this.shortsProcessedSequence)==null?void 0:(w=V[this.index])==null?void 0:w.command;if(t&&this.isNonVideoContentCommand(t)){y=_.h(t,_.Wh);var F,I;(y=(F=_.h(y==null?void 0:y.renderer,_.eIq))==null?void 0:(I=F.loggingDirectives)==null?void 0:I.trackingParams)&&_.BC().graftServerVe(y)}};
_.E.setActiveIndex=function(){_.hs().resolve(_.YK).setActiveIndex(this.index)};
_.E.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.E.lazyUpdateMiniplayerData=function(){var y=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.HU.addLowPriorityJob(function(){y.updateMiniplayerData();y.updateMiniplayerDataJobId=void 0}))};
_.E.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.HU.cancelJob(this.updateMiniplayerDataJobId)};
_.E.updateMiniplayerData=function(){var y,W,V,w=_.hs().resolve(_.VH),t={shortsData:this.getCurrentShort(),previousButtonDisabled:!((y=this.prevButtonData)==null||!y.isDisabled),nextButtonDisabled:!((W=this.nextButtonData)==null||!W.isDisabled),playabilityStatus:(V=this.playerData)==null?void 0:V.playabilityStatus};_.bc(w,t)};
_.E.resetPlayerLocation=function(){var y=this.getPlayer();this.initialPlayerContainer&&y.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.E.movePlayerToVideo=function(y,W){var V=this;W=W===void 0?!0:W;var w=this.getActiveReelVideo(y),t=this.getPlayer();if(w){this.overlayContainer?w.appendChild(this.overlayContainer):(this.overlayContainer=_.i6(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,w.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||t.appendTo(this.overlayContainer.playerContainer,void 0,!0));var F;(F=this.player)==null||F.setSize(NaN,NaN);this.isActive||_.Jt(_.HU,function(){V.isActive=
!0});
t.style.visibility="visible";_.e("reels_web_disable_rtr_tick")||_.e("reels_web_use_pbs_first_shorts")&&y===0||_.aw("r_tr");this.currentPlayerIndex=y;w.appendChild(this.errorScreenContainer);var I;(I=this.JSC$22036_cinematicController)==null||_.H4e(I)}else W?_.HU.addLowPriorityJob(function(){V.movePlayerToVideo(V.index,!1)}):Math.random()<=_.pB("web_shorts_error_logging_threshold")&&_.GD(new _.Js("Trying to movePlayerToVideo with undefined container.",{firstAttempt:W,
index:y}))};
_.E.enableFormatFirst=function(y){return _.e("web_enable_format_first")||y.adsOverlay&&_.e("web_enable_format_first_ads_only")||y.reelPlayerOverlayRenderer&&_.e("web_enable_format_first_organic_only")};
_.E.getAspectRatio=function(y){if(y!=null&&y.thumbnail&&this.enableFormatFirst(y))return"--ytd-shorts-player-ratio: "+Gg4(y.thumbnail)};
_.E.getBackgroundImage=function(y){if(y!=null&&y.thumbnail)return(y=_.TP(y.thumbnail.thumbnails))?'background-image:url("'+y+'");':"background-color:black;"};
_.E.onPersistentPanelActiveChanged=function(){var y=this.getCurrentShort();if(y&&this.enableFormatFirst(y)&&(y==null?0:y.thumbnail)&&Gg4(y.thumbnail)!==.5625){var W;(W=this.player)==null||W.setSize(NaN,NaN)}};
_.E.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.E.moveCinematicsToVideo=function(){var y=_.i6(this.hostElement).querySelector("ytd-reel-video-renderer");(y==null?0:y.cinematicContainer)&&y.cinematicContainer!==this.shortsCinematicContainer.parentElement&&y.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.E.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.E.updatePrevButtonData=function(){var y=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(y){var W;this.prevButtonData=y=Object.assign({},y,{accessibility:{label:_.u5("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:y.isDisabled||this.index===-(((W=this.shortsProcessedPrevSequence)==null?void 0:W.length)||0),tooltip:this.isUpArrowHidden?"":_.u5("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=y=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.E.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.E.updateNextButtonData=function(){var y=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(y){var W;this.nextButtonData=y=Object.assign({},y,{accessibility:{label:_.u5("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:y.isDisabled||this.index===((W=this.shortsProcessedSequence)==null?void 0:W.length),tooltip:_.u5("NEXT_VIDEO_LABEL")||""})}};
_.E.getPlayablePreviousIndex=function(){for(var y,W=this.index-1;W>=-(((y=this.prevShortsSequence)==null?void 0:y.length)||0);W--)if(!N2C().includes(W))return W;return null};
_.E.getIndexInSequence=function(y,W){return y.findIndex(function(V){var w;return((w=_.h(V.command,_.Jx))==null?void 0:w.videoId)===W})};
_.E.handlePrevButtonClick=function(y){var W=this,V,w;return _.g(function(t){V=W.getPlayablePreviousIndex();if(V===null)return t.return();W.gestureType=((w=y)==null?void 0:w.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";V===0&&(W.hidePreviousButtonImmediately=!0);if(W.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){W.transitionToVideoThrottle.fire(V)}),t.return();
W.scrollToVideoThrottle.fire(V);_.B7(t)})};
_.E.getPlayableNextIndex=function(){for(var y,W=this.index+1;W<(((y=this.shortsProcessedSequence)==null?void 0:y.length)||0);W++)if(!N2C().includes(W))return W;return null};
_.E.handleNextButtonClick=function(y,W){var V=this,w,t;return _.g(function(F){w=V.getPlayableNextIndex();if(w===null)return F.return();w===1&&(V.showPreviousButtonImmediately=!0);V.gestureType=((t=y)==null?void 0:t.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";W&&(V.gestureType=W);if(V.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){V.transitionToVideoThrottle.fire(w)}),F.return();
V.scrollToVideoThrottle.fire(w);_.B7(F)})};
_.E.handleReelNavigateCommand=function(y,W,V){(y=_.h(y,ciP))&&W&&y.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(V)};
_.E.loadVideo=function(y,W){W=W===void 0?!1:W;if(y!==this.currentPlayerIndex){_.dP().dispatch(ti(!1));if(this.isAd()&&!W){var V;(V=this.player)==null||V.notifyShortsAdSwipeEvent()}if((W=this.JSC$22036_cinematicController)!=null){var w;(w=W.currentCinematicEffect)==null||w.pause()}if((w=this.JSC$22036_cinematicController)!=null){var t;(t=w.currentCinematicEffect)==null||t.clear()}w=y>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(w));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var F,I,P,C;t=y<0?(F=this.shortsProcessedPrevSequence)==null?void 0:(I=F[this.shortsProcessedPrevSequence.length+y])==null?void 0:I.command:(P=this.shortsProcessedSequence)==null?void 0:(C=P[y])==null?void 0:C.command;this.index=y;this.gestureType||(this.gestureType=w?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
t&&this.isVideoContentCommand(t)&&(this.ytComponentBehavior.resolveCommand(t,{form:{createScreenConfig:{clickedVisualElement:w?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(t&&this.isNonVideoContentCommand(t)){this.currentEndpoint=t;this.data=void 0;F=_.BC();I=_.h(t,_.Wh);var d,L;(I=(d=_.h(I==null?void 0:I.renderer,_.eIq))==null?void 0:(L=d.screenLoggingData)==null?void 0:L.screenVeType)&&_.qx(F,I);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(d=this.getActiveReelVideo(y))&&d.appendChild(this.overlayContainer)}var z,c;if(((z=this.reelWatchSequenceResponse)==null?0:z.continuationEndpoint)&&((c=this.reelWatchSequenceResponse)==null?0:c.entries)&&y===this.reelWatchSequenceResponse.entries.length-1){var K,f;z={contentPlaybackContext:_.$1({},(f=_.h((K=this.currentEndpoint)==null?void 0:K.commandMetadata,_.dw))==null?void 0:f.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:z})}var U,l,x;((U=this.reelWatchSequenceResponse)==null?0:U.prevContinuationEndpoint)&&y===-(((l=this.reelWatchSequenceResponse)==null?void 0:(x=l.prevEntries)==null?void 0:x.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.E.setMiniplayerPreview=function(y){y=(y===void 0?0:y)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var W,V,w=_.hs().resolve(_.VH),t={shortsData:void 0,shortsPreviewThumbnail:y?(W=this.shortsProcessedSequence)==null?void 0:(V=W[y])==null?void 0:V.thumbnail:void 0};_.bc(w,t)};
_.E.updateTitle=function(y){var W,V;y=(y==null?0:y.adSlots)?"":(V=y==null?void 0:(W=y.videoDetails)==null?void 0:W.title)!=null?V:"";_.h1(this.hostElement,"yt-update-title",y)};
_.E.registerPanel=function(y){var W=_.hs().resolve(_.$t);if(W){y=_.N(y.engagementPanels||[]);for(var V=y.next();!V.done;V=y.next()){V=V.value;var w=V.engagementPanelSectionListRenderer,t=void 0,F=void 0,I=void 0,P=void 0,C=((t=w)==null?void 0:t.targetId)||((F=w)==null?void 0:F.panelIdentifier)||((I=w)==null?void 0:(P=I.identifier)==null?void 0:P.tag);t=w=void 0;(t=(w=W).registerPanelContent)==null||t.call(w,C,V)}}};
_.E.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.dP().dispatch(ti(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.dP().dispatch(IhC(!1));var y=_.hs().resolve(_.YK);y.dismissedIndices=[];y.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.hs().resolve(_.VH).close(!0)};
_.E.processAppendReelWatchSequenceContinuationEntriesAction=function(y){var W=this,V;(V=this.intersectionObserver)==null||V.disconnect();y=y.appendReelWatchSequenceContinuationEntriesAction;if(y==null?0:y.entries){var w;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.GC(((w=this.reelWatchSequenceResponse)==null?void 0:w.entries)||[]),_.GC(y.entries)),continuationEndpoint:y.continuationEndpoint})}else if(y==null?0:y.prevEntries){var t;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.GC(((t=this.reelWatchSequenceResponse)==null?void 0:t.prevEntries)||[]),_.GC(y.prevEntries)),prevContinuationEndpoint:y.prevContinuationEndpoint});_.HU.addLowPriorityJob(function(){W.movePlayerToVideo(W.index);var F;(F=W.getActiveReelVideo(W.index))==null||F.scrollIntoView({block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.HU.addLowPriorityJob(function(){W.observeShorts()},100)};
_.E.processWatchSequence=function(y){var W=this;return y.map(function(V){V=V.command;if(W.isVideoContentCommand(V)){var w=_.h(V,_.Jx);return{reelPlayerOverlayRenderer:_.h(w==null?void 0:w.overlay,_.hI2),thumbnail:w.thumbnail,command:V}}return W.isNonVideoContentCommand(V)?(w=_.h(V,_.Wh),{reelNonVideoContentRenderer:_.h(w==null?void 0:w.renderer,_.eIq),command:V}):{command:V}})};
_.E.calculateIntersectionObserverThreshold=function(){var y=_.i6(this.hostElement).querySelector("ytd-reel-video-renderer"),W=1;(y==null?0:y.offsetHeight)&&(y==null?0:y.offsetWidth)&&(W=Math.min(y.offsetHeight,this.shortsContainer.offsetHeight)/y.offsetHeight*(Math.min(y.offsetWidth,this.shortsContainer.offsetWidth)/y.offsetWidth));return Math.round(W*.6*10)/10};
_.E.isVideoContentCommand=function(y){_.hs().resolve(_.YK);return!!_.h(y,_.Jx)};
_.E.isNonVideoContentCommand=function(y){_.hs().resolve(_.YK);return!!_.h(y,_.Wh)};
_.E.initCinematicController=function(){var y=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22036_cinematicController=new _.w2(this.shortsCinematicContainer,this.player);var W,V=_.h((W=this.data)==null?void 0:W.background,_.Kx);_.nBv(this.JSC$22036_cinematicController,V);_.$Xq(this.JSC$22036_cinematicController,X0e(V));_.jkj(this.JSC$22036_cinematicController);_.HU.addLowPriorityJob(function(){y.moveCinematicsToVideo()})}};
_.E.handleMiniplayerNavigateShorts=function(y){y==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():y==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.E.handleSignalActionToggleShortsPictureInPicture=function(){if(_.hs().resolve(_.VH).pictureInPictureSupported()){var y=_.hs().resolve(_.YK);if(_.e("web_shorts_pip")){var W=_.hs().resolve(_.VH);y.isShortsPipActive()?W.deactivate():W.isMiniplayerActive()||(_.s8().shortsPipActivation=!0,_.zC3(W))}}else(y=this.player)==null||y.togglePictureInPicture()};
_.CM.Object.defineProperties(d2.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.reelWatchSequenceResponse)!=null&&y.prevEntries)return this.processWatchSequence([].concat(_.GC(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var y=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!y)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var W=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.GC(this.prevShortsSequence.slice(0,W)),[y],_.GC(this.prevShortsSequence.slice(W+
1)))}W=this.index+this.shortsProcessedPrevSequence.length;y.thumbnail=this.shortsProcessedPrevSequence[W].thumbnail;return[].concat(_.GC(this.shortsProcessedPrevSequence.slice(0,W)),[y],_.GC(this.shortsProcessedPrevSequence.slice(W+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.reelWatchSequenceResponse)!=null&&y.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var y=this.getCurrentShort();if(!y||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[y];if(y==null||!y.reelNonVideoContentRenderer){var W=this.getIndexInSequence(this.shortsSequence,_.h(this.currentEndpoint,_.Jx).videoId);if(this.index===0&&W!==-1)return this.currentPlayerIndex=this.index=W,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.GC(this.shortsSequence.slice(0,this.index)),[y],_.GC(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){y.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var V,w,t,F;W=((w=_.h((V=this.shortsProcessedSequence[0])==null?void 0:V.command,_.Jx))==null?void 0:w.videoId)===((F=_.h((t=this.shortsSequence[0])==null?void 0:t.command,_.Jx))==null?void 0:F.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.GC(this.shortsProcessedSequence.slice(0,
this.index)),[y],_.GC(this.shortsSequence.slice(W)))}return[y].concat(_.GC(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var y=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;y&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(y)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 y,W;return this.index===((y=this.reelWatchSequenceResponse)==null?void 0:(W=y.entries)==null?void 0:W.length)}var V;return!((V=this.reelWatchSequenceResponse)==null?0:V.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var y;(y=this.delayedActiveIndexUpdateDebouncer)==null||y.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return this.isShortPlayable()||((W=_.h((y=this.data)==null?void 0:y.watchStatus,_.qVz))==null?void 0:(V=W.style)==null?void 0:V.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var y=this,W=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),V;if((this.data||W)&&(((V=this.data)==null?0:V.engagementPanels)||this.isAd()||W)){W=!1;this.activePanel="shorts-comments-panel";var w;V=_.N(((w=this.data)==null?void 0:w.engagementPanels)||[]);for(w=V.next();!w.done;w=V.next()){w=w.value.engagementPanelSectionListRenderer;var t=void 0,F=void 0,I=void 0,P=void 0;if((((t=w)==null?void 0:(F=t.identifier)==
null?void 0:F.tag)||((I=w)==null?void 0:I.targetId)||((P=w)==null?void 0:P.panelIdentifier))===this.activePanel){W=!0;break}}if(this.isPersistentPanelActive){var C=_.hs().resolve(_.$t);_.Jt(_.HU,function(){C.showPanel(y.activePanel,void 0,void 0,void 0,null)},100)}var d;
V=[].concat(_.GC(Object.values(((d=this.data)==null?void 0:d.engagementPanels)||{})));if(_.e("enable_preview_panel_for_shorts_search_suggested_action")){var L,z,c,K,f;((K=_.h((L=this.data)==null?void 0:(z=L.overlay)==null?void 0:(c=z.reelPlayerOverlayRenderer)==null?void 0:c.metapanel,_.cr6))==null?void 0:(f=K.metadataItems)==null?void 0:f.find(function(U){var l,x;return((l=_.h(U,oj3))==null?void 0:(x=l.icon)==null?void 0:x.iconType)==="SEARCH"}))!==void 0&&V.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}d=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);L=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return d===void 0&&L===void 0||(d==null?0:d.isDisabled)||(L==null?void 0:L.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!W?(W=V==null?void 0:V.findIndex(function(U){var l,
x;return((l=U.engagementPanelSectionListRenderer)==null?void 0:(x=l.identifier)==null?void 0:x.tag)==="shorts-comments-panel"}),W===-1||W===void 0||V!=null&&V.splice(W,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.u5("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.u5("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:_.u5("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.u5("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(_.GC(Object.values(V||
{})))):V}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.shortsProcessedSequence)==null?void 0:y[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V,w;if((W=this.playerData)==null?0:(V=W.playabilityStatus)==null?0:(w=V.errorScreen)==null?0:w.playerInterstitialRenderer)return _.HU.addLowPriorityJob(function(){y.movePlayerToVideo(y.index)}),this.playerData.playabilityStatus.errorScreen;
var t,F;return((t=this.data)==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((F=this.data)==null?0:F.watchStatus)&&_.h(this.data.watchStatus,_.fgz)?(_.HU.addLowPriorityJob(function(){y.movePlayerToVideo(y.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.CM.Object.defineProperties(d2,{template:{configurable:!0,enumerable:!0,get:function(){if(pjd===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);pjd=y}y=pjd;return y}}});
d2.prototype.onNextButtonDataChange=d2.prototype.onNextButtonDataChange;d2.prototype.onPrevButtonDataChange=d2.prototype.onPrevButtonDataChange;d2.prototype.onPersistentPanelActiveChanged=d2.prototype.onPersistentPanelActiveChanged;d2.prototype.lazyUpdateMiniplayerData=d2.prototype.lazyUpdateMiniplayerData;d2.prototype.onShortsPipActiveChanged=d2.prototype.onShortsPipActiveChanged;d2.prototype.setActiveIndex=d2.prototype.setActiveIndex;d2.prototype.graftNvcRenderer=d2.prototype.graftNvcRenderer;
d2.prototype.graftClientVisualElements=d2.prototype.graftClientVisualElements;d2.prototype.onActiveChanged=d2.prototype.onActiveChanged;d2.prototype.onShortsDismiss=d2.prototype.onShortsDismiss;d2.prototype.onShortUndoDismiss=d2.prototype.onShortUndoDismiss;d2.prototype.playerDataChanged=d2.prototype.playerDataChanged;d2.prototype.afterPlayerStarted=d2.prototype.afterPlayerStarted;d2.prototype.unhideCurrentOverlay=d2.prototype.unhideCurrentOverlay;d2.prototype.onServiceRequestCompleted=d2.prototype.onServiceRequestCompleted;
d2.prototype.engagementPanelsChanged=d2.prototype.engagementPanelsChanged;d2.prototype.onFullscreenChange=d2.prototype.onFullscreenChange;d2.prototype.onResize=d2.prototype.onResize;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.TK.YtPageBehavior),_.R("design:type",Object)],d2.prototype,"ytPageBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],d2.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.Gm),_.R("design:type",Object)],d2.prototype,"ironResizableBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],d2.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],d2.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],d2.prototype,"ytdReduxBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"playerData",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"reelWatchSequenceResponse",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"cachedReelWatchSequenceResponse",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"cachedSequenceParams",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"cachedSequenceProvider",void 0);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"currentEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"nextButtonData",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"prevButtonData",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"isPreviousPageShorts",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"index",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"delayedActiveIndex",void 0);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"playablePreviousIndex",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"player",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"isPlayerPaused",void 0);_.J([_.q({selector:b4e}),_.R("design:type",Object)],d2.prototype,"isPlayerStarted",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"intersectionObserver",void 0);_.J([_.q(),_.R("design:type",Number)],d2.prototype,"cinematicsInitializeJobId",void 0);
_.J([_.q(),_.R("design:type",Number)],d2.prototype,"updateMiniplayerDataJobId",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"fitToVisibleBounds",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"pageSubtype",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],d2.prototype,"enablePreviousContinuation",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"shortsPipEnabled",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"isDark",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"shortsViewTransitions",void 0);_.J([_.q({selector:_.u0,reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"isFullscreen",void 0);_.J([_.q({selector:_.Sy,reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"isShortsPipActive",void 0);
_.J([_.s$("#shorts-inner-container"),_.R("design:type",HTMLElement)],d2.prototype,"shortsInnerContainer",void 0);_.J([_.s$("#back-nav-button ytd-button-renderer"),_.R("design:type",_.cK)],d2.prototype,"backNavButton",void 0);_.J([_.s$("#shorts-container"),_.R("design:type",HTMLElement)],d2.prototype,"shortsContainer",void 0);_.J([_.KP("error-screen"),_.R("design:type",HTMLElement)],d2.prototype,"errorScreenContainer",void 0);
_.J([_.KP("player"),_.R("design:type",Object)],d2.prototype,"playerElement",void 0);_.J([_.KP("shorts-cinematic-container"),_.R("design:type",HTMLElement)],d2.prototype,"shortsCinematicContainer",void 0);_.J([_.KP("initial-player-container"),_.R("design:type",HTMLElement)],d2.prototype,"initialPlayerContainer",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"buttonOverride",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"anchoredPanelActive",void 0);
_.J([_.q(),_.R("design:type",String)],d2.prototype,"activePanel",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"isActive",void 0);_.J([_.q({selector:r7j,reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"smallScreenPersistentPanel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"isPersistentPanelActive",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"smallScreenSqueezeBack",void 0);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"enableScrollIntoViewCenter",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"formatFirst",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"enableFlexibleOverlay",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],d2.prototype,"useAspectRatio",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"panelContainer",void 0);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"overlayContainer",void 0);_.J([_.q(),_.R("design:type",Object)],d2.prototype,"isShortsInitialized",void 0);_.J([_.M("reelWatchSequenceResponse"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"prevShortsSequence",null);_.J([_.M("data","prevShortsSequence"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"shortsProcessedPrevSequence",null);
_.J([_.M("reelWatchSequenceResponse"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"shortsSequence",null);_.J([_.M("data","shortsSequence"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"shortsProcessedSequence",null);
_.J([_.q({reflectToAttribute:!0}),_.M("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d2.prototype,"isUpArrowHidden",null);_.J([_.q({reflectToAttribute:!0}),_.M("reelWatchSequenceResponse","index","endOfNextContinuation"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d2.prototype,"isDownArrowHidden",null);
_.J([_.q(),_.M("index"),_.R("design:type",Number),_.R("design:paramtypes",[])],d2.prototype,"activeIndex",null);_.J([_.M("isShortPlayable","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d2.prototype,"shouldRenderOfflineContent",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onResize",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"anchoredEngagementPanels",null);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"watchWhileEngagementPanels",void 0);_.J([_.xA("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onFullscreenChange",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"engagementPanelsChanged",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],d2.prototype,"onServiceRequestCompleted",null);_.J([_.M("data","shortsSequence","index"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"activeReel",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"unhideCurrentOverlay",null);
_.J([_.xA("isPlayerStarted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"afterPlayerStarted",null);_.J([_.M("playerData","reelWatchSequenceResponse","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],d2.prototype,"errorScreen",null);_.J([_.M("errorScreen"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d2.prototype,"hasError",null);
_.J([_.xA("playerData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],d2.prototype,"playerDataChanged",null);_.J([_.l6("yt-dismissible-item-undo-feedback"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onShortUndoDismiss",null);_.J([_.l6("yt-disable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],d2.prototype,"onShortsDismiss",null);
_.J([_.Jc("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onActiveChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"graftClientVisualElements",null);_.J([_.xA("currentPlayerIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"graftNvcRenderer",null);
_.J([_.xA("index"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"setActiveIndex",null);_.J([_.xA("isShortsPipActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onShortsPipActiveChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"lazyUpdateMiniplayerData",null);
_.J([_.q(),_.R("design:type",Object)],d2.prototype,"onOverlayDensityChanged",void 0);_.J([_.xA("isPersistentPanelActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onPersistentPanelActiveChanged",null);_.J([_.xA("index","data","isUpArrowHidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onPrevButtonDataChange",null);
_.J([_.xA("index","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d2.prototype,"onNextButtonDataChange",null);_.J([_.k({is:"ytd-shorts"})],d2);_.mP.registerService(_.Wkd,d2);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("JzFVk");
var aDP=function(y){return _.O("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Xc4(y.data.ctaButton,{buttonViewModel:{}}),_.O(_.Lv,{text:y.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var GKe;var rNt;var D5=function(){return _.u.apply(this,arguments)||this};
_.p(D5,_.u);D5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
D5.prototype.computeBlueBottomLink=function(y){return y};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],D5.prototype,"data",void 0);_.J([_.q({computed:"computeIcon_(data.bottomIcon)"}),_.R("design:type",String)],D5.prototype,"bottomIcon",void 0);
_.J([_.q({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.R("design:type",Boolean)],D5.prototype,"enableBlueBottomLink",void 0);_.J([_.k({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],D5);
_.Y(D5,"ytd-web-answer-renderer",function(){if(rNt!==void 0)return rNt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return rNt=y},{mode:_.qM("kevlar_poly_si_batch_j035")?1:2});var bxC;var ll=function(){var y=_.u.apply(this,arguments)||this;y.hasChipBar=!1;return y};
_.p(ll,_.u);ll.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}}};
ll.prototype.computeHasChipBar=function(y){return!(y==null||!y.chipBar)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ll.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.R("design:type",Object)],ll.prototype,"hasChipBar",void 0);_.J([_.k({is:"ytd-search-header-renderer",disableElementRegistration:!0})],ll);
_.Y(ll,"ytd-search-header-renderer",function(){if(bxC!==void 0)return bxC;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return bxC=y},{mode:1});var QZj;var xB=function(){return _.u.apply(this,arguments)||this};
_.p(xB,_.u);xB.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xB.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-page-continuation"})],xB);
_.Y(xB,"ytd-page-continuation",function(){if(QZj!==void 0)return QZj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return QZj=y},{mode:1});var Zxu;var y7m;var Wke;var kB=function(){return _.u.apply(this,arguments)||this};
_.p(kB,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kB.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],kB);
_.Y(kB,"ytd-watch-card-one-vs-one-event",function(){if(Wke!==void 0)return Wke;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Wke=y},{mode:1});var sO=function(){return _.u.apply(this,arguments)||this};
_.p(sO,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sO.prototype,"data",void 0);_.J([_.k({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],sO);
_.Y(sO,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(y7m!==void 0)return y7m;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return y7m=y},{mode:1});var Vgu;var A7=function(){return _.u.apply(this,arguments)||this};
_.p(A7,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],A7.prototype,"data",void 0);_.J([_.k({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],A7);
_.Y(A7,"ytd-banner-and-box-hero-image-renderer",function(){if(Vgu!==void 0)return Vgu;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Vgu=y},{mode:1});var w0j;var YB=function(){var y=_.u.apply(this,arguments)||this;y.modern=_.e("web_modern_buttons");return y};
_.p(YB,_.u);YB.prototype.computeIcon=function(){var y,W,V=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(V)return _.D8(V)};
YB.prototype.computeButtonShape=function(){var y;return{buttonText:_.OT((y=this.data)==null?void 0:y.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.CM.Object.defineProperties(YB.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"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],YB.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],YB.prototype,"modern",void 0);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],YB.prototype,"buttonColor",null);
_.J([_.k({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],YB);
_.Y(YB,"ytd-call-to-action-button-renderer",function(){if(w0j!==void 0)return w0j;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return w0j=y},{mode:1});var tgj;var B0=function(){return _.u.apply(this,arguments)||this};
_.p(B0,_.u);B0.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.i6(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.f5(this.data.leftThumbnail.thumbnails,216)+")")};
B0.prototype.onLeftThumbnailChanged=B0.prototype.onLeftThumbnailChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],B0.prototype,"data",void 0);_.J([_.xA("data.leftThumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],B0.prototype,"onLeftThumbnailChanged",null);_.J([_.k({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],B0);
_.Y(B0,"ytd-collage-hero-image-renderer",function(){if(tgj!==void 0)return tgj;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return tgj=y},{mode:1});var Fku;var J7=function(){return _.u.apply(this,arguments)||this};
_.p(J7,_.u);J7.prototype.computeStyle=function(y){return y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],J7.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],J7.prototype,"componentStyle",void 0);_.J([_.k({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],J7);
_.Y(J7,"ytd-single-hero-image-renderer",function(){if(Fku!==void 0)return Fku;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Fku=y},{mode:1});var EBv;var Rk=function(){return _.u.apply(this,arguments)||this};
_.p(Rk,_.u);_.E=Rk.prototype;
_.E.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:_.e("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.E.computeSubtitle=function(y){if(this.data){var W;if(this.data.upcomingEventData){y=_.OT(y.subtitle);var V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(W=_.CO(_.Z1(y,V)))}else W=y.subtitle;return W}};
_.E.onHeroTap=function(y){y.preventDefault();var W=this.data&&this.data.navigationEndpoint;!W||!_.c5(_.O$(y),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.c5(_.O$(y),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.e("kevlar_watchcard_hero_video_renderer_killswitch")?_.h1(this.hostElement,"yt-navigate",{navigationEndpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.E.computeHeroTabIndex=function(y){return y&&y.simpleText?-1:0};
_.E.computeHeroRole=function(y){return y&&y.simpleText?"":"link"};
_.E.computeIsReminderButtonPresent=function(y){return!(!y||!y.reminderButton)};
_.E.computeHideBottomItems=function(y){return!(this.computeIsReminderButtonPresent(y)||y.subtitle)};
_.E.dataChanged=function(){var y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;((W=_.h(y==null?void 0:y.commandMetadata,_.Xf))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(y)};
Rk.prototype.dataChanged=Rk.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Rk.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Rk.prototype,"data",void 0);
_.J([_.q({computed:"computeSubtitle(data)"}),_.R("design:type",String)],Rk.prototype,"subtitle",void 0);_.J([_.q({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Rk.prototype,"isReminderButtonPresent",void 0);_.J([_.q({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Rk.prototype,"hideBottomItems",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rk.prototype,"dataChanged",null);_.J([_.k({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Rk);
_.Y(Rk,"ytd-watch-card-hero-video-renderer",function(){if(EBv!==void 0)return EBv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return EBv=y},{mode:1});var NTe;var jg=function(){return _.u.apply(this,arguments)||this};
_.p(jg,_.u);_.E=jg.prototype;_.E.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"}}}};
_.E.computeTitleBadges=function(y){return y?[y]:[]};
_.E.computeHeaderStyle=function(y){return y?y.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.E.computeAvatarAriaLabel=function(y){if(y){var W,V,w,t;return(t=(W=y.avatar)==null?void 0:(V=W.accessibility)==null?void 0:(w=V.accessibilityData)==null?void 0:w.label)!=null?t:_.OT(y==null?void 0:y.title)}};
_.E.computeAvatarHeight=function(y){return y==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.E.computeBadgeRowClass=function(y){return(y==null?0:y[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jg.prototype,"data",void 0);_.J([_.q({computed:"computeTitleBadges(data.titleBadge)"}),_.R("design:type",Array)],jg.prototype,"titleBadges",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.R("design:type",String)],jg.prototype,"headerStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.R("design:type",String)],jg.prototype,"badgeRowClass",void 0);_.J([_.k({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],jg);
_.Y(jg,"ytd-watch-card-rich-header-renderer",function(){if(NTe!==void 0)return NTe;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return NTe=y},{mode:1});var I5E;var gBW;var $B=function(){return _.u.apply(this,arguments)||this};
_.p($B,_.u);$B.prototype.onMetadataTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.c5(_.O$(y),this.hostElement,["A".toString()])&&_.h1(this.hostElement,"yt-navigate",{endpoint:W})};
_.CM.Object.defineProperties($B.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 y;if(this.data.upcomingEventData){var W=_.OT(this.data.subtitle),V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(y=_.CO(_.Z1(W,V)))}else y=this.data.subtitle;return y}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$B.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data.style"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],$B.prototype,"isCondensed",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$B.prototype,"subtitle",null);
_.J([_.k({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],$B);
_.Y($B,"ytd-watch-card-compact-video-renderer",function(){if(gBW!==void 0)return gBW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return gBW=y},{mode:1});var Plj;var n4=function(){return _.u.apply(this,arguments)||this};
_.p(n4,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],n4.prototype,"data",void 0);_.J([_.k({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],n4);
_.Y(n4,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Plj!==void 0)return Plj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Plj=y},{mode:1});var H0=function(){return _.u.apply(this,arguments)||this};
_.p(H0,_.u);H0.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}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],H0.prototype,"ytRendererStamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],H0.prototype,"data",void 0);_.J([_.k({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],H0);
_.Y(H0,"ytd-vertical-watch-card-list-renderer",function(){if(I5E!==void 0)return I5E;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return I5E=y},{mode:1});var Clq;var XO=function(){var y=_.u.apply(this,arguments)||this;y.ariaExpanded="false";return y};
_.p(XO,_.u);_.E=XO.prototype;_.E.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.E.dataChanged=function(){var y;this.currentSeasonIndex=((y=this.data)==null?void 0:y.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.E.computeEpisodesInfo=function(y,W,V){if(y!==void 0&&W.length===y.length)return y[V]};
_.E.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.E.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.E.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.E.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.E.getUppercaseSimpleString=function(y){return this.ytRendererBehavior.getSimpleString(y).toUpperCase()};
_.E.updateCurrentSeasonIndexFromBinding=function(y){this.currentSeasonIndex=y.detail.value};
XO.prototype.onIronOverlayClosed=XO.prototype.onIronOverlayClosed;XO.prototype.currentSeasonIndexChanged=XO.prototype.currentSeasonIndexChanged;XO.prototype.dataChanged=XO.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],XO.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",String)],XO.prototype,"label",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],XO.prototype,"currentSeasonIndex",void 0);_.J([_.q({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.R("design:type",Object)],XO.prototype,"episodesInfo",void 0);_.J([_.q({value:"false"}),_.R("design:type",Object)],XO.prototype,"ariaExpanded",void 0);_.J([_.s$("#lists"),_.R("design:type",Object)],XO.prototype,"lists",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XO.prototype,"dataChanged",null);_.J([_.Jc("currentSeasonIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XO.prototype,"currentSeasonIndexChanged",null);_.J([_.l6("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],XO.prototype,"onIronOverlayClosed",null);
_.J([_.k({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],XO);
_.Y(XO,"ytd-watch-card-section-dropdown-renderer",function(){if(Clq!==void 0)return Clq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Clq=y},{mode:1});var O4v;var ak=function(){var y=_.u.apply(this,arguments)||this;y.isSearch=!1;return y};
_.p(ak,_.u);ak.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}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ak.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],ak.prototype,"isSearch",void 0);_.J([_.k({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],ak);
_.Y(ak,"ytd-watch-card-section-sequence-renderer",function(){if(O4v!==void 0)return O4v;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return O4v=y},{mode:1});var Xc4=_.nn({buttonViewModel:_.lk});_.zY(aDP);_.Sl(aDP,"ytd-button-banner-view-model",{propNames:["data"]});var Gg=function(){var y=_.u.apply(this,arguments)||this;y.isSearch=!1;return y};
_.p(Gg,_.u);
Gg.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"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Gg.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],Gg.prototype,"rounded",void 0);_.J([_.q(),_.R("design:type",Object)],Gg.prototype,"isSearch",void 0);
_.J([_.k({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Gg);
_.Y(Gg,"ytd-universal-watch-card-renderer",function(){if(Zxu!==void 0)return Zxu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Zxu=y},{mode:1});var vBE;_.iF(_.eY(function(y){var W=y.data;var V;y=!((V=_.hs().resolve(_.eX(_.va)))==null||!V());V={};return _.O("overview-message-view-model",{class:_.kS("ytwOverviewMessageViewModelHost",(V.ytwOverviewMessageViewModelDarkBackground=y,V.ytwOverviewMessageViewModelLightBackground=!y,V))},_.O(_.v,{cond:function(){return W().primaryImage},
then:function(w){return _.O(_.ca,{data:w,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.O(_.v,{cond:function(){return W().primaryText},
then:function(){return _.O("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.O(_.Lv,{text:function(){return W().primaryText}}))}}),_.O(_.v,{cond:function(){return W().secondaryText},
then:function(){return _.O("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.O(_.Lv,{text:function(){return W().secondaryText}}))}}))},"fj"),"overview-message-view-model",{props:{data:_.vB}});_.Sl(_.ox6,"ytd-overview-answer-view-model",{propNames:["data"]});var rT=function(){return _.u.apply(this,arguments)||this};
_.p(rT,_.u);rT.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"}}}};
rT.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],rT.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rT.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],rT.prototype,"isSearch",void 0);
_.J([_.k({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],rT);
_.Y(rT,"ytd-secondary-search-container-renderer",function(){if(vBE!==void 0)return vBE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return vBE=y},{mode:1});var dX4;var bl=function(){var y=_.u.apply(this,arguments)||this;y.renderSecondarySearchContainer=!1;y.isSearch=!1;return y};
_.p(bl,_.u);_.E=bl.prototype;_.E.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"}}}};
_.E.created=function(){var y=this;this.boundStampSecondarySearchContainerIfFits=function(){y.stampSecondarySearchContainerIfFits()};
_.Z7("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.E.computeIsSearchFrictionPage=function(y){var W,V,w,t,F;y=y==null?void 0:(W=y.primaryContents)==null?void 0:(V=W.sectionListRenderer)==null?void 0:(w=V.contents)==null?void 0:(t=w[0])==null?void 0:(F=t.itemSectionRenderer)==null?void 0:F.contents;if(!y)return!1;W=_.N(y);for(V=W.next();!V.done;V=W.next())if(w=void 0,(w=V.value)==null?0:w.searchFrictionViewModel)return!0;return!1};
_.E.computeShowSecondaryColumn=function(y,W){return!!(W&&W.secondaryContents&&y)};
_.E.activeChanged=function(){var y=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Dp(this,this.debounceStampSecondarySearchContainerIfFits)),_.Er(function(){y.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Dp(this,this.debounceStampSecondarySearchContainerIfFits))};
_.E.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.E.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.E.debounceStampSecondarySearchContainerIfFits=function(){_.NM(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.E.onRetrieveLocation=function(y,W){W.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);y.stopPropagation()};
_.E.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
bl.prototype.dataChanged=bl.prototype.dataChanged;bl.prototype.onRetrieveLocation=bl.prototype.onRetrieveLocation;bl.prototype.persistentGuideChanged=bl.prototype.persistentGuideChanged;bl.prototype.activeChanged=bl.prototype.activeChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],bl.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],bl.prototype,"ironResizableBehavior",void 0);_.J([_.q(),_.R("design:type",Boolean)],bl.prototype,"active",void 0);_.J([_.q(),_.R("design:type",Object)],bl.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],bl.prototype,"useBiggerThumbs",void 0);_.J([_.q({reflectToAttribute:!0,value:function(){return _.iC("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],bl.prototype,"biggerThumbsStyle",void 0);_.J([_.q(),_.R("design:type",Object)],bl.prototype,"renderSecondarySearchContainer",void 0);_.J([_.q({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.R("design:type",Boolean)],bl.prototype,"showSecondaryColumn",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.R("design:type",Boolean)],bl.prototype,"isSearchFrictionPage",void 0);
_.J([_.q(),_.R("design:type",Object)],bl.prototype,"isSearch",void 0);_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bl.prototype,"activeChanged",null);_.J([_.xA("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bl.prototype,"persistentGuideChanged",null);
_.J([_.l6("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],bl.prototype,"onRetrieveLocation",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bl.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],bl);
_.Y(bl,"ytd-two-column-search-results-renderer",function(){if(dX4!==void 0)return dX4;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return dX4=y},{mode:1});var QA=function(){var y=_.u.apply(this,arguments)||this;y.hasSearchHeader=!1;y.hasSecondaryContent=!1;y.hasBiggerThumbs=_.e("enable_desktop_search_bigger_thumbs");y.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return y};
_.p(QA,_.u);_.E=QA.prototype;_.E.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:_.FC(["aa","eocs"])}}};
_.E.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.E.loadPage_=function(y){this.initCsi();y&&(this.data=y,_.Z7("REFINEMENTS_TUPLE",["FromSearchResponse",y.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ci(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.E.initCsi=function(){_.fx("results",["ol","cpt"])};
_.E.updateTitle=function(){var y=_.to(window.location.href,"q");y||(y=_.to(window.location.href,"search_query"));_.h1(this.hostElement,"yt-update-title",y||"")};
_.E.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.E.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.e("web_srp_data_changed_terminate_imp_killswitch")||_.ow(this.hostElement,"yt-terminate-video-preview-action")};
_.E.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.E.computeHasSearchHeader=function(y){var W;y=y==null?void 0:(W=y.header)==null?void 0:W.searchHeaderRenderer;return!!y&&(!!y.searchFilterButton||!!y.chipBar)};
_.E.computeHasSecondaryContent=function(y){var W,V;return!!(y==null?0:(W=y.contents)==null?0:(V=W.twoColumnSearchResultsRenderer)==null?0:V.secondaryContents)};
_.CM.Object.defineProperties(QA,{template:{configurable:!0,enumerable:!0,get:function(){if(GKe===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);GKe=y}y=GKe;return y}}});
QA.prototype.onReloadContinuationFinish=QA.prototype.onReloadContinuationFinish;QA.prototype.dataChanged=QA.prototype.dataChanged;_.J([_.m(_.TK.YtPageBehavior),_.R("design:type",Object)],QA.prototype,"ytPageBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QA.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],QA.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],QA.prototype,"data",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],QA.prototype,"monitorScroll",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QA.prototype,"hasSearchHeader",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QA.prototype,"hasSecondaryContent",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],QA.prototype,"hasBiggerThumbs",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QA.prototype,"dataChanged",null);
_.J([_.l6("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QA.prototype,"onReloadContinuationFinish",null);_.J([_.k({is:"ytd-search"})],QA);_.mP.registerService(_.y7v,QA);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("h8y2qb");
var QOt=function(y){if(y=_.ZUu(y)){var W;(W=y.sources)!=null&&W[0]?(W=_.W44(y),W=W<1?"VERTICAL":W>1?"HORIZONTAL":"SQUARE"):W=void 0;return W}},mW=function(y){_.J0.call(this,"upload");
this.opts.query=y},y6d=function(y,W){return _.O(Zf3,{data:y,
onYtNavigate:W})},WtW=function(y,W){return _.UB(y.entities,"pageHeaderEntity",W)},wiE=function(y,W){return y.map(function(V){if(V.tabRenderer)return Vuj(V.tabRenderer);
if(V.expandableTabRenderer&&W){var w=V.expandableTabRenderer;return{customTabRenderable:function(){return W(w)}}}return{}})},Vuj=function(y){return{identifier:y.tabIdentifier,
aTagConfig:_.EU({innertubeCommand:y.endpoint,forceNewState:!0}),title:y.title,selected:y.selected,disabled:y.unselectable,icon:y.icon}},tuq=function(y){return _.ig({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:y})},Ftj=function(y){if(!_.i8(document,"gtm-noscript")){var W=document.createElement("noscript");
W.id="gtm-noscript";W.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+y+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(W)}};_.pF(mW,_.J0);mW.prototype.JSC$10000_setLabel=function(y){mW.superClass_.JSC$10000_setLabel.call(this,y);return this};
mW.prototype.addUploadMetadata=function(y,W){mW.superClass_.addUploadMetadata.call(this,y,W);return this};var Elm=function(y){if(y!=="youtubebanner"&&y!=="youtube-channel-banner")throw Error("mo");mW.call(this,y)};
_.p(Elm,mW);Elm.prototype.JSC$10000_setLabel=function(y){mW.prototype.JSC$10000_setLabel.call(this,y);return this};
Elm.prototype.addUploadMetadata=function(y,W){mW.prototype.addUploadMetadata.call(this,y,W);return this};var Nqv=[_.Gm,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(y){_.Yy(y).path[0]!==this&&(this.resetLayout(),y.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var y=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Tn(this._layoutDebouncer,_.aU,y);_.mu(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var y=this;requestAnimationFrame(function(){y.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(y){this.resizerShouldNotify(y)&&this._notifyDescendant(y)},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 Ivj=[_.inE,{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(y,W){var V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[y];if(!V)throw new ReferenceError(this._getUndefinedMsg(y));y=this._boundEffect(V,W||{});y.setUp();return y},
_effectsChanged:function(y,W,V){this._tearDownEffects();y&&V&&(y.split(" ").forEach(function(w){var t;w!==""&&((t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[w])?this._effects.push(this._boundEffect(t,W[w])):console.warn(this._getUndefinedMsg(w)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(y,W){W=W||{};var V=parseFloat(W.startsAt||0),w=parseFloat(W.endsAt||1),t=w-V,F=function(){};
w=V===0&&w===1?y.run:function(I,P){y.run.call(this,Math.max(0,(I-V)/t),P)};
return{setUp:y.setUp?y.setUp.bind(this,W):F,run:y.run?w.bind(this):F,tearDown:y.tearDown?y.tearDown.bind(this):F}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(y){y.setUp()!==!1&&this._effectsRunFn.push(y.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(y){y.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(y,W){this._effectsRunFn&&this._effectsRunFn.forEach(function(V){V(y,W)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var y=this._clampedScrollTop;this._updateScrollState(y);this.threshold>0&&this._setThresholdTriggered(y>=this.threshold)}},
_getDOMRef:function(y){console.warn("_getDOMRef","`"+y+"` is undefined")},
_getUndefinedMsg:function(y){return"Scroll effect `"+y+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+y+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("no`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(y){var W={};y=parseFloat(y.scalar);W.background=this._getDOMRef("background");W.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");W.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");W.deltaBg=W.backgroundFrontLayer.offsetHeight-W.background.offsetHeight;W.deltaBg===0?(isNaN(y)&&(y=.8),W.deltaBg=(this._dHeight||0)*y):(isNaN(y)&&(y=
1),W.deltaBg*=y);this._fxParallaxBackground=W},
run:function(y){var W=this._fxParallaxBackground;this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,y)+"px, 0px)",W.backgroundFrontLayer);W.backgroundRearLayer&&this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,y)+"px, 0px)",W.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var glj;var PLW;var CLu=function(){};
_.E=CLu.prototype;_.E._scrollTargetChanged=function(){};
_.E.scroll=function(){};
_.E._isValidScrollTarget=function(){};
_.E._toggleScrollListener=function(){};
_.E.toggleScrollListener=function(){};
_.E.createEffect=function(){};
_.E._effectsChanged=function(){};
_.E._layoutIfDirty=function(){};
_.E._boundEffect=function(){};
_.E._setUpEffect=function(){};
_.E._tearDownEffects=function(){};
_.E._runEffects=function(){};
_.E._scrollHandler=function(){};
_.E._scrollStateChanged=function(){};
_.E._getUndefinedMsg=function(){};
_.E.notifyResize=function(){};
_.E.assignParentResizable=function(){};
_.E.stopResizeNotificationsFor=function(){};
_.E._subscribeIronResize=function(){};
_.E._unsubscribeIronResize=function(){};
_.E.resizerShouldNotify=function(){};
_.E._onDescendantIronResize=function(){};
_.E._fireResize=function(){};
_.E._onIronRequestResizeNotifications=function(){};
_.E._parentResizableChanged=function(){};
_.E._notifyDescendant=function(){};
_.E._requestResizeNotifications=function(){};
_.E._findParent=function(){};
_.E._appResetLayoutHandler=function(){};
_.E.resetLayout=function(){};
_.E._notifyLayoutChanged=function(){};
_.E._notifyDescendantResize=function(){};
_.E._setThresholdTriggered=function(){};
CLu=_.a6({_template:function(){if(PLW!==void 0)return PLW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;glj===void 0&&(glj=document.createElement("template"));var w=glj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return PLW=y},
is:"tp-yt-app-header",behaviors:[Ivj,Nqv],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 y=_.Yy(this.$.slot).getDistributedNodes(),W=0,V;V=y[W];W++)if(V.nodeType===Node.ELEMENT_NODE)if(V.hasAttribute("sticky")){this._stickyElRef=V;break}else this._stickyElRef||(this._stickyElRef=V);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var y=this._clampedScrollTop,W=this._height===0||y===0,V=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;W||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();W?this._updateScrollState(y,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=V}},
_updateScrollState:function(y,W){if(this._height!==0){var V=0,w=this._top;var t=this._maxHeaderTop;var F=y-this._lastScrollTop,I=Math.abs(F),P=y>this._lastScrollTop,C=performance.now();this._mayMove()&&(V=this._clamp(this.reveals?w+F:y,0,t));y>=this._dHeight&&(V=this.condenses&&!this.fixed?Math.max(this._dHeight,V):V,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&I<100){if(C-this._initTimestamp>300||this._wasScrollingDown!==P)this._initScrollTop=y,this._initTimestamp=C;y>=t&&
(Math.abs(this._initScrollTop-y)>30||I>10?(P&&y>=t?V=t:!P&&y>=this._dHeight&&(V=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((V-w)/(F/(C-this._lastTimestamp)),0,300)+"ms"):V=this._top)}t=this._dHeight===0?y>0?1:0:V/this._dHeight;W||(this._lastScrollTop=y,this._top=V,this._wasScrollingDown=P,this._lastTimestamp=C);if(W||t!==this._progress||w!==V||y===0)this._progress=t,this._runEffects(t,V),this._transformHeader(V)}},
_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(y){this.translate3d(0,-y+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&y>=this._stickyElTop?Math.min(y,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(y,W,V){return Math.min(V,Math.max(W,y))},
_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),_.Yy(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(y){switch(y){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Yy(this).querySelector("[main-title]");case "condensedTitle":return _.Yy(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var OEW;var vlW;_.a6({_template:function(){if(vlW!==void 0)return vlW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;OEW===void 0&&(OEW=document.createElement("template"));var w=OEW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return vlW=y},
is:"tp-yt-app-header-layout",behaviors:[Nqv],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Yy(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var y=this.header;if(this.isAttached&&y){this.$.wrapper.classList.remove("initializing");y.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)y.style.left=
"",y.style.right="";else{var W=this.getBoundingClientRect(),V=document.documentElement.clientWidth-W.right;y.style.left=W.left+"px";y.style.right=V+"px"}W=this.$.contentContainer.style;V=y.offsetHeight;y.fixed&&!y.condenses&&this.hasScrollingRegion?(W.marginTop=V+"px",W.paddingTop=""):(W.paddingTop=V+"px",W.marginTop="")}}});var dmj=new _.zf("replaceFeedContentAction");var Lt3=new _.zf("alertCommand");var zut=new _.zf("manageLabsStateCommand");var c6d=new _.zf("inlineFormRenderer");var M6=new _.zf("playlistSidebarPrimaryInfoRenderer");var euE=new _.zf("productDetailsThumbnailRenderer"),hu3=new _.zf("productDetailsVariantRenderer"),ol3=new _.zf("productDetailsVariantOptionRenderer"),Ktt=new _.zf("productDetailsOffersContainerRenderer"),pid=new _.zf("productDetailsOfferRenderer");var iEv=new _.zf("shoppingFlaggingRenderer");var fvm=new _.zf("playlistBylineRenderer");var Tqd=new _.zf("insertChannelTabCommand");var q6=function(){return _.YA.apply(this,arguments)||this};
_.p(q6,_.YA);_.E=q6.prototype;_.E.activeChanged=function(){if(this.active){var y=_.i6(this.hostElement).querySelector("#header");y&&_.h1(y,"iron-resize");window.addEventListener("scroll",_.Dp(this,this.onScroll))}else window.removeEventListener("scroll",_.Dp(this,this.onScroll)),_.h1(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.E.guideVisibleChanged=function(){var y=_.i6(this.hostElement).querySelector("#header");y&&_.h1(y,"iron-resize")};
_.E.onScroll=function(){var y=this;_.NM(this,"onScroll",function(){var W=_.i6(y.hostElement).querySelector("#header");W&&W.polymerController&&(W=W.polymerController.getScrollState().progress===1?"standard":"seamed",_.h1(y.hostElement,"yt-request-panel-mode-change",{mode:W}))},10)};
_.E.tabsChanged=function(){if(this.tabs){for(var y=null,W=0,V=this.tabs.length;W<V;++W){var w=this.tabs[W].tabRenderer;if(w&&w.selected){y=W;break}}this.selected=y}};
_.E.onTabsActivate=function(y){_.h1(this.hostElement,"yt-navigate",{endpoint:this.tabs[y.detail.selected].tabRenderer.endpoint})};
q6.prototype.tabsChanged=q6.prototype.tabsChanged;q6.prototype.guideVisibleChanged=q6.prototype.guideVisibleChanged;q6.prototype.activeChanged=q6.prototype.activeChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],q6.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.q(),_.R("design:type",Array)],q6.prototype,"tabs",void 0);
_.J([_.q(),_.R("design:type",Object)],q6.prototype,"selected",void 0);_.J([_.q(),_.R("design:type",Boolean)],q6.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],q6.prototype,"disableHeaderFluidWidth",void 0);_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q6.prototype,"activeChanged",null);
_.J([_.xA("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q6.prototype,"guideVisibleChanged",null);_.J([_.xA("tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q6.prototype,"tabsChanged",null);_.J([_.BW()],q6);var mmP=[_.X.YtRendererBehavior,_.E4.YtdGuideStateAwareBehavior,q6.prototype];var Muv=2/3,qDC=_.ad(130749),Umt=function(y,W){var V=this;this.element=y;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){V.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Muv,moveAction:function(w){V.moveAction(w)},
triggerAction:function(){V.element.isReloading=!0;_.gp(_.BC(),{visualElement:qDC});_.xc.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:V.element}})}}}};
_.uT(_.BC(),qDC,this.layer);this.gesture=new _.Pc(y,W,this.refreshConfig,"pan-down");this.attach()};
_.E=Umt.prototype;_.E.attach=function(){this.gesture.attach()};
_.E.detach=function(){this.gesture.detach()};
_.E.reset=function(){this.element.close()};
_.E.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.E.moveAction=function(y){this.element.rotation=y*360};var uLE=_.ad(130750),Ul=function(y,W,V,w,t){var F=this;this.element=y;this.parent=V;this.channelHeader=w;this.ytdReduxDispatch=t;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){F.tabsStartAtInPx=F.channelHeader.clientHeight-48;var I;(I=F.selectedTab)!=null&&I.title&&(I=_.hs().resolve(_.eX(_.hn)))&&(I=I.getCurrentPage(),F.lastVisitedTabScrollPosition=I.getScrollTop(),F.previousTab&&
((F.lastVisitedTabScrollPosition===void 0?0:F.lastVisitedTabScrollPosition<F.channelHeader.clientHeight-48)?F.scrollPositionForTabs.has(F.selectedTab.title)&&F.scrollPositionForTabs.delete(F.selectedTab.title):F.scrollPositionForTabs.set(F.selectedTab.title,I.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:SDC(),triggerAction:function(){F.navigate(F.previousTab)},
moveAction:function(I,P){F.moveAction(I,P)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-SDC(),triggerAction:function(){F.navigate(F.nextTab)},
moveAction:function(I,P){F.moveAction(I,P)}}}};
_.uT(_.BC(),uLE,this.layer);this.gesture=new _.Pc(y,W,this.tabConfig);this.attach()};
Ul.prototype.attach=function(){this.gesture.attach()};
Ul.prototype.detach=function(){this.gesture.detach()};
Ul.prototype.tabsChanged=function(y){if(y){var W=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;y=_.N(y);for(var V=y.next();!V.done;V=y.next()){V=V.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=V);var w=void 0;if((w=V)==null?0:w.selected)this.previousTab=W,this.selectedTab=V;W=V}W=this.gesture;y=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}});
W.config=y;this.scrollPositionNeedsUpdate=!0}};
Ul.prototype.moveAction=function(y,W){if(!this.tabsElement){var V;this.tabsElement=(V=this.parent.header)==null?void 0:V.tabsElement;W==="right"&&this.previousTab?_.y3m(_.JS.instance,this.previousTab.endpoint,{},""):W==="left"&&this.nextTab&&_.y3m(_.JS.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}V=this.tabsElement._pos;W==="right"&&(y*=-1);this.tabsElement._positionBar(V.width,V.left*1+V.width*y)};
var SDC=function(){var y,W;return(W=(y=_.hs().resolve(_.hn).getCurrentPage())==null?void 0:y.clientWidth)!=null?W:0};
Ul.prototype.navigate=function(y){this.element.data=void 0;if(y=y==null?void 0:y.endpoint)this.ytdReduxDispatch(tuq(!0)),_.gp(_.BC(),{visualElement:uLE}),_.xc.instance.resolveCommand({navigateAction:{endpoint:y}},{form:{element:this.element}})};var Dmv;var lv3;var u1=function(){return _.u.apply(this,arguments)||this};
_.p(u1,_.u);u1.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],u1.prototype,"data",void 0);_.J([_.k({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],u1);
_.Y(u1,"ytd-labs-edit-renderer",function(){if(lv3!==void 0)return lv3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lv3=y},{mode:1});var xmE;var Sa=function(){var y=_.u.apply(this,arguments)||this;y.dark=!1;y.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";y.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(Sa,_.u);Sa.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Sa.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.setBackgroundImage(y);this.dark=y};
Sa.prototype.onDarkModeToggledAction=function(y){this.setBackgroundImage(y);this.dark=y};
Sa.prototype.setBackgroundImage=function(y){_.qg(this.hostElement,{"--yt-labs-header-background":"url("+(y?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Sa.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sa.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Sa.prototype,"dark",void 0);
_.J([_.k({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Sa);
_.Y(Sa,"ytd-labs-header-renderer",function(){if(xmE!==void 0)return xmE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xmE=y},{mode:1});var kOu;var DD=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return y};
_.p(DD,_.u);DD.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"}}}}}};
DD.prototype.onYtToggleButton=function(y){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",y.detail.toggled)};
DD.prototype.onManageLabsState=function(y){if(y=_.h(y,zut))y.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?y.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&y.labsItemId===this.data.labsItemId&&(y.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ow(this.hostElement,"yt-check-labs-opted-in-state").some(function(W){return W})&&this.data.confirmationDialogCommand?_.fg(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.hs().resolve(_.oA).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&y.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.hs().resolve(_.oA).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
DD.prototype.onCheckLabsOptedInState=function(){var y=this.get("data.primaryButton.toggleButtonRenderer");return y?y.isToggled:!1};
_.CM.Object.defineProperties(DD.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
DD.prototype.onYtToggleButton=DD.prototype.onYtToggleButton;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],DD.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],DD.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],DD.prototype,"itemStyle",null);_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],DD.prototype,"onYtToggleButton",null);_.J([_.k({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],DD);
_.Y(DD,"ytd-labs-item-renderer",function(){if(kOu!==void 0)return kOu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return kOu=y},{mode:1});var sCj;var A6u;var l1=function(){return _.u.apply(this,arguments)||this};
_.p(l1,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],l1.prototype,"data",void 0);_.J([_.k({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],l1);
_.Y(l1,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(A6u!==void 0)return A6u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return A6u=y},{mode:1});var YDd;var xx=function(){return _.u.apply(this,arguments)||this};
_.p(xx,_.u);xx.prototype.observeSuperchatChip=function(){if(this.data){var y={"--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)};_.qg(this.hostElement,y)}};
xx.prototype.colorFromDecimal=function(y){return _.wg(Number(y||0))};
xx.prototype.observeSuperchatChip=xx.prototype.observeSuperchatChip;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xx.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xx.prototype,"observeSuperchatChip",null);_.J([_.k({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],xx);
_.Y(xx,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(YDd!==void 0)return YDd;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return YDd=y},{mode:1});var kx=function(){return _.u.apply(this,arguments)||this};
_.p(kx,_.u);kx.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"}}}};
_.CM.Object.defineProperties(kx.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.V$),_.R("design:type",Object)],kx.prototype,"ytdDismissibleItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kx.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],kx.prototype,"hideMessageBlock",null);
_.J([_.k({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],kx);
_.Y(kx,"ytd-live-chat-history-entry-renderer",function(){if(sCj!==void 0)return sCj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sCj=y},{mode:1});var BqW;var sl=function(){return _.u.apply(this,arguments)||this};
_.p(sl,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sl.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],sl);
_.Y(sl,"ytd-channel-options-renderer",function(){if(BqW!==void 0)return BqW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return BqW=y},{mode:1});var J6W;var AN=function(){return _.u.apply(this,arguments)||this};
_.p(AN,_.u);AN.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AN.prototype,"data",void 0);_.J([_.k({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],AN);
_.Y(AN,"ytd-settings-email-item-renderer",function(){if(J6W!==void 0)return J6W;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return J6W=y},{mode:1});var Rue;var Yx=function(){return _.u.apply(this,arguments)||this};
_.p(Yx,_.u);Yx.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"}}}};
Yx.prototype.getExpansionIcon=function(y){return y?"COLLAPSE":"EXPAND"};
Yx.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.CM.Object.defineProperties(Yx.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yx.prototype,"data",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Yx.prototype,"expanded",void 0);_.J([_.M("expanded"),_.R("design:type",String),_.R("design:paramtypes",[])],Yx.prototype,"emailListExpanded",null);
_.J([_.s$("#options"),_.R("design:type",Object)],Yx.prototype,"options",void 0);_.J([_.k({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Yx);
_.Y(Yx,"ytd-settings-email-list-renderer",function(){if(Rue!==void 0)return Rue;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Rue=y},{mode:1});var jCj;var Bc=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return y};
_.p(Bc,_.u);Bc.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"}}}};
Bc.prototype.handleSignalActionSubmitForm=function(){var y,W=(y=this.formRenderer)==null?void 0:y.getForm();W&&this.data.serviceEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})})};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bc.prototype,"data",void 0);_.J([_.s$("yt-form-renderer"),_.R("design:type",Object)],Bc.prototype,"formRenderer",void 0);
_.J([_.k({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Bc);
_.Y(Bc,"ytd-settings-gaia-link-renderer",function(){if(jCj!==void 0)return jCj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return jCj=y},{mode:1});var $mq;var JN=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return y};
_.p(JN,_.u);JN.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.baC()&&this.set("data.hidden",!1)};
JN.prototype.onSwitchReady=function(){var y=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.e("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.rGE().then(function(W){W&&(Notification.permission==="default"?y.set("data.hidden",!1):Notification.permission==="granted"&&_.Ta("NotificationsDisabled").then(function(V){V||_.ow(y.hostElement,"yt-toggle-settings-switch",[y.data.id,!V]);y.set("data.hidden",!1)}).catch(function(){}))})})};
JN.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}}}}};
JN.prototype.handleUpdateOptionsCommand=function(y){(y=_.h(y,_.OHE))&&this.data&&this.data.id===y.id&&(this.set("data.hidden",y.hidden),y.text!==void 0&&this.set("data.text",y.text),y.clearOptions&&this.set("data.options",[]))};
JN.prototype.onSwitchReady=JN.prototype.onSwitchReady;JN.prototype.dataChanged=JN.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],JN.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JN.prototype,"data",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JN.prototype,"dataChanged",null);_.J([_.l6("yt-settings-switch-ready"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JN.prototype,"onSwitchReady",null);_.J([_.k({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],JN);
_.Y(JN,"ytd-settings-options-renderer",function(){if($mq!==void 0)return $mq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return $mq=y},{mode:1});var nlq;var RZ=function(){return _.u.apply(this,arguments)||this};
_.p(RZ,_.u);RZ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
RZ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
RZ.prototype.onYtExpanderMoreTapped=RZ.prototype.onYtExpanderMoreTapped;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],RZ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RZ.prototype,"data",void 0);
_.J([_.l6("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RZ.prototype,"onYtExpanderMoreTapped",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],RZ);
_.Y(RZ,"ytd-product-details-description-renderer",function(){if(nlq!==void 0)return nlq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nlq=y},{mode:1});var HEu;var ja=function(){var y=_.u.apply(this,arguments)||this;y.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";y.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";y.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";y.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return y};
_.p(ja,_.u);ja.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.CM.Object.defineProperties(ja.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.offerData)==null?void 0:W.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.purchaseButtonRenderers)!==void 0&&((W=this.data)==null?void 0:W.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.formattedFromMerchantText)&&(!((W=this.data)==null||!W.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],ja.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ja.prototype,"data",void 0);
_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ja.prototype,"shippingIcon",void 0);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ja.prototype,"shippingAddressIcon",void 0);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ja.prototype,"googleGuaranteeIcon",void 0);
_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ja.prototype,"returnPolicyIcon",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ja.prototype,"showAdditionalFees",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ja.prototype,"showMultiPurchaseButtons",null);
_.J([_.M("data","showMultiPurchaseButtons"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ja.prototype,"showPurchaseData",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ja);
_.Y(ja,"ytd-product-details-hero-offer-renderer",function(){if(HEu!==void 0)return HEu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return HEu=y},{mode:1});var Xim;var avd;var $x=function(){return _.u.apply(this,arguments)||this};
_.p($x,_.u);_.E=$x.prototype;_.E.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.E.onKeyDown=function(y){y=y.keyCode;y!==13&&y!==32||this.handleSelection()};
_.E.onMouseEnterImage=function(){var y;((y=this.data)==null?void 0:y.thumbnailDetails)!==void 0&&_.Kg(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.E.onMouseLeaveImage=function(){_.Kg(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.E.handleSelection=function(){this.data&&_.h1(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.CM.Object.defineProperties($x.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isSelected)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$x.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$x.prototype,"isSelected",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],$x);
_.Y($x,"ytd-product-details-thumbnail-renderer",function(){if(avd!==void 0)return avd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return avd=y},{mode:1});var nx=function(){var y=_.u.apply(this,arguments)||this;var W={};y.actionMap=(W["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",W["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",W);y.selectedThumbnailIndex=0;y.selectItem=function(V){V.target.onKeyDown(V)};
return y};
_.p(nx,_.u);_.E=nx.prototype;_.E.handlePreviewImageSelect=function(y){this.hoverThumbnail=y};
_.E.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.E.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.E.onThumbnailSelected=function(y,W){this.selectedThumbnailIndex=W};
_.E.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.E.updateOffset=function(){var y=_.i6(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-y));this.ytdHorizontalListBehavior.reposition_()};
_.CM.Object.defineProperties(nx.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.imageRenderer){var W,V;return((W=this.data)==null?void 0:(V=W.imageRenderer)==null?void 0:V.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var y;if((y=this.data)==null?0:y.imageRenderer){var W;return(W=_.h(this.data.imageRenderer[this.selectedThumbnailIndex],euE))==null?void 0:W.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V,w,t=(w=(W=this.data)==null?void 0:(V=W.imageRenderer)==null?void 0:V.map(function(F,I){return{productDetailsThumbnailRenderer:Object.assign({},_.h(F,euE),{index:I,isSelected:I===y.selectedThumbnailIndex})}}))!=null?w:[];
return Object.assign({},this.data,{imageRenderer:t})}}});
nx.prototype.updateOffset=nx.prototype.updateOffset;nx.prototype.dataChanged=nx.prototype.dataChanged;nx.prototype.onThumbnailSelected=nx.prototype.onThumbnailSelected;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.pr.YtdHorizontalListBehavior),_.R("design:type",Object)],nx.prototype,"ytdHorizontalListBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],nx.prototype,"componentBehavior",void 0);_.J([_.m([_.ik.YtActionHandlerBehavior]),_.R("design:type",Object)],nx.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nx.prototype,"data",void 0);_.J([_.q({value:"$.items.children"}),_.R("design:type",String)],nx.prototype,"itemsPath",void 0);_.J([_.q({value:3}),_.R("design:type",Number)],nx.prototype,"initialCount",void 0);
_.J([_.s$("#items"),_.R("design:type",Object)],nx.prototype,"items",void 0);_.J([_.q(),_.R("design:type",Object)],nx.prototype,"selectedThumbnailIndex",void 0);_.J([_.q(),_.R("design:type",Object)],nx.prototype,"hoverThumbnail",void 0);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nx.prototype,"showThumbnails",null);
_.J([_.l6("ytd-product-details-thumbnail-renderer-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Number]),_.R("design:returntype")],nx.prototype,"onThumbnailSelected",null);_.J([_.M("data","selectedThumbnailIndex","hoverThumbnail"),_.R("design:type",Object),_.R("design:paramtypes",[])],nx.prototype,"thumbnailDetails",null);_.J([_.M("data","selectedThumbnailIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],nx.prototype,"populatedData",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nx.prototype,"dataChanged",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nx.prototype,"updateOffset",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],nx);
_.Y(nx,"ytd-product-details-image-carousel-renderer",function(){if(Xim!==void 0)return Xim;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Xim=y},{mode:_.qM("kevlar_poly_si_batch_j079")?1:2});var GOj;var Hc=function(){return _.u.apply(this,arguments)||this};
_.p(Hc,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Hc.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hc.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Hc);
_.Y(Hc,"ytd-product-details-offer-renderer",function(){if(GOj!==void 0)return GOj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return GOj=y},{mode:1});var r63;var Xm=function(){var y=_.u.apply(this,arguments)||this;y.isOffersHidden=!0;return y};
_.p(Xm,_.u);Xm.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var y,W=_.h((y=this.data)==null?void 0:y.viewOffersButton,_.wz);W&&this.ytRendererBehavior.logExplicitClick(W)};
Xm.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.CM.Object.defineProperties(Xm.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return(V=_.h((y=this.data)==null?void 0:(W=y.offers)==null?void 0:W[0],pid))==null?void 0:(w=V.offerData)==null?void 0:w.vendorLogoUrl}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Xm.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Xm.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Xm.prototype,"isOffersHidden",void 0);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xm.prototype,"firstOfferVendorLogoUrl",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Xm);
_.Y(Xm,"ytd-product-details-offers-container-renderer",function(){if(r63!==void 0)return r63;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return r63=y},{mode:1});var bEq;var QCu;var aZ=function(){return _.u.apply(this,arguments)||this};
_.p(aZ,_.u);aZ.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
aZ.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Kg(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
aZ.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Kg(this,"ytd-product-details-variant-image-unselect")};
_.CM.Object.defineProperties(aZ.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 y;return((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?void 0:y.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((V=this.data)==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var y;if(((y=this.data)==null?void 0:y.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.isUnavailable?(y=this.data)==null?void 0:y.variantOptionUnavailableAccessibilityLabel:(W=this.data)==null?void 0:W.variantOptionAccessibilityLabel}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],aZ.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aZ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],aZ.prototype,"displayType",void 0);
_.J([_.M("displayType","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aZ.prototype,"isImageButton",null);_.J([_.M("displayType","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aZ.prototype,"isPillButton",null);_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aZ.prototype,"isActive",null);
_.J([_.M("data"),_.q({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aZ.prototype,"isUnavailable",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aZ.prototype,"thumbnailDetails",null);_.J([_.M("isUnavailable","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aZ.prototype,"accessibilityLabel",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],aZ);
_.Y(aZ,"ytd-product-details-variant-option-renderer",function(){if(QCu!==void 0)return QCu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return QCu=y},{mode:1});var ZEq;var GK=function(){var y=_.u.apply(this,arguments)||this;y.variantsExpanded=!1;y.hideShowMoreLessVariantButton=!0;y.initialized=!1;y.computeVariantsDebouncer=null;y.computeVariants=function(W){W=W===void 0?!1:W;y.variantsExpanded||y.showOptions()||!W||(y.variantsExpanded=!0);if(y.variantsExpanded){W=_.N(y.items.children);for(var V=W.next();!V.done;V=W.next())V.value.hidden=!1}y.initialized=!0};
return y};
_.p(GK,_.u);_.E=GK.prototype;_.E.ready=function(){var y=this;setTimeout(function(){y.computeVariants(!0)})};
_.E.showOptions=function(){for(var y=_.N(this.items.children),W=y.next();!W.done;W=y.next())W.value.hidden=!0;var V=this.container.getBoundingClientRect().width,w=0,t=y=0;W=!1;for(var F=_.N(this.items.children),I=F.next();!I.done;I=F.next()){I=I.value;I.hidden=!1;var P=I.getBoundingClientRect().width;if(w+P<V)w+=P;else if(++t<2)w=P;else break;y+=1;I.hasAttribute("is-active")&&(W=!0)}for(V=y;V<this.items.children.length;V++)this.items.children[V].hidden=!0;this.hideShowMoreLessVariantButton=y===this.items.children.length;
return W};
_.E.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Tn(this.computeVariantsDebouncer,_.vQ.after(100),this.computeVariants)};
_.E.onShowMoreLessVariantsButtonClick=function(){var y;(y=this.data)!=null&&y.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.E.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.CM.Object.defineProperties(GK.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.variantOptionRenderers)==null?void 0:W.find(function(F){return _.h(F,ol3).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),w,t;
return(t=(w=_.h(V,ol3))==null?void 0:w.name)!=null?t:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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"}}}});
GK.prototype.debouncedComputeVariants=GK.prototype.debouncedComputeVariants;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],GK.prototype,"componentBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],GK.prototype,"ironResizableBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],GK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],GK.prototype,"variantsExpanded",void 0);_.J([_.q(),_.R("design:type",Object)],GK.prototype,"hideShowMoreLessVariantButton",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],GK.prototype,"initialized",void 0);_.J([_.s$("#items"),_.R("design:type",HTMLDivElement)],GK.prototype,"items",void 0);_.J([_.s$("#container"),_.R("design:type",HTMLDivElement)],GK.prototype,"container",void 0);
_.J([_.s$("#more-variants-button"),_.R("design:type",HTMLElement)],GK.prototype,"moreVariantsButton",void 0);_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],GK.prototype,"selectedOptionName",null);_.J([_.xA("data","variantsExpanded"),_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GK.prototype,"debouncedComputeVariants",null);
_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],GK.prototype,"displayType",null);_.J([_.M("displayType"),_.R("design:type",Object),_.R("design:paramtypes",[])],GK.prototype,"variantItemsClassname",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],GK);
_.Y(GK,"ytd-product-details-variant-renderer",function(){if(ZEq!==void 0)return ZEq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ZEq=y},{mode:1});var rr=function(){return _.u.apply(this,arguments)||this};
_.p(rr,_.u);
rr.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"}}}};
_.CM.Object.defineProperties(rr.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(W=_.h((y=this.data)==null?void 0:y.offersContainerRenderer,Ktt))==null?void 0:W.offers;return V!==void 0&&(V==null?void 0:V.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 y,W,V;return((V=(y=this.data)==null?void 0:(W=y.variants)==null?void 0:W.map(function(w){var t,F;w=(F=(t=_.h(w,hu3))==null?void 0:t.variantOptionRenderers)==null?void 0:F.find(function(P){var C;return((C=_.h(P,ol3))==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var I;return(I=_.h(w,ol3))==null?void 0:I.name}).filter(function(w){return typeof w==="string"}))!=null?V:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w=(W=_.h((y=this.data)==null?void 0:y.shoppingFlaggingRenderer,iEv))==null?void 0:(V=W.reportButton)==null?void 0:V.buttonRenderer;if(w)return{text:w.text,command:w.command,icon:{iconType:"FLAG"},accessibilityData:w.accessibilityData,trackingParams:w.trackingParams,loggingDirectives:w.loggingDirectives}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rr.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rr.prototype,"data",void 0);_.J([_.s$("#image-carousel-renderer"),_.R("design:type",Object)],rr.prototype,"imageCarouselRenderer",void 0);
_.J([_.s$("#hero-offer-renderer"),_.R("design:type",Object)],rr.prototype,"productDetailsHeroOfferRenderer",void 0);_.J([_.s$("#variants"),_.R("design:type",Object)],rr.prototype,"productDetailsVariantRenderer",void 0);_.J([_.s$("#offers"),_.R("design:type",Object)],rr.prototype,"productDetailsOffersContainerRenderer",void 0);_.J([_.s$("#description-renderer"),_.R("design:type",Object)],rr.prototype,"productDetailsDescriptionRenderer",void 0);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showPurchaseData",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showHeroOfferRenderer",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showBrandText",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showOffers",null);
_.J([_.M("showOffers","showPurchaseData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showBuySeparator",null);_.J([_.M("showOffers","showPurchaseData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rr.prototype,"showBuyCard",null);_.J([_.M("data"),_.R("design:type",String),_.R("design:paramtypes",[])],rr.prototype,"selectedVariantsText",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],rr.prototype,"shoppingReportingButtonData",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],rr);
_.Y(rr,"ytd-product-details-renderer",function(){if(bEq!==void 0)return bEq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return bEq=y},{mode:1});var yNP;var WWW;var Vat;var b1=function(){return _.u.apply(this,arguments)||this};
_.p(b1,_.u);b1.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.CM.Object.defineProperties(b1.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],b1.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],b1.prototype,"formattedAmount",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],b1.prototype,"ariaLabel",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.style"),_.R("design:type",String),_.R("design:paramtypes",[])],b1.prototype,"vcBalanceWidgetStyle",null);_.J([_.Zp({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],b1);
_.Y(b1,"yt-vc-balance-renderer",function(){if(Vat===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;WWW===void 0&&(WWW=document.createElement("template"));var w=WWW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Vat=y}y=Vat;return y},{mode:2});_.ZQ("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Qq=function(){return _.u.apply(this,arguments)||this};
_.p(Qq,_.u);_.CM.Object.defineProperties(Qq.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:""}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Qq.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Qq.prototype,"data",void 0);_.J([_.q({selectorArgs:["data.vcBalanceEntityKey"],selector:function(y,W){return _.UB(y.entities,"vcBalanceEntity",W)}}),
_.R("design:type",Object)],Qq.prototype,"vcBalanceEntity",void 0);_.J([_.M("vcBalanceEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Qq.prototype,"formattedAmount",null);_.J([_.M("vcBalanceEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Qq.prototype,"vcBalanceAriaLabel",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Qq);
_.Y(Qq,"ytd-vc-balance-renderer",function(){if(yNP!==void 0)return yNP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return yNP=y},{mode:1});var wcv;var ZD=function(){var y=_.u.apply(this,arguments)||this;y.rotation=0;y.isReloading=!1;return y};
_.p(ZD,_.u);ZD.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
ZD.prototype.reset=function(){this.hostElement.style.opacity=""};
ZD.prototype.close=function(){var y=this;return _.g(function(W){if(W.nextAddress==1)return W.yield(y.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.hostElement.style.opacity="0";_.B7(W)})};
ZD.prototype.rotationChanged=ZD.prototype.rotationChanged;_.J([_.q(),_.R("design:type",Object)],ZD.prototype,"rotation",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ZD.prototype,"isReloading",void 0);_.J([_.s$("#icon"),_.R("design:type",HTMLElement)],ZD.prototype,"icon",void 0);_.J([_.xA("rotation"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZD.prototype,"rotationChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-refresh"})],ZD);
_.Y(ZD,"ytd-refresh",function(){if(wcv!==void 0)return wcv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wcv=y},{mode:1});var tav;var yA=function(){return _.u.apply(this,arguments)||this};
_.p(yA,_.u);yA.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"}}}};
yA.prototype.dataChanged=function(){if(this.data){var y=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var W=_.f5(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasBannerArt=!0,_.qg(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+W+")"}))}this.hasBannerArt!==y&&_.i6(this.hostElement).querySelector("#header").fire("iron-resize")}};
yA.prototype.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
yA.prototype.dataChanged=yA.prototype.dataChanged;_.J([_.m(mmP),_.R("design:type",Object)],yA.prototype,"ytdTabbedHeaderBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tW),_.R("design:type",Object)],yA.prototype,"ytdGridStateAwareBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],yA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],yA.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],yA.prototype,"selected",void 0);_.J([_.q(),_.R("design:type",Boolean)],yA.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],yA.prototype,"hasBannerArt",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yA.prototype,"dataChanged",null);_.J([_.k({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],yA);
_.Y(yA,"ytd-interactive-tabbed-header-renderer",function(){if(tav!==void 0)return tav;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tav=y},{mode:1});var FWd;var W0=function(){return _.u.apply(this,arguments)||this};
_.p(W0,_.u);W0.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W0.prototype.computeActionsAlignment=function(y){return(y==null?void 0:y.actionsAlignment)||""};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],W0.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.R("design:type",String)],W0.prototype,"actionsAlignment",void 0);_.J([_.k({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],W0);
_.Y(W0,"ytd-page-footer-renderer",function(){if(FWd!==void 0)return FWd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return FWd=y},{mode:1});var Exm;var Nrj;var VA=function(){var y=_.u.apply(this,arguments)||this;y.isEditing=!1;y.useSlot=!1;y.isMultiline=!1;return y};
_.p(VA,_.u);_.E=VA.prototype;_.E.onKeydown=function(y){if(y.keyCode===13&&!this.isMultiline)this.onSave();else if(y.keyCode===27)this.onCancel()};
_.E.computeComponentStyle=function(y){return(y==null?0:y.style)?y.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.E.computeisMultiline=function(y){if(this.multilineOverride!==void 0)return this.multilineOverride;var W,V;return!!(y==null?0:(W=y.formField)==null?0:(V=W.textInputFormFieldRenderer)==null?0:V.isMultiline)};
_.E.computeTextDisplayed=function(y,W){if(y)return y;if(W)return W};
_.E.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.E.onSave=function(){if(this.textForm.validate()){this.textForm.save();var y=this.textForm.value;if(y)this.set("data.textDisplayed",_.CO(y));else{var W;((W=this.data)==null?0:W.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.ge("inline-form-changed",this.data));this.isEditing=!1}};
_.E.onCancel=function(){var y=_.OT(this.data.textDisplayed);y===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(y);this.isEditing=!1};
VA.prototype.onKeydown=VA.prototype.onKeydown;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],VA.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],VA.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],VA.prototype,"isEditing",void 0);_.J([_.q(),_.R("design:type",Object)],VA.prototype,"useSlot",void 0);_.J([_.q(),_.R("design:type",Boolean)],VA.prototype,"multilineOverride",void 0);_.J([_.q(),_.R("design:type",Boolean)],VA.prototype,"enableOverlayTheme",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.R("design:type",String)],VA.prototype,"componentStyle",void 0);
_.J([_.q({computed:"computeisMultiline(data)"}),_.R("design:type",Object)],VA.prototype,"isMultiline",void 0);_.J([_.s$("#text-form"),_.R("design:type",Object)],VA.prototype,"textForm",void 0);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],VA.prototype,"onKeydown",null);_.J([_.k({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],VA);
_.Y(VA,"ytd-inline-form-renderer",function(){if(Nrj!==void 0)return Nrj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Nrj=y},{mode:1});var IDj;var wT=function(){var y=_.u.apply(this,arguments)||this;y.previousSelectValue=void 0;y.selectedItemMessage=void 0;return y};
_.p(wT,_.u);wT.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
wT.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var y,W,V,w,t=(y=this.data)==null?void 0:(W=y.dropdown)==null?void 0:(V=W.dropdownRenderer)==null?void 0:(w=V.entries)==null?void 0:w.map(function(P){return P.privacyDropdownItemRenderer});
y=_.N(t!=null?t:[]);for(W=y.next();!W.done;W=y.next())if((W=W.value)&&W.int32Value===this.selectedValue){this.selectedItemMessage=W.itemMessage;break}}else this.selectedItemMessage=void 0;var F;(F=this.onValueChanged)==null||F.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var I;(I=this.data)!=null&&I.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
wT.prototype.onValueChangedForSelectedValue=function(y){this.selectedValue=y.detail.value};
wT.prototype.selectedValueChanged=wT.prototype.selectedValueChanged;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],wT.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],wT.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wT.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],wT.prototype,"theme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Number)],wT.prototype,"selectedValue",void 0);_.J([_.q(),_.R("design:type",Function)],wT.prototype,"onValueChanged",void 0);
_.J([_.Jc("selectedValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wT.prototype,"selectedValueChanged",null);_.J([_.k({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],wT);
_.Y(wT,"ytd-dropdown-form-field-renderer",function(){if(IDj!==void 0)return IDj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return IDj=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var gxe;var t7=function(){return _.u.apply(this,arguments)||this};
_.p(t7,_.u);_.CM.Object.defineProperties(t7.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var y=[],W=_.N(this.data||[]),V=W.next();!V.done;V=W.next())(V=_.h(V.value,fvm))&&y.push(V);return y}}});
_.J([_.q(),_.R("design:type",Array)],t7.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],t7.prototype,"byline",null);_.J([_.k({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],t7);
_.Y(t7,"ytd-playlist-byline-renderer",function(){if(gxe!==void 0)return gxe;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return gxe=y},{mode:1});var P1t;var FO=function(){var y=_.u.apply(this,arguments)||this;y.rtlBullet=_.e("web_playlist_stats_rtl_bullet_icon_killswitch");y.modern=_.e("web_modern_buttons");y.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return y};
_.p(FO,_.u);_.E=FO.prototype;_.E.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"}}}}};
_.E.attached=function(){};
_.E.computeIsCustomThumbnail=function(y){return y?!!y.playlistCustomThumbnailRenderer:!1};
_.E.onYtNavigate=function(y,W){if(W&&W.actions&&W.actions.indexOf("shuffle")>-1){y=_.hs().resolve(_.wd);var V=W.tempData||{};V.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);W.tempData=V;y.isShuffleNextPlaylist=!0}};
_.E.onUpdatePlaylistAction=function(y){var W;y=(W=_.h(y,_.jyR))==null?void 0:W.updatedRenderer;if(W=_.h(y,M6))this.data=W};
_.E.computeStyleType=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeThumbnailWidth=function(y){return y==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.E.computeHideThumbnailAria=function(y){if(y==null?0:y.thumbnailOverlays)for(var W=0;W<y.thumbnailOverlays.length;W++){var V=void 0;if((V=y.thumbnailOverlays[W])==null?0:V.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
FO.prototype.onYtNavigate=FO.prototype.onYtNavigate;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],FO.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],FO.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],FO.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FO.prototype,"rtlBullet",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.R("design:type",String)],FO.prototype,"styleType",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],FO.prototype,"thumbnailWidth",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],FO.prototype,"modern",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.R("design:type",Boolean)],FO.prototype,"isCustomThumbnail",void 0);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],FO.prototype,"onYtNavigate",null);_.J([_.k({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],FO);
_.Y(FO,"ytd-playlist-sidebar-primary-info-renderer",function(){if(P1t!==void 0)return P1t;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return P1t=y},{mode:1});var C1d;var EO=function(){return _.u.apply(this,arguments)||this};
_.p(EO,_.u);EO.prototype.computeOwnerVisibility=function(y){return!(!y.videoOwner&&!y.button)};
EO.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],EO.prototype,"data",void 0);_.J([_.k({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],EO);
_.Y(EO,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(C1d!==void 0)return C1d;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return C1d=y},{mode:1});var Oxj;var NX=function(){var y=_.u.apply(this,arguments)||this;y.expanded=!1;y.isCompact=!1;return y};
_.p(NX,_.u);_.E=NX.prototype;_.E.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.E.dataChanged=function(){this.data&&_.c7(_.i6(this.text),_.Tmm(_.qE2,_.OT(this.data.text||null)))};
_.E.computeAutoScrollEnabled=function(y,W){return y&&!W};
_.E.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.E.toggleOnTap=function(){this.expanded=!this.expanded};
NX.prototype.expandedChanged=NX.prototype.expandedChanged;NX.prototype.dataChanged=NX.prototype.dataChanged;_.J([_.m(_.Lpu),_.R("design:type",Object)],NX.prototype,"ytdAutoScrollBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],NX.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],NX.prototype,"expanded",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],NX.prototype,"isCompact",void 0);_.J([_.q({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.R("design:type",Boolean)],NX.prototype,"autoScrollEnabled",void 0);_.J([_.s$("#text"),_.R("design:type",Object)],NX.prototype,"text",void 0);_.J([_.s$("#expander-icon"),_.R("design:type",Object)],NX.prototype,"expanderIcon",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NX.prototype,"dataChanged",null);_.J([_.xA("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NX.prototype,"expandedChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],NX);
_.Y(NX,"ytd-channel-legal-info-renderer",function(){if(Oxj!==void 0)return Oxj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Oxj=y},{mode:1});var vxt;var d6W=_.u5("DOWNLOAD",{},"Download"),LWE=_.u5("DOWNLOADING",{},"Downloading"),zBe=_.u5("DOWNLOADED",{},"Downloaded"),Ik=function(){var y=_.u.apply(this,arguments)||this;y.downloadProgress=0;y.isDownloadComplete=!1;y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.p(Ik,_.u);_.E=Ik.prototype;_.E.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.E.dataChanged=function(){var y;(y=this.data)!=null&&y.tooltip||(y=_.W9(_.dP().getState(),this.playlistId),this.updateButtonState(y))};
_.E.computePlaylistId=function(y){return y};
_.E.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.E.updateButtonState=function(y){if(this.data&&(this.data.tooltip!==LWE||!_.YC(y))){this.isDownloadComplete=!1;switch(y){case "TRANSFER_STATE_UNKNOWN":y=d6W;var W="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":y=zBe;W="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":y=LWE;W="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";
break;default:y=d6W,W="OFFLINE_DOWNLOAD",V="ACTION_ADD"}var w=Object.assign({},this.data);w.tooltip=y;w.accessibilityData={accessibilityData:{label:y}};w.icon={iconType:W};w.size="SIZE_DEFAULT";_.h(w.command,_.sP)&&(_.h(w.command,_.sP).action=V);this.set("data",w)}};
_.E.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?y="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(y="OFFLINE_PIN",this.isDownloadComplete=!0);var W;y!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.tooltip=LWE,W.accessibilityData={accessibilityData:{label:LWE}},W.icon={iconType:y},_.h(W.command,_.sP)&&(_.h(W.command,_.sP).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
Ik.prototype.updateProgress=Ik.prototype.updateProgress;Ik.prototype.onTransferStateChanged=Ik.prototype.onTransferStateChanged;Ik.prototype.dataChanged=Ik.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Ik.prototype,"ytdReduxBehavior",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"forceIconButton",void 0);
_.J([_.q({value:!0}),_.R("design:type",Boolean)],Ik.prototype,"forceIconOnly",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"overrides",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"buttonTooltipPosition",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"styleActionButton",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"disableTextTransform",void 0);
_.J([_.q({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.R("design:type",String)],Ik.prototype,"playlistId",void 0);_.J([_.q(),_.R("design:type",Object)],Ik.prototype,"data",void 0);_.J([_.q({selector:_.kd4,selectorArgs:["playlistId"]}),_.R("design:type",Object)],Ik.prototype,"downloadProgress",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ik.prototype,"isDownloadComplete",void 0);
_.J([_.q({selector:_.W9,selectorArgs:["playlistId"]}),_.R("design:type",String)],Ik.prototype,"transferState",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],Ik.prototype,"showTooltips",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],Ik.prototype,"sendCommandWhenDisabled",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Ik.prototype,"disabled",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ik.prototype,"dataChanged",null);_.J([_.Jc("transferState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ik.prototype,"onTransferStateChanged",null);_.J([_.Jc("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ik.prototype,"updateProgress",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Ik);
_.Y(Ik,"ytd-download-playlist-button-renderer",function(){if(vxt!==void 0)return vxt;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vxt=y},{mode:1});var cNj;_.iF(_.XIz,"thumbnail-overlay-button-view-model",{props:{data:_.vB,lockupExperiments:_.vB}});var gT=function(){var y=_.u.apply(this,arguments)||this;y.isSquare=!1;y.isVertical=!1;return y};
_.p(gT,_.u);gT.prototype.computeIsSquare=function(y){return y!=null&&y.thumbnail?QOt(y.thumbnail)==="SQUARE":!1};
gT.prototype.computeIsVertical=function(y){return y!=null&&y.thumbnail?QOt(y.thumbnail)==="VERTICAL":!1};
gT.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.R("design:type",Object)],gT.prototype,"isSquare",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.R("design:type",Object)],gT.prototype,"isVertical",void 0);
_.J([_.q(),_.R("design:type",Object)],gT.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],gT);
_.Y(gT,"ytd-hero-playlist-thumbnail-renderer",function(){if(cNj!==void 0)return cNj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return cNj=y},{mode:1});var P0=function(){var y=_.u.apply(this,arguments)||this;y.isDarkTheme=!1;y.isUltraWide=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return y};
_.p(P0,_.u);_.E=P0.prototype;_.E.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.hs();var y;(y=_.hs().resolve(_.eX(_.LW)))!=null&&(y.headerElement=this.hostElement)};
_.E.detached=function(){var y;(y=_.hs().resolve(_.eX(_.LW)))!=null&&(y.headerElement=void 0)};
_.E.onUpdateHeader=function(y){(y=y.detail)&&this.set("data",y)};
_.E.computeTextDisplayed=function(y){if(y)return y.textDisplayed?y.textDisplayed:y.placeholder};
_.E.gradientColorToLinearGradientStop=function(y){var W=this.isDarkTheme?y.darkThemeColor:y.lightThemeColor;return W?_.wg(W)+" "+((y==null?void 0:y.startLocation)||0)*100+"%":"transparent"};
_.E.onWindowResize=function(){var y;((y=this.data)==null?0:y.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.E.onIronResize=function(y){this.isUltraWide=!y.detail.value};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.onUpdatePlaylistName=function(y){var W=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},y.detail.value));_.gy(this,function(){var V;(V=W.editableTitle)==null||V.resize()})};
_.E.onUpdatePlaylistDescription=function(y){var W=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},y.detail.value));_.gy(this,function(){var V;(V=W.editableDescriptionInlineExpander)==null||V.resize()})};
_.E.getCinematicData=function(y){return _.h(y==null?void 0:y.cinematicContainer,_.Kx)};
_.CM.Object.defineProperties(P0.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 y,W=(y=this.getCinematicData(this.data))==null?void 0:y.config;return(y=this.isDarkTheme?W==null?void 0:W.darkThemeBackgroundColor:W==null?void 0:W.lightThemeBackgroundColor)?"background-color:"+_.V2(y)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var y;return _.h((y=this.data)==null?void 0:y.descriptionForm,c6d)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V,w;return"background:linear-gradient(to bottom, "+(((w=(W=this.getCinematicData(this.data))==null?void 0:(V=W.gradientColorConfig)==null?void 0:V.map(function(t){return y.gradientColorToLinearGradientStop(t)}))==null?void 0:w.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var y;return _.OT((y=this.data)==null?void 0:y.descriptionTapText)}}});
P0.prototype.onUpdateHeader=P0.prototype.onUpdateHeader;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],P0.prototype,"actionHandlerBehavior",void 0);_.J([_.s$("#description-inline-expander"),_.R("design:type",Object)],P0.prototype,"descriptionInlineExpander",void 0);
_.J([_.s$("#editable-description-inline-expander"),_.R("design:type",Object)],P0.prototype,"editableDescriptionInlineExpander",void 0);_.J([_.q(),_.R("design:type",Object)],P0.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],P0.prototype,"isUltraWide",void 0);_.J([_.s$("#editable-title-display"),_.R("design:type",Object)],P0.prototype,"editableTitle",void 0);_.J([_.M("isUltraWide"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"maxDescriptionLines",null);
_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"noCinematicData",null);_.J([_.l6("yt-new-playlist-header"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],P0.prototype,"onUpdateHeader",null);_.J([_.M("data","isDarkTheme"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"backgroundStyle",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"descriptionFormData",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"getDropdownTheme",null);_.J([_.M("data","isDarkTheme"),_.R("design:type",String),_.R("design:paramtypes",[])],P0.prototype,"gradientStyle",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],P0.prototype,"descriptionTapText",null);
_.J([_.k({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],P0);
_.Y(P0,"ytd-playlist-header-renderer",function(){if(Exm!==void 0)return Exm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Exm=y},{mode:_.qM("kevlar_poly_si_batch_j078")?1:2});var eBe;var hBC;var C4=function(){return _.u.apply(this,arguments)||this};
_.p(C4,_.u);C4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],C4.prototype,"data",void 0);_.J([_.k({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],C4);
_.Y(C4,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(hBC!==void 0)return hBC;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hBC=y},{mode:1});var OO=function(){return _.u.apply(this,arguments)||this};
_.p(OO,_.u);
OO.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}}}}};
OO.prototype.computeUsePremiumShowStyle=function(y){if(!y||!y.items)return!1;for(var W=0;W<y.items.length;W++)if(_.h(y.items[W],M6)){var V=void 0;return((V=_.h(y.items[W],M6))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],OO.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.R("design:type",Boolean)],OO.prototype,"usePremiumShowStyle",void 0);
_.J([_.k({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],OO);
_.Y(OO,"ytd-playlist-sidebar-renderer",function(){if(eBe!==void 0)return eBe;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return eBe=y},{mode:1});var oxj;var KWP;var pcW=function(y,W,V,w,t,F,I,P){this.minWidth=y;this.minHeight=W;this.recommendedWidth=V;this.recommendedHeight=w;this.JSC$21793_maxFileSize=t;this.title=F;this.bannerGalleryTitle=I;this.channelId=P;this.picker_=null;y=_.gtj("yt-banner");W=y.addView;V=(new Elm("youtubebanner")).addUploadMetadata("silo_id","19");V.opts.ytMaxFileSize=this.JSC$21793_maxFileSize;w=this.recommendedHeight;V.opts.ytRecWidth=this.recommendedWidth;V.opts.ytRecHeight=w;W.call(y,V);y.addView(new _.$G);W=y.addView;V=new _.$G;
V.opts.type="ytbanner";W.call(y,V.JSC$10000_setLabel(this.bannerGalleryTitle));W=y.setTitle(this.title).setSize(1E3);W.urlParamMap_.set("thumbs","orig");V=this.minWidth;w=this.minHeight;if(isNaN(V)||isNaN(w))throw Error("ob`"+V+"`"+w);W.urlParamMap_.set("minSize",V+"x"+w);W.urlParamMap_.set("cropMode","ytcb");this.builder_=y};
pcW.prototype.open=function(){var y=this;return new _.qN(function(W,V){_.zLz(y.builder_,function(w){w.action=="picked"?W(w):w.action=="cancel"&&V(Error("oo"))});
y.picker_&&y.picker_.dispose();y.picker_=y.builder_.build();y.picker_.setVisible(!0)})};
pcW.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var ixW=function(y){this.channelId=y};
ixW.prototype.upload=function(y){var W="";y.viewToken&&(W=y.viewToken[2].type);var V=y.docs[0];y=V.crop;W={channel_id:this.channelId,fife_url:V.thumbnails[0].url,photo_id:V.id,is_gallery_image:W=="ytbanner"};y&&(W.crop_top=y.top,W.crop_right=y.right,W.crop_bottom=y.bottom,W.crop_left=y.left);return _.iZn("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:W})};var v0=function(){var y=_.u.apply(this,arguments)||this;y.ariaLabel=null;return y};
_.p(v0,_.u);_.E=v0.prototype;_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.E.detached=function(){this.picker&&this.picker.dispose()};
_.E.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.E.computeAriaLabel=function(y){return y};
_.E.onTap=function(){var y=this,W;if((W=this.data)==null||!W.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new pcW(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 V;(V=this.picker)==null||V.open().then(function(w){y.handleBannerPicked(w)},function(){})}};
_.E.handleBannerPicked=function(y){var W=this;this.uploader||(this.uploader=new ixW(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(y).then(function(V){W.handleBannerUploadSucceeded(V)},function(V){W.handleBannerUploadFailed(V)})};
_.E.handleBannerUploadSucceeded=function(y){y&&y.errors?this.handleBannerUploadFailed(y):(_.h1(this.hostElement,"yt-banner-updated",y),this.message=null)};
_.E.handleBannerUploadFailed=function(y){this.message=y&&y.errors&&y.errors.length?y.errors[0]:null};
v0.prototype.dataChanged=v0.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],v0.prototype,"componentBehavior",void 0);_.J([_.m(_.bd),_.R("design:type",Object)],v0.prototype,"ironButtonState",void 0);_.J([_.q(),_.R("design:type",Object)],v0.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.R("design:type",Object)],v0.prototype,"ariaLabel",void 0);
_.J([_.q(),_.R("design:type",Object)],v0.prototype,"message",void 0);_.J([_.q(),_.R("design:type",Object)],v0.prototype,"picker",void 0);_.J([_.q(),_.R("design:type",Object)],v0.prototype,"uploader",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v0.prototype,"dataChanged",null);_.J([_.k({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],v0);
_.Y(v0,"ytd-channel-banner-editor-renderer",function(){if(KWP!==void 0)return KWP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return KWP=y},{mode:1});var fD3;var Tr3=_.CF(["#"]),dT=function(){return _.u.apply(this,arguments)||this};
_.p(dT,_.u);dT.prototype.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y,!0)||_.A_u(Tr3)};
dT.prototype.dataChanged=function(){var y=this.data;y&&y.targetId&&_.zxf(_.$K(),y.targetId,this.moreIcon)};
dT.prototype.dataChanged=dT.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dT.prototype,"data",void 0);_.J([_.s$("#more-icon"),_.R("design:type",Object)],dT.prototype,"moreIcon",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dT.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],dT);
_.Y(dT,"ytd-channel-tagline-renderer",function(){if(fD3!==void 0)return fD3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return fD3=y},{mode:1});var m63;var L4=function(){return _.u.apply(this,arguments)||this};
_.p(L4,_.u);_.E=L4.prototype;_.E.ready=function(){var y=this;_.i6(this.hostElement).querySelector("#form").addEventListener("submit",function(W){y.onSubmit(W)})};
_.E.onDataChanged=function(){var y;((y=this.data)==null?0:y.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.E.onIconButtonKeydown=function(y){y.keyCode===13&&this.iconButton.click()};
_.E.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.E.openOnClickHandler=function(){this.input.focus()};
_.E.onSubmit=function(y){y.preventDefault();return!1};
_.E.submitOnEnterKeyUp=function(y){var W;if(y.keyCode===13&&((W=this.data)==null?0:W.expandedText)){y=this.data.endpoint;W=_.Gc.unsafeClone(y);var V;((V=_.h(W==null?void 0:W.commandMetadata,_.dw))==null?0:V.url)?(_.h(W.commandMetadata,_.dw).url=_.ZY(_.h(W.commandMetadata,_.dw).url,"query",this.data.expandedText),_.h(W,_.sT)&&(_.h(W,_.sT).query=this.data.expandedText),_.h1(this.hostElement,"yt-navigate",{endpoint:W,tempData:{disableCache:!0}})):(V=new _.Js("Error: Trying to navigate to an endpoint without url",
y),_.ap(V))}};
_.E.updateDataExpandedTextFromBinding=function(y){this.set("data.expandedText",y.detail.value)};
_.CM.Object.defineProperties(L4.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
L4.prototype.onDataChanged=L4.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.FTe),_.R("design:type",Object)],L4.prototype,"ytdExpandableInputBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],L4.prototype,"data",void 0);_.J([_.s$("#input"),_.R("design:type",Object)],L4.prototype,"input",void 0);_.J([_.s$("#icon-button"),_.R("design:type",HTMLElement)],L4.prototype,"iconButton",void 0);
_.J([_.q(),_.R("design:type",String),_.R("design:paramtypes",[])],L4.prototype,"searchIcon",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L4.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],L4);
var Zf3=_.MM()(L4,"ytd-expandable-tab-renderer",function(){if(m63===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);m63=y}y=m63;return y},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Ma3;var zg=function(){var y=_.u.apply(this,arguments)||this;y.avatarSize=80;y.ariaLabel=_.u5("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return y};
_.p(zg,_.u);zg.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
zg.prototype.computeHref=function(y){var W;return((W=_.h(y,_.wS))==null?0:W.url)?this.componentBehavior.computeHref_(y):null};
zg.prototype.onTap=function(){var y,W;(y=this.data)==null||!y.editAvatarServiceEndpoint||((W=_.h(this.data.editAvatarServiceEndpoint,_.wS))==null?0:W.url)||_.hs().resolve(_.oA).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.J([_.m(_.bd),_.R("design:type",Object)],zg.prototype,"ironButtonState",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],zg.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zg.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],zg.prototype,"avatarSize",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],zg.prototype,"ariaLabel",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],zg);
_.Y(zg,"ytd-channel-avatar-editor",function(){if(Ma3!==void 0)return Ma3;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Ma3=y},{mode:1});var qlj=_.eY(function(y){var W=y.data;var V=y.noPadding;var w=y.enableBanner;var t=y.cinematicContainerTopbarOffset;var F=y.allowCinematicContainerOverflow;var I=y.displayAsSidebar;y=y.className;_.H1(function(){W().tagManagerId&&(_.ab(W().tagManagerId,_.yC("GL")),Ftj(W().tagManagerId))},"xVTVTe");
var P=_.Yn(WtW,function(){return W().pageHeaderEntityKey});
return _.O("yt-page-header-renderer",{class:_.kS("page-header-renderer-wiz",y)},_.O(_.Q7,{data:function(){var C;return((C=P())==null?0:C.header)?P().header:(I==null?0:I())&&W().sidebarContent?W().sidebarContent:W().content}},{pageHeaderViewModel:function(C){return _.O(_.d6m,{data:C.data,
noPadding:V,enableBanner:w,cinematicContainerTopbarOffset:t,allowCinematicContainerOverflow:F,displayAsSidebar:function(){return(I==null?void 0:I())&&W().enableSidebarView}})}}))},"dj");
qlj.idomCompat=!0;_.iF(qlj,"yt-page-header-renderer",{props:{data:_.vB,noPadding:_.vB,enableBanner:_.vB,cinematicContainerTopbarOffset:_.vB,allowCinematicContainerOverflow:_.vB,displayAsSidebar:_.vB,className:_.vB}});_.iF(_.OxR,"yt-image-banner-view-model",{props:{data:_.vB,isPositionRelative:_.vB}});_.iF(_.Sli,"yt-tab-group-shape",{props:{shape:_.vB}});var c0=function(){var y=_.u.apply(this,arguments)||this;y.expandableCustomTabRenderable=function(W){return y6d(W,function(){return void y.onSearchNavigate()})};
y.isRichGrid=!1;y.isConstrainedList=!1;y.richGridMiniMode=!1;y.richGridStyle="RICH_GRID_STYLE_UNKNOWN";y.isRichGridShorts=!1;y.responsiveSizing="COMPACT";y.disableGridStateAware=!1;y.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return y};
_.p(c0,_.u);_.E=c0.prototype;_.E.computeHeaderDisabled=function(y,W){return W||!y||this.tabsHidden};
_.E.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.E.computeIsRichGridShorts=function(y){return y==="RICH_GRID_STYLE_SHORTS_GRID"||y==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.E.computeImageBannerViewModel=function(){var y,W;return _.h((W=_.h((y=this.data)==null?void 0:y.content,_.Bdq))==null?void 0:W.banner,_.Di2)};
_.E.computeHasCinematicContainer=function(){var y,W;return!((W=_.h((y=this.data)==null?void 0:y.content,_.Bdq))==null||!W.background)};
_.E.handleHeaderResize=function(){var y=_.i6(this.hostElement).querySelector("#header");y&&_.h1(y,"iron-resize")};
_.E.handleInsertTabCommand=function(y){var W=_.h(y,Tqd);W&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(V){return V.tabRenderer&&V.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.E.handleRefreshChannelTabAction=function(y){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===y&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.E.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.qg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.E.observerRichGridSlimItemsPerRow=function(){_.qg(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.E.updateCssVars=function(){this.richGridItemsPerRow&&_.qg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.pB("rich_grid_max_item_width",500))+16)-16+"px"})};
_.E.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.qg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.E.onDataChanged=function(){this.handleHeaderResize()};
_.E.onWindowResize=function(){this.handleHeaderResize()};
_.E.onFocusedChanged=function(y){(y=_.vW(y))&&y.is==="tp-yt-paper-tab"&&y.hasRipple()&&(y.getRipple().holdDown=!y.pointerDown&&y.focused)};
_.E.updateSelectedFromBinding=function(y){this.ytdTabbedHeaderBehavior.selected=y.detail.value};
_.E.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.CM.Object.defineProperties(c0.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:wiE(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.imageBannerViewModel)==null?void 0:y.style)==="IMAGE_BANNER_STYLE_INSET"}}});
c0.prototype.onDataChanged=c0.prototype.onDataChanged;c0.prototype.updateCssVarsForResponsiveGrid=c0.prototype.updateCssVarsForResponsiveGrid;c0.prototype.updateCssVars=c0.prototype.updateCssVars;c0.prototype.observerRichGridSlimItemsPerRow=c0.prototype.observerRichGridSlimItemsPerRow;c0.prototype.observerRichGridItemsPerRow=c0.prototype.observerRichGridItemsPerRow;_.J([_.m(_.tW),_.R("design:type",Object)],c0.prototype,"ytdGridStateAwareBehavior",void 0);
_.J([_.m(mmP),_.R("design:type",Object)],c0.prototype,"ytdTabbedHeaderBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],c0.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],c0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],c0.prototype,"ytdReduxBehavior",void 0);_.J([_.s$("#tabs"),_.R("design:type",Object)],c0.prototype,"tabsElement",void 0);_.J([_.q(),_.R("design:type",Array)],c0.prototype,"tabs",void 0);_.J([_.q(),_.R("design:type",Object)],c0.prototype,"expandableCustomTabRenderable",void 0);_.J([_.M("tabs.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],c0.prototype,"tabGroupShape",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],c0.prototype,"isRichGrid",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],c0.prototype,"isConstrainedList",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Object)],c0.prototype,"richGridMiniMode",void 0);_.J([_.q({selector:function(y){return y.ui.richGridStyle}}),
_.R("design:type",Object)],c0.prototype,"richGridStyle",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.R("design:type",Object)],c0.prototype,"isRichGridShorts",void 0);_.J([_.q({selector:_.r5}),_.R("design:type",Number)],c0.prototype,"richGridItemsPerRow",void 0);_.J([_.q({selector:function(y){return y.ui.richGridContainerWidth}}),
_.R("design:type",Number)],c0.prototype,"richGridContainerWidth",void 0);_.J([_.q({selector:_.phd}),_.R("design:type",Number)],c0.prototype,"richGridSlimItemsPerRow",void 0);_.J([_.q(),_.R("design:type",Object)],c0.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],c0.prototype,"responsiveSizing",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],c0.prototype,"disableGridStateAware",void 0);
_.J([_.q({computed:"computeImageBannerViewModel(data)"}),_.R("design:type",Object)],c0.prototype,"imageBannerViewModel",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.R("design:type",Boolean)],c0.prototype,"hasCinematicContainer",void 0);_.J([_.q({selector:_.nuq,reflectToAttribute:!0}),_.R("design:type",Boolean)],c0.prototype,"guideIsVisibleButNotPersistent",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],c0.prototype,"hasBanner",null);_.J([_.q({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],c0.prototype,"hasInsetBanner",null);_.J([_.q({computed:"computeTabsHidden(tabs)",value:!0}),_.R("design:type",Boolean)],c0.prototype,"tabsHidden",void 0);
_.J([_.xA("richGridItemsPerRow","isRichGrid"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],c0.prototype,"observerRichGridItemsPerRow",null);_.J([_.xA("richGridSlimItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],c0.prototype,"observerRichGridSlimItemsPerRow",null);
_.J([_.xA("richGridItemsPerRow","richGridMiniMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],c0.prototype,"updateCssVars",null);_.J([_.xA("richGridContainerWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],c0.prototype,"updateCssVarsForResponsiveGrid",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],c0.prototype,"onDataChanged",null);
_.J([_.k({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],c0);
_.Y(c0,"ytd-tabbed-page-header",function(){if(oxj!==void 0)return oxj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return oxj=y},{mode:1});var U6v;var eg=function(){return _.u.apply(this,arguments)||this};
_.p(eg,_.u);eg.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.qg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.CM.Object.defineProperties(eg.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.componentBehavior.computeIcon_(((W=_.h((y=this.data)==null?void 0:y.badge,_.iHA))==null?void 0:W.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.badge,_.iHA))==null?void 0:W.label}}});
eg.prototype.observerRichGridItemsPerRow=eg.prototype.observerRichGridItemsPerRow;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],eg.prototype,"componentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],eg.prototype,"ytdReduxBehavior",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.G4}),_.R("design:type",Boolean)],eg.prototype,"richGridMiniMode",void 0);
_.J([_.q({selector:_.r5}),_.R("design:type",Number)],eg.prototype,"richGridItemsPerRow",void 0);_.J([_.q(),_.R("design:type",Object)],eg.prototype,"data",void 0);_.J([_.xA("richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eg.prototype,"observerRichGridItemsPerRow",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eg.prototype,"badgeIconName",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eg.prototype,"badgeLabel",null);_.J([_.k({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],eg);
_.Y(eg,"ytd-member-hub-profile-renderer",function(){if(U6v!==void 0)return U6v;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return U6v=y},{mode:1});var ume;var h7=function(){return _.u.apply(this,arguments)||this};
_.p(h7,_.u);h7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],h7.prototype,"data",void 0);_.J([_.k({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],h7);
_.Y(h7,"ytd-settings-sidebar-renderer",function(){if(ume!==void 0)return ume;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ume=y},{mode:1});var Sl4;var ok=function(){var y=_.u.apply(this,arguments)||this;y.expandableCustomTabRenderable=function(W){return y6d(W,function(){return void y.onSearchNavigate()})};
return y};
_.p(ok,_.u);ok.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ok.prototype.onSearchNavigate=function(){this.selected=void 0};
ok.prototype.onTabsChange=function(){var y,W=(y=this.tabs)==null?void 0:y.findIndex(function(V){var w;return V==null?void 0:(w=V.tabRenderer)==null?void 0:w.selected});
W!==void 0&&(this.selected=W)};
ok.prototype.onTabsActive=function(y){if(this.tabs!==void 0){var W,V;(y=(W=this.tabs[y.detail.selected])==null?void 0:(V=W.tabRenderer)==null?void 0:V.endpoint)&&_.h1(this.hostElement,"yt-navigate",{endpoint:y})}};
_.CM.Object.defineProperties(ok.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:wiE(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
ok.prototype.onTabsChange=ok.prototype.onTabsChange;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.tW),_.R("design:type",Object)],ok.prototype,"ytdGridStateAwareBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],ok.prototype,"ytdGuideStateAwareBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],ok.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],ok.prototype,"tabs",void 0);_.J([_.q(),_.R("design:type",Number)],ok.prototype,"selected",void 0);_.J([_.M("tabs.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],ok.prototype,"tabGroupShape",null);_.J([_.q(),_.R("design:type",Object)],ok.prototype,"expandableCustomTabRenderable",void 0);
_.J([_.M("tabs"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ok.prototype,"tabsEnabled",null);_.J([_.Jc("tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ok.prototype,"onTabsChange",null);_.J([_.k({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],ok);
_.Y(ok,"ytd-topic-channel-details-renderer",function(){if(Sl4!==void 0)return Sl4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Sl4=y},{mode:1});var D6t;var K4=function(){var y=_.u.apply(this,arguments)||this;y.disableGridStateAware=!1;return y};
_.p(K4,_.u);K4.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]]"}}}}}};
K4.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
K4.prototype.updateCssVars=function(){_.qg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.pB("rich_grid_max_item_width",500))+16)-16+"px"})};
K4.prototype.updateCssVars=K4.prototype.updateCssVars;K4.prototype.activeChanged=K4.prototype.activeChanged;_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],K4.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],K4.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],K4.prototype,"tabs",void 0);_.J([_.q(),_.R("design:type",Boolean)],K4.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],K4.prototype,"disableGridStateAware",void 0);
_.J([_.q({selector:_.r5}),_.R("design:type",Number)],K4.prototype,"richGridItemsPerRow",void 0);_.J([_.q({selector:_.G4}),_.R("design:type",Boolean)],K4.prototype,"richGridMiniMode",void 0);_.J([_.s$("ytd-carousel-item-renderer"),_.R("design:type",Object)],K4.prototype,"carousel",void 0);_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],K4.prototype,"activeChanged",null);
_.J([_.xA("richGridItemsPerRow","richGridMiniMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],K4.prototype,"updateCssVars",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],K4);
_.Y(K4,"ytd-carousel-header-renderer",function(){if(D6t!==void 0)return D6t;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return D6t=y},{mode:1});var lDt;var x63=_.CF(["https://www.google-analytics.com/analytics.js"]),p4=function(){var y=_.u.apply(this,arguments)||this;y.scriptAnalyticsAdded=!1;return y};
_.p(p4,_.u);p4.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var y,W=(y=this.data)==null?void 0:y.tagManagerId;W&&(_.ab(W,_.yC("GL")),Ftj(W))};
p4.prototype.sendGoogleAnalyticsPageview=function(y){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var V=_.Ve.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(V)};
var W=window.ga;W("set","page",window.location.pathname);W.l=+new Date;W("set","forceSSL",!0);W("create",y,"'auto'");W("send","pageview")};
p4.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var y=_.xu("SCRIPT");y.name="ga-analytics";var W=_.Tc(x63);_.zC(y,W);y.async=!0;_.i6(this.hostElement).appendChild(y)};
p4.prototype.dataChanged=p4.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],p4.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],p4.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],p4);
_.Y(p4,"ytd-channel-metadata-renderer",function(){if(lDt!==void 0)return lDt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lDt=y},{mode:1});var kKt;var sZt;var il=function(){return _.u.apply(this,arguments)||this};
_.p(il,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],il.prototype,"data",void 0);_.J([_.k({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],il);
_.Y(il,"ytd-sub-feed-option-renderer",function(){if(sZt!==void 0)return sZt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return sZt=y},{mode:1});var ANv;var f4=function(){return _.u.apply(this,arguments)||this};
_.p(f4,_.u);f4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],f4.prototype,"ytRendererStamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],f4.prototype,"data",void 0);_.J([_.k({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],f4);
_.Y(f4,"ytd-sub-feed-selector-renderer",function(){if(ANv!==void 0)return ANv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ANv=y},{mode:1});var Tg=function(){return _.u.apply(this,arguments)||this};
_.p(Tg,_.u);
Tg.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}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Tg.prototype,"data",void 0);_.J([_.k({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Tg);
_.Y(Tg,"ytd-browse-feed-actions-renderer",function(){if(kKt!==void 0)return kKt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return kKt=y},{mode:1});var Yl3;var Brj;var mk=function(){return _.u.apply(this,arguments)||this};
_.p(mk,_.u);mk.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mk.prototype,"data",void 0);_.J([_.k({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],mk);
_.Y(mk,"ytd-mini-channel-renderer",function(){if(Brj!==void 0)return Brj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Brj=y},{mode:1});var JNt;var MX=function(){return _.u.apply(this,arguments)||this};
_.p(MX,_.u);MX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],MX.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],MX);
_.Y(MX,"ytd-vertical-channel-section-renderer",function(){if(JNt!==void 0)return JNt;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return JNt=y},{mode:1});var qX=function(){return _.u.apply(this,arguments)||this};
_.p(qX,_.u);qX.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qX.prototype,"data",void 0);_.J([_.k({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],qX);
_.Y(qX,"ytd-browse-secondary-contents-renderer",function(){if(Yl3!==void 0)return Yl3;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return Yl3=y},{mode:1});var RBj;var UO=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};y.notActive=!1;y.isConstrainedList=!1;return y};
_.p(UO,_.u);_.E=UO.prototype;
_.E.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(y){var W;return(y==null?void 0:(W=y.webComponentHint)==null?void 0:W.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}}}}};
_.E.getPath=function(y,W){var V="data.tabs.#"+W+".";y.tabs[W].tabRenderer?V+="tabRenderer.":y.tabs[W].expandableTabRenderer&&(V+="expandableTabRenderer.");return V+"content.sectionListRenderer"};
_.E.computeDisplayedContent=function(y){this.unlinkPaths("content");if(y&&y.tabs)for(var W=y.tabs.length,V=0;V<W;V++){var w=y.tabs[V].tabRenderer||y.tabs[V].expandableTabRenderer;if(w.selected&&w.content)return this.linkPaths("content",this.getPath(y,V)),w.content}return null};
_.E.computeHasSecondaryColumnData=function(y){return!!y&&!!y.secondaryContents};
_.E.onRetrieveLocation=function(y,W){W.locationRetrieved(W.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);y.stopPropagation()};
_.E.onYtServiceRequestSent=function(y,W){_.e("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.E.onYtServiceRequestCompleted=function(y,W){_.e("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.E.onReplaceFeedContentAction=function(y){if(!_.e("replace_feed_content_action_killswitch")&&!this.notActive){var W;(y=(W=_.h(y,dmj))==null?void 0:W.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(y)}};
_.E.handleServiceRequestActions=function(y){if(y=y.actions){y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var V=void 0;((V=_.h(W,dmj))==null?0:V.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.h(W,dmj).items)}}};
UO.prototype.onYtServiceRequestCompleted=UO.prototype.onYtServiceRequestCompleted;UO.prototype.onYtServiceRequestSent=UO.prototype.onYtServiceRequestSent;UO.prototype.onRetrieveLocation=UO.prototype.onRetrieveLocation;_.J([_.m(_.tW),_.R("design:type",Object)],UO.prototype,"ytdGridStateAwareBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],UO.prototype,"data",void 0);_.J([_.q({computed:"computeDisplayedContent(data)"}),_.R("design:type",Object)],UO.prototype,"content",void 0);
_.J([_.q({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],UO.prototype,"hasSecondaryColumnData",void 0);_.J([_.q({value:function(){return window.outerHeight>1024?3:2}}),
_.R("design:type",Number)],UO.prototype,"initialCount",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],UO.prototype,"pageSubtype",void 0);_.J([_.s$("ytd-section-list-renderer"),_.R("design:type",Object)],UO.prototype,"listRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],UO.prototype,"notActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],UO.prototype,"isConstrainedList",void 0);
_.J([_.q(),_.R("design:type",String)],UO.prototype,"responsiveSizing",void 0);_.J([_.l6("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],UO.prototype,"onRetrieveLocation",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],UO.prototype,"onYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],UO.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],UO);
_.Y(UO,"ytd-two-column-browse-results-renderer",function(){if(RBj!==void 0)return RBj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return RBj=y},{mode:2});var jZu;var $6j;var ul=function(){var y=_.u.apply(this,arguments)||this;y.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"]);y.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"]);y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return y};
_.p(ul,_.u);_.E=ul.prototype;_.E.attached=function(){this.requestElementsPerRow()};
_.E.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_]]"}}}}}};
_.E.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
_.E.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.E.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.E.computeAlertStyle_=function(y){return y};
_.E.observerElementsPerRow=function(){this.elementsPerRow&&_.qg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.E.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.E.requestElementsPerRow=function(){_.h1(this.hostElement,"yt-request-elements-per-row")};
ul.prototype.onIsVisibleChanged_=ul.prototype.onIsVisibleChanged_;ul.prototype.observerElementsPerRow=ul.prototype.observerElementsPerRow;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ul.prototype,"actionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],ul.prototype,"data",void 0);_.J([_.q({value:6,reflectToAttribute:!0}),_.R("design:type",Number)],ul.prototype,"elementsPerRow",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],ul.prototype,"wrapButtons",void 0);_.J([_.q({value:_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.R("design:type",Boolean)],ul.prototype,"isMusic",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.R("design:type",String)],ul.prototype,"alertStyle",void 0);_.J([_.q({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.R("design:type",Function)],ul.prototype,"dismissBoundButtonTap_",void 0);_.J([_.q({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.R("design:type",Function)],ul.prototype,"acceptBoundButtonTap_",void 0);_.J([_.xA("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ul.prototype,"observerElementsPerRow",null);_.J([_.xA("data.isVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ul.prototype,"onIsVisibleChanged_",null);_.J([_.Zp({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],ul);
_.Y(ul,"yt-alert-with-actions-renderer",function(){if($6j===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;jZu===void 0&&(jZu=document.createElement("template"));var w=jZu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$6j=y}y=$6j;return y},{mode:2});_.iF(_.eY(function(y){function W(c){var K={};return _.O(_.Lv,{text:c,className:_.kS("ytPersonalGreetingViewModelHeadline",(K.ytPersonalGreetingViewModelHeadlineSmall=function(){return P()===48},K))})}
function V(c,K){return _.O("span",{el:c,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},W(K))}
var w=_.hl(_.FW(function(){var c;return(c=y.data())==null?void 0:c.rendererContext},void 0,void 0,void 0,!0)),t=_.I0("span"),F=_.I0("span"),I=function(){return y.data().canvasPromoData},P=function(){var c;
return(c=y.data().bannerHeight)!=null?c:56},C=_.Z_R(w,{throttleMs:100}),d=_.Z_R(t,{throttleMs:100}),L=_.Z_R(F,{throttleMs:100}),z=function(){return d.width()-C.width()>1};
return _.O("yt-personal-greeting-view-model",{el:w,"aria-hidden":z,class:_.kS(y.className,"ytPersonalGreetingViewModelHost"),style:_.Rd({height:(0,_.bH)(function(){return z()?0:P()})})},_.O(_.v,{cond:function(){return y.data().avatar&&!(L.width()+(y.data().avatar?48:0)-C.width()>1)},
then:function(){return _.O(_.Q7,{data:function(){return y.data().avatar}},{decoratedAvatarViewModel:function(c){return _.O(_.bV,{data:c.data,
className:_.kS("ytPersonalGreetingViewModelAvatar")})}})}}),_.O("h1",null,W(function(){var c;
return(I==null?void 0:(c=I())==null?void 0:c.headline)||(L.width()+(y.data().avatar?48:0)-C.width()>1?y.data().shorterGreeting:y.data().greeting)})),V(F,function(){return y.data().greeting}),V(t,function(){return y.data().shorterGreeting}))},"ej"),"yt-personal-greeting-view-model",{props:{data:_.vB,
className:_.vB}});var Sg=function(){var y=_.u.apply(this,arguments)||this;y.hidden=!1;y.isConstrainedList=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.responsiveSizing="COMPACT";y.attachedPlayers=_.e("kevlar_channel_trailer_multi_attach")?[]:void 0;y.player=null;y.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return y};
_.p(Sg,_.u);_.E=Sg.prototype;
_.E.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}}}}};
_.E.created=function(){var y=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){y.disposeMastheadAd()}]};
_.E.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Umt(this.refresh,this.contents))};
_.E.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.E.activeChanged=function(){var y=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=y)};
_.E.tabsChanged=function(){var y=this,W,V;if(this.pageSubtype==="channels"||_.e("kevlar_tab_gestures_for_tabbed_header_data")&&((W=this.data)==null?0:(V=W.header)==null?0:V.carouselHeaderRenderer))this.tabGestures=new Ul(this.contents,this.contents,this.hostElement,this.header,function(I){y.ytdReduxBehavior.dispatch(I)});
var w,t,F;W=(w=this.data)==null?void 0:(t=w.contents)==null?void 0:(F=t.twoColumnBrowseResultsRenderer)==null?void 0:F.tabs;this.tabGestures&&this.tabGestures.tabsChanged(W)};
_.E.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.E.engagementPanelsChanged=function(){var y=_.hs().resolve(_.$t);if(y){if(this.engagementPanels)for(var W=_.N(this.engagementPanels),V=W.next();!V.done;V=W.next()){var w=void 0;(V=(w=V.value.identifier)==null?void 0:w.tag)&&y.panelMap.delete(V)}this.engagementPanels=[];var t;W=_.N(((t=this.data)==null?void 0:t.panels)||[]);for(t=W.next();!t.done;t=W.next()){t=_.h(t.value,_.Nnm);var F=V=void 0,I=void 0,P=void 0;if(w=((V=t)==null?void 0:V.targetId)||((F=t)==null?void 0:F.panelIdentifier)||((I=t)==
null?void 0:(P=I.identifier)==null?void 0:P.tag))F=V=void 0,(F=(V=y).registerPanelContent)==null||F.call(V,w,{engagementPanelSectionListRenderer:t}),this.engagementPanels.push(t)}}};
_.E.onStampFinished=function(){var y=this;_.gy(this,function(){if(y.tabGestures){var W=y.tabGestures;if(W.scrollPositionNeedsUpdate){var V=_.hs().resolve(_.eX(_.hn)),w;if((w=W.selectedTab)!=null&&w.title&&V&&(w=V.getCurrentPage())){if(W.scrollPositionForTabs.has(W.selectedTab.title)){var t,F;V=(F=(t=V.getCurrentPage())==null?void 0:t.clientHeight)!=null?F:0;t=W.scrollPositionForTabs.get(W.selectedTab.title);w.setScrollTop(t);V>t+100&&(W.scrollPositionNeedsUpdate=!1)}else w.setScrollTop(Math.min(W.lastVisitedTabScrollPosition!==
void 0?W.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,W.tabsStartAtInPx)),W.scrollPositionNeedsUpdate=!1;W.ytdReduxDispatch(tuq(!1))}}}})};
_.E.loadPage_=function(y){this.initCsi();y&&(this.data=y);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.E.getTitle=function(y){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",y))return this.get("microformat.microformatDataRenderer.title",y);if(this.get("header.feedTabbedHeaderRenderer.title",y))return _.OT(this.get("header.feedTabbedHeaderRenderer.title",y));if(this.get("header.interactiveTabbedHeaderRenderer.title",y))return this.get("header.interactiveTabbedHeaderRenderer.title",y);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
y))return _.OT(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",y));var W,V;return _.e("enable_page_header_page_title")&&(y==null?0:(W=y.header)==null?0:(V=W.pageHeaderRenderer)==null?0:V.pageTitle)?y.header.pageHeaderRenderer.pageTitle:""};
_.E.updateTitle=function(y){_.h1(this.hostElement,"yt-update-title",this.getTitle(y))};
_.E.initCsi=function(){_.fx(this.pageSubtype||"browse",["ol","cpt"])};
_.E.getPlayer=function(){if(_.e("kevlar_channel_trailer_multi_attach")){for(var y=_.N(this.attachedPlayers),W=y.next();!W.done;W=y.next())if(W=W.value,W.isConnected||_.wf(this.hostElement,W))return W;return null}return this.player};
_.E.getPlayerContainer=function(){return null};
_.E.onPlayerAttached=function(y,W){_.e("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(W):this.player=W};
_.E.onPlayerDetached=function(y,W){_.e("kevlar_channel_trailer_multi_attach")?(y=this.attachedPlayers.indexOf(W),y<0||this.attachedPlayers.splice(y,1)):this.player=null};
_.E.getServiceTrackingParams=function(){var y,W;return((y=this.data)==null?void 0:(W=y.responseContext)==null?void 0:W.serviceTrackingParams)||[]};
_.E.setMastheadAd=function(y){y&&y.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=y&&y.mastheadAd};
_.E.dataChanged=function(){var y=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.RaC();_.gy(this,function(){_.Kg(y.hostElement,"ytd-update-grid-state-action")})};
_.E.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.E.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var y=this.data.alerts;return y&&y.find(function(W){return!!W.alertWithActionsRenderer})}};
_.E.computeGreetingData=function(){if(this.data&&this.data.alerts){var y=this.data.alerts;return y&&y.find(function(W){return!!W.personalGreetingViewModel})}};
_.E.computeHasMemberHubProfileRenderer=function(y){var W;return!!(y==null?0:(W=y.header)==null?0:W.memberHubProfileRenderer)};
_.E.handleAlertCommand=function(y){this.get("alertCommand.alert.alertWithActionsRenderer",y)&&(y=_.h(y,Lt3),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",y.alert))};
_.E.handleYtPlaylistDeletionRedirect=function(y){y=this.get("playlistDeletionRedirectCommand.redirectEndpoint",y);_.h1(this.hostElement,"yt-navigate",{endpoint:y})};
_.E.computeFluidWidth=function(y,W,V){if(W==="mini_app"||V)return!0;var w,t,F;y=y==null?void 0:(w=y.contents)==null?void 0:(t=w.twoColumnBrowseResultsRenderer)==null?void 0:(F=t.tabs)==null?void 0:F.find(function(C){var d;return C==null?void 0:(d=C.tabRenderer)==null?void 0:d.selected});
if(!y)return!1;var I,P;return!!((I=y.tabRenderer)==null?0:(P=I.content)==null?0:P.richGridRenderer)&&!["channel","channels","playables"].includes(W)};
_.E.computeHeaderFluidWidth=function(y){return y==="hashtag-landing-page"};
_.E.computeHasSidebar=function(y){var W;return!!(y.sidebar||((W=y.header)==null?0:W.playlistHeaderRenderer))};
_.E.computeHasPageHeaderSidebar=function(y){var W,V;return!!((W=y.header)==null?0:(V=W.pageHeaderRenderer)==null?0:V.enableSidebarView)};
_.E.computeUseUnifiedShowPageLayout=function(y){if(!y||this.pageSubtype!=="show"||!y.sidebar||!y.sidebar.playlistSidebarRenderer)return!1;y=y.sidebar.playlistSidebarRenderer;if(!y.items)return!1;for(var W=0;W<y.items.length;W++)if(_.h(y.items[W],M6)){var V=void 0;return((V=_.h(y.items[W],M6))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E.computeIsConstrainedList=function(y){return _.e("web_enable_constrained_list_subscriptions_channels")&&y==="subscriptions-channels"};
_.E.computeResponsiveSizing=function(y){return y==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.CM.Object.defineProperties(Sg.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?0:(W=y.header)==null?0:W.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.sidebar)==null?0:W.playlistSidebarRenderer))return!1;var V;return(V=this.data)!=null&&V.header?!1:!0}}});
_.CM.Object.defineProperties(Sg,{template:{configurable:!0,enumerable:!0,get:function(){if(Dmv===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Dmv=y}y=Dmv;return y}}});
Sg.prototype.dataChanged=Sg.prototype.dataChanged;Sg.prototype.onPlayerDetached=Sg.prototype.onPlayerDetached;Sg.prototype.onPlayerAttached=Sg.prototype.onPlayerAttached;Sg.prototype.onStampFinished=Sg.prototype.onStampFinished;Sg.prototype.engagementPanelsChanged=Sg.prototype.engagementPanelsChanged;Sg.prototype.scrollAtTopChanged=Sg.prototype.scrollAtTopChanged;Sg.prototype.tabsChanged=Sg.prototype.tabsChanged;Sg.prototype.activeChanged=Sg.prototype.activeChanged;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Sg.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],Sg.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Sg.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.TK.YtPageBehavior),_.R("design:type",Object)],Sg.prototype,"ytPageBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],Sg.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Sg.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sg.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Sg.prototype,"hidden",void 0);
_.J([_.q(),_.R("design:type",Object)],Sg.prototype,"mastheadAdData",void 0);_.J([_.q({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.R("design:type",Object)],Sg.prototype,"alertBannerData",void 0);_.J([_.q({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.R("design:type",Object)],Sg.prototype,"greetingData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],Sg.prototype,"pageSubtype",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.R("design:type",Boolean)],Sg.prototype,"hasMemberHubProfileRenderer",void 0);_.J([_.q({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Sg.prototype,"hasSidebar",void 0);_.J([_.q({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Sg.prototype,"hasPageHeaderSidebar",void 0);
_.J([_.q({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],Sg.prototype,"roundedContainer",void 0);_.J([_.q({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Sg.prototype,"useUnifiedShowPageLayout",void 0);_.J([_.q({computed:"computeIsConstrainedList(pageSubtype)"}),_.R("design:type",Object)],Sg.prototype,"isConstrainedList",void 0);
_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Sg.prototype,"usePlaylistHeaderRenderer",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Sg.prototype,"useOldPlaylistSidebarRenderer",null);_.J([_.q({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.R("design:type",Boolean)],Sg.prototype,"fluidWidth",void 0);_.J([_.q({selector:function(y){return y.ui.scrollAtTop}}),
_.R("design:type",Boolean)],Sg.prototype,"scrollAtTop",void 0);_.J([_.q({selector:_.Hat}),_.R("design:type",Boolean)],Sg.prototype,"tabGesturesIsActive",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Sg.prototype,"darkerDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.R("design:type",Boolean)],Sg.prototype,"disableHeaderFluidWidth",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.R("design:type",String)],Sg.prototype,"responsiveSizing",void 0);_.J([_.s$("ytd-two-column-browse-results-renderer"),_.R("design:type",HTMLElement)],Sg.prototype,"contents",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],Sg.prototype,"header",void 0);_.J([_.s$("ytd-refresh"),_.R("design:type",Object)],Sg.prototype,"refresh",void 0);
_.J([_.xA("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"activeChanged",null);_.J([_.xA("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"tabsChanged",null);_.J([_.xA("scrollAtTop"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"scrollAtTopChanged",null);
_.J([_.q(),_.R("design:type",Object)],Sg.prototype,"engagementPanels",void 0);_.J([_.xA("data.panels"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"engagementPanelsChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"onStampFinished",null);
_.J([_.l6("yt-player-attached"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Element]),_.R("design:returntype")],Sg.prototype,"onPlayerAttached",null);_.J([_.l6("yt-player-detached"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Element]),_.R("design:returntype")],Sg.prototype,"onPlayerDetached",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sg.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-browse"})],Sg);_.mP.registerService(_.Zxj,Sg);
_.rJ();
}catch(e){_._DumpException(e)}
try{
_.Gk("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 My=function(y){if(!y)return"browse";var W=y.page,V=y.url,w,t,F,I=(w=y.response)==null?void 0:(t=w.responseContext)==null?void 0:(F=t.webResponseContextExtensionData)==null?void 0:F.pageTheme;if(I)W=I.toLowerCase().replace(/_/g,"-");else if(W!=="watch"&&W!=="learning_journey_watch"){var P,C;if((W==="browse"||W==="settings")&&((P=y.response)==null?0:(C=P.sidebar)==null?0:C.settingsSidebarRenderer))W="WEB_PAGE_TYPE_SETTINGS";else{var d,L;W==="browse"&&((d=y.response)==null?0:(L=d.metadata)==null?
0:L.channelMetadataRenderer)?W="channel":V&&(W=_.x1(V)||W)}}return W},wl4=function(){var y=_.ts("yt.aba.att");
return y?y:_.iY.instance!==void 0?_.iY.instance.qYH.bind(_.iY.instance):null},tiC=function(y,W){var V;
return _.g(function(w){return(V=wl4())?w.return(V(y,W,6E4)):w.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},FJ3=function(y,W,V,w,t){W=W===void 0?[]:W;
t=t?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:t}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.oB(y),dialogMessages:W.map(function(F){return _.oB(F)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oB(V),serviceEndpoint:t}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.oB(w)}}}}}},Eke=function(y){var W=!!_.Ib().queueProxy;
var V,w,t;y=y==null?void 0:(V=y.response)==null?void 0:(w=V.currentVideoEndpoint)==null?void 0:(t=w.watchEndpoint)==null?void 0:t.playlistId;return!(!W&&!y)},NS4=function(y,W){var V=_.s8();
if(Eke(y))return V.playlistWatchPageActivation=!0;switch(My(W)){case "yts-products":return V.productDetailsPageActivation=!0;case "mini_app":return V.miniAppPageActivation=!0;case "playables":return V.playablesDestPageActivation=!0;default:return!1}},IRq=function(y,W,V){for(var w=typeof y==="string"?y.split(""):y,t=y.length-1;t>=0;--t)t in w&&W.call(V,w[t],t,y)},gk4=function(y,W){W=_.cvv(y,W);
W>=0&&_.aR(y,W)},P44=function(y){return Array.prototype.concat.apply([],arguments)},C43=function(y){var W=0;
W=W===void 0?0:W;if(!_.cd(y))throw _.dm("uint64");var V=typeof y;switch(W){case 512:switch(V){case "string":return _.Oqn(y);case "bigint":return String((0,_.s3)(64,y));default:return _.P2d(y)}case 1024:switch(V){case "string":return _.vJR(y);case "bigint":return _.rm((0,_.s3)(64,y));default:return _.C2t(y)}case 0:switch(V){case "string":return _.Oqn(y);case "bigint":return _.rm((0,_.s3)(64,y));default:return _.gJt(y)}default:return _.gW(W,"Unknown format requested type for int64")}},O7q=function(y){y!=
null&&(y=y.JSC$8743_value_||"",y=typeof y==="string"?y:new Uint8Array(y));
return y},vk3=function(y){for(var W=_.Ve.apply(1,arguments),V=y[0],w=0;w<y.length-1;w++)V+=String(W[w]),V+=y[w+1];
W=document.implementation.createHTMLDocument("");w=W.createElement("style");W.head.appendChild(w);W=w.sheet;W.insertRule(V,0);if(W.cssRules.length===1&&(V=W.cssRules[0],V instanceof CSSStyleRule))return new _.oh(V.cssText.replace(/</g,"\\3C "))},dTt=function(y,W){if(/-[a-z]/.test(W))return null;
if(_.$u6&&y.dataset){if(_.Ita()&&!(W in y.dataset))return null;y=y.dataset[W];return y===void 0?null:y}return y.getAttribute("data-"+_.uu(W))},zmW=function(){var y=LJ4;
_.ts("yt.ads.biscotti.getId_")||_.dE("yt.ads.biscotti.getId_",y)},cLu=function(y){_.dE("yt.ads.biscotti.lastId_",y)},hmC=function(){var y={};
for(_.H4=new emC(y.handleError===void 0?_.GD:y.handleError,y.logEvent===void 0?_.Hp:y.logEvent);_.XU.length>0;)switch(y=_.XU.shift(),y.type){case "ERROR":_.H4.logError(y.payload);break;case "EVENT":_.H4.logEvent(y.eventType,y.payload)}},okE=function(y,W,V){return _.i2v(function(w){return V?w.userIdentifier!==void 0&&!y.includes(w.userIdentifier)&&V.includes(w.publicName):w.userIdentifier!==void 0&&!y.includes(w.userIdentifier)},W)},KJt=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1)return W=_.Y_("YtIdbMeta hasAnyMeta other"),w.yield(_.i2v(function(t){return t.userIdentifier!==void 0&&t.userIdentifier!==W},y),2);
V=w.yieldResult;return w.return(V.length>0)})},i7v=function(y,W){plu||(plu=_.HU.addLowPriorityJob(function(){var V,w,t,F,I;
return _.g(function(P){switch(P.nextAddress){case 1:return P.yield(_.LA(),2);case 2:V=P.yieldResult;if(!V)return P.return();w=!0;_.l7(P,3);return P.yield(okE(y,V,W),5);case 5:t=P.yieldResult;if(!t.length){w=!1;P.jumpTo(6);break}F=t[0];return P.yield(_.Nk(F.actualName),7);case 7:return P.yield(_.PU(F.actualName,V),6);case 6:_.E6(P,4);break;case 3:I=_.YX(P),_.aA(I),w=!1;case 4:_.HU.cancelJob(plu),plu=0,w&&i7v(y,W),_.B7(P)}})}))},fRE=function(){var y;
return _.g(function(W){return W.nextAddress==1?W.yield(_.LA(),2):(y=W.yieldResult)?W.return(KJt(y)):W.return(!1)})},TS3=function(y){var W=100;
W=W===void 0?500:W;var V,w,t,F,I,P;return _.g(function(C){return C.nextAddress==1?(V=_.yC("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[V,(0,_.cU)()-2592E6],t=[V,(0,_.cU)()],F=IDBKeyRange.bound(w,t),C.yield(_.rcP(y),2)):C.nextAddress!=3?(I=C.yieldResult,P=[],C.yield(_.gE(I,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){P.length=0;return _.e1(d.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:F,direction:"prev"},function(L){if(L.getValue()&&P.length<W)return P.push(L.getValue()),
L.delete().then(function(){return L.continue()})})}),3)):C.return(P)})},mTv=function(){var y;
return _.g(function(W){if(W.nextAddress==1)return W.yield(_.LA(),2);y=W.yieldResult;if(!y||!_.B4()&&!_.e("nwl_init_require_datasync_id_killswitch")||!_.LMz())return W.jumpTo(0);_.cYa=!0;_.z6z.isNwlInitialized=_.cYa;return W.yield(_.CuE().awaitInitialization(),0)})},qy=function(y,W){_.l8d[y]=!0;
var V=_.ht();V&&V.publish.apply(V,arguments);_.l8d[y]=!1},qhC=function(){if(_.C64()&&!Miu){var y=function(V){V=V.data;
if(V.op==="serializedGelBatch"){var w=_.x4j.get(V.key);w&&(_.sdv(V.serializedBatch,w.client,w.resolve,w.networklessOptions,w.isIsolated,w.useVSSEndpoint,w.dangerousLogToVisitorSession,w.requestsOutstanding),_.x4j.delete(V.key))}},W=_.P6L();
W&&(W.addEventListener("message",y),W.onerror=function(){_.x4j.clear()});
Miu=!0}},U7=function(){this.relativeTimeStart_=_.KF()},UT3=function(y,W){y!=null&&this.append.apply(this,arguments)},uDt=function(){return _.QV("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},ShP=function(y,W,V){V=V===void 0?!1:V;
var w,t,F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:_.s1("SOCS",y,34128E3,"youtube.com",!0);if(_.uP)return t=fetch(W,{method:"POST",mode:_.F$(W),credentials:_.t1(W),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),F=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.F$("/upgrade_visitor_cookie?eom=1"),credentials:_.t1("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),C.yield(Promise.all([t,F]).then(function(d){return d[1]}),5);
fetch(W,{method:"POST",mode:_.F$(W),credentials:_.t1(W),cache:"no-store",headers:{"Content-Type":"text/plain"}});return C.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.F$("/upgrade_visitor_cookie?eom=1"),credentials:_.t1("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:w=C.yieldResult;C.jumpTo(3);break;case 5:w=I=C.yieldResult;case 3:if(!w.ok)throw Error("wf");return C.yield(w.text(),7);case 7:P=C.yieldResult,
!P.includes('"state_switch":true')&&!V||P.includes("skip_reload_for_test")||window.location.reload(),_.B7(C)}})},DTE=function(y){return _.g(function(W){return W.nextAddress==1?W.yield(ShP(y.socsCookie,y.savePreferenceUrl,!0),2):W.return()})},lRv=function(y){return _.g(function(W){return W.nextAddress==1?W.yield(ShP(y.socsCookie,y.savePreferenceUrl),2):W.return()})},kYu=function(y){y=y.xhr.responseText;
if(!_.tv(y,")]}'"))throw new uG;y=JSON.parse(y.substr(4));if((y.type||1)>1)throw new uG;y=y.id;cLu(y);SR=_.O8(y);xTW(18E5,2);return y},ALv=function(y,W){W=new s0W(W);
cLu("");SR=_.bhI(W);y>0&&xTW(12E4,y-1);throw W;},xTW=function(y,W){_.mj(function(){_.jpm().then(kYu,function(V){return ALv(W,V)}).thenCatch(_.A$)},y)},LJ4=function(){var y=_.Hi3();
if(y!==void 0)return _.Gb(y);SR||(SR=_.jpm().then(kYu).thenCatch(function(W){return ALv(2,W)}));
return SR},Yhu=function(){var y=document;
return _.By(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in y})},BSq=function(y){y.addEventListener("click",function(W){var V=W.target;
V&&V.getAttribute("href")&&(V=V.getAttribute("href"),_.P7(window,V,"_blank"),W.preventDefault(),W.stopImmediatePropagation())})},JL3=function(y){var W,V,w,t=(w=(V=((W=y.mainDownloadsListEntity)!=null?W:{})[_.dxa])==null?void 0:V.refresh)!=null?w:"",F;
y=(F=y.refresh)==null?void 0:F[t];t=y!=null?y:{};return(t==null?0:t.refreshTime)?Number(t==null?void 0:t.refreshTime):0},Rmu=function(y,W){var V=_.$C(y);
return W.every(function(w){var t;w=w==null?void 0:(t=w.playbackDataEntity)==null?void 0:t.key;if(!w)return!1;t=_.qK(_.T4(w).entityId,"mainVideoEntity");return!!V[t]})},j0t=function(y){y=_.Jz(y.entities);
return _.qVy(y).length},$Tj=function(y,W){if(W){var V;
y=(V=_.UB(y.entities,"downloadQualityPickerEntity",W))!=null?V:void 0}else y=void 0;return y},Xl3=function(){nkW||(_.P9=_.OcG,nkW=new H7u);
return nkW},aRC=function(y){var W=document.getElementsByTagName("ytd-enforcement-message-view-model");
W.length===0||getComputedStyle(W[0]).display==="none"?y(0,"p.h_"):y(1,"p.h_")},GYq=function(){DW=0;
var y=[_.B9(!0)];lG&&_.Kg(lG,"yt-window-resized",y)},rL3=function(){DW||(DW=_.HU.addLowPriorityJob(GYq,200))},Q0C=function(){xM=0;
b7u=_.nJA(document);var y=[b7u];lG&&_.Kg(lG,"yt-window-scrolled",y)},Z7P=function(){xM||(xM=_.HU.addLowPriorityJob(Q0C,200))},WNP=function(y){y=y===void 0?null:y;
y83.push(_.Li(window,"resize",rL3));y83.push(_.Li(window,"scroll",Z7P));y&&(lG=y)},wfE=function(){var y={isWide:_.k_.get("wide","0")==="1"},W=_.l5();
if(W=W.getFlag(165)||W.getFlag(174))y.theme=_.H9(!0);if(_.wS4()){var V=_.nO()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";y.systemTheme=V}!W&&_.e("parent_tools_enable_app_settings")&&_.P4(window.location.href).theme!==void 0&&(y.theme=_.H9());if((W=kM)?!_.Gc.equals(W,y):y)W={currentValue:y},VKW&&(W.timeSinceLastSnapshotSecs=Math.round(((0,_.cU)()-VKW)/1E3)),kM&&(W.previousValue=kM),_.Hp("appSettingsCaptured",W),kM=y,VKW=(0,_.cU)()},tK4=function(y){_.g(function(W){if(W.nextAddress==1)return W.yield(y.delete("yt-appshell-assets"),
2);
_.B7(W)})},FNt=function(y){return _.IV((0,_.TRq)(),y)},Nyq=function(){var y;
_.g(function(W){return W.nextAddress==1?W.yield(s7.getInstance(),2):(y=W.yieldResult)?W.yield(EyE(y),0):W.jumpTo(0)})},gyq=function(){var y;
_.g(function(W){return W.nextAddress==1?W.yield(Aw.getInstance(),2):(y=W.yieldResult)?W.yield(IAj(y),0):W.jumpTo(0)})},Puv=function(y){tK4(y);
Nyq();gyq()},Cu3=function(y){var W,V;
return _.g(function(w){if(w.nextAddress==1)return w.yield(_.TZj(y),2);if(W=w.yieldResult){var t;a:{if(W.headers&&(t=W.headers.get("date"))&&(t=Date.parse(t),!isNaN(t))){t=Math.round((0,_.cU)()-t);break a}t=-1}V=t;if(V>-1)return w.return(V)}return w.return(-1)})},OMu=function(){var y=_.Vj.caches,W=_.W4("IS_SHELL_LOAD"),V,w;
_.g(function(t){if(t.nextAddress==1)return V=-1,W?t.yield(Cu3(y),3):(w=_.BN(),V=Math.round((0,_.cU)()-w),t.jumpTo(2));t.nextAddress!=2&&(V=t.yieldResult);V>=0&&V<2147483648&&_.HN({appInstallDataAgeMs:V});_.B7(t)})},vy4=function(y){var W=_.Ey(_.Vj.location.href),V={};
"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(w){var t=W.JSC$9958_queryData_.getValues(w);if(t==null?0:t.length)V[w]=t});
return _.mb(y,new Map(Object.entries(V)))},dBj=function(y){y=y.match(/(.*)::.*::.*/);
if(y!==null)return y[1]},LNv=function(y){if(_.$dP()){var W=Object.keys(window.localStorage);
W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=dBj(V);w===void 0||y.includes(w)||self.localStorage.removeItem(V)}}},zDd=function(){if(!_.$dP())return!1;
var y=_.Y_(),W=Object.keys(window.localStorage);W=_.N(W);for(var V=W.next();!V.done;V=W.next())if(V=dBj(V.value),V!==void 0&&V!==y)return!0;return!1},c8C=function(y){return _.hw("NotificationsDisabled",y)},eDj=function(){return Notification.permission!="granted"?Promise.resolve():_.XMm().then(function(y){return y?y.pushManager.getSubscription().then(function(W){if(W)return Promise.resolve();
W={userVisibleOnly:!0,applicationServerKey:_.Cq("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return y.pushManager.subscribe(W).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},hDq=function(y){return _.XMm().then(function(W){if(!W||!W.active)return Promise.reject(new _.Js("serviceworker.postMessage",y,W));
try{return W.active.postMessage(y),Promise.resolve()}catch(V){return Promise.reject(V)}})},oyj=function(){hDq({type:"notifications_register",
data:_.yC("ID_TOKEN")})},KNe=function(){if(!_.W4("LOGGED_IN"))return Promise.resolve(!1);
var y=_.iC("service_worker_push_force_notification_prompt_tag");return y?_.Ta("PromptTags").then(function(W){if(!W)return!0;var V=[];try{V=JSON.parse(W)}catch(w){return!1}return V&&V.indexOf(y)==-1}):Promise.resolve(!1)},pfv=function(){var y=_.pB("service_worker_push_prompt_delay_microseconds");
return y?_.Ta("PromptTime").then(function(W){return Promise.resolve(Date.now()-y>(W||0))}):Promise.resolve(!0)},iMt=function(){var y=_.pB("service_worker_push_logged_out_prompt_watches");
return y==-1?Promise.resolve(!1):_.Ta("WatchCount").then(function(W){return W>=y})},fAe=function(){var y=_.i8(document,"yt-push-prompt-modal-bg");
y&&_.ku(y)},Ty3=function(){return _.pB("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Ta("PromptCount").then(function(y){y||(y=0);
return Promise.resolve(y<_.pB("service_worker_push_prompt_cap"))})},mBj=function(y){return _.W4("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.W4("LOGGED_IN")&&(y===void 0?0:y)?KNe().then(function(W){if(W)return!0;
W=[Ty3(),pfv()];_.W4("LOGGED_IN")||W.push(iMt());return Promise.all(W).then(function(V){return V.every(function(w){return w})})}):Promise.resolve(!1)},MKu=function(){_.Ta("PromptCount").then(function(y){return _.hw("PromptCount",y+1)}).then(function(){return _.hw("PromptTime",Date.now())}).then(function(){var y=_.iC("service_worker_push_force_notification_prompt_tag");
if(y)return _.Ta("PromptTags").then(function(W){var V=[];if(W)try{V=JSON.parse(W)}catch(w){return!1}V||(V=[]);V.push(y);return _.hw("PromptTags",JSON.stringify(V))})})},UBj=function(){q0j||fAe()},unP=function(y){y.style.zIndex=2147483648;
y.style.pointerEvents="auto";y.style.backgroundColor="rgba(0, 0, 0, 0.6)";y.style.width="100%";y.style.height="100vh";y.style.position="absolute";y.style.top="0";y.style.left="0";y.style.border="none"},S03=function(){var y=_.i8(document,"yt-push-prompt-modal-bg");
q0j=_.e("service_worker_push_prompt_modal_ignore_click");y?unP(y):(y=_.H8("div",{id:"yt-push-prompt-modal-bg"}),unP(y),document.body.appendChild(y),_.UMz(document,"click",UBj))},DBu=function(){var y=arguments;
_.e("service_worker_push_prompt_modal_enable")&&S03();return Notification.requestPermission().then(function(W){fAe();var V=document.getElementById("ticker");V&&(V.className=V.classList.remove("show"));if(W=="granted")return eDj().then(function(){c8C(!1);oyj();return Promise.resolve(!0)});
W=="denied"&&oyj();return Promise.resolve(!1)}).catch(function(){fAe();
return Promise.reject.apply(Promise,_.GC(y))})},lAe=function(y){y=y===void 0?!1:y;
var W=_.IOz().client;if(W&&W.browserVersion){var V=W.browserVersion,w=W.browserName=="CHROME"&&_.Ld(V,"50.0.0")<0;W=W.browserName=="OPERA"&&_.Ld(V,"42.0.0")<0;if(w||W)return Promise.resolve()}return _.rGE().then(function(t){if(!t)return Promise.resolve();t=eDj().then(function(){return hDq({type:"notifications_check_registration",data:_.yC("ID_TOKEN")})});
return Notification.permission!="default"?t.catch(function(){}):t.then(function(){return mBj(y)}).then(function(F){if(F)return MKu(),DBu().then(function(){})}).catch(function(){})})},xBj=function(y){return _.aat(y)?lAe():Promise.resolve()},kyP=function(y){var W=y.installing||y.waiting;
return y.active||!W?Promise.resolve(y):new Promise(function(V){var w=function(t){t=t.target;if(t.state==="activated"||t.state==="redundant")W.removeEventListener("statechange",w),V(y)};
W.addEventListener("statechange",w)})},s23=function(){var y=new _.hEL("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.S3(y,{mainAppWeb:_.I6()});var W=_.j7K;_.e("service_worker_forward_exp_params")&&(W=vy4(W));try{var V=_.PVz(W).catch(function(){_.DE(y,"FAILURE");return new Promise(function(){})});
_.e("service_worker_push_enabled")&&V.then(function(w){_.DE(y,"SUCCESS");return w}).then(kyP).then(xBj)}catch(w){if(_.DE(y,"FAILURE"),w.name!=="SecurityError")throw w;
}},A8P=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&s23()},Y0P=function(y,W){var V={};
W&&(V.serializedYpcFamilyCreateLoggingParams=W);_.Hp(y,V);_.Xk()},Bym=function(y,W){var V={};
V.serializedYpcRefundFlowLoggingParams=W;y&&(V.eventType=y);_.Hp("ypcRefundFlowEvent",V);_.Xk()},J8u=function(y){y&&_.Osv("transactionFlowSucceeded",y)},RDu=function(y){y&&_.t9("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},j2d=function(y){var W,V,w,t,F,I,P;
_.g(function(C){if(C.nextAddress==1)return C.yield(_.Zpd(),2);if(C.nextAddress!=3){if(!C.yieldResult)return C.return(!1);W=[];return C.yield(_.UU.keys(),3)}V=C.yieldResult;w=_.N(V);for(t=w.next();!t.done;t=w.next())F=t.value,I=_.bpb(F),P=I.datasyncId,!P||y.includes(P)||W.push(_.UU.delete(F));return C.return(Promise.all(W).then(function(d){return d.some(function(L){return L})}))})},$Bm=function(){var y,W,V,w,t,F,I;
return _.g(function(P){if(P.nextAddress==1)return P.yield(_.Zpd(),2);if(P.nextAddress!=3){if(!P.yieldResult)return P.return(!1);y=_.Y_("cache contains other");return P.yield(_.UU.keys(),3)}W=P.yieldResult;V=_.N(W);for(w=V.next();!w.done;w=V.next())if(t=w.value,F=_.bpb(t),(I=F.datasyncId)&&I!==y)return P.return(!0);return P.return(!1)})},ny3=function(){var y=_.hs().resolve(_.eX(_.Bh6));
return y?y.getCurrentTime():0},HMe=function(){var y,W,V,w,t,F,I,P,C,d,L,z,c,K;
return _.g(function(f){switch(f.nextAddress){case 1:y={},W=_.VJa(),V=_.N(Object.entries(W)),w=V.next();case 4:if(w.done){f.jumpTo(3);break}t=w.value;F=_.N(t);I=F.next().value;P=F.next().value;C=I;d=P;if(!d){f.jumpTo(5);break}return f.yield(d(),8);case 8:y[C]=f.yieldResult;case 5:w=V.next();f.jumpTo(4);break;case 2:L=_.N(void 0),z=L.next();case 9:if(z.done){f.jumpTo(3);break}c=z.value;K=W[c];if(!K){f.jumpTo(10);break}return f.yield(K(),13);case 13:y[c]=f.yieldResult;case 10:z=L.next();f.jumpTo(9);
break;case 3:return f.return(y)}})},XfC=function(){var y;
_.g(function(W){if(W.nextAddress==1)return W.yield(HMe(),2);y=W.yieldResult;return W.yield(navigator.clipboard.writeText(JSON.stringify(y,null,2)),0)})},aA3=function(y,W){return _.UB(y.entities,"superThanksSelectedTierEntity",W)},Gye=function(y,W){var V=_.vNd();
_.Xd(function(){var w=y.value;if(w)return _.sMP(w,W),_.Aw4(w,W,void 0,void 0,void 0,V)},[W])},r8e=function(y){var W;
return(W=y.sharedUi)==null?void 0:W.currentPageType},bMW=function(y,W){return{popup:{searchSuggestionReportDialog:{searchQuery:y,
title:_.u5("SBOX_INAPPROPRIATE_TITLE"),suggestions:W,categoryLabel:_.u5("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.u5("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.u5("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.u5("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.u5("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.u5("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.u5("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.u5("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.u5("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.u5("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Q2m=function(y){var W,V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r;
return _.g(function(H){switch(H.nextAddress){case 1:return H.yield(_.DH(),2);case 2:return(W=H.yieldResult)?H.yield(_.zav(W),3):H.return();case 3:V=H.yieldResult;if(!V)return H.return();t=((w=V.offlineVideos)==null?void 0:w.length)||0;I=((F=V.offlinePlaylists)==null?void 0:F.length)||0;if(t===0&&I===0)return H.return();P=0;if(V.offlineVideos)for(C=_.N(V.offlineVideos),d=C.next();!d.done;d=C.next())L=d.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===L.videoState&&(P+=1);y.offline_videos_count=t.toString();
_.e("kevlar_log_offline_current_network_type_ks")||(y.offline_current_network_type=(z=_.bga())!=null?z:"CONN_INVALID");_.e("kevlar_log_updated_time_for_smart_downloads")&&(c=_.dP().getState().entities,K=_.aB(c),f=JL3(c),y.offline_smart_downloads_last_sync_time_ms=K.toString(),y.offline_smart_downloads_next_sync_time_ms=f.toString());y.offline_videos_playable=P.toString();y.offline_playlists_count=I.toString();if(!_.e("woffle_used_state_report")){H.jumpTo(4);break}V.offlineVideos&&(U=V.offlineVideos.reduce(function(a,
b){b.downloadedBytes&&(a+=Number(b.downloadedBytes));return a},0).toString())&&(y.offline_used_disk_space_bytes=U);
if(!((l=navigator)==null?0:(x=l.storage)==null?0:x.estimate)){H.jumpTo(4);break}return H.yield(navigator.storage.estimate(),6);case 6:B=H.yieldResult,y.offline_free_disk_space_bytes=(((r=B)==null?void 0:r.quota)||0).toString();case 4:y.offline_client_state=JSON.stringify(V),_.B7(H)}})},ZMu=function(y){y=_.N(y);
for(var W=y.next(),V={};!W.done;V={setter$jscomp$5:void 0},W=y.next()){var w=W.value;W=w.params;w=w.service;W&&w&&(V.setter$jscomp$5=_.beW[w],V.setter$jscomp$5&&W.forEach(function(t){return function(F){var I=F.key;F=F.value;I&&F&&(0,t.setter$jscomp$5)(I,F)}}(V)))}},y1j=function(y){y=y.match(/(.*)::.*::.*/);
if(y!==null)return y[1]},WRt=function(y){if(_.piy()){var W=Object.keys(window.sessionStorage);
W=_.N(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=y1j(V);w===void 0||y.includes(w)||self.sessionStorage.removeItem(V)}}},VMt=function(){if(!_.piy())return!1;
var y=_.Y_(),W=Object.keys(window.sessionStorage);W=_.N(W);for(var V=W.next();!V.done;V=W.next())if(V=y1j(V.value),V!==void 0&&V!==y)return!0;return!1},YM=function(y,W,V){(_.e("desktop_keyboard_shortcut_usage_log")||V&&_.e("web_shorts_keyboard_shortcut_usage_log"))&&(W?_.fP.get(y):_.iG.get(y))&&(y=W?_.me.get(y):_.TL.get(y))&&_.PE(_.Xn(),y)},wNE=function(){var y,W;
return typeof CSS!=="undefined"&&((W=(y=CSS).supports)==null?void 0:W.call(y,"selector(:has(*))"))},tMj=function(y){return y.visibility!=="hidden"&&y.display!=="none"},EFj=function(y){if(wNE()||y.tagName!=="DETAILS"?!y.matches(FRu):y.querySelector("summary")!==null)return-1;
y=y.getAttribute("tabindex")||"0";return Number(y)},Nwu=function(y){return y.some(function(W){return EFj(W)>0})},I2d=function(y){if(y.textContent)return!0;
if(y instanceof HTMLInputElement){if(!y.labels)return!1;y=_.N(y.labels);for(var W=y.next();!W.done;W=y.next())if(W.value.textContent)return!0}return!1},gFq=function(y){return y.sort(function(W,V){return EFj(V)-EFj(W)})},P5t=function(y){y=Array.from(y.querySelectorAll(FRu)).filter(function(W){return(tMj(W.style)?tMj(window.getComputedStyle(W)):!1)&&I2d(W)});
return Nwu(y)?gFq(y):y},C5W=function(y){y=P5t(y);
y.length>0&&y[0].focus()},OgE=function(y,W){W.stack&&(y.stack+="\n"+W.stack);
return y},LRE=function(y){var W=Bo(y,"Content-Type");
if(!W)return null;W=W.toLowerCase();if(W.startsWith("application/json"))return W.startsWith("application/json+protobuf")?new vF4:new _.f8;if(W.startsWith("application/x-protobuf")){y=Bo(y,"Content-Transfer-Encoding");if(!y)return new Jw;if(y.toLowerCase()=="base64")return new d8m}return null},f2u=function(y,W,V,w){var t=new zzm(function(P,C){return c1v.has(C)?P.sentinel==="gal"&&P.event!==void 0:!1},function(P){P.event?(P=ez3(P.event),P=!P||hzu(w,P)?!0:_.Ad(y.lastEvent,RM,2,jR)?!_.Ad(P,$M,1,jR)&&
!_.Ad(P,RM,2,jR):!_.Ad(P,$M,1,jR)&&!_.Ad(P,RM,3,jR)):P=!0;
return P});
V=_.mb(y.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",oFd(V)]]));if(y.nestedOrigins!==void 0)for(var F=_.N(y.nestedOrigins),I=F.next();!I.done;I=F.next())V=_.mb(V,new Map([["origin",I.value]]));return KRv(t,V,W).then(function(P){P=pNe(P.event);if(_.Ad(P,$M,1,jR)){var C,d=(C=_.ZT(P,$M,1,jR))==null?void 0:_.rK(C,2);d&&w.JSC$19154_logErrorEvent(ige(d));C=_.ZT(P,$M,1,jR);_.rK(C,2)===4?(P=_.ZT(P,$M,1,jR),P={statusCode:11,statusMessage:_.aX(P,
3)}):(P=_.ZT(P,$M,1,jR),P={statusCode:12,statusMessage:_.aX(P,3)});return P}_.Ad(P,RM,3,jR)?(P=_.ZT(P,RM,3,jR),P={statusCode:1,consentLanguageKeys:_.aX(P,2)}):P={statusCode:1};return P}).catch(function(P){return P.errorCode!==void 0?{statusCode:P.errorCode,
statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},qnm=function(y){var W={};
if(y===void 0||y===null)return W;y.getToken()!==void 0&&Twu(y.getToken())&&Twu(y.getToken()).length>0&&(W.scopes=new Set(Twu(y.getToken())));y.getToken()!==void 0&&m8e(y.getToken())&&m8e(y.getToken()).length>0&&(W.capabilities=new Set(m8e(y.getToken())));_.aX(y,3)!==void 0&&(W.consistencyKey=_.aX(y,3));y.getName()!==void 0&&y.getName()!==""&&(W.linkName=y.getName());_.sX(y,MMW,4)&&(y=_.Da(y,MMW,4),y=Object.assign({},_.aX(y,1)&&{userId:_.aX(y,1)},_.aX(y,2)&&{displayName:_.aX(y,2)},_.aX(y,3)&&{email:_.aX(y,
3)},_.aX(y,5)&&{username:_.aX(y,5)},_.aX(y,4)&&{profilePicture:_.aX(y,4)}),W.profile=y);return W},U8d=function(y,W){var V=y.flowParams,w;
return{serviceId:V.serviceId,sessionId:V.sessionId,currentFlow:y.currentFlow,googleScopesString:W,linkingSessionSerialized:y.session.serialize(),consentLanguageKeys:V.consentLanguageKeys,callerState:y.callerState,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(w=V.partnerConfigMinReadTimestamp)==null?void 0:w.serialize()}},x8u=function(y){var W=y.googleScopes!==void 0?Array.from(y.googleScopes).join(","):"";
u$W(U8d(y,W));W=Snu(y);return W===null?Promise.resolve(D8E):W.start().then(function(V){var w,t=(w=V.link)==null?void 0:w.consistencyKey;return V.statusCode===1&&y.googleScopes!==void 0&&y.googleScopes.size>0&&t!==void 0?(w=y.flowParams,l2u(w.serviceId,w.sessionId,y.googleScopes,t,w.galService,y.config,V)):V})},k23=function(y){var W=Snu(y);
return W===null?Promise.resolve(nP({statusCode:7,statusMessage:"Failed to create flow object"},y.callerState)):W.complete().then(function(V){var w,t=(w=V.link)==null?void 0:w.consistencyKey;return V.statusCode===1&&y.googleScopes!==void 0&&y.googleScopes.size>0&&t!==void 0?(w=y.flowParams,l2u(w.serviceId,w.sessionId,y.googleScopes,t,w.galService,y.config,V)):nP(V,y.callerState)},function(V){return nP({statusCode:12,
statusMessage:"Failed to complete the flow: "+V.message},y.callerState)})},l2u=function(y,W,V,w,t,F,I){return swu(t,{serviceId:y,
sessionId:W,googleScopes:V,consistencyKey:w}).then(function(){return I},function(P){return t.deleteLink({serviceId:y,
sessionId:W,accountLinkingEntryPoint:F.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+P.message}},function(C){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+C.message}})})},Snu=function(y){switch(y.currentFlow){case 1:var W=y.flowParams;
y=_.Da(y.session,A1q,1);return Ho.createOAuthFlow(W,y);case 2:case 3:return W=y.flowParams,y=_.Da(y.session,Yn4,6),XA.createStreamlinedFlow(W,y);default:return null}},Bwv=function(y,W){y===2&&(y=3);
var V=0;aM.indexOf(y)!==-1&&(V=aM.indexOf(y)+1);for(y=V;y<aM.length;y++)if(W.has(aM[y]))return aM[y]},jwu=function(y){var W=y.serviceId;
var V=y.sessionId;var w=y.config;var t=y.galService;var F=y.capabilities;var I=y.scopes;var P=y.loginHint;var C=y.callerState;var d=y.consentLanguageKeys;var L=y.linkName;var z=y.dynamicUrlParameters;var c=y.partnerConfigMinReadTimestamp;y=w.dataUsageNoticeConfig?w.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return t.startLinkingSession({serviceId:W,sessionId:V,capabilities:F,scopes:I,loginHint:P,callerState:C,supportedFlows:J1d(w.supportedFlows),completionUrl:w.completionUrl,accountLinkingEntryPoint:w.accountLinkingEntryPoint,
consentLanguageKeys:d,dataUsageNoticeConfig:y,linkName:L,dynamicUrlParameters:z,partnerConfigMinReadTimestamp:c}).then(function(K){return new Rz3(W,V,w,t,K,void 0,C,d,z,c)})},G2q=function(y,W,V){var w=(new $8t).getSession(y);
if(w===null)return Promise.resolve({statusCode:2});nFC(y);var t=Hgd(w.linkingSessionSerialized),F=w.googleScopesString!==""&&w.googleScopesString!==void 0?new Set(w.googleScopesString.split(",")):void 0,I=w.partnerConfigMinReadTimestampSerialized?XNm(w.partnerConfigMinReadTimestampSerialized):void 0;return a2E(new Rz3(y,w.sessionId,W,V,t,F,w.callerState,w.consentLanguageKeys,w.dynamicUrlParameters,I),w.currentFlow,w.consentLanguageKeys)},u$W=function(y){var W=new $8t;
W.storage!==null&&W.storage.set("SAVED_SESSION",y)},nFC=function(y){var W=new $8t;
if(W.storage!==null){var V=W.storage.get("SAVED_SESSION");V!==void 0&&V.serviceId===y&&W.storage.remove("SAVED_SESSION")}},J1d=function(y){var W=new Set;
y=_.N(y);for(var V=y.next();!V.done;V=y.next())V=V.value,V!==1&&r1W.has(V)&&W.add(r1W.get(V));return W},nP=function(y,W){W!==void 0&&(y.callerState=W);
return y},bgu=function(y){switch(y){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},yzj=function(y){return new Qwu(y,new Zg4(y))},wE4=function(y,W){W=W===void 0?!1:W;
var V=document.createElement("div");y&&(V.style.transform="scaleX(-1)");V.style.backgroundColor=W?"rgba(138,180,248,.24)":"#e8f0fe";V.style.height="4px";V.style.overflow="hidden";V.style.position="absolute";V.style.top="0";V.style.width="100%";V.style.zIndex="1500";V.setAttribute("aria-label","Loading");V.setAttribute("aria-live","polite");y=document.createElement("style");y.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  }";
V.appendChild(y);y=W_v();y.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";y.style.left="-145.166611%";var w=VEE(W);w.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";y.appendChild(w);V.appendChild(y);y=W_v();y.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";y.style.left="-54.888891%";W=VEE(W);W.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
y.appendChild(W);V.appendChild(y);return V},W_v=function(){var y=document.createElement("div");
y.style.height="100%";y.style.position="absolute";y.style.transformOrigin="top left";y.style.width="100%";return y},VEE=function(y){var W=document.createElement("span");
W.style.borderTop=y?"4px solid #669df6":"4px solid #4285f4";W.style.display="inline-block";W.style.position="absolute";W.style.width="100%";return W},tEt=function(y){return y==null?void 0:_.QvA(y).valueOf()},IHm=function(y){var W=document.body,V=!1,w=function(){V||(V=!0,F_P(t,F),setTimeout(function(){W.removeChild(F);
W.removeChild(t)},150))},t=ECt(y,getComputedStyle(W).direction==="rtl",w),F=N5v(w);
F_P(t,F);W.appendChild(F);W.appendChild(t);window.requestAnimationFrame(function(){F.style.opacity="1";t.style.opacity="1";t.style.transform="translate(-50%, -50%) scale(1)";t.children[0].focus()})},ECt=function(y,W,V){var w=document.createElement("div");
w.style.position="fixed";w.style.alignItems="center";w.style.backgroundColor=y?"rgb(32, 33, 36)":"white";w.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";w.style.display="flex";w.style.flexDirection="column";w.style.justifyContent="center";w.style.left="50%";w.style.top="50%";w.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";w.style.zIndex="2002";document.body.clientWidth>=660?(w.style.borderRadius="8px",w.style.minHeight="220px",
w.style.maxHeight="90%",w.style.maxWidth="90%",w.style.minWidth="540px"):(w.style.height="100%",w.style.width="100%");w.setAttribute("aria-label","Error");w.setAttribute("aria-modal","true");w.setAttribute("role","alertdialog");w.addEventListener("keydown",function(F){F.key==="Escape"&&V()});
W=gCm(y,W,V);w.appendChild(Pgt(W));w.appendChild(W);var t=document.createElement("img");t.src=y?"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";t.style.height="72px";t.style.width="72px";t.style.color="#9aa0a6";t.setAttribute("alt","");w.appendChild(t);t=document.createElement("h1");t.textContent="Something went wrong.  Try again.";
t.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";t.style.lineHeight="24px";t.style.fontSize="16px";t.style.textAlign="center";t.style.letterSpacing="0.1px";t.style.color=y?"rgb(232,234,237)":"#3c4043";w.appendChild(t);w.appendChild(Pgt(W));return w},gCm=function(y,W,V){var w=document.createElement("button");
w.style.backgroundColor="transparent";w.style.border="none";w.style.borderRadius="50%";w.style.cursor="pointer";w.style.outline="none";w.style.padding="12px";w.setAttribute("aria-label","Close dialog");w.style.position="absolute";w.style.top="0";W?w.style.right="0":w.style.left="0";w.addEventListener("focus",function(){w.style.backgroundColor=y?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
w.addEventListener("blur",function(){w.style.backgroundColor="transparent"});
w.addEventListener("mouseenter",function(){w.style.backgroundColor=y?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
w.addEventListener("mouseleave",function(){w.style.backgroundColor="transparent"});
w.addEventListener("click",V);w.addEventListener("keydown",function(t){t.key!=="Enter"&&t.key!=="Space"||V()});
W=document.createElement("img");W.src=y?"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";W.style.display="block";W.style.height="24px";W.style.width="24px";W.setAttribute("alt","");w.appendChild(W);return w},Pgt=function(y){var W=document.createElement("div");
W.setAttribute("tabindex","0");W.setAttribute("aria-hidden","true");W.addEventListener("focus",function(){return void y.focus()});
return W},N5v=function(y){var W=document.createElement("div");
W.style.backgroundColor="rgba(32,33,36,0.6)";W.style.bottom="0";W.style.left="0";W.style.position="fixed";W.style.right="0";W.style.top="0";W.style.transition=" opacity 150 ms linear";W.style.zIndex="2001";W.addEventListener("click",y);return W},F_P=function(y,W){W.style.opacity="0";
y.style.opacity="0";y.style.transform="translate(-50%, -50%) scale(0.8)"},Cge=function(y,W){y.sandbox&&y.sandbox.add&&(y.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),y.sandbox.add("allow-downloads"));
y.src=W},GL=function(y){O2e.call(this,y)},rj=function(y,W){W=W===void 0?!1:W;
this.parsedImageUrl_=null;y instanceof vCC||(dKj==void 0&&(dKj=new L_u),y=dKj.parse(y.toString(),W));y=this.parsedImageUrl_=y;y.JSC$19366_parsedOptions_==void 0&&((W=y.getOptions())||(W=""),y.JSC$19366_parsedOptions_=(new z5E).parse(W));O2e.call(this,y.JSC$19366_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;y=this.parsedImageUrl_;W=y.uri_.JSC$9958_port_;this.JSC$19368_domain_=y.uri_.JSC$9958_domain_+(W?":"+W:"");this.JSC$19368_query_=this.parsedImageUrl_.uri_.JSC$9958_queryData_.toString()},
czt=function(y){this.mode=4;
this.data=y;this.parsedData=[];y=0;for(var W=this.data.length;y<W;y++){var V=[],w=this.data.charCodeAt(y);w>65536?(V[0]=240|(w&1835008)>>>18,V[1]=128|(w&258048)>>>12,V[2]=128|(w&4032)>>>6,V[3]=128|w&63):w>2048?(V[0]=224|(w&61440)>>>12,V[1]=128|(w&4032)>>>6,V[2]=128|w&63):w>128?(V[0]=192|(w&1984)>>>6,V[1]=128|w&63):V[0]=w;this.parsedData.push(V)}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))},e5v=function(y){this.typeNumber=0;
this.errorCorrectLevel=y===void 0?2:y;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},bG=function(y,W){if(y.length==void 0)throw Error("Ck`"+y.length+"`"+W);
for(var V=0;V<y.length&&y[V]==0;)V++;this.num=Array(y.length-V+W);for(W=0;W<y.length-V;W++)this.num[W]=y[W+V]},h5u=function(y,W){this.totalCount=y;
this.dataCount=W},oCE=function(){this.buffer=[];
this.length=0},K_E=function(){var y=!1;
if(_.Odt()){y=_.cy();var W="";_.LLP()?(W=/Windows (?:NT|Phone) ([0-9.]+)/,W=(y=W.exec(y))?y[1]:"0.0"):_.kP()?(W=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,W=(y=W.exec(y))&&y[1].replace(/_/g,".")):_.dad()?(W=/Mac OS X ([0-9_.]+)/,W=(y=W.exec(y))?y[1].replace(/_/g,"."):"10"):_.Oz(_.cy(),"KaiOS")?(W=/(?:KaiOS)\/(\S+)/i,W=(y=W.exec(y))&&y[1]):_.Odt()?(W=/Android\s+([^\);]+)(\)|;)/,W=(y=W.exec(y))&&y[1]):_.zbu()&&(W=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,W=(y=W.exec(y))&&y[1]);y=W||""}return y},ME3=function(y,
W){this.JSC$19391__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(W)for(var V in W)this.JSC$19391__htOption[V]=W[V];this.JSC$19391__htOption.useSVG&&(pEv=i2j);this.JSC$19391__android=K_E();this.JSC$19391__el=y;this._oQRCode=null;this._oDrawing=new pEv(this.JSC$19391__el,this.JSC$19391__htOption);this.JSC$19391__htOption.text&&(y=this.JSC$19391__htOption.text,this._oQRCode=new e5v(this.JSC$19391__htOption.correctLevel),fHj(this._oQRCode,y),W=this._oQRCode,T5u(W,!1,mK4(W)),this.JSC$19391__el.title=
y,this._oDrawing.draw(this._oQRCode),this.makeImage())},qBm=function(y,W,V,w,t){y.save();
var F=new Path2D;F.roundRect(W,V,w*7,w*7,w*2);F.roundRect(W+w,V+w,w*5,w*5,w*1.3);F.roundRect(W+2*w,V+2*w,w*3,w*3,w);y.clip(F,"evenodd");y.fillStyle=t;y.fillRect(0,0,y.canvas.width,y.canvas.height);y.restore()},Qd=function(y,W){if(typeof y!=="function")throw Error("Fk");
return _.Vj.setTimeout(function(){y()},W)},ZW=function(){},uru=function(y,W,V,w,t){(new ZW).debug("TestLoadImageWithRetries: "+t);
if(w==0)V(!1);else{var F=t||0;w--;UKt(y,W,function(I){I?V(!0):_.Vj.setTimeout(function(){uru(y,W,V,w,F)},F)})}},UKt=function(y,W,V){var w=new ZW;
w.debug("TestLoadImage: loading "+y);var t=new Image;t.onload=function(){try{w.debug("TestLoadImage: loaded"),SBE(t),V(!0)}catch(F){}};
t.onerror=function(){try{w.debug("TestLoadImage: error"),SBE(t),V(!1)}catch(F){}};
t.onabort=function(){try{w.debug("TestLoadImage: abort"),SBE(t),V(!1)}catch(F){}};
t.ontimeout=function(){try{w.debug("TestLoadImage: timeout"),SBE(t),V(!1)}catch(F){}};
_.Vj.setTimeout(function(){if(t.ontimeout)t.ontimeout()},W);
t.src=y},SBE=function(y){y.onload=null;
y.onerror=null;y.onabort=null;y.ontimeout=null},DKu=function(){this.front_=[];
this.back_=[]},lHj=function(y,W){_.Ru.call(this);
this.delay_=new _.$u(this.JSC$19517_onTick_,0,this);_.Uf(this,this.delay_);this.JSC$19515_interval_=5E3;this.nextTickTime_=0;if(typeof y==="function")W&&(y=(0,_.jA)(y,W));else if(y&&typeof y.handleEvent==="function")y=(0,_.jA)(y.handleEvent,y);else throw Error("Ga");this.JSC$19517_listener_=y},yX=function(y,W,V,w,t,F,I,P,C,d,L,z,c,K){V=V===void 0?!1:V;
w=w===void 0?function(){return""}:w;
t=t===void 0?!1:t;F=F===void 0?!1:F;I=I===void 0?!1:I;P=P===void 0?function(){return _.T2({})}:P;
C=C===void 0?!1:C;L=L===void 0?!1:L;z=z===void 0?!1:z;c=c===void 0?!1:c;K=K===void 0?!1:K;this.JSC$19518_pathPrefix_=y;this.defaultQueryParams_=W;this.pubsub_=new _.D3;this.reconnectTimer_=new lHj(this.safeReconnect_,this);this.JSC$19518_channel_=null;this.JSC$19518_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19518_pendingMessages_=[];this.enableAsyncTest_=V;this.JSC$19518_getXsrfToken_=w;this.useAsyncBrowserChannelHandler_=F;this.getAuthorizationHeader_=
P;this.getAuthorizationHeaderSync_=d;this.enableCachedUpdateAuthorizationHeader_=I;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.T2();this.enableLoungeTokenRefresh_=t;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=C;this.disableMdxAuthForNonPlaybackMessages_=L;this.disableMdxAuthForAdMessages_=z;this.enableMdxAuthForConnectionOnly_=c;this.disableMdxAuthForShortsMessages_=K;this.JSC$19518_channelOpenedCounter=new xKq;this.JSC$19518_channelClosedCounter=new k4E;this.channelMessageSentCounter=
new sBt;this.JSC$19518_channelMessageReceivedCounter=new AzC;this.JSC$19518_channelErrorCounter=new YBu;this.pendingMapsOnClosedCounter=new B5C;this.undeliveredMapsOnClosedCounter=new Jzv},WI=function(y){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;y=y||document.location.href;var W=Number(_.v4(y)[4]||null)||"";W&&(this.port=":"+W);this.domain=_.di(y)||"";y=_.cy();y.search("MSIE")>=0&&_.Ld(y.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},VX=function(y){y=y||{};
this.name=y.name||"";this.id=y.id||y.screenId||"";this.token=y.token||y.loungeToken||"";this.uuid=y.uuid||y.dialId||"";this.idType=y.screenIdType||"normal"},R5u=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var W=Math.random()*16|0;
return(y=="x"?W:W&3|8).toString(16)})},jBm=function(y){return _.rU(y,function(W){return{key:W.id,
name:W.name}})},$KE=function(y,W){return _.By(y,function(V){return V||W?!V!=!W?!1:V.id==W.id:!0})},th=function(y,W){return _.By(y,function(V){return wv(V,W)})},G4C=function(){var y=nC3(),W=H2W();
if(XEj()){var V=y,w=_.KLy(V,W);w<0&&_.oPj(V,-(w+1),0,W)}y=aHP(y);if(y.length==0)try{_.XNv("remote_sid")}catch(t){}else try{_.s1("remote_sid",y.join(","),-1)}catch(t){}},nC3=function(){var y=_.SL("yt-remote-connected-devices")||[];
y.sort(_.Is);return y},aHP=function(y){if(y.length==0)return[];
var W=y[0].indexOf("#"),V=W==-1?y[0]:y[0].substring(0,W);return _.rU(y,function(w,t){return t==0?w:w.substring(V.length)})},rz3=function(y){_.ui("yt-remote-connected-devices",y,86400)},H2W=function(){if(b2m)return b2m;
var y=_.SL("yt-remote-device-id");y||(y=R5u(),_.ui("yt-remote-device-id",y,31536E3));for(var W=nC3(),V=1,w=y;_.j4(W,w);)V++,w=y+"#"+V;return b2m=w},QBW=function(){return _.SL("yt-remote-session-browser-channel")},XEj=function(){return _.SL("yt-remote-session-screen-id")},WSv=function(y){y.length>5&&(y=y.slice(y.length-5));
var W=_.rU(Z23(),function(w){return w.loungeToken}),V=_.rU(y,function(w){return w.loungeToken});
_.JWa(V,function(w){return!_.j4(W,w)})&&yxj();
_.ui("yt-remote-local-screens",y,31536E3)},Z23=function(){return _.SL("yt-remote-local-screens")||[]},yxj=function(){_.ui("yt-remote-lounge-token-expiration",!0,86400)},Fi=function(y){y||(_.Dk("yt-remote-session-screen-id"),_.Dk("yt-remote-session-video-id"));
G4C();y=nC3();_.GG(y,H2W());rz3(y)},w9u=function(){VWt();
return EM?!!EM.get("yt-remote-use-staging-server"):!1},VWt=function(){if(!EM){var y=_.VEP();
y&&(EM=new _.RA(y))}},NPE=function(y,W,V,w,t){V=V===void 0?function(){return""}:V;
var F=function(){return new yX(Nq(y,"/bc"),W,!1,V,w)};
return _.e("enable_mdx_web_channel_desktop")?new tW3(function(){return new FSE(Nq(y,"/wc"),W,V)}):new E1u(F,t)},CNt=function(){var y=IPE;
g1q();IH.push(y);PNP()},gv=function(y,W){g1q();
var V=OOe(y,String(W));IH.length==0?v1C(V):(PNP(),_.IA(IH,function(w){w(V)}))},PI=function(y){gv("CP",y)},g1q=function(){IH||(IH=_.ts("yt.mdx.remote.debug.handlers_")||[],_.dE("yt.mdx.remote.debug.handlers_",IH))},v1C=function(y){var W=(CX+1)%50;
CX=W;doj[W]=y;LSq||(LSq=W==49)},PNP=function(){var y=IH;
if(doj[0]){var W=LSq?CX:-1,V={};do V={record$jscomp$15:void 0},W=(W+1)%50,V.record$jscomp$15=doj[W],_.IA(y,function(w){return function(t){t(w.record$jscomp$15)}}(V));
while(W!=CX);doj=Array(50);CX=-1;LSq=!1}},OOe=function(y,W){var V=(Date.now()-zdP)/1E3;
V.toFixed&&(V=V.toFixed(3));var w=[];w.push("[",V+"s","] ");w.push("[","yt.mdx.remote","] ");w.push(y+": "+W,"\n");return w.join("")},OM=function(y){_.pP.call(this);
this.JSC$19542_logName_=y;this.screens=[]},dv=function(y){OM.call(this,"LocalScreenService");
this.JSC$19549_http_=y;this.loungeTokenRefreshTimer_=NaN;vI(this);this.info("Initializing with "+cx4(this.screens))},LX=function(y,W){W=W===void 0?!1:W;
OM.call(this,"ScreenService");this.JSC$19555_http_=y;this.disableAutomaticScreenCache_=W;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};edC(this)},zV=function(y,W,V){_.pP.call(this);
this.JSC$19559_logName_=V;this.JSC$19559_screenService_=y;this.receiver_=W;this.screen_=null},xoC=function(y,W,V){V.disableCastApi?cI("Cannot initialize because disabled by Mdx config."):hdq()?o1u(y,V)&&(KSq(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?p9t(W):(window.__onGCastApiAvailable=function(w,t){w?p9t(W):(eq("Failed to load cast API: "+t),iOq(!1),KSq(!1),_.Dk("yt-remote-cast-available"),_.Dk("yt-remote-cast-receiver"),fP4(),W(!1))},V.loadCastApiSetupScript?_.ym(TPP):window.navigator.userAgent.indexOf("Android")>=
0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?mov()>=60&&MW3():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?qTC():mov()>=89?Uou():(u4j(),STW(DoE.map(lPv))))):cI("Cannot initialize because not running Chrome")},fP4=function(){cI("dispose");
var y=hh();y&&y.dispose();_.dE("yt.mdx.remote.cloudview.instance_",null);kw3(!1);_.xM4(scu);scu.length=0},AxP=function(){return!!_.SL("yt-remote-cast-installed")},YTP=function(){var y=_.SL("yt-remote-cast-receiver");
return y?y.friendlyName:null},BPC=function(){cI("clearCurrentReceiver");
_.Dk("yt-remote-cast-receiver")},Jxj=function(){return AxP()?hh()?hh().getCastSession():(eq("getCastSelector: Cast is not initialized."),null):(eq("getCastSelector: Cast API is not installed!"),null)},jcm=function(y,W){Rdj()?hh().setConnectedScreenStatus(y,W):eq("setConnectedScreenStatus called before ready.")},hdq=function(){var y=_.cy().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.S6||y},o1u=function(y,W){var V=!1;
hh()||(y=new oH(y,W),y.subscribe("yt-remote-cast2-availability-change",function(w){_.ui("yt-remote-cast-available",w);qy("yt-remote-cast2-availability-change",w)}),y.subscribe("yt-remote-cast2-receiver-selected",function(w){cI("onReceiverSelected: "+w.friendlyName);
_.ui("yt-remote-cast-receiver",w);qy("yt-remote-cast2-receiver-selected",w)}),y.subscribe("yt-remote-cast2-receiver-resumed",function(w){cI("onReceiverResumed: "+w.friendlyName);
_.ui("yt-remote-cast-receiver",w);qy("yt-remote-cast2-receiver-resumed",w)}),y.subscribe("yt-remote-cast2-session-change",function(w){cI("onSessionChange: "+$oe(w));
w||_.Dk("yt-remote-cast-receiver");qy("yt-remote-cast2-session-change",w)}),_.dE("yt.mdx.remote.cloudview.instance_",y),V=!0);
cI("cloudview.createSingleton_: "+V);return V},hh=function(){return _.ts("yt.mdx.remote.cloudview.instance_")},p9t=function(y){iOq(!0);
KSq(!1);hh().init(!1,function(W){W?(kw3(!0),_.kbd("yt-remote-cast2-api-ready")):(eq("Failed to initialize cast API."),iOq(!1),_.Dk("yt-remote-cast-available"),_.Dk("yt-remote-cast-receiver"),fP4());y(W)})},cI=function(y){gv("cloudview",y)},eq=function(y){gv("cloudview",y)},iOq=function(y){cI("setCastInstalled_ "+y);
_.ui("yt-remote-cast-installed",y)},Rdj=function(){return!!_.ts("yt.mdx.remote.cloudview.apiReady_")},kw3=function(y){cI("setApiReady_ "+y);
_.dE("yt.mdx.remote.cloudview.apiReady_",y)},KSq=function(y){_.dE("yt.mdx.remote.cloudview.initializing_",y)},KX=function(y){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(y)},n1d=function(){var y,W;
return _.g(function(V){if(V.nextAddress==1)return(_.e6a()||_.e("use_new_nwl"))&&_.dMd().isNetworkAvailable()?V.yield(_.LA(),2):V.return();if(V.nextAddress!=3)return(y=V.yieldResult)?V.yield(TS3(y),3):V.return();W=V.yieldResult;if(!W.length)return V.return();W.forEach(function(w){var t={timestamp:w.timestamp};w=w.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:w.appShellAssetLoadReport,options:t}:w.clientError?{payloadName:"clientError",payload:w.clientError,options:t}:void 0;
w&&_.Hp(w.payloadName,w.payload,w.options)});
W.length===100&&_.HU.addLowPriorityJob(n1d);_.B7(V)})},HOW=function(y){if(y.playerResponse){if(y=y.playerResponse,y.messages&&y.messages.length>0&&(y=y.messages.find(function(W){return!(!W||!W.mealbarPromoRenderer)}))&&y.mealbarPromoRenderer)return y.mealbarPromoRenderer}else if(y.response&&(y=y.response)&&y.overlay&&y.overlay.mealbarPromoRenderer)return y.overlay.mealbarPromoRenderer},X9P=function(y){if(y.response){var W=y.response;
if(W&&W.overlay&&W.overlay.tooltipRenderer)return W.overlay.tooltipRenderer}if(y.playerResponse&&(y=y.playerResponse,y.messages&&y.messages.length>0&&(y=y.messages.find(function(V){return!(!V||!V.tooltipRenderer)}))&&y.tooltipRenderer))return y.tooltipRenderer},GwP=function(y){if(!aPm&&(y=y||_.yC("ZWIEBACK_PING_URLS"))&&y.length){aPm=!0;
for(var W=0;W<y.length;W++)_.Fk(y[W])}},bOv=function(y){if(_.Gc.get(_.yC("PLAYER_VARS",{}),"privembed",!1)!="1"){y&&zmW();
try{rxE().then(function(){},function(){}),_.mj(bOv,18E5)}catch(W){_.VC(W)}}},Qcj=function(){var y=_.l5(),W=y.getFlag(119),V=window.devicePixelRatio>1;
document.body&&_.EQ(document.body,"exp-invert-logo")&&(V&&!_.EQ(document.body,"inverted-hdpi")?_.el(document.body,"inverted-hdpi"):!V&&_.EQ(document.body,"inverted-hdpi")&&_.zP(document.body,"inverted-hdpi"));W!=V&&(_.xF(0,119,V),y.save())},ZOq=function(y){return y.filter(function(W){return"ypcGetCartEndpoint"in W||"ypcFixInstrumentEndpoint"in W})},ycE=function(y){return y.filter(function(W){return!_.h(W,_.xC2)})},VBu=function(y,W){var V,w,t,F,I,P,C;
_.g(function(d){switch(d.nextAddress){case 1:V=_.Gw.getInstance();w=_.xc.instance;t=_.P5.instance;if(!t)return WgE(y,w,W),d.return();_.l7(d,2);y.onLoadingCommand&&w.resolveCommand(y.onLoadingCommand);return d.yield(V.getCurrentPositionFromGeolocation(),4);case 4:F=d.yieldResult;if(!y.resolveLocationCommand){d.jumpTo(5);break}I=V.createLocationInfo(F);return d.yield(_.OP(t,y.resolveLocationCommand,{locationInfo:I}),6);case 6:P=d.yieldResult;if(!P||"error"in P&&P.error||P.errorMetadata)return WgE(y,
w,W),d.return();var L;if(P==null?0:(L=P.onResponseReceivedActions)==null?0:L.length){L=_.N(P.onResponseReceivedActions);for(var z=L.next();!z.done;z=L.next())w.resolveCommand(z.value)}(_.h(y.onSuccessCommand,_.Iw)||_.h(y.onSuccessCommand,_.sT))&&_.h1(W.hostElement,"yt-navigate",{endpoint:y.onSuccessCommand,reload:!0});case 5:_.E6(d,0);break;case 2:C=_.YX(d);if(C instanceof GeolocationPositionError&&C.code===GeolocationPositionError.PERMISSION_DENIED)return y.onDeniedCommand&&w.resolveCommand(y.onDeniedCommand),
d.return();WgE(y,w,W);_.B7(d)}})},WgE=function(y,W,V){y.onFailureCommand&&(W.resolveCommand(y.onFailureCommand),_.ow(V.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},tBW=function(y,W){var V=_.h(y,_.$Ii);
if(V&&W){y=V.videoIds||[V.videoId];var w;W=(w=_.h1(W,"yt-lockup-requested",{videoIds:y}).detail)==null?void 0:w.returnValue;var t;V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?t=W?W:y.map(function(F){return{videoId:F,navigationEndpoint:V.videoCommand}}):W&&(t=W);
t&&(w=t.map(function(F){var I=Object,P=I.assign;var C=F.navigationEndpoint;if(!_.h(C,_.Jx)){var d=_.h(C,_.Iw);if(d){if(delete d.index,delete d.playlistId,d=_.h(C==null?void 0:C.commandMetadata,_.dw),d==null?0:d.url){var L=d.url;L=_.vN(L,"list");L=_.vN(L,"index");d.url=L}}else C=void 0}return P.call(I,{},F,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:C})}),wWu(w,V))}},Fgj=function(y){var W=_.Ib();
if(y=_.h(y,_.nsR))y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&W.clearQueue(),y.closeMiniplayer&&_.hs().resolve(_.VH).close(!0)},Ng3=function(y){EAv(_.Ib(),y)},Ipv=function(y){var W;
(y=(W=_.h(y,_.RSs))==null?void 0:W.setVideoIds)&&y.forEach(function(V){_.H9s(_.Ib(),V)})},P6C=function(y){gAu(_.Ib(),y)},C6P=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(y){return!1}},O6t=function(){var y,W;
return(W=(y=window).matchMedia)==null?void 0:W.call(y,"(prefers-reduced-motion: reduce)").matches},dg3=function(y){var W=_.hs().resolve(_.eX(_.Hu));
W&&vAu(W,y)},Lg3=function(y,W,V){return{horizontalAlignment:y.x+V.width/2<W.width/2?"west":"east",
verticalAlignment:y.y+V.height/2<W.height/2?"north":"south"}},eke=function(y,W,V,w,t){t=t===void 0?new _.bj(0,0):t;
return zkP(ccd(y,W,V,w),t)},ccd=function(y,W,V,w){return new _.bj(y==="west"?16:V.width-w.width-16,W==="north"?16:V.height-w.height-16)},hkE=function(y,W){var V=0;
y&&(V+=76);W&&(V+=285);return V},oAe=function(y){var W=["h",
"m","s"],V=_.ru(W);V.reverse();var w={};y=(y.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(I){var P=(I.match(/[hms]/)||[""])[0];return P?(w[P]=parseInt(I.match(/\d+/)[0],10),!1):!0});
for(y.reverse();y.length&&V.length;){var t=V.shift();t in w||(w[t]=parseInt(y.shift(),10))}if(y.length||w.s>59||w.m>59||w.h>9)return null;var F="";W.forEach(function(I){w[I]&&(F+=""+w[I]+I)});
return F||null},Kgt=function(y){y=y.data;
return _.O("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.O("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.O(_.ca,{data:{thumbnails:[{url:y.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.O("div",{class:"profile-badge-view-model-wiz__content"},_.O("div",{class:"profile-badge-view-model-wiz__badge-description"},y.badgeDesc),y.badgeSubtitle?_.O("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},y.badgeSubtitle):null))},pW4=function(y){y=
y.data;
var W=_.I0("yt-comment-interaction-view-model");Gye(W,y.rendererContext);return _.O("yt-comment-interaction-view-model",{el:W,class:"yt-comment-interaction-view-model-wiz"},_.O("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":y.onTapA11yLabel,"on:keydown":_.Dyv(),tabindex:0},_.O("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.O("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},y.headerPrefix,' "',y.videoTitle),_.O("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.O("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.O("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},y.commentContent),_.O("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.O(_.ca,{data:{thumbnails:[{url:y.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},fpm=function(y){y=y.data;
return _.O("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},i6j(y.avatar),_.O("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},y.channelName))},Tgm=function(y){y=y.data;
var W;return _.O("div",{class:"yt-profile-info-view-model-wiz__activity"},_.O("div",{class:"yt-profile-info-view-model-wiz__header"},_.O("div",{class:"yt-profile-info-view-model-wiz__section-title"},y.commentsInteractionTitle)),(W=y.comments)==null?void 0:W.map(function(V){return _.O("div",{class:"yt-profile-info-view-model-wiz__activity"},pX(V))}))},mgj=function(y){y=y.data;
var W=_.EU({elementsCommand:y.subscriptionsAccessButtonCommand}),V=_.I0("a");_.hPj(V,_.tl(y.subscriptionsAccessButtonCommand));var w;return _.O("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.O("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.O("a",{el:V,"on:click":_.YS(function(t){if(W==null?0:W.onclick)W.onclick(t);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.O("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},y.sharedSubscriptionsTitle),_.O("div",null,pX(y.subscriptionsAccessButton)))),_.O("div",{class:"yt-profile-info-view-model-wiz__subs"},(w=y.sharedSubscriptions)==null?void 0:w.slice(0,5).map(function(t){return _.O("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",pX(t))})))},MB3=function(y){y=y.data;
var W;return _.O("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.O("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.O("h2",{class:"yt-profile-info-view-model-wiz__section-title"},y.sharedSubscriptionsTitle)),_.O("div",{class:"yt-profile-info-view-model-wiz__subs"},(W=y.sharedSubscriptions)==null?void 0:W.slice(0,5).map(function(V){return _.O("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",pX(V))})))},q$E=function(y){y=y.data;
return _.O("div",{class:"yt-profile-info-view-model-wiz__activity"},[y.profileBadgeInfoYtWide,y.profileBadgeInfoChannelWide].map(function(W){var V,w,t,F,I;return W?_.O(_.o8,null,_.O("div",{class:"yt-profile-info-view-model-wiz__header"},_.O("div",{class:"yt-profile-info-view-model-wiz__section-title"},W==null?void 0:W.profileSectionTitle),_.O("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.O("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(V=W.commentBadge)==
null?void 0:V.commentDesc),(W==null?0:(w=W.commentBadge)==null?0:w.blackHeartDesc)?_.O("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.O("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.O(_.ca,{data:{thumbnails:[{url:W==null?void 0:(t=W.commentBadge)==null?void 0:t.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.O("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(F=
W.commentBadge)==null?void 0:F.blackHeartDesc))),_.O("div",{class:"yt-profile-info-view-model-wiz__badge"},W==null?void 0:(I=W.badges)==null?void 0:I.map(function(P){return _.O(Kgt,{data:P})}))):null}))},UgE=function(y){y=y.data;
return _.O("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.O(q$E,{data:y}),y.videosHorizontalShelf?_.O("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},pX(y.videosHorizontalShelf)):null,y.comments?_.O(Tgm,{data:y}):null,y.sharedSubscriptionsTitle?y.subscriptionsAccessButtonCommand?_.O(mgj,{data:y}):_.O(MB3,{data:y}):null)},S$j=function(y){y=y.data;
if(y){var W=y.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";W=uev(y.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:W,isChannelInfoCard:W}})}else W=void 0;y=y?uev(y.profileInfo):void 0;return _.O("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},W,y)},Dgv=function(y,W){var V=_.d_i(W,{},y,!0);
return new Promise(function(w,t){V.listenOnce("n",function(){t(Error("ql`"+V.JSC$29095_getErrorDescription()))});
V.listenOnce("l",function(){var F=V.getResponseCode();if(F!==200)t(Error("rl`"+W+"`"+y.type+"`"+y.size+"`"+F));else try{w(JSON.parse(V.getResponseText()).encryptedBlobId)}catch(I){t(I)}});
V.run()})},lpE=function(y){return y.substring(y.indexOf(":")+1,y.indexOf(";"))},xgd=function(y){return new Promise(function(W,V){var w=new FileReader;
w.onloadend=function(){try{var t=new Uint8Array(w.result);t.length<8&&V(void 0);var F=t.subarray(0,8);t="";for(var I=0;I<F.length;I++)t+=("0"+F[I].toString(16)).substr(-2);t.startsWith("ffd8ff")?W("image/jpeg"):t.startsWith("47494638")?W("image/gif"):t.startsWith("89504e470d0a1a0a")?W("image/png"):t.startsWith("424d")?W("image/bmp"):W(void 0)}catch(P){V(P)}};
w.onerror=V;w.readAsArrayBuffer(y)})},kAW=function(y){return new Promise(function(W,V){var w=new Image;
w.crossOrigin="anonymous";w.onload=function(){var t=document.createElement("canvas");t.width=w.naturalWidth;t.height=w.naturalHeight;var F=t.getContext("2d");if(!F)throw Error("sl");F.drawImage(w,0,0);F=lpE(y);t.toBlob(function(I){I?W(I):V()},F)};
w.src=y})},Acd=function(y,W){var V;
if(((V=_.h(y,_.Jx))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w;_.h1((w=W.hostElement)!=null?w:W,"yt-shorts-reset");_.r4J(_.hs().resolve(_.YK),y).then(function(F){s6E(F,W,y)})}else{var t;
_.i5((t=W.hostElement)!=null?t:W,[y]).then(function(F){F&&s6E(F.data,W,y)})}},s6E=function(y,W,V){if(y){var w=_.h(y.replacementEndpoint,_.Jx);
if(w){y.sequenceContinuation&&(w.sequenceParams=y.sequenceContinuation);var t;_.h1((t=W.hostElement)!=null?t:W,"yt-navigate",{endpoint:y.replacementEndpoint})}else if((y==null?void 0:y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(y==null?0:y.watchStatus)&&_.h(y.watchStatus,_.fgz)){var F;_.h1((F=W.hostElement)!=null?F:W,"yt-navigate",{endpoint:V})}}},Y$v=function(y){var W=_.hs().resolve(_.w0),V=r8e(W.getState())||"";
W=_.esj(W.getState())||"";V=V==="ytd-browse"&&W==="home";return _.e("web_guide_entry_enable_cache_for_non_home_pages")?(y=(y==null?void 0:y.navigationEndpoint)&&_.k1(y.navigationEndpoint)==="home",{disableCache:V&&y}):{disableCache:V}},BgW=function(y){if(!y)return!1;
try{if(y.host&&y.host.tagName==="YT-FORMATTED-STRING"&&y.host.id==="contenteditable-textarea"||y.nodeType===Node.ELEMENT_NODE&&y.tagName==="YTD-COMMENT-INPUT")return!0}catch(W){return!1}return BgW(y.parentNode)},ie=function(y){return y?y.tagName==="A"&&y.href&&y.classList.contains("yt-simple-endpoint"):!1},Jcj=function(y){return y?y.tagName==="IMG"&&y.classList.contains("emoji"):!1},Rkd=function(y,W,V){if(!y)return null;
var w=ie(y);if(w&&V)return W=y.pathname.substring(y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(w&&!V)return document.createTextNode("");if(Jcj(y))return V=y.alt,y=y.dataset.emojiId,!y&&W&&(W=_.l0(W,V))&&W.isCustomEmoji&&(y=W.emojiId),y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+y+">"):document.createTextNode(V);w=y.cloneNode(!1);for(var t=0;t<y.childNodes.length;++t){var F=Rkd(y.childNodes[t],W,V);F&&w.appendChild(F)}return w},fX=function(y){return y?ie(y)?y:fX(y.lastChild):
null},j6t=function(y){return y?ie(y)?y:j6t(y.firstChild):null},$gv=function(y){if(!y)return null;
for(var W=y.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=fX(W))?y=W:y=(y=y.parentNode)?fX(y.previousElementSibling):null;return y},nAt=function(y){if(!y)return null;
for(var W=y.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=j6t(W))?W:nAt(y.parentNode)},H6e=function(y){var W=_.k9(),V=W.JSC$11221_getStartNode();
if(!BgW(V.parentNode))return null;W=W.JSC$11221_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var w=_.WM(V,ie);if(w){if(y&&W===0||!y&&W===V.length)return w}else{if(y&&W===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.sZ(V.nextElementSibling,"display")==="block"?null:j6t(V.nextElementSibling);if(!y&&W===0)return V?fX(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(y){if(0<=W&&W<V.childNodes.length)return j6t(V.childNodes[W])}else if(0<W&&W<=V.childNodes.length)return fX(V.childNodes[W-
1]);return null},XWu=function(y,W,V){if(!y)return null;
if(y.nodeType===Node.TEXT_NODE)if(V){var w=$gv(y);if(w&&!/^\s+\S/.test(y.wholeText.substr(0,W)))return w}else if((w=nAt(y))&&!/\S\s+/.test(y.wholeText.substr(W,y.wholeText.length)))return w;return y.nodeType===Node.ELEMENT_NODE?V?$gv(y.childNodes[W]):nAt(y.childNodes[W]):XWu(y.parentNode,W,V)},apt=function(y){if(y.hasChildNodes())switch(y.tagName){case "DIV":case "A":case "SPAN":var W="";
for(y=y.firstChild;y;y=y.nextSibling)W+=apt(y);return W;default:return""}else switch(y.nodeType){case 3:return y.textContent;default:return""}},GAC=function(y){y=y.data;
return _.O("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.O("div",null,_.O(_.Lv,{text:y.title})),y.subtitle?_.O("div",{class:"ytd-menu-title-renderer__subtitle"},_.O(_.Lv,{text:y.subtitle})):null)},rcE=function(y){switch(y){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"}},b6d=function(y){return y.map(function(W){return{settingsRadioOptionRenderer:{title:_.p2(W.name),
asideText:_.p2(W.approximateSize),id:rcE(W.format)}}})},Z6u=function(y){if(y&&y.length!==0)return y.filter(Q6C()).map(function(W){return{settingsRadioOptionRenderer:{title:W.name,
asideText:W.approximateSize,id:rcE(W.formatType)}}})},TV=function(y){if(y)return y.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},yYq=function(y,W){y=new Set(y!=null?y:[]);
if(y.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(y.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(y.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(y.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(y.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(W)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},WMd=function(y){var W=y.indexOf("(");
return W!==-1?y.substring(W+1,y.length-1):y},VYt=function(y){switch(y){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},tYm=function(y,W,V,w,t,F){var I=_.Gc.clone(wCm);
I.locale=_.yC("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;I.report={description:t||"<empty>"};t=_.yC("SBOX_SETTINGS",{});W=W.join(",");var P=Date.now();y={choice_cc:w,choice_id_cc:V,choices_sc:W,gl:t.REQUEST_DOMAIN,hl:t.REQUEST_LANGUAGE,query:y,time:P};F&&(y.choice_additional_comment_cc=F);_.oWJ(I,y)},FM3=function(y){var W=new Map;
W.set("authuser",_.yC("SESSION_INDEX","0"));return _.mb(y,W)},Nc4=function(y){var W;
return _.g(function(V){switch(V.nextAddress){case 1:if(!y||!Ec4(y))return V.return(null);W=null;switch(_.yC("INNERTUBE_CLIENT_NAME")){case "WEB":return V.jumpTo(2);case "WEB_REMIX":W=y.getPlayer()}V.jumpTo(3);break;case 2:return V.yield(y.getPlayerPromise(),4);case 4:W=V.yieldResult;V.jumpTo(3);break;case 3:return V.return(W)}})},Ec4=function(y){return["ytd-player",
"ytmusic-player"].includes(String(y.tagName||"").toLowerCase())},I8u=function(y){y=Math.round(y);
return y%2?y-1:y},gce=function(y){y=Math.round(y);
return y%2===0?y-1:y},PEe=function(y){var W,V,w;
if(y=(W=y.createPlaylistDialogFormSchema)==null?void 0:(V=W.fieldSchemas)==null?void 0:(w=V.title)==null?void 0:w.validationSchema)for(W=[y.syncStep,y.asyncStep].filter(function(t){return t!==void 0}),W=_.N(W),V=W.next();!V.done;V=W.next()){V=V.value.rules;
if(!V)break;V=_.N(V);for(V=V.next();!V.done;V=V.next())return _.h(V.value,_.vVE)}},ODt=function(y){var W,V,w;
if(y=(W=y.createPlaylistDialogFormSchema)==null?void 0:(V=W.fieldSchemas)==null?void 0:(w=V.visibility)==null?void 0:w.validationSchema)for(W=[y.syncStep,y.asyncStep].filter(function(t){return t!==void 0}),W=_.N(W),V=W.next();!V.done;V=W.next()){V=V.value.rules;
if(!V)break;V=_.N(V);for(w=V.next();!w.done;w=V.next())if(w=_.h(w.value,CE4))return W=void 0,(W=w.translations)==null?void 0:W.visibilityNotValidErrorMessage}},vcC=function(){var y,W;
return(W=(y=_.hs().resolve(_.eX(_.va)))==null?void 0:y())!=null?W:!1},dMe=function(y){var W=21;
if(!y)return W;W+=y.headerTitle?27:0;W+=y.headerTitle&&y.hasHeaderActionHeader?4:0;return W+=y.headerTitle&&y.headerSubtitle?16:0},LM3=function(y){var W=0;
if(!y)return W;W+=y.hasFooterPrimaryButton||y.hasFooterSecondaryButton?48:0;W+=y.footerTrailingLabel||y.footerLeadingLabel?30:0;return W+=y.hasFooterPrimaryButton||y.hasFooterSecondaryButton||!y.footerTrailingLabel&&!y.footerLeadingLabel?0:12},z63=function(y){var W=new _.D3,V=y;
return{subscribe:function(w){W.subscribe("changed",w)},
dispatch:function(w,t){var F=V;w==="Touch Start"?V=Object.assign({},F,{isAnimating:!1,initialY:t.event.touches[0].clientY}):w==="Touch Move"?(w=Math.min(t.fullContentWrapperHeight,t.contentHeightMap[t.contentWrapperId]+dMe(t.header)-LM3(t.footer)),V=Object.assign({},F,{currentY:Math.max(t.contentScrollable?-1*(F.initialY-24):0,t.event.touches[0].clientY-F.initialY),maxHeightForContentWrapper:Math.min(w,Math.max(0,(F.isFullScreen?w:t.contentWrapperHeight)-F.currentY))})):V=w==="Snap To Full Screen"?
Object.assign({},F,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:t.maxHeight}):w==="Snap To Neutral Position"?Object.assign({},F,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):w==="Close Sheet"?Object.assign({},F,{isAnimating:!0,currentY:t.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):F;W.publish("changed",V)}}},cYu=function(y){return _.YS(function(W){y(W);
return!1})},e6u=function(){_.hs().resolve(_.nr).closeSheet()},h6t=function(y){var W,V,w,t,F,I,P,C,d,L,z;
return{headerTitle:(W=y.headerTitle)==null?void 0:W.call(y),headerSubtitle:(V=y.headerSubtitle)==null?void 0:V.call(y),headerActionHeader:y.headerActionHeader,footerPrimaryButton:y.footerPrimaryButton,footerSecondaryButton:y.footerSecondaryButton,footerButtonType:(w=y.footerButtonType)==null?void 0:w.call(y),footerLeadingLabel:(t=y.footerLeadingLabel)==null?void 0:t.call(y),footerTrailingLabel:(F=y.footerTrailingLabel)==null?void 0:F.call(y),shouldShowIcons:(I=y.shouldShowIcons)==null?void 0:I.call(y),
skipContentClick:(P=y.skipContentClick)==null?void 0:P.call(y),additionalClassName:(C=y.additionalClassName)==null?void 0:C.call(y),onClosedCallback:y.onClosedCallback,focusOnClose:(d=y.focusOnClose)==null?void 0:d.call(y),isDisabled:(L=y.isDisabled)==null?void 0:L.call(y),disabledCommand:(z=y.disabledCommand)==null?void 0:z.call(y),headerFn:y.headerFn,contentFn:y.contentFn,footerFn:y.footerFn,hasHeaderFn:y.hasHeaderFn(),hasContentFn:y.hasContentFn(),hasFooterFn:y.hasFooterFn(),hasFooterPrimaryButton:y.hasFooterPrimaryButton(),
hasFooterSecondaryButton:y.hasFooterSecondaryButton(),hasHeaderActionHeader:y.hasHeaderActionHeader()}},ocP=function(y){switch(y){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""}},KM3=function(y){switch(y){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""}},pCj=function(y){switch(y){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""}},iDC=function(y,W,V){W.forEach(function(w){_.DN(_.hs().resolve(_.HB),w)});
_.ow(y,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",V])},MY4=function(y,W,V,w){var t=_.h(V,_.Ii).commandLifeCycleConfig;
t&&t.onStartCommand&&_.fg(y,[t.onStartCommand],W);_.Ep(W);var F=_.P5.instance;F&&_.Cn(F,V)?_.OP(F,V,w).then(function(I){if(!I||(I==null?0:I.error))return I=_.h(V,_.Ii).serializedTransactionFlowLoggingParams,_.NE(W),_.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",I));_.NE(W);return{data:I}}).then(function(I){_.NE(W);
f8v(I.data);var P=I.data.command;P&&_.fg(y,[P],W);P=Tcm(V,I.data);if(!P){var C=I.data;I=!1;if(C&&C.command&&_.h(C.command,_.mR)){var d;C=((d=_.h(C.command,_.mR))==null?void 0:d.commands)||[];for(d=0;d<C.length;d++)if(_.h(C[d],_.cZf)){I=!0;break}}I||_.Gq('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!P&&t&&t.onSuccessCommand?_.fg(y,[t.onSuccessCommand],W):P&&t&&t.onFailureCommand&&_.fg(y,[t.onFailureCommand],W)},function(){_.NE(W);
t&&t.onFailureCommand&&_.fg(y,[t.onFailureCommand],W);mMm(V)}):_.ap(Error("Jl"),"ERROR")},qr3=function(y,W,V){var w=[W];
V&&w.push(V);return _.i5(y,w).then(function(t){var F=_.h(W,_.Ii).serializedTransactionFlowLoggingParams,I=t.data,P=Tcm(W,I);P?t=_.Gb(new mD(P,F)):f8v(I);return t},function(){var t=_.h(W,_.Ii).serializedTransactionFlowLoggingParams;
mMm(W);return _.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t))})},Tcm=function(y,W){y=_.h(y,_.Ii).serializedTransactionFlowLoggingParams;
var V=null;switch(W.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":V="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":V="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":V="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}V?_.PW(V,y):J8u(y);return V},mMm=function(y){_.PW("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.h(y,_.Ii).serializedTransactionFlowLoggingParams)},
f8v=function(y){if(y.trackingParams){var W=_.Xn(),V=_.Hf();
W&&V&&_.Fr(W,V,_.nD(y.trackingParams))}},UM3=function(y,W,V){var w=_.P5.instance,t=_.jFb(_.yC("YPC_MB_URL")),F=(new _.JHu).init(),I=_.RVL(),P=_.h(V,_.vpK).languageCode;
P===void 0?_.ap(Error("Ni"),"ERROR"):_.jI([F,t]).then(function(){var C={ctk:payments.business.integration.ClientTokenFactory.createClientToken(P,I)};w&&_.Cn(w,V)?_.OP(w,V,C).then(function(d){return{data:d}}).then(function(d){_.h1(W,"yt-service-request-completed",d);
d.code!=="ERROR"&&(d=d.data.command)&&_.fg(y,[d],W)}):_.ap(Error("Jl"),"ERROR")})},DMW=function(y,W,V,w){var t=_.P5.instance;
t&&_.Cn(t,V)?_.OP(t,V,w).then(function(F){return{data:F}}).then(function(F){uZj(y,W,V,F)},function(){SrC(V)}):(t=_.hs().resolve(_.eX(_.bN)))&&t.requestDataForServiceEndpoint(V,w).then(function(F){uZj(y,W,V,F)},function(){SrC(V)})},uZj=function(y,W,V,w){_.h1(W,"yt-service-request-completed",w);
if(w.code&&w.code=="ERROR")SrC(V);else{(w=w.data.commands)&&_.fg(y,w,W);var t;(y=(t=_.h(V,_.hjq))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&y&&_.t9("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",y)}},SrC=function(y){var W;
(y=(W=_.h(y,_.hjq))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&y&&_.t9("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},kbe=function(y,W,V){var w=_.P5.instance;
w&&_.Cn(w,V)?_.OP(w,V).then(function(t){return{data:t}}).then(function(t){l8e(y,W,V,t)},function(){xMP(V)}):(w=_.hs().resolve(_.eX(_.bN)))&&w.requestDataForServiceEndpoint(V).then(function(t){l8e(y,W,V,t)},function(){xMP(V)})},l8e=function(y,W,V,w){_.h1(W,"yt-service-request-completed",w);
w.code&&w.code=="ERROR"?xMP(V):((w=w.data.commands)&&_.fg(y,w,W),(y=_.h(V,_.opQ).serializedYpcResumeFlowLoggingParams)&&y&&_.t9("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",y))},xMP=function(y){(y=_.h(y,_.opQ).serializedYpcResumeFlowLoggingParams)&&y&&_.t9("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},sUC=function(y){y=y===void 0?{}:y;
_.hs().resolve(_.jm6).showFeedbackDialog(y.customProductData,y.feedbackContent,y.onFeedbackSubmitted,y.bucket)},AYt=function(y){y=y===void 0?{}:y;
_.hs().resolve(_.jm6).showHelpDialog(y.helpContext,y.articleId,y.productData)},YrW=function(){AYt()},Bcq=function(){sUC()},R6t=function(y,W,V){var w,t,F,I,P,C,d;
return _.g(function(L){switch(L.nextAddress){case 1:w=_.h(y,JYj);if((t=w)==null?0:t.productId){C={productId:w.productId,bucket:w.bucket,enableAnonymousFeedback:(P=w.enableAnonymousFeedback)!=null?P:!0,allowNonLoggedInFeedback:!0};d={feedbackChoice:V.feedbackChoice};if(!_.e("web_collect_offline_state")){L.jumpTo(8);break}_.l7(L,9);return L.yield(Q2m(d),11)}I={bucket:(F=w)==null?void 0:F.bucket};if(!_.e("web_collect_offline_state")){L.jumpTo(4);break}I.customProductData={};_.l7(L,5);return L.yield(Q2m(I.customProductData),
7);case 7:_.E6(L,4);break;case 5:_.YX(L);case 4:sUC(I);L.jumpTo(0);break;case 11:_.E6(L,8);break;case 9:_.YX(L);case 8:_.u5d(d),_.UAv("GFEEDBACK",d),w.productId==="5295751"&&(d.client_attestation=Number(_.yC("CATSTAT",0))),w.productId==="5295751"&&(d.client_time=Date.now()/1E3/3600),w.productId==="5295751"&&(d.original_playback_id=_.wv6||""),_.oWJ(C,d),_.B7(L)}})},jUP=function(y){if(y=_.h(y,_.AIb)){var W={bucket:y.bucketIdentifier};
y.additionalDatas&&(W.customProductData={},y.additionalDatas.forEach(function(V){if(V=V.userFeedbackEndpointProductSpecificValueData)W.customProductData[V.key]=V.value}));
sUC(W)}},$Mj=function(y){var W=_.tL.getInstance();
var V=_.u5("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var w=_.u5("DELETE",void 0,"Delete"),t=_.u5("CANCEL",void 0,"Cancel");V=FJ3(V,void 0,w,t,{signal:"DELETE_ALL_DOWNLOADS"});_.Zg(W,[{openPopupAction:V}],y)},HDj=function(){return _.g(function(y){return y.nextAddress==1?y.yield(_.hs().resolve(_.p0),2):y.yield(ncu(),0)})},XCC=function(y){var W,V;
return _.g(function(w){return w.nextAddress==1?(V=(W=_.h(y,_.Wl))==null?void 0:W.targetId)?w.yield(_.hs().resolve(_.p0),3):w.jumpTo(0):w.yield(_.hs().resolve(_.K0).deleteVideo(V),0)})},Gbm=function(y){var W,V;
return _.g(function(w){return w.nextAddress==1?(V=(W=_.h(y,_.Wl))==null?void 0:W.targetId)?w.yield(_.hs().resolve(_.p0),3):w.jumpTo(0):w.yield(a8E(_.hs().resolve(_.K0),V),0)})},bDv=function(y){var W,V;
return _.g(function(w){return(V=(W=_.h(y,_.Wl))==null?void 0:W.targetId)?w.yield(rYW(V),0):w.jumpTo(0)})},ZD4=function(){_.e("kevlar_woffle_refresh_dl_load_killswitch")||QUd()},WmC=function(){_.e("kevlar_woffle")&&_.ac.instance&&ylm()},waC=function(y){var W;
if((W=_.h(y,_.xn))==null||!W.videoId)return!1;VlP(_.hs().resolve(_.K0),_.h(y,_.xn),y.clickTrackingParams);return!0},FmC=function(y){var W;
if((W=_.h(y,_.sP))==null||!W.playlistId)return!1;tlq(_.hs().resolve(_.K0),_.h(y,_.sP),y.clickTrackingParams);return!0},NLe=function(y){var W=_.h(y,_.FZI);
(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||ESu(_.hs().resolve(_.K0),_.h(y,_.FZI))},gS3=function(y){y=_.h(y,_.saA);
var W;(y==null?0:(W=y.actions)==null?0:W.length)&&IQq(y)},O5e=function(y){var W,V;
return _.g(function(w){W=_.h(y,PFj);return(V=W)!=null&&V.localWatchHistoryCommandType?w.yield(CFd(W),0):w.return()})},vSe=function(y){setTimeout(function(){requestAnimationFrame(y)},80)},d4j=function(y){return Object.entries(y).map(function(W){return W.join(":")}).join(";")},zAE=function(y){var W,V,w;
_.g(function(t){if(t.nextAddress==1)return t.yield(Lm4(),2);W=t.yieldResult;V=_.xc.instance;switch(W){case "granted":w=y.getLocationCommand;break;case "denied":w=y.openDeniedDialogAction;break;case "prompt":w=y.openCollectionDialogAction;break;default:w=y.openCollectionDialogAction}w&&V.resolveCommand(w);_.B7(t)})},Lm4=function(){var y,W;
return _.g(function(V){if(V.nextAddress==1)return y="prompt",navigator.permissions?V.yield(navigator.permissions.query({name:"geolocation"}),3):V.jumpTo(2);V.nextAddress!=2&&(W=V.yieldResult,y=W.state);return V.return(y)})},eAd=function(){_.g(function(y){return y.yield(_.clu(),0)})},hAu=function(){var y,W,V;
return _.g(function(w){if(w.nextAddress==1)return y=_.hs().resolve(_.QY),y?w.yield(_.OP(y,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.rQ(Error("Ml")),w.return(void 0));if(W=w.yieldResult){if(W.errorMetadata)return _.rQ(Error("Nl`"+W.errorMetadata.status+"`"+W.error)),w.return(void 0);V=W.datasyncIds;_.XLf=V.length;return w.return(V)}_.rQ(Error("Ol"));return w.return(void 0)})},oSj=function(){hAu().then(function(y){y&&(i7v(y),j2d(y),LNv(y),WRt(y))})},Kmq=function(y){_.HU.addLowPriorityJob(function(){var W,
V,w,t,F;
return _.g(function(I){switch(I.nextAddress){case 1:if(_.e("ytidb_clear_optimizations_killswitch")){I.jumpTo(2);break}W=_.Y_("clear");if(W.startsWith("V")&&W.endsWith("||")){var P=[W];i7v(P);j2d(P);LNv(P);WRt(P);return I.return()}V=zDd();w=VMt();return I.yield($Bm(),3);case 3:return t=I.yieldResult,I.yield(fRE(),4);case 4:if(F=I.yieldResult,!(V||w||t||F))return I.return();case 2:y.isNetworkAvailable()?oSj():y.listenOnce("publicytnetworkstatus-online",oSj),_.B7(I)}})})},Mq=function(y){y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.CO(y)}}}};_.xc.instance&&_.xc.instance.resolveCommand(y)},pa4=function(y){if(y){var W=_.BC();
_.qx(W,3854,void 0,{layer:0,parentLayer:4});switch(y){case 1:var V=238708;break;case 2:V=238715;break;case 3:V=238710;break;case 6:V=238709}V&&(y=_.Yc(W,{veType:V}))&&_.Sn(W,y)}},i5j=function(y){if(y){var W=_.BC();
_.qx(W,3854,void 0,{layer:0,parentLayer:4});switch(y){case 1:var V=238714;break;case 2:V=238711;break;case 8:V=238709;break;case 7:V=238713;break;case 3:case 4:case 5:V=238712}V&&(y=_.Yc(W,{veType:V}))&&_.Sn(W,y)}},fQj=function(y){switch(y.latencyType){case 0:_.X$("consent_primitive_flow");
_.aw("cpit",y.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.aw("cpist",y.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.aw("cprtif",y.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.aw("cprtli",y.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.aw("cprt",y.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.aw("cpdt",y.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.aw("cpjct",y.timestampEpochMillis,"consent_primitive_flow")}},
x4u=function(y,W){var V,w,t,F,I,P,C,d,L,z,c,K,f,U,l,x,B,r,H,a;
return _.g(function(b){switch(b.nextAddress){case 1:_.l7(b,2);(w=(V=_.h(y,TL3))==null?void 0:V.serializedConsentRequest)||(w=(t=_.h(y,m4d))==null?void 0:t.serializedConsentRequest);w&&(F=Mlj(_.Cq(w)));if(F===void 0)return b.return();I=qUt(F);I.latencyCallback=fQj;W&&U4t(I,function(){W.then(function(Fv){Fv.pauseVideo();(new u2d).increment()})});
return((P=_.h(y,TL3))==null?void 0:P.consentAction)==="CONSENT_ACTION_PREWARM"||((C=_.h(y,m4d))==null?void 0:C.consentAction)==="CONSENT_ACTION_PREWARM"?b.yield(SUv(I),5):b.yield(D4m(I),6);case 6:d=b.yieldResult;L=_.Jd(d,qq);if(L===1){if(((z=_.ZT(d,UM,1,qq))==null?void 0:_.rK(z,1))===1||((c=_.ZT(d,UM,1,qq))==null?void 0:_.rK(c,1))===2||((K=_.ZT(d,UM,1,qq))==null?void 0:_.rK(K,1))===3)_.h(y,m4d)?Mq(_.u5("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Mq(_.u5("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));pa4((f=_.ZT(d,UM,1,qq))==null?void 0:_.rK(f,1),_.eA(d,lQj,3,_.hG()))}else L===2?(((U=ue(d))==null?void 0:_.rK(U,1))===5?_.h(y,m4d)?Mq(_.u5("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Mq(_.u5("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((l=ue(d))==null?void 0:_.rK(l,1))===1||((x=ue(d))==null?void 0:_.rK(x,1))===4?Mq(_.u5("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((B=ue(d))==null?void 0:_.rK(B,1))===7&&((r=F)==null?void 0:(H=_.Da(r,Sq,4))==null?void 0:_.rK(H,4))!==1&&Mq(_.u5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),i5j((a=ue(d))==null?void 0:_.rK(a,1))):Mq(_.u5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));b.jumpTo(5);break;case 5:_.E6(b,0);break;case 2:_.YX(b),Mq(_.u5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.B7(b)}})},sdm=function(){if(!kPW.has("Worker")){kPW.set("Worker",
!0);
var y={api:"BROWSER_API_WEB_WORKER"};y.available="Worker"in window?!0:!1;_.Hp("apiTest",y)}},Ald=function(y){return typeof y==="undefined"?"-1":String(Math.ceil(y/1048576))},RAC=function(y,W){YUu(new BLd(_.h(W,Jlv).addToken,_.h(W,Jlv).commonToken)).then(function(){_.h1(y,"yt-invoke-instrument-manager-action-completed")},function(V){_.h1(y,"yt-invoke-instrument-manager-action-error",V)})},jdt=function(y){return _.t$(y)},$4u=function(y){var W=1;
y=y.split(":");for(var V=[];W>0&&y.length;)V.push(y.shift()),W--;y.length&&V.push(y.join(":"));return V},nSW=function(y,W){W=y.aspectRatio()<=W.aspectRatio()?W.width/y.width:W.height/y.height;
y.scale(W)},H5t=function(y,W){W=y.aspectRatio()>W.aspectRatio()?W.width/y.width:W.height/y.height;
return y.scale(W)},XaC=function(y){var W=new _.MI;
return _.y_(W,11,y)},aQC=function(y){var W={};
y=y.getAllResponseHeaders().split("\r\n");for(var V=0;V<y.length;V++)if(!_.gu(y[V])){var w=$4u(y[V]),t=w[0];w=w[1];if(typeof w==="string"){w=w.trim();var F=W[t]||[];W[t]=F;F.push(w)}}return _.Gc.map(W,function(I){return I.join(", ")})},Bo=function(y,W){return y.JSC$9721_xhr_?y.JSC$9721_xhr_.getResponseHeader(W):null},GP4=function(y,W){if(y.isDisposed())throw Error("Ma");
y.yM.nF("n");var V=_.bW(y.yM,function(){return y.qvH([W.nC,W.wqD,W.zlq,W.hBa])},"n");
y.yM.p6R(V.length);y.yM.yf();return V},DL=function(y,W,V){Array.isArray(V)||(V=[String(V)]);
_.Zb6(y.JSC$9958_queryData_,W,V);return y},ylm=function(){var y=_.ac.instance;
_.g(function(W){return y.deferredInstallPrompt?W.yield(y.deferredInstallPrompt.prompt(),0):W.jumpTo(0)})},rlE=function(y,W,V){if(_.bn(y))_.IA(y,W,V);
else for(y=_.P4i(y);;){var w=y.next();if(w.done)break;W.call(V,w.value,void 0,y)}},b5e={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}"]},X5j,a1P,G$u,rn3,bnE,QJ3,Znu,yOd,WHC,rYW,a8E,ncu,VyP,weP,tyE,FH3,E9j,N7C,tlq,VlP,I6d,g9m,P0e,QUd,ESu,C0t,IQq,Ovu,CFd,v9E,dUW,LHW,z7P,cO3,e7j,h7E,o9u,
KHC,peP,ivq,f6j,vAu,T7j,mU3,Myt,qZe,UUj,uWW,SZ3,EAv,wWu,DUm,YD,BI,Jh,RH,l6v,xUu,krd,stt,AO4,YZq,B7j,JO3,R7P,jtu;b5e={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 QdC=function(y,W){var V=[];rlE(W,function(w){try{var t=_.o2.prototype.getWrapper.call(this,w,!0)}catch(F){if(F=="Storage: Invalid value was encountered")return;throw F;}t===void 0?V.push(w):_.gki(t)&&V.push(w)},y);
return V},Z5v=function(y,W){QdC(y,W).forEach(function(V){_.o2.prototype.remove.call(this,V)},y)},ynW=function(y){var W=_.Ix;
W._minimumZ=Math.max(W._minimumZ,y)},WGm=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Vfm=function(y,W){_.La(y.vm);y.vm=W},w5C=function(y,W,V,w){y.setState(5);
var t=!!y.uez&&WGm.includes(_.di(y.uez)||"");try{var F=new _.Ql({program:W,globalName:V,szH:{disable:!_.e("att_web_record_metrics")||!_.e("att_skip_metrics_for_cookieless_domains_ks")&&t,xT:"aGIf"}});F.xsl.then(function(){y.setState(6);w&&w(W)});
Vfm(y,F)}catch(I){y.setState(7),I instanceof Error&&_.rQ(I)}},tfu=function(y,W,V,w,t,F){var I=I===void 0?"trayride":I;
V?(y.setState(2),_.ym(_.na(V),function(){if(window[I])w5C(y,w,I,t);else{y.setState(3);var P=_.lgG(V),C=document.getElementById(P);C&&(_.AYn(P),C.parentNode.removeChild(C));_.rQ(new _.Js("BL:ULB",V))}},F)):W?(F=_.xu("SCRIPT"),W instanceof _.Oc?_.LJ(F,W):F.textContent=W,F.nonce=_.CJ(document),document.head.appendChild(F),document.head.removeChild(F),window[I]?w5C(y,w,I,t):(y.setState(4),_.rQ(new _.Js("BL:ULBJ")))):_.rQ(new _.Js("BL:ULV"))},FGt=function(){this.state=1;
this.vm=null;this.uez=void 0};
_.E=FGt.prototype;_.E.initialize=function(y,W,V,w){this.uez=w;if(y.program){var t;w=(t=y.interpreterUrl)!=null?t:null;if(y.interpreterSafeScript)t=_.EAR(y.interpreterSafeScript);else{var F;t=(F=y.interpreterScript)!=null?F:null}y.interpreterSafeUrl&&(w=_.X1(y.interpreterSafeUrl).toString());tfu(this,t,w,y.program,W,V)}else _.rQ(Error("uf"))};
_.E.isInitialized=function(){return!!this.vm};
_.E.getState=function(){return this.state};
_.E.isLoading=function(){return this.state===2};
_.E.invoke=function(y){y=y===void 0?{}:y;var W;this.vm?W=GP4(this.vm,{nC:y}):W=null;return W};
_.E.dispose=function(){Vfm(this,null);this.setState(8)};
_.E.setState=function(y){this.state=y};
var EnE=function(y,W){return y.vm.snapshot(W)},Npu=function(y,W){var V=_.pB("botguard_async_snapshot_timeout_ms",3E3);
W=W===void 0?{}:W;V=V===void 0?3E3:V;return y.vm?new Promise(function(w,t){var F=!1,I=_.HU.addJob(function(){F=!0;t(Error("vf"))},1,V);
y.vm?EnE(y,{nC:W}).then(function(P){_.HU.cancelJob(I);F||w(P)}).catch(function(P){_.HU.cancelJob(I);
F||t(P)}):(_.HU.cancelJob(I),w(null))}):Promise.resolve(null)},I1m=["att/log"],gnd;
gnd={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var P83={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},C8j=function(y,W){return _.kC(y,{mode:"readwrite",enableRetries:!0},function(V){return _.voj(V,W,"settingEntity")})},One=function(y,W,V){return _.kC(y,{mode:"readonly",
enableRetries:!0},function(w){return _.JjJ(w,W,V)})},vn4=function(y){if(!y.storage)return!1;
a:{if(y.storage){try{var W=y.storage.get("TLPQtimestamp")}catch(V){}y=Number(W);if(!isNaN(y))break a}y=void 0}return y?Date.now()-y<864E5:!1},dHu=function(y){if(y.storage){try{var W=y.storage.get("TLPQindex")}catch(V){}y=Number(W);
if(!isNaN(y))return y}},LGq=function(y,W){y.queueProxy&&W.forEach(function(V){if(V.videoId&&V.trackingParams&&y.queueProxy instanceof _.yo){var w=_.Xn();
y.queueProxy.attributionData.set(V.videoId,{enqueueingVe:_.nD(V.trackingParams).getAsJson(),enqueueingCsn:w?w:void 0,clientEnqueueingTimeMs:Math.floor((0,_.cU)()).toString()})}})},zME=function(y){var W=_.KsR(y);
W!=y.currentSnapState_&&(y.currentSnapState_=W,y.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},le=function(y){this.JSC$13027_networkManager_=y;
this.partCallbacks_=[]};
le.prototype.getCacheKeyForEndpoint=function(y){return _.G8v(y,!1)};
le.prototype.onPartsCallback_=function(y){this.partCallbacks_.forEach(function(W){y&&W(y)})};
var xD=function(y,W,V){le.call(this,y);this.player_=W;this.autoplayData_=V};
_.p(xD,le);xD.prototype.getCacheKeyForEndpoint=function(y){return _.G8v(y,!!this.autoplayData_)};
xD.prototype.getTempData=function(y,W){W=W.timeBeforeNextVideo;y={itct:y.clickTrackingParams,lact:_.es(),pbis:W,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(y.autonav=1);return y};
xD.prototype.getXhrParams=function(y){return Object.assign({pbj:"prefetch"},y)};
xD.prototype.getParams=function(y){y={frags:y.fragmentsRequested.join(",")};_.e("kevlar_droppable_prefetchable_requests")&&(y.prefetch=1);return y};
var cnE=function(y){y.playerEvents_.forEach(function(W){y.player.removeEventListener(W.eventName,W.callback)});
y.playerEvents_.length=0},kD=function(y,W,V){this.player=y;
this.JSC$13037_taskManager=W;this.prefetchDelay=V;this.completionResolver_=null;this.playerEvents_=[]};
kD.prototype.start=function(){var y=this;this.completionResolver_=_.v5();_.$s(this.completionResolver_.promise,function(){cnE(y);y.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var eMW=function(y,W,V){y.player.addEventListener(W,V);y.playerEvents_.push({eventName:W,callback:V})},hMu={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},onW={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},KGe=function(y,W,V){kD.call(this,y,W,V);this.cueId_="playbackTrigger-"+Math.random()};
_.p(KGe,kD);
KGe.prototype.prepareTrigger=function(y){var W=this,V=this.player.getDuration(),w=this.player.getVideoData(),t=w.isLive&&w.hasProgressBarBoundaries;if(t&&w.progressBarEndPositionUtcTimeMillis){var F=w.progressBarEndPositionUtcTimeMillis/1E3;isNaN(F)||(V=F)}var I=0;this.prefetchDelay>=0?t?w.progressBarStartPositionUtcTimeMillis&&(w=w.progressBarStartPositionUtcTimeMillis/1E3,isNaN(w)||(I=w+this.prefetchDelay)):I=this.prefetchDelay:I=V+this.prefetchDelay;t?this.player.addUtcCueRange(this.cueId_,I,V):
this.player.addCueRange(this.cueId_,I,V);_.$s(y.promise,function(){W.player.removeCueRange(W.cueId_)});
eMW(this,"onCueRangeEnter",function(P){P==W.cueId_&&y.resolve(V-I)})};
var p53=function(y,W){y.fragmentConfiguration_[W].requiredKeys.every(function(V){return!!y.prefetchedData_[V]})&&(y.validatedFragments_.push(W),W=y.missingFragments_.indexOf(W),W!==-1&&y.missingFragments_.splice(W,1))},in3=function(y){y.prefetchedFragments_.forEach(function(W){p53(y,W)})},f1C=function(y,W,V){this.pageFragments_=y;
this.prefetchedFragments_=W;this.fragmentConfiguration_=onW;this.prefetchedData_=V;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;in3(this)},Tpj=function(){},mHq=function(y){this.JSC$13051_playlistManager_=y};
_.p(mHq,Tpj);mHq.prototype.getPrefetchEndpoint=function(){return this.JSC$13051_playlistManager_.getAutoplayEndpoint()};
var Mfu=function(y){this.autonavEndpoints_=y};
_.p(Mfu,Tpj);Mfu.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var qPu=function(y,W,V,w,t){this.autonavEndpoints=y;this.foregroundTrigger=W;this.backgroundTrigger=V;this.pageType=w;this.isInPlaylist=t},UH4=function(y,W){if(y.webPrefetchData&&y.webPrefetchData.navigationEndpoints&&y.webPrefetchData.navigationEndpoints.length){y=y.webPrefetchData.navigationEndpoints;
var V=_.h(y[0],_.Iw);if(V.watchEndpointSupportedPrefetchConfig&&V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var w=V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;V=w.playbackRelativeSecondsPrefetchCondition;V=typeof V==="number"&&Math.abs(V)<W.videoDuration?V:void 0;w=w.countdownUiRelativeSecondsPrefetchCondition;w=typeof w!=="number"||_.e("prefetch_job_config_cleanup_ks")&&W.inPlaylist?void 0:w;if(typeof w==="number")return new qPu(y,W.makeUpNextTrigger(w),W.makePlaybackTrigger(w),
"watch",W.inPlaylist);if(typeof V==="number")return new qPu(y,W.makePlaybackTrigger(V),null,"watch",W.inPlaylist)}}},uRW=function(y){return y.prefetchJobConfig_.backgroundTrigger?_.wi(_.D2y)()==0?y.prefetchJobConfig_.backgroundTrigger:y.prefetchJobConfig_.foregroundTrigger:y.prefetchJobConfig_.foregroundTrigger},SP4=function(y){_.Ys(document,"visibilitychange",y.onVisibilityChange_,!1,y)},sM=function(y){le.call(this,y)};
_.p(sM,le);sM.prototype.getCacheKeyForEndpoint=function(y){return le.prototype.getCacheKeyForEndpoint.call(this,y)};
sM.prototype.getTempData=function(){return{}};
sM.prototype.getXhrParams=function(y){return y};
sM.prototype.getParams=function(){return{}};
var DHe=function(y,W,V){var w=y.prefetchDelay*1E3;if(Math.abs(w)>W)V.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var t=w,F=W-w;w<0&&(t=W+w,F=Math.abs(w));var I=y.JSC$13037_taskManager.addJob(function(){V.resolve(F/1E3)},10,t);
V.promise.thenCatch(function(){y.JSC$13037_taskManager.cancelJob(I)})}},l1E=function(y,W,V){kD.call(this,y,W,V)};
_.p(l1E,kD);l1E.prototype.prepareTrigger=function(y){var W=this;eMW(this,"onAutonavCoundownStarted",function(V){DHe(W,V,y)})};
var xH4=function(y){y.pendingPrefetchJob_&&(y.pendingPrefetchJob_.cancel(),y.pendingPrefetchJob_=null)},k$j=function(y,W,V){if(!y.triggeredTargets.has(W)){var w=_.LiQ(y,W);
w.action=V;_.vwi(y,W,w)}},sJj=function(y){_.WVm();
_.XQn("cpt")&&_.rQ(Error("uh"));_.Vj.requestAnimationFrame(function(){_.Vj.setTimeout(function(){_.aw("cpt");var W=_.yD("vpl"),V=_.yD("cpt");W&&V&&_.aw("ol",Math.max(W,V))})});
try{_.aw("fr_s"),y()}catch(W){_.ap(W)}_.Vj.requestAnimationFrame(function(){_.aw("bcp")})},Anu=function(y,W){y.serviceEndpointHandlers.push(W)},YP4=function(y,W){W=y.pendingPages_.indexOf(W);
W>-1&&y.pendingPages_.splice(W,1)},Bpe=function(y,W){var V=_.ThA.indexOf(W);
V>-1&&_.ThA.splice(V,1);y.targetPage_==W?(y.abort(),_.MCR(y)):YP4(y,W)},JnC=function(y,W,V,w){W={challenge:W};
V&&(W.webResponse=V);return _.Vo(y.innertubeTransportService,W,_.LO(I1m),w)},RMj=function(y,W,V){if(!W.challenge)throw Error("wi");
if(W.botguardData&&W.botguardData.program){var w=new FGt;w.initialize(W.botguardData,function(){Npu(w,{atr_challenge:W.challenge}).then(function(t){if(!t)throw Error("xi");return JnC(y,W.challenge,t,V)}).catch(function(t){_.rQ(t);
return JnC(y,W.challenge,void 0,V)})},void 0)}else JnC(y,W.challenge,void 0,V)},jJd=function(y,W,V){var w={};
W.ids&&(w.ids=[].concat(_.GC(W.ids)));W.engagementType&&(w.engagementType=W.engagementType);return _.Vo(y.innertubeTransportService,w,_.LO(_.E5Q),V).then(function(t){if(!t)throw new _.Js("GetAttestationChallenge returned falsy");RMj(y,t,V)}).thenCatch(function(t){_.ap(t)})},$He=function(y,W,V){return new _.qN(function(w,t){var F;
return _.g(function(I){if(I.nextAddress==1){var P=I.yield,C=W.engagementType,d=W.ids,L={};d=_.N(d!=null?d:[]);for(var z=d.next();!z.done;z=d.next())z=z.value,z.encryptedVideoId?L.encryptedVideoId=z.encryptedVideoId:z.externalChannelId?L.externalChannelId=z.externalChannelId:z.commentId?L.commentId=z.commentId:z.externalOwnerId?L.externalOwnerId=z.externalOwnerId:z.artistId?L.artistId=z.artistId:z.playlistId?L.playlistId=z.playlistId:z.externalPostId?L.externalPostId=z.externalPostId:z.shareId&&(L.shareId=
z.shareId);return P.call(I,tiC(C,L),2)}F=I.yieldResult;if(!F.challenge)return _.rQ(Error("yi")),jJd(y,W,V).then(w,t),I.return();P=F;C={challenge:P.challenge};C.webResponse=P.webResponse;C.engagementType=W.engagementType;C.ids=W.ids;_.Vo(y.innertubeTransportService,C,_.LO(I1m),V).then(w,t);_.B7(I)})})},gAu=function(y,W){var V,w,t,F;
_.g(function(I){if(I.nextAddress==1){V=_.h(W,_.Xg6);if(!(V&&V.listId&&y.response&&y.response.playingVideoId)||y.listId!==V.listId)return I.return();y.index===void 0&&(y.index=0);return I.yield(_.i92(y.JSC$12782_playlistNetworkManager,V.listId,y.index,y.response.playingVideoId),2)}w=I.yieldResult;if(!w)return I.return();t=w.playlistId;F=w.playlistPanelRenderer;y.setPlaylistData(t,F,w.autoplayRenderer);_.B7(I)})},nnq=function(y,W,V){var w=y.getParams(V),t=_.zMP(W,w),F=y.getTempData(W,V);
F.endpoint=JSON.stringify(W);_.e("enable_unknown_lact_fix_on_html5")&&(_.hs().resolve(_.rL),F.lact=_.es());var I={headers:{"X-YouTube-STS":_.yC("STS"),"x-youtube-csoc":1}};_.On(t,F);return new _.qN(function(P,C){var d=y.getXhrParams(w),L;_.e("kevlar_cache_on_ttl_player")&&(L=_.JS.instance);L&&_.HtQ(L,W)?_.y3m(L,W,F,window.location.href).then(function(z){z?P(z):C()},C):_.K2Q(y.JSC$13027_networkManager_,W,d,y.onPartsCallback_.bind(y),I).then(function(z){z?P(z):C()},C)})},HnW=function(y,W){y.triggerPromise_=
W.start();
y.triggerPromise_.then(function(V){var w=y.prefetchEndpointProvider_.getPrefetchEndpoint();if(w){var t=hMu[y.prefetchJobConfig_.pageType].prefetchedFragments;y.prefetchRequestPromise_=nnq(y.JSC$13063_networkPrefetchRequest_,w,{fragmentsRequested:t,timeBeforeNextVideo:V});y.prefetchResponseCacheKey_=y.JSC$13063_networkPrefetchRequest_.getCacheKeyForEndpoint(w);SP4(y);y.prefetchRequestPromise_.then(function(F){y.storePrefetchedDataCallback_(y.prefetchResponseCacheKey_,F);if(_.e("web_prefetch_preload_video")&&
t.length===1&&t[0]==="pl"&&F&&!F.playerAds&&!F.adPlacements){var I=_.h(w,_.Jx),P=I!=null,C={raw_player_response:F,watch_endpoint:I};(F=_.hs().resolve(P?_.Fl2:_.mG))&&w&&F.then(function(d){P&&_.e("web_queue_preload_video")?(C.prefer_gapless=!0,d.queueNextVideo(C)):d.preloadVideoByPlayerVars(C)})}})}})},Ah=function(y,W,V,w){this.prefetchEndpointProvider_=y;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=W;this.prefetchJobConfig_=V;this.JSC$13063_networkPrefetchRequest_=w;this.prefetchResponseCacheKey_=null};
Ah.prototype.enqueue=function(){this.triggerPromise_||(HnW(this,uRW(this)),_.XZ(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Ah.prototype.resolve=function(){this.cancel()};
Ah.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.");SP4(this)};
Ah.prototype.onVisibilityChange_=function(){var y=this;_.wi(_.D2y)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){y.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||HnW(this,uRW(this))};
X5j=function(y,W,V,w,t){W&&(W==null?0:W.videoId)&&V&&V.entries&&_.e("kevlar_enable_shorts_prefetch_in_sequence")&&(xH4(y),W=V.entries.map(function(F){var I;return(I=_.h(F.command,_.Jx))==null?void 0:I.videoId}).indexOf(W.videoId),V=V.entries[W+1],V!=null&&V.command&&!_.h(V==null?void 0:V.command,_.Wh)&&(w=new qPu([V.command],new KGe(w,_.HU,1),null,"shorts",!1),y.pendingPrefetchJob_=new Ah(new Mfu(w.autonavEndpoints),function(){return!1},w,new sM(t)),y.pendingPrefetchJob_.enqueue()))};
a1P=function(y,W,V,w,t,F){var I=_.en.getInstance();if(!_.e("block_all_player_prefetch_requests")){xH4(y);var P=!!V.getPlaylistId(),C=V.getVideoData().isLive&&V.getVideoData().hasProgressBarBoundaries;if((I.getState()==2||P||C)&&(!V.getVideoData().isLive||C)){I={inPlaylist:P,videoDuration:V.getDuration(),makeUpNextTrigger:function(L){return new l1E(V,_.HU,L)},
makePlaybackTrigger:function(L){return new KGe(V,_.HU,L)}};
var d=UH4(W,I);d&&(y.pendingPrefetchJob_=new Ah(d.isInPlaylist?new mHq(t):new Mfu(d.autonavEndpoints),function(L,z){z=new f1C(hMu[d.pageType].pageFragments,hMu[d.pageType].prefetchedFragments,z);return _.tjQ(z)?(y.prefetchCache_.set(L,z),!0):!1},d,new xD(w,V,F,t)),y.pendingPrefetchJob_.enqueue())}}};
G$u=function(){var y=_.Ib();y.signals.parkOrScheduleJob(function(){var W=y.storage;if(W.storage)if(vn4(W)){var V=W.getPlaylistId();W=dHu(W);V=!!V&&W!==void 0}else W.clear(),V=!1;else V=!1;if(V){V=y.pageManager.isOnWatch();a:{var w=y.storage;if(w.storage&&vn4(w)&&(W=w.getPlaylistId(),w=dHu(w),W&&w!==void 0)){V={recoverPlaylistCommand:{listId:W,index:w,openMiniplayer:!V,openListPanel:V,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}V=void 0}V&&_.Zg(y.JSC$12782_actionRouter,[V],null)}},0,"ma")};
rn3=function(y,W,V,w,t,F){var I=_.ad(7111);_.U8(y.JSC$18130_screenManager,I,F?_.nD(F):void 0);_.Sn(y.JSC$18130_screenManager,I,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:w,offlineId:W,offlineabilityFormatType:V,isDefaultFormatType:t==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:t}})};
bnE=function(y,W,V,w,t){var F,I,P,C,d;return _.g(function(L){if(L.nextAddress==1)return L.yield(y.JSC$18130_playerApiPromise,2);F=L.yieldResult;rn3(y,W,V,"OFFLINE_OBJECT_TYPE_PLAYLIST",w,t);if(P=_.auQ[y.entityTypeMap.listEntityType])d={},I=(d[P]={maximumDownloadQuality:(C=V)!=null?C:void 0},d);return L.yield(F.queueOfflineAction(W,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",I),0)})};
QJ3=function(y,W){var V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return I.yield(y.JSC$18130_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3){V=I.yieldResult;if(!V)return _.rQ(new _.Js("PES is undefined")),I.return();w=_.qK(W,"downloadStatusEntity");return I.yield(One(V,w,"downloadStatusEntity"),3)}t=I.yieldResult;return I.return((F=t)==null?void 0:F.downloadState)})};
Znu=function(y,W,V,w,t){var F,I,P,C,d,L;return _.g(function(z){switch(z.nextAddress){case 1:return z.yield(y.JSC$18130_playerApiPromise,2);case 2:F=z.yieldResult;rn3(y,W,V,"OFFLINE_OBJECT_TYPE_VIDEO",w,t);if(P=_.auQ[y.entityTypeMap.singleEntityType])d={},I=(d[P]={maximumDownloadQuality:(C=V)!=null?C:void 0},d);return z.yield(QJ3(y,W),3);case 3:L=z.yieldResult;if(L!=="DOWNLOAD_STATE_USER_DELETED"){z.jumpTo(4);break}return z.yield(y.deleteVideo(W),4);case 4:return z.yield(F.queueOfflineAction(W,y.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",I),0)}})};
yOd=function(y,W,V,w,t){return _.g(function(F){return F.nextAddress==1?F.yield(y.deleteVideo(W,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):F.yield(Znu(y,W,V,w,t),0)})};
WHC=function(y,W,V){var w,t;return _.g(function(F){if(F.nextAddress==1)return F.yield(y.JSC$18130_playerApiPromise,2);w=F.yieldResult;t=_.qK(W,"mainVideoDownloadStateEntity");return F.yield(w.updateDownloadState(t,V),0)})};
rYW=function(y){var W=_.hs().resolve(_.K0);return _.g(function(V){if(V.nextAddress==1)return W.previousDownloadStateForVideo[y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?V.jumpTo(2):V.yield(W.resumeVideoDownload(y),2);if(V.nextAddress!=4)return V.yield(WHC(W,y,W.previousDownloadStateForVideo[y]),4);delete W.previousDownloadStateForVideo[y];_.B7(V)})};
a8E=function(y,W){var V;return _.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$18130_playerApiPromise,2);V=w.yieldResult;return w.yield(V.queueOfflineAction(W,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
ncu=function(){var y=_.hs().resolve(_.K0),W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$18130_playerApiPromise,2);if(w.nextAddress!=3)return W=w.yieldResult,V={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},w.yield(W.queueOfflineAction("!*$_ALL_ENTITIES_!*$",y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),3);var t=y.JSC$18130_commandHandler,F=t.resolveCommand,I=_.u5("DELETING_ALL",void 0,"Downloads are being deleted");
F.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.oB(I)}},popupType:"TOAST"}});_.B7(w)})};
VyP=function(y,W){var V,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return C.yield(y.JSC$18130_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return V=C.yieldResult,V?C.yield(One(V,_.n2,"downloadsPageViewConfigurationEntity"),3):(_.rQ(new _.Js("PES is undefined")),C.return());t=(w=C.yieldResult)!=null?w:{};P=(I=(F=t)==null?void 0:F.downloadsUpsellBannerVisibility)!=null?I:{};return P.visibleWithConnection?C.yield(W.refreshAllStaleEntities(0),0):C.jumpTo(0)})};
weP=function(y){var W,V;return _.g(function(w){if(w.nextAddress==1)return w.yield(y.JSC$18130_prefStorage,2);W=w.yieldResult;return w.return((V=W)==null?void 0:V.get("sdois"))})};
tyE=function(y){var W,V,w,t,F,I;return _.g(function(P){if(P.nextAddress==1)return P.yield(y.JSC$18130_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3){W=P.yieldResult;if(!W)return _.rQ(new _.Js("PES is undefined")),P.return();V=_.qK("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return P.yield(One(W,V,"settingEntity"),3)}w=P.yieldResult;return P.return((I=(t=w)==null?void 0:(F=t.settingOptionValue)==null?void 0:F.boolValue)!=null?I:!1)})};
FH3=function(y,W){var V,w,t,F;return _.g(function(I){switch(I.nextAddress){case 1:return((V=W)==null?void 0:V.formatType)===void 0?I.return():I.yield(y.JSC$18130_prefStorage,2);case 2:w=I.yieldResult;if(w===void 0)return I.return();if(((t=W)==null?void 0:t.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return I.yield(w.set("lmqf",W.formatType),8);if(((F=W)==null?void 0:F.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){I.jumpTo(0);break}return I.yield(w.set("lmqf",W.formatType),
6);case 6:return I.yield(w.set("lmqflst",Math.floor((0,_.cU)())),0);case 8:return I.yield(w.remove("lmqflst"),0)}})};
E9j=function(y){var W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(y.JSC$18130_prefStorage,2);case 2:W=w.yieldResult;if(!W){w.jumpTo(3);break}return w.yield(W.get("lmqflst"),4);case 4:if(V=w.yieldResult,V!==void 0)return w.return(V);case 3:return w.return(0)}})};
N7C=function(y){var W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(y.JSC$18130_prefStorage,2);case 2:W=w.yieldResult;if(W===void 0){w.jumpTo(3);break}return w.yield(W.get("lmqf"),4);case 4:if(V=w.yieldResult,V!==void 0)return w.return(V);case 3:return w.return("SD")}})};
tlq=function(y,W,V){var w,t,F,I,P,C,d,L;_.g(function(z){switch(z.nextAddress){case 1:return z.yield(FH3(y,(w=W)==null?void 0:w.actionParams),2);case 2:t=W.playlistId;if(!t)return z.return();if(W.action==="ACTION_ADD")return((I=W.actionParams)==null?0:I.formatType)?z.yield(bnE(y,t,W.actionParams.formatType,(L=W.actionParams)==null?void 0:L.settingsAction,V),0):z.yield(y.offlineWebClientEligibility,14);if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var c=y.JSC$18130_commandHandler,K=c.resolveCommand,f=
_.yC("INNERTUBE_CLIENT_NAME");var U=f==="WEB_REMIX"?_.u5("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.u5("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var l=f==="WEB_REMIX"?[_.u5("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];f=f==="WEB_REMIX"?_.u5("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.u5("DELETE",void 0,"Delete");var x=_.u5("CANCEL",void 0,"Cancel");U=FJ3(U,l,f,x,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:t});
K.call(c,{openPopupAction:U});return z.return()}if(W.action==="ACTION_REMOVE")return z.yield(a8E(y,t),0);if(W.action!=="ACTION_SYNC"){z.jumpTo(0);break}return z.yield(y.JSC$18130_playerApiPromise,9);case 9:return F=z.yieldResult,z.yield(F.queueOfflineAction(t,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return P=z.yieldResult,z.yield(N7C(y),15);case 15:return C=z.yieldResult,z.yield(E9j(y),16);case 16:d=z.yieldResult,W.onAddCommand&&y.JSC$18130_commandHandler.resolveCommand(W.onAddCommand,
{form:{preferredFormatType:C,offlineWebClientEligibility:P,lastOfflineQualitySettingsSavedMs:d.toString()}}),z.jumpTo(0)}})};
VlP=function(y,W,V){var w,t,F,I,P,C,d,L,z,c,K,f,U,l;_.g(function(x){switch(x.nextAddress){case 1:return x.yield(FH3(y,(w=W)==null?void 0:w.actionParams),2);case 2:t=W.videoId;if(!t)return x.return();if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var B=y.JSC$18130_commandHandler,r=B.resolveCommand,H=_.yC("INNERTUBE_CLIENT_NAME");var a=H==="WEB_REMIX"?_.u5("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.u5("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var b=H==="WEB_REMIX"?[_.u5("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];H=H==="WEB_REMIX"?_.u5("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.u5("DELETE",void 0,"Delete");var Fv=_.u5("CANCEL",void 0,"Cancel");a=FJ3(a,b,H,Fv,{signal:"DELETE_DOWNLOAD",targetId:t});r.call(B,{openPopupAction:a});return x.return()}if(W.action==="ACTION_ADD")return((c=W.actionParams)==null?0:c.formatType)?x.yield(Znu(y,t,W.actionParams.formatType,(l=W.actionParams)==null?void 0:l.settingsAction,V),0):x.yield(y.offlineWebClientEligibility,
23);if(W.action==="ACTION_RETRY")return x.yield(N7C(y),19);if(W.action==="ACTION_PAUSE")return x.yield(y.pauseVideoDownload(t),0);if(W.action==="ACTION_RESUME")return x.yield(y.resumeVideoDownload(t),0);if(W.action!=="ACTION_REMOVE"){x.jumpTo(0);break}return x.yield(QJ3(y,t),13);case 13:return F=x.yieldResult,y.previousDownloadStateForVideo[t]=(I=F)!=null?I:"DOWNLOAD_STATE_UNKNOWN",x.yield(WHC(y,t,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(y.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
y.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){x.jumpTo(15);break}return x.yield(y.pauseVideoDownload(t),15);case 15:B=_.u5("DELETED_VIDEO",void 0,"Video deleted from downloads.");r=_.u5("UNDO_ACTION",void 0,"Undo");a=_.u5("CLOSE",void 0,"Close");P={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.oB(B),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.oB(r),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:B+" "+r}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:a}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};y.JSC$18130_commandHandler.resolveCommand(P);
x.jumpTo(0);break;case 19:C=x.yieldResult;C==="UNKNOWN_FORMAT_TYPE"&&(C="SD");d="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((L=W.actionParams)==null?0:L.formatType)C=W.actionParams.formatType,d=(z=W.actionParams)==null?void 0:z.settingsAction;return x.yield(yOd(y,t,C,d,V),20);case 20:return x.return();case 23:return K=x.yieldResult,x.yield(N7C(y),24);case 24:return f=x.yieldResult,x.yield(E9j(y),25);case 25:U=x.yieldResult,W.onAddCommand&&y.JSC$18130_commandHandler.resolveCommand(W.onAddCommand,
{form:{preferredFormatType:f,offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:U.toString()}}),x.jumpTo(0)}})};
I6d=function(y,W){var V,w,t,F,I,P,C;return _.g(function(d){if(d.nextAddress==1)return d.yield(y.JSC$18130_persistentStorePromiseAccessor(),2);V=d.yieldResult;if(!V)return _.rQ(new _.Js("PES is undefined")),d.return();if((w=W)==null||!w.settingItemId)return d.return();t=W;F=t.settingItemId;I=t.boolValue;P=_.qK(F,"settingEntity");C={key:P,settingOptionValue:{boolValue:I}};return d.yield(C8j(V,C),0)})};
g9m=function(y,W){var V,w,t,F,I,P,C;return _.g(function(d){switch(d.nextAddress){case 1:return d.yield(y.JSC$18130_prefStorage,2);case 2:return V=d.yieldResult,w=_.l5(),d.yield(y.JSC$18130_persistentStorePromiseAccessor(),3);case 3:return t=d.yieldResult,V?t?d.yield(V.get("sdois"),4):(_.rQ(new _.Js("PES is undefined")),d.return()):(_.rQ(new _.Js("prefStorage is undefined")),d.return());case 4:F=d.yieldResult;P=(I=W)==null?void 0:I.boolValue;P===void 0||_.e("kevlar_set_sd_enabled_flag_killswitch")||
_.xF(0,197,!0);F===void 0&&P===void 0&&(P=!1);if(P===void 0){d.jumpTo(0);break}return d.yield(V.set("sdois",P),6);case 6:return _.e("kevlar_set_sd_enabled_flag_killswitch")||(_.xF(0,196,P),w.save()),C={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:P},d.yield(I6d(y,C),0)}})};
P0e=function(y,W,V){var w,t,F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:return C.yield(weP(y),2);case 2:return w=C.yieldResult,C.yield(g9m(y,V),3);case 3:return C.yield(weP(y),4);case 4:return t=C.yieldResult,F=t!==w,C.yield(tyE(y),5);case 5:I=C.yieldResult&&!_.e("kevlar_modern_downloads_page");if((P=!t&&!I)||F)return C.yield(W.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);C.jumpTo(0)}})};
QUd=function(){var y=_.hs().resolve(_.K0),W;_.g(function(V){switch(V.nextAddress){case 1:return V.yield(y.JSC$18130_playerApiPromise,2);case 2:W=V.yieldResult;if(!_.e("kevlar_force_refresh_smart_downloads")){V.jumpTo(3);break}return V.yield(W.refreshAllStaleEntities(0),4);case 4:return V.return();case 3:return V.yield(W.refreshAllStaleEntities(),5);case 5:return V.yield(P0e(y,W),6);case 6:if(_.e("enable_download_pep_for_premium_countries_web"))return V.yield(VyP(y,W),0);V.jumpTo(0)}})};
ESu=function(y,W){var V,w;_.g(function(t){switch(t.nextAddress){case 1:return t.yield(y.JSC$18130_playerApiPromise,2);case 2:V=t.yieldResult;switch((w=W)==null?void 0:w.settingItemId){case "SMART_DOWNLOADS_ENABLED":return t.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return t.jumpTo(4)}t.jumpTo(0);break;case 3:return t.yield(P0e(y,V,W),6);case 6:t.jumpTo(0);break;case 4:return t.yield(I6d(y,W),7);case 7:t.jumpTo(0)}})};
C0t=function(y,W){var V,w,t;return _.g(function(F){if(F.nextAddress==1)return F.yield(y.JSC$18130_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3){V=F.yieldResult;if(!V)return _.rQ(new _.Js("PES is undefined")),F.return(!1);if(!W)return F.return(!1);w=_.qK(W,"mainVideoEntity");return F.yield(One(V,w,"mainVideoEntity"),3)}t=F.yieldResult;return F.return(t!==void 0)})};
IQq=function(y){var W=_.hs().resolve(_.K0),V,w,t,F,I,P,C,d,L,z,c;_.g(function(K){switch(K.nextAddress){case 1:return K.yield(W.JSC$18130_playerApiPromise,2);case 2:V=K.yieldResult;t=(w=y)==null?void 0:w.actions;if(!t)return K.return();F=_.N(t);I=F.next();case 3:if(I.done){K.jumpTo(0);break}P=I.value;d=C=void 0;if(!(((C=P)==null?0:C.entityKey)&&((d=P)==null?0:d.actionType))){K.jumpTo(4);break}L=_.T4(P.entityKey);z=L.entityId;c=L.entityType;return K.yield(V.queueOfflineAction(z,c,P.actionType),4);case 4:I=
F.next(),K.jumpTo(3)}})};
Ovu=function(y,W){var V,w,t,F,I;return _.g(function(P){if(P.nextAddress==1)return P.yield(y.JSC$18130_prefStorage,2);if(P.nextAddress!=3)return(V=P.yieldResult)?P.yield(V.get("psi"),3):P.return();w=P.yieldResult;I={isPaused:W,lastSyncTimestamp:(F=(t=w)==null?void 0:t.lastSyncTimestamp)!=null?F:"0"};return P.yield(V.set("psi",I),0)})};
CFd=function(y){var W=_.hs().resolve(_.K0),V,w,t,F,I,P,C,d;return _.g(function(L){switch(L.nextAddress){case 1:return L.yield(W.JSC$18130_playerApiPromise,2);case 2:V=L.yieldResult;t=((w=y)==null?void 0:w.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((P=y)==null?void 0:P.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":F="!*$_ALL_ENTITIES_!*$";I="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return L.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return L.jumpTo(4)}L.jumpTo(5);break;case 3:return L.yield(Ovu(W,t),6);case 6:L.jumpTo(5);break;case 4:return L.yield(C0t(W,(C=y)==null?void 0:C.videoId),7);case 7:L.yieldResult&&(F=(d=y)==null?void 0:d.videoId,I="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");L.jumpTo(5);break;case 5:if(F&&I)return L.yield(V.queueOfflineAction(F,"videoPlaybackPositionEntity",I),0);L.jumpTo(0)}})};
v9E=function(y,W){var V;W!==1||((V=y.currentPersistentToast)==null?0:V.isOpened())?y.openToast():y.currentPersistentToast=void 0};
dUW=function(y,W){var V;return(V=y.transitionTasksMap.get(W))!=null?V:[]};
LHW=function(y,W){var V=[];y.elementTasksMap.forEach(function(w){(w=w.get(W))&&V.push(w)});
return V};
z7P=function(y,W,V,w){w=w===void 0?{}:w;var t=y.defaultViewTransitionOptions;return Object.assign({},t,w,{beforeTransition:function(){V.forEach(function(C){C.beforeTransition()});
var F;(F=t.beforeTransition)==null||F.call(t);var I,P;(P=(I=w).beforeTransition)==null||P.call(I);W.forEach(function(C){C.beforeTransition()})},
afterTransition:function(){V.forEach(function(C){C.afterTransition()});
var F;(F=t.afterTransition)==null||F.call(t);var I,P;(P=(I=w).afterTransition)==null||P.call(I);W.forEach(function(C){C.afterTransition()})}})};
cO3=function(y,W,V){y.transitionTasksMap.has(W)?y.transitionTasksMap.get(W).push(V):(y=new _.Js("Transition task registered for unknown transition type",W),_.ap(y))};
e7j=function(y,W,V){if(y.transitionTasksMap.has(W)){var w=y.transitionTasksMap.get(W).filter(function(t){return t!==V});
y.transitionTasksMap.set(W,w)}};
h7E=function(y,W){var V=dUW(y,W);V=_.N(V);for(var w=V.next();!w.done;w=V.next())w=w.value,w.runOnce&&e7j(y,W,w);y.elementTasksMap.forEach(function(t,F){t.forEach(function(I,P){I.runOnce&&W===P&&(t.delete(P),t.size===0&&y.elementTasksMap.delete(F))})})};
o9u=function(y,W,V){var w,t,F,I,P,C,d,L,z;_.g(function(c){if(c.nextAddress==1){if(y.config.disableAllTransitions)return c.return(W());if((w=V)==null||!w.transitionType)return c.return(_.hpC(W,(t=V)==null?void 0:t.viewTransitionOptions));F=V;I=F.transitionType;P=F.viewTransitionOptions;C=y.config.transitionConfigs.get(I);if(!C)return c.return(W());d=dUW(y,I);L=LHW(y,I);z=_.hpC(W,z7P(C,d,L,P));return c.yield(z,2)}h7E(y,I);_.B7(c)})};
KHC=function(){var y,W,V,w;return _.g(function(t){if(t.nextAddress==1)return y=navigator,(W=y.storage)!=null&&W.persisted?t.yield((V=y.storage)==null?void 0:V.persisted(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");w=t.yieldResult;return t.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
peP=function(){var y,W,V,w;return _.g(function(t){if(t.nextAddress==1)return y=navigator,(W=y.storage)!=null&&W.persist?t.yield((V=y.storage)==null?void 0:V.persist(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");w=t.yieldResult;return t.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
ivq=function(){var y,W;return _.g(function(V){switch(V.nextAddress){case 1:return y="PERSISTED_STATE_NOT_SUPPORTED",_.l7(V,2),V.yield(KHC(),4);case 4:y=V.yieldResult;if(y!=="PERSISTED_STATE_NOT_GRANTED"){V.jumpTo(5);break}return V.yield(peP(),6);case 6:y=V.yieldResult;case 5:_.E6(V,3);break;case 2:W=_.YX(V),W instanceof Error&&_.ap(W);case 3:return _.Hp("persistentStorageStateChecked",{persistedState:y}),V.return(y)}})};
f6j=function(y,W){var V=[],w=!1;W=_.N(W);for(var t=W.next();!t.done;t=W.next()){t=y.moduleRegistry[t.value];var F=void 0,I=void 0;((F=t)==null?0:F.isFetching)&&((I=t)==null?0:I.resolver)?(V.push(t.resolver.promise),w=!0):(t=new _.UT,t.resolve(void 0),V.push(t.promise))}return w?Promise.all(V):void 0};
vAu=function(y,W){if(y.isAnyTransitionEnabled){var V={};y.viewTransitionCoordinator.registerElement(W,(V.slide="miniplayer-page-transition",V["lockup-to-watch"]="miniplayer-page-transition",V["learning-journey"]="miniplayer-page-transition",V))}};
T7j=function(y,W,V){if(y.isAnyTransitionEnabled){var w={beforeTransition:function(){V(!0);W.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){W.style.viewTransitionName&&(W.style.viewTransitionName="",V(!1))}};
cO3(y.viewTransitionCoordinator,"slide",w);cO3(y.viewTransitionCoordinator,"lockup-to-watch",w);cO3(y.viewTransitionCoordinator,"watch-next-appears",w);cO3(y.viewTransitionCoordinator,"learning-journey",w)}};
mU3=function(y,W){y.isBrowseTransitionEnabled?o9u(y.viewTransitionCoordinator,W,{transitionType:"slide"}):(W(),Promise.resolve())};
Myt=function(y,W){y.isLockupToWatchTransitionEnabled?o9u(y.viewTransitionCoordinator,W,{transitionType:"lockup-to-watch"}):(W(),Promise.resolve())};
qZe=function(y,W){y.isLockupToWatchTransitionEnabled?o9u(y.viewTransitionCoordinator,W,{transitionType:"watch-next-appears"}):(W(),Promise.resolve())};
UUj=function(y,W){y.isLearningJourneyTransitionEnabled?o9u(y.viewTransitionCoordinator,W,{transitionType:"learning-journey"}):(W(),Promise.resolve())};
uWW=function(y,W,V){if(y.isInitialized()){var w=My(V),t=w==="watch";w=w==="shorts";var F=My(W)==="watch";if(t)F||(y.backgroundPageData=W),y.watchPipMode&&F||y.deactivate(V.endpoint);else if(w){if(My(W)!=="shorts"){var I;(I=y.getPlayerElement())==null||I.pause()}}else F&&!y.watchPipMode&&(NS4(W,V)?(y.watchWhileMode&&_.Kb3(y,!1),_.Lb3(y,W)):y.isMiniplayerActive()&&y.watchWhileMode&&y.deactivate());F&&_.izC(y);y.shortsPipMode&&!w&&(window.focus(),y.deactivate());if(y.pictureInPictureEnabled())if(w&&
y.shortsPipEnabled||t&&y.watchPipEnabled)_.f_n(y.handleMediaSessionPipActivation);else if(!y.isMiniplayerActive()&&(y.shortsPipEnabled||y.watchPipEnabled)&&window.documentPictureInPicture&&_.S4()&&_.Cna("Chromium")>=120){y=_.ifR().mediaSession;try{y.setActionHandler("enterpictureinpicture",null)}catch(P){}}}};
SZ3=function(y,W){var V,w;_.g(function(t){if(t.nextAddress==1){if(!y||!y.navigationEndpoint)return t.return();_.s8().lockupActivation=!0;var F;W?F=_.CO(_.u5("QUEUE",void 0,"Queue")):F=y.longBylineText;w=(V=F)&&y.title?{miniplayerTitle:y.title,miniplayerSubtitle:V,playlistData:null}:void 0;return t.yield(_.NnA(_.hs().resolve(_.VH),y.navigationEndpoint,!0,w),2)}_.s8().userActivation=!0;_.B7(t)})};
EAv=function(y,W){var V,w,t,F,I,P;_.g(function(C){if(C.nextAddress==1){V=_.h(W,_.HwR);if(!V||!V.listId)return C.return();y.index=V.index||y.index||0;w=y.response&&y.response.playingVideoId||void 0;return C.yield(_.i92(y.JSC$12782_playlistNetworkManager,V.listId,y.index,w),2)}t=C.yieldResult;if(!t)return C.return();F=t.playlistId;I=t.playlistPanelRenderer;!y.queueProxy&&F&&I&&F.startsWith("TLPQ")&&(y.queueProxy=new _.yo(y.JSC$12782_playlistNetworkManager,F,y.setPlaylistData.bind(y),y.clearQueue.bind(y),
_.JZu(I),y.storage));if(V.openMiniplayer&&(P=_.Rj4(I))&&!y.pageManager.isOnWatch()){var d=P,L=V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";y.isMiniplayerActive()?y.openToast(d):SZ3(d,L)}y.setPlaylistData(F,I,t.autoplayRenderer);_.B7(C)})};
wWu=function(y,W){var V=_.Ib();V.index===void 0&&(V.index=0);V.temporaryItems.push.apply(V.temporaryItems,_.GC(y));if((W.videoId||W.videoIds)&&V.index!==void 0&&W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!V.queueProxy){var w=[];if(V.response){var t=_.hs().resolve(_.VH).isMiniplayerActive();if(V.response.playlistPanelRenderer&&V.response.playlistId&&!V.response.playlistId.startsWith("TLPQ")){if(V.pageManager.isOnWatch()||t)w=_.JZu(V.response.playlistPanelRenderer)}else V.response.playingVideoId&&
!W.openMiniplayer?w.push(V.response.playingVideoId):t&&V.response.playingVideoId&&W.openMiniplayer&&w.push(V.response.playingVideoId)}V.queueProxy=new _.yo(V.JSC$12782_playlistNetworkManager,"",V.setPlaylistData.bind(V),V.clearQueue.bind(V),w,V.storage);V.queueProxy.JSC$12728_setCurrentIndex(V.index)}V.queueProxy.addVideos(W.videoIds||[W.videoId],W)}LGq(V,y);V.response&&_.gd(V,_.PP(V,V.response.autoplayRenderer));V.pageManager.isOnWatch()?V.isMiniplayerActive()&&V.openToast(y[0]):(y=y[0],W=W.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",V.isMiniplayerActive()?V.openToast(y):SZ3(y,W))};
DUm=function(y){var W=_.Le(y);if(W=="object"||W=="array"){if(typeof y.clone==="function")return y.clone();if(typeof Map!=="undefined"&&y instanceof Map)return new Map(y);if(typeof Set!=="undefined"&&y instanceof Set)return new Set(y);W=W=="array"?[]:{};for(var V in y)W[V]=DUm(y[V]);return W}return y};
YD=function(y,W){return _.rvv(_.ke(y,W,void 0,_.xe))};
BI=function(y,W){return _.mC(_.ke(y,W,void 0,_.xe))};
Jh=function(y,W){return _.cA4(_.ke(y,W,void 0,_.xe))};
RH=function(y,W){return _.ke(y,W,void 0,_.xe,_.atd)};
l6v=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;_.M5(W,V,_.w4(y.decoder_,_.E3));return!0},_.u_,_.N_);
xUu=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.w4(y.decoder_,_.E3));return!0},_.u_,_.N_);
krd=_.mh(function(y,W,V){if(y.nextWireType_!==1)return!1;var w=y.decoder_;y=_.Fh(w);w=_.Fh(w);y=_.tm(y,w);_.M5(W,V,y);return!0},_.vRz,_.smn);
stt=_.mh(function(y,W,V){if(y.nextWireType_!==5)return!1;_.M5(W,V,_.Fh(y.decoder_));return!0},function(y,W,V){W=_.Zdu(W);
W!=null&&(_.q5(y,V,5),_.Ux(y.encoder_,W))},_.ksa);
AO4=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;y=_.zHv(y.decoder_);_.M5(W,V,y===!1?void 0:y);return!0},_.d5z,_.SLj);
YZq=_.mh(function(y,W,V){if(y.nextWireType_!==2)return!1;y=_.pbb(y);_.M5(W,V,y===""?void 0:y);return!0},_.z1d,_.DSa);
B7j=_.mh(function(y,W,V){if(y.nextWireType_!==2)return!1;y=_.iCu(y);_.M5(W,V,y===_.JA()?void 0:y);return!0},_.e1R,_.Bsd);
JO3=_.thb(function(y,W,V){if(y.nextWireType_!==0&&y.nextWireType_!==2)return!1;W=_.vEv(W,W[_.UE]|0,V);y.nextWireType_==2?_.fy4(y,jdt,W):W.push(_.t$(y.decoder_));return!0},function(y,W,V){W=_.wZR(_.mC,W,!0);
if(W!=null&&W.length){V=_.MPz(y,V);for(var w=0;w<W.length;w++)_.P_v(y.encoder_,W[w]);_.q3y(y,V)}},_.JJt);
R7P=_.mh(function(y,W,V){if(y.nextWireType_!==0)return!1;y=_.t$(y.decoder_);_.M5(W,V,y===0?void 0:y);return!0},_.h1n,_.JJt);
jtu=_.mh(function(y,W,V,w){if(y.nextWireType_!==0)return!1;_.BX(W,V,w,_.t$(y.decoder_));return!0},_.h1n,_.JJt);
_.oh=function(y){this.privateDoNotAccessOrElseWrappedStyleSheet=y};
_.oh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var zkP=function(y,W){return new _.bj(y.x+W.x,y.y+W.y)},$U4=function(y){return y.previousElementSibling!==void 0?y.previousElementSibling:_.Qsf(y.previousSibling,!1)},n93=function(y,W){var V=[];
for(W=W||0;W<y.length;W+=2)_.Jm2(y[W],y[W+1],V);return V.join("&")},Hvq=function(y,W){var V=arguments.length==2?n93(arguments[1],0):n93(arguments,1);
return _.BWK(y,V)},XNm=_.l_(_.yW),Xeu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Xeu,_.fu);Xeu.prototype.getTypeName=function(){return _.aX(this,1).split("/").pop()};
Xeu.prototype.getValue=function(){var y=_.ke(this,2);if(Array.isArray(y)||y instanceof _.fu)throw Error("da");return _.Ye(this,2)};
var xKq=function(){var y=_.Tw();this.JSC$9844_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.fa("channel_type"))};
xKq.prototype.increment=function(y){this.JSC$9844_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",y)};
var k4E=function(){var y=_.Tw();this.JSC$9847_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.fa("channel_type"))};
k4E.prototype.increment=function(y){this.JSC$9847_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",y)};
var AzC=function(){var y=_.Tw();this.JSC$9850_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.fa("channel_type"))};
AzC.prototype.increment=function(y){this.JSC$9850_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",y)};
var sBt=function(){var y=_.Tw();this.JSC$9853_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
sBt.prototype.increment=function(){this.JSC$9853_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var YBu=function(){var y=_.Tw();this.JSC$9856_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.fa("channel_type"),_.fa("error_type"))};
YBu.prototype.increment=function(y,W){this.JSC$9856_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",y,W)};
var B5C=function(){var y=_.Tw();this.JSC$9859_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
B5C.prototype.increment=function(){this.JSC$9859_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Jzv=function(){var y=_.Tw();this.JSC$9862_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Jzv.prototype.increment=function(){this.JSC$9862_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var u2d=function(){var y=_.Tw();this.JSC$9868_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
u2d.prototype.increment=function(){this.JSC$9868_streamzService.JSC$9712_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var a63=function(y){return y.getCount&&typeof y.getCount=="function"?y.getCount():_.bn(y)||typeof y==="string"?y.length:_.Gc.getCount(y)},Grq=function(y,W){if(typeof y.every=="function")return y.every(W,void 0);
if(_.bn(y)||typeof y==="string")return Array.prototype.every.call(y,W,void 0);for(var V=_.$1s(y),w=_.LH(y),t=w.length,F=0;F<t;F++)if(!W.call(void 0,w[F],V&&V[F],y))return!1;return!0},rOj=function(y,W,V,w){var t=new _.gw(null);
y&&_.zF(t,y);W&&_.cY(t,W);V&&_.eb(t,V);w&&_.oP(t,w);return t},bvu=function(){var y=_.yi&&_.Ld(_.t1Q,10)>=0,W;
if(W=_.ucR)W=_.Ld(_.wUi,10)>=0;var V=_.S6&&_.Ld(_.t1Q,85)>=0;return _.MW||y||W||V},Qtj=function(y){var W=_.oEA(y);
return W&&bvu()?-y.scrollLeft:W&&_.V6(y,"overflowX")!="visible"?y.scrollWidth-y.clientWidth-y.scrollLeft:y.scrollLeft},Zvj=function(y,W){W=Math.max(W,0);
_.oEA(y)?bvu()?y.scrollLeft=-W:y.scrollLeft=y.scrollWidth-W-y.clientWidth:y.scrollLeft=W},plu=0,Miu=!1;
U7.prototype.set=function(y){this.relativeTimeStart_=y};
U7.prototype.reset=function(){this.set(_.KF())};
U7.prototype.get=function(){return this.relativeTimeStart_};
var yDe=null,Wa3=function(){yDe||(yDe=new U7)},V3u=function(){yDe||(yDe=new U7)};
_.pF(V3u,Wa3);_.E=UT3.prototype;_.E.JSC$11230_buffer_="";_.E.set=function(y){this.JSC$11230_buffer_=""+y};
_.E.append=function(y,W,V){this.JSC$11230_buffer_+=String(y);if(W!=null)for(var w=1;w<arguments.length;w++)this.JSC$11230_buffer_+=arguments[w];return this};
_.E.clear=function(){this.JSC$11230_buffer_=""};
_.E.getLength=function(){return this.JSC$11230_buffer_.length};
_.E.toString=function(){return this.JSC$11230_buffer_};
var wmW=function(){var y={type:"unit",style:"narrow"};this.listType_=y&&y.type?y.type:"conjunction";this.listStyle_=y&&y.style?y.style:"long";this.listSymbols_=b5e;y=0;switch(this.listStyle_){case "short":y=1;break;case "narrow":y=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[y];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[y];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[y];this.listEndPattern_=
this.listSymbols_.AND_END[y];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[y];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[y];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[y];this.listEndPattern_=this.listSymbols_.OR_END[y];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[y],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[y],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[y],this.listEndPattern_=this.listSymbols_.UNIT_END[y]}};
wmW.prototype.format=function(y){return t3v(this,y)};
var t3v=function(y,W){var V=W.length;switch(V){case 0:return"";case 1:return String(W[0]);case 2:return y.listTwoPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1]))}for(var w=y.listStartPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1])),t=2;t<V-1;++t)w=y.listMiddlePattern_.replace("{0}",w).replace("{1}",String(W[t]));return y.listEndPattern_.replace("{0}",w).replace("{1}",String(W[V-1]))},H7u=function(){var y={style:1};
this.style_=(y==null?void 0:y.style)||0;this.durationSymbols_=_.rjK||_.JcR},Fa4=function(y,W){switch(W){default:case "years":return y.durationSymbols_.YEAR;
case "months":return y.durationSymbols_.MONTH;case "weeks":return y.durationSymbols_.WEEK;case "days":return y.durationSymbols_.DAY;case "hours":return y.durationSymbols_.HOUR;case "minutes":return y.durationSymbols_.MINUTE;case "seconds":return y.durationSymbols_.SECOND}},jq=function(y,W,V){a:{V=Fa4(y,V);
switch(y.style_){case 1:if(V.LONG!=void 0){y=V.LONG;break a}case 2:if(V.NARROW!=void 0){y=V.NARROW;break a}default:y=V.SHORT;break a}y=void 0}return y?(new _.gcq("{DURATION_VALUE,plural,"+y+"}")).format({DURATION_VALUE:W}):""};
H7u.prototype.format=function(y){var W=[],V=y.years,w=y.months,t=y.weeks,F=y.days,I=y.hours,P=y.minutes;y=y.seconds;V!=null&&W.push(jq(this,V,"years"));w!=null&&W.push(jq(this,w,"months"));t!=null&&W.push(jq(this,t,"weeks"));F!=null&&W.push(jq(this,F,"days"));I!=null&&W.push(jq(this,I,"hours"));P!=null&&W.push(jq(this,P,"minutes"));y!=null&&W.push(jq(this,y,"seconds"));return(new wmW).format(W)};
var EUC=!1,s0W=function(y){_.yj.call(this,y.message||y.description||y.name);this.isMissing=y instanceof uG;this.isTimeout=y instanceof _.eR&&y.errorCode=="net.timeout";this.isCanceled=y instanceof _.Fu};
_.p(s0W,_.yj);s0W.prototype.name="BiscottiError";var uG=function(){_.yj.call(this,"Biscotti ID is missing from server")};
_.p(uG,_.yj);uG.prototype.name="BiscottiMissingError";var SR=null,rxE=function(){try{var y=_.ts("yt.ads.biscotti.getId_");return y?y():LJ4()}catch(W){return _.Gb(W)}},nkW,Nxt=function(y,W){return _.ig({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:y,command:W}})},IE4=function(y){return _.ig({type:"SET_GUIDE_IS_EXPANDED",
payload:y})},gUW=function(y){return _.ig({type:"SET_ONLINE_STATUS",
payload:y})},Pwt=function(y,W){return _.ig({type:"SET_TRANSCRIPTION_STATE",
payload:{high:y,low:W}})},CwP=function(y){return _.ig({type:"SET_OVERLAY_STATE",
payload:y})},OVt=0,vUq=function(y,W,V){var w=this;
this.priority=W;this.delay=V;this.jobId=0;this.completionCallback=_.A$;this.wrappedJob=function(){y();w.completionCallback()};
this.id=++OVt};
vUq.prototype.enqueue=function(y){this.completionCallback=y;this.jobId=_.HU.addJob(this.wrappedJob,this.priority,this.delay)};
var $D=function(){_.Ko.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.p($D,_.Ko);$D.prototype.addJob=function(y,W,V){y=new vUq(y,W,V);this.taskIdToTask.set(y.id,y);this.isActive?dEE(this,y):this.suspendedTasks.add(y);return y.id};
var dEE=function(y,W){y.scheduledTasks.add(W);W.enqueue(function(){y.scheduledTasks.delete(W)})};
$D.prototype.cancelJob=function(y){(y=this.taskIdToTask.get(y))&&(this.scheduledTasks.delete(y)?_.HU.cancelJob(y.jobId):this.suspendedTasks.delete(y))};
$D.prototype.pause=function(){var y=this;this.isActive=!1;this.scheduledTasks.forEach(function(W){_.HU.cancelJob(W.jobId);y.suspendedTasks.add(W)});
this.scheduledTasks.clear()};
$D.prototype.start=function(){var y=this;this.isActive=!0;this.suspendedTasks.forEach(function(W){dEE(y,W)});
this.suspendedTasks.clear()};
$D.prototype.reset=function(){this.scheduledTasks.forEach(function(y){_.HU.cancelJob(y.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var nX=function(y,W){this.JSC$12911_networkService_=y;this.pageRequestPromise=W};
nX.prototype.fetchData=function(y){Lat(this,this.JSC$12911_networkService_.fetchData(y))};
nX.prototype.postData=function(y,W){Lat(this,this.JSC$12911_networkService_.postData(y,W))};
nX.prototype.requestDataForServiceEndpoint=function(y,W){Lat(this,this.JSC$12911_networkService_.requestDataForServiceEndpoint(y,W))};
var Lat=function(y,W){W.then(y.pageRequestPromise.onSuccess,y.pageRequestPromise.onFailure,y.pageRequestPromise)};
nX.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var HI=function(y){this.buildNetworkRequest_=y;this.pendingRequests_=new Set};
HI.prototype.reset=function(){this.pendingRequests_.forEach(function(y){y.cancel()});
this.pendingRequests_.clear()};
HI.prototype.fetchData=function(y){var W=zTu(this);W.fetchData(y);return W.pageRequestPromise};
HI.prototype.postData=function(y,W){var V=zTu(this);V.postData(y,W);return V.pageRequestPromise};
HI.prototype.requestDataForServiceEndpoint=function(y,W){var V=zTu(this);V.requestDataForServiceEndpoint(y,W);return V.pageRequestPromise};
var zTu=function(y){var W=y.buildNetworkRequest_();y.pendingRequests_.add(W);var V=function(){y.pendingRequests_.delete(W)};
W.pageRequestPromise.then(V,V);return W},cD3=function(y){var W=new $D;
this.JSC$12918_networkService_=y;this.JSC$12918_taskManager_=W;this.JSC$12918_networkManager_=new HI(this.networkRequestFactory_.bind(this))};
_.E=cD3.prototype;_.E.networkRequestFactory_=function(){return new nX(this.JSC$12918_networkService_,new _.ii(this.JSC$12918_taskManager_))};
_.E.reset=function(){this.JSC$12918_taskManager_.reset();this.JSC$12918_networkManager_.reset()};
_.E.start=function(){this.JSC$12918_taskManager_.start()};
_.E.pause=function(){this.JSC$12918_taskManager_.pause()};
_.E.getTaskManager=function(){return this.JSC$12918_taskManager_};
_.E.getNetworkManager=function(){return this.JSC$12918_networkManager_};
var b7u=null,y83=[],DW=0,xM=0,lG=null,eTj=!1,kM=null,VKW=void 0,hTC=function(){var y=(0,_.s_J)();y&&Z5v(y,y.mechanism.__iterator__(!0))},Aw=function(y){this.token=y};
Aw.getInstance=function(){var y;return _.g(function(W){if(W.nextAddress==1)return W.yield(_.LA(),2);y=W.yieldResult;if(!y)return W.return();Aw.instance||(Aw.instance=new Aw(y));return W.return(Aw.instance)})};
var IAj=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(FNt(y.token),2);W=V.yieldResult;return V.return(W.clear("resource-manifest-assets"))})},s7=function(y){this.token=y};
s7.getInstance=function(){var y;return _.g(function(W){if(W.nextAddress==1)return W.yield(_.LA(),2);y=W.yieldResult;if(!y)return W.return();s7.instance||(s7.instance=new s7(y));return W.return(s7.instance)})};
var EyE=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(FNt(y.token),2);W=V.yieldResult;return V.yield(W.clear("auth"),0)})},q0j=!1,oUu=function(y){_.yj.call(this,y)};
_.p(oUu,_.OTR);var KaE="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(" ");wNE()&&KaE.push("details:not(:has(summary))");var FRu=KaE.join(",");var mov=function(){var y=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return y?parseInt(y[1],10):0},pmj=function(y){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+y)!=-1||document.currentScript.src.indexOf("&"+y)!=-1)},iVE=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},STW=function(y){y.length?fEC(y.shift(),function(){STW(y)}):qTC()},lPv=function(y){return"chrome-extension://"+y+"/cast_sender.js"},fEC=function(y,
W,V){var w=document.createElement("script");
w.onerror=W;V&&(w.onload=V);_.zC(w,_.na(y));(document.head||document.documentElement).appendChild(w)},Txe=function(){var y=mov(),W=[];
if(y>1){var V=y-1;W.push("//www.gstatic.com/eureka/clank/"+y+"/cast_sender.js");W.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js")}return W},qTC=function(){var y=iVE();
y&&y(!1,"No cast extension found")},u4j=function(){if(mE3){var y=2,W=iVE(),V=function(){y--;
y==0&&W&&W(!0)};
window.__onGCastApiAvailable=V;fEC("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",qTC,V)}},MW3=function(){u4j();
var y=Txe();y.push("//www.gstatic.com/eureka/clank/cast_sender.js");STW(y)},Uou=function(){u4j();
var y=Txe();y.push.apply(y,_.GC(DoE.map(lPv)));y.push("//www.gstatic.com/eureka/clank/cast_sender.js");STW(y)},mE3=pmj("loadCastFramework")||pmj("loadCastApplicationFramework"),DoE=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var M3t=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(M3t,_.fu);var qpv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(qpv,_.fu);var UE3=function(){var y=new qpv;return _.W8(y,1,3)};var Xi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Xi,_.fu);var MMW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(MMW,_.fu);var uuj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(uuj,_.fu);uuj.prototype.getToken=function(){return _.aX(this,1)};
uuj.prototype.setToken=function(y){return _.Pm(this,1,y)};
var Twu=function(y){return _.PZ(y,3,_.Jm,_.hG())},m8e=function(y){return _.PZ(y,6,_.Jm,_.hG())};var aH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(aH,_.fu);aH.prototype.getToken=function(){return _.Da(this,uuj,2)};
aH.prototype.setToken=function(y){return _.sx(this,2,y)};
aH.prototype.getName=function(){return _.aX(this,6)};
var Spu=_.l_(aH);var DEt=function(y,W,V){this.requestMessage=y;this.methodDescriptor=W;this.metadata=V};
DEt.prototype.getMetadata=function(){return this.metadata};var lEj=function(y,W){W=W===void 0?{}:W;this.responseMessage=y;this.metadata=W;this.status=null};
lEj.prototype.getMetadata=function(){return this.metadata};
lEj.prototype.getStatus=function(){return this.status};var GV=function(y,W,V,w,t){this.name=y;this.methodType="unary";this.requestType=W;this.responseType=V;this.requestSerializeFn=w;this.responseDeserializeFn=t},xE3=function(y,W,V){V=V===void 0?{}:V;
return new DEt(W,y,V)};
GV.prototype.getName=function(){return this.name};var rv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(rv,_.fu);rv.prototype.getHeader=function(){return _.Da(this,Xi,1)};
rv.prototype.setHeader=function(y){return _.sx(this,1,y)};
rv.prototype.hasHeader=function(){return _.sX(this,Xi,1)};var kSu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(kSu,_.fu);var sDm=new GV("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",rv,kSu,function(y){return y.serialize()},_.l_(kSu));var be=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(be,_.fu);be.prototype.getHeader=function(){return _.Da(this,Xi,1)};
be.prototype.setHeader=function(y){return _.sx(this,1,y)};
be.prototype.hasHeader=function(){return _.sX(this,Xi,1)};var ADv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ADv,_.fu);var Yp3=new GV("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",be,ADv,function(y){return y.serialize()},_.l_(ADv));var QX=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(QX,_.fu);QX.prototype.getHeader=function(){return _.Da(this,Xi,1)};
QX.prototype.setHeader=function(y){return _.sx(this,1,y)};
QX.prototype.hasHeader=function(){return _.sX(this,Xi,1)};var BxP=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(BxP,_.fu);BxP.prototype.getLink=function(){return _.Da(this,aH,1)};var JDP=new GV("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",QX,BxP,function(y){return y.serialize()},_.l_(BxP));var ZL=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ZL,_.fu);ZL.prototype.getHeader=function(){return _.Da(this,Xi,1)};
ZL.prototype.setHeader=function(y){return _.sx(this,1,y)};
ZL.prototype.hasHeader=function(){return _.sX(this,Xi,1)};var RTj=new GV("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",ZL,aH,function(y){return y.serialize()},Spu);var jDE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(jDE,_.fu);var $Ee=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p($Ee,_.fu);$Ee.prototype.getUrl=function(){return _.aX(this,2)};
$Ee.prototype.setUrl=function(y){return _.Pm(this,2,y)};var nU3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(nU3,_.fu);var HVt=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(HVt,_.fu);var Xme=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Xme,_.fu);var Yn4=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Yn4,_.fu);var A1q=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(A1q,_.fu);var aE3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(aE3,_.fu);var Hgd=_.l_(aE3);var GS3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(GS3,_.fu);var rDd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(rDd,_.fu);_.E=rDd.prototype;_.E.getHeader=function(){return _.Da(this,Xi,1)};
_.E.setHeader=function(y){return _.sx(this,1,y)};
_.E.hasHeader=function(){return _.sX(this,Xi,1)};
_.E.getCompletionUrl=function(){return _.aX(this,6)};
_.E.getDeviceId=function(){return _.aX(this,11)};var bVu=new GV("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",rDd,aE3,function(y){return y.serialize()},Hgd);var QDC=new Set(["SAPISIDHASH","APISIDHASH"]);var ZVm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ZVm,_.fu);ZVm.prototype.getMessage=function(){return _.aX(this,2)};
var ydj=_.l_(ZVm);var Wr=function(y,W){this.xhrNodeReadableStream_=y.nodeReadableStream;this.grpcResponseDeserializeFn_=W;this.JSC$19081_xhr_=y.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19081_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&WUd(this)},NKt=function(y,W){var V=new V6W;
_.XZ(y.JSC$19081_xhr_,"complete",function(){if(y.JSC$19081_xhr_.isSuccess()){var w=y.JSC$19081_xhr_.getResponseText();var t;if(t=W)t=y.JSC$19081_xhr_,t.JSC$9721_xhr_&&t.isComplete()?(t=t.JSC$9721_xhr_.getResponseHeader("Content-Type"),t=t===null?void 0:t):t=void 0,t=t==="text/plain";if(t){if(!atob)throw Error("Wj");w=atob(w)}try{var F=y.grpcResponseDeserializeFn_(w)}catch(P){Vt(y,OgE(new _.Hg(13,"Error when deserializing response data; error: "+P+(", response: "+w)),V));return}w=_.xVv(y.JSC$19081_xhr_.getStatus());
wX4(y,t6v(y));w==0?FUu(y,F):Vt(y,OgE(new _.Hg(w,"Xhr succeeded but the status code is not 200"),V))}else{w=y.JSC$19081_xhr_.getResponseText();F=t6v(y);if(w){var I=Eem(y,w);w=I.code;t=I.details;I=I.metadata}else w=2,t="Rpc failed due to xhr error. uri: "+String(y.JSC$19081_xhr_.JSC$9721_lastUri_)+", error code: "+y.JSC$19081_xhr_.JSC$9721_lastErrorCode_+", error: "+y.JSC$19081_xhr_.getLastError(),I=F;wX4(y,F);Vt(y,OgE(new _.Hg(w,t,I),V))}})},WUd=function(y){y.xhrNodeReadableStream_.on("data",function(W){if("1"in
W){var V=W["1"];
try{var w=y.grpcResponseDeserializeFn_(V)}catch(t){Vt(y,new _.Hg(13,"Error when deserializing response data; error: "+t+(", response: "+V)))}w&&FUu(y,w)}if("2"in W)for(W=Eem(y,W["2"]),V=0;V<y.onStatusCallbacks_.length;V++)y.onStatusCallbacks_[V](W)});
y.xhrNodeReadableStream_.on("end",function(){wX4(y,t6v(y));for(var W=0;W<y.onEndCallbacks_.length;W++)y.onEndCallbacks_[W]()});
y.xhrNodeReadableStream_.on("error",function(){if(y.JSC$19081_onErrorCallbacks_.length!=0){var W=y.JSC$19081_xhr_.JSC$9721_lastErrorCode_;W!==0||y.JSC$19081_xhr_.isSuccess()||(W=6);var V=-1;switch(W){case 0:var w=2;break;case 7:w=10;break;case 8:w=4;break;case 6:V=y.JSC$19081_xhr_.getStatus();w=_.xVv(V);break;default:w=14}wX4(y,t6v(y));W=_.KbE(W)+", error: "+y.JSC$19081_xhr_.getLastError();V!=-1&&(W+=", http status code: "+V);Vt(y,new _.Hg(w,W))}})},t6v=function(y){var W={},V=aQC(y.JSC$19081_xhr_);
Object.keys(V).forEach(function(w){W[w]=V[w]});
return W},Eem=function(y,W){var V=2,w={};
try{var t=ydj(W);V=_.Ka(t,1);var F=t.getMessage();_.eA(t,Xeu,3,_.hG()).length&&(w["grpc-web-status-details-bin"]=W)}catch(I){y.JSC$19081_xhr_&&y.JSC$19081_xhr_.getStatus()===404?(V=5,F="Not Found: "+String(y.JSC$19081_xhr_.JSC$9721_lastUri_)):(V=14,F="Unable to parse RpcStatus: "+I)}return{code:V,details:F,metadata:w}};
Wr.prototype.on=function(y,W){y=="data"?this.onDataCallbacks_.push(W):y=="metadata"?this.onMetadataCallbacks_.push(W):y=="status"?this.onStatusCallbacks_.push(W):y=="end"?this.onEndCallbacks_.push(W):y=="error"&&this.JSC$19081_onErrorCallbacks_.push(W);return this};
var wb=function(y,W){W=y.indexOf(W);W>-1&&y.splice(W,1)};
Wr.prototype.removeListener=function(y,W){y=="data"?wb(this.onDataCallbacks_,W):y=="metadata"?wb(this.onMetadataCallbacks_,W):y=="status"?wb(this.onStatusCallbacks_,W):y=="end"?wb(this.onEndCallbacks_,W):y=="error"&&wb(this.JSC$19081_onErrorCallbacks_,W);return this};
Wr.prototype.cancel=function(){this.JSC$19081_xhr_.abort()};
var FUu=function(y,W){for(var V=0;V<y.onDataCallbacks_.length;V++)y.onDataCallbacks_[V](W)},wX4=function(y,W){for(var V=0;V<y.onMetadataCallbacks_.length;V++)y.onMetadataCallbacks_[V](W)},Vt=function(y,W){for(var V=0;V<y.JSC$19081_onErrorCallbacks_.length;V++)y.JSC$19081_onErrorCallbacks_[V](W)};
Wr.prototype.cancel=Wr.prototype.cancel;Wr.prototype.removeListener=Wr.prototype.removeListener;Wr.prototype.on=Wr.prototype.on;var V6W=function(){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.p(V6W,Error);var tT=function(y){this.JSC$19090_worker_=y.worker||null;this.JSC$19090_streamBinaryChunks_=y.streamBinaryChunks||!1;this.JSC$19090_credentialsMode_=void 0};
_.pF(tT,_.s8u);tT.prototype.createInstance=function(){var y=new F3(this.JSC$19090_worker_,this.JSC$19090_streamBinaryChunks_);this.JSC$19090_credentialsMode_&&y.setCredentialsMode(this.JSC$19090_credentialsMode_);return y};
tT.prototype.setCredentialsMode=function(y){this.JSC$19090_credentialsMode_=y};
var F3=function(y,W){_.Bg.call(this);this.JSC$19094_worker_=y;this.JSC$19094_streamBinaryChunks_=W;this.JSC$19094_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$19094_responseHeaders_=null;this.JSC$19094_method_="GET";this.JSC$19094_url_="";this.inProgress_=!1;this.JSC$19094_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.pF(F3,_.Bg);F3.prototype.open=function(y,W){if(this.readyState!=0)throw this.abort(),Error("Xj");this.JSC$19094_method_=y;this.JSC$19094_url_=W;this.readyState=1;EC(this)};
F3.prototype.send=function(y){if(this.readyState!=1)throw this.abort(),Error("Yj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Zj");this.inProgress_=!0;var W={headers:this.requestHeaders_,method:this.JSC$19094_method_,credentials:this.JSC$19094_credentialsMode_,cache:void 0,signal:this.abortController_.signal};y&&(W.body=y);(this.JSC$19094_worker_||_.Vj).fetch(new Request(this.JSC$19094_url_,W)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
F3.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,N0(this));this.readyState=0};
F3.prototype.handleResponse_=function(y){if(this.inProgress_&&(this.fetchResponse_=y,this.JSC$19094_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19094_responseHeaders_=y.headers,this.readyState=2,EC(this)),this.inProgress_&&(this.readyState=3,EC(this),this.inProgress_)))if(this.responseType==="arraybuffer")y.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Vj.ReadableStream!==
"undefined"&&"body"in y){this.currentReader_=y.body.getReader();if(this.JSC$19094_streamBinaryChunks_){if(this.responseType)throw Error("$j");this.response=[]}else this.response=this.responseText="",this.JSC$19094_textDecoder_=new TextDecoder;ITe(this)}else y.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var ITe=function(y){y.currentReader_.read().then(y.handleDataFromStream_.bind(y)).catch(y.handleSendFailure_.bind(y))};
F3.prototype.handleDataFromStream_=function(y){if(this.inProgress_){if(this.JSC$19094_streamBinaryChunks_&&y.value)this.response.push(y.value);else if(!this.JSC$19094_streamBinaryChunks_){var W=y.value?y.value:new Uint8Array(0);if(W=this.JSC$19094_textDecoder_.decode(W,{stream:!y.done}))this.response=this.responseText+=W}y.done?N0(this):EC(this);this.readyState==3&&ITe(this)}};
F3.prototype.handleResponseText_=function(y){this.inProgress_&&(this.response=this.responseText=y,N0(this))};
F3.prototype.handleResponseArrayBuffer_=function(y){this.inProgress_&&(this.response=y,N0(this))};
F3.prototype.handleSendFailure_=function(){this.inProgress_&&N0(this)};
var N0=function(y){y.readyState=4;y.fetchResponse_=null;y.currentReader_=null;y.JSC$19094_textDecoder_=null;EC(y)};
F3.prototype.setRequestHeader=function(y,W){this.requestHeaders_.append(y,W)};
F3.prototype.getResponseHeader=function(y){return this.JSC$19094_responseHeaders_?this.JSC$19094_responseHeaders_.get(y.toLowerCase())||"":""};
F3.prototype.getAllResponseHeaders=function(){if(!this.JSC$19094_responseHeaders_)return"";for(var y=[],W=this.JSC$19094_responseHeaders_.entries(),V=W.next();!V.done;)V=V.value,y.push(V[0]+": "+V[1]),V=W.next();return y.join("\r\n")};
F3.prototype.setCredentialsMode=function(y){this.JSC$19094_credentialsMode_=y};
var EC=function(y){y.onreadystatechange&&y.onreadystatechange.call(y)};
Object.defineProperty(F3.prototype,"withCredentials",{get:function(){return this.JSC$19094_credentialsMode_==="include"},
set:function(y){this.setCredentialsMode(y?"include":"same-origin")}});var gej=function(y){var W="";_.Gc.forEach(y,function(V,w){W+=w;W+=":";W+=V;W+="\r\n"});
return W},PPq=function(y,W,V){if(_.Gc.isEmpty(V))return y;
V=gej(V);if(typeof y==="string")return _.NI(y,_.E1(W),V);_.If(y,W,V);return y};var CP3=function(){this.isInputValid_=!0;this.JSC$19099_streamPos_=0;this.leftoverInput_=""};
CP3.prototype.isInputValid=function(){return this.isInputValid_};
CP3.prototype.decode=function(y){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ak`"+this.JSC$19099_streamPos_+"`stream already broken`"+y);this.leftoverInput_+=y;y=Math.floor(this.leftoverInput_.length/4);if(y==0)return null;try{var W=_.HZv(this.leftoverInput_.slice(0,y*4))}catch(V){throw W=this.leftoverInput_,y=V.message,this.isInputValid_=!1,Error("ak`"+this.JSC$19099_streamPos_+"`"+y+"`"+W);}this.JSC$19099_streamPos_+=y*4;this.leftoverInput_=this.leftoverInput_.slice(y*4);return W};var Jw=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19102_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Jw.prototype.isInputValid=function(){return this.state_!=3};
var Ir=function(y,W,V,w){y.state_=3;y.errorMessage_="The stream is broken @"+y.JSC$19102_streamPos_+"/"+V+". Error: "+w+". With input:\n"+W;throw Error(y.errorMessage_);};
Jw.prototype.acceptsBinaryInput=function(){return!0};
Jw.prototype.parse=function(y){function W(C){C&128&&Ir(F,I,P,"invalid tag");(C&7)!=2&&Ir(F,I,P,"invalid wire type");F.tag_=C>>>3;F.tag_!=1&&F.tag_!=2&&F.tag_!=15&&Ir(F,I,P,"unexpected tag");F.state_=1;F.length_=0;F.countLengthBytes_=0}
function V(C){F.countLengthBytes_++;F.countLengthBytes_==5&&C&240&&Ir(F,I,P,"message length too long");F.length_|=(C&127)<<(F.countLengthBytes_-1)*7;C&128||(F.state_=2,F.countMessageBytes_=0,typeof Uint8Array!=="undefined"?F.messageBuffer_=new Uint8Array(F.length_):F.messageBuffer_=Array(F.length_),F.length_==0&&t())}
function w(C){F.messageBuffer_[F.countMessageBytes_++]=C;F.countMessageBytes_==F.length_&&t()}
function t(){if(F.tag_<15){var C={};C[F.tag_]=F.messageBuffer_;F.result_.push(C)}F.state_=0}
for(var F=this,I=y instanceof Array?y:new Uint8Array(y),P=0;P<I.length;){switch(F.state_){case 3:Ir(F,I,P,"stream already broken");break;case 0:W(I[P]);break;case 1:V(I[P]);break;case 2:w(I[P]);break;default:throw Error("bk`"+F.state_);}F.JSC$19102_streamPos_++;P++}y=F.result_;F.result_=[];return y.length>0?y:null};var d8m=function(){this.errorMessage_=null;this.JSC$19105_streamPos_=0;this.base64Decoder_=new CP3;this.pbParser_=new Jw};
d8m.prototype.isInputValid=function(){return this.errorMessage_===null};
var OFv=function(y,W,V){y.errorMessage_="The stream is broken @"+y.JSC$19105_streamPos_+". Error: "+V+". With input:\n"+W;throw Error(y.errorMessage_);};
d8m.prototype.acceptsBinaryInput=function(){return!1};
d8m.prototype.parse=function(y){this.errorMessage_!==null&&OFv(this,y,"stream already broken");var W=null;try{var V=this.base64Decoder_.decode(y);W=V===null?null:this.pbParser_.parse(V)}catch(w){OFv(this,y,w.message)}this.JSC$19105_streamPos_+=y.length;return W};var vF4=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19108_streamPos_=0;this.result_=[];this.statusParsed_=!1};
vF4.prototype.isInputValid=function(){return this.errorMessage_===null};
vF4.prototype.acceptsBinaryInput=function(){return!1};
vF4.prototype.parse=function(y){function W(C){F.state_=6;F.errorMessage_="The stream is broken @"+F.JSC$19108_streamPos_+"/"+I+". Error: "+C+". With input:\n";throw Error(F.errorMessage_);}
function V(){F.jsonStreamParser_=new _.f8({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function w(C){if(C)for(var d=0;d<C.length;d++){var L={};L[1]=C[d];F.result_.push(L)}}
function t(C){if(C){(F.statusParsed_||C.length>1)&&W("extra status: "+C);F.statusParsed_=!0;var d={};d[2]=C[0];F.result_.push(d)}}
for(var F=this,I=0;I<y.length;){var P;if(P=F.state_!==2){a:{for(;I<y.length;){if(!_.id(y[I])){P=!0;break a}I++;F.JSC$19108_streamPos_++}P=!1}P=!P}if(P)return null;switch(F.state_){case 6:W("stream already broken");break;case 0:y[I]==="["?(F.state_=1,I++,F.JSC$19108_streamPos_++):W("unexpected input token");break;case 1:y[I]==="["?(F.state_=2,V()):y[I]===","||y.slice(I,I+5)=="null,"?F.state_=3:y[I]==="]"?(F.state_=5,I++,F.JSC$19108_streamPos_++):W("unexpected input token");break;case 2:P=F.jsonStreamParser_.parse(y.substring(I));
w(P);F.jsonStreamParser_.done()?(F.state_=3,P=F.jsonStreamParser_.JSC$11357_buffer_,F.JSC$19108_streamPos_+=y.length-I-P.length,y=P,I=0):(F.JSC$19108_streamPos_+=y.length-I,I=y.length);break;case 3:y[I]===","||y.slice(I,I+5)=="null,"?(F.state_=4,V(),F.jsonStreamParser_.parse("["),I+=y[I]===","?1:5,F.JSC$19108_streamPos_++):y[I]==="]"&&(F.state_=5,I++,F.JSC$19108_streamPos_++);break;case 4:P=F.jsonStreamParser_.parse(y.substring(I));t(P);F.jsonStreamParser_.done()?(F.state_=5,P=F.jsonStreamParser_.JSC$11357_buffer_,
F.JSC$19108_streamPos_+=y.length-I-P.length,y=P,I=0):(F.JSC$19108_streamPos_+=y.length-I,I=y.length);break;case 5:W("extra input after stream end")}}return F.result_.length>0?(y=F.result_,F.result_=[],y):null};var veu=function(y){this.JSC$19111_xhr_=y;this.JSC$19111_parser_=null;this.status_=this.JSC$19111_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19111_textDecoder_=null;this.JSC$19111_eventHandler_=new _.eK(this);this.JSC$19111_eventHandler_.listen(this.JSC$19111_xhr_,"readystatechange",this.JSC$19113_readyStateChangeHandler_)},gb=function(y,W){y.status_!=W&&(y.status_=W,y.statusHandler_&&y.statusHandler_())},Pr=function(y){y.JSC$19111_eventHandler_.removeAll();
if(y.JSC$19111_xhr_){var W=y.JSC$19111_xhr_;y.JSC$19111_xhr_=null;W.abort();W.dispose()}};
veu.prototype.getStatus=function(){return this.status_};
veu.prototype.JSC$19113_readyStateChangeHandler_=function(y){y=y.target;try{if(y==this.JSC$19111_xhr_)a:{var W=_.G0(this.JSC$19111_xhr_),V=this.JSC$19111_xhr_.JSC$9721_lastErrorCode_,w=this.JSC$19111_xhr_.getStatus(),t=this.JSC$19111_xhr_.getResponseText();y=[];if(this.JSC$19111_xhr_.getResponse()instanceof Array){var F=this.JSC$19111_xhr_.getResponse();F.length>0&&F[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,y=F)}if(!(W<3||W==3&&!t&&y.length==0))if(w=w==200||w==206,W==4&&(V==8?gb(this,
7):V==7?gb(this,8):w||gb(this,3)),this.JSC$19111_parser_||(this.JSC$19111_parser_=LRE(this.JSC$19111_xhr_),this.JSC$19111_parser_==null&&gb(this,5)),this.status_>2)Pr(this);else{if(y.length>this.JSC$19111_pos_){var I=y.length;V=[];try{if(this.JSC$19111_parser_.acceptsBinaryInput())for(var P=0;P<I;P++){var C=this.JSC$19111_parser_.parse(Array.from(y[P]));C&&(V=V.concat(C))}else{C="";if(!this.JSC$19111_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ck");this.JSC$19111_textDecoder_=new TextDecoder}for(P=
0;P<I;P++)C+=this.JSC$19111_textDecoder_.decode(y[P],{stream:W==4&&P==I-1});V=this.JSC$19111_parser_.parse(C)}y.splice(0,I);V&&this.dataHandler_(V)}catch(L){gb(this,5);Pr(this);break a}}else if(t.length>this.JSC$19111_pos_){P=t.slice(this.JSC$19111_pos_);this.JSC$19111_pos_=t.length;try{var d=this.JSC$19111_parser_.parse(P);d!=null&&this.dataHandler_&&this.dataHandler_(d)}catch(L){gb(this,5);Pr(this);break a}}W==4?(t.length!=0||this.hasStreamingResponseData_?gb(this,2):gb(this,4),Pr(this)):gb(this,
1)}}}catch(L){gb(this,6),Pr(this)}};var dW4=function(y){y=this.xhrReader_=y;var W=(0,_.jA)(this.onData_,this);y.dataHandler_=W;y=this.xhrReader_;W=(0,_.jA)(this.onStatusChange_,this);y.statusHandler_=W;this.JSC$19115_callbackMap_={};this.callbackOnceMap_={}};
_.E=dW4.prototype;_.E.on=function(y,W){var V=this.JSC$19115_callbackMap_[y];V||(V=[],this.JSC$19115_callbackMap_[y]=V);V.push(W);return this};
_.E.addListener=function(y,W){this.on(y,W);return this};
_.E.removeListener=function(y,W){var V=this.JSC$19115_callbackMap_[y];V&&_.GG(V,W);(y=this.callbackOnceMap_[y])&&_.GG(y,W);return this};
_.E.once=function(y,W){var V=this.callbackOnceMap_[y];V||(V=[],this.callbackOnceMap_[y]=V);V.push(W);return this};
_.E.onData_=function(y){var W=this.JSC$19115_callbackMap_.data;W&&LUW(y,W);(W=this.callbackOnceMap_.data)&&LUW(y,W);this.callbackOnceMap_.data=[]};
var LUW=function(y,W){for(var V={},w=0;w<y.length;V={message$jscomp$1001:void 0},w++)V.message$jscomp$1001=y[w],W.forEach(function(t){return function(F){try{F(t.message$jscomp$1001)}catch(I){}}}(V))};
dW4.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:zlW(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zlW(this,"error");break;case 8:zlW(this,"close");break;case 2:zlW(this,"end")}};
var zlW=function(y,W){var V=y.JSC$19115_callbackMap_[W];V&&V.forEach(function(w){try{w()}catch(t){}});
(V=y.callbackOnceMap_[W])&&V.forEach(function(w){w()});
y.callbackOnceMap_[W]=[]};var cdt=function(){var y={format:"jspb"};y=y===void 0?{}:y;this.suppressCorsPreflight=y.suppressCorsPreflight||_.ts("suppressCorsPreflight",y)||!1;this.withCredentials=y.withCredentials||_.ts("withCredentials",y)||!1;this.streamInterceptors=y.streamInterceptors||[];this.unaryInterceptors=y.unaryInterceptors||[];this.workerScope=y.workerScope;this.chunkedServerStreaming=y.useFetchDownloadStreams||!1},oee=function(y,W,V,w,t,F){F=F===void 0?{}:F;
var I=W.substring(0,W.length-t.name.length),P,C=(P=F)==null?void 0:P.signal;return elu(function(d){return new Promise(function(L,z){if(C==null?0:C.aborted){var c=new _.Hg(1,"Aborted");c.cause=C.reason;z(c)}else{var K={},f=hlm(y,d,I);f.on("error",function(U){return void z(U)});
f.on("metadata",function(U){K=U});
f.on("data",function(U){var l=K;l=l===void 0?{}:l;L(new lEj(U,l))});
C&&C.addEventListener("abort",function(){f.cancel();var U=new _.Hg(1,"Aborted");U.cause=C.reason;z(U)})}})},y.unaryInterceptors).call(y,xE3(t,V,w)).then(function(d){return d.responseMessage})},CQ=function(y,W,V,w,t,F){F=F===void 0?{}:F;
return oee(y,W,V,w,t,F)};
cdt.prototype.serverStreaming=function(y,W,V,w){var t=this,F=y.substring(0,y.length-w.name.length);return KUv(function(I){var P=I.methodDescriptor,C=I.getMetadata(),d=pXW(t,!1);C=iFP(t,C,d,F+P.getName());var L=fTe(d,P.responseDeserializeFn,!0);I=P.requestSerializeFn(I.requestMessage);d.send(C,"POST",I);return L},this.streamInterceptors).call(this,xE3(w,W,V))};
var hlm=function(y,W,V){var w=W.methodDescriptor,t=W.getMetadata(),F=pXW(y,!0);y=iFP(y,t,F,V+w.getName());V=fTe(F,w.responseDeserializeFn,!1);NKt(V,t["X-Goog-Encode-Response-If-Executable"]==="base64");W=w.requestSerializeFn(W.requestMessage);F.send(y,"POST",W);return V},pXW=function(y,W){W=y.chunkedServerStreaming&&!W;
return y.workerScope||W?new _.ay(new tT({worker:y.workerScope,streamBinaryChunks:W})):new _.ay},iFP=function(y,W,V,w){W["Content-Type"]="application/json+protobuf";
W["X-User-Agent"]="grpc-web-javascript/0.1";var t=W.Authorization;if(t&&QDC.has(t.split(" ")[0])||y.withCredentials)V.JSC$9721_withCredentials_=!0;if(y.suppressCorsPreflight)w=PPq(w,"$httpHeaders",W);else for(y=_.N(Object.keys(W)),t=y.next();!t.done;t=y.next())t=t.value,V.headers.set(t,W[t]);return w},fTe=function(y,W,V){if(V){V=new veu(y);
var w=new dW4(V)}return new Wr({xhr:y,nodeReadableStream:w},W)},KUv=function(y,W){return W.reduce(function(V,w){return function(t){return w.intercept(t,V)}},y)},elu=function(y,W){return W.reduce(function(V,w){return function(t){return w.intercept(t,V)}},y)};var TK3=function(y){this.client_=new cdt;this.hostname_=y==void 0?y:y.replace(/\/+$/,"")};
_.E=TK3.prototype;_.E.JSC$19133_depositGoogleCredential=function(y,W,V){return CQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",y,W||{},Yp3,V)};
_.E.deleteLink=function(y,W,V){return CQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",y,W||{},sDm,V)};
_.E.JSC$19133_finishOAuth=function(y,W,V){return CQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",y,W||{},JDP,V)};
_.E.getLink=function(y,W,V){return CQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",y,W||{},RTj,V)};
_.E.startLinkingSession=function(y,W,V){return CQ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",y,W||{},bVu,V)};var mWu=[0,AO4,1,JO3,[0,_.Ov,[0,YZq,-1]],[0,B7j],[0,R7P,-1]];var M6P=function(){this.storage=new Map},UWj=function(y,W,V,w,t){if(!y.storage.has(W))return null;
y=_.N(y.storage.get(W));for(W=y.next();!W.done;W=y.next())if(W=W.value,!t||W.linkName===t)if(V&&W.scopes&&qXC(W.scopes,V)||w&&W.capabilities&&qXC(W.capabilities,w))return W;return null},u_e=function(y,W,V){if(!V)y.storage.delete(W);
else if(y.storage.has(W)){var w=y.storage.get(W).filter(function(t){return t.linkName!==V});
w.length>0?y.storage.set(W,w):y.storage.delete(W)}},qXC=function(y,W){W=_.N(W);
for(var V=W.next();!V.done;V=W.next())if(!y.has(V.value))return!1;return!0};var SX3=function(){var y=_.yC("LINK_GAL_DOMAIN");this.alsDomain1p=_.yC("LINK_GAL_DOMAIN");this.alsDomain3p=y;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},DWj=function(y,W){y.apiKey=W;
return y};
SX3.prototype.build=function(){var y={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("dk");y.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("ek");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("fk");y.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(y.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)y.apiKey=
this.apiKey,y.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("gk");y.oauthToken=this.oauthToken;y.alsDomain=this.alsDomain3p}y.clientXd3=this.clientXd3;y.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(y.authUser=this.authUser);this.bucket!==void 0&&(y.bucket=this.bucket);this.completionUrl!==void 0&&(y.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(y.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(y.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(y.locale=this.locale);y.loggerType=this.loggerType;y.clientEnvironment=this.clientEnvironment;y.colorScheme=this.colorScheme;y.showCloseOption=this.showCloseOption;return y};var RM=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(RM,_.fu);var lTu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lTu,_.fu);var xWu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(xWu,_.fu);var $M=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p($M,_.fu);var kWq=function(y){return _.rK(y,1)};var sX3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(sX3,_.fu);var pNe=_.l_(sX3),jR=[1,2,3,4,5];var ez3=function(y){try{return pNe(y)}catch(W){return null}},AdP=function(){},hzu=function(y,W){switch(_.Jd(W,jR)){case 4:return(W=_.ZT(W,xWu,4,jR))&&y.logStateTransition(_.rK(W,1)),!0;
case 5:return(W=_.ZT(W,lTu,5,jR))&&y.logInternalEvent(_.rK(W,1)),!0}return!1},ige=function(y){switch(y){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.gW(y)}};var zzm=function(y,W){var V=this;this.validator=y;this.messageListener=W;this.dismissCallback=function(){YX4(V,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19162_receiveMessage=function(w){w.type==="message"&&(w=w.event_,w!==null&&(new URL(V.iframe.src)).origin===w.origin&&V.validator(w.data,w.origin)&&!V.messageListener(w.data)&&(V.JSC$19162_resolveCb!==void 0&&V.JSC$19162_resolveCb(w.data),BKv(V)))}},KRv=function(y,W,V){y.uiHandler!==void 0&&YX4(y,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(w,t){y.JSC$19162_resolveCb=w;y.JSC$19162_rejectCb=t;y.iframe=document.createElement("iframe");_.g$(y.iframe,W);y.uiHandler=V.displayContent(y.iframe,y.dismissCallback);_.XZ(window,"message",y.JSC$19162_receiveMessage,!1,y)})},YX4=function(y,W){y.JSC$19162_rejectCb!==void 0&&y.JSC$19162_rejectCb(W);
BKv(y)},BKv=function(y){y.uiHandler!==void 0&&y.uiHandler.hideContent();
_.Ys(window,"message",y.JSC$19162_receiveMessage,!1,y);y.JSC$19162_resolveCb=void 0;y.JSC$19162_rejectCb=void 0;y.uiHandler=void 0;y.iframe=void 0};var Jdj=function(y){if(y===2){var W;y=((W=window)==null?0:W.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return y},oFd=function(y){y=Jdj(y);
switch(y){case 0:return"light";case 1:return"dark";default:_.gW(y)}};var c1v=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Rlm=function(y,W){this.JSC$19174_linkingSession=y;this.noticeConfig=W;this.displayInfoMap=new Map;var V=new Map;if(_.sX(this.JSC$19174_linkingSession,nU3,7))for(y=_.Da(this.JSC$19174_linkingSession,nU3,7),y=_.eA(y,$Ee,1,_.hG()),y=_.N(y),W=y.next();!W.done;W=y.next())W=W.value,V.set(_.rK(W,1),_.Q8n(_.Da(W,_.bZz,3)));if(V.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){W=this.noticeConfig.enabledDataUsageNoticeUis;y=W.has(0)?V.get(1):void 0;W=W.has(1)?V.get(2):void 0;V=y!==void 0&&W!==void 0?V.get(3):void 0;var w=this.noticeConfig.nestedOrigins;var t=new sX3;var F=new RM;t=_.A_(t,2,jR,F);F=new sX3;var I=new RM;F=_.A_(F,3,jR,I);I=[];y!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:y,lastEvent:t,nestedOrigins:w}]),I.push({trustedUrl:y,lastEvent:t,nestedOrigins:w}));W!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:W,lastEvent:F,nestedOrigins:w}]),I.push({trustedUrl:W,lastEvent:F,nestedOrigins:w}));V!==void 0?this.displayInfoMap.set(3,[{trustedUrl:V,lastEvent:F,nestedOrigins:w}]):this.displayInfoMap.set(3,I)}};var jXv=function(y){var W=new M6P;this.galService=y;this.galCache=W};
jXv.prototype.getLink=function(y){var W=y.serviceId;var V=y.scopes;var w=y.capabilities;var t=y.linkName;var F=this,I;return _.g(function(P){if(w!==void 0&&V!==void 0)throw Error("hk");I=UWj(F.galCache,W,V,w,t);return I!==null?P.return(I):P.return(F.galService.getLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),scopes:V,capabilities:w,linkName:t}).then(function(C){C=qnm(C);var d=F.galCache;d.storage.has(W)?d.storage.get(W).push(C):d.storage.set(W,[C]);return C}))})};
jXv.prototype.deleteLink=function(y,W,V){var w=this;return _.g(function(t){u_e(w.galCache,y,V);return t.return(w.galService.deleteLink({serviceId:y,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:W,linkName:V}).then(function(){return!0}))})};var neC=function(y,W){var V=this;this.validator=y;this.msgHandler=W;this.closedPopupTimeout=this.JSC$19196_rejectCb=this.JSC$19196_resolveCb=this.popup=null;this.JSC$19196_receiveMessage=function(w){if(w!==null&&(w=w.event_,w.source===V.popup)){var t=w.data;if(V.validator(t,w.origin)){var F;(F=V.msgHandler)!=null&&F.call(V,t)||(V.JSC$19196_resolveCb!==null&&V.JSC$19196_resolveCb(t),$Wq(V))}}}};
neC.prototype.open=function(y,W){var V=this;this.popup!==null&&HFd(this);return new Promise(function(w,t){V.JSC$19196_resolveCb=w;V.JSC$19196_rejectCb=t;V.popup=_.P7(window,y,"",W);_.XZ(window,"message",V.JSC$19196_receiveMessage,!1,V);XXj(V)})};
var HFd=function(y,W){y.JSC$19196_rejectCb!==null&&y.JSC$19196_rejectCb(W);$Wq(y)},$Wq=function(y){y.closedPopupTimeout&&(y.closedPopupTimeout.cancel(),y.closedPopupTimeout=null);
y.popup&&y.popup.close();_.Ys(window,"message",y.JSC$19196_receiveMessage,!1,y);y.popup=null;y.JSC$19196_resolveCb=null;y.JSC$19196_rejectCb=null},XXj=function(y){y.closedPopupTimeout=_.zCE(100).then(function(){y.popup?y.popup.closed?aTE(y):XXj(y):HFd(y,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},aTE=function(y){y.closedPopupTimeout=_.zCE(100).then(function(){HFd(y,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var GWj=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),rdW=function(y,W,V,w,t,F,I,P,C,d){var L=this;this.serviceId=y;this.sessionId=W;this.galService=V;this.oauthDetails=w;this.galLogger=t;this.interactionMode=F;this.redirectServiceUrl=I;this.consentLanguageKeys=P;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=d;this.started=!1;this.JSC$19202_dataValidator=function(z,
c){var K=GWj.has(c);K||L.redirectServiceUrl===void 0||(K=L.redirectServiceUrl===c);return K?z.sentinel==="gdi":!1}};
rdW.prototype.complete=function(){var y=this,W;return _.g(function(V){if(y.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=Ho.getRedirectStateFromUri();return W===null?V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):V.return(bFu(y,W))})};
rdW.prototype.start=function(){var y=this,W;return _.g(function(V){if(y.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.aX(y.oauthDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(y.interactionMode===1)return Ho.setLocation(_.aX(y.oauthDetails,1)),V.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));y.started=!0;y.galLogger.logStateTransition(5);
W=Ho.getPostMessagePopup(y.JSC$19202_dataValidator);return V.return(W.open(_.aX(y.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(w){y.started=!1;var t=y.galLogger;if((w==null?void 0:w.error)!==void 0)throw t.logInternalEvent(59),Error("ik");if((w==null?void 0:w.redirect_state)===void 0)throw t.logInternalEvent(131),Error("jk");return bFu(y,w.redirect_state)}).catch(function(w){y.started=
!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var bFu=function(y,W){return _.g(function(V){return V.return(QXC(y.galService,{serviceId:y.serviceId,sessionId:y.sessionId,dynamicUrlParameters:y.dynamicUrlParameters,redirectState:W,consentLanguageKeys:y.consentLanguageKeys,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp}).then(function(w){var t={statusCode:1,link:qnm(w.getLink())};O7q(_.Ye(w,3))!==void 0&&(t.callerState=O7q(_.Ye(w,3)));y.galLogger.logInternalEvent(134);return t}))})},Ho={getPostMessagePopup:function(y){return new neC(y)},
getRedirectStateFromUri:function(){var y=_.Ey(Ho.getLocation()).fragment_;return(new _.fH(y)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(y){_.buj(window.location,_.ye(y))},
createOAuthFlow:function(y,W){return new rdW(y.serviceId,y.sessionId,y.galService,W,y.galLogger,y.interactionMode,y.redirectServiceUrl,y.consentLanguageKeys,y.dynamicUrlParameters,y.partnerConfigMinReadTimestamp)}};var ZFe=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(ZFe,_.fu);var y$u=_.l_(ZFe);var Wqt=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Vde=function(y,W,V,w,t,F,I,P,C){var d=this;this.serviceId=y;this.sessionId=W;this.galService=V;this.gsiWebFlowDetails=w;this.colorScheme=t;this.showCloseOption=F;this.galLogger=I;this.interactionMode=P;this.redirectServiceUrl=C;this.started=!1;this.JSC$19214_dataValidator=function(L,z){var c=Wqt.has(z);c||d.redirectServiceUrl===
void 0||(c=d.redirectServiceUrl===z);return c?L.sentinel==="gal":!1};
this.logEventProcessor=function(L){return L.result?(L=ez3(L.result))?hzu(d.galLogger,L):!1:!1}};
Vde.prototype.complete=function(){var y=this,W,V;return _.g(function(w){if(y.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=XA.getRedirectStateFromUri();if(W===void 0)return y.galLogger.JSC$19154_logErrorEvent(131),w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return V=w8v(y,W),w.return(tdu(y,V))}catch(t){return w.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Vde.prototype.start=function(){var y=this,W;return _.g(function(V){if(y.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.aX(y.gsiWebFlowDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(y.interactionMode===1)return XA.setLocation(Fq4(y,_.aX(y.gsiWebFlowDetails,1))),V.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
y.started=!0;W=XA.getPostMessagePopup(y.JSC$19214_dataValidator,y.logEventProcessor);return V.return(W.open(Fq4(y,_.aX(y.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(w){y.started=!1;if((w==null?void 0:w.result)===void 0)throw y.galLogger.JSC$19154_logErrorEvent(131),Error("jk");w=w8v(y,w.result);return tdu(y,w)}).catch(function(w){y.started=!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Fq4=function(y,W){y=["result_channel",y.interactionMode===1?"2":"1","color_scheme",oFd(y.colorScheme),"show_close_option",y.showCloseOption];return Hvq(W,y)},tdu=function(y,W){if(W!==null&&_.sX(W,$M,2)){var V,w=W==null?void 0:(V=_.Da(W,$M,2))==null?void 0:_.rK(V,2);
w&&y.galLogger.JSC$19154_logErrorEvent(ige(w));return kWq(_.Da(W,$M,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 y.galService.getLink({serviceId:y.serviceId,sessionId:y.sessionId,consistencyKey:_.aX(W,1)}).then(function(t){t=qnm(t);y.galLogger.logInternalEvent(134);return{statusCode:1,link:t}})},w8v=function(y,W){W=y$u(W);
if(!_.sX(W,$M,2)&&_.aX(W,1)==="")throw y.galLogger.JSC$19154_logErrorEvent(5),Error("kk");return W},XA={getPostMessagePopup:function(y,W){return new neC(y,W)},
getRedirectStateFromUri:function(){return _.N1(_.Ey(XA.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(y){_.buj(window.location,_.ye(y))},
createStreamlinedFlow:function(y,W){return new Vde(y.serviceId,y.sessionId,y.galService,W,y.colorScheme,y.showCloseOption,y.galLogger,y.interactionMode,y.redirectServiceUrl)}};var $8t=function(){var y=_.wEb("GAL");this.storage=y?new _.RA(y):null};
$8t.prototype.getSession=function(y){if(this.storage!==null)try{var W=this.storage.get("SAVED_SESSION");if(W===void 0)return null;if(W.serviceId===y)return W}catch(V){}return null};var OC=function(){};
_.p(OC,AdP);OC.prototype.logStateTransition=function(){};
OC.prototype.logInternalEvent=function(){};
OC.prototype.JSC$19154_logErrorEvent=function(){};var EWd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(EWd,_.fu);EWd.prototype.getCompletionUrl=function(){return _.aX(this,15)};var vr=function(y,W,V,w,t,F){this.serviceId=y;this.environment=W;this.sessionId=V;this.colorSchemeSelected=w;this.colorThemeDisplayed=t;this.JSC$19227_transport=F;this.currentState=1};
_.p(vr,AdP);vr.prototype.logStateTransition=function(y){var W=N4j(this);W=_.oV(W,3,this.currentState);W=_.oV(W,1,y);this.currentState=y;y=XaC(1);this.dispatch(W,y)};
vr.prototype.logInternalEvent=function(y){y=XaC(y);this.dispatch(N4j(this),y)};
vr.prototype.JSC$19154_logErrorEvent=function(y){var W=N4j(this);W=_.oV(W,1,10);y=XaC(y);this.dispatch(W,y)};
var N4j=function(y){var W=new EWd;W=_.oV(W,1,y.currentState);W=_.jD(W,7,y.serviceId);var V,w;var t=((V=window)==null?0:(w=V.location)==null?0:w.href)?_.Ey(window.location.href).JSC$9958_domain_:"NO_PACKAGE_NAME";V=_.jD(W,8,t);V=_.oV(V,6,y.environment);V=_.jD(V,5,"100");V=_.oV(V,11,y.colorSchemeSelected);return _.oV(V,12,y.colorThemeDisplayed)};
vr.prototype.dispatch=function(y,W){W===void 0&&(W=new _.MI);var V=W;y=y.serialize();V=_.jD(V,8,y);_.sg(V,12,this.sessionId);this.JSC$19227_transport.dispatch(W)};var IxE=function(y,W){this.loggerType=y;this.sessionIndex=W!=null?W:0},gWe;
IxE.prototype.create=function(y,W,V,w,t){switch(this.loggerType){case 0:return new OC;case 1:return gWe||(gWe=(new _.qR(555,this.sessionIndex.toString())).build()),new vr(y,W,V,w,t,gWe);default:_.gW(this.loggerType,"unknown logger type")}};var aM=[6,2,3,1],r1W=new Map([[4,1],[1,6],[2,2],[3,3]]),D8E={statusCode:7,statusMessage:"Failed to create flow object"},Rz3=function(y,W,V,w,t,F,I,P,C,d){this.serviceId=y;this.sessionId=W;this.config=V;this.galService=w;this.JSC$19234_linkingSession=t;this.googleScopes=F;this.callerState=I;this.consentLanguageKeys=P;this.dynamicUrlParameters=C;this.partnerConfigMinReadTimestamp=d;this.currentFlow=0;w=this.JSC$19234_linkingSession;t=new Set;_.sX(w,A1q,1)&&t.add(1);_.sX(w,Xme,2)&&_.sX(w,Yn4,6)&&t.add(2);
_.sX(w,HVt,3)&&_.sX(w,Yn4,6)&&t.add(3);_.sX(w,jDE,4)&&t.add(6);this.supportedFlows=t;w=V.loggerType;t=V.clientEnvironment;a:{F=V.colorScheme;switch(F){case 0:F=1;break a;case 1:F=2;break a;case 2:F=3;break a;default:_.gW(F)}F=void 0}a:{I=V.colorScheme;I=Jdj(I);switch(I){case 0:I=1;break a;case 1:I=2;break a;default:_.gW(I)}I=void 0}this.galLogger=(new IxE(w,V.authUser)).create(y,t,W,F,I)},CQv=function(y){return new Promise(function(W){var V,w,t,F,I,P,C,d,L,z;
return _.g(function(c){switch(c.nextAddress){case 1:V=Bwv(y.currentFlow,y.supportedFlows),w=!1,t=new Rlm(y.JSC$19234_linkingSession,y.config.dataUsageNoticeConfig);case 2:if(V===void 0){c.jumpTo(4);break}_.l7(c,5);var K=t,f=V,U=void 0;w?f===1&&(U=K.displayInfoMap.get(2)):f===2||f===3?U=K.displayInfoMap.get(1):f===1&&(U=K.displayInfoMap.get(3));F=U?U:[];I=y.consentLanguageKeys;P=_.N(F);C=P.next();case 7:if(C.done)return y.currentFlow=V,c.yield(x8u(PQW(y,I)),11);d=C.value;return c.yield(f2u(d,y.config.dataUsageNoticeConfig.uiAdapter,
y.config.colorScheme,y.galLogger),10);case 10:L=c.yieldResult;if(L.statusCode!==1)return nFC(y.serviceId),y.currentFlow=0,W(nP({statusCode:L.statusCode,statusMessage:L.statusMessage},y.callerState)),c.return();L.consentLanguageKeys!==void 0&&(I=L.consentLanguageKeys);C=P.next();c.jumpTo(7);break;case 11:z=c.yieldResult;if(z.statusCode!==10)return z.statusCode!==6&&(nFC(y.serviceId),y.currentFlow=0),z.statusCode!==1&&y.callerState!==void 0&&(z.callerState=y.callerState),W(z),c.return();_.E6(c,6);break;
case 5:_.YX(c);case 6:V=Bwv(y.currentFlow,y.supportedFlows);w=!0;c.jumpTo(2);break;case 4:nFC(y.serviceId),y.currentFlow=0,W(nP({statusCode:12,statusMessage:"Linking failed"},y.callerState)),_.B7(c)}})})},a2E=function(y,W,V){y.currentFlow=W;
return k23(PQW(y,V)).then(function(w){return w.statusCode===10&&y.config.interactionMode===1&&Bwv(y.currentFlow,y.supportedFlows)!==void 0?CQv(y):w})},PQW=function(y,W){return{flowParams:{serviceId:y.serviceId,
sessionId:y.sessionId,galService:y.galService,galLogger:y.galLogger,interactionMode:y.config.interactionMode,redirectServiceUrl:y.config.redirectServiceUrl,colorScheme:y.config.colorScheme,consentLanguageKeys:W,dynamicUrlParameters:y.dynamicUrlParameters,showCloseOption:y.config.showCloseOption,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp},currentFlow:y.currentFlow,config:y.config,session:y.JSC$19234_linkingSession,googleScopes:y.googleScopes,callerState:y.callerState}};var Qwu=function(y,W){this.config=y;this.galService=W.getService();this.JSC$19247_galRepository=W.JSC$19265_galRepository};
Qwu.prototype.getLink=function(y,W){return Ol4(this,y,W)};
var Ol4=function(y,W,V){return y.JSC$19247_galRepository.getLink({serviceId:W,scopes:void 0,capabilities:void 0,linkName:V}).then(function(w){return{statusCode:1,link:w}}).catch(function(w){return{statusCode:bgu(w.code),
statusMessage:w.message}})};
Qwu.prototype.deleteLink=function(y,W){return this.JSC$19247_galRepository.deleteLink(y,this.config.accountLinkingEntryPoint,W).then(function(){return{statusCode:1}}).catch(function(V){return{statusCode:bgu(V.code),
statusMessage:V.message}})};
Qwu.prototype.startLinkingSession=function(y){var W=y.serviceId;var V=y.sessionId;return jwu({serviceId:W,sessionId:V!==void 0?V:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:y.loginHint,callerState:y.callerState,consentLanguageKeys:y.consentLanguageKeys,linkName:y.linkName,dynamicUrlParameters:y.dynamicUrlParameters,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp})};var db=function(y,W,V,w,t,F,I){this.apiKey=W;this.authUser=V;this.oauthToken=w;this.bucket=t;this.locale=F;this.galSdkEventHandler=I;if(w===void 0){if(W===void 0)throw Error("lk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new TK3(y)};
db.prototype.deleteLink=function(y){var W=y.serviceId;var V=y.sessionId;var w=y.accountLinkingEntryPoint;var t=y.linkName;var F=this,I;return _.g(function(P){var C=(new rv).setHeader(F.getHeader(V));var d=vWq({serviceId:W,linkName:t});C=_.sx(C,2,d);I=_.W8(C,3,w);return P.return(F.makeRequest(F.galServiceClient.deleteLink,I,[1,3],[2,4]))})};
var QXC=function(y,W){var V=W.serviceId;var w=W.sessionId;var t=W.dynamicUrlParameters;var F=W.redirectState;var I=W.consentLanguageKeys;var P=W.partnerConfigMinReadTimestamp;var C;return _.g(function(d){var L=(new QX).setHeader(y.getHeader(w,t));L=_.Pm(L,2,V);C=_.Pm(L,4,F);I!==void 0&&_.Pm(C,5,I);P!==void 0&&_.sx(C,6,P);return d.return(y.makeRequest(y.galServiceClient.JSC$19133_finishOAuth,C,[1,3],[2,4]))})};
db.prototype.getLink=function(y){var W=y.serviceId;var V=y.sessionId;var w=y.scopes;var t=y.capabilities;var F=y.consistencyKey;var I=y.linkName;var P=this,C;return _.g(function(d){var L=(new ZL).setHeader(P.getHeader(V)),z=vWq({serviceId:W,scopes:w,capabilities:t,linkName:I});C=_.sx(L,2,z);F!==void 0&&(L=UE3(),L=_.Pm(L,2,F),_.sx(C,3,L));return d.return(P.makeRequest(P.galServiceClient.getLink,C,[1,3],[2,4]))})};
var swu=function(y,W){var V=W.serviceId;var w=W.sessionId;var t=W.googleScopes;var F=W.consistencyKey;var I;return _.g(function(P){var C=(new be).setHeader(y.getHeader(w));C=_.Pm(C,2,V);var d=Array.from(t.values());C=_.vZ(C,3,d,_.YE);d=UE3();d=_.Pm(d,2,F);I=_.sx(C,4,d);return P.return(y.makeRequest(y.galServiceClient.JSC$19133_depositGoogleCredential,I,[1,3],[2,4]))})};
db.prototype.startLinkingSession=function(y){var W=y.serviceId;var V=y.sessionId;var w=y.scopes;var t=y.capabilities;var F=y.loginHint;var I=y.supportedFlows;var P=y.completionUrl;var C=y.usePingPong;var d=y.twoWayLinking;var L=y.accountLinkingEntryPoint;var z=y.callerState;var c=y.consentLanguageKeys;var K=y.googleScopes;var f=y.dataUsageNoticeConfig;var U=y.linkName;var l=y.dynamicUrlParameters;var x=y.partnerConfigMinReadTimestamp;var B=this,r,H;return _.g(function(a){if(t!==void 0&&w!==void 0)throw Error("hk");
var b=(new rDd).setHeader(B.getHeader(V,l));r=_.Pm(b,2,W);U!==void 0&&_.Pm(r,14,U);if(t!==void 0){b=r;var Fv=Array.from(t.values());_.vZ(b,5,Fv,_.YE)}else w!==void 0&&(b=r,Fv=Array.from(w.values()),_.vZ(b,3,Fv,_.YE));P!==void 0&&_.Pm(r,6,P);C!==void 0&&_.jK(r,15,C);I!==void 0&&(b=r,Fv=Array.from(I.values()),_.vZ(b,4,Fv,_.hm));if(d!==void 0){if(d&&(!K||K.size===0))throw Error("mk");_.jK(r,8,d)}L!==void 0&&_.W8(r,9,L);F!==void 0&&_.Pm(r,13,F);z!==void 0&&(b=r,Fv=(new TextEncoder).encode(z),_.d3(b,12,
_.Rs(Fv,!1),_.JA()));c!==void 0&&_.Pm(r,16,c);x!==void 0&&_.sx(r,18,x);if(f!==void 0&&f.size>0||K!==void 0&&K.size>0)H=new GS3,K!==void 0&&K.size>0&&(b=H,Fv=Array.from(K.values()),_.vZ(b,1,Fv,_.YE)),f!==void 0&&(f.has(0)&&_.oEv(H,2,_.hm,1,_.pe),f.has(1)&&_.oEv(H,2,_.hm,2,_.pe)),_.sx(r,17,H);return a.return(B.makeRequest(B.galServiceClient.startLinkingSession,r,[1],[2]))})};
db.prototype.getMetadata=function(){var y=this,W,V;return _.g(function(w){W={};y.useFpa?(W["X-Goog-Api-Key"]=y.apiKey,W["X-Goog-AuthUser"]=y.authUser!==void 0?y.authUser.toString():"0",(V=_.UgP([]))&&(W.Authorization=V)):W.Authorization="Bearer "+y.oauthToken;y.locale&&(W["accept-language"]=y.locale);return w.return(W)})};
db.prototype.makeRequest=function(y,W,V,w){var t=this,F;return _.g(function(I){if(I.nextAddress==1)return I.yield(t.getMetadata(),2);F=I.yieldResult;d_4(t,V);return I.return(y.bind(t.galServiceClient)(W,F).finally(function(){d_4(t,w)}))})};
var d_4=function(y,W){y.galSdkEventHandler!==void 0&&W.forEach(function(V){y.galSdkEventHandler.onEvent(V)})};
db.prototype.getHeader=function(y,W){var V=new Xi;y=_.d3(V,2,_.fe(y),0);y=_.W8(y,5,3);W=_.vZ(y,8,W,_.YE);this.bucket!==void 0&&_.Pm(W,1,this.bucket);return W};
var vWq=function(y){var W=y.serviceId;var V=y.scopes;var w=y.capabilities;y=y.linkName;if(w!==void 0&&V!==void 0)throw Error("hk");var t=new M3t;W=_.Pm(t,1,W);w!==void 0?(V=Array.from(w.values()),_.vZ(W,5,V,_.YE)):V!==void 0&&(V=Array.from(V.values()),_.vZ(W,3,V,_.YE));y!==void 0&&_.Pm(W,6,y);return W};var Zg4=function(y){this.galService=new db(y.alsDomain,y.apiKey,y.authUser,y.oauthToken,y.bucket,y.locale,y.galSdkEventHandler);this.JSC$19265_galRepository=new jXv(this.galService)};
Zg4.prototype.getService=function(){return this.galService};var Lqv=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Lqv,_.fu);var z3e=function(y){var W=new Lqv;return _.oV(W,1,y)};
Lqv.prototype.setErrorMessage=function(y){return _.jD(this,2,y)};var c$e=[0,_.z7,_.Cl,_.z7];var LQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(LQ,_.fu);var e3W=[0,[1,2,3],_.d4,[0,l6v,stt,-1],_.d4,[0,krd,-1],_.Qmb];var h3u=[0,_.g4,1,_.z7,_.Cl,-1,1,_.W0t,_.I1,_.z7,-1,e3W];var oWE=[0,_.z7,[0,_.W0t,_.I1,[0,_.Cl]],_.P8,[0,_.z7,-1]];var Sq=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Sq,_.fu);var KqW=[0,_.Cl,_.z7,-2,_.g4,_.z7,_.g4,_.z7,-2,1,_.P8];var p83=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(p83,_.fu);var ilm=[0,_.g4];var fxj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(fxj,_.fu);var T4E=[0,_.z7,oWE,ilm,KqW,h3u];var Mlj=_.Sh(fxj,T4E);var m_m=[0,mWu];var lQj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(lQj,_.fu);var Mdu=[0,[1,3],jtu,_.z7,jtu];var UM=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(UM,_.fu);var qvv=[0,_.z7];var U_t=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(U_t,_.fu);var ue=function(y){return _.ZT(y,Lqv,2,qq)},uhj=function(y){var W=new U_t;
return _.A_(W,2,qq,y)},qq=[1,
2];var Svd=[0,qq,_.d4,qvv,_.d4,c$e,_.Ov,Mdu,1,_.z7,m_m];var D_3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(D_3,_.fu);var x_v=function(y){var W=new D_3;return _.A_(W,3,lxu,y)},lxu=[2,
3];var z9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(z9,_.fu);var k7W=function(y,W){return _.sx(y,2,W)},s1W=function(y,W){return _.sx(y,8,W)},A$u=function(y,W){return _.sx(y,3,W)};var Yve=[0,_.z7,Svd,T4E,_.P_A,[0,[5,6],[0,_.z7,-2],[0,_.g4,_.z7,_.Cl],[0,e3W],[0,_.Cl,_.z7,-1,_.gRR,_.z7],_.d4,[0,[0,_.g4],_.z7,-1],_.d4,[0,[3,4],_.z7,-1,_.d4,[0,[0,_.z7,_.P8]],_.d4,[0,[0,[0,[1,2],_.d4,[0],_.d4,[0]]]]]],_.P_A,-1,[0,lxu,_.z7,_.d4,qvv,_.d4,c$e,_.Ov,Mdu,[0,mWu]]];var B4P=_.Sh(z9,Yve),J$P=_.Df(Yve);var R3j=function(){_.Ru.call(this)};
_.p(R3j,_.Ru);R3j.prototype.init=function(){};
new R3j;var j1m=_.CF(["data-"]),$_4=_.CF(["aria-"]),nWE=_.CF(["aria-"]),cr=function(y,W){this.isLatencyMeasurementExperiment=y===void 0?!1:y;this.enableDialogA11yFix=W===void 0?!1:W;this.JSC$19294_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.kji(_.Vj.location.href)},U4t=function(y,W){y.onConsentPrimitiveShownCallback=W},Hlv=function(y,W){return y.overriddenIframeLoadTimeout?y.overriddenIframeLoadTimeout:W!==void 0?W:5E3},SUv=function(y){if(y.prewarmPromise!==void 0)return y.prewarmPromise;
y.prewarmPromise=new Promise(function(W,V){ev(y,1);X8E(y,axu(y,!0),G7P(y));y.iframe?y.prewarmChannel||r$t(y,y.iframe,W):V(Error("nk"))});
y.prewarmPromise.finally(function(){y.prewarmPromise=void 0});
return y.prewarmPromise};
cr.prototype.showPrimitive=function(){var y=this;if(this.consentPromise!==void 0)return this.consentPromise;var W=Date.now();bld(this,W);this.consentPromise=new Promise(function(V,w){ev(y,0,W);var t=y.isDarkTheme();y.isLatencyMeasurementExperiment||y.initialLoadingStrategy===1||y.initialLoadingStrategy===2||(y.loadingBar||(y.loadingBar=wE4(getComputedStyle(document.body).direction==="rtl",t),y.loadingBar.style.position="fixed",y.loadingBar.style.zIndex="15000"),document.body.appendChild(y.loadingBar));
X8E(y,axu(y),G7P(y));y.iframe?y.channel||Q13(y,y.iframe,V,w):(Zlm(y),w(Error("nk")))});
this.consentPromise.finally(function(){y.consentPromise=void 0});
return this.consentPromise};
var Q13=function(y,W,V,w){var t,F;_.g(function(I){switch(I.nextAddress){case 1:ev(y,3);t=!1;setTimeout(function(){if(!t){Zlm(y);yPu(y);W$u(y);var P=z3e(7).setErrorMessage("Timeout connecting to iframe");V(s1W(k7W(new z9,uhj(P)),x_v(P)))}},Hlv(y,VIu(y)));
if(!y.prewarmPromise){I.jumpTo(2);break}_.l7(I,3);return I.yield(y.prewarmPromise,5);case 5:_.E6(I,2);break;case 3:_.YX(I),F=z3e(4).setErrorMessage("Error while prewarming."),V(s1W(k7W(new z9,uhj(F)),x_v(F)));case 2:y.prewarmChannel&&y.prewarmChannel.send(J$P(A$u(new z9,y.consentPrimitiveRequest))),y.channel=_.h$({destination:y.JSC$19294_win,iframe:W,origin:wg4(y),channelName:"cpw",onEstablished:function(){t=!0;Zlm(y);y.isLatencyMeasurementExperiment||(y.JSC$19294_previousBodyOverflow=document.body.style.overflow,
y.JSC$19294_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,y.JSC$19294_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",y.enableDialogA11yFix&&window.addEventListener("blur",y.focusChangeListener));var P=y.iframe;P.style.bottom="0";P.style.position="fixed";P.style.right="0";P.style.border="none";P.style.left="0";P.style.top=
"0";P.style.zIndex="5000";P.style.pointerEvents="";P.style.visibility="";y.initialLoadingStrategy===2||y.initialLoadingStrategy===3?ev(y,4):ev(y,6);var C;(C=y.onConsentPrimitiveShownCallback)==null||C.call(y)},
onMessage:function(P){P=B4P(P.data);switch(_.rK(P,1)){case 1:yPu(y);var C=tEt(_.Da(P,_.yW,7));C&&(y.initialLoadingStrategy!==2&&y.initialLoadingStrategy!==3||ev(y,6,C),ev(y,5,C));if(C=tEt(_.Da(P,_.yW,6)))ev(y,7,C),ev(y,8);var d,L;((d=_.Da(P,U_t,2))==null?void 0:_.Jd(d,qq))!==0&&((L=_.Da(P,D_3,8))==null?void 0:_.Jd(L,lxu))!==0||w(Error("ok"));V(P);break;case 2:W$u(y)}}}),_.B7(I)}})},r$t=function(y,W,V){y.prewarmChannel=_.h$({destination:y.JSC$19294_win,
iframe:W,origin:wg4(y),channelName:"pwcp",onEstablished:function(){ev(y,2);V()}})},wg4=function(y){var W=_.$R(y.src).toString();
return W&&W.indexOf("://")<0&&W.indexOf("//")!==0?y.origin:_.kji(W)},axu=function(y,W){W=W===void 0?!1:W;
var V,w=new Map([["origin",y.origin],["hl",(V=tIe(y))!=null?V:null]]);W&&w.set("pw","1");W=_.N([["cpr",y.consentPrimitiveRequest.serialize()]]);for(V=W.next();!V.done;V=W.next()){var t=_.N(V.value);V=t.next().value;t=t.next().value;w.set(V,t)}y.isDarkTheme()&&w.set("color_scheme","dark");return _.mb(y.src,w)},Zlm=function(y){y.isLatencyMeasurementExperiment||y.loadingBar&&document.body.removeChild(y.loadingBar)};
cr.prototype.getSrc=function(){var y=_.di(this.origin),W;var V=(W=_.Da(this.consentPrimitiveRequest,p83,3))==null?void 0:_.Ka(W,1);W="consent.google.com";V=V?"/u/"+encodeURIComponent(V.toString()):"";(y==null?0:y.endsWith("youtube.com"))?W="consent.youtube.com":(y=y==null?void 0:y.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(W="consent.google."+((y[1]?"co.":"")+encodeURIComponent(y[2])));return _.jh("https://"+W+"/signedin"+V+"/landing")};
var X8E=function(y,W,V){y.iframe||(y.iframe=document.createElement("iframe"),y.iframe.style.width="100%",y.iframe.style.height="100%",V!==112496729&&(y.iframe.style.colorScheme="auto"),y.isLatencyMeasurementExperiment&&(y.iframe.style.display="none"),_.g$(y.iframe,W),y.iframe.setAttribute("jsname","C5o1O"),F$t(y.iframe),document.body.appendChild(y.iframe))},F$t=function(y){y.style.bottom="-200vh";
y.style.position="fixed";y.style.right="-200vw";y.style.border="";y.style.left="";y.style.top="";y.style.zIndex="";y.style.pointerEvents="none";y.style.visibility="hidden"},yPu=function(y){y.iframe&&(y.isLatencyMeasurementExperiment||(y.JSC$19294_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=y.JSC$19294_previousHtmlOverscroll),y.JSC$19294_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=y.JSC$19294_previousBodyOverscroll),y.JSC$19294_previousBodyOverflow!==
void 0&&(document.body.style.overflow=y.JSC$19294_previousBodyOverflow),y.enableDialogA11yFix&&Esd(y,!1)),F$t(y.iframe))};
cr.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Esd(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Esd=function(y,W){var V,w,t=(V=y.iframe)==null?void 0:(w=V.parentElement)==null?void 0:w.children;if(t)for(V=0;V<t.length;V++)w=t[V],w!==y.iframe&&(W?(w.hasAttribute("aria-hidden")&&_.em([_.ij(j1m)],w,"data-old-aria-hidden",w.getAttribute("aria-hidden")),_.em([_.ij($_4)],w,"aria-hidden","true")):(w.removeAttribute("aria-hidden"),w.hasAttribute("data-old-aria-hidden")&&(_.em([_.ij(nWE)],w,"aria-hidden",w.getAttribute("data-old-aria-hidden")),w.removeAttribute("data-old-aria-hidden"))))},ev=function(y,
W,V){var w;
(w=y.latencyCallback)==null||w.call(y,{latencyType:W,timestampEpochMillis:V!=null?V:Date.now()})};var NDC=function(y,W,V){cr.call(this,W,V===void 0?!1:V);this.consentPrimitiveRequest=y;y=tIe(this);_.biP(y);this.src=this.getSrc();var w;this.initialLoadingStrategy=(w=_.Da(this.consentPrimitiveRequest,Sq,4))==null?void 0:_.rK(w,4)},ICj;
_.p(NDC,cr);var qUt=function(y){var W=_.e("enable_primitive_dialog_aria_hide_siblings");y={request:y,enableDialogA11yFix:W===void 0?!1:W};ICj||(ICj=new NDC(y.request,y.isLatencyMeasurementExperiment||_.rK(y.request,1)===2,y.enableDialogA11yFix));return ICj},tIe=function(y){var W;
return(W=_.Da(y.consentPrimitiveRequest,Sq,4))==null?void 0:_.aX(W,1)},bld=function(y,W){if(!_.sX(y.consentPrimitiveRequest,LQ,5)){var V=y.consentPrimitiveRequest,w=new LQ;
_.sx(V,5,w)}var t;if((t=_.Da(y.consentPrimitiveRequest,LQ,5))==null||_.Lfn(_.ke(t,8))==null){var F;(F=_.Da(y.consentPrimitiveRequest,LQ,5))!=null&&_.sg(F,8,W)}},G7P=function(y){var W;
return(W=_.Da(y.consentPrimitiveRequest,LQ,5))==null?void 0:_.Ka(W,1)};
NDC.prototype.isDarkTheme=function(){var y;return((y=_.Da(this.consentPrimitiveRequest,Sq,4))==null?void 0:_.rK(y,2))===2};
var VIu=function(y){var W;return((W=_.Da(y.consentPrimitiveRequest,Sq,4))==null?void 0:_.Ka(W,5))||void 0},W$u=function(y){y.channel=void 0;
y.prewarmChannel=void 0;y.iframe&&(document.body.contains(y.iframe)&&document.body.removeChild(y.iframe),y.iframe=void 0);ICj=void 0},D4m=function(y){return cr.prototype.showPrimitive.call(y).then(function(W){return _.Da(W,U_t,2)})};for(var hT={},gsC=(hT[64]="ma",hT[73]="ogb",hT[89]="cr",hT[21]="test",hT[0]="unkn",hT[137]="con",hT[155]="hl",hT[78]="yt",hT[171]="lp",hT[172]="ap",hT[177]="amo",hT[178]="pqe",hT[74]="gg",hT[1]="gm",hT[140]="am",hT[193]="sc",hT),PWq=_.N(Object.keys(gsC)),CWm=PWq.next();!CWm.done;CWm=PWq.next());var OwW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(OwW,_.fu);var vsu=[0,[2,3,4],_.z7,xUu,jtu,_.Qmb];var dIt=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(dIt,_.fu);var L$E=_.Sh(dIt,[0,R7P,_.Cl,_.z7,_.Cl,_.z7,vsu]);var zSE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(zSE,_.fu);zSE.prototype.getCommand=function(){return _.rK(this,1)};
var cPj=function(){var y=new zSE;return _.W8(y,1,0)};var eSu=_.Df([0,R7P,_.Cl,[0,_.z7,_.Cl,-1]]);var hSq=new _.lW("s"),osm=new _.lW("t"),K$u=new _.lW("u"),pgv=new _.lW("v"),iwC=function(y,W,V){_.xs.call(this,hSq);this.mediaKey=y;this.photoUrl=W;this.photoSource=V};
_.p(iwC,_.xs);var fC3=function(){_.xs.call(this,osm)};
_.p(fC3,_.xs);var TDq=function(y){y=y===void 0?!1:y;_.xs.call(this,K$u);this.isError=y};
_.p(TDq,_.xs);var mIj=function(){_.xs.call(this,pgv)};
_.p(mIj,_.xs);var MIt=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,SHu=function(y){if(typeof y=="string"){if(y.charAt(0)==".")return qHq(y.substr(1));if(y.charAt(0)=="["){var W=MIt.exec(y);y=y.indexOf("=")==-1?void 0:W[3];return UId(W[1],y)}return ulv(y)}return y},qHq=function(y){return function(W){return W.getAttribute&&_.EQ(W,y)}},UId=function(y,W){return function(V){return W!==void 0?V.getAttribute&&V.getAttribute(y)==W:V.hasAttribute&&V.hasAttribute(y)}},ulv=function(y){y=y.toUpperCase();
return function(W){return(W=W.tagName)&&W.toUpperCase()==y}},DIq=function(){return!0};var or=function(y,W){this.JSC$19322_key_=y;this.JSC$19322_value_=W},KQ=function(y){throw Error("pk`"+y.JSC$19322_key_);
},lCP=function(y,W){return new TypeError("qk`"+W+"`"+y.JSC$19322_key_+"`"+y.JSC$19322_value_+"`"+typeof y.JSC$19322_value_)};
or.prototype.string=function(y){return arguments.length==0?xId(this):k0u(this,y)};
var k0u=function(y,W){var V;return(V=syW(y))!=null?V:W},xId=function(y){var W=syW(y);
W===null&&KQ(y);return W},syW=function(y){var W=y.JSC$19322_value_;
if(W==null)return null;if(typeof W==="string")return W;throw lCP(y,"string");};
or.prototype.bool=function(y){if(arguments.length==0){var W=this.optionalBool();W===null&&KQ(this)}else{var V;W=(V=this.optionalBool())!=null?V:y}return W};
or.prototype.optionalBool=function(){var y=this.JSC$19322_value_;if(y==null)return null;if(typeof y==="boolean")return y;if(typeof y==="string"){y=y.toLowerCase();if(y==="true"||y==="1")return!0;if(y==="false"||y==="0")return!1}throw lCP(this,"boolean");};
or.prototype.number=function(y){if(arguments.length==0){var W=APE(this);W===null&&KQ(this)}else W=YHu(this,y);return W};
var YHu=function(y,W){var V;return(V=APE(y))!=null?V:W},APE=function(y){var W=y.JSC$19322_value_;
if(W==null)return null;if(typeof W==="number")return W;if(typeof W==="string"){var V=Number(W);if(!isNaN(V)&&(V!==0||W.trim().length!==0))return V}throw lCP(y,"number");};
or.prototype.toString=function(){return xId(this)};
or.prototype.enum=function(y,W){var V=!0,w=void 0,t;for(t in y){var F=y[t];V&&(V=!1,w=typeof F==="number"?YHu(this,W):k0u(this,W));if(F==w)return w}JSON.stringify(y);return w};
or.prototype.array=function(y){if(arguments.length==0){var W=BDu(this);W===null&&KQ(this);return W}W=BDu(this);return W==null?y:W};
var BDu=function(y){var W=y.JSC$19322_value_;if(W==null)return null;Array.isArray(W)||(typeof W!=="string"?W=[W]:(W=W.trim(),W=W==""?[]:W.split(",").map(function(V){return V.trim()})));
return JP4(y,W)},JP4=function(y,W){var V=y.JSC$19322_key_+"[";
return Array.from(W,function(w,t){return new or(V+t+"]",w)})};
or.prototype.object=function(y){var W=this.JSC$19322_value_;if(W==null)return y===void 0&&KQ(this),y;if(typeof W==="object"&&W.constructor===Object){y={};var V=this.JSC$19322_key_+".",w;for(w in W)y[w]=new or(V+w,W[w]);return y}throw lCP(this,"object");};var pQ=function(y){this.list_=RSv(y)},RSv=function(y){if(y instanceof pQ)y=y.list_;
else if(y[0]instanceof pQ){for(var W=new Set,V=0;V<y.length;V++)for(var w=_.N(y[V].list_),t=w.next();!t.done;t=w.next())W.add(t.value);y=W}return[].concat(_.GC(y))};
_.E=pQ.prototype;_.E.each=function(y,W,V){((V===void 0?0:V)?IRq:_.IA)(this.list_,y,W);return this};
_.E.size=function(){return this.list_.length};
_.E.isEmpty=function(){return this.list_.length===0};
_.E.get=function(y){return this.list_[y]||null};
_.E.el=function(){return this.list_[0]||null};
_.E.map=function(y,W){return _.rU(this.list_,y,W)};
_.E.equals=function(y){return this===y||_.gm(this.list_,y.list_)};
_.E.first=function(){return this.list_.length==0?null:new iR(this.list_[0])};
_.E.last=function(){return this.list_.length==0?null:new iR(this.list_[this.list_.length-1])};
_.E.find=function(y){var W=[];this.each(function(V){V=V.querySelectorAll(String(y));for(var w=0;w<V.length;w++)W.push(V[w])});
return new pQ(W)};
_.E.parent=function(){var y=[];this.each(function(W){(W=W.parentElement||null)&&!_.j4(y,W)&&y.push(W)});
return new pQ(y)};
_.E.children=function(){var y=[];this.each(function(W){W=_.Q_(W);for(var V=0;V<W.length;V++)y.push(W[V])});
return new pQ(y)};
_.E.filter=function(y){y=_.fF(this.list_,SHu(y));return new pQ(y)};
_.E.closest=function(y){var W=[],V=SHu(y),w=function(t){return _.Og(t)&&V(t)};
this.each(function(t){(t=_.WM(t,w,!0))&&!_.j4(W,t)&&W.push(t)});
return new pQ(W)};
_.E.next=function(y){return jyj(this,_.Zqf,y)};
_.E.prev=function(y){return jyj(this,$U4,y)};
var jyj=function(y,W,V){var w=[];var t=V?SHu(V):DIq;y.each(function(F){(F=W(F))&&t(F)&&w.push(F)});
return new pQ(w)};
pQ.prototype.setClass=function(y){return this.each(function(W){_.FJ(W,y)})};
var $I4=function(y,W){return y.each(function(V){_.el(V,W)})},nsj=function(y,W){return y.each(function(V){_.zP(V,W)})};
pQ.prototype.toggleClass=function(y,W){return W===!0?$I4(this,y):W===!1?nsj(this,y):this.each(function(V){_.EQ(V,y)?_.zP(V,y):_.el(V,y)})};
pQ.prototype.setText=function(y){return this.each(function(W){_.Zx(W,y)})};
var Hwj=function(y){y.each(function(W){W.removeAttribute("aria-hidden")})};
pQ.prototype.getStyle=function(y){if(this.list_.length>0){var W=this.list_[0],V=W.style[_.SK(y)];return typeof V!=="undefined"?V:W.style[_.Oer(W,y)]||""}};
pQ.prototype.getData=function(y){if(this.list_.length===0)return new or(y,null);var W=dTt(this.list_[0],y);return new or(y,W)};
pQ.prototype.focus=function(y){try{y?this.el().focus(y):this.el().focus()}catch(W){}return this};
pQ.prototype.click=function(){var y=_.ZS(this.el());if(y.createEvent){var W=y.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,y.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(W)}else y=y.createEventObject(),y.clientX=0,y.clientY=0,y.screenX=0,y.screenY=0,y.altKey=!1,y.ctrlKey=!1,y.shiftKey=!1,y.button=0,this.el().fireEvent("onclick",y)};
var fQ=function(y,W,V,w){function t(P,C,d){var L=C;C&&C.parentNode&&(L=C.cloneNode(!0));P(L,d)}
w=w===void 0?!1:w;if(y.list_.length==1){var F=y.list_[0],I=function(P){return W(P,F)};
V instanceof pQ?V.each(I,void 0,w):Array.isArray(V)?(w?IRq:_.IA)(V,I):I(V);return y}return y.each(function(P){V instanceof pQ?V.each(function(C){t(W,C,P)}):Array.isArray(V)?_.IA(V,function(C){t(W,C,P)}):t(W,V,P)})};
_.E=pQ.prototype;_.E.append=function(y){return fQ(this,function(W,V){W&&V.appendChild(W)},y)};
_.E.appendTo=function(y){(new pQ([y])).append(this);return this};
_.E.remove=function(){return fQ(this,function(y,W){_.ku(W)},null)};
_.E.empty=function(){return fQ(this,function(y,W){_.G7(W)},null)};
_.E.after=function(y,W){return fQ(this,function(V,w){V&&_.bQ(V,w)},y,!(W===void 0||W))};
_.E.before=function(y){return fQ(this,function(W,V){W&&_.r4(W,V)},y)};
_.E.replaceWith=function(y){return fQ(this,function(W,V){W&&_.rAR(W,V)},y)};
_.E.toggle=function(y){return this.each(function(W){_.gf(W,y)})};
_.E.show=function(){return this.toggle(!0)};
_.E.hide=function(){return this.toggle(!1)};
_.E.trigger=function(y,W,V,w){return Xgj(this,y,W,V,w)};
var Xgj=function(y,W,V,w,t){return y.each(function(F){_.F94(_.ZS(F)).triggerWizEventInternal(F,W,V,w,t)})},iR=function(y,W){y instanceof pQ&&(W=y.list_,y=null);
this.list_=RSv(y!=null?[y]:W)};
_.pF(iR,pQ);_.E=iR.prototype;_.E.children=function(){return new pQ(Array.prototype.slice.call(_.Q_(this.list_[0])))};
_.E.each=function(y,W){y.call(W,this.list_[0],0);return this};
_.E.size=function(){return 1};
_.E.el=function(){return this.list_[0]};
_.E.first=function(){return this};var T9=function(y,W){W=W===void 0?window:W;this.hostId=y;this.JSC$19333_win=W;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$19333_previousHtmlOverscroll=this.JSC$19333_previousBodyOverscroll=this.JSC$19333_previousBodyOverflow="";this.eventTarget=new _.Bg;this.JSC$19333_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
rPj=function(y){var W=aCu(aCu(aCu(new G0u(78),"po"),"hppp"),"hhc");
W.authUser=Number(_.yC("SESSION_INDEX","0"));W.colorScheme=y;return W};
T9.prototype.getOrigin=function(){return this.origin?this.origin:_.eb(_.cY(_.zF(new _.gw,this.JSC$19333_win.location.protocol),this.JSC$19333_win.location.hostname),this.JSC$19333_win.location.port).toString()};
T9.prototype.getTargetOrigin=function(){return _.eb(_.cY(_.zF(new _.gw,this.scheme),this.domain),this.port)};
T9.prototype.preloadIframe=function(y){var W=this;if(this.iframeLoadPromise===void 0){var V=document.createElement("iframe");this.iframe=V;Cge(V,y);this.iframeLoadPromise=new Promise(function(w,t){var F=!1,I=function(P){P.stopPropagation();V.removeEventListener("error",I);V.removeEventListener("securitypolicyviolation",I);t(Error("rk",{cause:P}))};
V.addEventListener("error",I);V.addEventListener("securitypolicyviolation",I);setTimeout(function(){F||t(Error("sk"))},3E4);
bwv(W,V,function(){F=!0;V.removeEventListener("error",I);V.removeEventListener("securitypolicyviolation",I);w()})});
QyP(this);y=this.getTargetOrigin().toString();V.setAttribute("allow","camera "+y+"; display-capture "+y);this.parentElement.appendChild(V)}return this.iframeLoadPromise};
var Wxj=function(y,W){var V,w;return _.g(function(t){if(t.nextAddress==1)return V=wE4(getComputedStyle(y.parentElement).direction==="rtl"),y.parentElement.appendChild(V),document.activeElement instanceof HTMLElement&&(y.elementToFocusAfterClose=document.activeElement),_.l7(t,2),t.yield(y.preloadIframe(W),4);if(t.nextAddress!=2){y.parentElement.removeChild(V);y.JSC$19333_previousBodyOverflow=y.parentElement.style.overflow;y.JSC$19333_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
y.JSC$19333_previousBodyOverscroll=y.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";y.parentElement.style.overscrollBehavior="contain";y.parentElement.style.overflow="hidden";var F=y.iframe;F.style.bottom="0";F.style.border="none";F.style.height="100%";F.style.left="0";F.style.position=y.iframePosition;F.style.right="0";F.style.top="0";F.style.width="100%";F.style.zIndex="2202";F.setAttribute("aria-hidden","false");F.setAttribute("aria-modal","true");
y.opened=!0;Zwj(y);return _.E6(t,0)}w=_.YX(t);y.parentElement.removeChild(V);IHm(y.isDarkTheme());y0j(y,!1);throw Error("tk",{cause:w});})},y0j=function(y,W){W=W===void 0?!0:W;
y.iframe!==void 0&&(Vbj(y),document.documentElement.style.overscrollBehavior=y.JSC$19333_previousHtmlOverscroll,y.parentElement.style.overscrollBehavior=y.JSC$19333_previousBodyOverscroll,y.parentElement.style.overflow=y.JSC$19333_previousBodyOverflow,y.elementToFocusAfterClose!==void 0&&(y.elementToFocusAfterClose.focus(),y.elementToFocusAfterClose=void 0),W?QyP(y):(y.parentElement.removeChild(y.iframe),y.iframe=void 0,y.iframeLoadPromise=void 0,y.mainChannel=void 0),y.opened=!1)},Vbj=function(y){y.backgroundElementsAriaHiddenIsNull&&
(Hwj(y.backgroundElementsAriaHiddenIsNull),y.backgroundElementsAriaHiddenIsNull=void 0);
y.backgroundElementsAriaHiddenIsFalse&&(y.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","false")}),y.backgroundElementsAriaHiddenIsFalse=void 0);
y.backgroundElementsWithoutInert&&(y.backgroundElementsWithoutInert.each(function(W){W.removeAttribute("inert")}),y.backgroundElementsWithoutInert=void 0)},Zwj=function(y){y.backgroundElementsAriaHiddenIsNull=(new iR(y.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")===null&&W!==y.iframe});
y.backgroundElementsAriaHiddenIsNull.each(function(W){W.setAttribute("aria-hidden","true")});
y.backgroundElementsAriaHiddenIsFalse=(new iR(y.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")==="false"&&W!==y.iframe});
y.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","true")});
y.backgroundElementsWithoutInert=(new iR(y.iframe.parentElement)).children().filter(function(W){return!W.hasAttribute("inert")&&W!==y.iframe});
y.backgroundElementsWithoutInert.each(function(W){W.setAttribute("inert","true")})},QyP=function(y){y=y.iframe;
y.style.bottom="-1000px";y.style.position="fixed";y.style.right="-1000px";y.style.border="";y.style.height="";y.style.left="";y.style.top="";y.style.width="";y.style.zIndex="";y.setAttribute("aria-hidden","true");y.setAttribute("aria-modal","false")};
T9.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var G0u=function(y,W){T9.call(this,gsC[y],W);this.options=[];this.style=""};
_.p(G0u,T9);var wYd=function(y){y.style="youtube";return y},tbd=function(y,W){y.eventTarget.listen(K$u,W);
return y},Fxq=function(y,W){y.eventTarget.listen(hSq,W);
return y},aCu=function(y,W){y.options.push(W);
return y},EGv=function(y){var W=[y.getOrigin()];
y.ancestorOrigins&&W.push.apply(W,_.GC(y.ancestorOrigins));var V=new _.gw(y.JSC$19333_win.location.href),w=y.startUrl?y.startUrl:y.options.includes("po")?"profile-picture/art":"profile-picture";W=DL(_.oP(y.getTargetOrigin(),w),"origin",W);y.startUrl&&_.If(W,"startPath",y.startUrl);y.authUser>0&&_.If(W,"authuser",y.authUser);y.pageId!==void 0&&_.If(W,"pageId",y.pageId);_.If(W,"hostId",y.hostId);y.jsMode!==void 0&&_.If(W,"jsmode",y.jsMode);y.rectangleRatio!==void 0&&_.If(W,"rectangleRatio",y.rectangleRatio);
y.options.length>0&&_.If(W,"opts",y.options.join(","));try{for(var t=_.N(["utm_source","utm_medium","utm_campaign","utm_content"]),F=t.next();!F.done;F=t.next()){var I=F.value;_.N1(V,I)&&_.If(W,I,_.N1(V,I))}var P,C=(P=y.hl)!=null?P:_.N1(V,"hl");C!==void 0&&_.If(W,"hl",C)}catch(d){if(!(d instanceof URIError))throw d;}y.colorScheme&&_.If(W,"theme",y.colorScheme);y.style&&_.If(W,"style",y.style);return W},NFP=function(y,W){y.mainChannel=_.h$({destination:y.JSC$19333_win,
iframe:W,origin:y.getTargetOrigin().toString(),channelName:"ow",onMessage:function(V){V=L$E(V.data);if(W===y.iframe)switch(_.rK(V,1)){case 1:y.eventTarget.dispatchEvent(new TDq);y0j(y);break;case 2:y.eventTarget.dispatchEvent(new iwC(_.aX(V,4),_.aX(V,2),_.rK(V,5),_.Da(V,OwW,6)));break;case 0:var w;y.eventTarget.dispatchEvent(new fC3(_.aX(V,2),(w=_.rK(V,3))!=null?w:0));break;case 3:y.eventTarget.dispatchEvent(new TDq(!0));y0j(y,!1);break;case 4:y.eventTarget.dispatchEvent(new mIj)}}})},bwv=function(y,
W,V){_.h$({destination:y.JSC$19333_win,
iframe:W,origin:_.eb(_.cY(_.zF(new _.gw,y.scheme),y.domain),y.port).toString(),channelName:"owi",onMessage:function(w){W===y.iframe&&(V!==void 0&&V(),NFP(y,W),y.opened&&y.mainChannel.send(eSu(cPj())),w.reply(),bwv(y,W))}})};
G0u.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?T9.prototype.preloadIframe.call(this,EGv(this).toString()):this.iframeLoadPromise};
G0u.prototype.openPicker=function(y){var W=this;return _.g(function(V){if(V.nextAddress==1)return W.startUrl=y?y:W.options.includes("po")?"profile-picture/art":"profile-picture",V.yield(Wxj(W,EGv(W).toString()),2);if(W.mainChannel){var w=W.mainChannel,t=w.send;var F=cPj();F=_.jD(F,2,W.startUrl);t.call(w,eSu(F))}_.B7(V)})};var Ie3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(Ie3,_.fu);_.E=Ie3.prototype;_.E.getSize=function(){return BI(this,1)};
_.E.setSize=function(y){return _.y_(this,1,y)};
_.E.getWidth=function(){return BI(this,12)};
_.E.getHeight=function(){return BI(this,13)};
_.E.setCenterCrop=function(y){return _.Tk(this,20,y)};
_.E.getHtml=function(){return _.nF(this,4)};
_.E.getToken=function(){return _.lz(this,24)};
_.E.setToken=function(y){return _.jD(this,24,y)};
_.E.getBackgroundColor=function(){return BI(this,87)};
_.E.hasBackgroundColor=function(){return _.mC(_.ke(this,87))!=null};
_.E.getStoryboardLevel=function(){return BI(this,109)};var mv=function(y){this.JSC$19341_value_=void 0;this.childNodes_={};if(y){var W=_.$1s(y);y=_.LH(y);for(var V=0;V<W.length;V++)this.set(W[V],y[V])}};
mv.prototype.set=function(y,W){gGW(this,y,W,!1)};
mv.prototype.add=function(y,W){gGW(this,y,W,!0)};
var gGW=function(y,W,V,w){for(var t=0;t<W.length;t++){var F=W.charAt(t);y.childNodes_[F]||(y.childNodes_[F]=new mv);y=y.childNodes_[F]}if(w&&y.JSC$19341_value_!==void 0)throw Error("uk`"+W);y.JSC$19341_value_=V},PKE=function(y,W){for(var V=0;V<W.length;V++)if(y=y.childNodes_[W.charAt(V)],!y)return;
return y};
mv.prototype.get=function(y){return(y=PKE(this,y))?y.JSC$19341_value_:void 0};
mv.prototype.getValues=function(){var y=[];CKP(this,y);return y};
var CKP=function(y,W){y.JSC$19341_value_!==void 0&&W.push(y.JSC$19341_value_);for(var V in y.childNodes_)CKP(y.childNodes_[V],W)};
mv.prototype.getKeys=function(y){var W=[];if(y){for(var V=this,w=0;w<y.length;w++){var t=y.charAt(w);if(!V.childNodes_[t])return[];V=V.childNodes_[t]}OH3(V,y,W)}else OH3(this,"",W);return W};
var OH3=function(y,W,V){y.JSC$19341_value_!==void 0&&V.push(W);for(var w in y.childNodes_)OH3(y.childNodes_[w],W+w,V)};
_.E=mv.prototype;_.E.containsKey=function(y){return this.get(y)!==void 0};
_.E.containsValue=function(y){if(this.JSC$19341_value_===y)return!0;for(var W in this.childNodes_)if(this.childNodes_[W].containsValue(y))return!0;return!1};
_.E.clear=function(){this.childNodes_={};this.JSC$19341_value_=void 0};
_.E.remove=function(y){for(var W=this,V=[],w=0;w<y.length;w++){var t=y.charAt(w);if(!W.childNodes_[t])throw Error("vk`"+y);V.push([W,t]);W=W.childNodes_[t]}y=W.JSC$19341_value_;for(delete W.JSC$19341_value_;V.length>0;)if(w=V.pop(),W=w[0],w=w[1],W.childNodes_[w].isEmpty())delete W.childNodes_[w];else break;return y};
_.E.clone=function(){return new mv(this)};
_.E.getCount=function(){return a63(this.getValues())};
_.E.isEmpty=function(){return this.JSC$19341_value_===void 0&&_.Gc.isEmpty(this.childNodes_)};var z5E=function(){if(!vGP){var y=vGP=new mv,W;for(W in dY4)y.add(W,dY4[W])}},vGP,M0=function(y,W){this.types=y;
this.setters=W},dY4={a:new M0([3,
0],[function(y,W){_.Tk(y,21,W)},
function(y,W){_.y_(y,56,W)}]),
al:new M0([3],[function(y,W){_.Tk(y,74,W)}]),
b:new M0([3,0],[function(y,W){_.Tk(y,23,W)},
function(y,W){_.y_(y,38,W)}]),
ba:new M0([0],[function(y,W){_.y_(y,85,W)}]),
bc:new M0([0],[function(y,W){_.y_(y,87,W)}]),
br:new M0([0],[function(y,W){_.y_(y,86,W)}]),
c:new M0([3,0],[function(y,W){_.Tk(y,2,W)},
function(y,W){_.y_(y,39,W)}]),
cc:new M0([3],[function(y,W){_.Tk(y,51,W)}]),
ci:new M0([3],[function(y,W){_.Tk(y,32,W)}]),
ckm:new M0([3],[function(y,W){_.Tk(y,104,W)}]),
cp:new M0([0],[function(y,W){_.y_(y,92,W)}]),
cr:new M0([3],[function(y,W){_.Tk(y,108,W)}]),
cv:new M0([0],[function(y,W){_.y_(y,94,W)}]),
d:new M0([3],[function(y,W){_.Tk(y,3,W)}]),
dc:new M0([5],[function(y,W){_.jD(y,99,W)}]),
df:new M0([3],[function(y,W){_.Tk(y,80,W)}]),
dv:new M0([3],[function(y,W){_.Tk(y,90,W)}]),
e:new M0([0],[function(y,W){_.y_(y,15,W)}]),
em:new M0([0],[function(y,W){_.y_(y,107,W)}]),
f:new M0([4],[function(y,W){_.jD(y,16,W)}]),
fg:new M0([3],[function(y,W){_.Tk(y,34,W)}]),
fh:new M0([3],[function(y,W){_.Tk(y,30,W)}]),
fm:new M0([3],[function(y,W){_.Tk(y,84,W)}]),
fo:new M0([2],[function(y,W){_.KA(y,79,_.O3(W))}]),
ft:new M0([3],[function(y,W){_.Tk(y,50,W)}]),
fv:new M0([3],[function(y,W){_.Tk(y,31,W)}]),
g:new M0([3],[function(y,W){_.Tk(y,14,W)}]),
gce:new M0([4],[function(y,W){_.jD(y,112,W)}]),
gd:new M0([3],[function(y,W){_.Tk(y,83,W)}]),
gm:new M0([3],[function(y,W){_.Tk(y,105,W)}]),
h:new M0([3,0],[function(y,W){_.Tk(y,4,W)},
function(y,W){_.y_(y,13,W)}]),
i:new M0([3],[function(y,W){_.Tk(y,22,W)}]),
ic:new M0([0],[function(y,W){_.y_(y,71,W)}]),
id:new M0([3],[function(y,W){_.Tk(y,70,W)}]),
il:new M0([3],[function(y,W){_.Tk(y,96,W)}]),
ip:new M0([3],[function(y,W){_.Tk(y,54,W)}]),
iv:new M0([0],[function(y,W){_.sg(y,75,W)}]),
j:new M0([1],[function(y,W){W=W==null?W:C43(W);_.KA(y,29,W)}]),
k:new M0([3,0],[function(y,W){_.Tk(y,17,W)},
function(y,W){_.y_(y,42,W)}]),
l:new M0([0],[function(y,W){_.y_(y,44,W)}]),
lf:new M0([3],[function(y,W){_.Tk(y,65,W)}]),
lo:new M0([3],[function(y,W){_.Tk(y,97,W)}]),
m:new M0([0],[function(y,W){_.y_(y,63,W)}]),
md:new M0([3],[function(y,W){_.Tk(y,91,W)}]),
mm:new M0([4],[function(y,W){_.jD(y,81,W)}]),
mo:new M0([3],[function(y,W){_.Tk(y,73,W)}]),
mp:new M0([0],[function(y,W){_.y_(y,115,W)}]),
mv:new M0([3],[function(y,W){_.Tk(y,66,W)}]),
n:new M0([3],[function(y,W){y.setCenterCrop(W)}]),
nc:new M0([3],[function(y,W){_.Tk(y,55,W)}]),
nd:new M0([3],[function(y,W){_.Tk(y,53,W)}]),
ng:new M0([3],[function(y,W){_.Tk(y,95,W)}]),
ngm:new M0([3],[function(y,W){_.Tk(y,106,W)}]),
no:new M0([3],[function(y,W){_.Tk(y,37,W)}]),
ns:new M0([3],[function(y,W){_.Tk(y,40,W)}]),
nt0:new M0([4],[function(y,W){_.jD(y,36,W)}]),
ntm:new M0([3],[function(y,W){_.Tk(y,114,W)}]),
nu:new M0([3],[function(y,W){_.Tk(y,46,W)}]),
nw:new M0([3],[function(y,W){_.Tk(y,48,W)}]),
o:new M0([1,3],[function(y,W){W=W==null?W:C43(W);_.KA(y,7,W)},
function(y,W){_.Tk(y,27,W)}]),
p:new M0([3,0],[function(y,W){_.Tk(y,19,W)},
function(y,W){_.y_(y,43,W)}]),
pa:new M0([3],[function(y,W){_.Tk(y,61,W)}]),
pc:new M0([0],[function(y,W){_.y_(y,88,W)}]),
pd:new M0([3],[function(y,W){_.Tk(y,60,W)}]),
pf:new M0([3],[function(y,W){_.Tk(y,67,W)}]),
pg:new M0([3],[function(y,W){_.Tk(y,72,W)}]),
pi:new M0([2],[function(y,W){_.KA(y,76,_.O3(W))}]),
pp:new M0([3],[function(y,W){_.Tk(y,52,W)}]),
pt:new M0([4],[function(y,W){_.jD(y,111,W)}]),
q:new M0([4],[function(y,W){_.jD(y,28,W)}]),
r:new M0([3,0],[function(y,W){_.Tk(y,6,W)},
function(y,W){_.y_(y,26,W)}]),
ra:new M0([3],[function(y,W){_.Tk(y,103,W)}]),
rf:new M0([3],[function(y,W){_.Tk(y,100,W)}]),
rg:new M0([3],[function(y,W){_.Tk(y,59,W)}]),
rh:new M0([3],[function(y,W){_.Tk(y,49,W)}]),
rj:new M0([3],[function(y,W){_.Tk(y,57,W)}]),
ro:new M0([2],[function(y,W){_.KA(y,78,_.O3(W))}]),
rp:new M0([3],[function(y,W){_.Tk(y,58,W)}]),
rw:new M0([3],[function(y,W){_.Tk(y,35,W)}]),
rwa:new M0([3],[function(y,W){_.Tk(y,64,W)}]),
rwu:new M0([3],[function(y,W){_.Tk(y,41,W)}]),
s:new M0([3,0],[function(y,W){_.Tk(y,33,W)},
function(y,W){y.setSize(W)}]),
sb:new M0([0],[function(y,W){_.y_(y,110,W)}]),
sc:new M0([0],[function(y,W){_.y_(y,89,W)}]),
sg:new M0([3],[function(y,W){_.Tk(y,82,W)}]),
sl:new M0([0],[function(y,W){_.y_(y,109,W)}]),
sm:new M0([3],[function(y,W){_.Tk(y,93,W)}]),
t:new M0([4],[function(y,W){y.setToken(W)}]),
tm:new M0([3],[function(y,W){_.Tk(y,113,W)}]),
u:new M0([3],[function(y,W){_.Tk(y,18,W)}]),
ut:new M0([3],[function(y,W){_.Tk(y,45,W)}]),
v:new M0([0],[function(y,W){_.y_(y,62,W)}]),
vb:new M0([0],[function(y,W){_.sg(y,68,W)}]),
vf:new M0([4],[function(y,W){_.jD(y,102,W)}]),
vl:new M0([0],[function(y,W){_.sg(y,69,W)}]),
vm:new M0([3],[function(y,W){_.Tk(y,98,W)}]),
w:new M0([0],[function(y,W){_.y_(y,12,W)}]),
x:new M0([0],[function(y,W){_.y_(y,9,W)}]),
y:new M0([0],[function(y,W){_.y_(y,10,W)}]),
ya:new M0([2],[function(y,W){_.KA(y,77,_.O3(W))}]),
z:new M0([0],[function(y,W){_.y_(y,11,W)}])};
z5E.prototype.parse=function(y){var W=new Ie3,V=new Ie3;if(y=="")y=!0;else{y=y.split("-");for(var w=!0,t=0;t<y.length;t++){var F=y[t];if(F.length==0)w=!1;else{var I=F,P=!1;var C=I;var d=I.charAt(0);d!=d.toLowerCase()&&(P=!0,C=I.charAt(0).toLowerCase()+I.substring(1));var L=vGP;for(d=1;d<=C.length;++d){var z=L,c=C.substring(0,d);if(c.length==0?z.isEmpty():!PKE(z,c))break}C=d==1?null:(C=L.get(C.substring(0,d-1)))?{option:I.substring(0,d-1),value:I.substring(d-1),signed:P,attributes:C}:null;if(C){I=
[];P=[];d=!1;for(L=0;L<C.attributes.types.length;L++){z=C.attributes.types[L];var K=C.value;c=t;if(C.signed&&z==1)for(var f=K.length;f<12&&c<y.length-1;)K+="-"+y[c+1],f=K.length,++c;else if(z==2)for(;c<y.length-1&&y[c+1].match(/^[\d\.]/);)K+="-"+y[c+1],++c;f=C.attributes.setters[L];K=Lxu(this,z)(C.option,K,W,V,f);if(K===null){d=!0;t=c;break}else I.push(z),P.push(K)}if(!d)for(C=0;C<P.length;C++)L=I[C],K=P[C],z0u(this,L)(F,K);w=w&&d}else w=!1}}y=w}return new c0j(W,V,y)};
var q0=function(y,W,V,w,t,F){t(V,W);y=y.charAt(0);F=F(y==y.toUpperCase());t(w,F)};
_.E=z5E.prototype;_.E.parseAndSetIntOption_=function(y,W,V,w,t){if(W=="")return 0;isFinite(W)&&(W=String(W));W=typeof W==="string"?/^\s*-?0x/i.test(W)?parseInt(W,16):parseInt(W,10):NaN;if(isNaN(W))return 1;q0(y,W,V,w,t,Number);return null};
_.E.logIntParseError_=function(){};
_.E.parseAndSetFloatOption_=function(y,W,V,w,t){if(W=="")return 0;var F=Number(W);W=F==0&&_.gu(W)?NaN:F;if(isNaN(W))return 1;q0(y,W,V,w,t,Number);return null};
_.E.logFloatParseError_=function(){};
_.E.parseAndSetBoolOption_=function(y,W,V,w,t){if(W!="")return 2;q0(y,!0,V,w,t,Boolean);return null};
_.E.logBoolParseError_=function(){};
_.E.parseAndSetStringOption_=function(y,W,V,w,t){if(W=="")return 0;q0(y,W,V,w,t,function(F){return F?"1":""});
return null};
_.E.logStringParseError_=function(){};
_.E.parseAndSetUint64Base64Option_=function(y,W,V,w,t){if(W=="")return 0;q0(y,W,V,w,t,function(F){return F?1:0});
return null};
var Lxu=function(y,W){switch(W){case 0:return(0,_.jA)(y.parseAndSetIntOption_,y);case 2:return(0,_.jA)(y.parseAndSetFloatOption_,y);case 3:return(0,_.jA)(y.parseAndSetBoolOption_,y);case 4:return(0,_.jA)(y.parseAndSetStringOption_,y);case 1:return(0,_.jA)(y.parseAndSetUint64Base64Option_,y);default:return function(){}}},z0u=function(y,W){switch(W){case 0:return(0,_.jA)(y.logIntParseError_,y);
case 2:return(0,_.jA)(y.logFloatParseError_,y);case 3:return(0,_.jA)(y.logBoolParseError_,y);case 4:case 1:return(0,_.jA)(y.logStringParseError_,y);default:return function(){}}},c0j=function(y,W,V){this.valueProto_=y;
this.signatureFlagProto_=W;this.JSC$19353_valid_=V};
c0j.prototype.isValid=function(){return this.JSC$19353_valid_};var O2e=function(y){this.JSC$19354_parser_=null;this.JSC$19354_components_=[];this.JSC$19354_parsedOptions_=null;e0v(this,y)},h0d=function(y){y.JSC$19354_parser_==null&&(y.JSC$19354_parser_=new z5E);
return y.JSC$19354_parser_},e0v=function(y,W){y.JSC$19354_parsedOptions_=W?typeof W==="string"?h0d(y).parse(W):W:h0d(y).parse("")},UC=function(y,W){return y==W?!1:!0};
_.E=O2e.prototype;_.E.JSC$19356_setCrop=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,_.nF(V,2),_.nF(W.signatureFlagProto_,2))&&_.Tk(V,2,y);return this};
_.E.JSC$19356_setCircleCrop=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,YD(V,51),YD(W.signatureFlagProto_,51))&&_.Tk(V,51,y);return this};
_.E.JSC$19356_setImageCrop=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,YD(V,32),YD(W.signatureFlagProto_,32))&&_.Tk(V,32,y);return this};
_.E.JSC$19356_setHeight=function(y){var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,V.getHeight(),W.signatureFlagProto_.getHeight())&&_.y_(V,13,y);return this};
_.E.setCenterCrop=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,_.nF(V,20),_.nF(W.signatureFlagProto_,20))&&V.setCenterCrop(y);return this};
_.E.JSC$19356_setSmartCrop=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,_.nF(V,19),_.nF(W.signatureFlagProto_,19))&&_.Tk(V,19,y);return this};
_.E.JSC$19356_setPad=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,YD(V,60),YD(W.signatureFlagProto_,60))&&_.Tk(V,60,y);return this};
_.E.JSC$19356_setSmartCropUseFace=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,_.nF(V,67),_.nF(W.signatureFlagProto_,67))&&_.Tk(V,67,y);return this};
_.E.JSC$19356_setSmartCropNoClip=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,_.nF(V,52),_.nF(W.signatureFlagProto_,52))&&_.Tk(V,52,y);return this};
_.E.setSize=function(y){var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,V.getSize(),W.signatureFlagProto_.getSize())&&V.setSize(y);return this};
_.E.setToken=function(y){y=y||void 0;var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,V.getToken(),W.signatureFlagProto_.getToken())&&V.setToken(y);return this};
_.E.JSC$19356_setWidth=function(y){var W=this.JSC$19354_parsedOptions_,V=W.valueProto_;UC(y,V.getWidth(),W.signatureFlagProto_.getWidth())&&_.y_(V,12,y);return this};
_.E.clearOptions=function(){e0v(this,"");return this};
_.E.build=function(){this.JSC$19354_components_.length=0;var y=this.JSC$19354_parsedOptions_,W=y.valueProto_;y=y.signatureFlagProto_;uR(this,"s",W.getSize(),y.getSize());uR(this,"w",W.getWidth(),y.getWidth());Sv(this,"c",_.nF(W,2),_.nF(y,2));Sv(this,"d",_.nF(W,3),_.nF(y,3));uR(this,"h",W.getHeight(),y.getHeight());Sv(this,"s",YD(W,33),YD(y,33));Sv(this,"h",W.getHtml(),y.getHtml());Sv(this,"p",_.nF(W,19),_.nF(y,19));Sv(this,"pp",_.nF(W,52),_.nF(y,52));Sv(this,"pf",_.nF(W,67),_.nF(y,67));Sv(this,"n",
_.nF(W,20),_.nF(y,20));uR(this,"r",BI(W,26),BI(y,26));Sv(this,"r",_.nF(W,6),_.nF(y,6));Sv(this,"o",YD(W,27),YD(y,27));var V=_.$e(W,7,_.xe);DK(this,"o",V,_.$e(y,7,_.xe));V=_.$e(W,29,_.xe);DK(this,"j",V,_.$e(y,29,_.xe));uR(this,"x",BI(W,9),BI(y,9));uR(this,"y",BI(W,10),BI(y,10));uR(this,"z",BI(W,11),BI(y,11));Sv(this,"g",_.nF(W,14),_.nF(y,14));uR(this,"e",BI(W,15),BI(y,15));DK(this,"f",_.lz(W,16),_.lz(y,16));Sv(this,"k",YD(W,17),YD(y,17));Sv(this,"u",YD(W,18),!0);Sv(this,"ut",YD(W,45),!0);Sv(this,"i",
YD(W,22),!0);Sv(this,"a",YD(W,21),YD(y,21));Sv(this,"b",_.nF(W,23),_.nF(y,23));uR(this,"b",BI(W,38),BI(y,38));uR(this,"c",BI(W,39),BI(y,39),16,8);DK(this,"q",_.lz(W,28),_.lz(y,28));Sv(this,"fh",YD(W,30),YD(y,30));Sv(this,"fv",YD(W,31),YD(y,31));Sv(this,"fg",_.nF(W,34),_.nF(y,34));Sv(this,"ci",YD(W,32),YD(y,32));DK(this,"t",W.getToken(),y.getToken());DK(this,"nt0",_.lz(W,36),_.lz(y,36));Sv(this,"rw",_.nF(W,35),_.nF(y,35));Sv(this,"rwu",_.nF(W,41),_.nF(y,41));Sv(this,"rwa",_.nF(W,64),_.nF(y,64));Sv(this,
"nw",_.nF(W,48),_.nF(y,48));Sv(this,"rh",_.nF(W,49),_.nF(y,49));Sv(this,"no",_.nF(W,37),_.nF(y,37));Sv(this,"ns",YD(W,40),YD(y,40));uR(this,"k",BI(W,42),BI(y,42));uR(this,"p",BI(W,43),BI(y,43));uR(this,"l",BI(W,44),BI(y,44));uR(this,"v",BI(W,62),BI(y,62));Sv(this,"nu",YD(W,46),YD(y,46));Sv(this,"ft",YD(W,50),YD(y,50));Sv(this,"cc",YD(W,51),YD(y,51));Sv(this,"nd",YD(W,53),YD(y,53));Sv(this,"ip",YD(W,54),YD(y,54));Sv(this,"nc",YD(W,55),YD(y,55));uR(this,"a",BI(W,56),BI(y,56));Sv(this,"rj",YD(W,57),
YD(y,57));Sv(this,"rp",YD(W,58),YD(y,58));Sv(this,"rg",YD(W,59),YD(y,59));Sv(this,"pd",YD(W,60),YD(y,60));Sv(this,"pa",YD(W,61),YD(y,61));uR(this,"m",BI(W,63),BI(y,63));uR(this,"vb",Jh(W,68),Jh(y,68));uR(this,"vl",Jh(W,69),Jh(y,69));Sv(this,"lf",YD(W,65),YD(y,65));Sv(this,"mv",YD(W,66),YD(y,66));Sv(this,"id",YD(W,70),YD(y,70));uR(this,"ic",BI(W,71),!0);Sv(this,"pg",_.nF(W,72),_.nF(y,72));Sv(this,"mo",YD(W,73),YD(y,73));Sv(this,"al",YD(W,74),YD(y,74));uR(this,"iv",Jh(W,75),Jh(y,75));uR(this,"pi",RH(W,
76),RH(y,76));uR(this,"ya",RH(W,77),RH(y,77));uR(this,"ro",RH(W,78),RH(y,78));uR(this,"fo",RH(W,79),RH(y,79));Sv(this,"df",YD(W,80),YD(y,80));DK(this,"mm",_.lz(W,81),_.lz(y,81));Sv(this,"sg",YD(W,82),YD(y,82));Sv(this,"gd",YD(W,83),YD(y,83));Sv(this,"fm",YD(W,84),YD(y,84));uR(this,"ba",BI(W,85),BI(y,85));uR(this,"br",BI(W,86),BI(y,86));uR(this,"bc",W.getBackgroundColor(),y.getBackgroundColor(),16,8);uR(this,"pc",BI(W,88),BI(y,88),16,8);uR(this,"sc",BI(W,89),BI(y,89),16,8);Sv(this,"dv",YD(W,90),YD(y,
90));Sv(this,"md",YD(W,91),YD(y,91));uR(this,"cp",BI(W,92),BI(y,92));Sv(this,"sm",YD(W,93),YD(y,93));uR(this,"cv",BI(W,94),BI(y,94));Sv(this,"ng",YD(W,95),YD(y,95));Sv(this,"il",YD(W,96),YD(y,96));Sv(this,"lo",YD(W,97),YD(y,97));Sv(this,"vm",YD(W,98),YD(y,98));DK(this,"dc",_.lz(W,99),_.lz(y,99));Sv(this,"rf",YD(W,100),YD(y,100));DK(this,"vf",_.lz(W,102),_.lz(y,102));Sv(this,"ra",_.nF(W,103),_.nF(y,103));Sv(this,"ckm",YD(W,104),YD(y,104));Sv(this,"gm",YD(W,105),YD(y,105));Sv(this,"ngm",YD(W,106),YD(y,
106));uR(this,"em",BI(W,107),BI(y,107));Sv(this,"cr",YD(W,108),YD(y,108));uR(this,"sl",W.getStoryboardLevel(),y.getStoryboardLevel());uR(this,"sb",BI(W,110),BI(y,110));DK(this,"pt",_.lz(W,111),_.lz(y,111));DK(this,"gce",_.lz(W,112),_.lz(y,112));Sv(this,"tm",YD(W,113),YD(y,113));Sv(this,"ntm",YD(W,114),YD(y,114));uR(this,"mp",BI(W,115),BI(y,115));return this.JSC$19354_components_.join("-")};
var uR=function(y,W,V,w,t,F){if(V!=null){var I=t==void 0||t!=10&&t!=16?10:t;V=Number(V).toString(I);t=new UT3;t.append(I==16?"0x":"");I=t.append;F==void 0?F="":(F-=V.length,F=F<=0?"":(0,_.kG6)("0",F));I.call(t,F);t.append(V);oG3(y,W,t.toString(),!!Number(w))}},Sv=function(y,W,V,w){V&&oG3(y,W,"",!!w)},DK=function(y,W,V,w){V&&oG3(y,W,String(V),!!Number(w))},oG3=function(y,W,V,w){w&&(W=W.charAt(0).toUpperCase()+W.substring(1));
y.JSC$19354_components_.push(W+V)};_.pF(GL,O2e);_.E=GL.prototype;_.E.JSC$19356_setCrop=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setCrop.call(this,y)};
_.E.JSC$19356_setHeight=function(y){y=y==null||y<0?void 0:y;y!=null&&this.setSize();return GL.superClass_.JSC$19356_setHeight.call(this,y)};
_.E.JSC$19356_setImageCrop=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setImageCrop.call(this,y)};
_.E.JSC$19356_setCircleCrop=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setCircleCrop.call(this,y)};
_.E.setSize=function(y){_.VK(y)&&(y=Math.max(y.width,y.height));y=y==null||y<0?void 0:y;y!=null&&(this.JSC$19356_setWidth(),this.JSC$19356_setHeight());return GL.superClass_.setSize.call(this,y)};
_.E.JSC$19356_setSmartCrop=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setSmartCrop.call(this,y)};
_.E.JSC$19356_setSmartCropNoClip=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setSmartCropNoClip.call(this,y)};
_.E.JSC$19356_setSmartCropUseFace=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setSmartCropUseFace.call(this,y)};
_.E.setCenterCrop=function(y){y&&lR(this);return GL.superClass_.setCenterCrop.call(this,y)};
_.E.JSC$19356_setPad=function(y){y&&lR(this);return GL.superClass_.JSC$19356_setPad.call(this,y)};
_.E.JSC$19356_setWidth=function(y){y=y==null||y<0?void 0:y;y!=null&&this.setSize();return GL.superClass_.JSC$19356_setWidth.call(this,y)};
var KxP=function(y){y.clearOptions();var W=y.JSC$19354_parsedOptions_,V=W.valueProto_;UC(!0,_.nF(V,3),_.nF(W.signatureFlagProto_,3))&&_.Tk(V,3,!0);return y},lR=function(y){y.setCenterCrop();
y.JSC$19356_setCircleCrop();y.JSC$19356_setCrop();y.JSC$19356_setImageCrop();y.JSC$19356_setPad();y.JSC$19356_setSmartCrop();y.JSC$19356_setSmartCropNoClip();y.JSC$19356_setSmartCropUseFace()};
GL.prototype.build=function(){var y=this.JSC$19354_parsedOptions_.valueProto_;YD(y,18)||YD(y,45)?y.getSize()||this.setSize(0):(y=this.JSC$19354_parsedOptions_.valueProto_,y.getSize()||y.getWidth()||y.getHeight()||(this.setSize(),this.JSC$19356_setHeight(),this.JSC$19356_setWidth(),lR(this)));return GL.superClass_.build.call(this)};var pYd=/^[^\/]*\/\//,x7=function(y,W){W=W===void 0?!1:W;this.original_=y;this.originalPrefix_="";(y=this.original_.match(pYd))&&y[0]?(this.originalPrefix_=y[0],y=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):y="http://"+this.original_;this.uri_=_.Ey(y,!0);this.isFreeformUrl_=W;this.JSC$19360_valid_=!0;this.obfuscated_=!1},iHm=function(y,W){y.JSC$19362_pathPrefix_=y.JSC$19362_pathPrefix_?y.JSC$19362_pathPrefix_+("/"+W):W},k7=function(y){if(y.JSC$19362_components_==
void 0){var W=y.uri_.getPath().substring(1);
y.JSC$19362_pathPrefix_=null;if(y.isFreeformUrl_){y.JSC$19362_components_=[];if((W.match(/=/g)||[]).length>1)return y.JSC$19360_valid_=!1,y.JSC$19362_components_;var V=W.indexOf("=");V!=-1?(y.JSC$19362_components_.push(W.substr(0,V)),y.JSC$19362_components_.push(W.substr(V+1))):y.JSC$19362_components_.push(W);return y.JSC$19362_components_}y.JSC$19362_components_=W.split("/");W=y.JSC$19362_components_.length;W>2&&y.JSC$19362_components_[0]=="u"&&(iHm(y,y.JSC$19362_components_[0]+"/"+y.JSC$19362_components_[1]),
y.JSC$19362_components_.shift(),y.JSC$19362_components_.shift(),W-=2);if(W==0||W==4||W>7)return y.JSC$19360_valid_=!1,y.JSC$19362_components_;if(W==2)iHm(y,y.JSC$19362_components_[0]);else if(y.JSC$19362_components_[0]=="image")iHm(y,y.JSC$19362_components_[0]);else if(W==7||W==3)return y.JSC$19360_valid_=!1,y.JSC$19362_components_;if(W<=3){y.obfuscated_=!0;W==3&&(iHm(y,y.JSC$19362_components_[1]),y.JSC$19362_components_.shift(),--W);--W;V=y.JSC$19362_components_[W];var w=V.indexOf("=");w!=-1&&(y.JSC$19362_components_[W]=
V.substr(0,w),y.JSC$19362_components_.push(V.substr(w+1)))}}return y.JSC$19362_components_};
x7.prototype.isValid=function(){k7(this);return this.JSC$19360_valid_};
x7.prototype.isObfuscated=function(){k7(this);return this.obfuscated_};
var fej=function(y){k7(y);return y.isFreeformUrl_},sC=function(y){k7(y);
y.JSC$19362_pathPrefix_==void 0&&(y.JSC$19362_pathPrefix_=null);return y.JSC$19362_pathPrefix_},TFW=function(y){switch(k7(y).length){case 7:return!0;
case 6:return sC(y)==null;case 5:return!1;case 3:return!0;case 2:return sC(y)==null;case 1:return!1;default:return!1}},AT=function(y,W){if(fej(y))a:{switch(W){case 7:W=0;
break;case 4:if(!TFW(y)){y=null;break a}W=1;break;default:y=null;break a}y=k7(y)[W]}else if(y.isObfuscated())a:{var V=sC(y)!=null?1:0;switch(W){case 6:W=V;break;case 4:if(!TFW(y)){y=null;break a}W=1+V;break;default:y=null;break a}y=k7(y)[W]}else a:{V=sC(y)!=null?1:0;switch(W){case 0:W=V;break;case 1:W=1+V;break;case 2:W=2+V;break;case 3:W=3+V;break;case 4:if(!TFW(y)){y=null;break a}W=4+V;break;case 5:W=TFW(y)?1:0;W=4+V+W;break;default:y=null;break a}y=k7(y)[W]}return y};
x7.prototype.getOptions=function(){this.options_==void 0&&(this.options_=AT(this,4));return this.options_};var L_u=function(){};
L_u.prototype.parse=function(y,W){return new vCC(y,W===void 0?!1:W)};
var vCC=function(y,W){x7.call(this,y,W===void 0?!1:W)};
_.p(vCC,x7);_.pF(rj,GL);var dKj;rj.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
rj.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var y=rj.superClass_.build.call(this),W=[];sC(this.parsedImageUrl_)!=null&&W.push(sC(this.parsedImageUrl_));var V=fej(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var w=this.parsedImageUrl_;w.obfuscatedData_==void 0&&(w.obfuscatedData_=AT(w,6));W.push(w.obfuscatedData_+(y?"="+y:""))}else if(V){w=W.push;var t=this.parsedImageUrl_;t.freeformUrlPath_===void 0&&(t.freeformUrlPath_=AT(t,
7));w.call(W,t.freeformUrlPath_);y&&W.push(y)}else w=W.push,t=this.parsedImageUrl_,t.obfuscatedGaiaId_==void 0&&(t.obfuscatedGaiaId_=AT(t,0)),w.call(W,t.obfuscatedGaiaId_),w=W.push,t=this.parsedImageUrl_,t.photoId_==void 0&&(t.photoId_=AT(t,1)),w.call(W,t.photoId_),w=W.push,t=this.parsedImageUrl_,t.imageVersion_==void 0&&(t.imageVersion_=AT(t,2)),w.call(W,t.imageVersion_),w=W.push,t=this.parsedImageUrl_,t.signature_==void 0&&(t.signature_=AT(t,3)),w.call(W,t.signature_),y&&W.push(y),y=W.push,w=this.parsedImageUrl_,
w.filename_==void 0&&(w.filename_=AT(w,5)),y.call(W,w.filename_);W=V?W.join("="):W.join("/");W=_.Ey(this.protocolPrefix_+this.JSC$19368_domain_+"/"+W+(this.JSC$19368_query_?"?"+this.JSC$19368_query_:"")).toString();W.startsWith("%3a//")&&(W=W.replace("%3a//","://"));return W};var mY3=_.CF(["viewBox"]),MbP=_.CF(["width"]),qQu=_.CF(["height"]),UYj=_.CF(["fill"]),uJW=_.CF(["id"]),SQ4=_.CF(["x"]),DYW=_.CF(["y"]);czt.prototype.getLength=function(){return this.parsedData.length};
czt.prototype.write=function(y){for(var W=0,V=this.parsedData.length;W<V;W++)y.put(this.parsedData[W],8)};
var fHj=function(y,W){var V=new czt(W);y.dataList.push(V);V=y.errorCorrectLevel;var w=1,t=encodeURI(W).toString().replace(/%[0-9a-fA-F]{2}/g,"a");W=t.length+(t.length!=W?3:0);t=0;for(var F=Y7.length;t<=F;t++){var I=0;switch(V){case 1:I=Y7[t][0];break;case 0:I=Y7[t][1];break;case 3:I=Y7[t][2];break;case 2:I=Y7[t][3]}if(W<=I)break;else w++}if(w>Y7.length)throw Error("Ek");y.typeNumber=w;y.dataCache=null};
e5v.prototype.isDark=function(y,W){if(y<0||this.moduleCount<=y||W<0||this.moduleCount<=W)throw Error("wk`"+y+"`"+W);return this.modules[y][W]};
for(var T5u=function(y,W,V){y.moduleCount=y.typeNumber*4+17;y.modules=Array(y.moduleCount);for(var w=0;w<y.moduleCount;w++){y.modules[w]=Array(y.moduleCount);for(var t=0;t<y.moduleCount;t++)y.modules[w][t]=null}leC(y,0,0);leC(y,y.moduleCount-7,0);leC(y,0,y.moduleCount-7);w=xYj[y.typeNumber-1];for(t=0;t<w.length;t++)for(var F=0;F<w.length;F++){var I=w[t],P=w[F];if(y.modules[I][P]==null)for(var C=-2;C<=2;C++)for(var d=-2;d<=2;d++)y.modules[I+C][P+d]=C==-2||C==2||d==-2||d==2||C==0&&d==0?!0:!1}for(w=
8;w<y.moduleCount-8;w++)y.modules[w][6]==null&&(y.modules[w][6]=w%2==0);for(w=8;w<y.moduleCount-8;w++)y.modules[6][w]==null&&(y.modules[6][w]=w%2==0);w=y.errorCorrectLevel<<3|V;for(t=w<<10;Br(t)-Br(1335)>=0;)t^=1335<<Br(t)-Br(1335);w=(w<<10|t)^21522;for(t=0;t<15;t++)F=!W&&(w>>t&1)==1,t<6?y.modules[t][8]=F:t<8?y.modules[t+1][8]=F:y.modules[y.moduleCount-15+t][8]=F;for(t=0;t<15;t++)F=!W&&(w>>t&1)==1,t<8?y.modules[8][y.moduleCount-t-1]=F:t<9?y.modules[8][15-t-1+1]=F:y.modules[8][15-t-1]=F;y.modules[y.moduleCount-
8][8]=!W;if(y.typeNumber>=7){w=y.typeNumber;for(t=w<<12;Br(t)-Br(7973)>=0;)t^=7973<<Br(t)-Br(7973);w=w<<12|t;for(t=0;t<18;t++)F=!W&&(w>>t&1)==1,y.modules[Math.floor(t/3)][t%3+y.moduleCount-8-3]=F;for(t=0;t<18;t++)F=!W&&(w>>t&1)==1,y.modules[t%3+y.moduleCount-8-3][Math.floor(t/3)]=F}if(y.dataCache==null){t=y.typeNumber;F=y.dataList;W=y.errorCorrectLevel;w=kF3(t,W);if(w==void 0)throw Error("Dk`"+t+"`"+W);I=w.length/3;W=[];for(P=0;P<I;P++){C=w[P*3];d=w[P*3+1];for(var L=w[P*3+2],z=0;z<C;z++)W.push(new h5u(d,
L))}w=new oCE;for(I=0;I<F.length;I++)P=F[I],w.put(P.mode,4),w.put(P.getLength(),sPE(P.mode,t)),P.write(w);for(I=t=0;I<W.length;I++)t+=W[I].dataCount;if(w.length>t*8)throw Error("xk`"+w.length+"`"+t*8);for(w.length+4<=t*8&&w.put(0,4);w.length%8!=0;)A0u(w,!1);for(;!(w.length>=t*8);){w.put(236,8);if(w.length>=t*8)break;w.put(17,8)}F=t=d=0;I=Array(W.length);P=Array(W.length);for(C=0;C<W.length;C++){z=W[C].dataCount;var c=W[C].totalCount-z;t=Math.max(t,z);F=Math.max(F,c);I[C]=Array(z);for(L=0;L<I[C].length;L++)I[C][L]=
255&w.buffer[L+d];d+=z;L=c;z=new bG([1],0);for(c=0;c<L;c++)z=z.multiply(new bG([1,YQu(c)],0));L=z;z=(new bG(I[C],L.getLength()-1)).mod(L);P[C]=Array(L.getLength()-1);for(L=0;L<P[C].length;L++)c=L+z.getLength()-P[C].length,P[C][L]=c>=0?z.get(c):0}for(L=w=0;L<W.length;L++)w+=W[L].totalCount;w=Array(w);for(L=d=0;L<t;L++)for(C=0;C<W.length;C++)L<I[C].length&&(w[d++]=I[C][L]);for(L=0;L<F;L++)for(C=0;C<W.length;C++)L<P[C].length&&(w[d++]=P[C][L]);y.dataCache=w}W=y.dataCache;w=-1;t=y.moduleCount-1;F=7;I=
0;for(P=y.moduleCount-1;P>0;P-=2)for(P==6&&P--;;){for(C=0;C<2;C++)y.modules[t][P-C]==null&&(d=!1,I<W.length&&(d=(W[I]>>>F&1)==1),BFe(V,t,P-C)&&(d=!d),y.modules[t][P-C]=d,F--,F==-1&&(I++,F=7));t+=w;if(t<0||y.moduleCount<=t){t-=w;w=-w;break}}},leC=function(y,W,V){for(var w=-1;w<=7;w++)if(!(W+w<=-1||y.moduleCount<=W+w))for(var t=-1;t<=7;t++)V+t<=-1||y.moduleCount<=V+t||(y.modules[W+w][V+t]=0<=w&&w<=6&&(t==0||t==6)||0<=t&&t<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=t&&t<=4?!0:!1)},mK4=function(y){for(var W=0,
V=0,w=0;w<8;w++){T5u(y,!0,w);
var t=y;for(var F=t.moduleCount,I=0,P=0;P<F;P++)for(var C=0;C<F;C++){for(var d=0,L=t.isDark(P,C),z=-1;z<=1;z++)if(!(P+z<0||F<=P+z))for(var c=-1;c<=1;c++)C+c<0||F<=C+c||(z!=0||c!=0)&&L==t.isDark(P+z,C+c)&&d++;d>5&&(I+=3+d-5)}for(P=0;P<F-1;P++)for(C=0;C<F-1;C++)if(d=0,t.isDark(P,C)&&d++,t.isDark(P+1,C)&&d++,t.isDark(P,C+1)&&d++,t.isDark(P+1,C+1)&&d++,d==0||d==4)I+=3;for(P=0;P<F;P++)for(C=0;C<F-6;C++)t.isDark(P,C)&&!t.isDark(P,C+1)&&t.isDark(P,C+2)&&t.isDark(P,C+3)&&t.isDark(P,C+4)&&!t.isDark(P,C+5)&&
t.isDark(P,C+6)&&(I+=40);for(C=0;C<F;C++)for(P=0;P<F-6;P++)t.isDark(P,C)&&!t.isDark(P+1,C)&&t.isDark(P+2,C)&&t.isDark(P+3,C)&&t.isDark(P+4,C)&&!t.isDark(P+5,C)&&t.isDark(P+6,C)&&(I+=40);for(C=d=0;C<F;C++)for(P=0;P<F;P++)t.isDark(P,C)&&d++;t=I+=Math.abs(100*d/F/F-50)/5*10;if(w==0||W>t)W=t,V=w}return V},xYj=[[],
[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]],Br=function(y){for(var W=0;y!=0;)W++,y>>>=1;return W},BFe=function(y,W,V){switch(y){case 0:return(W+V)%2==0;
case 1:return W%2==0;case 2:return V%3==0;case 3:return(W+V)%3==0;case 4:return(Math.floor(W/2)+Math.floor(V/3))%2==0;case 5:return W*V%2+W*V%3==0;case 6:return(W*V%2+W*V%3)%2==0;case 7:return(W*V%3+(W+V)%2)%2==0;default:throw Error("yk`"+y);}},sPE=function(y,W){if(1<=W&&W<10)switch(y){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("zk`"+y);}else if(W<27)switch(y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("zk`"+y);}else if(W<41)switch(y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("zk`"+y);}else throw Error("Ak`"+W);},JT=function(y){if(y<1)throw Error("Bk`"+y);
return J0v[y]},YQu=function(y){for(;y<0;)y+=255;
for(;y>=256;)y-=255;return Rr[y]},Rr=Array(256),J0v=Array(256),R0u=0;R0u<8;R0u++)Rr[R0u]=1<<R0u;
for(var jv=8;jv<256;jv++)Rr[jv]=Rr[jv-4]^Rr[jv-5]^Rr[jv-6]^Rr[jv-8];for(var jPv=0;jPv<255;jPv++)J0v[Rr[jPv]]=jPv;bG.prototype.get=function(y){return this.num[y]};
bG.prototype.getLength=function(){return this.num.length};
bG.prototype.multiply=function(y){for(var W=Array(this.getLength()+y.getLength()-1),V=0;V<this.getLength();V++)for(var w=0;w<y.getLength();w++)W[V+w]^=YQu(JT(this.get(V))+JT(y.get(w)));return new bG(W,0)};
bG.prototype.mod=function(y){if(this.getLength()-y.getLength()<0)return this;for(var W=JT(this.get(0))-JT(y.get(0)),V=Array(this.getLength()),w=0;w<this.getLength();w++)V[w]=this.get(w);for(w=0;w<y.getLength();w++)V[w]^=YQu(JT(y.get(w))+W);return(new bG(V,0)).mod(y)};
var $Yu=[[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]],kF3=function(y,W){switch(W){case 1:return $Yu[(y-1)*4];case 0:return $Yu[(y-1)*4+1];case 3:return $Yu[(y-1)*4+2];case 2:return $Yu[(y-1)*4+3]}};
oCE.prototype.get=function(y){return(this.buffer[Math.floor(y/8)]>>>7-y%8&1)==1};
oCE.prototype.put=function(y,W){for(var V=0;V<W;V++)A0u(this,(y>>>W-V-1&1)==1)};
var A0u=function(y,W){var V=Math.floor(y.length/8);y.buffer.length<=V&&y.buffer.push(0);W&&(y.buffer[V]|=128>>>y.length%8);y.length++},Y7=[[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]],i2j=function(){var y=function(W,V){this.JSC$19388__el=W;this.JSC$19388__htOption=V};
y.prototype.draw=function(W){function V(L,z){L=document.createElementNS("http://www.w3.org/2000/svg",L);for(var c in z)z.hasOwnProperty(c)&&(c==="href"?_.hw3(L,z[c]):_.em([_.ij(mY3),_.ij(MbP),_.ij(qQu),_.ij(UYj),_.ij(uJW),_.ij(SQ4),_.ij(DYW)],L,c,z[c]));return L}
var w=this.JSC$19388__htOption,t=this.JSC$19388__el,F=W.moduleCount;this.clear();var I=V("svg",{viewBox:"0 0 "+String(F)+" "+String(F),width:"100%",height:"100%",fill:w.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});t.appendChild(I);I.appendChild(V("rect",{fill:w.colorLight,width:"100%",height:"100%"}));I.appendChild(V("rect",{fill:w.colorDark,width:"1",height:"1",id:"template"}));for(var P=0;P<F;P++)for(var C=0;C<F;C++)if(W.isDark(P,C)){var d=V("use",{x:String(P),y:String(C),href:"#template"});
I.appendChild(d)}};
y.prototype.clear=function(){for(;this.JSC$19388__el.hasChildNodes();)this.JSC$19388__el.removeChild(this.JSC$19388__el.lastChild)};
return y}(),pEv=document.documentElement.tagName.toLowerCase()==="svg"?i2j:typeof CanvasRenderingContext2D!="undefined"?function(){var y=function(W,V){this._bIsPainted=!1;
K_E();this.JSC$19388__htOption=V;this._elCanvas=document.createElement("canvas");this._elCanvas.width=V.width;this._elCanvas.height=V.height;W.appendChild(this._elCanvas);this.JSC$19388__el=W;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$19388__el.appendChild(this._elImage);this._bSupportDataURI=null};
y.prototype._onMakeImage=function(){var W=this._elCanvas.toDataURL("image/png");this._elImage.src=W;this._elImage.style.display="block";this._elCanvas.style.display="none"};
y.prototype._safeSetDataURI=function(W,V){var w=this;w._fFail=V;w._fSuccess=W;w._bSupportDataURI===null?(W=_.xu("IMG"),V=function(){w._bSupportDataURI=!1;w._fFail&&w._fFail.call(w)},W.onabort=V,W.onerror=V,W.onload=function(){w._bSupportDataURI=!0;
w._fSuccess&&w._fSuccess.call(w)},W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):w._bSupportDataURI===!0&&w._fSuccess?w._fSuccess.call(w):w._bSupportDataURI===!1&&w._fFail&&w._fFail.call(w)};
y.prototype.draw=function(W){var V=this._oContext,w=this.JSC$19388__htOption,t=W.moduleCount,F=w.width/t,I=w.height/t,P=Math.round(F),C=Math.round(I);this._elImage.style.display="none";this.clear();for(var d=0;d<t;d++)for(var L=0;L<t;L++){var z=W.isDark(d,L),c=L*F,K=d*I;V.strokeStyle=z?w.colorDark:w.colorLight;V.lineWidth=1;V.fillStyle=z?w.colorDark:w.colorLight;V.fillRect(c,K,F,I);V.strokeRect(Math.floor(c)+.5,Math.floor(K)+.5,P,C);V.strokeRect(Math.ceil(c)-.5,Math.ceil(K)-.5,P,C)}this._bIsPainted=
!0};
y.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
y.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
y.prototype.round=function(W){return W?Math.floor(W*1E3)/1E3:W};
return y}():function(){var y=function(W,V){this.JSC$19388__el=W;
this.JSC$19388__htOption=V};
y.prototype.draw=function(W){for(var V=this.JSC$19388__htOption,w=this.JSC$19388__el,t=W.moduleCount,F=Math.floor(V.width/t),I=Math.floor(V.height/t),P=['<table style="border:0;border-collapse:collapse;">'],C=0;C<t;C++){P.push("<tr>");for(var d=0;d<t;d++)P.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+F+"px;height:"+I+"px;background-color:"+(W.isDark(C,d)?V.colorDark:V.colorLight)+';"></td>');P.push("</tr>")}P.push("</table>");W=P.join("");W=_.Tmm(_.MQE,W);_.c7(w,W);
W=w.childNodes[0];t=(V.width-W.offsetWidth)/2;F=(V.height-W.offsetHeight)/2;t>0&&F>0&&(W.style.margin=F+"px "+t+"px")};
y.prototype.clear=function(){this.JSC$19388__el.textContent=""};
return y}();
ME3.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19391__android||this.JSC$19391__android>=3)&&this._oDrawing.makeImage()};
ME3.prototype.clear=function(){this._oDrawing.clear()};
_.Vj.QRCode=ME3;var nGC={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var $7=function(){};
$7.prototype.stringify=function(y){return _.Vj.JSON.stringify(y,void 0)};
$7.prototype.parse=function(y){return _.Vj.JSON.parse(y,void 0)};var HHj=function(){_.xs.call(this,"z")};
_.pF(HHj,_.xs);var XYj=function(){_.xs.call(this,"y")};
_.pF(XYj,_.xs);var aej=null,GFv=function(){return aej=aej||new _.Bg},r0E=function(y){_.xs.call(this,"serverreachability",y)};
_.pF(r0E,_.xs);var nQ=function(y){var W=GFv();W.dispatchEvent(new r0E(W,y))},bHm=function(y,W){_.xs.call(this,"statevent",y);
this.stat=W};
_.pF(bHm,_.xs);var Hr=function(y){var W=GFv();W.dispatchEvent(new bHm(W,y))},QPC=function(y,W,V,w){_.xs.call(this,"timingevent",y);
this.size=W;this.rtt=V;this.retries=w};
_.pF(QPC,_.xs);var ZHj=function(y,W,V){var w=GFv();w.dispatchEvent(new QPC(w,y,W,V))},X3=function(y,W){if(typeof y!=="function")throw Error("Fk");
return _.Vj.setTimeout(function(){y()},W)};var ar=function(){this.redactEnabled_=!0};
ar.prototype.disableRedact=function(){this.redactEnabled_=!1};
var yRq=function(y,W,V,w,t,F){y.info(function(){if(y.redactEnabled_)if(F){var I="";for(var P=F.split("&"),C=0;C<P.length;C++){var d=P[C].split("=");if(d.length>1){var L=d[0];d=d[1];var z=L.split("_");I=z.length>=2&&z[1]=="type"?I+(L+"="+d+"&"):I+(L+"=redacted&")}}}else I=null;else I=F;return"XMLHTTP REQ ("+w+") [attempt "+t+"]: "+W+"\n"+V+"\n"+I})},WFC=function(y,W,V,w,t,F,I){y.info(function(){return"XMLHTTP RESP ("+w+") [ attempt "+t+"]: "+W+"\n"+V+"\n"+F+" "+I})},G9=function(y,W,V,w){y.info(function(){return"XMLHTTP TEXT ("+
W+"): "+V9m(y,V)+(w?" "+w:"")})},wsm=function(y,W){y.info(function(){return"TIMEOUT: "+W})};
ar.prototype.debug=function(){};
ar.prototype.info=function(){};
ar.prototype.warning=function(){};
var V9m=function(y,W){if(!y.redactEnabled_)return W;if(!W)return null;try{var V=JSON.parse(W);if(V)for(var w=0;w<V.length;w++)if(Array.isArray(V[w])){var t=V[w];if(!(t.length<2)){var F=t[1];if(Array.isArray(F)&&!(F.length<1)){var I=F[0];if(I!="noop"&&I!="stop"&&I!="close")for(var P=1;P<F.length;P++)F[P]=""}}}return(0,_.Xl)(V)}catch(C){return y.debug("Exception parsing expected JS array - probably was not JS"),W}};var rb=function(y,W,V,w,t){this.JSC$19413_channel_=y;this.JSC$19413_channelDebug_=W;this.sid_=V;this.JSC$19413_rid_=w;this.JSC$19413_retryId_=t||1;this.JSC$19413_eventHandler_=new _.eK(this);this.timeout_=45E3;this.JSC$19413_extraHeaders_=null;this.JSC$19413_successful_=!1;this.JSC$19413_postData_=this.JSC$19413_requestUri_=this.JSC$19413_baseUri_=this.JSC$19413_type_=this.JSC$19413_requestStartTime_=this.JSC$19413_watchDogTimeoutTime_=this.JSC$19413_watchDogTimerId_=null;this.JSC$19413_pendingMessages_=
[];this.JSC$19413_xmlHttp_=null;this.JSC$19413_xmlHttpChunkStart_=0;this.JSC$19413_lastError_=this.JSC$19413_verb_=null;this.JSC$19413_lastStatusCode_=-1;this.JSC$19413_cancelled_=!1;this.JSC$19413_readyStateChangeThrottleMs_=0;this.JSC$19413_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new t9j},t9j=function(){this.JSC$19415_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},FFu=function(y,W){switch(y){case 0:return"Non-200 return code ("+W+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},E$4={},N63={};
rb.prototype.setTimeout=function(y){this.timeout_=y};
var g$C=function(y,W,V){y.JSC$19413_type_=1;y.JSC$19413_baseUri_=_.mx(W.clone());y.JSC$19413_postData_=V;y.decodeChunks_=!0;Igq(y,null)},Igq=function(y,W){y.JSC$19413_requestStartTime_=Date.now();
Pyv(y);y.JSC$19413_requestUri_=y.JSC$19413_baseUri_.clone();DL(y.JSC$19413_requestUri_,"t",y.JSC$19413_retryId_);y.JSC$19413_xmlHttpChunkStart_=0;var V=y.JSC$19413_channel_.JSC$19432_supportsCrossDomainXhrs_;y.fetchResponseState_=new t9j;y.JSC$19413_xmlHttp_=Cyd(y.JSC$19413_channel_,V?W:null,!y.JSC$19413_postData_);y.JSC$19413_readyStateChangeThrottleMs_>0&&(y.JSC$19413_readyStateChangeThrottle_=new _.d7((0,_.jA)(y.JSC$19417_xmlHttpHandler_,y,y.JSC$19413_xmlHttp_),y.JSC$19413_readyStateChangeThrottleMs_));
y.JSC$19413_eventHandler_.listen(y.JSC$19413_xmlHttp_,"readystatechange",y.JSC$19417_readyStateChangeHandler_);W=y.JSC$19413_extraHeaders_?_.Gc.clone(y.JSC$19413_extraHeaders_):{};y.JSC$19413_postData_?(y.JSC$19413_verb_||(y.JSC$19413_verb_="POST"),W["Content-Type"]="application/x-www-form-urlencoded",y.JSC$19413_xmlHttp_.send(y.JSC$19413_requestUri_,y.JSC$19413_verb_,y.JSC$19413_postData_,W)):(y.JSC$19413_verb_="GET",y.JSC$19413_xmlHttp_.send(y.JSC$19413_requestUri_,y.JSC$19413_verb_,null,W));nQ(1);
yRq(y.JSC$19413_channelDebug_,y.JSC$19413_verb_,y.JSC$19413_requestUri_,y.JSC$19413_rid_,y.JSC$19413_retryId_,y.JSC$19413_postData_)};
rb.prototype.JSC$19417_readyStateChangeHandler_=function(y){y=y.target;var W=this.JSC$19413_readyStateChangeThrottle_;W&&_.G0(y)==3?(this.JSC$19413_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$19417_xmlHttpHandler_(y)};
rb.prototype.JSC$19417_xmlHttpHandler_=function(y){try{y==this.JSC$19413_xmlHttp_?Oov(this):this.JSC$19413_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$19413_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),v$j(this)}finally{}};
var Oov=function(y){var W=_.G0(y.JSC$19413_xmlHttp_),V=y.JSC$19413_xmlHttp_.JSC$9721_lastErrorCode_,w=y.JSC$19413_xmlHttp_.getStatus();if(!(W<3||W==3&&!v$j(y))){y.JSC$19413_cancelled_||W!=4||V==7||(V==8||w<=0?nQ(3):nQ(2));dce(y);var t=y.JSC$19413_xmlHttp_.getStatus();y.JSC$19413_lastStatusCode_=t;V=LFu(y);v$j(y)||y.JSC$19413_channelDebug_.debug(function(){return"No response text for uri "+y.JSC$19413_requestUri_+" status "+t});
y.JSC$19413_successful_=t==200;WFC(y.JSC$19413_channelDebug_,y.JSC$19413_verb_,y.JSC$19413_requestUri_,y.JSC$19413_rid_,y.JSC$19413_retryId_,W,t);if(y.JSC$19413_successful_){if(y.decodeInitialResponse_&&!y.initialResponseDecoded_)if(w=zEj(y))G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,w,"Initial handshake response via X-HTTP-Initial-Response"),y.initialResponseDecoded_=!0,cRj(y,w);else{y.JSC$19413_successful_=!1;y.JSC$19413_lastError_=3;Hr(12);y.JSC$19413_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
y.JSC$19413_rid_+")");bR(y);Qt(y);return}y.decodeChunks_?eEu(y,W,V):(G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,V,null),cRj(y,V));W==4&&bR(y);y.JSC$19413_successful_&&!y.JSC$19413_cancelled_&&(W==4?hEC(y.JSC$19413_channel_,y):(y.JSC$19413_successful_=!1,Pyv(y)))}else aQC(y.JSC$19413_xmlHttp_),t==400&&V.indexOf("Unknown SID")>0?(y.JSC$19413_lastError_=3,Hr(12),y.JSC$19413_channelDebug_.warning("XMLHTTP Unknown SID ("+y.JSC$19413_rid_+")")):(y.JSC$19413_lastError_=0,Hr(13),y.JSC$19413_channelDebug_.warning("XMLHTTP Bad status "+
t+" ("+y.JSC$19413_rid_+")")),bR(y),Qt(y)}},zEj=function(y){return y.JSC$19413_xmlHttp_&&(y=Bo(y.JSC$19413_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.gu(y)?y:null},LFu=function(y){if(!o$P(y))return y.JSC$19413_xmlHttp_.getResponseText();
var W=y.JSC$19413_xmlHttp_.getResponse();if(W==="")return"";var V="",w=W.length,t=_.G0(y.JSC$19413_xmlHttp_)==4;if(!y.fetchResponseState_.JSC$19415_textDecoder){if(typeof TextDecoder==="undefined")return bR(y),Qt(y),"";y.fetchResponseState_.JSC$19415_textDecoder=new _.Vj.TextDecoder}for(var F=0;F<w;F++)y.fetchResponseState_.responseArrivedForFetch=!0,V+=y.fetchResponseState_.JSC$19415_textDecoder.decode(W[F],{stream:!(t&&F==w-1)});W.length=0;y.fetchResponseState_.responseBuffer+=V;y.JSC$19413_xmlHttpChunkStart_=
0;return y.fetchResponseState_.responseBuffer},v$j=function(y){return y.JSC$19413_xmlHttp_?y.fetchResponseState_.responseArrivedForFetch?!0:!(!y.JSC$19413_xmlHttp_.getResponseText()&&!y.JSC$19413_xmlHttp_.getResponse()):!1},o$P=function(y){return y.JSC$19413_xmlHttp_?y.JSC$19413_verb_=="GET"&&y.JSC$19413_type_!=2&&y.JSC$19413_channel_.usesFetchStreams_:!1},eEu=function(y,W,V){for(var w=!0,t;!y.JSC$19413_cancelled_&&y.JSC$19413_xmlHttpChunkStart_<V.length;)if(t=KFW(y,V),t==N63){W==4&&(y.JSC$19413_lastError_=
4,Hr(14),w=!1);
G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,null,"[Incomplete Response]");break}else if(t==E$4){y.JSC$19413_lastError_=4;Hr(15);G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,V,"[Invalid Chunk]");w=!1;break}else G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,t,null),cRj(y,t);o$P(y)&&y.JSC$19413_xmlHttpChunkStart_!=0&&(y.fetchResponseState_.responseBuffer=y.fetchResponseState_.responseBuffer.slice(y.JSC$19413_xmlHttpChunkStart_),y.JSC$19413_xmlHttpChunkStart_=0);W!=4||V.length!=0||y.fetchResponseState_.responseArrivedForFetch||
(y.JSC$19413_lastError_=1,Hr(16),w=!1);y.JSC$19413_successful_=y.JSC$19413_successful_&&w;w?V.length>0&&!y.firstByteReceived_&&(y.firstByteReceived_=!0,W=y.JSC$19413_channel_,W.JSC$19432_backChannelRequest_==y&&W.detectBufferingProxy_&&!W.bpDetectionDone_&&(W.JSC$19432_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+V.length),psW(W),W.bpDetectionDone_=!0,Hr(11))):(G9(y.JSC$19413_channelDebug_,y.JSC$19413_rid_,V,"[Invalid Chunked Response]"),bR(y),Qt(y))},KFW=function(y,W){var V=
y.JSC$19413_xmlHttpChunkStart_,w=W.indexOf("\n",V);
if(w==-1)return N63;V=Number(W.substring(V,w));if(isNaN(V))return E$4;w+=1;if(w+V>W.length)return N63;W=W.slice(w,w+V);y.JSC$19413_xmlHttpChunkStart_=w+V;return W};
rb.prototype.cancel=function(){this.JSC$19413_cancelled_=!0;bR(this)};
var Pyv=function(y){y.JSC$19413_watchDogTimeoutTime_=Date.now()+y.timeout_;io4(y,y.timeout_)},io4=function(y,W){if(y.JSC$19413_watchDogTimerId_!=null)throw Error("Gk");
y.JSC$19413_watchDogTimerId_=X3((0,_.jA)(y.JSC$19417_onWatchDogTimeout_,y),W)},dce=function(y){y.JSC$19413_watchDogTimerId_&&(_.Vj.clearTimeout(y.JSC$19413_watchDogTimerId_),y.JSC$19413_watchDogTimerId_=null)};
rb.prototype.JSC$19417_onWatchDogTimeout_=function(){this.JSC$19413_watchDogTimerId_=null;var y=Date.now();y-this.JSC$19413_watchDogTimeoutTime_>=0?(wsm(this.JSC$19413_channelDebug_,this.JSC$19413_requestUri_),this.JSC$19413_type_!=2&&(nQ(3),Hr(17)),bR(this),this.JSC$19413_lastError_=2,Qt(this)):(this.JSC$19413_channelDebug_.warning("WatchDog timer called too early"),io4(this,this.JSC$19413_watchDogTimeoutTime_-y))};
var Qt=function(y){y.JSC$19413_channel_.state_==0||y.JSC$19413_cancelled_||hEC(y.JSC$19413_channel_,y)},bR=function(y){dce(y);
_.La(y.JSC$19413_readyStateChangeThrottle_);y.JSC$19413_readyStateChangeThrottle_=null;y.JSC$19413_eventHandler_.removeAll();if(y.JSC$19413_xmlHttp_){var W=y.JSC$19413_xmlHttp_;y.JSC$19413_xmlHttp_=null;W.abort();W.dispose()}};
rb.prototype.getLastError=function(){return this.JSC$19413_lastError_};
var cRj=function(y,W){try{var V=y.JSC$19413_channel_;if(V.state_!=0&&(V.JSC$19432_backChannelRequest_==y||fgd(V.forwardChannelRequestPool_,y)))if(!y.initialResponseDecoded_&&fgd(V.forwardChannelRequestPool_,y)&&V.state_==3){try{var w=V.wireCodec_.JSC$19427_parser_.parse(W)}catch(P){w=null}if(Array.isArray(w)&&w.length==3){W=w;if(W[0]==0)a:if(V.JSC$19432_channelDebug_.debug("Server claims our backchannel is missing."),V.JSC$19432_backChannelTimerId_)V.JSC$19432_channelDebug_.debug("But we are currently starting the request.");
else{if(V.JSC$19432_backChannelRequest_)if(V.JSC$19432_backChannelRequest_.JSC$19413_requestStartTime_+3E3<y.JSC$19413_requestStartTime_)T6q(V),mcW(V);else break a;else V.JSC$19432_channelDebug_.warning("We do not have a BackChannel established");M9j(V);Hr(18)}else{V.JSC$19432_lastPostResponseArrayId_=W[1];var t=V.JSC$19432_lastPostResponseArrayId_-V.JSC$19432_lastArrayId_;if(0<t){var F=W[2];V.JSC$19432_channelDebug_.debug(F+" bytes (in "+t+" arrays) are outstanding on the BackChannel");F<37500&&
V.enableStreaming_&&V.JSC$19432_backChannelRetryCount_==0&&!V.JSC$19432_deadBackChannelTimerId_&&(V.JSC$19432_deadBackChannelTimerId_=X3((0,_.jA)(V.JSC$19434_onBackChannelDead_,V),6E3))}}if(qK3(V.forwardChannelRequestPool_)<=1&&V.forwardChannelFlushedCallback_){try{V.forwardChannelFlushedCallback_()}catch(P){}V.forwardChannelFlushedCallback_=void 0}}else V.JSC$19432_channelDebug_.debug("Bad POST response data returned"),ZK(V,11)}else if((y.initialResponseDecoded_||V.JSC$19432_backChannelRequest_==
y)&&T6q(V),!_.gu(W)){var I=V.wireCodec_.JSC$19427_parser_.parse(W);V.onInput_(I,y)}nQ(4)}catch(P){}};var Ucm=function(y,W){this.JSC$19420_mapId=y;this.map=W;this.context=null};var ubm=function(y){this.maxPoolSizeConfigured_=y||10;_.Vj.PerformanceNavigationTiming?(y=_.Vj.performance.getEntriesByType("navigation"),y=y.length>0&&(y[0].nextHopProtocol=="hq"||y[0].nextHopProtocol=="h2")):y=!!(_.Vj.chrome&&_.Vj.chrome.loadTimes&&_.Vj.chrome.loadTimes()&&_.Vj.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19423_maxSize_=y?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19423_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19423_request_=null;this.JSC$19423_pendingMessages_=
[]},SKv=function(y){return y.JSC$19423_request_?!0:y.requestPool_?y.requestPool_.size>=y.JSC$19423_maxSize_:!1},qK3=function(y){return y.JSC$19423_request_?1:y.requestPool_?y.requestPool_.size:0},fgd=function(y,W){return y.JSC$19423_request_?y.JSC$19423_request_==W:y.requestPool_?y.requestPool_.has(W):!1},Dcq=function(y,W){y.requestPool_?y.requestPool_.add(W):y.JSC$19423_request_=W},lgj=function(y,W){y.JSC$19423_request_&&y.JSC$19423_request_==W?y.JSC$19423_request_=null:y.requestPool_&&y.requestPool_.has(W)&&
y.requestPool_.delete(W)};
ubm.prototype.cancel=function(){this.JSC$19423_pendingMessages_=xcj(this);if(this.JSC$19423_request_)this.JSC$19423_request_.cancel(),this.JSC$19423_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var y=_.N(this.requestPool_.values()),W=y.next();!W.done;W=y.next())W.value.cancel();this.requestPool_.clear()}};
var xcj=function(y){if(y.JSC$19423_request_!=null)return y.JSC$19423_pendingMessages_.concat(y.JSC$19423_request_.JSC$19413_pendingMessages_);if(y.requestPool_!=null&&y.requestPool_.size!==0){var W=y.JSC$19423_pendingMessages_;y=_.N(y.requestPool_.values());for(var V=y.next();!V.done;V=y.next())W=W.concat(V.value.JSC$19413_pendingMessages_);return W}return _.ru(y.JSC$19423_pendingMessages_)},kf3=function(y,W){y.JSC$19423_pendingMessages_=y.JSC$19423_pendingMessages_.concat(W)};var sg3=function(y,W){var V=new ar;V.debug("TestLoadImage: loading "+y);if(_.Vj.Image){var w=new Image;w.onload=_.D2(y1,V,"TestLoadImage: loaded",!0,W,w);w.onerror=_.D2(y1,V,"TestLoadImage: error",!1,W,w);w.onabort=_.D2(y1,V,"TestLoadImage: abort",!1,W,w);w.ontimeout=_.D2(y1,V,"TestLoadImage: timeout",!1,W,w);_.Vj.setTimeout(function(){if(w.ontimeout)w.ontimeout()},1E4);
w.src=y}else W(!1)},AR4=function(y,W){var V=new ar,w=new AbortController,t=setTimeout(function(){w.abort();
y1(V,"TestPingServer: timeout",!1,W)},1E4);
fetch(y,{signal:w.signal}).then(function(F){clearTimeout(t);F.ok?y1(V,"TestPingServer: ok",!0,W):y1(V,"TestPingServer: server error",!1,W)}).catch(function(){clearTimeout(t);
y1(V,"TestPingServer: error",!1,W)})},y1=function(y,W,V,w,t){try{y.debug(W),t&&(t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null),w(V)}catch(F){}};var YKu=function(){this.JSC$19427_parser_=new $7};var WA=function(y,W,V){return V&&V.internalChannelParams?V.internalChannelParams[y]||W:W},V1=function(y){this.serverVersion_=0;
this.JSC$19432_outgoingMaps_=[];this.JSC$19432_channelDebug_=new ar;this.JSC$19432_hostPrefix_=this.JSC$19432_backChannelUri_=this.JSC$19432_forwardChannelUri_=this.JSC$19432_path_=this.JSC$19432_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19432_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19432_extraHeaders_=null;this.JSC$19432_nextMapId_=this.JSC$19432_nextRid_=0;this.JSC$19432_failFast_=WA("failFast",!1,y);this.enableStreaming_=this.JSC$19432_deadBackChannelTimerId_=
this.JSC$19432_backChannelTimerId_=this.JSC$19432_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19432_lastPostResponseArrayId_=this.JSC$19432_lastArrayId_=-1;this.JSC$19432_backChannelAttemptId_=this.JSC$19432_backChannelRetryCount_=this.JSC$19432_forwardChannelRetryCount_=0;this.JSC$19432_baseRetryDelayMs_=WA("baseRetryDelayMs",5E3,y);this.JSC$19432_retryDelaySeedMs_=WA("retryDelaySeedMs",1E4,y);this.JSC$19432_forwardChannelMaxRetries_=
WA("forwardChannelMaxRetries",2,y);this.JSC$19432_forwardChannelRequestTimeoutMs_=WA("forwardChannelRequestTimeoutMs",2E4,y);this.JSC$19432_xmlHttpFactory_=y&&y.xmlHttpFactory||void 0;this.networkTestUrl_=y&&y.networkTestUrl||void 0;this.usesFetchStreams_=y&&y.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19432_supportsCrossDomainXhrs_=y&&y.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ubm(y&&y.concurrentRequestLimit);this.wireCodec_=new YKu;this.fastHandshake_=
y&&y.fastHandshake||!1;this.encodeInitMessageHeaders_=y&&y.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19432_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=y&&y.blockingHandshake||!1;y&&y.disableRedact&&this.JSC$19432_channelDebug_.disableRedact();y&&y.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
y&&y.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;y&&y.longPollingTimeout&&y.longPollingTimeout>0&&(this.longPollingTimeout_=y.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
V1.prototype.JSC$19434_channelVersion_=8;V1.prototype.state_=1;
V1.prototype.connect=function(y,W,V,w){this.JSC$19432_channelDebug_.debug("connect()");Hr(0);this.JSC$19432_path_=y;this.JSC$19432_extraParams_=W||{};V&&w!==void 0&&(this.JSC$19432_extraParams_.OSID=V,this.JSC$19432_extraParams_.OAID=w);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19432_channelDebug_.debug("connectChannel_()");y=B6j(this,null,this.JSC$19432_path_);this.JSC$19432_channelDebug_.debug("GetForwardChannelUri: "+y);this.JSC$19432_forwardChannelUri_=y;JRq(this)};
V1.prototype.disconnect=function(){this.JSC$19432_channelDebug_.debug("disconnect()");REm(this);if(this.state_==3){var y=this.JSC$19432_nextRid_++,W=this.JSC$19432_forwardChannelUri_.clone();_.If(W,"SID",this.sid_);_.If(W,"RID",y);_.If(W,"TYPE","terminate");w8(this,W);y=new rb(this,this.JSC$19432_channelDebug_,this.sid_,y);y.JSC$19413_type_=2;y.JSC$19413_baseUri_=_.mx(W.clone());W=!1;if(_.Vj.navigator&&_.Vj.navigator.sendBeacon)try{W=_.Vj.navigator.sendBeacon(y.JSC$19413_baseUri_.toString(),"")}catch(V){}!W&&
_.Vj.Image&&((new Image).src=y.JSC$19413_baseUri_,W=!0);W||(y.JSC$19413_xmlHttp_=Cyd(y.JSC$19413_channel_,null),y.JSC$19413_xmlHttp_.send(y.JSC$19413_baseUri_));y.JSC$19413_requestStartTime_=Date.now();Pyv(y)}jgj(this)};
var mcW=function(y){y.JSC$19432_backChannelRequest_&&(psW(y),y.JSC$19432_backChannelRequest_.cancel(),y.JSC$19432_backChannelRequest_=null)},REm=function(y){mcW(y);
y.JSC$19432_backChannelTimerId_&&(_.Vj.clearTimeout(y.JSC$19432_backChannelTimerId_),y.JSC$19432_backChannelTimerId_=null);T6q(y);y.forwardChannelRequestPool_.cancel();y.JSC$19432_forwardChannelTimerId_&&(typeof y.JSC$19432_forwardChannelTimerId_==="number"&&_.Vj.clearTimeout(y.JSC$19432_forwardChannelTimerId_),y.JSC$19432_forwardChannelTimerId_=null)};
V1.prototype.getState=function(){return this.state_};
var JRq=function(y){SKv(y.forwardChannelRequestPool_)||y.JSC$19432_forwardChannelTimerId_||(y.JSC$19432_forwardChannelTimerId_=!0,_.Ry(y.JSC$19434_onStartForwardChannelTimer_,y),y.JSC$19432_forwardChannelRetryCount_=0)},n$4=function(y,W){if(qK3(y.forwardChannelRequestPool_)>=y.forwardChannelRequestPool_.JSC$19423_maxSize_-(y.JSC$19432_forwardChannelTimerId_?1:0))return!1;
if(y.JSC$19432_forwardChannelTimerId_)return y.JSC$19432_channelDebug_.debug("Use the retry request that is already scheduled."),y.JSC$19432_outgoingMaps_=W.JSC$19413_pendingMessages_.concat(y.JSC$19432_outgoingMaps_),!0;if(y.state_==1||y.state_==2||y.JSC$19432_forwardChannelRetryCount_>=(y.JSC$19432_failFast_?0:y.JSC$19432_forwardChannelMaxRetries_))return!1;y.JSC$19432_channelDebug_.debug("Going to retry POST");y.JSC$19432_forwardChannelTimerId_=X3((0,_.jA)(y.JSC$19434_onStartForwardChannelTimer_,
y,W),$ct(y,y.JSC$19432_forwardChannelRetryCount_));y.JSC$19432_forwardChannelRetryCount_++;return!0};
V1.prototype.JSC$19434_onStartForwardChannelTimer_=function(y){if(this.JSC$19432_forwardChannelTimerId_)if(this.JSC$19432_forwardChannelTimerId_=null,this.JSC$19432_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!y){this.JSC$19432_channelDebug_.debug("open_()");this.JSC$19432_nextRid_=Math.floor(Math.random()*1E5);y=this.JSC$19432_nextRid_++;var W=new rb(this,this.JSC$19432_channelDebug_,"",y),V=this.JSC$19432_extraHeaders_;this.initHeaders_&&(V?(V=_.Gc.clone(V),_.Gc.extend(V,this.initHeaders_)):
V=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(W.JSC$19413_extraHeaders_=V,V=null);var w;if(this.fastHandshake_)a:{for(var t=w=0;t<this.JSC$19432_outgoingMaps_.length;t++){b:{var F=this.JSC$19432_outgoingMaps_[t];if("__data__"in F.map&&(F=F.map.__data__,typeof F==="string")){F=F.length;break b}F=void 0}if(F===void 0)break;w+=F;if(w>4096){w=t;break a}if(w===4096||t===this.JSC$19432_outgoingMaps_.length-1){w=t+1;break a}}w=1E3}else w=1E3;w=HoC(this,W,w);
t=this.JSC$19432_forwardChannelUri_.clone();_.If(t,"RID",y);_.If(t,"CVER",22);this.httpSessionIdParam_&&_.If(t,"X-HTTP-Session-Id",this.httpSessionIdParam_);w8(this,t);V&&(this.encodeInitMessageHeaders_?w="headers="+_.E1(gej(V))+"&"+w:this.httpHeadersOverwriteParam_&&PPq(t,this.httpHeadersOverwriteParam_,V));Dcq(this.forwardChannelRequestPool_,W);this.blockingHandshake_&&_.If(t,"TYPE","init");this.fastHandshake_?(_.If(t,"$req",w),_.If(t,"SID","null"),W.decodeInitialResponse_=!0,g$C(W,t,null)):g$C(W,
t,w);this.state_=2}}else this.state_==3&&(y?Xsu(this,y):this.JSC$19432_outgoingMaps_.length==0?this.JSC$19432_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):SKv(this.forwardChannelRequestPool_)||(Xsu(this),this.JSC$19432_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Xsu=function(y,W){var V;W?V=W.JSC$19413_rid_:V=y.JSC$19432_nextRid_++;var w=y.JSC$19432_forwardChannelUri_.clone();_.If(w,"SID",y.sid_);_.If(w,"RID",V);_.If(w,"AID",y.JSC$19432_lastArrayId_);w8(y,w);y.httpHeadersOverwriteParam_&&y.JSC$19432_extraHeaders_&&PPq(w,y.httpHeadersOverwriteParam_,y.JSC$19432_extraHeaders_);V=new rb(y,y.JSC$19432_channelDebug_,y.sid_,V,y.JSC$19432_forwardChannelRetryCount_+1);y.httpHeadersOverwriteParam_===null&&(V.JSC$19413_extraHeaders_=y.JSC$19432_extraHeaders_);W&&
(y.JSC$19432_outgoingMaps_=W.JSC$19413_pendingMessages_.concat(y.JSC$19432_outgoingMaps_));W=HoC(y,V,1E3);V.setTimeout(Math.round(y.JSC$19432_forwardChannelRequestTimeoutMs_*.5)+Math.round(y.JSC$19432_forwardChannelRequestTimeoutMs_*.5*Math.random()));Dcq(y.forwardChannelRequestPool_,V);g$C(V,w,W)},w8=function(y,W){y.JSC$19432_extraParams_&&_.Gc.forEach(y.JSC$19432_extraParams_,function(V,w){_.If(W,w,V)});
y.handler_&&_.Gc.forEach({},function(V,w){_.If(W,w,V)})},HoC=function(y,W,V){V=Math.min(y.JSC$19432_outgoingMaps_.length,V);
var w=y.handler_?(0,_.jA)(y.handler_.JSC$19438_badMapError,y.handler_,y):null;a:{for(var t=y.JSC$19432_outgoingMaps_,F=-1;;){var I=["count="+V];F==-1?V>0?(F=t[0].JSC$19420_mapId,I.push("ofs="+F)):F=0:I.push("ofs="+F);for(var P=!0,C=0;C<V;C++){var d=t[C].JSC$19420_mapId,L=t[C].map;d-=F;if(d<0)F=Math.max(0,t[C].JSC$19420_mapId-100),P=!1;else try{d="req"+d+"_"||"";try{var z=L instanceof Map?L:Object.entries(L);for(var c=_.N(z),K=c.next();!K.done;K=c.next()){var f=_.N(K.value),U=f.next().value,l=f.next().value,
x=l;_.VK(l)&&(x=(0,_.Xl)(l));I.push(d+U+"="+encodeURIComponent(x))}}catch(B){throw I.push(d+"type="+encodeURIComponent("_badmap")),B;}}catch(B){w&&w(L)}}if(P){z=I.join("&");break a}}z=void 0}y=y.JSC$19432_outgoingMaps_.splice(0,V);W.JSC$19413_pendingMessages_=y;return z},Arj=function(y){y.JSC$19432_backChannelRequest_||y.JSC$19432_backChannelTimerId_||(y.JSC$19432_backChannelAttemptId_=1,_.Ry(y.JSC$19434_onStartBackChannelTimer_,y),y.JSC$19432_backChannelRetryCount_=0)},M9j=function(y){if(y.JSC$19432_backChannelRequest_||
y.JSC$19432_backChannelTimerId_||y.JSC$19432_backChannelRetryCount_>=3)return!1;
y.JSC$19432_channelDebug_.debug("Going to retry GET");y.JSC$19432_backChannelAttemptId_++;y.JSC$19432_backChannelTimerId_=X3((0,_.jA)(y.JSC$19434_onStartBackChannelTimer_,y),$ct(y,y.JSC$19432_backChannelRetryCount_));y.JSC$19432_backChannelRetryCount_++;return!0};
V1.prototype.JSC$19434_onStartBackChannelTimer_=function(){this.JSC$19432_backChannelTimerId_=null;YVC(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19432_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19432_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19432_backChannelRequest_+" "+this.handshakeRttMs_);else{var y=4*this.handshakeRttMs_;this.JSC$19432_channelDebug_.info("BP detection timer enabled: "+y);this.bpDetectionTimerId_=X3((0,_.jA)(this.onBpDetectionTimer_,
this),y)}};
V1.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19432_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19432_backChannelRequest_.JSC$19413_xmlHttp_!=null){var y=this.JSC$19432_backChannelRequest_.JSC$19413_xmlHttp_.getResponseText();y&&this.JSC$19432_channelDebug_.warning("Timer should have been cancelled : "+y)}this.JSC$19432_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Hr(10);mcW(this);YVC(this)}else this.JSC$19432_channelDebug_.warning("Invalid operation.")};
var psW=function(y){y.bpDetectionTimerId_!=null&&(y.JSC$19432_channelDebug_.debug("Cancel the BP detection timer."),_.Vj.clearTimeout(y.bpDetectionTimerId_),y.bpDetectionTimerId_=null)},YVC=function(y){y.JSC$19432_channelDebug_.debug("Creating new HttpRequest");
y.JSC$19432_backChannelRequest_=new rb(y,y.JSC$19432_channelDebug_,y.sid_,"rpc",y.JSC$19432_backChannelAttemptId_);y.httpHeadersOverwriteParam_===null&&(y.JSC$19432_backChannelRequest_.JSC$19413_extraHeaders_=y.JSC$19432_extraHeaders_);y.JSC$19432_backChannelRequest_.JSC$19413_readyStateChangeThrottleMs_=0;var W=y.JSC$19432_backChannelUri_.clone();_.If(W,"RID","rpc");_.If(W,"SID",y.sid_);_.If(W,"AID",y.JSC$19432_lastArrayId_);_.If(W,"CI",y.enableStreaming_?"0":"1");!y.enableStreaming_&&y.longPollingTimeout_&&
_.If(W,"TO",y.longPollingTimeout_);_.If(W,"TYPE","xmlhttp");w8(y,W);y.httpHeadersOverwriteParam_&&y.JSC$19432_extraHeaders_&&PPq(W,y.httpHeadersOverwriteParam_,y.JSC$19432_extraHeaders_);y.backChannelRequestTimeoutMs_&&y.JSC$19432_backChannelRequest_.setTimeout(y.backChannelRequestTimeoutMs_);var V=y.JSC$19432_backChannelRequest_,w=y.JSC$19432_hostPrefix_;V.JSC$19413_type_=1;V.JSC$19413_baseUri_=_.mx(W.clone());V.JSC$19413_postData_=null;V.decodeChunks_=!0;Igq(V,w);y.JSC$19432_channelDebug_.debug("New Request created")};
V1.prototype.JSC$19434_onBackChannelDead_=function(){this.JSC$19432_deadBackChannelTimerId_!=null&&(this.JSC$19432_deadBackChannelTimerId_=null,mcW(this),M9j(this),Hr(19))};
var T6q=function(y){y.JSC$19432_deadBackChannelTimerId_!=null&&(_.Vj.clearTimeout(y.JSC$19432_deadBackChannelTimerId_),y.JSC$19432_deadBackChannelTimerId_=null)},hEC=function(y,W){y.JSC$19432_channelDebug_.debug("Request complete");
var V=null;if(y.JSC$19432_backChannelRequest_==W){T6q(y);psW(y);y.JSC$19432_backChannelRequest_=null;var w=2}else if(fgd(y.forwardChannelRequestPool_,W))V=W.JSC$19413_pendingMessages_,lgj(y.forwardChannelRequestPool_,W),w=1;else return;if(y.state_!=0)if(W.JSC$19413_successful_)w==1?(ZHj(W.JSC$19413_postData_?W.JSC$19413_postData_.length:0,Date.now()-W.JSC$19413_requestStartTime_,y.JSC$19432_forwardChannelRetryCount_),JRq(y)):Arj(y);else{var t=W.JSC$19413_lastStatusCode_,F=W.getLastError();if(F==3||
F==0&&t>0)y.JSC$19432_channelDebug_.debug("Not retrying due to error type"),t>200&&(y.errorResponseStatusCode_=W.JSC$19413_lastStatusCode_);else{y.JSC$19432_channelDebug_.debug(function(){return"Maybe retrying, last error: "+FFu(F,y.errorResponseStatusCode_)});
if(w==1&&n$4(y,W)||w==2&&M9j(y))return;y.JSC$19432_channelDebug_.debug("Exceeded max number of retries")}V&&V.length>0&&kf3(y.forwardChannelRequestPool_,V);y.JSC$19432_channelDebug_.debug("Error: HTTP request failed");switch(F){case 1:ZK(y,5);break;case 4:ZK(y,10);break;case 3:ZK(y,6);break;default:ZK(y,2)}}},$ct=function(y,W){var V=y.JSC$19432_baseRetryDelayMs_+Math.floor(Math.random()*y.JSC$19432_retryDelaySeedMs_);
y.isActive()||(y.JSC$19432_channelDebug_.debug("Inactive channel"),V*=2);return V*W};
V1.prototype.onInput_=function(y,W){for(var V=0;V<y.length;V++){var w=y[V];this.JSC$19432_lastArrayId_=w[0];w=w[1];if(this.state_==2)if(w[0]=="c"){this.sid_=w[1];this.JSC$19432_hostPrefix_=w[2];var t=w[3];t!=null&&(this.JSC$19434_channelVersion_=t,this.JSC$19432_channelDebug_.info("VER="+this.JSC$19434_channelVersion_));t=w[4];t!=null&&(this.serverVersion_=t,this.JSC$19432_channelDebug_.info("SVER="+this.serverVersion_));w=w[5];w!=null&&typeof w==="number"&&w>0&&(this.backChannelRequestTimeoutMs_=
w*=1.5,this.JSC$19432_channelDebug_.info("backChannelRequestTimeoutMs_="+w));if(w=W.JSC$19413_xmlHttp_){var F=Bo(w,"X-Client-Wire-Protocol");F&&(t=this.forwardChannelRequestPool_,!t.requestPool_&&(_.Cd(F,"spdy")||_.Cd(F,"quic")||_.Cd(F,"h2"))&&(t.JSC$19423_maxSize_=t.maxPoolSizeConfigured_,t.requestPool_=new Set,t.JSC$19423_request_&&(Dcq(t,t.JSC$19423_request_),t.JSC$19423_request_=null)));this.httpSessionIdParam_&&((w=Bo(w,"X-HTTP-Session-Id"))?(this.httpSessionId_=w,_.If(this.JSC$19432_forwardChannelUri_,
this.httpSessionIdParam_,w)):this.JSC$19432_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19438_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-W.JSC$19413_requestStartTime_,this.JSC$19432_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));w=W;t=B6j(this,this.JSC$19432_supportsCrossDomainXhrs_?this.JSC$19432_hostPrefix_:null,this.JSC$19432_path_);this.JSC$19432_channelDebug_.debug("GetBackChannelUri: "+
t);this.JSC$19432_backChannelUri_=t;w.initialResponseDecoded_?(this.JSC$19432_channelDebug_.debug("Upgrade the handshake request to a backchannel."),lgj(this.forwardChannelRequestPool_,w),t=w,(F=this.backChannelRequestTimeoutMs_)&&t.setTimeout(F),t.JSC$19413_watchDogTimerId_&&(dce(t),Pyv(t)),this.JSC$19432_backChannelRequest_=w):Arj(this);this.JSC$19432_outgoingMaps_.length>0&&JRq(this)}else w[0]!="stop"&&w[0]!="close"||ZK(this,7);else this.state_==3&&(w[0]=="stop"||w[0]=="close"?w[0]=="stop"?ZK(this,
7):this.disconnect():w[0]!="noop"&&this.handler_&&this.handler_.JSC$19438_channelHandleArray(w),this.JSC$19432_backChannelRetryCount_=0)}};
var ZK=function(y,W){y.JSC$19432_channelDebug_.info("Error code "+W);if(W==2){var V=(0,_.jA)(y.testNetworkCallback_,y),w=y.networkTestUrl_,t=!w;w=new _.gw(w||"//www.google.com/images/cleardot.gif");_.Vj.location&&_.Vj.location.protocol=="http"||_.zF(w,"https");_.mx(w);t?sg3(w.toString(),V):AR4(w.toString(),V)}else Hr(2);y.onError_(W)};
V1.prototype.testNetworkCallback_=function(y){y?(this.JSC$19432_channelDebug_.info("Successfully pinged google.com"),Hr(2)):(this.JSC$19432_channelDebug_.info("Failed to ping google.com"),Hr(1))};
V1.prototype.onError_=function(y){this.JSC$19432_channelDebug_.debug("HttpChannel: error - "+y);this.state_=0;this.handler_&&this.handler_.JSC$19438_channelError(y);jgj(this);REm(this)};
var jgj=function(y){y.state_=0;y.nonAckedMapsAtChannelClose_=[];if(y.handler_){var W=xcj(y.forwardChannelRequestPool_);if(W.length!=0||y.JSC$19432_outgoingMaps_.length!=0)y.JSC$19432_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+W.length+", outgoing: "+y.JSC$19432_outgoingMaps_.length}),_.yK(y.nonAckedMapsAtChannelClose_,W),_.yK(y.nonAckedMapsAtChannelClose_,y.JSC$19432_outgoingMaps_),y.forwardChannelRequestPool_.JSC$19423_pendingMessages_.length=0,_.ru(y.JSC$19432_outgoingMaps_),
y.JSC$19432_outgoingMaps_.length=0;
y.handler_.JSC$19438_channelClosed()}},B1E=function(y){if(y.state_==0)return y.nonAckedMapsAtChannelClose_;
var W=[];_.yK(W,xcj(y.forwardChannelRequestPool_));_.yK(W,y.JSC$19432_outgoingMaps_);return W},B6j=function(y,W,V){var w=_.Ey(V);
w.JSC$9958_domain_!=""?(W&&_.cY(w,W+"."+w.JSC$9958_domain_),_.eb(w,w.JSC$9958_port_)):(w=_.Vj.location,w=rOj(w.protocol,W?W+"."+w.hostname:w.hostname,+w.port,V));W=y.httpSessionIdParam_;V=y.httpSessionId_;W&&V&&_.If(w,W,V);_.If(w,"VER",y.JSC$19434_channelVersion_);w8(y,w);return w},Cyd=function(y,W,V){if(W&&!y.JSC$19432_supportsCrossDomainXhrs_)throw Error("Hk");
W=y.usesFetchStreams_&&!y.JSC$19432_xmlHttpFactory_?new _.ay(new tT({streamBinaryChunks:V})):new _.ay(y.JSC$19432_xmlHttpFactory_);W.JSC$9721_withCredentials_=y.JSC$19432_supportsCrossDomainXhrs_;return W};
V1.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Jr3=function(){};
_.E=Jr3.prototype;_.E.JSC$19438_channelOpened=function(){};
_.E.JSC$19438_channelHandleArray=function(){};
_.E.JSC$19438_channelError=function(){};
_.E.JSC$19438_channelClosed=function(){};
_.E.isActive=function(){return!0};
_.E.JSC$19438_badMapError=function(){};var RI4=function(){},Fz=function(y,W){_.Bg.call(this);
this.JSC$19441_channel_=new V1(W);this.JSC$19441_url_=y;this.messageUrlParams_=W&&W.messageUrlParams||null;y=W&&W.messageHeaders||null;W&&W.clientProtocolHeaderRequired&&(y?_.Gc.set(y,"X-Client-Protocol","webchannel"):y=_.Gc.create("X-Client-Protocol","webchannel"));this.JSC$19441_channel_.JSC$19432_extraHeaders_=y;y=W&&W.initMessageHeaders||null;W&&W.messageContentType&&(y?_.Gc.set(y,"X-WebChannel-Content-Type",W.messageContentType):y=_.Gc.create("X-WebChannel-Content-Type",W.messageContentType));
W&&W.clientProfile&&(y?_.Gc.set(y,"X-WebChannel-Client-Profile",W.clientProfile):y=_.Gc.create("X-WebChannel-Client-Profile",W.clientProfile));this.JSC$19441_channel_.initHeaders_=y;(y=W&&W.httpHeadersOverwriteParam)&&!_.gu(y)&&(this.JSC$19441_channel_.httpHeadersOverwriteParam_=y);this.supportsCrossDomainXhr_=W&&W.supportsCrossDomainXhr||!1;this.sendRawJson_=W&&W.sendRawJson||!1;(W=W&&W.httpSessionIdParam)&&!_.gu(W)&&(this.JSC$19441_channel_.httpSessionIdParam_=W,_.Gc.containsKey(this.messageUrlParams_,
W)&&_.Gc.remove(this.messageUrlParams_,W));this.channelHandler_=new ta(this)};
_.pF(Fz,_.Bg);Fz.prototype.open=function(){this.JSC$19441_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19441_channel_.JSC$19432_supportsCrossDomainXhrs_=!0);this.JSC$19441_channel_.connect(this.JSC$19441_url_,this.messageUrlParams_||void 0)};
Fz.prototype.close=function(){this.JSC$19441_channel_.disconnect()};
Fz.prototype.send=function(y){var W=this.JSC$19441_channel_;if(typeof y==="string"){var V={};V.__data__=y;y=V}else this.sendRawJson_&&(V={},V.__data__=(0,_.Xl)(y),y=V);W.JSC$19432_outgoingMaps_.push(new Ucm(W.JSC$19432_nextMapId_++,y));W.state_==3&&JRq(W)};
Fz.prototype.disposeInternal=function(){this.JSC$19441_channel_.handler_=null;delete this.channelHandler_;this.JSC$19441_channel_.disconnect();delete this.JSC$19441_channel_;Fz.superClass_.disposeInternal.call(this)};
var jxC=function(y){HHj.call(this);y.__headers__&&(this.headers=y.__headers__,this.statusCode=y.__status__,delete y.__headers__,delete y.__status__);var W=y.__sm__;W?this.data=(this.metadataKey=_.Gc.getAnyKey(W))?_.Gc.get(W,this.metadataKey):W:this.data=y};
_.pF(jxC,HHj);var $nj=function(y){XYj.call(this);this.status=1;this.errorCode=y};
_.pF($nj,XYj);var ta=function(y){this.JSC$19448_channel_=y};
_.pF(ta,Jr3);ta.prototype.JSC$19438_channelOpened=function(){this.JSC$19448_channel_.dispatchEvent("w")};
ta.prototype.JSC$19438_channelHandleArray=function(y){this.JSC$19448_channel_.dispatchEvent(new jxC(y))};
ta.prototype.JSC$19438_channelError=function(y){this.JSC$19448_channel_.dispatchEvent(new $nj(y))};
ta.prototype.JSC$19438_channelClosed=function(){this.JSC$19448_channel_.dispatchEvent("x")};
var noW=function(y,W){this.transportChannel_=y;this.JSC$19451_channel_=W},H$j=function(y){return B1E(y.JSC$19451_channel_).map(function(W){var V=y.transportChannel_;
W=W.map;"__data__"in W?(W=W.__data__,V=V.sendRawJson_?(0,_.oYi)(W):W):V=W;return V})};var EW=function(y){XqE.dispatchEvent(new asd(XqE,y))},XqE=new _.Bg,asd=function(y,W){_.xs.call(this,"statevent",y);
this.stat=W};
_.p(asd,_.xs);var Nb=function(y,W,V,w,t){this.JSC$19456_channel_=y;this.JSC$19456_channelDebug_=W;this.sid_=V;this.JSC$19456_rid_=w;this.JSC$19456_retryId_=t||1;this.timeout_=45E3;this.JSC$19456_eventHandler_=new _.eK(this);this.pollingTimer_=new _.cf;this.pollingTimer_.setInterval(250)};
_.E=Nb.prototype;_.E.JSC$19458_extraHeaders_=null;_.E.JSC$19458_successful_=!1;_.E.JSC$19458_watchDogTimerId_=null;_.E.JSC$19458_watchDogTimeoutTime_=null;_.E.JSC$19458_requestStartTime_=null;_.E.JSC$19458_type_=null;_.E.JSC$19458_baseUri_=null;_.E.JSC$19458_requestUri_=null;_.E.JSC$19458_postData_=null;_.E.JSC$19458_xmlHttp_=null;_.E.JSC$19458_xmlHttpChunkStart_=0;_.E.trident_=null;_.E.JSC$19458_verb_=null;_.E.JSC$19458_lastError_=null;_.E.JSC$19458_lastStatusCode_=-1;_.E.sendClose_=!0;
_.E.JSC$19458_cancelled_=!1;_.E.JSC$19458_readyStateChangeThrottleMs_=0;_.E.JSC$19458_readyStateChangeThrottle_=null;var G6E=function(y,W){switch(y){case 0:return"Non-200 return code ("+W+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},rrd={},b$v={};
Nb.prototype.setTimeout=function(y){this.timeout_=y};
var Z$m=function(y,W,V){y.JSC$19458_type_=1;y.JSC$19458_baseUri_=_.mx(W.clone());y.JSC$19458_postData_=V;y.decodeChunks_=!0;Qx4(y,null)},yg3=function(y,W,V,w,t){y.JSC$19458_type_=1;
y.JSC$19458_baseUri_=_.mx(W.clone());y.JSC$19458_postData_=null;y.decodeChunks_=V;t&&(y.sendClose_=!1);Qx4(y,w)},Qx4=function(y,W){y.JSC$19458_requestStartTime_=Date.now();
WZ4(y);y.JSC$19458_requestUri_=y.JSC$19458_baseUri_.clone();DL(y.JSC$19458_requestUri_,"t",y.JSC$19456_retryId_);y.JSC$19458_xmlHttpChunkStart_=0;y.JSC$19458_xmlHttp_=y.JSC$19456_channel_.JSC$19465_createXhrIo(y.JSC$19456_channel_.JSC$19465_shouldUseSecondaryDomains()?W:null);y.JSC$19458_readyStateChangeThrottleMs_>0&&(y.JSC$19458_readyStateChangeThrottle_=new _.d7((0,_.jA)(y.JSC$19458_xmlHttpHandler_,y,y.JSC$19458_xmlHttp_),y.JSC$19458_readyStateChangeThrottleMs_));y.JSC$19456_eventHandler_.listen(y.JSC$19458_xmlHttp_,
"readystatechange",y.JSC$19458_readyStateChangeHandler_);W=y.JSC$19458_extraHeaders_?_.Gc.clone(y.JSC$19458_extraHeaders_):{};y.JSC$19458_postData_?(y.JSC$19458_verb_="POST",W["Content-Type"]="application/x-www-form-urlencoded",y.JSC$19458_xmlHttp_.send(y.JSC$19458_requestUri_,y.JSC$19458_verb_,y.JSC$19458_postData_,W)):(y.JSC$19458_verb_="GET",y.sendClose_&&!_.qW&&(W.Connection="close"),y.JSC$19458_xmlHttp_.send(y.JSC$19458_requestUri_,y.JSC$19458_verb_,null,W));y.JSC$19456_channel_.notifyServerReachabilityEvent(1);
W=y.JSC$19456_channelDebug_;var V=y.JSC$19458_postData_;if(V){var w="";V=V.split("&");for(var t=0;t<V.length;t++){var F=V[t].split("=");if(F.length>1){var I=F[0];F=F[1];var P=I.split("_");w=P.length>=2&&P[1]=="type"?w+(I+"="+F+"&"):w+(I+"=redacted&")}}}else w=null;W.info("XMLHTTP REQ ("+y.JSC$19456_rid_+") [attempt "+y.JSC$19456_retryId_+"]: "+y.JSC$19458_verb_+"\n"+y.JSC$19458_requestUri_+"\n"+w)};
Nb.prototype.JSC$19458_readyStateChangeHandler_=function(y){y=y.target;var W=this.JSC$19458_readyStateChangeThrottle_;W&&_.G0(y)==3?(this.JSC$19456_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$19458_xmlHttpHandler_(y)};
Nb.prototype.JSC$19458_xmlHttpHandler_=function(y){try{if(y==this.JSC$19458_xmlHttp_)a:{var W=_.G0(this.JSC$19458_xmlHttp_),V=this.JSC$19458_xmlHttp_.JSC$9721_lastErrorCode_,w=this.JSC$19458_xmlHttp_.getStatus();if(_.qW&&!_.UX("420+")){if(W<4)break a}else if(W<3||W==3&&!this.JSC$19458_xmlHttp_.getResponseText())break a;this.JSC$19458_cancelled_||W!=4||V==7||(V==8||w<=0?this.JSC$19456_channel_.notifyServerReachabilityEvent(3):this.JSC$19456_channel_.notifyServerReachabilityEvent(2));Vnu(this);var t=
this.JSC$19458_xmlHttp_.getStatus();this.JSC$19458_lastStatusCode_=t;var F=this.JSC$19458_xmlHttp_.getResponseText();F||this.JSC$19456_channelDebug_.debug("No response text for uri "+this.JSC$19458_requestUri_+" status "+t);this.JSC$19458_successful_=t==200;this.JSC$19456_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19456_rid_+") [ attempt "+this.JSC$19456_retryId_+"]: "+this.JSC$19458_verb_+"\n"+this.JSC$19458_requestUri_+"\n"+W+" "+t);if(this.JSC$19458_successful_){W==4&&Iq(this);if(this.decodeChunks_){for(y=
!0;!this.JSC$19458_cancelled_&&this.JSC$19458_xmlHttpChunkStart_<F.length;){var I=whP(this,F);if(I==b$v){W==4&&(this.JSC$19458_lastError_=4,EW(15),y=!1);g8(this.JSC$19456_channelDebug_,this.JSC$19456_rid_,null,"[Incomplete Response]");break}else if(I==rrd){this.JSC$19458_lastError_=4;EW(16);g8(this.JSC$19456_channelDebug_,this.JSC$19456_rid_,F,"[Invalid Chunk]");y=!1;break}else g8(this.JSC$19456_channelDebug_,this.JSC$19456_rid_,I,null),tnW(this,I)}W==4&&F.length==0&&(this.JSC$19458_lastError_=1,
EW(17),y=!1);this.JSC$19458_successful_=this.JSC$19458_successful_&&y;y||(g8(this.JSC$19456_channelDebug_,this.JSC$19456_rid_,F,"[Invalid Chunked Response]"),Iq(this),FZq(this))}else g8(this.JSC$19456_channelDebug_,this.JSC$19456_rid_,F,null),tnW(this,F);this.JSC$19458_successful_&&!this.JSC$19458_cancelled_&&(W==4?this.JSC$19456_channel_.JSC$19465_onRequestComplete(this):(this.JSC$19458_successful_=!1,WZ4(this)))}else t==400&&F.indexOf("Unknown SID")>0?(this.JSC$19458_lastError_=3,EW(13),this.JSC$19456_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19456_rid_+")")):(this.JSC$19458_lastError_=0,EW(14),this.JSC$19456_channelDebug_.warning("XMLHTTP Bad status "+t+" ("+this.JSC$19456_rid_+")")),Iq(this),FZq(this)}else this.JSC$19456_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(P){this.JSC$19456_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var whP=function(y,W){var V=y.JSC$19458_xmlHttpChunkStart_,w=W.indexOf("\n",V);if(w==-1)return b$v;V=Number(W.substring(V,w));if(isNaN(V))return rrd;w+=1;if(w+V>W.length)return b$v;W=W.slice(w,w+V);y.JSC$19458_xmlHttpChunkStart_=w+V;return W};
Nb.prototype.cancel=function(){this.JSC$19458_cancelled_=!0;Iq(this)};
var WZ4=function(y){y.JSC$19458_watchDogTimeoutTime_=Date.now()+y.timeout_;E0j(y,y.timeout_)},E0j=function(y,W){if(y.JSC$19458_watchDogTimerId_!=null)throw Error("Gk");
y.JSC$19458_watchDogTimerId_=Qd((0,_.jA)(y.JSC$19458_onWatchDogTimeout_,y),W)},Vnu=function(y){y.JSC$19458_watchDogTimerId_&&(_.Vj.clearTimeout(y.JSC$19458_watchDogTimerId_),y.JSC$19458_watchDogTimerId_=null)};
Nb.prototype.JSC$19458_onWatchDogTimeout_=function(){this.JSC$19458_watchDogTimerId_=null;var y=Date.now();y-this.JSC$19458_watchDogTimeoutTime_>=0?(this.JSC$19456_channelDebug_.info("TIMEOUT: "+this.JSC$19458_requestUri_),this.JSC$19458_type_!=2&&this.JSC$19456_channel_.notifyServerReachabilityEvent(3),Iq(this),this.JSC$19458_lastError_=2,EW(18),FZq(this)):(this.JSC$19456_channelDebug_.warning("WatchDog timer called too early"),E0j(this,this.JSC$19458_watchDogTimeoutTime_-y))};
var FZq=function(y){y.JSC$19456_channel_.JSC$19465_isClosed()||y.JSC$19458_cancelled_||y.JSC$19456_channel_.JSC$19465_onRequestComplete(y)},Iq=function(y){Vnu(y);
_.La(y.JSC$19458_readyStateChangeThrottle_);y.JSC$19458_readyStateChangeThrottle_=null;y.pollingTimer_.stop();y.JSC$19456_eventHandler_.removeAll();if(y.JSC$19458_xmlHttp_){var W=y.JSC$19458_xmlHttp_;y.JSC$19458_xmlHttp_=null;W.abort();W.dispose()}y.trident_&&(y.trident_=null)};
Nb.prototype.getLastError=function(){return this.JSC$19458_lastError_};
var tnW=function(y,W){try{y.JSC$19456_channel_.JSC$19465_onRequestData(y,W),y.JSC$19456_channel_.notifyServerReachabilityEvent(4)}catch(V){}};var g8=function(y,W,V,w){var t=y.info;a:if(V&&V!="y2f%"){try{var F=JSON.parse(V);if(F)for(var I=0;I<F.length;I++)if(Array.isArray(F[I])){var P=F[I];if(!(P.length<2)){var C=P[1];if(Array.isArray(C)&&!(C.length<1)){var d=C[0];if(d!="noop"&&d!="stop")for(var L=1;L<C.length;L++)C[L]=""}}}var z=(0,_.Xl)(F);break a}catch(c){y.debug("Exception parsing expected JS array - probably was not JS");z=V;break a}z=void 0}else z=V;t.call(y,"XMLHTTP TEXT ("+W+"): "+z+(w?" "+w:""))};
ZW.prototype.debug=function(y){this.info(y)};
ZW.prototype.info=function(){};
ZW.prototype.warning=function(){};var NzW=function(y,W){this.JSC$19463_channel_=y;this.JSC$19463_channelDebug_=W;this.JSC$19463_parser_=new $7};
_.E=NzW.prototype;_.E.JSC$19465_extraHeaders_=null;_.E.JSC$19465_request_=null;_.E.receivedIntermediateResult_=!1;_.E.JSC$19465_path_=null;_.E.state_=null;_.E.JSC$19465_lastStatusCode_=-1;_.E.JSC$19465_hostPrefix_=null;_.E.blockedPrefix_=null;
_.E.connect=function(y){this.JSC$19465_path_=y;y=INC(this.JSC$19463_channel_,this.JSC$19465_path_);EW(3);Date.now();var W=this.JSC$19463_channel_.firstTestResults_;W!=null?(this.JSC$19465_hostPrefix_=W[0],(this.blockedPrefix_=W[1])?(this.state_=1,g0j(this)):(this.state_=2,PTt(this))):(DL(y,"MODE","init"),this.JSC$19465_request_=new Nb(this,this.JSC$19463_channelDebug_),this.JSC$19465_request_.JSC$19458_extraHeaders_=this.JSC$19465_extraHeaders_,yg3(this.JSC$19465_request_,y,!1,null,!0),this.state_=
0)};
var g0j=function(y){var W=CT3(y.JSC$19463_channel_,y.blockedPrefix_,"/mail/images/cleardot.gif");_.mx(W);uru(W.toString(),5E3,(0,_.jA)(y.checkBlockedCallback_,y),3,2E3);y.notifyServerReachabilityEvent(1)};
NzW.prototype.checkBlockedCallback_=function(y){if(y)this.state_=2,PTt(this);else{EW(4);var W=this.JSC$19463_channel_;W.JSC$19466_channelDebug_.debug("Test Connection Blocked");W.JSC$19470_lastStatusCode_=W.connectionTest_.JSC$19465_lastStatusCode_;PA(W,9)}y&&this.notifyServerReachabilityEvent(2)};
var PTt=function(y){y.JSC$19463_channelDebug_.debug("TestConnection: starting stage 2");var W=y.JSC$19463_channel_.secondTestResults_;W!=null?(y.JSC$19463_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+W?"Buffered":"Unbuffered"),EW(5),W?(EW(11),CT(y.JSC$19463_channel_,y,!1)):(EW(12),CT(y.JSC$19463_channel_,y,!0))):(y.JSC$19465_request_=new Nb(y,y.JSC$19463_channelDebug_),y.JSC$19465_request_.JSC$19458_extraHeaders_=y.JSC$19465_extraHeaders_,W=O34(y.JSC$19463_channel_,
y.JSC$19465_hostPrefix_,y.JSC$19465_path_),EW(5),DL(W,"TYPE","xmlhttp"),yg3(y.JSC$19465_request_,W,!1,y.JSC$19465_hostPrefix_,!1))};
_.E=NzW.prototype;_.E.JSC$19465_createXhrIo=function(y){return this.JSC$19463_channel_.JSC$19465_createXhrIo(y)};
_.E.abort=function(){this.JSC$19465_request_&&(this.JSC$19465_request_.cancel(),this.JSC$19465_request_=null);this.JSC$19465_lastStatusCode_=-1};
_.E.JSC$19465_isClosed=function(){return!1};
_.E.JSC$19465_onRequestData=function(y,W){this.JSC$19465_lastStatusCode_=y.JSC$19458_lastStatusCode_;if(this.state_==0)if(this.JSC$19463_channelDebug_.debug("TestConnection: Got data for stage 1"),W){try{var V=this.JSC$19463_parser_.parse(W)}catch(w){v0q(this.JSC$19463_channel_,this);return}this.JSC$19465_hostPrefix_=V[0];this.blockedPrefix_=V[1]}else this.JSC$19463_channelDebug_.debug("TestConnection: Null responseText"),v0q(this.JSC$19463_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(EW(7),Date.now()):W=="11111"?(EW(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19465_lastStatusCode_=200,this.JSC$19465_request_.cancel(),this.JSC$19463_channelDebug_.debug("Test connection succeeded; using streaming connection"),EW(12),CT(this.JSC$19463_channel_,this,!0)):(EW(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.E.JSC$19465_onRequestComplete=function(){this.JSC$19465_lastStatusCode_=this.JSC$19465_request_.JSC$19458_lastStatusCode_;this.JSC$19465_request_.JSC$19458_successful_?this.state_==0?(this.JSC$19463_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,g0j(this)):(this.state_=2,PTt(this))):this.state_==2&&(this.JSC$19463_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19463_channelDebug_.debug("Test connection succeeded; using streaming connection"),
EW(12),CT(this.JSC$19463_channel_,this,!0)):(this.JSC$19463_channelDebug_.debug("Test connection failed; not using streaming"),EW(11),CT(this.JSC$19463_channel_,this,!1))):(this.JSC$19463_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?EW(9):this.state_==2&&EW(10),v0q(this.JSC$19463_channel_,this,this.JSC$19465_request_.getLastError()))};
_.E.JSC$19465_shouldUseSecondaryDomains=function(){return this.JSC$19463_channel_.JSC$19465_shouldUseSecondaryDomains()};
_.E.isActive=function(){return this.JSC$19463_channel_.isActive()};
_.E.notifyServerReachabilityEvent=function(y){this.JSC$19463_channel_.notifyServerReachabilityEvent(y)};var OW=function(y,W,V){this.state_=1;this.JSC$19466_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19466_channelDebug_=new ZW;this.JSC$19466_parser_=new $7;this.firstTestResults_=y||null;this.secondTestResults_=W!=null?W:null;this.asyncTest_=V||!1},dxu=function(y,W){this.JSC$19468_mapId=y;
this.map=W;this.context=null};
_.E=OW.prototype;_.E.JSC$19470_extraHeaders_=null;_.E.JSC$19470_extraParams_=null;_.E.forwardChannelRequest_=null;_.E.JSC$19470_backChannelRequest_=null;_.E.JSC$19470_path_=null;_.E.JSC$19470_forwardChannelUri_=null;_.E.JSC$19470_backChannelUri_=null;_.E.JSC$19470_hostPrefix_=null;_.E.JSC$19470_nextRid_=0;_.E.JSC$19470_nextMapId_=0;_.E.handler_=null;_.E.JSC$19470_forwardChannelTimerId_=null;_.E.JSC$19470_backChannelTimerId_=null;_.E.JSC$19470_deadBackChannelTimerId_=null;_.E.connectionTest_=null;
_.E.useChunked_=null;_.E.JSC$19470_lastArrayId_=-1;_.E.JSC$19470_lastPostResponseArrayId_=-1;_.E.JSC$19470_lastStatusCode_=-1;_.E.JSC$19470_forwardChannelRetryCount_=0;_.E.JSC$19470_backChannelRetryCount_=0;_.E.JSC$19470_channelVersion_=8;var LZj={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},zgE=function(y,W,V,w){_.xs.call(this,"timingevent",y);this.size=W;this.rtt=V;this.retries=w};
_.pF(zgE,_.xs);var cgj=function(y){_.xs.call(this,"serverreachability",y)};
_.pF(cgj,_.xs);OW.prototype.connect=function(y,W,V,w,t){this.JSC$19466_channelDebug_.debug("connect()");EW(0);this.JSC$19470_path_=W;this.JSC$19470_extraParams_=V||{};w&&t!==void 0&&(this.JSC$19470_extraParams_.OSID=w,this.JSC$19470_extraParams_.OAID=t);this.asyncTest_?(Qd((0,_.jA)(this.connectTest_,this,y),100),egq(this)):this.connectTest_(y)};
OW.prototype.disconnect=function(){this.JSC$19466_channelDebug_.debug("disconnect()");hgC(this);if(this.state_==3){var y=this.JSC$19470_nextRid_++,W=this.JSC$19470_forwardChannelUri_.clone();_.If(W,"SID",this.sid_);_.If(W,"RID",y);_.If(W,"TYPE","terminate");vA(this,W);y=new Nb(this,this.JSC$19466_channelDebug_,this.sid_,y);y.JSC$19458_type_=2;y.JSC$19458_baseUri_=_.mx(W.clone());(new Image).src=y.JSC$19458_baseUri_.toString();y.JSC$19458_requestStartTime_=Date.now();WZ4(y)}o0m(this)};
OW.prototype.connectTest_=function(y){this.JSC$19466_channelDebug_.debug("connectTest_()");this.connectionTest_=new NzW(this,this.JSC$19466_channelDebug_);this.connectionTest_.JSC$19465_extraHeaders_=this.JSC$19470_extraHeaders_;this.connectionTest_.JSC$19463_parser_=this.JSC$19466_parser_;this.connectionTest_.connect(y)};
var egq=function(y){y.JSC$19466_channelDebug_.debug("connectChannel_()");y.JSC$19470_ensureInState_(1,0);y.JSC$19470_forwardChannelUri_=INC(y,y.JSC$19470_path_);KZ3(y)},hgC=function(y){y.connectionTest_&&(y.connectionTest_.abort(),y.connectionTest_=null);
y.JSC$19470_backChannelRequest_&&(y.JSC$19470_backChannelRequest_.cancel(),y.JSC$19470_backChannelRequest_=null);y.JSC$19470_backChannelTimerId_&&(_.Vj.clearTimeout(y.JSC$19470_backChannelTimerId_),y.JSC$19470_backChannelTimerId_=null);phe(y);y.forwardChannelRequest_&&(y.forwardChannelRequest_.cancel(),y.forwardChannelRequest_=null);y.JSC$19470_forwardChannelTimerId_&&(_.Vj.clearTimeout(y.JSC$19470_forwardChannelTimerId_),y.JSC$19470_forwardChannelTimerId_=null)},i3d=function(y,W){if(y.state_==0)throw Error("Jk");
y.JSC$19466_outgoingMaps_.length==1E3&&y.JSC$19466_parser_.stringify(W);y.JSC$19466_outgoingMaps_.push(new dxu(y.JSC$19470_nextMapId_++,W));y.state_!=2&&y.state_!=3||KZ3(y)};
OW.prototype.JSC$19465_isClosed=function(){return this.state_==0};
OW.prototype.getState=function(){return this.state_};
var KZ3=function(y){y.forwardChannelRequest_||y.JSC$19470_forwardChannelTimerId_||(y.JSC$19470_forwardChannelTimerId_=Qd((0,_.jA)(y.JSC$19470_onStartForwardChannelTimer_,y),0),y.JSC$19470_forwardChannelRetryCount_=0)};
OW.prototype.JSC$19470_onStartForwardChannelTimer_=function(y){this.JSC$19470_forwardChannelTimerId_=null;fNE(this,y)};
var fNE=function(y,W){y.JSC$19466_channelDebug_.debug("startForwardChannel_");if(y.state_==1){if(!W){y.JSC$19466_channelDebug_.debug("open_()");y.JSC$19470_nextRid_=Math.floor(Math.random()*1E5);W=y.JSC$19470_nextRid_++;var V=new Nb(y,y.JSC$19466_channelDebug_,"",W);V.JSC$19458_extraHeaders_=y.JSC$19470_extraHeaders_;var w=TzW(y),t=y.JSC$19470_forwardChannelUri_.clone();_.If(t,"RID",W);_.If(t,"CVER","1");vA(y,t);Z$m(V,t,w);y.forwardChannelRequest_=V;y.state_=2}}else y.state_==3&&(W?mxu(y,W):y.JSC$19466_outgoingMaps_.length==
0?y.JSC$19466_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):y.forwardChannelRequest_||(mxu(y),y.JSC$19466_channelDebug_.debug("startForwardChannel_ finished, sent request")))},mxu=function(y,W){if(W)if(y.JSC$19470_channelVersion_>6){y.JSC$19466_outgoingMaps_=y.pendingMaps_.concat(y.JSC$19466_outgoingMaps_);
y.pendingMaps_.length=0;var V=y.JSC$19470_nextRid_-1;W=TzW(y)}else V=W.JSC$19456_rid_,W=W.JSC$19458_postData_;else V=y.JSC$19470_nextRid_++,W=TzW(y);var w=y.JSC$19470_forwardChannelUri_.clone();_.If(w,"SID",y.sid_);_.If(w,"RID",V);_.If(w,"AID",y.JSC$19470_lastArrayId_);vA(y,w);V=new Nb(y,y.JSC$19466_channelDebug_,y.sid_,V,y.JSC$19470_forwardChannelRetryCount_+1);V.JSC$19458_extraHeaders_=y.JSC$19470_extraHeaders_;V.setTimeout(1E4+Math.round(1E4*Math.random()));y.forwardChannelRequest_=V;Z$m(V,w,W)},
vA=function(y,W){y.handler_&&(y=y.handler_.JSC$19477_getAdditionalParams())&&_.Gc.forEach(y,function(V,w){_.If(W,w,V)})},TzW=function(y){var W=Math.min(y.JSC$19466_outgoingMaps_.length,1E3),V=["count="+W];
if(y.JSC$19470_channelVersion_>6&&W>0){var w=y.JSC$19466_outgoingMaps_[0].JSC$19468_mapId;V.push("ofs="+w)}else w=0;for(var t={},F=0;F<W;t={mapId$jscomp$3:void 0},F++){t.mapId$jscomp$3=y.JSC$19466_outgoingMaps_[F].JSC$19468_mapId;var I=y.JSC$19466_outgoingMaps_[F].map;t.mapId$jscomp$3=y.JSC$19470_channelVersion_<=6?F:t.mapId$jscomp$3-w;try{_.Gc.forEach(I,function(P){return function(C,d){V.push("req"+P.mapId$jscomp$3+"_"+d+"="+encodeURIComponent(C))}}(t))}catch(P){V.push("req"+t.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}y.pendingMaps_=y.pendingMaps_.concat(y.JSC$19466_outgoingMaps_.splice(0,W));
return V.join("&")},Mnj=function(y){y.JSC$19470_backChannelRequest_||y.JSC$19470_backChannelTimerId_||(y.JSC$19470_backChannelAttemptId_=1,y.JSC$19470_backChannelTimerId_=Qd((0,_.jA)(y.JSC$19470_onStartBackChannelTimer_,y),0),y.JSC$19470_backChannelRetryCount_=0)},Uxu=function(y){if(y.JSC$19470_backChannelRequest_||y.JSC$19470_backChannelTimerId_||y.JSC$19470_backChannelRetryCount_>=3)return!1;
y.JSC$19466_channelDebug_.debug("Going to retry GET");y.JSC$19470_backChannelAttemptId_++;y.JSC$19470_backChannelTimerId_=Qd((0,_.jA)(y.JSC$19470_onStartBackChannelTimer_,y),q8v(y,y.JSC$19470_backChannelRetryCount_));y.JSC$19470_backChannelRetryCount_++;return!0};
OW.prototype.JSC$19470_onStartBackChannelTimer_=function(){this.JSC$19470_backChannelTimerId_=null;this.JSC$19466_channelDebug_.debug("Creating new HttpRequest");this.JSC$19470_backChannelRequest_=new Nb(this,this.JSC$19466_channelDebug_,this.sid_,"rpc",this.JSC$19470_backChannelAttemptId_);this.JSC$19470_backChannelRequest_.JSC$19458_extraHeaders_=this.JSC$19470_extraHeaders_;this.JSC$19470_backChannelRequest_.JSC$19458_readyStateChangeThrottleMs_=0;var y=this.JSC$19470_backChannelUri_.clone();_.If(y,
"RID","rpc");_.If(y,"SID",this.sid_);_.If(y,"CI",this.useChunked_?"0":"1");_.If(y,"AID",this.JSC$19470_lastArrayId_);vA(this,y);_.If(y,"TYPE","xmlhttp");yg3(this.JSC$19470_backChannelRequest_,y,!0,this.JSC$19470_hostPrefix_,!1);this.JSC$19466_channelDebug_.debug("New Request created")};
var CT=function(y,W,V){y.JSC$19466_channelDebug_.debug("Test Connection Finished");y.useChunked_=y.secondTestResults_==null?V:!y.secondTestResults_;y.JSC$19470_lastStatusCode_=W.JSC$19465_lastStatusCode_;y.asyncTest_||egq(y)},v0q=function(y,W){y.JSC$19466_channelDebug_.debug("Test Connection Failed");
y.JSC$19470_lastStatusCode_=W.JSC$19465_lastStatusCode_;PA(y,2)};
OW.prototype.JSC$19465_onRequestData=function(y,W){if(this.state_!=0&&(this.JSC$19470_backChannelRequest_==y||this.forwardChannelRequest_==y))if(this.JSC$19470_lastStatusCode_=y.JSC$19458_lastStatusCode_,this.forwardChannelRequest_==y&&this.state_==3)if(this.JSC$19470_channelVersion_>7){try{var V=this.JSC$19466_parser_.parse(W)}catch(w){V=null}if(Array.isArray(V)&&V.length==3)if(W=V,W[0]==0)a:if(this.JSC$19466_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19470_backChannelTimerId_)this.JSC$19466_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19470_backChannelRequest_)if(this.JSC$19470_backChannelRequest_.JSC$19458_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19458_requestStartTime_)phe(this),this.JSC$19470_backChannelRequest_.cancel(),this.JSC$19470_backChannelRequest_=null;else break a;else this.JSC$19466_channelDebug_.warning("We do not have a BackChannel established");Uxu(this);EW(19)}else this.JSC$19470_lastPostResponseArrayId_=W[1],y=this.JSC$19470_lastPostResponseArrayId_-this.JSC$19470_lastArrayId_,0<
y&&(W=W[2],this.JSC$19466_channelDebug_.debug(W+" bytes (in "+y+" arrays) are outstanding on the BackChannel"),W<37500&&this.useChunked_&&this.JSC$19470_backChannelRetryCount_==0&&!this.JSC$19470_deadBackChannelTimerId_&&(this.JSC$19470_deadBackChannelTimerId_=Qd((0,_.jA)(this.JSC$19470_onBackChannelDead_,this),6E3)));else this.JSC$19466_channelDebug_.debug("Bad POST response data returned"),PA(this,11)}else W!="y2f%"&&(this.JSC$19466_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
PA(this,11));else this.JSC$19470_backChannelRequest_==y&&phe(this),_.gu(W)||(y=this.JSC$19466_parser_.parse(W),this.onInput_(y))};
OW.prototype.JSC$19470_onBackChannelDead_=function(){this.JSC$19470_deadBackChannelTimerId_!=null&&(this.JSC$19470_deadBackChannelTimerId_=null,this.JSC$19470_backChannelRequest_.cancel(),this.JSC$19470_backChannelRequest_=null,Uxu(this),EW(20))};
var phe=function(y){y.JSC$19470_deadBackChannelTimerId_!=null&&(_.Vj.clearTimeout(y.JSC$19470_deadBackChannelTimerId_),y.JSC$19470_deadBackChannelTimerId_=null)};
OW.prototype.JSC$19465_onRequestComplete=function(y){this.JSC$19466_channelDebug_.debug("Request complete");if(this.JSC$19470_backChannelRequest_==y){phe(this);this.JSC$19470_backChannelRequest_=null;var W=2}else if(this.forwardChannelRequest_==y)this.forwardChannelRequest_=null,W=1;else return;this.JSC$19470_lastStatusCode_=y.JSC$19458_lastStatusCode_;if(this.state_!=0)if(y.JSC$19458_successful_)if(W==1){W=y.JSC$19458_postData_?y.JSC$19458_postData_.length:0;y=Date.now()-y.JSC$19458_requestStartTime_;
var V=XqE;V.dispatchEvent(new zgE(V,W,y,this.JSC$19470_forwardChannelRetryCount_));KZ3(this);this.handler_&&this.handler_.JSC$19477_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Mnj(this);else{V=y.getLastError();if(V==3||V==7||V==0&&this.JSC$19470_lastStatusCode_>0)this.JSC$19466_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19466_channelDebug_.debug("Maybe retrying, last error: "+G6E(V,this.JSC$19470_lastStatusCode_));var w;if(w=W==1)this.forwardChannelRequest_||
this.JSC$19470_forwardChannelTimerId_||this.state_==1||this.JSC$19470_forwardChannelRetryCount_>=2?w=!1:(this.JSC$19466_channelDebug_.debug("Going to retry POST"),this.JSC$19470_forwardChannelTimerId_=Qd((0,_.jA)(this.JSC$19470_onStartForwardChannelTimer_,this,y),q8v(this,this.JSC$19470_forwardChannelRetryCount_)),this.JSC$19470_forwardChannelRetryCount_++,w=!0);if(w||W==2&&Uxu(this))return;this.JSC$19466_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19466_channelDebug_.debug("Error: HTTP request failed");
switch(V){case 1:PA(this,5);break;case 4:PA(this,10);break;case 3:PA(this,6);break;case 7:PA(this,12);break;default:PA(this,2)}}};
var q8v=function(y,W){var V=5E3+Math.floor(Math.random()*1E4);y.isActive()||(y.JSC$19466_channelDebug_.debug("Inactive channel"),V*=2);return V*W};
OW.prototype.onInput_=function(y){for(var W=0;W<y.length;W++){var V=y[W];this.JSC$19470_lastArrayId_=V[0];V=V[1];this.state_==2?V[0]=="c"?(this.sid_=V[1],this.JSC$19470_hostPrefix_=V[2],V=V[3],V!=null?this.JSC$19470_channelVersion_=V:this.JSC$19470_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19477_channelOpened(),this.JSC$19470_backChannelUri_=O34(this,this.JSC$19470_hostPrefix_,this.JSC$19470_path_),Mnj(this)):V[0]=="stop"&&PA(this,7):this.state_==3&&(V[0]=="stop"?PA(this,7):
V[0]!="noop"&&this.handler_&&this.handler_.JSC$19477_channelHandleArray(V),this.JSC$19470_backChannelRetryCount_=0)}};
OW.prototype.JSC$19470_ensureInState_=function(y){if(!_.j4(arguments,this.state_))throw Error("Kk`"+this.state_);};
var PA=function(y,W){y.JSC$19466_channelDebug_.info("Error code "+W);if(W==2||W==9){var V=null;y.handler_&&(V=null);var w=(0,_.jA)(y.testGoogleComCallback_,y);V||(V=new _.gw("//www.google.com/images/cleardot.gif"),_.mx(V));UKt(V.toString(),1E4,w)}else EW(2);y.onError_(W)};
OW.prototype.testGoogleComCallback_=function(y){y?(this.JSC$19466_channelDebug_.info("Successfully pinged google.com"),EW(2)):(this.JSC$19466_channelDebug_.info("Failed to ping google.com"),EW(1),this.onError_(8))};
OW.prototype.onError_=function(y){this.JSC$19466_channelDebug_.debug("HttpChannel: error - "+y);this.state_=0;this.handler_&&this.handler_.JSC$19477_channelError(y);o0m(this);hgC(this)};
var o0m=function(y){y.state_=0;y.JSC$19470_lastStatusCode_=-1;if(y.handler_)if(y.pendingMaps_.length==0&&y.JSC$19466_outgoingMaps_.length==0)y.handler_.JSC$19477_channelClosed();else{y.JSC$19466_channelDebug_.debug("Number of undelivered maps, pending: "+y.pendingMaps_.length+", outgoing: "+y.JSC$19466_outgoingMaps_.length);var W=_.ru(y.pendingMaps_),V=_.ru(y.JSC$19466_outgoingMaps_);y.pendingMaps_.length=0;y.JSC$19466_outgoingMaps_.length=0;y.handler_.JSC$19477_channelClosed(W,V)}},INC=function(y,
W){W=CT3(y,null,W);
y.JSC$19466_channelDebug_.debug("GetForwardChannelUri: "+W);return W},O34=function(y,W,V){W=CT3(y,y.JSC$19465_shouldUseSecondaryDomains()?W:null,V);
y.JSC$19466_channelDebug_.debug("GetBackChannelUri: "+W);return W},CT3=function(y,W,V){var w=_.Ey(V);
if(w.JSC$9958_domain_!="")W&&_.cY(w,W+"."+w.JSC$9958_domain_),_.eb(w,w.JSC$9958_port_);else{var t=window.location;w=rOj(t.protocol,W?W+"."+t.hostname:t.hostname,+t.port,V)}y.JSC$19470_extraParams_&&_.Gc.forEach(y.JSC$19470_extraParams_,function(F,I){_.If(w,I,F)});
_.If(w,"VER",y.JSC$19470_channelVersion_);vA(y,w);return w};
OW.prototype.JSC$19465_createXhrIo=function(y){if(y)throw Error("Hk");y=new _.ay;y.JSC$9721_withCredentials_=!1;return y};
OW.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
OW.prototype.notifyServerReachabilityEvent=function(y){var W=XqE;W.dispatchEvent(new cgj(W,y))};
OW.prototype.JSC$19465_shouldUseSecondaryDomains=function(){return!1};
new V3u;var uBm=function(){};
_.E=uBm.prototype;_.E.JSC$19477_channelOpened=function(){};
_.E.JSC$19477_channelHandleArray=function(){};
_.E.JSC$19477_channelSuccess=function(){};
_.E.JSC$19477_channelError=function(){};
_.E.JSC$19477_channelClosed=function(){};
_.E.JSC$19477_getAdditionalParams=function(){return{}};
_.E.isActive=function(){return!0};var S8u=function(y){y.front_.length===0&&(y.front_=y.back_,y.front_.reverse(),y.back_=[])};
_.E=DKu.prototype;_.E.enqueue=function(y){this.back_.push(y)};
_.E.peek=function(){S8u(this);return _.Av(this.front_)};
_.E.getCount=function(){return this.front_.length+this.back_.length};
_.E.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.E.clear=function(){this.front_=[];this.back_=[]};
_.E.contains=function(y){return _.j4(this.front_,y)||_.j4(this.back_,y)};
_.E.remove=function(y){var W=this.front_;var V=Array.prototype.lastIndexOf.call(W,y,W.length-1);V>=0?(_.aR(W,V),W=!0):W=!1;return W||_.GG(this.back_,y)};
_.E.getValues=function(){for(var y=[],W=this.front_.length-1;W>=0;--W)y.push(this.front_[W]);W=this.back_.length;for(var V=0;V<W;++V)y.push(this.back_[V]);return y};var d8=function(y){this.JSC$19481_map_=new _.Mf;this.size=0;y&&this.addAll(y)},DxC=function(y){var W=typeof y;
return W=="object"&&y||W=="function"?"o"+_.tA(y):W.charAt(0)+y};
_.E=d8.prototype;_.E.getCount=function(){return this.JSC$19481_map_.size};
_.E.add=function(y){this.JSC$19481_map_.set(DxC(y),y);this.size=this.JSC$19481_map_.size};
_.E.addAll=function(y){y=_.LH(y);for(var W=y.length,V=0;V<W;V++)this.add(y[V]);this.size=this.JSC$19481_map_.size};
_.E.removeAll=function(y){y=_.LH(y);for(var W=y.length,V=0;V<W;V++)this.remove(y[V]);this.size=this.JSC$19481_map_.size};
_.E.delete=function(y){y=this.JSC$19481_map_.remove(DxC(y));this.size=this.JSC$19481_map_.size;return y};
_.E.remove=function(y){return this.delete(y)};
_.E.clear=function(){this.JSC$19481_map_.clear();this.size=0};
_.E.isEmpty=function(){return this.JSC$19481_map_.size===0};
_.E.has=function(y){return this.JSC$19481_map_.containsKey(DxC(y))};
_.E.contains=function(y){return this.JSC$19481_map_.containsKey(DxC(y))};
_.E.getValues=function(){return this.JSC$19481_map_.getValues()};
_.E.values=function(){return this.JSC$19481_map_.values()};
_.E.clone=function(){return new d8(this)};
_.E.equals=function(y){return this.getCount()==a63(y)&&lNt(this,y)};
var lNt=function(y,W){var V=a63(W);if(y.getCount()>V)return!1;!(W instanceof d8)&&V>5&&(W=new d8(W));return Grq(y,function(w){var t=W;return t.contains&&typeof t.contains=="function"?t.contains(w):t.containsValue&&typeof t.containsValue=="function"?t.containsValue(w):_.bn(t)||typeof t==="string"?_.j4(t,w):_.Gc.containsValue(t,w)})};
d8.prototype.__iterator__=function(){return this.JSC$19481_map_.__iterator__(!1)};
d8.prototype[Symbol.iterator]=function(){return this.values()};var xxu={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(y){return(this._clampValue(y)-this.min)/(this.max-this.min)},
_clampValue:function(y){return Math.min(this.max,Math.max(this.min,this._calcStep(y)))},
_calcStep:function(y){y=parseFloat(y);if(!this.step)return y;y=Math.round((y-this.min)/this.step);return this.step<1?y/(1/this.step)+this.min:y*this.step+this.min},
_validateValue:function(){var y=this._clampValue(this.value);this.value=this.oldValue=isNaN(y)?this.oldValue:y;return this.value!==y},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var kdP;var siW;_.a6({_template:function(){if(siW!==void 0)return siW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;kdP===void 0&&(kdP=document.createElement("template"));var w=kdP;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return siW=y},
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(){_.gy(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(y){y.keyCode===27&&(y.preventDefault(),this.close())},
_track:function(y){if(!this.persistent&&!this.disableSwipe)switch(y.preventDefault(),y.detail.state){case "start":this._trackStart(y);break;case "track":this._trackMove(y);break;case "end":this._trackEnd(y)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var y=this.$.contentContainer.getBoundingClientRect();this._savedWidth=y.width;this._translateOffset=this.position==="left"?y.left:y.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(y){this._trackDetails&&(this._translateDrawer(y.detail.dx+this._translateOffset),this._trackDetails.push({dx:y.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(y){if(this._trackDetails){var W=y.detail.dx+this._translateOffset,V=this.getWidth();W=this.position==="left"?W>=0||W<=-V:W<=0||W>=V;if(!W){var w=this._trackDetails;this._trackDetails=null;this._flingDrawer(y,w);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}V/=2;y.detail.dx<-V?this.opened=this.position==="right":y.detail.dx>V&&(this.opened=this.position==="left");W?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(y,W){for(var V=Date.now(),w=V-100,t,F=0,I=W.length-1;F<=I;){var P=F+I>>1,C=W[P];C.timeStamp>=w?(t=C,I=P-1):F=P+1}return t?(y.detail.dx-t.dx)/(V-t.timeStamp||1):0},
_flingDrawer:function(y,W){W=this._calculateVelocity(y,W);if(!(Math.abs(W)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;y=y.detail.dx+this._translateOffset;var V=this.getWidth(),w=this.position==="left",t=W>0;t?(W=Math.max(W,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(W=Math.min(W,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");W=this._FLING_INITIAL_SLOPE*(!t&&w?-(y+V):t&&!w?V-y:-y)/W;this._styleTransitionDuration(W);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,W)}},
_styleTransitionDuration:function(y){this.style.transitionDuration=y+"ms";this.$.contentContainer.style.transitionDuration=y+"ms";this.$.scrim.style.transitionDuration=y+"ms"},
_styleTransitionTimingFunction:function(y){this.$.contentContainer.style.transitionTimingFunction=y;this.$.scrim.style.transitionTimingFunction=y},
_translateDrawer:function(y){var W=this.getWidth();this.position==="left"?(y=Math.max(-W,Math.min(y,0)),this.$.scrim.style.opacity=1+y/W):(y=Math.max(0,Math.min(y,W)),this.$.scrim.style.opacity=1-y/W);this.translate3d(y+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var y=this._drawerState;y===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;y!==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=""),y!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var y=_.Yy(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"])');y.length>0?(this._firstTabStop=y[0],this._lastTabStop=y[y.length-1]):
this._lastTabStop=this._firstTabStop=null;(y=this.getAttribute("tabindex"))&&parseInt(y,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(y){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||y.keyCode!==9||(y.shiftKey?this._firstTabStop&&_.Yy(y).localTarget===this._firstTabStop&&(y.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Yy(y).localTarget===this._lastTabStop&&(y.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(y,W){this.toggleClass("visible",y&&!W,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 Agv;var Y8E;_.a6({_template:function(){if(Y8E!==void 0)return Y8E;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Agv===void 0&&(Agv=document.createElement("template"));var w=Agv;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Y8E=y},
is:"tp-yt-paper-progress",behaviors:[xxu],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(y){this.toggleClass("indeterminate",y,this.$.primaryProgress)},
_transformProgress:function(y,W){y.style.transform=y.style.webkitTransform="scaleX("+W/100+")"},
_mainRatioChanged:function(y){this._transformProgress(this.$.primaryProgress,y)},
_progressChanged:function(y,W,V,w,t){y=this._clampValue(y);W=this._clampValue(W);var F=this._calcRatio(y)*100,I=this._calcRatio(W)*100;this._setSecondaryRatio(F);this._transformProgress(this.$.secondaryProgress,F);this._transformProgress(this.$.primaryProgress,I);this.secondaryProgress=y;t?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",W);this.setAttribute("aria-valuemin",V);this.setAttribute("aria-valuemax",w)},
_disabledChanged:function(y){this.setAttribute("aria-disabled",y?"true":"false")},
_hideSecondaryProgress:function(y){return y===0}});var Bzm;var Jg3;var RgP=function(){};
_.E=RgP.prototype;_.E.registered=function(){};
_.E.addOwnKeyBinding=function(){};
_.E.removeOwnKeyBindings=function(){};
_.E.keyboardEventMatchesKeys=function(){};
_.E._collectKeyBindings=function(){};
_.E._prepKeyBindings=function(){};
_.E._addKeyBinding=function(){};
_.E._resetKeyEventListeners=function(){};
_.E._listenKeyEventListeners=function(){};
_.E._unlistenKeyEventListeners=function(){};
_.E._onKeyBindingEvent=function(){};
_.E._triggerKeyHandler=function(){};
_.E._tapHandler=function(){};
_.E._focusChanged=function(){};
_.E._detectKeyboardFocus=function(){};
_.E._userActivate=function(){};
_.E._upHandler=function(){};
_.E._spaceKeyDownHandler=function(){};
_.E._spaceKeyUpHandler=function(){};
_.E._asyncClick=function(){};
_.E._pressedChanged=function(){};
_.E._ariaActiveAttributeChanged=function(){};
_.E._activeChanged=function(){};
_.E._controlStateChanged=function(){};
_.E._changedButtonState=function(){};
_.E._focusBlurHandler=function(){};
_.E._disabledChanged=function(){};
_.E._changedControlState=function(){};
_.E._buttonStateChanged=function(){};
_.E._downHandler=function(){};
_.E.ensureRipple=function(){};
_.E.getRipple=function(){};
_.E.hasRipple=function(){};
_.E._noinkChanged=function(){};
_.E._calcRatio=function(){};
_.E._clampValue=function(){};
_.E._calcStep=function(){};
_.E._validateValue=function(){};
_.E._update=function(){};
_.E._setImmediateValue=function(){};
_.E._setExpand=function(){};
_.E._setDragging=function(){};
_.E._setTransiting=function(){};
_.E._setMarkers=function(){};
_.E._setPressed=function(){};
_.E._setPointerDown=function(){};
_.E._setReceivedFocusFromKeyboard=function(){};
_.E._setFocused=function(){};
_.E._setRatio=function(){};
RgP=_.a6({_template:function(){if(Jg3!==void 0)return Jg3;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Bzm===void 0&&(Bzm=document.createElement("template"));var w=Bzm;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return Jg3=y},
is:"tp-yt-paper-slider",behaviors:[_.Bw,_.$f,_.Nx2,xxu],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&&_.a0(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(y,W,V){this.setAttribute("aria-valuemin",W);this.setAttribute("aria-valuemax",V);this.setAttribute("aria-valuenow",y);this._positionKnob(this._calcRatio(y)*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(y){this._setImmediateValue(this._calcStep(this._calcKnobPosition(y)));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(y){return(this.max-this.min)*y/100+this.min},
_onTrack:function(y){y.stopPropagation();switch(y.detail.state){case "start":this._trackStart(y);break;case "track":this._trackX(y);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(y){this.dragging||this._trackStart(y);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,y.detail.dx*(this._isRTL?-1:1)));y=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(y);y=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(y+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var y=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;y.transform=y.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(y){this._expandKnob();y.preventDefault();this.focus()},
_bartrack:function(y){this._allowBarEvent(y)&&this._onTrack(y)},
_barclick:function(y){this._w=this.$.sliderBar.offsetWidth;var W=this.$.sliderBar.getBoundingClientRect();W=(y.detail.x-W.left)/this._w*100;this._isRTL&&(W=100-W);var V=this.ratio;this._setTransiting(!0);this._positionKnob(W);V===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
y.preventDefault();this.focus()},
_bardown:function(y){this._allowBarEvent(y)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(y))},
_knobTransitionEnd:function(y){y.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(y,W,V,w){w||this._setMarkers([]);W=Math.round((V-W)/this.step);W>y&&(W=y);if(W<0||!isFinite(W))W=0;this._setMarkers(Array(W))},
_mergeClasses:function(y){return Object.keys(y).filter(function(W){return y[W]}).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(y){return!this.ignoreBarTouch||y.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(y){this._isRTL?this._incrementKey(y):this._decrementKey(y)},
_rightKey:function(y){this._isRTL?this._decrementKey(y):this._incrementKey(y)},
_incrementKey:function(y){this.disabled||(y.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),y.preventDefault())},
_decrementKey:function(y){this.disabled||(y.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),y.preventDefault())},
_changeValue:function(y){this.value=y.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(y){y.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.EUf._createRipple.call(this)},
_focusedChanged:function(y){y&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=y?"":"none",this._ripple.holdDown=y)}});var jiP;var $xj;var LT=null,n0t=function(){};
_.E=n0t.prototype;_.E.fit=function(){};
_.E._discoverInfo=function(){};
_.E.resetFit=function(){};
_.E.refit=function(){};
_.E.position=function(){};
_.E.constrain=function(){};
_.E._sizeDimension=function(){};
_.E.__sizeDimension=function(){};
_.E.center=function(){};
_.E.__getNormalizedRect=function(){};
_.E.__getOffscreenArea=function(){};
_.E.__getPosition=function(){};
_.E.notifyResize=function(){};
_.E.assignParentResizable=function(){};
_.E.stopResizeNotificationsFor=function(){};
_.E._subscribeIronResize=function(){};
_.E._unsubscribeIronResize=function(){};
_.E.resizerShouldNotify=function(){};
_.E._onDescendantIronResize=function(){};
_.E._fireResize=function(){};
_.E._onIronRequestResizeNotifications=function(){};
_.E._parentResizableChanged=function(){};
_.E._notifyDescendant=function(){};
_.E._requestResizeNotifications=function(){};
_.E._findParent=function(){};
_.E.toggle=function(){};
_.E.open=function(){};
_.E.close=function(){};
_.E.cancel=function(){};
_.E.invalidateTabbables=function(){};
_.E._ensureSetup=function(){};
_.E._canceledChanged=function(){};
_.E._withBackdropChanged=function(){};
_.E._prepareRenderOpened=function(){};
_.E._finishRenderOpened=function(){};
_.E._finishRenderClosed=function(){};
_.E._preparePositioning=function(){};
_.E._finishPositioning=function(){};
_.E._applyFocus=function(){};
_.E._onCaptureClick=function(){};
_.E._onCaptureFocus=function(){};
_.E._onCaptureEsc=function(){};
_.E._onCaptureTab=function(){};
_.E._onIronResize=function(){};
_.E._onNodesChange=function(){};
_.E.__ensureFirstLastFocusables=function(){};
_.E.__openedChanged=function(){};
_.E.__deraf=function(){};
_.E.__updateScrollObservers=function(){};
_.E.__addScrollListeners=function(){};
_.E.__removeScrollListeners=function(){};
_.E.__isValidScrollAction=function(){};
_.E.__onCaptureScroll=function(){};
_.E.__saveScrollPosition=function(){};
_.E.__restoreScrollPosition=function(){};
_.E._setCanceled=function(){};
n0t=_.a6({_template:function(){if($xj!==void 0)return $xj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;jiP===void 0&&(jiP=document.createElement("template"));var w=jiP;V.call(W,w.content.cloneNode(!0),y.content.firstChild);return $xj=y},
is:"tp-yt-paper-toast",behaviors:[_.Pq],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(){_.Jq._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Ff.requestAvailability()},
show:function(y){typeof y=="string"&&(y={text:y});for(var W in y)W.indexOf("_")===0?_.Jq._warn('The property "'+W+'" is private and was not set.'):W in this?this[W]=y[W]:_.Jq._warn('The property "'+W+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(y){y&&y.target===this&&y.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(LT&&LT!==this&&LT.close(),LT=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):LT===this&&(LT=null);_.g1._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(y){this.positionTarget=y},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var H3v=new _.zf("disablePersonalizationAction");var TL3=new _.zf("showDmaConsentFlowCommand");var m4d=new _.zf("showMmgNoticeCommand");var XhC=new _.zf("saveConsentAction");var aNd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qu(y)};
_.p(aNd,_.fu);var Gdd=_.pZz(aNd);var rgP=new _.zf("updateTopbarAvatarAction");var b34=new _.zf("channelHandleValidationResultRenderer");var QiE=new _.zf("generateHandleFromNameResultRenderer");var Z3m=new _.zf("channelHandleInputRenderer");var ySj=new _.zf("copyLinkRenderer");var WPv=new _.zf("timedCommand");var VL4=new _.zf("clearCookieAction");var wPq=new _.zf("getMultiPageMenuAction");var tLt=new _.zf("addToGuideSectionAction"),FPd=new _.zf("removeFromGuideSectionAction");var EKv=new _.zf("updateNotificationsUnseenCountAction");var NdC=new _.zf("resetChannelUnreadCountCommand");var IkE=new _.zf("resetSubscriptionsUnreadDotCommand");var gKe=new _.zf("selectLanguageCommand");var JYj=new _.zf("sendFeedbackAction");var Piq=new _.zf("uploadImageToScottyCommand");var Cij=new _.zf("registerPromoCommand");var Ocj=new _.zf("setPushNotificationsEnabledCommand");var vKj=new _.zf("desktopTopbarRenderer");var diP=new _.zf("surveyFollowUpRenderer");var LPd=new _.zf("handlesClaimingRadioOptionRenderer");var zYm=new _.zf("hotkeyDialogRenderer");var cSE=new _.zf("modifyReportFormCommand");var eYu=new _.zf("accountLinkCommand");var hYd=new _.zf("accountUnlinkCommand");var oKu=new _.zf("logAccountLinkingEventCommand");var KP3=new _.zf("guideCollapsibleEntryRenderer");var pPu=new _.zf("guideDownloadsEntryRenderer");var zz=new _.zf("guideEntryRenderer");var icW=new _.zf("getLocationCommand");var fk3=new _.zf("locationCollectionCommand");var Tdu=new _.zf("storiesItemViewModel");var miq=new _.zf("addToRemoteQueueAction");var MLj=new _.zf("insertInRemoteQueueAction");var qAe=new _.zf("removeFromRemoteQueueAction");var Ui3=new _.zf("notificationRenderer");var PFj=new _.zf("localWatchHistoryCommand");var uSe=new _.zf("pdgBuyFlowHeaderRenderer");var SAq=new _.zf("pdgColorSliderRenderer");var Dit=new _.zf("pdgCommentOptionRenderer");var lkE=new _.zf("pdgCommentPreviewRenderer");var xi4=new _.zf("superVodSelectableItemButtonRenderer");var kq4=new _.zf("switchButtonRenderer");var sbW=new _.zf("upsellDialogRenderer");var ASt=new _.zf("feedbackQuestionRenderer"),YAq=new _.zf("feedbackOptionRenderer");var Bde=new _.zf("sponsorshipsTierRenderer"),JSW=new _.zf("sponsorshipsPromotionChannelRenderer");var RY3=new _.zf("simpleSurveyMessageRenderer");var Jlv=new _.zf("invokeInstrumentManagerAction");var jbE=new _.zf("logYpcFlowDismissCommand");var $it=new _.zf("logYpcFlowStartCommand");var nKu=new _.zf("unlimitedCreateFamilyEndpoint");var Hce=new _.zf("iconBadgeRenderer");var CE4=new _.zf("collaborativePlaylistVisibilityValidationRule");var XPm=function(y){_.xs.call(this,"channelMessage");this.message=y};
_.p(XPm,_.xs);var akW=function(y){_.xs.call(this,"channelError");this.error=y};
_.p(akW,_.xs);var Gq4={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"},rSj={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},bcC={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Qb3={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ZcW={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var cA=function(y){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 _.Mf;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;y&&(this.id=y.id||y.name,this.name=y.name,this.clientName=y.clientName?y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=y.app,this.type=y.type||"REMOTE_CONTROL",this.username=y.user||"",this.avatar=y.userAvatarUri||"",this.obfuscatedGaiaId=y.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=y.ownerObfuscatedGaiaId||"",this.castUserId=y.castUserId||"",this.theme=y.theme||"u",yZj(this,y.capabilities||""),WK3(this,
y.compatibleSenderThemes||""),Vtu(this,y.experiments||""),this.remoteControllerUrl=y.remoteControllerUrl||"",this.localChannelEncryptionKey=y.localChannelEncryptionKey||"",this.deviceContext=y.deviceContext,this.brand=y.brand||"",this.model=y.model||"",this.year=y.year||0,this.os=y.os||"",this.osVersion=y.osVersion||"",this.chipset=y.chipset||"",this.mdxDialServerType=y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=y.pairingType||"unknown",y=y.deviceInfo)&&(y=JSON.parse(y),this.brand=
y.brand||"",this.model=y.model||"",this.year=y.year||0,this.os=y.os||"",this.osVersion=y.osVersion||"",this.chipset=y.chipset||"",this.clientName=y.clientName?y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
cA.prototype.copy=function(){var y={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&&(y.brand=this.brand);
this.model&&(y.model=this.model);this.year&&(y.year=this.year);this.os&&(y.os=this.os);this.osVersion&&(y.osVersion=this.osVersion);this.chipset&&(y.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(y.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(y.mdxDialServerType=this.mdxDialServerType);y=new cA(y);y.connected=this.connected;y.remoteControllerUrl=this.remoteControllerUrl;y.localChannelEncryptionKey=this.localChannelEncryptionKey;y.deviceContext=
this.deviceContext;y.castUserId=this.castUserId;return y};
cA.prototype.equals=function(y){return y?this.id==y.id:!1};
var yZj=function(y,W){y.capabilities.clear();_.fF(W.split(","),_.D2(_.Gc.contains,Gq4)).forEach(function(V){y.capabilities.add(V)})},WK3=function(y,W){y.compatibleSenderThemes.clear();
_.fF(W.split(","),_.D2(_.Gc.contains,rSj)).forEach(function(V){y.compatibleSenderThemes.add(V)})},Vtu=function(y,W){y.experiments.clear();
W.split(",").forEach(function(V){y.experiments.add(V)})};var wBt=function(y,W){this.action=y;this.params=W||{}};_.pF(lHj,_.Ru);_.E=lHj.prototype;_.E.JSC$19517_onTick_=function(){this.JSC$19515_interval_=Math.min(3E5,this.JSC$19515_interval_*2);this.JSC$19517_listener_();this.nextTickTime_&&this.start()};
_.E.start=function(){var y=this.JSC$19515_interval_+15E3*Math.random(),W=this.delay_;W.isActive()||W.start(y);this.nextTickTime_=Date.now()+y};
_.E.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.E.isActive=function(){return this.delay_.isActive()};
_.E.reset=function(){this.delay_.stop();this.JSC$19515_interval_=5E3};_.pF(yX,uBm);_.E=yX.prototype;_.E.subscribe=function(y,W,V){return this.pubsub_.subscribe(y,W,V)};
_.E.unsubscribe=function(y,W,V){return this.pubsub_.unsubscribe(y,W,V)};
_.E.unsubscribeByKey=function(y){return this.pubsub_.unsubscribeByKey(y)};
_.E.publish=function(y,W){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.E.dispose=function(){this.JSC$19518_disposed_||(this.JSC$19518_disposed_=!0,_.La(this.pubsub_),this.disconnect(),_.La(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19518_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.T2({})})};
_.E.isDisposed=function(){return this.JSC$19518_disposed_};
_.E.connect=function(y,W,V){var w=this,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return _.sc(C,2),w.useAsyncBrowserChannelHandler_?C.yield(w.connectPromise_,2):C.jumpTo(2);_.kX(C);if(w.JSC$19518_disposed_||w.JSC$19518_channel_&&w.JSC$19518_channel_.getState()==2)return C.return();w.sCookie_="";w.reconnectTimer_.stop();w.connectionParams_=y||null;w.connectUi_=W||0;t=w.JSC$19518_pathPrefix_+"/test";F=w.JSC$19518_pathPrefix_+"/bind";I=new OW(V?V.firstTestResults:null,V?V.secondTestResults:null,
w.enableAsyncTest_);if(P=w.JSC$19518_channel_)P.handler_=null;I.handler_=w;w.JSC$19518_channel_=I;if(w.useAsyncBrowserChannelHandler_)return w.connectPromise_=tt3(w).then(function(){return FKv(w,t,F,P,V)}),C.return(w.connectPromise_.then(function(){w.connectPromise_=_.T2()}));
FKv(w,t,F,P,V);return _.AX(C,0)})};
var FKv=function(y,W,V,w,t){Ep4(y);if(y.JSC$19518_channel_){var F=_.yC("ID_TOKEN"),I=y.JSC$19518_channel_.JSC$19470_extraHeaders_||{};F?I["x-youtube-identity-token"]=F:delete I["x-youtube-identity-token"];y.JSC$19518_channel_.JSC$19470_extraHeaders_=I}N0C(y);w?(w.getState(),y.JSC$19518_channel_.connect(W,V,y.defaultQueryParams_,w.sid_,w.JSC$19470_lastArrayId_)):t?y.JSC$19518_channel_.connect(W,V,y.defaultQueryParams_,t.sessionId,t.arrayId):y.JSC$19518_channel_.connect(W,V,y.defaultQueryParams_)};
yX.prototype.disconnect=function(y){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.T2())}finally{this.disconnectUi_=y||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Ep4(this),this.JSC$19518_channel_&&(this.JSC$19518_channel_.getState()==3&&fNE(this.JSC$19518_channel_),this.JSC$19518_channel_.disconnect()),this.disconnectUi_=0}};
yX.prototype.sendMessage=function(y,W){var V=this,w;return _.g(function(t){switch(t.nextAddress){case 1:_.sc(t,2);if(!V.useAsyncBrowserChannelHandler_){t.jumpTo(2);break}return t.yield(V.connectPromise_,2);case 2:_.kX(t);if(V.JSC$19518_disposed_)return t.return();w={_sc:y};W&&_.Gc.extend(w,W);if(V.reconnectTimer_.isActive()||(V.JSC$19518_channel_?V.JSC$19518_channel_.getState():0)==2){V.JSC$19518_pendingMessages_.push(w);t.jumpTo(6);break}if(!V.isChannelOpened()){t.jumpTo(6);break}_.sc(t,8);if(!V.useAsyncBrowserChannelHandler_||
I0P(V,y)){t.jumpTo(8);break}return t.yield(tt3(V),8);case 8:_.kX(t,0,0,1);V.isChannelOpened()&&(I0P(V,y)||N0C(V),Ep4(V),i3d(V.JSC$19518_channel_,w));_.AX(t,6,1);break;case 6:_.AX(t,0)}})};
var I0P=function(y,W){return y.enableMdxAuthForConnectionOnly_?!0:y.disableMdxAuthForAdMessages_?Object.values(bcC).includes(W):y.disableMdxAuthForNonPlaybackMessages_?!Object.values(Qb3).includes(W):y.disableMdxAuthForShortsMessages_?Object.values(ZcW).includes(W):!1};
yX.prototype.JSC$19477_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19518_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)gp3(this);else{var y=this.JSC$19518_pendingMessages_;this.JSC$19518_pendingMessages_=[];var W=y.length;N0C(this);Pkv(this,y,W);Ckt(this)}else Ckt(this)};
var gp3=function(y){var W,V;_.g(function(w){if(w.nextAddress==1)return _.sc(w,2),w.yield(tt3(y),2);_.kX(w);W=y.JSC$19518_pendingMessages_;y.JSC$19518_pendingMessages_=[];V=W.length;Pkv(y,W,V);Ckt(y);return _.AX(w,0)})},Pkv=function(y,W,V){for(var w=0;w<V;++w)i3d(y.JSC$19518_channel_,W[w]);
Ckt(y)},Ckt=function(y){y.publish("handlerOpened");
y.JSC$19518_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.E=yX.prototype;_.E.JSC$19477_channelError=function(y){var W=y==2&&this.JSC$19518_channel_.JSC$19470_lastStatusCode_==401;y==4||W||this.reconnectTimer_.start();this.publish("handlerError",y,W);W=Object.keys(LZj).find(function(V){return LZj[V]===y});
this.JSC$19518_channelErrorCounter.increment("BROWSER_CHANNEL",W!=null?W:"UNKNOWN")};
_.E.JSC$19477_channelClosed=function(y,W){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(W)for(var V=W.length,w=0;w<V;++w){var t=W[w].map;t&&this.JSC$19518_pendingMessages_.push(t)}this.JSC$19518_channelClosedCounter.increment("BROWSER_CHANNEL");y&&this.pendingMapsOnClosedCounter.JSC$9859_streamzService.JSC$9712_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",y.length);W&&this.undeliveredMapsOnClosedCounter.JSC$9862_streamzService.JSC$9712_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
W.length)};
_.E.JSC$19477_channelSuccess=function(y,W){W!=null&&y!=null&&this.channelMessageSentCounter.increment()};
_.E.JSC$19477_getAdditionalParams=function(){var y={v:2};this.sCookie_&&(y.gsessionid=this.sCookie_);this.connectUi_!=0&&(y.ui=""+this.connectUi_);this.disconnectUi_!=0&&(y.ui=""+this.disconnectUi_);this.connectionParams_&&_.Gc.extend(y,this.connectionParams_);return y};
_.E.JSC$19477_channelHandleArray=function(y){y[0]=="S"?this.sCookie_=y[1]:y[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19518_channel_.disconnect()):this.publish("handlerMessage",new wBt(y[0],y[1]));this.JSC$19518_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.E.isChannelOpened=function(){return!!this.JSC$19518_channel_&&this.JSC$19518_channel_.getState()==3};
var Ep4=function(y){if(y.JSC$19518_channel_){var W=y.JSC$19518_getXsrfToken_(),V=y.JSC$19518_channel_.JSC$19470_extraHeaders_||{};W?V["x-youtube-lounge-xsrf-token"]=W:delete V["x-youtube-lounge-xsrf-token"];y.JSC$19518_channel_.JSC$19470_extraHeaders_=V}},tt3=function(y){if(y.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.T2();
if(!y.enableCachedUpdateAuthorizationHeader_)return OhW(y);y.updateAuthorizationHeaderPromise_===null&&(y.updateAuthorizationHeaderPromise_=OhW(y));return y.updateAuthorizationHeaderPromise_},OhW=function(y){return _.$s(y.getAuthorizationHeader_().then(function(W){vpu(y,W)}).thenCatch(function(){}),function(){y.updateAuthorizationHeaderPromise_=null})},vpu=function(y,W){if(y.JSC$19518_channel_){var V=y.JSC$19518_channel_.JSC$19470_extraHeaders_||{};
W&&Object.keys(W).length>0?V=Object.assign({},V,W):delete V.Authorization;y.JSC$19518_channel_.JSC$19470_extraHeaders_=V}},N0C=function(y){y.getAuthorizationHeaderSync_&&!y.useAsyncBrowserChannelHandler_&&vpu(y,y.getAuthorizationHeaderSync_())};
_.E=yX.prototype;_.E.setLoungeToken=function(y){(this.defaultQueryParams_.loungeIdToken=y)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19518_channel_){var W=this.JSC$19518_channel_.JSC$19470_extraHeaders_||{};y?W["X-YouTube-LoungeId-Token"]=y:delete W["X-YouTube-LoungeId-Token"];this.JSC$19518_channel_.JSC$19470_extraHeaders_=W}};
_.E.getDeviceId=function(){return this.defaultQueryParams_.id};
_.E.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.E.reconnect=function(){var y=this.reconnectTimer_;y.delay_.fire();y.start()};
_.E.safeReconnect_=function(){var y=this.JSC$19518_channel_,W=0;y.JSC$19470_backChannelRequest_&&W++;y.forwardChannelRequest_&&W++;W==0&&this.connect(this.connectionParams_,this.connectUi_)};var Nq=function(y,W){var V=y.basePath;y.supportCors&&(V=y.scheme+"://"+y.domain+y.port+y.basePath);return _.O1(V+W,{})};
WI.prototype.sendRequest=function(y,W,V,w,t,F,I){y={format:F?"RAW":"JSON",method:y,context:this,timeout:5E3,withCredentials:!!I,onSuccess:_.D2(this.JSC$19523_onSuccess_,w,!F),onError:_.D2(this.onError_,t),onTimeout:_.D2(this.JSC$19523_onTimeout_,t)};V&&(y.postParams=V,y.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.uC(W,y)};
WI.prototype.JSC$19523_onSuccess_=function(y,W,V,w){W?y(w):y({text:V.responseText})};
WI.prototype.onError_=function(y,W){y(Error("Lk`"+W.status))};
WI.prototype.JSC$19523_onTimeout_=function(y){y(Error("Mk"))};var wv=function(y,W){return!!W&&(y.id==W||y.uuid==W)},dCv=function(y){return{name:y.name,
screenId:y.id,loungeToken:y.token,dialId:y.uuid,screenIdType:y.idType}},LKP=function(y){return new VX(y)},zjq=function(y){return Array.isArray(y)?_.rU(y,LKP):[]},$oe=function(y){if(!y)return"null";
var W=y.token?".."+y.token.slice(-6):"-",V=y.uuid?".."+y.uuid.slice(-6):"-";return'{name:"'+y.name+'",id:'+y.id.substr(0,6)+"..,token:"+(W+",uuid:"+V+",idType:"+y.idType+"}")},cx4=function(y){return Array.isArray(y)?"["+_.rU(y,$oe).join(",")+"]":"null"};var b2m="",EM=null;var E1u=function(y,W){_.Bg.call(this);var V=this;this.handler=y();this.handler.subscribe("handlerOpened",this.JSC$19530_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(w,t){V.onError(t)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=W};
_.p(E1u,_.Bg);_.E=E1u.prototype;_.E.connect=function(y,W,V){this.handler.connect(y,W,V)};
_.E.disconnect=function(y){this.handler.disconnect(y)};
_.E.reconnect=function(){this.handler.reconnect()};
_.E.getDeviceId=function(){return this.handler.getDeviceId()};
_.E.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.E.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.E.JSC$19530_onOpened=function(){this.dispatchEvent("channelOpened");var y=this.handler,W=this.currentScreenId;_.ui("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!y.JSC$19518_channel_.useChunked_,sessionId:y.JSC$19518_channel_.sid_,arrayId:y.JSC$19518_channel_.JSC$19470_lastArrayId_});_.ui("yt-remote-session-screen-id",W);y=nC3();W=H2W();_.j4(y,W)||y.push(W);rz3(y);G4C()};
_.E.onClosed=function(){this.dispatchEvent("channelClosed")};
_.E.onMessage=function(y){this.dispatchEvent(new XPm(y))};
_.E.onError=function(y){this.dispatchEvent(new akW(y?1:0))};
_.E.sendMessage=function(y,W){this.handler.sendMessage(y,W)};
_.E.setLoungeToken=function(y){this.handler.setLoungeToken(y)};
_.E.dispose=function(){this.handler.dispose()};var FSE=function(y,W,V){var w=this;V=V===void 0?function(){return""}:V;
var t=t===void 0?new RI4:t;var F=F===void 0?new _.D3:F;this.pathPrefix=y;this.defaultQueryParams=W;this.getXsrfToken=V;this.JSC$19533_pubsub=F;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new lHj(function(){var I;((I=w.channel)==null?void 0:qK3((new noW(I,I.JSC$19441_channel_)).JSC$19451_channel_.forwardChannelRequestPool_))===0&&w.connect(w.connectionParams,w.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19533_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19533_channelOpenedCounter=new xKq;this.JSC$19533_channelClosedCounter=new k4E;this.JSC$19533_channelMessageReceivedCounter=new AzC;this.JSC$19533_channelErrorCounter=new YBu};
FSE.prototype.connect=function(y,W){y=y===void 0?{}:y;W=W===void 0?0:W;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=y,this.connectUi=W,cZC(this),(y=_.yC("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=y: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 Fz(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,ej3(this))};
var ej3=function(y){_.XZ(y.channel,"w",function(){y.channelState=3;y.reconnectTimer.reset();y.connectionParams=null;y.connectUi=0;for(var W=_.N(y.nonAckedMessagesOnChannelClosed),V=W.next();!V.done;V=W.next())V=V.value,y.channel&&y.channel.send(V);y.nonAckedMessagesOnChannelClosed=[];y.publish("webChannelOpened");y.JSC$19533_channelOpenedCounter.increment("WEB_CHANNEL")});
_.XZ(y.channel,"x",function(){y.channelState=0;y.reconnectTimer.isActive()||y.publish("webChannelClosed");var W,V=(W=y.channel)==null?void 0:H$j(new noW(W,W.JSC$19441_channel_));V&&(y.nonAckedMessagesOnChannelClosed=[].concat(_.GC(V)));y.JSC$19533_channelClosedCounter.increment("WEB_CHANNEL")});
_.XZ(y.channel,"z",function(W){var V=W.data;V[0]==="gracefulReconnect"?(y.reconnectTimer.start(),y.channel&&y.channel.close()):y.publish("webChannelMessage",new wBt(V[0],V[1]));y.lastStatusCode=W.statusCode;y.JSC$19533_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.XZ(y.channel,"y",function(){y.lastStatusCode===401||y.reconnectTimer.start();y.publish("webChannelError");y.JSC$19533_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.E=FSE.prototype;_.E.disconnect=function(y){this.disconnectUi=y===void 0?0:y;this.reconnectTimer.stop();cZC(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.E.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.E.reconnect=function(){var y=this.reconnectTimer;y.delay_.fire();y.start()};
_.E.sendMessage=function(y,W){this.channel&&(cZC(this),y=Object.assign({},{_sc:y},W),this.channel.send(y))};
_.E.setLoungeToken=function(y){y||this.reconnectTimer.stop();y?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=y:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var cZC=function(y){var W=y.getXsrfToken();W?y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=W:delete y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.E=FSE.prototype;_.E.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.E.publish=function(y){return this.JSC$19533_pubsub.publish.apply(this.JSC$19533_pubsub,[y].concat(_.GC(_.Ve.apply(1,arguments))))};
_.E.subscribe=function(y,W,V){return this.JSC$19533_pubsub.subscribe(y,W,V)};
_.E.unsubscribe=function(y,W,V){return this.JSC$19533_pubsub.unsubscribe(y,W,V)};
_.E.unsubscribeByKey=function(y){return this.JSC$19533_pubsub.unsubscribeByKey(y)};
_.E.dispose=function(){this.JSC$19533_disposed||(this.JSC$19533_disposed=!0,_.La(this.JSC$19533_pubsub),this.disconnect(),_.La(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.E.isDisposed=function(){return this.JSC$19533_disposed};var tW3=function(y){_.Bg.call(this);this.webChannelService=y();this.webChannelService.subscribe("webChannelOpened",this.JSC$19541_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.p(tW3,_.Bg);_.E=tW3.prototype;_.E.connect=function(y,W){this.webChannelService.connect(y,W)};
_.E.disconnect=function(y){this.webChannelService.disconnect(y)};
_.E.reconnect=function(){this.webChannelService.reconnect()};
_.E.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.E.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.E.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.E.JSC$19541_onOpened=function(){this.dispatchEvent("channelOpened")};
_.E.onClosed=function(){this.dispatchEvent("channelClosed")};
_.E.onMessage=function(y){this.dispatchEvent(new XPm(y))};
_.E.onError=function(){this.dispatchEvent(new akW(this.webChannelService.lastStatusCode===401?1:0))};
_.E.sendMessage=function(y,W){this.webChannelService.sendMessage(y,W)};
_.E.setLoungeToken=function(y){this.webChannelService.setLoungeToken(y)};
_.E.dispose=function(){this.webChannelService.dispose()};var zdP=Date.now(),IH=null,doj=Array(50),CX=-1,LSq=!1;_.pF(OM,_.pP);OM.prototype.getScreens=function(){return this.screens};
OM.prototype.contains=function(y){return!!$KE(this.screens,y)};
OM.prototype.get=function(y){return y?th(this.screens,y):null};
var hje=function(y,W){var V=y.get(W.uuid)||y.get(W.id);if(V)return y=V.name,V.id=W.id||V.id,V.name=W.name,V.token=W.token,V.uuid=W.uuid||V.uuid,V.name!=y;y.screens.push(W);return!0},opP=function(y,W){var V=y.screens.length!=W.length;
y.screens=_.fF(y.screens,function(F){return!!$KE(W,F)});
for(var w=W.length,t=0;t<w;t++)V=hje(y,W[t])||V;return V},KKe=function(y,W){var V=y.screens.length;
y.screens=_.fF(y.screens,function(w){return!(w||W?!w!=!W?0:w.id==W.id:1)});
return y.screens.length<V};
OM.prototype.info=function(y){gv(this.JSC$19542_logName_,y)};var pBt=function(y,W,V,w,t){_.pP.call(this);this.JSC$19545_http_=y;this.pairingCode_=W;this.deviceId_=V;this.friendlyName_=w;this.enableShortLivedLoungeToken_=t;this.pollIndex_=0;this.JSC$19545_xhr_=null;this.JSC$19545_timer_=NaN};
_.p(pBt,_.pP);_.E=pBt.prototype;_.E.start=function(){!this.JSC$19545_xhr_&&isNaN(this.JSC$19545_timer_)&&this.poll_()};
_.E.stop=function(){this.JSC$19545_xhr_&&(this.JSC$19545_xhr_.abort(),this.JSC$19545_xhr_=null);isNaN(this.JSC$19545_timer_)||(_.qO(this.JSC$19545_timer_),this.JSC$19545_timer_=NaN)};
_.E.disposeInternal=function(){this.stop();_.pP.prototype.disposeInternal.call(this)};
_.E.poll_=function(){this.JSC$19545_timer_=NaN;this.JSC$19545_xhr_=_.uC(Nq(this.JSC$19545_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.jA)(this.JSC$19547_onSuccess_,this),onError:(0,_.jA)(this.onError_,this),onTimeout:(0,_.jA)(this.JSC$19547_onTimeout_,this)})};
_.E.JSC$19547_onSuccess_=function(y,W){this.JSC$19545_xhr_=null;y=W.screen||{};y.dialId=this.deviceId_;y.name=this.friendlyName_;W=-1;this.enableShortLivedLoungeToken_&&y.shortLivedLoungeToken&&y.shortLivedLoungeToken.value&&y.shortLivedLoungeToken.refreshIntervalMs&&(y.screenIdType="shortLived",y.loungeToken=y.shortLivedLoungeToken.value,W=y.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new VX(y),W)};
_.E.onError_=function(y){this.JSC$19545_xhr_=null;y.status&&y.status==404?this.pollIndex_>=ihv.length?this.publish("pairingFailed",Error("Nk")):(y=ihv[this.pollIndex_],this.JSC$19545_timer_=_.mj((0,_.jA)(this.poll_,this),y),this.pollIndex_++):this.publish("pairingFailed",Error("Ok`"+y.status))};
_.E.JSC$19547_onTimeout_=function(){this.JSC$19545_xhr_=null;this.publish("pairingFailed",Error("Pk"))};
var ihv=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.pF(dv,OM);_.E=dv.prototype;_.E.start=function(){vI(this)&&this.publish("screenChange");!_.SL("yt-remote-lounge-token-expiration")&&f04(this);_.qO(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.mj((0,_.jA)(this.start,this),1E4)};
_.E.add=function(y,W){vI(this);hje(this,y);T0P(this,!1);this.publish("screenChange");W(y);y.token||f04(this)};
_.E.remove=function(y,W){var V=vI(this);KKe(this,y)&&(T0P(this,!1),V=!0);W(y);V&&this.publish("screenChange")};
_.E.updateName=function(y,W,V,w){var t=vI(this),F=this.get(y.id);F?(F.name!=W&&(F.name=W,T0P(this,!1),t=!0),V(y)):w(Error("Qk"));t&&this.publish("screenChange")};
_.E.disposeInternal=function(){_.qO(this.loungeTokenRefreshTimer_);dv.superClass_.disposeInternal.call(this)};
var f04=function(y){if(y.screens.length){var W=_.rU(y.screens,function(w){return w.id}),V=Nq(y.JSC$19549_http_,"/pairing/get_lounge_token_batch");
y.JSC$19549_http_.sendRequest("POST",V,{screen_ids:W.join(",")},(0,_.jA)(y.handleLoungeTokens_,y),(0,_.jA)(y.handleLoungeTokenError_,y))}};
dv.prototype.handleLoungeTokens_=function(y){vI(this);var W=this.screens.length;y=y&&y.screens||[];for(var V=y.length,w=0;w<V;++w){var t=y[w],F=this.get(t.screenId);F&&(F.token=t.loungeToken,--W)}T0P(this,!W);W&&gv(this.JSC$19542_logName_,"Missed "+W+" lounge tokens.")};
dv.prototype.handleLoungeTokenError_=function(y){gv(this.JSC$19542_logName_,"Requesting lounge tokens failed: "+y)};
var vI=function(y){if(_.e("deprecate_pair_servlet_enabled"))return opP(y,[]);var W=zjq(Z23());W=_.fF(W,function(V){return!V.uuid});
return opP(y,W)},T0P=function(y,W){WSv(_.rU(y.screens,dCv));
W&&yxj()};var ez=function(y,W){_.pP.call(this);this.getScreensToCheck_=W;W=(W=_.SL("yt-remote-online-screen-ids")||"")?W.split(","):[];for(var V={},w=this.getScreensToCheck_(),t=w.length,F=0;F<t;++F){var I=w[F].id;V[I]=_.j4(W,I)}this.screenIdSet_=V;this.JSC$19552_http_=y;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;mCu("Initialized with "+(0,_.Xl)(this.screenIdSet_))};
_.p(ez,_.pP);ez.prototype.isOnline=function(y){return!!this.screenIdSet_[y]};
ez.prototype.start=function(){var y=parseInt(_.SL("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.KF()-144E5<y?0:y)?Mtq(this):(this.fastCheckEndTime_=_.KF()+3E5,_.ui("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
ez.prototype.isEmpty=function(){return _.Gc.isEmpty(this.screenIdSet_)};
ez.prototype.update=function(){mCu("Updating availability on schedule.");var y=this.getScreensToCheck_(),W=_.Gc.filter(this.screenIdSet_,function(V,w){return V&&!!th(y,w)},this);
qmu(this,W)};
var UCe=function(y,W,V){var w=Nq(y.JSC$19552_http_,"/pairing/get_screen_availability");y.JSC$19552_http_.sendRequest("POST",w,{lounge_token:W.token},(0,_.jA)(function(t){t=t.screens||[];for(var F=t.length,I=0;I<F;++I)if(t[I].loungeToken==W.token){V(t[I].status=="online");return}V(!1)},y),(0,_.jA)(function(){V(!1)},y))};
ez.prototype.disposeInternal=function(){_.qO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.pP.prototype.disposeInternal.call(this)};
var qmu=function(y,W){a:if(_.Gc.getCount(W)!=_.Gc.getCount(y.screenIdSet_))var V=!1;else{V=_.Gc.getKeys(W);for(var w=V.length,t=0;t<w;++t)if(!y.screenIdSet_[V[t]]){V=!1;break a}V=!0}V||(mCu("Updated online screens: "+(0,_.Xl)(y.screenIdSet_)),y.screenIdSet_=W,y.publish("screenChange"));uVW(y)},Mtq=function(y){isNaN(y.refreshTimer_)||_.qO(y.refreshTimer_);
y.refreshTimer_=_.mj((0,_.jA)(y.requestScreenAvailability_,y),y.fastCheckEndTime_>0&&y.fastCheckEndTime_<_.KF()?2E4:1E4)};
ez.prototype.requestScreenAvailability_=function(){_.qO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var y=Sm4(this);if(_.Gc.getCount(y)){var W=Nq(this.JSC$19552_http_,"/pairing/get_screen_availability"),V={lounge_token:_.Gc.getKeys(y).join(",")};this.currentRequest_=this.JSC$19552_http_.sendRequest("POST",W,V,(0,_.jA)(this.onScreenAvailability_,this,y),(0,_.jA)(this.onScreenAvailabilityError_,this))}else qmu(this,{}),Mtq(this)};
ez.prototype.onScreenAvailability_=function(y,W){this.currentRequest_=null;var V=_.Gc.getKeys(Sm4(this));if(_.gm(V,_.Gc.getKeys(y))){W=W.screens||[];V={};for(var w=W.length,t=0;t<w;++t)V[y[W[t].loungeToken]]=W[t].status=="online";qmu(this,V);Mtq(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
ez.prototype.onScreenAvailabilityError_=function(y){this.warn_("Screen availability failed: "+y);this.currentRequest_=null;Mtq(this)};
var mCu=function(y){gv("OnlineScreenService",y)};
ez.prototype.warn_=function(y){gv("OnlineScreenService",y)};
var Sm4=function(y){var W={};_.IA(y.getScreensToCheck_(),function(V){V.token?W[V.token]=V.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return W},uVW=function(y){y=_.Gc.getKeys(_.Gc.filter(y.screenIdSet_,function(W){return W}));
y.sort(_.Is);y.length?_.ui("yt-remote-online-screen-ids",y.join(","),60):_.Dk("yt-remote-online-screen-ids")};_.pF(LX,OM);_.E=LX.prototype;_.E.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.E.add=function(y,W,V){this.localScreenService_.add(y,W,V)};
_.E.remove=function(y,W,V){this.localScreenService_.remove(y,W,V);this.onlineScreenService_.update()};
_.E.updateName=function(y,W,V,w){this.localScreenService_.contains(y)?this.localScreenService_.updateName(y,W,V,w):(y="Updating name of unknown screen: "+y.name,gv(this.JSC$19542_logName_,y),w(Error(y)))};
_.E.getScreens=function(y){return y?this.screens:P44(this.screens,_.fF(this.automaticScreens_,function(W){return!this.contains(W)},this))};
_.E.JSC$19557_getOnlineScreens=function(){return _.fF(this.getScreens(!0),function(y){return this.onlineScreenService_.isOnline(y.id)},this)};
var l0j=function(y,W,V,w,t,F){y.info("getAutomaticScreenByIds "+V+" / "+W);V||(V=y.deviceToScreenId_[W]);var I=y.getScreens(),P=V?th(I,V):null;V&&(y.disableAutomaticScreenCache_||P)||(P=th(I,W));if(P){P.uuid=W;var C=ha(y,P);UCe(y.onlineScreenService_,C,function(d){t(d?C:null)})}else V?DCj(y,V,(0,_.jA)(function(d){var L=ha(this,new VX({name:w,
screenId:V,loungeToken:d,dialId:W||""}));UCe(this.onlineScreenService_,L,function(z){t(z?L:null)})},y),F):t(null)};
LX.prototype.JSC$19557_getScreenByPollingPairingCode=function(y,W,V,w,t,F){var I=this;this.info("getDialScreenByPairingCode "+y+" / "+W);var P=new pBt(this.JSC$19555_http_,y,W,V,w);P.subscribe("pairingComplete",function(C,d){_.La(P);t(ha(I,C),d)});
P.subscribe("pairingFailed",function(C){_.La(P);F(C)});
P.start();return(0,_.jA)(P.stop,P)};
var xCt=function(y,W){for(var V=y.screens.length,w=0;w<V;++w)if(y.screens[w].name==W)return y.screens[w];return null};
LX.prototype.JSC$19557_getScreenByPairingCode=function(y,W,V,w){_.uC(Nq(this.JSC$19555_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:y},timeout:5E3,onSuccess:(0,_.jA)(function(t,F){t=new VX(F.screen||{});if(!t.name||xCt(this,t.name)){a:{F=t.name;for(var I=2,P=W(F,I);xCt(this,P);){I++;if(I>20)break a;P=W(F,I)}F=P}t.name=F}V(ha(this,t))},this),
onError:(0,_.jA)(function(t){w(Error("Rk`"+t.status))},this),
onTimeout:(0,_.jA)(function(){w(Error("Sk"))},this)})};
var k5d=function(y,W,V){UCe(y.onlineScreenService_,W,V)};
LX.prototype.disposeInternal=function(){_.La(this.localScreenService_);_.La(this.onlineScreenService_);LX.superClass_.disposeInternal.call(this)};
var DCj=function(y,W,V,w){y.info("requestLoungeToken_ for "+W);var t={postParams:{screen_ids:W},method:"POST",context:y,onSuccess:function(F,I){F=I&&I.screens||[];F[0]&&F[0].screenId==W?V(F[0].loungeToken):w(Error("Tk"))},
onError:function(){w(Error("Uk"))}};
_.uC(Nq(y.JSC$19555_http_,"/pairing/get_lounge_token_batch"),t)},sYP=function(y){y.screens=y.localScreenService_.getScreens();
for(var W=_.Gc.transpose(y.deviceToScreenId_),V=y.screens.length,w=0;w<V;++w){var t=y.screens[w];t.uuid=W[t.id]||""}y.info("Updated manual screens: "+cx4(y.screens))};
LX.prototype.handleScreenChange_=function(){sYP(this);this.publish("screenChange");this.onlineScreenService_.update()};
var edC=function(y){AZd(y);y.localScreenService_=new dv(y.JSC$19555_http_);y.localScreenService_.subscribe("screenChange",(0,_.jA)(y.handleScreenChange_,y));sYP(y);y.disableAutomaticScreenCache_||(y.automaticScreens_=zjq(_.SL("yt-remote-automatic-screen-cache")||[]));AZd(y);y.info("Initializing automatic screens: "+cx4(y.automaticScreens_));y.onlineScreenService_=new ez(y.JSC$19555_http_,(0,_.jA)(y.getScreens,y,!0));y.onlineScreenService_.subscribe("screenChange",(0,_.jA)(function(){this.publish("onlineScreenChange")},
y))},ha=function(y,W){var V=y.get(W.id);
V?(V.uuid=W.uuid,W=V):((V=th(y.automaticScreens_,W.uuid))?(V.id=W.id,V.token=W.token,W=V):y.automaticScreens_.push(W),y.disableAutomaticScreenCache_||Ymv(y));AZd(y);y.deviceToScreenId_[W.uuid]=W.id;_.ui("yt-remote-device-id-map",y.deviceToScreenId_,31536E3);return W},Ymv=function(y){y=_.fF(y.automaticScreens_,function(W){return W.idType!="shortLived"});
_.ui("yt-remote-automatic-screen-cache",_.rU(y,dCv))},AZd=function(y){y.deviceToScreenId_=_.SL("yt-remote-device-id-map")||{}};
LX.prototype.dispose=LX.prototype.dispose;_.pF(zV,_.pP);var oq=function(y,W){y.screen_=W;y.publish("sessionScreen",y.screen_)},B0u=function(y,W){y.screen_&&(y.screen_.token=W,ha(y.JSC$19559_screenService_,y.screen_));
y.publish("sessionScreen",y.screen_)};
zV.prototype.onSessionStopped=function(y){this.isDisposed()||(y&&(KT(this,""+y),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
zV.prototype.info=function(y){gv(this.JSC$19559_logName_,y)};
var KT=function(y,W){gv(y.JSC$19559_logName_,W)};
zV.prototype.JSC$19561_getCastSession=function(){return null};
zV.prototype.setDisplayStatus=function(y){var W=this.receiver_;y?(W.displayStatus=new chrome.cast.ReceiverDisplayStatus(y,[]),W.displayStatus.showStop=!0):W.displayStatus=null;chrome.cast.setReceiverDisplayStatus(W,(0,_.jA)(function(){this.info("Updated receiver status for "+W.friendlyName+": "+y)},this),(0,_.jA)(function(){KT(this,"Failed to update receiver status for: "+W.friendlyName)},this))};
zV.prototype.disposeInternal=function(){this.setDisplayStatus("");zV.superClass_.disposeInternal.call(this)};var pT=function(y,W,V){zV.call(this,y,W,"CastSession");var w=this;this.config_=V;this.JSC$19564_session_=null;this.JSC$19564_boundSessionUpdate_=(0,_.jA)(this.JSC$19566_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.jA)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.mj(function(){JZW(w,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19564_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19564_isInitLoungeToken_=!1;this.JSC$19564_lastLoungeTokenRefreshError_="unknown"};
_.p(pT,zV);_.E=pT.prototype;
_.E.setCastSession=function(y){if(this.JSC$19564_session_){if(this.JSC$19564_session_==y)return;KT(this,"Overriding cast session with new session object");RjP(this);this.JSC$19564_isInitLoungeToken_=!1;this.JSC$19564_lastLoungeTokenRefreshError_="unknown";this.JSC$19564_session_.removeUpdateListener(this.JSC$19564_boundSessionUpdate_);this.JSC$19564_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19564_session_=y;this.JSC$19564_session_.addUpdateListener(this.JSC$19564_boundSessionUpdate_);this.JSC$19564_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);jYq(this,"getMdxSessionStatus")};
_.E.launchWithParams=function(y){this.info("launchWithParams no-op for Cast: "+(0,_.Xl)(y))};
_.E.stop=function(){if(this.JSC$19564_session_)this.JSC$19564_session_.stop((0,_.jA)(function(){this.onSessionStopped()},this),(0,_.jA)(function(){this.onSessionStopped(Error("Vk"))},this));
else this.onSessionStopped(Error("Wk"))};
_.E.setDisplayStatus=function(){};
_.E.disposeInternal=function(){this.info("disposeInternal");RjP(this);this.JSC$19564_session_&&(this.JSC$19564_session_.removeUpdateListener(this.JSC$19564_boundSessionUpdate_),this.JSC$19564_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19564_session_=null;zV.prototype.disposeInternal.call(this)};
var npE=function(y,W){_.qO(y.getLoungeTokenTimeoutKey_);y.getLoungeTokenTimeoutKey_=0;W==0?$Cm(y):y.getLoungeTokenTimeoutKey_=_.mj(function(){$Cm(y)},W)},$Cm=function(y){jYq(y,"getLoungeToken");
_.qO(y.onLoungeTokenTimeoutKey_);y.onLoungeTokenTimeoutKey_=_.mj(function(){Hh3(y,null)},3E4)},jYq=function(y,W){y.info("sendYoutubeMessage_: "+W+" "+(0,_.Xl)(void 0));
var V={};V.type=W;y.JSC$19564_session_?y.JSC$19564_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",V,function(){},(0,_.jA)(function(){KT(this,"Failed to send message: "+W+".")},y)):KT(y,"Sending yt message without session: "+(0,_.Xl)(V))};
pT.prototype.onYoutubeMessage_=function(y,W){if(!this.isDisposed())if(W)if(W=(0,_.R2)(W),_.VK(W))switch(y=""+W.type,W=W.data||{},this.info("onYoutubeMessage_: "+y+" "+(0,_.Xl)(W)),y){case "mdxSessionStatus":JZW(this,W);break;case "loungeToken":Hh3(this,W);break;default:KT(this,"Unknown youtube message: "+y)}else KT(this,"Unable to parse message.");else KT(this,"No data in message.")};
var XB3=function(y,W){if(W)y.info("onConnectedScreenId_: Received screenId: "+W),y.screen_&&y.screen_.id==W||y.getScreen_(W,function(V){oq(y,V)},function(){return y.onSessionStopped()},5);
else y.onSessionStopped(Error("Xk"))},G5j=function(y,W,V){y.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(W));
var w=new VX(W);a03(y,w,function(t){t?(y.JSC$19564_isInitLoungeToken_=!0,ha(y.JSC$19559_screenService_,w),oq(y,w),y.JSC$19564_lastLoungeTokenRefreshError_="unknown",npE(y,V)):(_.VC(Error("Yk`"+JSON.stringify(W))),y.onSessionStopped())},5)},JZW=function(y,W){_.qO(y.sessionStatusTimeoutKey_);
y.sessionStatusTimeoutKey_=0;if(W)y.config_.enableCastLoungeToken&&W.loungeToken?W.deviceId?y.screen_&&y.screen_.uuid==W.deviceId||(W.loungeTokenRefreshIntervalMs?G5j(y,{name:y.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:W.deviceId,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.VC(Error("$k`"+JSON.stringify(W))),XB3(y,W.screenId))):(_.VC(Error("Zk`"+JSON.stringify(W))),XB3(y,W.screenId)):XB3(y,W.screenId);else y.onSessionStopped(Error("Xk"))},Hh3=function(y,
W){_.qO(y.onLoungeTokenTimeoutKey_);
y.onLoungeTokenTimeoutKey_=0;var V=null;if(W)if(W.loungeToken){var w;((w=y.screen_)==null?void 0:w.token)==W.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";else V="noLoungeTokenResponse";V?(y.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(W)+", error: "+V)),y.JSC$19564_lastLoungeTokenRefreshError_=V,npE(y,3E4)):(B0u(y,W.loungeToken),y.JSC$19564_isInitLoungeToken_=!1,y.JSC$19564_lastLoungeTokenRefreshError_="unknown",npE(y,W.loungeTokenRefreshIntervalMs))};
pT.prototype.getScreen_=function(y,W,V,w){_.qO(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;l0j(this.JSC$19559_screenService_,this.receiver_.label,y,this.receiver_.friendlyName,(0,_.jA)(function(t){t?W(t):w>=0?(KT(this,"Screen "+y+" appears to be offline. "+w+" retries left."),this.getScreenTimeoutKey_=_.mj((0,_.jA)(this.getScreen_,this,y,W,V,w-1),300)):V(Error("al"))},this),V)};
var a03=function(y,W,V,w){_.qO(y.JSC$19564_checkScreenAvailabilityTimeoutKey_);y.JSC$19564_checkScreenAvailabilityTimeoutKey_=0;k5d(y.JSC$19559_screenService_,W,function(t){t||w<0?V(t):y.JSC$19564_checkScreenAvailabilityTimeoutKey_=_.mj(function(){a03(y,W,V,w-1)},300)})};
pT.prototype.JSC$19561_getCastSession=function(){return this.JSC$19564_session_};
pT.prototype.JSC$19566_onSessionUpdate_=function(y){this.isDisposed()||y||(KT(this,"Cast session died."),this.onSessionStopped())};
var RjP=function(y){_.qO(y.getScreenTimeoutKey_);y.getScreenTimeoutKey_=0;_.qO(y.JSC$19564_checkScreenAvailabilityTimeoutKey_);y.JSC$19564_checkScreenAvailabilityTimeoutKey_=0;_.qO(y.sessionStatusTimeoutKey_);y.sessionStatusTimeoutKey_=0;_.qO(y.onLoungeTokenTimeoutKey_);y.onLoungeTokenTimeoutKey_=0;_.qO(y.getLoungeTokenTimeoutKey_);y.getLoungeTokenTimeoutKey_=0};var is=function(y,W,V,w){zV.call(this,y,W,"DialSession");this.config_=w;this.JSC$19568_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19568_theme_=V;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19568_deferredLaunchDeadlineTimer_=NaN;this.JSC$19568_boundSessionUpdate_=(0,_.jA)(this.JSC$19570_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19568_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19568_isInitLoungeToken_=!1;this.JSC$19568_lastLoungeTokenRefreshError_="unknown"};
_.p(is,zV);is.prototype.setCastSession=function(y){this.JSC$19568_session_=y;this.JSC$19568_session_.addUpdateListener(this.JSC$19568_boundSessionUpdate_)};
is.prototype.launchWithParams=function(y){this.connectData_=y;this.deferredLaunch_()};
is.prototype.stop=function(){rZj(this);if(this.JSC$19568_session_)this.JSC$19568_session_.stop((0,_.jA)(this.onSessionStopped,this,null),(0,_.jA)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
is.prototype.disposeInternal=function(){rZj(this);this.JSC$19568_session_&&this.JSC$19568_session_.removeUpdateListener(this.JSC$19568_boundSessionUpdate_);this.JSC$19568_session_=null;zV.prototype.disposeInternal.call(this)};
var bhq=function(y){var W;return!!(y.config_.enableDialLoungeToken&&((W=y.JSC$19568_session_)==null?0:W.getDialAppInfo))},QY4=function(y){y.cancelPolling_=y.JSC$19559_screenService_.JSC$19557_getScreenByPollingPairingCode(y.reversePairingCode_,y.receiver_.label,y.receiver_.friendlyName,bhq(y),function(W,V){y.cancelPolling_=function(){};
y.JSC$19568_isInitLoungeToken_=!0;oq(y,W);W.idType=="shortLived"&&V>0&&fT(y,V)},function(W){y.cancelPolling_=function(){};
y.onSessionStopped(W)})};
is.prototype.JSC$19570_onSessionUpdate_=function(y){this.isDisposed()||y||(KT(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Zhe=function(y){var W={};W.pairingCode=y.reversePairingCode_;W.theme=y.JSC$19568_theme_;w9u()&&(W.env_useStageMdx=1);return _.SX(W)},yCj=function(y){return new Promise(function(W){y.reversePairingCode_=R5u();
if(y.connectData_){var V=new chrome.cast.DialLaunchResponse(!0,Zhe(y));W(V);QY4(y)}else y.deferredLaunch_=function(){_.qO(y.JSC$19568_deferredLaunchDeadlineTimer_);y.deferredLaunch_=function(){};
y.JSC$19568_deferredLaunchDeadlineTimer_=NaN;var w=new chrome.cast.DialLaunchResponse(!0,Zhe(y));W(w);QY4(y)},y.JSC$19568_deferredLaunchDeadlineTimer_=_.mj(function(){y.deferredLaunch_()},100)})},VVj=function(y,W,V){y.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(W));
var w=new VX(W);return(new Promise(function(t){Woj(y,w,function(F){F?(y.JSC$19568_isInitLoungeToken_=!0,ha(y.JSC$19559_screenService_,w),oq(y,w),fT(y,V)):_.VC(Error("cl`"+JSON.stringify(W)));t(F)},5)})).then(function(t){return t?new chrome.cast.DialLaunchResponse(!1):yCj(y)})},wKu=function(y,W){var V=y.launchData_.receiver.label,w=y.receiver_.friendlyName;
return(new Promise(function(t){l0j(y.JSC$19559_screenService_,V,W,w,function(F){F&&F.token&&oq(y,F);t(F)},function(F){KT(y,"Failed to get DIAL screen: "+F);
t(null)})})).then(function(t){return t&&t.token?new chrome.cast.DialLaunchResponse(!1):yCj(y)})},Woj=function(y,W,V,w){_.qO(y.JSC$19568_checkScreenAvailabilityTimeoutKey_);
y.JSC$19568_checkScreenAvailabilityTimeoutKey_=0;k5d(y.JSC$19559_screenService_,W,function(t){t||w<0?V(t):y.JSC$19568_checkScreenAvailabilityTimeoutKey_=_.mj(function(){Woj(y,W,V,w-1)},300)})},fT=function(y,W){y.info("getDialAppInfoWithTimeout_ "+W);
bhq(y)&&(_.qO(y.getDialAppInfoTimeoutKey_),y.getDialAppInfoTimeoutKey_=0,W==0?tV4(y):y.getDialAppInfoTimeoutKey_=_.mj(function(){tV4(y)},W))},tV4=function(y){bhq(y)&&y.JSC$19568_session_.getDialAppInfo(function(W){y.info("getDialAppInfo dialLaunchData: "+JSON.stringify(W));
W=W.extraData||{};var V=null;if(W.loungeToken){var w;((w=y.screen_)==null?void 0:w.token)==W.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";V?(y.JSC$19568_lastLoungeTokenRefreshError_=V,fT(y,3E4)):(y.JSC$19568_isInitLoungeToken_=!1,y.JSC$19568_lastLoungeTokenRefreshError_="unknown",B0u(y,W.loungeToken),fT(y,W.loungeTokenRefreshIntervalMs))},function(W){y.info("getDialAppInfo error: "+W);
y.JSC$19568_lastLoungeTokenRefreshError_="noLoungeTokenResponse";fT(y,3E4)})},rZj=function(y){_.qO(y.JSC$19568_checkScreenAvailabilityTimeoutKey_);
y.JSC$19568_checkScreenAvailabilityTimeoutKey_=0;_.qO(y.getDialAppInfoTimeoutKey_);y.getDialAppInfoTimeoutKey_=0;y.cancelPolling_();y.cancelPolling_=function(){};
_.qO(y.JSC$19568_deferredLaunchDeadlineTimer_)};var Tz=function(y,W){zV.call(this,y,W,"ManualSession");this.JSC$19572_deferredLaunchDeadlineTimer_=_.mj((0,_.jA)(this.launchWithParams,this,null),150)};
_.p(Tz,zV);Tz.prototype.stop=function(){this.onSessionStopped()};
Tz.prototype.setCastSession=function(){};
Tz.prototype.launchWithParams=function(){_.qO(this.JSC$19572_deferredLaunchDeadlineTimer_);this.JSC$19572_deferredLaunchDeadlineTimer_=NaN;var y=th(this.JSC$19559_screenService_.getScreens(),this.receiver_.label);if(y)oq(this,y);else this.onSessionStopped(Error("dl"))};
Tz.prototype.disposeInternal=function(){_.qO(this.JSC$19572_deferredLaunchDeadlineTimer_);this.JSC$19572_deferredLaunchDeadlineTimer_=NaN;zV.prototype.disposeInternal.call(this)};var oH=function(y,W){_.pP.call(this);this.config_=W;this.JSC$19575_screenService_=y;this.JSC$19575_appId_=W.appId||"233637DE";this.JSC$19575_theme_=W.theme||"cl";this.disableDial_=W.disableCastApi||!1;this.forceMirroring_=W.forceMirroring||!1;this.JSC$19575_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.jA)(this.onReceiverAction_,this)};
_.p(oH,_.pP);
oH.prototype.init=function(y,W){chrome.cast.timeout.requestSession=3E4;var V=new chrome.cast.SessionRequest(this.JSC$19575_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.e("desktop_enable_cast_connect")&&(V.androidReceiverCompatible=!0);this.disableDial_||(V.dialRequest=new chrome.cast.DialRequest("YouTube"));var w=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;y=y||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var t=(0,_.jA)(this.onReceiverUpdated_,
this);V=new chrome.cast.ApiConfig(V,(0,_.jA)(this.onSessionEstablished_,this),t,w,y);V.customDialLaunchCallback=(0,_.jA)(this.onDialLaunchRequested_,this);chrome.cast.initialize(V,(0,_.jA)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),CNt(),this.JSC$19575_screenService_.subscribe("onlineScreenChange",(0,_.jA)(this.JSC$19577_onScreenChange_,this)),this.customReceivers_=Fot(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.jA)(function(F){this.warn_("Failed to set initial custom receivers: "+(0,_.Xl)(F))},this)),this.publish("yt-remote-cast2-availability-change",m5(this)),W(!0))},this),(0,_.jA)(function(F){this.warn_("Failed to initialize API: "+(0,_.Xl)(F));
W(!1)},this))};
oH.prototype.setConnectedScreenStatus=function(y,W){Mb("Setting connected screen ID: "+y+" -> "+W);if(this.JSC$19575_session_){var V=this.JSC$19575_session_.screen_;if(!y||V&&V.id!=y)Mb("Unsetting old screen status: "+this.JSC$19575_session_.receiver_.friendlyName),qb(this,null)}if(y&&W){if(!this.JSC$19575_session_){y=th(this.JSC$19575_screenService_.getScreens(),y);if(!y){Mb("setConnectedScreenStatus: Unknown screen.");return}if(y.idType=="shortLived"){Mb("setConnectedScreenStatus: Screen with id type to be short lived.");
return}V=E5P(this,y);V||(Mb("setConnectedScreenStatus: Connected receiver not custom..."),V=new chrome.cast.Receiver(y.uuid?y.uuid:y.id,y.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(V),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jA)(function(w){this.warn_("Failed to set initial custom receivers: "+(0,_.Xl)(w))},this)));
Mb("setConnectedScreenStatus: new active receiver: "+V.friendlyName);qb(this,new Tz(this.JSC$19575_screenService_,V),!0)}this.JSC$19575_session_.setDisplayStatus(W)}else Mb("setConnectedScreenStatus: no screen.")};
var E5P=function(y,W){return W?_.By(y.customReceivers_,function(V){return wv(W,V.label)},y):null};
oH.prototype.setLaunchParams=function(y){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19575_session_?this.JSC$19575_session_.launchWithParams(y):this.warn_("Setting connection data without a session")};
oH.prototype.JSC$19577_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19575_session_?(this.JSC$19575_session_.stop(),qb(this,null)):Mb("Stopping non-existing session")};
oH.prototype.requestSession=function(){chrome.cast.requestSession((0,_.jA)(this.onSessionEstablished_,this),(0,_.jA)(this.onSessionRequestFailed_,this))};
oH.prototype.disposeInternal=function(){this.JSC$19575_screenService_.unsubscribe("onlineScreenChange",(0,_.jA)(this.JSC$19577_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.GG(_.ts("yt.mdx.remote.debug.handlers_")||[],IPE);_.La(this.JSC$19575_session_);_.pP.prototype.disposeInternal.call(this)};
var Mb=function(y){gv("Controller",y)};
oH.prototype.warn_=function(y){gv("Controller",y)};
var IPE=function(y){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(y)},m5=function(y){return y.hasCastReceiver_||!!y.customReceivers_.length||!!y.JSC$19575_session_},qb=function(y,W,V){W!=y.JSC$19575_session_&&(_.La(y.JSC$19575_session_),(y.JSC$19575_session_=W)?(V?y.publish("yt-remote-cast2-receiver-resumed",W.receiver_):y.publish("yt-remote-cast2-receiver-selected",W.receiver_),W.subscribe("sessionScreen",(0,_.jA)(y.onSessionScreen_,y,W)),W.subscribe("sessionFailed",
function(){return NeE(y,W)}),W.screen_?y.publish("yt-remote-cast2-session-change",W.screen_):V&&y.JSC$19575_session_.launchWithParams(null)):y.publish("yt-remote-cast2-session-change",null))},NeE=function(y,W){y.JSC$19575_session_==W&&y.publish("yt-remote-cast2-session-failed")};
_.E=oH.prototype;_.E.onSessionScreen_=function(y,W){this.JSC$19575_session_==y&&(W||qb(this,null),this.publish("yt-remote-cast2-session-change",W))};
_.E.onReceiverAction_=function(y,W){if(!this.isDisposed())if(y)switch(y.friendlyName=chrome.cast.unescape(y.friendlyName),Mb("onReceiverAction_ "+y.label+" / "+y.friendlyName+"-- "+W),W){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19575_session_)if(this.JSC$19575_session_.receiver_.label!=y.label)Mb("onReceiverAction_: Stopping active receiver: "+this.JSC$19575_session_.receiver_.friendlyName),this.JSC$19575_session_.stop();else{Mb("onReceiverAction_: Casting to active receiver.");this.JSC$19575_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19575_session_.screen_);break}switch(y.receiverType){case chrome.cast.ReceiverType.CUSTOM:qb(this,new Tz(this.JSC$19575_screenService_,y));break;case chrome.cast.ReceiverType.DIAL:qb(this,new is(this.JSC$19575_screenService_,y,this.JSC$19575_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:qb(this,new pT(this.JSC$19575_screenService_,y,this.config_));break;default:this.warn_("Unknown receiver type: "+y.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19575_session_&&
this.JSC$19575_session_.receiver_.label==y.label?this.JSC$19575_session_.stop():this.warn_("Stopping receiver w/o session: "+y.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.E.onDialLaunchRequested_=function(y){if(this.isDisposed())return Promise.reject(Error("el"));var W=y.receiver;W.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+W.friendlyName),W.receiverType=chrome.cast.ReceiverType.DIAL);var V=this.JSC$19575_session_?this.JSC$19575_session_.receiver_:null;if(!V||V.label!=W.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+W.friendlyName),Promise.reject(Error("fl"));if(V&&V.label==W.label&&V.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19575_session_.screen_)return Mb("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19575_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+V.receiverType+'" to "dial" for '+W.friendlyName);qb(this,new is(this.JSC$19575_screenService_,W,this.JSC$19575_theme_,this.config_))}W=this.JSC$19575_session_;W.launchData_=y;W.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(y=W.launchData_.extraData||{},V=y.screenId||null,bhq(W)&&y.loungeToken?y.loungeTokenRefreshIntervalMs?y=VVj(W,{name:W.receiver_.friendlyName,screenId:y.screenId,loungeToken:y.loungeToken,dialId:W.launchData_.receiver.label,screenIdType:"shortLived"},y.loungeTokenRefreshIntervalMs):(_.VC(Error("bl`"+JSON.stringify(y))),y=wKu(W,V)):y=wKu(W,V)):y=yCj(W);return y};
_.E.onSessionEstablished_=function(y){var W=this;if(!this.isDisposed()&&!this.forceMirroring_){Mb("New cast session ID: "+y.sessionId);var V=y.receiver;if(V.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19575_session_)if(V.receiverType==chrome.cast.ReceiverType.CAST)Mb("Got resumed cast session before resumed mdx connection."),V.friendlyName=chrome.cast.unescape(V.friendlyName),qb(this,new pT(this.JSC$19575_screenService_,V,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var w=this.JSC$19575_session_.receiver_,t=th(this.JSC$19575_screenService_.getScreens(),w.label);t&&wv(t,V.label)&&w.receiverType!=chrome.cast.ReceiverType.CAST&&V.receiverType==chrome.cast.ReceiverType.CAST&&(Mb("onSessionEstablished_: manual to cast session change "+V.friendlyName),_.La(this.JSC$19575_session_),this.JSC$19575_session_=new pT(this.JSC$19575_screenService_,V,this.config_),this.JSC$19575_session_.subscribe("sessionScreen",(0,_.jA)(this.onSessionScreen_,this,this.JSC$19575_session_)),
this.JSC$19575_session_.subscribe("sessionFailed",function(){return NeE(W,W.JSC$19575_session_)}),this.JSC$19575_session_.launchWithParams(null));
this.JSC$19575_session_.setCastSession(y)}}};
_.E.JSC$19577_getCastSession=function(){return this.JSC$19575_session_?this.JSC$19575_session_.JSC$19561_getCastSession():null};
_.E.onSessionRequestFailed_=function(y){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Xl)(y)),y.code!=chrome.cast.ErrorCode.CANCEL&&qb(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.E.onReceiverUpdated_=function(y){Mb("Receiver availability updated: "+y);if(!this.isDisposed()){var W=m5(this);this.hasCastReceiver_=y==chrome.cast.ReceiverAvailability.AVAILABLE;m5(this)!=W&&this.publish("yt-remote-cast2-availability-change",m5(this))}};
var Fot=function(y){var W=y.JSC$19575_screenService_.JSC$19557_getOnlineScreens(),V=y.JSC$19575_session_&&y.JSC$19575_session_.receiver_;y=_.rU(W,function(w){V&&wv(w,V.label)&&(V=null);var t=w.uuid?w.uuid:w.id,F=E5P(this,w);F?(F.label=t,F.friendlyName=w.name):(F=new chrome.cast.Receiver(t,w.name),F.receiverType=chrome.cast.ReceiverType.CUSTOM);return F},y);
V&&(V.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(V=new chrome.cast.Receiver(V.label,V.friendlyName),V.receiverType=chrome.cast.ReceiverType.CUSTOM),y.push(V));return y};
oH.prototype.JSC$19577_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Fot(this),Mb("Updating custom receivers: "+(0,_.Xl)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jA)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",m5(this)))};
oH.prototype.setLaunchParams=oH.prototype.setLaunchParams;oH.prototype.setConnectedScreenStatus=oH.prototype.setConnectedScreenStatus;oH.prototype.stopSession=oH.prototype.JSC$19577_stopSession;oH.prototype.getCastSession=oH.prototype.JSC$19577_getCastSession;oH.prototype.requestSession=oH.prototype.requestSession;oH.prototype.init=oH.prototype.init;oH.prototype.dispose=oH.prototype.dispose;var I9E=_.CF(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),scu=[],TPP=_.Tc(I9E);var g5j=function(y){y.audioTrackId=null;y.trackData=null;y.playerState=-1;y.hasPrevious=!1;y.hasNext=!1;y.playerTime_=0;y.playerTimeAt_=_.KF();y.seekableStart_=0;y.seekableEnd_=0;y.duration_=0;y.loadedTime=0;y.liveIngestionTime_=NaN;y.isLive_=!1};
_.E=KX.prototype;
_.E.reset=function(y){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;y&&(this.index=y.index,this.listId=y.listId,this.videoId=y.videoId,this.playerState=y.playerState,this.volume=y.volume,this.muted=y.muted,this.audioTrackId=y.audioTrackId,this.trackData=y.trackData,this.hasPrevious=y.hasPrevious,this.hasNext=y.hasNext,this.playerTime_=y.playerTime,this.playerTimeAt_=y.playerTimeAt,this.seekableStart_=y.seekableStart,this.seekableEnd_=y.seekableEnd,this.duration_=y.duration,this.loadedTime=
y.loadedTime,this.liveIngestionTime_=y.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.E.stopPlayer=function(){this.index=-1;this.videoId="";g5j(this)};
_.E.isPlaying=function(){return this.playerState==1};
_.E.isBuffering=function(){return this.playerState==3};
_.E.isAdPlaying=function(){return this.playerState==1081};
var UW=function(y,W){y.playerTime_=W;y.playerTimeAt_=_.KF()},PfE=function(y){switch(y.playerState){case 1:case 1081:return(_.KF()-y.playerTimeAt_)/1E3+y.playerTime_;
case -1E3:return 0}return y.playerTime_};
KX.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.KF()-this.playerTimeAt_)/1E3:0):this.duration_};
var Cfq=function(y,W,V){var w=y.videoId;y.videoId=W;y.index=V;W!=w&&g5j(y)},OKe=function(y){var W={};
W.index=y.index;W.listId=y.listId;W.videoId=y.videoId;W.playerState=y.playerState;W.volume=y.volume;W.muted=y.muted;W.audioTrackId=y.audioTrackId;W.trackData=_.Gc.unsafeClone(y.trackData);W.hasPrevious=y.hasPrevious;W.hasNext=y.hasNext;W.playerTime=y.playerTime_;W.playerTimeAt=y.playerTimeAt_;W.seekableStart=y.seekableStart_;W.seekableEnd=y.seekableEnd_;W.duration=y.duration_;W.loadedTime=y.loadedTime;W.liveIngestionTime=y.liveIngestionTime_;return W};
KX.prototype.clone=function(){return new KX(OKe(this))};var us=function(y,W){_.pP.call(this);var V=this;this.state_=0;this.connection_=y;this.contextSubscriptions_=[];this.actionQueue_=new DKu;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.jA)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.jA)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.jA)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.jA)(this.onCloudviewAvailabilityChange_,this);var w=0;y?(w=y.getProxyState(),
w!=3&&(y.subscribe("proxyStateChange",this.setState_,this),v5u(this))):w=3;w!=0&&(W?this.setState_(w):_.mj(function(){V.setState_(w)},0));
(y=Jxj())&&d$C(this,y);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.p(us,_.pP);us.prototype.getState=function(){return this.state_};
us.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
us.prototype.reconnect=function(){this.connection_.reconnect()};
var Sz=function(y){return new KX(y.connection_.getPlayerContextData())};
_.E=us.prototype;_.E.play=function(){D$(this)?(this.castMedia_?this.castMedia_.play(null,_.A$,LoC(this,"play")):ls(this,"play"),zUj(this,1,PfE(Sz(this))),this.publish("remotePlayerChange")):xm(this,this.play)};
_.E.pause=function(){D$(this)?(this.castMedia_?this.castMedia_.pause(null,_.A$,LoC(this,"pause")):ls(this,"pause"),zUj(this,2,PfE(Sz(this))),this.publish("remotePlayerChange")):xm(this,this.pause)};
_.E.seekTo=function(y){if(D$(this)){if(this.castMedia_){var W=Sz(this),V=new chrome.cast.media.SeekRequest;V.currentTime=y;W.isPlaying()||W.isBuffering()?V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(V,_.A$,LoC(this,"seekTo",{newTime:y}))}else ls(this,"seekTo",{newTime:y});zUj(this,3,y);this.publish("remotePlayerChange")}else xm(this,_.D2(this.seekTo,y))};
_.E.stop=function(){if(D$(this)){this.castMedia_?this.castMedia_.stop(null,_.A$,LoC(this,"stopVideo")):ls(this,"stopVideo");var y=Sz(this);y.stopPlayer();km(this,y);this.publish("remotePlayerChange")}else xm(this,this.stop)};
_.E.setVolume=function(y,W){if(D$(this)){var V=Sz(this);if(this.castSession_){if(V.volume!=y){var w=Math.round(y)/100;this.castSession_.setReceiverVolumeLevel(w,(0,_.jA)(function(){PI("set receiver volume: "+w)},this),(0,_.jA)(function(){this.warn_("failed to set receiver volume.")},this))}V.muted!=W&&this.castSession_.setReceiverMuted(W,(0,_.jA)(function(){PI("set receiver muted: "+W)},this),(0,_.jA)(function(){this.warn_("failed to set receiver muted.")},this))}else{var t={volume:y,
muted:W};V.volume!=-1&&(t.delta=y-V.volume);ls(this,"setVolume",t)}V.muted=W;V.volume=y;km(this,V)}else xm(this,_.D2(this.setVolume,y,W))};
_.E.setAudioTrack=function(y,W){D$(this)?(W=W.getLanguageInfo().getId(),ls(this,"setAudioTrack",{videoId:y,audioTrackId:W}),y=Sz(this),y.audioTrackId=W,km(this,y)):xm(this,_.D2(this.setAudioTrack,y,W))};
_.E.addVideo=function(y){D$(this)?ls(this,"addVideo",{videoId:y}):xm(this,_.D2(this.addVideo,y))};
_.E.addPlaylist=function(y){D$(this)?ls(this,"addVideos",{listId:y}):xm(this,_.D2(this.addPlaylist,y))};
_.E.addVideos=function(y){y.length==0?this.warn_("Ignore add videos request due to empty list"):D$(this)?ls(this,"addVideos",{videoIds:y.join(",")}):xm(this,_.D2(this.addVideos,y))};
_.E.JSC$19587_removeVideo=function(y){D$(this)?ls(this,"removeVideo",{videoId:y}):xm(this,_.D2(this.JSC$19587_removeVideo,y))};
_.E.JSC$19587_insertVideo=function(y){D$(this)?ls(this,"insertVideo",{videoId:y}):xm(this,_.D2(this.JSC$19587_insertVideo,y))};
_.E.playVideo=function(y,W,V,w,t,F,I){w=w===void 0?null:w;t=t===void 0?null:t;F=F===void 0?null:F;I=I===void 0?null:I;var P=Sz(this),C={videoId:y};V!==void 0&&(C.currentIndex=V);Cfq(P,y,V||0);W!==void 0&&(UW(P,W),C.currentTime=W);w&&(C.listId=w);t&&(C.playerParams=t);F&&(C.clickTrackingParams=F);I&&(C.locationInfo=(0,_.Xl)(I));ls(this,"setPlaylist",C);w||km(this,P)};
_.E.nextVideo=function(y,W){if(D$(this)){if(y&&W){var V=Sz(this);Cfq(V,y,W);km(this,V)}ls(this,"next")}else xm(this,_.D2(this.nextVideo,y,W))};
_.E.clearPlaylist=function(){if(D$(this)){ls(this,"clearPlaylist");var y=Sz(this);y.reset();km(this,y);this.publish("remotePlayerChange")}else xm(this,this.clearPlaylist)};
_.E.dispose=function(){if(this.state_!=3){var y=this.state_;this.state_=3;this.publish("proxyStateChange",y,this.state_)}_.pP.prototype.dispose.call(this)};
_.E.disposeInternal=function(){cCC(this);this.connection_=null;this.actionQueue_.clear();d$C(this,null);_.pP.prototype.disposeInternal.call(this)};
var v5u=function(y){_.IA("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(W){this.contextSubscriptions_.push(this.connection_.subscribe(W,_.D2(this.onProxyEvent_,W),this))},y)},cCC=function(y){_.IA(y.contextSubscriptions_,function(W){this.connection_.unsubscribeByKey(W)},y);
y.contextSubscriptions_.length=0},D$=function(y){return y.getState()==1},xm=function(y,W){y.actionQueue_.getCount()<50&&y.actionQueue_.enqueue(W)},zUj=function(y,W,V){var w=Sz(y);
UW(w,V);w.playerState!=-1E3&&(w.playerState=W);km(y,w)},ls=function(y,W,V){y.connection_.sendMessage(W,V)},km=function(y,W){cCC(y);
y.connection_.setPlayerContextData(OKe(W));v5u(y)};
us.prototype.setState_=function(y){if((y!=this.state_||y==2)&&this.state_!=3&&y!=0){var W=this.state_;this.state_=y;this.publish("proxyStateChange",W,y);if(y==1)for(;!this.actionQueue_.isEmpty();)y=this.actionQueue_,S8u(y),y.front_.pop().apply(this);else y==3&&this.dispose()}};
us.prototype.onProxyEvent_=function(y,W){this.publish(y,W)};
var d$C=function(y,W){y.castSession_&&(y.castSession_.removeUpdateListener(y.boundCastStatusListener_),y.castSession_.removeMediaListener(y.boundCastMediaListener_),y.onCastMediaChange_(null));y.castSession_=W;if(y.castSession_&&(PI("Setting cast session: "+y.castSession_.sessionId),y.castSession_.addUpdateListener(y.boundCastStatusListener_),y.castSession_.addMediaListener(y.boundCastMediaListener_),y.castSession_.media.length))y.onCastMediaChange_(y.castSession_.media[0])};
us.prototype.onCastStatusUpdate_=function(y){if(!y)this.onCastMediaChange_(null),d$C(this,null);else if(this.castSession_.receiver.volume){y=this.castSession_.receiver.volume;var W=Sz(this),V=Math.round(100*y.level||0);if(W.volume!=V||W.muted!=y.muted)PI("Cast volume update: "+y.level+(y.muted?" muted":"")),W.volume=V,W.muted=!!y.muted,km(this,W)}};
us.prototype.onCastMediaChange_=function(y){PI("Cast media: "+!!y);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=y)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),eUP(this),this.publish("remotePlayerChange")};
var eUP=function(y){var W=y.castMedia_.media,V=y.castMedia_.customData;if(W&&V){var w=Sz(y);W.contentId!=w.videoId&&PI("Cast changing video to: "+W.contentId);w.videoId=W.contentId;w.playerState=V.playerState;UW(w,y.castMedia_.getEstimatedTime());km(y,w)}else PI("No cast media video. Ignoring state update.")};
us.prototype.onCastMediaUpdate_=function(y){if(y)eUP(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
us.prototype.onCloudviewAvailabilityChange_=function(){var y=Jxj();y&&d$C(this,y)};
us.prototype.warn_=function(y){gv("CP",y)};
var LoC=function(y,W,V){return(0,_.jA)(function(w){this.warn_("Failed to "+W+" with cast v2 channel. Error code: "+w.code);w.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+W+" using MDx browser channel."),ls(this,W,V))},y)};var Aa=function(y,W,V,w){w=w===void 0?!1:w;_.pP.call(this);var t=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$19594_http_=y;this.enableConnectWithInitialState_=w;this.listeners_.push(_.Li(window,"beforeunload",function(){t.JSC$19597_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new KX;this.currentScreenId_=W.id;this.currentScreenIdType_=W.idType;this.channelService=NPE(this.JSC$19594_http_,V,this.JSC$19597_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){hUu(t)});
this.channelService.listen("channelClosed",function(){sW("Channel closed");isNaN(t.connectTimerId_)?Fi(!0):Fi();t.dispose()});
this.channelService.listen("channelError",function(F){Fi();isNaN(t.getReconnectTimeout_())?(F==1&&t.currentScreenIdType_=="shortLived"&&t.publish("browserChannelAuthError",F),sW("Channel error: "+F+" without reconnection"),t.dispose()):(t.reconnecting_=!0,sW("Channel error: "+F+" with reconnection in "+t.getReconnectTimeout_()+" ms"),o53(t,2))});
this.channelService.listen("channelMessage",function(F){KoP(t,F)});
this.channelService.setLoungeToken(W.token);this.subscribe("remoteQueueChange",function(){var F=t.playerContext_.videoId;XEj()&&_.ui("yt-remote-session-video-id",F)})};
_.p(Aa,_.pP);
Aa.prototype.connect=function(y,W){if(W){var V=W.listId,w=W.videoId,t=W.videoIds,F=W.playerParams,I=W.clickTrackingParams,P=W.index,C={videoId:w},d=W.currentTime,L=W.locationInfo;W=W.loopMode;d!==void 0&&(C.currentTime=d<=5?0:d);F&&(C.playerParams=F);L&&(C.locationInfo=L);I&&(C.clickTrackingParams=I);V&&(C.listId=V);t&&t.length>0&&(C.videoIds=t.join(","));P!==void 0&&(C.currentIndex=P);this.enableConnectWithInitialState_&&(C.loopMode=W||"LOOP_MODE_OFF");V&&(this.playerContext_.listId=V);this.playerContext_.videoId=
w;this.playerContext_.index=P||0;this.playerContext_.state=3;UW(this.playerContext_,d);this.autoplayMode_="UNSUPPORTED";V=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";sW("Connecting with "+V+" and params: "+(0,_.Xl)(C));this.channelService.connect({method:V,params:(0,_.Xl)(C)},y,QBW())}else sW("Connecting without params"),this.channelService.connect({},y,QBW());pKW(this)};
Aa.prototype.setLoungeToken=function(y){this.channelService.setLoungeToken(y)};
Aa.prototype.dispose=function(){this.isDisposed()||(_.dE("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),o53(this,3));_.pP.prototype.dispose.call(this)};
Aa.prototype.disposeInternal=function(){iKP(this);f9m(this);Tej(this);_.qO(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.qO(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.qrz(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.pP.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var m$C=function(y){return _.By(y.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"})},sW=function(y){gv("conn",y)},o53=function(y,W){y.publish("proxyStateChange",W)},pKW=function(y){y.connectTimerId_=_.mj(function(){sW("Connecting timeout");
y.JSC$19597_disconnect_(1)},2E4)},iKP=function(y){_.qO(y.connectTimerId_);
y.connectTimerId_=NaN},Tej=function(y){_.qO(y.reconnectedCheckScreenTimeout_);
y.reconnectedCheckScreenTimeout_=NaN},MVj=function(y){f9m(y);
y.playingSyncTimerId_=_.mj(function(){Ym(y,"getNowPlaying")},2E4)},f9m=function(y){_.qO(y.playingSyncTimerId_);
y.playingSyncTimerId_=NaN},hUu=function(y){sW("Channel opened");
y.reconnecting_&&(y.reconnecting_=!1,Tej(y),y.reconnectedCheckScreenTimeout_=_.mj(function(){sW("Timing out waiting for a screen.");y.JSC$19597_disconnect_(1)},15E3))},U$P=function(y,W){var V=null;
if(W){var w=m$C(y);w&&(V={clientName:w.clientName,deviceMake:w.brand,deviceModel:w.model,osVersion:w.osVersion})}_.dE("yt.mdx.remote.remoteClient_",V);W&&(iKP(y),Tej(y));V=y.channelService.isChannelOpened()&&isNaN(y.connectTimerId_);W==V?W&&(o53(y,1),Ym(y,"getSubtitlesTrack")):W?(y.getOtherConnectedRemoteId_()&&y.playerContext_.reset(),o53(y,1),Ym(y,"getNowPlaying"),qRW(y)):y.JSC$19597_disconnect_(1)},uXj=function(y,W){var V=W.params.videoId;
delete W.params.videoId;V==y.playerContext_.videoId&&(_.Gc.isEmpty(W.params)?y.playerContext_.trackData=null:y.playerContext_.trackData=W.params,y.publish("remotePlayerChange"))},SRe=function(y,W,V){var w=W.params.videoId||W.params.video_id,t=parseInt(W.params.currentIndex,10);
y.playerContext_.listId=W.params.listId||y.playerContext_.listId;Cfq(y.playerContext_,w,t);y.publish("remoteQueueChange",V)},D$W=function(y,W){W.params=W.params||{};
SRe(y,W,"NOW_PLAYING_MAY_CHANGE");y.onStateChange_(W);y.publish("autoplayDismissed")};
Aa.prototype.onStateChange_=function(y){var W=parseInt(y.params.currentTime||y.params.current_time,10);UW(this.playerContext_,isNaN(W)?0:W);W=parseInt(y.params.state,10);W=isNaN(W)?-1:W;W==-1&&this.playerContext_.playerState==-1E3&&(W=-1E3);this.playerContext_.playerState=W;W=Number(y.params.loadedTime);this.playerContext_.loadedTime=isNaN(W)?0:W;W=Number(y.params.duration);this.playerContext_.duration_=isNaN(W)?0:W;W=this.playerContext_;var V=Number(y.params.liveIngestionTime);W.liveIngestionTime_=
V;W.isLive_=isNaN(V)?!1:!0;W=this.playerContext_;V=Number(y.params.seekableStartTime);y=Number(y.params.seekableEndTime);W.seekableStart_=isNaN(V)?0:V;W.seekableEnd_=isNaN(y)?0:y;this.playerContext_.playerState==1?MVj(this):f9m(this);this.publish("remotePlayerChange")};
Aa.prototype.onAdStateChange_=function(y){if(this.playerContext_.playerState!=-1E3){var W=1085;switch(parseInt(y.params.adState,10)){case 1:W=1081;break;case 2:W=1084;break;case 0:W=1083}this.playerContext_.playerState=W;y=parseInt(y.params.currentTime,10);UW(this.playerContext_,isNaN(y)?0:y);this.publish("remotePlayerChange")}};
var l9u=function(y,W){var V=W.params.muted=="true";y.playerContext_.volume=parseInt(W.params.volume,10);y.playerContext_.muted=V;y.publish("remotePlayerChange")},x$d=function(y,W){y.autoplayVideoId_=W.params.videoId;
y.publish("nowAutoplaying",parseInt(W.params.timeout,10))},k8u=function(y,W){y.autoplayVideoId_=W.params.videoId||null;
y.publish("autoplayUpNext",y.autoplayVideoId_)},sLj=function(y,W){y.autoplayMode_=W.params.autoplayMode;
y.publish("autoplayModeChange",y.autoplayMode_);y.autoplayMode_=="DISABLED"&&y.publish("autoplayDismissed")},ACP=function(y,W){var V=W.params.hasNext=="true";
y.playerContext_.hasPrevious=W.params.hasPrevious=="true";y.playerContext_.hasNext=V;y.publish("previousNextChange")};
Aa.prototype.isCapabilitySupportedOnConnectedDevices_=function(y){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var W=_.N(this.connectedDevices_),V=W.next();!V.done;V=W.next())if(!V.value.capabilities.has(y))return!1;return!0};
var KoP=function(y,W){W=W.message;W.params?sW("Received: action="+W.action+", params="+(0,_.Xl)(W.params)):sW("Received: action="+W.action+" {}");switch(W.action){case "loungeStatus":W=(0,_.R2)(W.params.devices);y.connectedDevices_=_.rU(W,function(w){return new cA(w)});
W=!!_.By(y.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
U$P(y,W);W=y.isCapabilitySupportedOnConnectedDevices_("mlm");y.publish("multiStateLoopEnabled",W);break;case "loungeScreenDisconnected":gk4(y.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
U$P(y,!1);break;case "remoteConnected":var V=new cA((0,_.R2)(W.params.device));_.By(y.connectedDevices_,function(w){return w.equals(V)})||_.nd(y.connectedDevices_,V);
break;case "remoteDisconnected":V=new cA((0,_.R2)(W.params.device));gk4(y.connectedDevices_,function(w){return w.equals(V)});
break;case "gracefulDisconnect":break;case "playlistModified":SRe(y,W,"QUEUE_MODIFIED");break;case "nowPlaying":D$W(y,W);break;case "onStateChange":y.onStateChange_(W);break;case "onAdStateChange":y.onAdStateChange_(W);break;case "onVolumeChanged":l9u(y,W);break;case "onSubtitlesTrackChanged":uXj(y,W);break;case "nowAutoplaying":x$d(y,W);break;case "autoplayDismissed":y.publish("autoplayDismissed");break;case "autoplayUpNext":k8u(y,W);break;case "onAutoplayModeChanged":sLj(y,W);break;case "onHasPreviousNextChanged":ACP(y,
W);break;case "requestAssistedSignIn":y.publish("assistedSignInRequested",W.params.authCode);break;case "onLoopModeChanged":y.publish("loopModeChange",W.params.loopMode);break;default:sW("Unrecognized action: "+W.action)}};
_.E=Aa.prototype;_.E.getProxyState_=function(){var y=3;this.isDisposed()||(y=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(y=1):y=2);return y};
_.E.JSC$19597_disconnect_=function(y){sW("Disconnecting with "+y);_.dE("yt.mdx.remote.remoteClient_",null);iKP(this);this.publish("beforeDisconnect",y);y==1&&Fi();this.channelService.disconnect(y);this.dispose()};
_.E.getPlayerContextData_=function(){var y=this.playerContext_;this.clientVideoId_&&(y=this.playerContext_.clone(),Cfq(y,this.clientVideoId_,y.index));return OKe(y)};
_.E.setPlayerContextData_=function(y){var W=this,V=new KX(y);V.videoId&&V.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=V.videoId,_.qO(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.mj(function(){if(W.clientVideoId_){var t=W.clientVideoId_;W.clientVideoId_=null;W.playerContext_.videoId!=t&&Ym(W,"getNowPlaying")}},5E3));
var w=[];this.playerContext_.listId==V.listId&&this.playerContext_.videoId==V.videoId&&this.playerContext_.index==V.index||w.push("remoteQueueChange");this.playerContext_.playerState==V.playerState&&this.playerContext_.volume==V.volume&&this.playerContext_.muted==V.muted&&PfE(this.playerContext_)==PfE(V)&&(0,_.Xl)(this.playerContext_.trackData)==(0,_.Xl)(V.trackData)||w.push("remotePlayerChange");this.playerContext_.reset(y);_.IA(w,function(t){this.publish(t)},this)};
_.E.getOtherConnectedRemoteId_=function(){var y=this.channelService.getDeviceId(),W=_.By(this.connectedDevices_,function(V){return V.type=="REMOTE_CONTROL"&&V.id!=y});
return W?W.id:""};
_.E.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.E.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.E.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.E.JSC$19597_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var qRW=function(y){_.qO(y.idleDisconnectTimerId_);y.idleDisconnectTimerId_=_.mj(function(){y.JSC$19597_disconnect_(1)},864E5)},Ym=function(y,W,V){V?sW("Sending: action="+W+", params="+(0,_.Xl)(V)):sW("Sending: action="+W);
y.channelService.sendMessage(W,V)};
Aa.prototype.sendMessageWithUserAction_=function(y,W){Ym(this,y,W);qRW(this)};
Aa.prototype.JSC$19597_getXsrfToken_=function(){var y=_.k_.get("SAPISID","")||_.k_.get("__Secure-1PAPISID",void 0)||"",W=_.k_.get("__Secure-3PAPISID","")||"";if(!y&&!W)return"";y=_.Gj(_.JG(y),2);W=_.Gj(_.JG(W),2);return _.Gj(_.JG(","+y+","+W),2)};
Aa.prototype.subscribe=Aa.prototype.subscribe;Aa.prototype.unsubscribeByKey=Aa.prototype.unsubscribeByKey;Aa.prototype.getProxyState=Aa.prototype.getProxyState_;Aa.prototype.disconnect=Aa.prototype.JSC$19597_disconnect_;Aa.prototype.getPlayerContextData=Aa.prototype.getPlayerContextData_;Aa.prototype.setPlayerContextData=Aa.prototype.setPlayerContextData_;Aa.prototype.getOtherConnectedRemoteId=Aa.prototype.getOtherConnectedRemoteId_;Aa.prototype.getReconnectTimeout=Aa.prototype.getReconnectTimeout_;
Aa.prototype.getAutoplayMode=Aa.prototype.getAutoplayMode_;Aa.prototype.getAutoplayVideoId=Aa.prototype.getAutoplayVideoId_;Aa.prototype.reconnect=Aa.prototype.JSC$19597_reconnect_;Aa.prototype.sendMessage=Aa.prototype.sendMessageWithUserAction_;Aa.prototype.getXsrfToken=Aa.prototype.JSC$19597_getXsrfToken_;Aa.prototype.isCapabilitySupportedOnConnectedDevices=Aa.prototype.isCapabilitySupportedOnConnectedDevices_;var YR3=function(y){OM.call(this,"ScreenServiceProxy");this.instance_=y;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.jA)(this.JSC$19600_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.jA)(this.onOnlineScreenChange_,this)))};
_.p(YR3,OM);_.E=YR3.prototype;_.E.getScreens=function(y){return this.instance_.$_gs(y)};
_.E.contains=function(y){return!!this.instance_.$_c(y)};
_.E.get=function(y){return this.instance_.$_g(y)};
_.E.start=function(){this.instance_.$_st()};
_.E.add=function(y,W,V){this.instance_.$_a(y,W,V)};
_.E.remove=function(y,W,V){this.instance_.$_r(y,W,V)};
_.E.updateName=function(y,W,V,w){this.instance_.$_un(y,W,V,w)};
_.E.disposeInternal=function(){for(var y=this.subscriptionKeys_.length,W=0;W<y;++W)this.instance_.$_ubk(this.subscriptionKeys_[W]);this.subscriptionKeys_.length=0;this.instance_=null;OM.prototype.disposeInternal.call(this)};
_.E.JSC$19600_onScreenChange_=function(){this.publish("screenChange")};
_.E.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
LX.prototype.$_st=LX.prototype.start;LX.prototype.$_gspc=LX.prototype.JSC$19557_getScreenByPairingCode;LX.prototype.$_gsppc=LX.prototype.JSC$19557_getScreenByPollingPairingCode;LX.prototype.$_c=LX.prototype.contains;LX.prototype.$_g=LX.prototype.get;LX.prototype.$_a=LX.prototype.add;LX.prototype.$_un=LX.prototype.updateName;LX.prototype.$_r=LX.prototype.remove;LX.prototype.$_gs=LX.prototype.getScreens;LX.prototype.$_gos=LX.prototype.JSC$19557_getOnlineScreens;LX.prototype.$_s=LX.prototype.subscribe;
LX.prototype.$_ubk=LX.prototype.unsubscribeByKey;var HKm=function(y){VWt();if(!EM||!EM.get("yt-remote-disable-remote-module-for-dev")){y=_.yC("MDX_CONFIG")||y;hTC();G4C();BA||(BA=new WI(y?y.loungeApiHost:void 0),w9u()&&(BA.basePath="/api/loungedev"));Ja||(Ja=_.ts("yt.mdx.remote.deferredProxies_")||[],_.dE("yt.mdx.remote.deferredProxies_",Ja));BeC();var W=Rq();if(!W){var V=new LX(BA,y?y.disableAutomaticScreenCache||!1:!1);_.dE("yt.mdx.remote.screenService_",V);W=Rq();var w={};y&&(w={appId:y.appId,disableDial:y.disableDial,theme:y.theme,loadCastApiSetupScript:y.loadCastApiSetupScript,
disableCastApi:y.disableCastApi,enableDialLoungeToken:y.enableDialLoungeToken,enableCastLoungeToken:y.enableCastLoungeToken,forceMirroring:y.forceMirroring});_.dE("yt.mdx.remote.enableConnectWithInitialState_",y?y.enableConnectWithInitialState||!1:!1);xoC(V,function(F){F?jz()&&jcm(jz(),"YouTube TV"):V.subscribe("onlineScreenChange",function(){qy("yt-remote-receiver-availability-change")})},w)}if(y&&!_.ts("yt.mdx.remote.initialized_")){_.dE("yt.mdx.remote.initialized_",!0);
$m("Initializing: "+(0,_.Xl)(y));nT.push(_.pi("yt-remote-cast2-api-ready",function(){qy("yt-remote-api-ready")}));
nT.push(_.pi("yt-remote-cast2-availability-change",function(){qy("yt-remote-receiver-availability-change")}));
nT.push(_.pi("yt-remote-cast2-receiver-selected",function(){JCj();qy("yt-remote-auto-connect","cast-selector-receiver")}));
nT.push(_.pi("yt-remote-cast2-receiver-resumed",function(){qy("yt-remote-receiver-resumed","cast-selector-receiver")}));
nT.push(_.pi("yt-remote-cast2-session-change",RUm));nT.push(_.pi("yt-remote-connection-change",function(F){F?jcm(jz(),"YouTube TV"):jLu()||(jcm(null,null),BPC())}));
nT.push(_.pi("yt-remote-cast2-session-failed",function(){qy("yt-remote-connection-failed")}));
w=$$E();y.isAuto&&(w.id+="#dial");var t=y.capabilities||[];t.length>0&&(w.capabilities=t);w.name=y.device;w.app=y.app;(y=y.theme)&&(w.theme=y);$m(" -- with channel params: "+(0,_.Xl)(w));w?(_.ui("yt-remote-session-app",w.app),_.ui("yt-remote-session-name",w.name)):(_.Dk("yt-remote-session-app"),_.Dk("yt-remote-session-name"));_.dE("yt.mdx.remote.channelParams_",w);W.start();jz()||n5u()}}},a9W=function(){var y=Rq().instance_.$_gos();
var W=XKE();W&&HA()&&($KE(y,W)||y.push(W));return jBm(y)},G8j=function(){var y=a9W(),W=XKE();
W||(W=jLu());return _.By(y,function(V){return W&&wv(W,V.key)?!0:!1})},XKE=function(){var y=jz();
if(!y)return null;var W=Rq().getScreens();return th(W,y)},RUm=function(y){$m("remote.onCastSessionChange_: "+$oe(y));
if(y){var W=XKE();W&&W.id==y.id?(jcm(W.id,"YouTube TV"),y.idType=="shortLived"&&(y=y.token)&&(W=HA())&&W.setLoungeToken(y)):(W&&rCC(),bKd(y,1))}else HA()&&rCC()},rCC=function(){Rdj()?hh().stopSession():eq("stopSession called before API ready.");
var y=HA();y&&(y.disconnect(1),QLm(null))},ZKd=function(){var y=HA();
return y&&y.getProxyState()!=3?new us(HA(),void 0):null},$m=function(y){gv("remote",y)},Rq=function(){if(!yW4){var y=_.ts("yt.mdx.remote.screenService_");
yW4=y?new YR3(y):null}return yW4},jz=function(){return _.ts("yt.mdx.remote.currentScreenId_")},WO4=function(y){_.dE("yt.mdx.remote.currentScreenId_",y)},JCj=function(){_.dE("yt.mdx.remote.connectData_",null)},HA=function(){return _.ts("yt.mdx.remote.connection_")},QLm=function(y){var W=HA();
JCj();y||WO4("");_.dE("yt.mdx.remote.connection_",y);Ja&&(_.IA(Ja,function(V){V(y)}),Ja.length=0);
W&&!y?qy("yt-remote-connection-change",!1):!W&&y&&qy("yt-remote-connection-change",!0)},jLu=function(){var y=XEj();
if(!y)return null;var W=Rq();if(!W)return null;W=W.getScreens();return th(W,y)},bKd=function(y,W){WO4(y.id);
y=new Aa(BA,y,$$E(),_.ts("yt.mdx.remote.enableConnectWithInitialState_")||!1);y.connect(W,_.ts("yt.mdx.remote.connectData_"));y.subscribe("beforeDisconnect",function(V){qy("yt-remote-before-disconnect",V)});
y.subscribe("beforeDispose",function(){HA()&&QLm(null)});
y.subscribe("browserChannelAuthError",function(){var V=XKE();V&&V.idType=="shortLived"&&(Rdj()?hh().handleBrowserChannelAuthError():eq("refreshLoungeToken called before API ready."))});
QLm(y)},n5u=function(){var y=jLu();
y?($m("Resume connection to: "+$oe(y)),bKd(y,0)):(Fi(),BPC(),$m("Skipping connecting because no session screen found."))},BA=null,Ja=null,yW4=null,BeC=function(){var y=$$E();
if(_.Gc.isEmpty(y)){y=H2W();var W=_.SL("yt-remote-session-name")||"",V=_.SL("yt-remote-session-app")||"";y={device:"REMOTE_CONTROL",id:y,name:W,app:V,mdxVersion:3};y.authuser=String(_.yC("SESSION_INDEX","0"));(W=_.yC("DELEGATED_SESSION_ID"))&&(y.pageId=String(W));_.dE("yt.mdx.remote.channelParams_",y)}},$$E=function(){return _.ts("yt.mdx.remote.channelParams_")||{}},nT=[];var VUC=new _.Zb("yt-menu"),wSP=function(){},FOe=function(y,W,V){y=W=="right-click"?V.rightClickMenuPopupHint:V.menuPopupHint;
if(!(tUj(W)>10))return W=W||"default",VUC.set(W+"-impression",tUj(W)+1),y},tUj=function(y){return parseInt(VUC.get((y||"default")+"-impression")||0,10)};
_.oX(wSP);var Etu=function(){this.contexts_=new WeakMap;this.JSC$19606_networkService_=this.activeContext_=null},NZm=function(y,W,V){var w=y.contexts_.get(W);
w||(w=new cD3(y.JSC$19606_networkService_),y.contexts_.set(W,w));y.activeContext_=w;V&&y.activeContext_.reset();y.activeContext_.start();return y.activeContext_};var Xz=function(){};
Xz.prototype.enqueue=function(){var y=this,W;return _.g(function(V){if(y.isCounterfactual())return(W=y.getCounterfactualData())&&y.shouldLogCounterfactualImpression()&&y.sendImpressionEndpoints(W),V.return();y.doEnqueue();_.B7(V)})};
Xz.prototype.sendImpressionEndpoints=function(y){_.tL.getInstance().triggerOptionalAction("yt-service-request",{},y[0])};var aq=function(y,W){this.renderer=y;this.page=W};
_.p(aq,Xz);aq.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
aq.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
aq.prototype.shouldLogCounterfactualImpression=function(){return!0};
aq.prototype.doEnqueue=function(){var y=_.oJ(this.page);y&&y.pause();this.renderer.impressionCommand&&_.tL.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Zg(_.tL.getInstance(),[this.renderer.promoCommand],this.page)};var IO3=function(y,W){this.renderer=y;this.resolver=_.v5();this.JSC$19618_enforcementCounter=new _.juf;W?this.JSC$19618_playerManager=_.oJ(W):this.JSC$19618_playerManager=null;_.lN(1,!0)};
_.p(IO3,Xz);_.E=IO3.prototype;_.E.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var y=[];this.renderer.impressionEndpoints.forEach(function(W){(W=_.tl(W))&&y.push(W)});
return y}};
_.E.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.E.shouldLogCounterfactualImpression=function(){var y=_.BNG();y?(this.JSC$19618_enforcementCounter.increment("POPUP"),_.lN(3)):_.lN(2);return y};
_.E.cancel=function(){this.resolver.promise.cancel()};
_.E.doEnqueue=function(){var y=this;_.BNG()?(this.JSC$19618_enforcementCounter.increment("POPUP"),_.lN(3),gtu(this)):this.JSC$19618_playerManager?(this.resolver.promise.then(function(){gtu(y)}),Pat(this.resolver,this.JSC$19618_playerManager)):_.lN(2)};
var Pat=function(y,W){var V=_.v5();W.getPlayerPromise().then(function(w){V.resolve(w)});
V.promise.then(function(w){w.addEventListener("onAbnormalityDetected",y.resolve);_.$s(y.promise,function(){w.removeEventListener("onAbnormalityDetected",y.resolve)})});
y.promise.thenCatch(function(){V.promise.cancel()})},gtu=function(y){_.lN(3);
var W={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:y.renderer}};W=_.tL.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});Promise.all(W).then(function(){CaP();y.JSC$19618_playerManager&&y.JSC$19618_playerManager.pause()})},CaP=function(){aRC(function(y,W){_.aYt(y,W);
y===0?_.lN(7):_.lN(4)})};var Ort=function(y,W){this.renderer=y;this.page=W;this.resolver=_.v5()};
_.p(Ort,Xz);_.E=Ort.prototype;_.E.cancel=function(){this.resolver.promise.cancel()};
_.E.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.E.isCounterfactual=function(){return!this.renderer.isVisible};
_.E.shouldLogCounterfactualImpression=function(){return!0};
_.E.doEnqueue=function(){var y=this;this.resolver.promise.then(function(){var V={popup:{mealbarPromoRenderer:y.renderer},popupType:"MEALBAR"};_.tL.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:V},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var W=_.oJ(this.page);W&&vtv(this.resolver,W)}break;default:this.resolver.resolve()}};
var vtv=function(y,W){var V=_.v5();W.getPlayerPromise().then(function(w){V.resolve(w)});
V.promise.then(function(w){w.addEventListener("onAdEnd",y.resolve);_.$s(y.promise,function(){w.removeEventListener("onAdEnd",y.resolve)})});
y.promise.thenCatch(function(){V.promise.cancel()})};var ddC=function(y,W){this.renderer=y;this.page=W};
_.p(ddC,Xz);_.E=ddC.prototype;_.E.cancel=function(){this.JSC$19626_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19626_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19626_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.E.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.E.isCounterfactual=function(){return!this.renderer.isVisible};
_.E.shouldLogCounterfactualImpression=function(){return!0};
_.E.doEnqueue=function(){var y=this,W,V;((W=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(V=W.playbackUpsellDialogTriggerConditionData)==null?void 0:V.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19626_downloadedVideosCountSelectorUnsubscriber=_.Y0(_.dP(),j0t,function(w,t){w>t&&(LOP(y),y.cancel())}):LOP(this)};
var LOP=function(y){var W={popup:{upsellDialogRenderer:y.renderer},popupType:"MODAL"};_.tL.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});(y=_.oJ(y.page))&&y.pause()};var Gz={},zFm=(Gz.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Gz.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Gz.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Gz.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Gz.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Gz.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Gz.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Gz),cWu=function(y,W){this.renderer=y;this.targetManager=
W};
_.p(cWu,Xz);_.E=cWu.prototype;_.E.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19633_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19633_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19633_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.E.getCounterfactualData=function(){if(this.isCounterfactual()){var y;return(y=this.renderer.promoConfig)==null?void 0:y.impressionEndpoints}};
_.E.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.E.shouldLogCounterfactualImpression=function(){return!0};
_.E.doEnqueue=function(){var y=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19633_downloadedVideosCountSelectorUnsubscriber=_.Y0(_.dP(),j0t,function(W,V){y.renderer.targetId&&W>V&&(k$j(y.targetManager,y.renderer.targetId,eFP(y)),y.cancel())});
break;default:k$j(this.targetManager,this.renderer.targetId,eFP(this))}};
var eFP=function(y){var W;if((W=y.renderer.suggestedPosition)==null?0:W.type)var V=zFm[y.renderer.suggestedPosition.type];V||(V="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:y.renderer},popupType:"HINT",position:V}}};var hFu=function(){this.previousPage=null},ote;
hFu.prototype.registerPromoCommand=function(y,W){KOd(this,void 0,void 0,_.h(y.roadblock,sbW),void 0,void 0,W)};
var KOd=function(y,W,V,w,t,F,I){y.previousPage!==I&&y.pendingTooltipPromo&&y.pendingTooltipPromo.cancel();y.previousPage=I;t?(y.pendingEnforcementPromo&&y.pendingEnforcementPromo.cancel(),y.pendingEnforcementPromo=new IO3(t,I),y.pendingEnforcementPromo.enqueue()):F?(y.pendingCommandWrapperPromo=new aq(F,I),y.pendingCommandWrapperPromo.enqueue()):w?(y.pendingRoadblockPromo&&y.pendingRoadblockPromo.cancel(),y.pendingRoadblockPromo=new ddC(w,I),y.pendingRoadblockPromo.enqueue()):W?(y.pendingMealbarPromo&&
y.pendingMealbarPromo.cancel(),y.pendingMealbarPromo=new Ort(W,I),y.pendingMealbarPromo.enqueue()):V&&(y.pendingTooltipPromo&&y.pendingTooltipPromo.cancel(),y.pendingTooltipPromo=new cWu(V,_.$K()),y.pendingTooltipPromo.enqueue())},pSC=function(){ote||(ote=new hFu);
return ote};var aPm=!1;var BLd=function(y,W){var V=_.yC("SESSION_INDEX");this.actionToken_=y;this.commonToken_=W;this.sessionIndex_=V},YUu=function(y){var W=_.v5(),V=_.ts("payments.business.integration.bootstrap"),w=_.ts("payments.business.integration"),t=w.Style.create().withMaterialDesignStyle(),F=w.mashupMode.popup("instrument-manager");
V.asMashupMode(F).usingUserIndex(y.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(t).inStandaloneContext(w.standaloneContextAuthId.forUserId()).instrumentManager(y.actionToken_,y.commonToken_.length>0?y.commonToken_:void 0,function(I){var P=I.instrumentId;P?W.resolve(P):(P=_.ts("payments.business.integration.scenario.InstrumentManager"),W.reject(I.errorCode&&I.errorCode===P.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(I){_.VC(I);
W.reject("instrumentManagerLoadError")});
return W.promise};var mD=function(y,W,V){this.payloadName="transactionFlowFailed";this.payload={errorType:y,serializedTransactionFlowLoggingParams:W,isUserDismiss:V===void 0?!1:V}};
_.dE("yt.ypc.shared.YpcTransactionFlowError",mD);var r8=function(){return _.YA.apply(this,arguments)||this};
_.p(r8,_.YA);r8.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
r8.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
r8.prototype.onErrorMessageDismiss=r8.prototype.onErrorMessageDismiss;_.J([_.q({readOnly:!0,observer:"errorRendererChanged"}),_.R("design:type",Object)],r8.prototype,"errorRenderer",void 0);_.J([_.l6("yt-live-chat-error-message-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],r8.prototype,"onErrorMessageDismiss",null);_.J([_.BW()],r8);var irP=[r8.prototype];var fOE;var TZu;var md3=new _.Zb("yt-live-chat"),MUu=new Map;MUu.set("timestamp_toggle","show-timestamps");MUu.set("reactions_toggle","allow-reactions");var bs=function(){return _.u.apply(this,arguments)||this};
_.p(bs,_.u);_.E=bs.prototype;_.E.menuItemIdentifierChanged=function(){var y;(y=this.data)!=null&&y.menuItemIdentifier&&(y=MUu.get(this.data.menuItemIdentifier))&&(_.e("enable_lwe_web_mute")?(y=md3.get(y),this.isToggled=!(y===void 0?!this.data.isToggled:!y)):this.isToggled=md3.get(y))};
_.E.onFocus=function(){this.toggleButton.focus()};
_.E.onTap=function(){var y=this.data.command;y&&this.componentBehavior.resolveCommand(y)};
_.E.computeText=function(y,W,V){return this.componentBehavior.getSimpleString(y?V:W)};
_.E.computeIcon=function(y,W,V){return(y=y?V:W)&&y.iconType?_.D8(y.iconType):""};
bs.prototype.onTap=bs.prototype.onTap;bs.prototype.onFocus=bs.prototype.onFocus;bs.prototype.menuItemIdentifierChanged=bs.prototype.menuItemIdentifierChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],bs.prototype,"componentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bs.prototype,"data",void 0);
_.J([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.R("design:type",String)],bs.prototype,"icon",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],bs.prototype,"isToggled",void 0);_.J([_.s$("tp-yt-paper-toggle-button"),_.R("design:type",Object)],bs.prototype,"toggleButton",void 0);_.J([_.xA("data.menuItemIdentifier"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bs.prototype,"menuItemIdentifierChanged",null);
_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bs.prototype,"onFocus",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bs.prototype,"onTap",null);_.J([_.Zp({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],bs);
_.Y(bs,"yt-live-chat-toggle-renderer",function(){if(TZu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;fOE===void 0&&(fOE=document.createElement("template"));var w=fOE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);TZu=y}y=TZu;return y},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var q4W=new _.e9("NAVIGATION_PROGRESS_TOKEN");var Udv={},uqe={},S4v=(uqe[fk3.name]=!0,uqe),Q1=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;y.tabGesturesIsActive=!1;y.actionRouterIsRoot=!0;y.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"};y.pageTitle="";y.titleSuffix="YouTube";y.unseenNotificationCount=
0;y.hasNavigated=!1;y.hasSetScrollTopForNavigation=!1;y.pagePreparer=null;y.zwiebackInitJobId=0;y.dataUpdatePromise=null;y.loadDepsPromise=_.T2();y.hasPendingNavigation=!1;y.pendingPlayerOnResponseReceivedActions=[];return y};
_.p(Q1,_.YA);Q1.prototype.attached=function(){DdC(this);document.addEventListener("yt-navigate-cache",_.Dp(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var y=Z$();y.init();y.dispatchElement=this.hostElement};
var DdC=function(y,W){W=W===void 0?0:W;var V=_.hs().resolve(_.eX(_.jL));if(V)lO4(y,V);else{if(W>=5)throw Error("gl");setTimeout(function(){DdC(y,W+1)},0)}},lO4=function(y,W){W.addEventListener("yt-navigate-start",_.Dp(y,y.onYtNavigateStart));
W.addEventListener("yt-navigate-finish",_.Dp(y,y.onYtNavigateFinish));W.addEventListener("yt-navigate-error",_.Dp(y,y.onYtNavigateError));W.addEventListener("yt-page-data-fetched",_.Dp(y,y.onYtPageDataFetched))};
_.E=Q1.prototype;_.E.detached=function(){var y=_.hs().resolve(_.jL);y.removeEventListener("yt-navigate-start",_.Dp(this,this.onYtNavigateStart));y.removeEventListener("yt-navigate-finish",_.Dp(this,this.onYtNavigateFinish));y.removeEventListener("yt-navigate-error",_.Dp(this,this.onYtNavigateError));y.removeEventListener("yt-page-data-fetched",_.Dp(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Dp(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.E.setPageOffset=function(y,W){y?_.ow(this.hostElement,"yt-set-page-offset",[y,W]):_.ap(Error("hl"))};
_.E.setPageOffsetForNavigation=function(y,W){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(y,W))};
_.E.onYtNavigateSetPageOffset=function(y,W){this.setPageOffsetForNavigation(W.page,W.offset)};
_.E.getPageOffset=function(){var y=_.i6(this.hostElement).querySelector("#page-manager").getCurrentPage(),W=0;y&&(W=_.ow(this.hostElement,"yt-get-page-offset",[y])[0]);return W};
_.E.onYtHistoryPop=function(y,W){if(_.W4("DISABLE_WARM_LOADS"))y.preventDefault(),window.location.reload();else{var V=_.hs().resolve(_.jL);V.hasPendingNavigation()&&y.preventDefault();V.cancelPendingNavigation();_.Kg(this.hostElement,"yt-pending-navigation-cancelled");W.errorMsg&&(y=W.errorMsg.split(" - "),W=Error(y[0]),y.length==2&&y[1]&&(_.bb(W,y[1]),_.rQ(W)),window.location.reload())}};
_.E.onYtHistoryLoad=function(y,W){var V=this;if(_.W4("DISABLE_WARM_LOADS"))window.location.reload();else{(y=W.endpoint)&&Object.keys(y).length||(y=null);var w=W.historyEntry,t=_.hs().resolve(_.jL),F=_.hs().resolve(_.hn),I=null;w&&w.rootData&&(I=w.rootData);var P=I&&xdj(I);!I||P||I.filler?y?(t.navigate(y,!0),kQ3(this,y)):(W.legacyBorder||P||(W.JSC$29800_savedComponentState==null&&I==null?_.rQ(new _.Js("Incomplete history entry",W.forward)):_.GD(new _.Js("Malformed history entry",W.JSC$29800_savedComponentState,
W.forward,I))),window.location.reload()):(_.$2v({isHot:!0}),_.HN({webInfo:{navigationReason:"h"}}),_.Ccv(),_.aw("srt"),_.aw("pdc"),this.cancelPendingTasks(),sjC(this,W.forward,I),I.player&&(I.player.loaded=!1),kQ3(this,y),_.PmQ(t,y||{},I,2,{},!1,W).then(function(){V.setPageOffset(F.getCurrentPage(),w.scrollTop||0)}))}};
_.E.initHistoryManager=function(y){if(!this.hasNavigated){this.hasNavigated=!0;var W=_.i6(this.hostElement).querySelector("#page-manager").getCurrentData();y=isNaN(y)?this.getPageOffset():y;var V=_.hs().resolve(_.jL).currentEndpoint;this.replaceState(V,W,y)}};
_.E.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.E.onYtNavigateStart=function(y,W){this.cancelPendingTasks();W.noProgressBar||(y=_.hs().resolve(_.eX(q4W)))&&y.start();y=this.hasPendingNavigation?null:this.data;var V=_.hs().resolve(_.hn),w,t,F;_.e("kevlar_use_vimio_behavior")&&!((w=W.endpoint)==null?0:(t=w.commandMetadata)==null?0:(F=t.webCommandMetadata)==null?0:F.ignoreNavigation)&&(w=V.getCurrentPage())&&w.disconnectVisibilityRoot();V.prepareForNavigation(W.pageType,W.endpoint);_.e("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.oY(1,
"pcl"),_.Kh(this.pagePreparer,V.preparePage.bind(V,W.pageType,W.endpoint)));w=this.getPageOffset();this.initHistoryManager(w);W.reload||this.hasPendingNavigation?this.replaceState(W.endpoint,y,w):(y==null?void 0:y.page)==="watch"&&W.pageType==="watch"&&_.e("kevlar_replace_watch_to_watch_history_state")?this.replaceState(W.endpoint,y,w):(y==null?void 0:y.page)!=="shorts"||W.pageType!=="shorts"||W.endpoint.reelWatchEndpoint.sequenceParams||_.e("short_to_short_back_nav_killswitch")?W.type!="navigate-back"&&
W.type!="navigate-forward"&&(W.pageType==="shorts"&&_.h1(this.hostElement,"yt-shorts-reset"),this.saveAndPush(W.url,W.endpoint,y,w)):(_.e("web_enable_delay_shorts_sequence_call")&&(W.endpoint.reelWatchEndpoint.sequenceParams=y==null?void 0:y.cachedSequenceParams,W.endpoint.reelWatchEndpoint.sequenceProvider=y==null?void 0:y.cachedSequenceProvider),this.replaceState(W.endpoint,y,0));this.hasPendingNavigation=!0};
var AWj=function(y){y.hasPendingNavigation=!1;(y=_.hs().resolve(_.eX(q4W)))&&y.finish()};
Q1.prototype.onYtNavigateError=function(y,W){AWj(this);y=this.get("endpoint.commandMetadata.webCommandMetadata.url",W);var V=_.P4(window.location.href);y&&!V.pbjreload&&(W=W.navigationErrorReason||"10",_.e("kevlar_parent_on_pbjreload")&&(V={csn:_.Xn()},this.get("data.endpoint.clickTrackingParams")&&(V.itct=this.data.endpoint.clickTrackingParams),_.On(y,V)),_.Ng(_.CB(y,{pbjreload:W})))};
Q1.prototype.onYtNavigateCache=function(y,W){var V=this,w=W.url,t=W.endpoint,F=W.data;y=!!W.miniplayer;W=!!W.skipHistory;if(w&&t&&F){var I=this.getPageOffset(),P=this.data||null;W||this.saveAndPush(w,t,P,I);w=_.PmQ(_.hs().resolve(_.jL),t,F,y?4:3,{},y);y&&w.then(function(){V.dataUpdatePromise&&V.dataUpdatePromise.then(function(){var C=_.hs().resolve(_.hn);V.setPageOffset(C.getCurrentPage(),0)})})}};
Q1.prototype.onYtNavigateFinish=function(y,W){var V=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Y4v(V,W.fromHistory)})};
var Y4v=function(y,W){AWj(y);if(y.pendingPlayerOnResponseReceivedActions){for(var V=_.N(y.pendingPlayerOnResponseReceivedActions),w=V.next();!w.done;w=V.next())_.kc(w.value,y.hostElement);y.pendingPlayerOnResponseReceivedActions=[]}V=_.hs().resolve(_.hn);W||!y.hasNavigated||_.e("web_disable_scroll_on_navigate_finish")||((W=V.getCurrentPage())?W.is==="ytd-shorts"||y.tabGesturesIsActive||y.setPageOffsetForNavigation(W,0):_.rQ(Error("il")));_.Er(function(){_.Er(function(){_.aw("pda")})})};
Q1.prototype.onYtNavigate=function(y){if(!y.detail.endpoint){var W=new _.Js("Error: Missing yt-navigate endpoint from target:",y.target,y.target.nodeName);_.ap(W)}if(W=_.e("cold_missing_history"))W=Z$(),W.init(!1),W=!(W.browserHistory.boundHistoryReplaceState&&W.browserHistory.boundHistoryPushState);if(W){_.Z7("DISABLE_WARM_LOADS",!0);W=new _.Js("Failed to initialize history manager",this.getDebugString());var V=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
V?_.rQ(W):_.ap(W)}W=y.detail.endpoint;var w,t;_.e("debug_forward_web_query_parameters")&&((w=W.commandMetadata)==null?0:(t=w.webCommandMetadata)==null?0:t.url)&&(W=JSON.parse(JSON.stringify(W)),W.commandMetadata.webCommandMetadata.url=_.MMu(W.commandMetadata.webCommandMetadata.url,window.location.search));y={type:0,command:W,form:{params:y.detail.params,tempData:y.detail.tempData||{},requestType:y.detail.type,createScreenConfig:y.detail.createScreenConfig,reload:y.detail.reload?y.detail.reload:!1,
requestForm:y.detail}};_.e("kevlar_yt_navigate_command_handler")?(w=_.hs().resolve(_.oA),y.form.skipDefaultElement=!0,w.resolveCommand(W,{form:y.form})):this.handleNavigate(y)};
Q1.prototype.handleNavigate=function(y){this.hasSetScrollTopForNavigation=!1;var W=_.hs().resolve(_.jL),V=y.form||{};W.navigate(y.command,V.reload,V.params,V.tempData,V.requestType,V.createScreenConfig,V.ignoreConfirmation,V.requestForm)&&kQ3(this,y.command,V.tempData)};
Q1.prototype.onYtPageDataFetched=function(y,W){try{_.WVm().reset();this.data=W.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.hs().resolve(_.hn).updatePageData(this.data);if(!_.e("web_service_params_response_processor")){var V=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);V&&ZMu(V);var w=this.get("response.responseContext.serviceTrackingParams",
this.data);w&&ZMu(w)}var t=this.get("playerResponse.onResponseReceivedActions",this.data);t&&(t=BZj(this,t));t&&_.fg(this.hostElement,t,this.hostElement);var F=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),I=this.get("response.responseContext.consistencyTokenJar",this.data);if(F||I){var P=_.NZv(),C=(0,_.Gc.getValues)(P.tokenJars);F&&P.replace(C,F);I&&P.replace(C,I)}}catch(d){_.ap(d)}};
var kQ3=function(y,W,V){try{y.onYtEndpointChangeHandler(W,V)}catch(w){_.ap(w)}};
_.E=Q1.prototype;_.E.onYtEndpointChangeHandler=function(){};
_.E.setPageTitle=function(y){y=(this.pageTitle=y)?y+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+y};
_.E.onYtUpdateTitle=function(y,W){this.setPageTitle(W)};
_.E.setUnseenNotificationCount=function(y){this.unseenNotificationCount=y;this.setPageTitle(this.pageTitle)};
_.E.handleUpdateNotificationsUnseenCountAction=function(y){_.h(y,EKv)&&((y=_.h(y,EKv).unseenCount)?this.setUnseenNotificationCount(y):this.setUnseenNotificationCount(0))};
_.E.handleClearCookieAction=function(y){var W;(y=(W=_.h(y,VL4))==null?void 0:W.cookieName)&&_.XNv(y)};
_.E.onYtUpdateUnseenNotificationCount=function(y,W){this.setUnseenNotificationCount(W)};
_.E.loadData=function(y){var W=this;this.loadDepsPromise.then(function(){var V=_.hs().resolve(_.eX(_.jL));V||_.ap(Error("jl"));if(y&&y.response){if(!y.endpoint){var w=_.Vm(window.document.location.href)||"/",t="";if(w==="/"||w.startsWith("/?"))t="WEB_PAGE_TYPE_BROWSE";y.endpoint={commandMetadata:{webCommandMetadata:{url:w,webPageType:t,rootVe:3854}}}}_.PmQ(V,y.endpoint,y,5,{})}else y.endpoint?V.navigate(y.endpoint):V.navigate(_.Ag);_.HU.cancelJob(W.zwiebackInitJobId);W.zwiebackInitJobId=_.HU.addLowPriorityJob(GwP)})};
var Z$=function(){return _.hs().resolve(_.DO)};
Q1.prototype.getDebugString=function(){return Z$().getDebugString()};
Q1.prototype.getThirdPartyManipulationSuspected=function(){return Z$().getThirdPartyManipulationSuspected()};
Q1.prototype.replaceState=function(y,W,V){Z$().saveAndReplace(y,W,V)};
Q1.prototype.saveAndPush=function(y,W,V,w){Z$().saveAndPush(y,W,V,w)};
var xdj=function(y){return _.h(y.endpoint,_.Iw)||_.h(y.endpoint,_.Jx)?!0:!y||isNaN(y.expirationTime)?!1:(0,_.cU)()>y.expirationTime},sjC=function(y,W,V){var w=y.get("response.trackingParams",V),t=_.Hf(),F=_.Xn();
if(w&&t&&F&&(w=y.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",V),!w&&V.rootVe&&(w=V.rootVe),t=W?"forwardButton":"backButton",W=y.get("playerResponse.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",y.data),y=y.get("response.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",y.data),W=(y=W||y)?_.nD(y):void 0,y=_.BC(),t=[_.T2(V)],_.qx(y,w,W,{dataPromises:t,csnToClone:V.csn}),V.graftedVes))for(V=
_.N(V.graftedVes),w=V.next();!w.done;w=V.next())_.U8(y,w.value)};
Q1.prototype.onStoreGraftedVeAction=function(y){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(y)):_.rQ(Error("kl"))};
var BZj=function(y,W){return W.filter(function(V){for(var w in V)if(S4v[w])return y.pendingPlayerOnResponseReceivedActions.push(V),!0;return!1})};
_.CM.Object.defineProperties(Q1.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Q1.prototype.onStoreGraftedVeAction=Q1.prototype.onStoreGraftedVeAction;Q1.prototype.loadData=Q1.prototype.loadData;Q1.prototype.onYtUpdateUnseenNotificationCount=Q1.prototype.onYtUpdateUnseenNotificationCount;Q1.prototype.handleClearCookieAction=Q1.prototype.handleClearCookieAction;Q1.prototype.handleUpdateNotificationsUnseenCountAction=Q1.prototype.handleUpdateNotificationsUnseenCountAction;Q1.prototype.setUnseenNotificationCount=Q1.prototype.setUnseenNotificationCount;
Q1.prototype.onYtUpdateTitle=Q1.prototype.onYtUpdateTitle;Q1.prototype.setPageTitle=Q1.prototype.setPageTitle;Q1.prototype.onYtEndpointChangeHandler=Q1.prototype.onYtEndpointChangeHandler;Q1.prototype.onYtPageDataFetched=Q1.prototype.onYtPageDataFetched;Q1.prototype.handleNavigate=Q1.prototype.handleNavigate;Q1.prototype.onYtNavigate=Q1.prototype.onYtNavigate;Q1.prototype.onYtNavigateFinish=Q1.prototype.onYtNavigateFinish;Q1.prototype.onYtNavigateCache=Q1.prototype.onYtNavigateCache;
Q1.prototype.onYtNavigateError=Q1.prototype.onYtNavigateError;Q1.prototype.onYtNavigateStart=Q1.prototype.onYtNavigateStart;Q1.prototype.cancelPendingTasks=Q1.prototype.cancelPendingTasks;Q1.prototype.initHistoryManager=Q1.prototype.initHistoryManager;Q1.prototype.onYtHistoryLoad=Q1.prototype.onYtHistoryLoad;Q1.prototype.onYtHistoryPop=Q1.prototype.onYtHistoryPop;Q1.prototype.onYtNavigateSetPageOffset=Q1.prototype.onYtNavigateSetPageOffset;Q1.prototype.setPageOffset=Q1.prototype.setPageOffset;
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Q1.prototype,"data",void 0);_.J([_.l6("yt-navigate-set-page-offset"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Q1.prototype,"onYtNavigateSetPageOffset",null);
_.J([_.l6("yt-history-pop"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Q1.prototype,"onYtHistoryPop",null);_.J([_.l6("yt-history-load"),_.R("design:type",Function),_.R("design:paramtypes",[Event,_.usf]),_.R("design:returntype")],Q1.prototype,"onYtHistoryLoad",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Q1.prototype,"onYtNavigate",null);
_.J([_.l6("yt-update-title"),_.R("design:type",Function),_.R("design:paramtypes",[Event,String]),_.R("design:returntype")],Q1.prototype,"onYtUpdateTitle",null);_.J([_.l6("yt-update-unseen-notification-count"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Number]),_.R("design:returntype")],Q1.prototype,"onYtUpdateUnseenNotificationCount",null);_.J([_.BW()],Q1);Udv.YtdAppBehavior=[_.ik.YtActionHandlerBehavior,Q1.prototype];var yN=function(){var y=_.YA.apply(this,arguments)||this;y._noAccessors=!0;return y};
_.p(yN,_.YA);yN.prototype.ready=function(){var y=this;_.i6(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){y.onChange_()})};
yN.prototype.dataChanged_=function(){_.i6(this.hostElement).querySelector("#checkbox").checked=!1};
yN.prototype.onChange_=function(){var y=_.i6(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.h1(this.hostElement,"yt-dismissal-reason-"+y,this.data.feedbackToken)};
yN.prototype.dataChanged_=yN.prototype.dataChanged_;_.J([_.q(),_.R("design:type",Object)],yN.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yN.prototype,"dataChanged_",null);_.J([_.BW()],yN);var JWu=[yN.prototype];var Wk=function(){var y=_.YA.apply(this,arguments)||this;y.timeoutJobId=0;y.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return y};
_.p(Wk,_.YA);Wk.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Wk.prototype.startTimeout=function(){var y=this,W=this.data&&this.data.displayDurationSeconds;W&&!this.timeoutJobId&&(this.timeoutJobId=_.Jt(_.HU,function(){_.ow(y.hostElement,"yt-close-popup-action",[y.is]);y.timeoutJobId=0},W*1E3))};
Wk.prototype.cancelTimeout=function(){_.HU.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Wk.prototype.ytdHatsSurveyBehaviorDataChanged=Wk.prototype.ytdHatsSurveyBehaviorDataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wk.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.J([_.BW()],Wk);var RF4=[_.ik.YtActionHandlerBehavior,Wk.prototype];var jjt=function(y,W){var V;return((V=y.prefixMapping)==null?0:V[W])?y.prefixMapping[W]:y.SHARED_RENDERERS_.hasOwnProperty(W)?"yt":y.prefix},VN={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}};VN.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.e("kevlar_mealbar_above_player"),modern:_.e("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
VN.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};VN.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};VN.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
VN.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)"}};
VN.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};
VN.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};
VN.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};
VN.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};VN.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"}};
VN.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};VN.TOAST={component:null,properties:{}};var $dE=new function(y,W,V){this.supportedPopups=y;this.navigationEndpointPopupMap=W;this.popupTypeMap=V;this.supportedPopups=y;this.navigationEndpointPopupMap=W;this.popupTypeMap=V}({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:_.e("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"}),ntE=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$19683_popupConfig=VN;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 Hru=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.bf.getInstance()},wG=function(y,W){var V=y.pageNameToElement.get(W);
if(!V){switch(W){case "watch":var w=_.e("web_watch_force_learning_journey_for_testing")?_.hZ("ytd-watch-learning-journey"):_.e("kevlar_watch_fixie")?_.hZ("ytd-watch-fixie"):_.e("kevlar_watch_grid")?_.hZ("ytd-watch-grid"):_.hZ("ytd-watch-flexy");break;case "learning_journey_watch":w=_.hZ("ytd-watch-learning-journey");break;case "shorts":w=_.hZ("ytd-shorts");break;case "search":w=_.hZ("ytd-search");break;case "channel":w=_.hZ("ytd-browse");w.pageSubtype="channels";break;case "trending":w=_.hZ("ytd-browse");
w.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":w=
_.hZ("ytd-browse");w.pageSubtype=W;break;case "browse":w=_.hZ("ytd-browse");break;default:_.rQ(new _.Js("Error getting page element for type",W))}V=w;y.pageNameToElement.set(W,V)}return V};
Hru.prototype.preparePage=function(y,W,V){V&&(y=_.k1(V)||y);if(y!=="watch"&&y!=="learning_journey_watch"){var w=this.elementPoolPopulator,t=y;t!=w.targetPage_&&w.pendingPages_.indexOf(t)>-1&&(w.targetPage_&&(w.pendingPages_.unshift(w.targetPage_),w.abort()),YP4(w,t),_.m3E(w,t))}if((w=wG(this,y))||!_.h(V,_.wS)){w.isAttached||w===W||(w.hidden=!0);if(!w.data&&(y!=="watch"&&y!=="learning_journey_watch"||!_.e("swatcheroo_page_pool_dont_provide_filler_data"))){var F;if(y=(F=_.yC("FILLER_DATA",{})[y])==
null?void 0:F.response)w.data=y}return w}};var XSj=function(y){this.JSC$31693_clientRoot=y;this.playlistHandlerActionMap={"yt-add-to-playlist-command":tBW,"yt-end-playlist-command":Fgj,"yt-recover-playlist-command":Ng3,"yt-refresh-playlist-command":P6C,"yt-playlist-remove-videos-action":Ipv};_.FD(_.tL.getInstance(),this.playlistHandlerActionMap,this.JSC$31693_clientRoot);G$u()},aOq;var t2=function(y,W,V){this.apiKey=y;this.endpoint=W;this.confidenceThreshold=V===void 0?.5:V;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=W==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
W==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new RI4};
_.E=t2.prototype;
_.E.start=function(y){if(this.state===0)if(this.isOnline()){y.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=y.supportsHttpHeadersOverwriteParam);y.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=y.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.X$("voice_assistant");_.G2("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=y.languageCode||"en-US";this.supportsCrossDomainXhr=y.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=y.youtubeAssistantRequest||null;this.listeningHandler=y.listeningHandler||this.listeningHandler;this.audioDetectedHandler=y.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=y.stopHandler||this.stopHandler;this.completeHandler=y.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=y.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=y.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
y.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=y.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=y.accessToken;this.additionalHeaders=y.additionalHeaders||{};var W;this.prefetchResponseTimeoutMs=(W=y.prefetchResponseTimeoutMs)!=null?W:this.prefetchResponseTimeoutMs;GQj(this);this.startAudio();rWC(this)}else this.errorHandler("OFFLINE")};
_.E.stop=function(y){var W=y===void 0?{}:y;y=W.logCancel===void 0?!0:W.logCancel;var V=W.logMicClosed===void 0?!0:W.logMicClosed;var w=W.handleError===void 0?!0:W.handleError;W=W.handleStop===void 0?!0:W.handleStop;this.state!==0&&(y&&Fw("voz_cx"),Eu(this,{logMicClosed:V,handleStop:W}),w&&this.errorHandler("ABORTED"))};
_.E.getState=function(){return this.state};
_.E.isSupported=function(){return!0};
_.E.stopAudio=function(y){(y===void 0||y)&&Fw("voz_mf")};
_.E.startAudio=function(){Fw("voz_vp");return _.T2(null)};
var br4=function(y,W){y.channelOpen&&(y.state!==2&&(y.state=2,Fw("voz_ss"),y.listeningHandler()),W=new Uint8Array(W),W='{ "audioIn": "'+_.Gj(W)+'" }',y.channel.send(W))},Eu=function(y,W){var V=W===void 0?{}:W;
W=V.logMicClosed===void 0?!0:V.logMicClosed;V=V.handleStop===void 0?!0:V.handleStop;y.vozEndOfDataTimeout>-1&&(clearTimeout(y.vozEndOfDataTimeout),y.vozEndOfDataTimeout=-1);Qjd(y);y.stopAudio(W);y.channel&&(y.channelOpen=!1,y.manuallyClosedChannel=!0,y.channel.close(),y.channel=void 0);y.transcribedSpeechResults=[];y.state=0;V&&y.stopHandler()},GQj=function(y){var W={httpHeadersOverwriteParam:y.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},y.additionalHeaders,y.accessToken&&y.isUsingVoz?{Authorization:"Bearer "+y.accessToken}:{"x-goog-api-key":y.apiKey}),supportsCrossDomainXhr:y.supportsCrossDomainXhr};y.channel=new Fz(y.endpoint,W);y.channel.open();_.XZ(y.channel,"w",function(){var V=y.channel,w=V.send,t=y.isUsingVoz?"PLACEHOLDER":"example";t={config:{dialogStateIn:{languageCode:y.languageCode},deviceConfig:{deviceId:t,deviceModelId:t},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!y.isUsingVoz)t.config.requestType=4;else if(y.isUsingVoz&&y.youtubeAssistantRequest){var F=JSON.stringify(y.youtubeAssistantRequest);t.config.internalIn={youtubeAssistantS3InputJson:F}}w.call(V,t);y.channelOpen=!0;y.manuallyClosedChannel=!1});
_.XZ(y.channel,"x",function(){y.manuallyClosedChannel||(y.channelOpen=!1,y.channel=void 0,Eu(y))});
_.XZ(y.channel,"z",function(V){if(V.data){Qjd(y);for(var w=0;w<V.data.length;w++){var t=y,F=V.data[w],I=F.speechResults;if(I)a:{var P=[];F=[];var C=!1;I=_.N(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;if(d.noSpeech){Eu(t);t.errorHandler("NO_SPEECH");break a}d.transcript!==void 0&&d.stability!==void 0&&(d.stability<t.confidenceThreshold&&(C=!0),C?F.push(d.transcript):P.push(d.transcript))}if(P.length!==0||F.length!==0)P=P.join(" "),F=F.join(" "),t.receivedEndOfUtterance&&!t.isUsingVoz?t.isUsingVoz||
t.completeHandler([P,F]):(C=t,I=P,d=F,Fw("voz_sf"),C.transcriptionUpdateHandler(I,d),C.transcribedSpeechResults=[I,d]),t.receivedEndOfUtterance&&(Fw("voz_eou"),t.transcriptionCompleteHandler([P,F]),t.isUsingVoz&&(t.prefetchResponseTimeoutMs===0?Eu(t,{logMicClosed:!1,handleStop:!0}):t.prefetchResponseTimeoutMs>0&&ZrC(t)))}else t.isUsingVoz&&(F==null?0:F.internalOut)?(F=JSON.parse(F.internalOut.youtubeAssistantS3OutputJson),F.userHasOptedInToVaa||F.vaaConsent?t.vaaConsentUpdateHandler(!!F.userHasOptedInToVaa,
!!F.vaaConsent):(yju(t),F&&(P=t.transcribedSpeechResults,Fw("voz_rqf"),t.completeHandler(P,F)))):F.eventType==="END_OF_UTTERANCE"?t.receivedEndOfUtterance=!0:(Fw("voz_err"),t.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.rQ(Error("ll")))}}});
_.XZ(y.channel,"y",function(V){Eu(y);switch(V.status){case 1:V="WEBCHANNEL_NETWORK_ERROR";break;case 2:V="WEBCHANNEL_SERVER_ERROR";break;default:V="WEBCHANNEL_UNKNOWN_ERROR"}y.errorHandler(V);y.logError(Error(V))})};
t2.prototype.logError=function(y){_.ap(y)};
t2.prototype.isOnline=function(){return!0};
var ZrC=function(y){yju(y);y.prefetchResponseSetTimeoutId=setTimeout(function(){Eu(y,{logMicClosed:!1,handleStop:!0})},y.prefetchResponseTimeoutMs)},yju=function(y){y.prefetchResponseSetTimeoutId>-1&&(clearTimeout(y.prefetchResponseSetTimeoutId),y.prefetchResponseSetTimeoutId=-1)},rWC=function(y){Qjd(y);
y.noResponseReceivedTimeout=window.setTimeout(function(){Eu(y);y.errorHandler("NO_SPEECH")},11E3)},Qjd=function(y){y.noResponseReceivedTimeout>-1&&(window.clearTimeout(y.noResponseReceivedTimeout),y.noResponseReceivedTimeout=-1)},Fw=function(y){_.aw(y,void 0,"voice_assistant")};var Nj=function(){t2.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.p(Nj,t2);Nj.prototype.isSupported=function(){return C6P()};
Nj.prototype.startAudio=function(){var y=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Gb(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(w){W3d(y,w)};
this.processor.connect(this.audioContext.destination);var W=function(w){y.stream=w;if(!y.audioContext)return _.T2(null);w=y.audioContext.createMediaStreamSource(w);y.processor&&w.connect(y.processor);return _.T2(null)},V={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?W(this.stream):(V=navigator.mediaDevices.getUserMedia(V))?V.then(W).catch(function(w){Eu(y);w.name&&w.name==="NotAllowedError"?y.errorHandler("NO_MICROPHONE_PERMISSION"):(y.errorHandler("AUDIO_ERROR"),y.logError(w));return _.Gb(null)}):(Eu(this),this.errorHandler("AUDIO_ERROR"),_.rQ(Error("ml")));
return t2.prototype.startAudio.call(this)};
Nj.prototype.stopAudio=function(y){y=y===void 0?!0:y;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(W){W.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;t2.prototype.stopAudio.call(this,y)};
Nj.prototype.isOnline=function(){return navigator.onLine};
var W3d=function(y,W){if(y.audioContext)if(window.OfflineAudioContext){var V=y.audioContext.sampleRate,w=W.inputBuffer.getChannelData(0);W=new window.OfflineAudioContext(1,w.length,16E3);for(var t=W.createBuffer(1,w.length,V),F=t.getChannelData(0),I=0,P=0;P<w.length;P++)F[P]=w[P],I+=F[P]*F[P];!y.audioDetected&&Math.sqrt(I/w.length)>.01&&(y.audioDetected=!0,y.audioDetectedHandler());w=W.createBufferSource();w.buffer=t;w.connect(W.destination);w.start(0);W.oncomplete=function(C){C=C.renderedBuffer.getChannelData(0);
for(var d=Math.floor(16384E3/V),L=new Int16Array(d),z=0;z<d;++z)L[z]=Math.max(-1,Math.min(1,C[z]))*32767;br4(y,L.buffer)};
W.startRendering()}else Vw4(y,W)},Vw4=function(y,W){var V=y.audioContext.sampleRate,w=W.inputBuffer.getChannelData(0),t=Math.floor((V+8E3)/16E3);
V=w.length/t;W=new Float32Array(V);for(var F=0;F<V;++F)W[F]=w[F*t];w=new Int16Array(V);for(t=0;t<V;++t)w[t]=Math.max(-1,Math.min(1,W[t]))*32767;br4(y,w.buffer)};var w_4={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var tw4=function(){this.JSC$19748_audioEnabled=!0;this.audioFeedbackHolder={}};
tw4.prototype.isPlaying=function(y){return y.currentTime>0&&!y.paused&&!y.ended&&y.readyState>2};
var F3j=function(y){for(var W=_.N(Object.values(w_4)),V=W.next();!V.done;V=W.next())V=V.value,y.audioFeedbackHolder[V]=new Audio,y.audioFeedbackHolder[V].src="/s/search/audio/"+V+".mp3",y.audioFeedbackHolder[V].load()},IK=function(y,W){if(y.JSC$19748_audioEnabled!==!1&&W in y.audioFeedbackHolder){for(var V=_.N(Object.values(y.audioFeedbackHolder)),w=V.next();!w.done;w=V.next())w=w.value,y.isPlaying(w)&&w.pause();
y.audioFeedbackHolder[W].currentTime=0;y.audioFeedbackHolder[W].play().catch(function(){})}};var Eqj=function(y,W){var V=this;this.store=y;this.service=W;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){V.setState("offline");V.stop()};
this.audioPlayer=new tw4;var w;(w=this.audioPlayer)==null||F3j(w)};
_.E=Eqj.prototype;_.E.getService=function(){return this.service};
_.E.isEnabled=function(){return!!this.service};
_.E.isSupported=function(){var y;return(y=this.service)==null?void 0:y.isSupported()};
_.E.start=function(){var y=this,W,V,w,t,F,I,P,C,d,L,z,c,K;return _.g(function(f){switch(f.nextAddress){case 1:y.store.dispatch(Pwt("",""));if(!navigator.onLine)return y.setState("offline"),f.return();window.addEventListener("offline",y.handleOfflineEvent);y.stream=null;if(!y.permissionsSupported){f.jumpTo(2);break}_.l7(f,3);return f.yield(Naj(y),5);case 5:W=f.yieldResult;if(!W)return(V=y.audioPlayer)==null||IK(V,"failure"),f.return();y.service.stream=y.stream;y.setState("listening");_.E6(f,2);break;
case 3:_.YX(f),y.permissionsSupported=!1;case 2:w={context:_.yxv(_.hf())},w.youtubeAssistantParams={searchParams:{inlineSearchResponse:y.enableInlineSearchResponse}},t=function(U,l){y.store.dispatch(CwP("transcribing"));y.store.dispatch(Pwt(U,l))},F=function(){var U;
(U=y.audioPlayer)==null||IK(U,"open");y.setState("listening")},I=function(){y.setState("transcribing")},P=function(U){y.setErrorState(U)},C=function(U,l){var x;
(x=y.audioPlayer)==null||IK(x,"success");l&&(_.e("kevlar_voice_search_inline_search")&&(y.responseProcessor=_.hs().resolve(_.vBP),y.responseProcessor&&(x=l.navigationAction,U=l.prefetchedSearchResponse,x&&U&&(x=(new _.Rbt).JSC$12982_getStoreKey(x),_.EX(y.responseProcessor,U,x)))),y.JSC$19766_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",l))},d=function(){window.removeEventListener("offline",y.handleOfflineEvent)},L=_.g1t(!1),z=L.Authorization!=null,c=y.enableFirstPartyAuth||
y.enableFPAForSignedInUsers&&z?L:{"X-Goog-Visitor-Id":L["X-Goog-Visitor-Id"]},K={completeHandler:C,
errorHandler:P,listeningHandler:F,audioDetectedHandler:I,stopHandler:d,transcriptionUpdateHandler:t,youtubeAssistantRequest:w,languageCode:Iuv(),additionalHeaders:c,supportsCrossDomainXhr:y.enableFirstPartyAuth||y.enableFPAForSignedInUsers&&z,supportsHttpHeadersOverwriteParam:!y.disableHttpHeadersOverwrite},y.service.start(K),_.B7(f)}})};
_.E.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.E.reset=function(){this.store.dispatch(_.ig({type:"RESET_VOICE_SEARCH_STATE"}))};
_.E.setState=function(y){this.store.dispatch(CwP(y))};
_.E.setErrorState=function(y){switch(y){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var W;(W=this.audioPlayer)==null||IK(W,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Naj(this);else{var V;(V=this.audioPlayer)==null||IK(V,"failure");this.setState("permission-denied")}break;case "ABORTED":var w;(w=this.audioPlayer)==null||IK(w,"no_input");break;default:var t;(t=this.audioPlayer)==
null||IK(t,"no_input");this.setState("timeout")}};
var Naj=function(y){var W,V;return _.g(function(w){switch(w.nextAddress){case 1:return w.yield(navigator.permissions.query({name:"microphone"}),2);case 2:W=w.yieldResult;if(W.state==="granted")return w.return(!0);if(W.state==="denied")return y.setState("permission-denied"),w.return(!1);y.setState("permission");V={audio:{sampleSize:16,channelCount:1},video:!1};_.l7(w,3);return w.yield(navigator.mediaDevices.getUserMedia(V),5);case 5:return y.stream=w.yieldResult,w.return(!0);case 3:return _.YX(w),
y.setState("permission-denied"),w.return(!1)}})},Iuv=function(){var y=_.yC("INNERTUBE_CONTEXT_HL"),W=_.yC("INNERTUBE_CONTEXT_GL");
return y.indexOf("-")>-1?y:y+"-"+W};var gqd=function(y,W,V){Eqj.call(this,W,V);this.JSC$19766_actionRouter=y;this.enableInlineSearchResponse=_.e("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.e("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.e("kevlar_voice_search_enable_fpa_signedin_users")},PV3;
_.p(gqd,Eqj);
var CVd=function(){if(!PV3){var y="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.e("kevlar_voice_search_auth_enabled")||_.e("kevlar_voice_search_use_yt_endpoint")?y="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.e("kevlar_voice_search_use_fp_endpoint")&&(y="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");PV3=
new gqd(_.tL.getInstance(),_.dP(),new Nj(_.yC("VOZ_API_KEY"),y,.5))}return PV3};var Osm=function(y){this.JSC$19770_clientRoot=y;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19770_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)]]));y=_.N(this.eventListeners);for(var W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;V=_.N(V);for(var w=V.next();!w.done;w=V.next()){var t=
_.N(w.value);w=t.next().value;t=t.next().value;W.addEventListener(w,t)}}_.FD(_.tL.getInstance(),this.autonavPauseActionMap,this.JSC$19770_clientRoot)},vqe,dJP=function(y){return _.e("kevlar_autonav_popup_filtering")?(y=_.vW(y))?y.hasAttribute("prevent-autonav"):!0:!0};
_.E=Osm.prototype;_.E.onIronOverlayOpened=function(y){dJP(y)&&(this.autonavPauseReasons.overlayOpen=!0,gG(this))};
_.E.onIronOverlayClosed=function(y){dJP(y)&&(this.autonavPauseReasons.overlayOpen=!1,gG(this))};
_.E.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;gG(this)};
_.E.onYtAutonavPauseBlur=function(){var y=this;_.HU.addJob(function(){y.isInBackground()||(y.autonavPauseReasons.inputBoxFocus=!1,gG(y))},8,0)};
_.E.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;gG(this)};
_.E.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;gG(this)};
_.E.onYtAutonavPauseScroll=function(){var y=_.hs().resolve(_.hn);y.isOnWatch()&&(y=y.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=y.getBoundingClientRect().top<-200,gG(this))};
_.E.onYtAutonavPauseUserEngagement=function(y){var W=this;if(_.e("user_engagement_enable_autoplay_pause_feature")){var V=Number(y.lowEngagementThresholdMs);isNaN(V)||V<=0||y.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.hs().resolve(_.rL),_.es()<V?_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.rtP()?(this.userEngagementCsn=_.Xn(),_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,gG(this)):_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.vnb(Error("nl`"+JSON.stringify(y)))};
_.E.onYtAutonavPausePlayer=function(y){this.autonavPauseReasons.requestedByPlayer=!!y.detail;gG(this)};
_.E.onYtAutonavVisibilityChanged=function(){var y=this,W,V,w;return _.g(function(t){if(t.nextAddress==1)return(W=_.Kn())?t.yield(W.getPlayerPromise(),2):t.return();V=t.yieldResult;w=V.isMuted()||V.getVolume()===0;y.autonavPauseReasons.backgroundAndMute=y.isInBackground()&&w;gG(y);_.B7(t)})};
_.E.onYtAutonavPausePlayerEnded=function(){_.hs().resolve(_.rL);var y=144E5;_.e("user_engagement_enable_autoplay_pause_feature")||_.e("is_part_of_any_user_engagement_experiment")||(y=45E5);this.autonavPauseReasons.longIdle=_.es()>y;L3t(this);gG(this)};
_.E.onYtUserActivity=function(){var y=this;this.autonavPauseReasons.userEngagement&&(_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,gG(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",y.userEngagementCsn);_.Xk()}),this.autonavPauseReasons.youthereLactExperiment=!1,gG(this));
this.autonavPauseReasons.longIdle&&!_.e("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,gG(this))};
_.E.isInBackground=function(){var y=window.document.visibilityState;return!(!y||y==="visible")};
var gG=function(y){for(var W=!1,V=_.N(Object.values(y.autonavPauseReasons)),w=V.next();!w.done;w=V.next())w=w.value,W=W||w;W?_.en.getInstance().pause(y.autonavPauseReasons):(y=_.en.getInstance(),y.autonavState_==3?(y.setState(2,!1,!1),y.autonavPauseReason_=void 0):y.autonavState_==1&&(y.disabledAutonavPauseReason_=void 0))},L3t=function(y){var W=!1;
if(_.e("enable_autoplay_pause_by_lact")){_.hs().resolve(_.rL);W=_.pB("autoplay_pause_by_lact_sec")*1E3;var V=_.pB("autoplay_pause_by_lact_sampling_fraction");(W=_.es()>=W&&Math.random()<V)&&!_.rtP()&&(_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),W=!1)}W!==y.autonavPauseReasons.youthereLactExperiment&&(y.autonavPauseReasons.youthereLactExperiment=W)&&(y.userEngagementCsn=_.Xn(),_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",y.userEngagementCsn)}));
y.autonavPauseReasons.userEngagement&&_.Jt(_.HU,function(){_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",y.userEngagementCsn)})};
Osm.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.oM("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Xk(),this.autonavPauseReasons.youthereLactExperiment=!1,gG(this));this.autonavPauseReasons.userEngagement&&(_.oM("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,gG(this))};
Osm.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Pk=function(){var y=_.u.apply(this,arguments)||this;y.miniGuideVisible=!1;y.guideOpened=_.e("disable_initial_guide_state_fix")?!1:y.canFitPersistentGuide(y.initialBodyClientWidth);y.guideUserStateOpened=y.getInitialGuideUserStateOpened();y.isFullscreenShorts=!1;y.miniGuideWidthThreshold=_.pB("kevlar_mini_guide_width_threshold",791);y.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");y.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
y.persistentGuideBlockedPagePathRegex=new RegExp(y.persistentGuideBlockedPagesPatterns.join("|"));y.animationTransitionDuration=0;y.lateDataResolver=_.v5();y.initialGuideDataFetchFailed=!1;y.initialLoad=!0;y.guideRenderers=new Set;y.isMouseOverGuide=!1;y.sessionUserManuallyExpandedGuideState=!1;y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return y};
_.p(Pk,_.u);_.E=Pk.prototype;_.E.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.E.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.E.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.E.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.E.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.E.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.E.ready=function(){_.hs().addProvider({provide:_.Fq,useValue:this.hostElement})};
_.E.attached=function(){var y=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Dp(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Dp(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Dp(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Dp(this,this.onYtGuideShow));_.gy(this,function(){y.animationTransitionDuration=200})};
_.E.detached=function(){document.removeEventListener("yt-navigate-finish",_.Dp(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Dp(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Dp(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Dp(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Dp(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Dp(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Dp(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.E.getData=function(){return this.data};
_.E.load=function(){var y=this,W,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=y.lateDataResolver.resolve.bind(y),F.return(y.lateDataResolver.promise);if(window.ytInitialGuideData)return W=_.v5(),W.resolve(window.ytInitialGuideData),F.return(W.promise);w=!1;_.l7(F,2);return F.yield(y.fetchGuideData(),4);case 4:V=F.yieldResult;_.E6(F,3);break;case 2:t=_.YX(F),t.message==="Returned error"&&(w=
!0);case 3:if(V)return F.return(V);y.onYtGuideClose();w||(y.initialGuideDataFetchFailed=!0);return F.return(y.lateDataResolver.promise)}})};
_.E.fetchGuideData=function(){var y=this,W,V,w,t,F,I,P;return _.g(function(C){if(C.nextAddress==1)return W=_.hs(),y.guidePromise||(V=W.resolve(_.QY),y.guidePromise=_.OP(V,P83)),C.yield(y.guidePromise,2);if(C.nextAddress!=3)return w=C.yieldResult,t=W.resolve(_.vu),C.yield(t(),3);(F=C.yieldResult)&&((I=w)==null?void 0:(P=I.responseContext)==null?void 0:P.maxAgeSeconds)!==0&&F.put("service:guide:fallback",new _.qd({innertubeResponse:w}));return C.return(w)})};
_.E.initializeGuideDataIfEmpty=function(){var y=this,W,V;return _.g(function(w){if(w.nextAddress==1){if(!y.initialGuideDataFetchFailed||y.data)return w.return();_.l7(w,2);return w.yield(y.fetchGuideData(),4)}if(w.nextAddress!=2)return(W=w.yieldResult)&&y.lateDataResolver.resolve(W),_.E6(w,0);V=_.YX(w);_.rQ(V);_.B7(w)})};
_.E.initializeGuideData=function(){var y=this,W;return _.g(function(V){switch(V.nextAddress){case 1:return _.S3(uDt(),{mainAppWeb:_.I6()}),_.l7(V,2),V.yield(y.load(),4);case 4:y.data=V.yieldResult;_.E6(V,3);break;case 2:_.YX(V),_.DE(uDt(),"FAILURE");case 3:W=y.data&&y.data.items&&y.data.items.length>0?"SUCCESS":"FAILURE",_.DE(uDt(),W),_.B7(V)}})};
_.E.setGuideData=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1)return W.disabled?t.return():W.data?(y.data=W.data,W.guideRenderers.add(y),t.return()):t.yield(W.initializeGuideData(),2);W.graftGuideToPage();V=_.W4("IS_HOMEPAGE_COLD")?"eop":void 0;_.e("disable_element_pool_populator")?W.setGuideDataAfterInit(y):(w=new _.oY(1,V),_.Kh(w,W.setGuideDataAfterInit.bind(W,y)));_.B7(t)})};
_.E.setGuideDataAfterInit=function(y){y.data=this.data;y.markDirty();this.guideRenderers.add(y);_.Er(function(){_.aw("gle")});
_.gy(this,function(){_.aw("gpe")})};
_.E.graftGuideToPage=function(){if(this.data){var y=this.data&&this.data.trackingParams;y&&(y=_.nD(y),_.uT(_.BC(),y))}};
_.E.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Dp(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.E.onDrawerOpenedChanged=function(y,W){!W.value&&this.guideOpened&&(this.guideOpened=!1)};
_.E.onYtGuideToggle=function(y){var W=this.guideOpened;this.guideOpened=!W;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var V=_.l5();_.xF(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;V.save()}this.updateGuideDrawerElementState();if(this.guideElement){var w;this.guideOpened&&((w=y.detail)==null?0:w.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Dp(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Dp(this,this.onAppDrawerTransitioned))}W||this.initializeGuideDataIfEmpty()};
_.E.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Dp(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ci(this.guideElement)};
_.E.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Dp(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(IE4(this.guideOpened))};
_.E.guidePersistentAndVisibleChanged=function(){_.Kg(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.E.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.ig({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.E.miniGuideVisibleChanged=function(){_.Kg(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.E.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(IE4(this.guideOpened)),this.initialLoad=!1);_.Kg(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.E.activeEndpointChanged=function(){_.Kg(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.E.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.E.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()};
_.E.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var y=this.canFitPersistentGuide(this.cachedClientWidth);y?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=y}this.updateGuideDrawerElementState()};
_.E.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.E.getGuideOpened=function(){return this.guideOpened};
_.E.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.E.getActiveEndpoint=function(){return this.activeEndpoint};
_.E.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.E.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&&_.h1(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.E.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.e("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.E.handleGuideMouseLeave=function(){var y=this;!this.sessionUserManuallyExpandedGuideState&&_.e("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.NM(this,"handleGuideMouseLeave",function(){y.isMouseOverGuide||!y.guideOpened||y.miniGuideVisible||(y.guideOpened=!1,y.updateGuideDrawerElementState())},100))};
_.E.computeGuidePersistentAndVisible=function(){var y=this;_.NM(this,"computeGuidePersistentAndVisible",function(){y.guidePersistentAndVisible=y.guideOpened&&y.guidePersistent;y.guideIsVisibleButNotPersistent=!(!y.guideOpened||y.guidePersistent)})};
_.E.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.E.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.E.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.E.startLoadingWatch=function(){this.closeGuide()};
_.E.startLoadingShorts=function(){_.e("web_hide_guide_on_shorts")&&this.closeGuide()};
_.E.onYtNavigateFinish=function(y,W){if(!_.mU||W){this.activeEndpoint=W.endpoint;this.pageType=W.pageType;this.pageUrl=W.response.url;var V,w;y=(w=_.h((V=W.endpoint)==null?void 0:V.commandMetadata,_.dw))==null?void 0:w.url;!this.pageUrl&&y&&(this.pageUrl=y);_.e("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.E.getVisibleGuideRenderer=function(){for(var y=_.N(this.guideRenderers),W=y.next();!W.done;W=y.next())if(W=W.value,this.miniGuideVisible&&W.is==="ytd-mini-guide-renderer"||this.guideOpened&&W.is==="ytd-guide-renderer")return W;return null};
_.E.markGuideRendererDirty=function(y){if(y){typeof y.markDirty==="function"&&y.markDirty();y=_.N([].concat(_.GC(_.i6(y).children)));for(var W=y.next();!W.done;W=y.next())this.markGuideRendererDirty(W.value)}};
_.E.persistentGuideEnabled=function(y,W){if(!W||y==="watch"||y==="settings"||y==="shorts"&&this.isFullscreenShorts||_.e("reels_web_disable_persistent_guide_shorts")&&y==="shorts")return!1;var V=_.U1(W)||"";return _.e("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(w){return V===w}):!this.persistentGuideBlockedPagePathRegex.test(V)};
_.E.canFitPersistentGuide=function(y){var W=_.pB("kevlar_persistent_guide_width_threshold",1312);return W===-1||_.e("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:y>W};
_.E.canFitMiniGuide=function(y){return this.miniGuideWidthThreshold===-1?!1:y>this.miniGuideWidthThreshold};
_.E.onResize=function(){var y=this;_.NM(this,"calculateGuideState",function(){y.onResizeDebounced()})};
_.E.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.E.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.E.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.E.getInitialGuideUserStateOpened=function(){return _.e("web_force_mini_guide_default")?!1:!_.l5().getFlag(109)};
_.CM.Object.defineProperties(Pk.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.yC("initialBodyClientWidth")||window.innerWidth}}});
Pk.prototype.onResize=Pk.prototype.onResize;Pk.prototype.observeForMiniGuideVisible=Pk.prototype.observeForMiniGuideVisible;Pk.prototype.computeGuidePersistentAndVisible=Pk.prototype.computeGuidePersistentAndVisible;Pk.prototype.cachedClientWidthChanged=Pk.prototype.cachedClientWidthChanged;Pk.prototype.resetGuide=Pk.prototype.resetGuide;Pk.prototype.activeEndpointChanged=Pk.prototype.activeEndpointChanged;Pk.prototype.guideOpenedChanged=Pk.prototype.guideOpenedChanged;
Pk.prototype.miniGuideVisibleChanged=Pk.prototype.miniGuideVisibleChanged;Pk.prototype.guideIsVisibleButNotPersistentChanged=Pk.prototype.guideIsVisibleButNotPersistentChanged;Pk.prototype.guidePersistentAndVisibleChanged=Pk.prototype.guidePersistentAndVisibleChanged;Pk.prototype.onGuideElementChanged=Pk.prototype.onGuideElementChanged;Pk.prototype.onGuidePersistentChanged=Pk.prototype.onGuidePersistentChanged;Pk.prototype.onRenderGuideChanged=Pk.prototype.onRenderGuideChanged;
Pk.prototype.onActiveEndpointChanged=Pk.prototype.onActiveEndpointChanged;Pk.prototype.onMiniGuideVisibleChanged=Pk.prototype.onMiniGuideVisibleChanged;Pk.prototype.onGuideIsVisibleButNotPersistentChanged=Pk.prototype.onGuideIsVisibleButNotPersistentChanged;Pk.prototype.onGuidePersistendAndVisibleChanged=Pk.prototype.onGuidePersistendAndVisibleChanged;_.J([_.m(_.Gm),_.R("design:type",Object)],Pk.prototype,"ironResizableBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Pk.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"disabled",void 0);
_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"guidePersistentAndVisible",void 0);_.J([_.xA("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onGuidePersistendAndVisibleChanged",null);_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"guideIsVisibleButNotPersistent",void 0);
_.J([_.xA("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"miniGuideVisible",void 0);_.J([_.xA("miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onMiniGuideVisibleChanged",null);_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"forceMiniGuideClose",void 0);
_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"activeEndpoint",void 0);_.J([_.xA("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onActiveEndpointChanged",null);_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"renderGuide",void 0);_.J([_.xA("renderGuide"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onRenderGuideChanged",null);
_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"guideOpened",void 0);_.J([_.q(),_.R("design:type",Boolean)],Pk.prototype,"guidePersistent",void 0);_.J([_.xA("guidePersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onGuidePersistentChanged",null);_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"guideUserStateOpened",void 0);_.J([_.q(),_.R("design:type",String)],Pk.prototype,"pageUrl",void 0);
_.J([_.q(),_.R("design:type",String)],Pk.prototype,"pageType",void 0);_.J([_.q(),_.R("design:type",Number)],Pk.prototype,"cachedClientWidth",void 0);_.J([_.q(),_.R("design:type",Object)],Pk.prototype,"guideElement",void 0);_.J([_.q({selector:_.u0}),_.R("design:type",Object)],Pk.prototype,"isFullscreenShorts",void 0);_.J([_.xA("guideElement"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onGuideElementChanged",null);
_.J([_.xA("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"guidePersistentAndVisibleChanged",null);_.J([_.Jc("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.J([_.xA("miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"miniGuideVisibleChanged",null);_.J([_.Jc("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"guideOpenedChanged",null);_.J([_.xA("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"activeEndpointChanged",null);
_.J([_.Jc("pageUrl"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"resetGuide",null);_.J([_.Jc("cachedClientWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"cachedClientWidthChanged",null);_.J([_.xA("guideOpened","guidePersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"computeGuidePersistentAndVisible",null);
_.J([_.Jc("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"observeForMiniGuideVisible",null);_.J([_.l6("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onResize",null);_.J([_.k({disableElementRegistration:!0,is:"yt-guide-manager"})],Pk);var zRE=_.Y(Pk,"yt-guide-manager",void 0,{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var C_=function(){var y=_.u.apply(this,arguments)||this;y.JSC$19780_keyboardInUse=!1;y.boundHandleCapturedKeydownEvent=function(W){y.handleCapturedKeydownEvent(W)};
return y};
_.p(C_,_.u);_.E=C_.prototype;_.E.attached=function(){this.listenToDocument(document)};
_.E.listenToDocument=function(y){y.addEventListener("keydown",_.Dp(this,this.onKeyDownEvent));y.addEventListener("keyup",_.Dp(this,this.onKeyUpEvent));y.addEventListener("mousedown",_.Dp(this,this.onMouseDownEvent));_.e("desktop_keyboard_capture_keydown_killswitch")||y.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);y.addEventListener("yt-page-data-updated",_.Dp(this,this.onPageUpdate))};
_.E.detached=function(){this.unlistenFromDocument(document)};
_.E.unlistenFromDocument=function(y){y.removeEventListener("keydown",_.Dp(this,this.onKeyDownEvent));y.removeEventListener("keyup",_.Dp(this,this.onKeyUpEvent));y.removeEventListener("mousedown",_.Dp(this,this.onMouseDownEvent));_.e("desktop_keyboard_capture_keydown_killswitch")||y.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);y.removeEventListener("yt-page-data-updated",_.Dp(this,this.onPageUpdate))};
_.E.ready=function(){_.hs().addProvider({provide:_.MC,useValue:this})};
_.E.isKeyBoardInUse=function(){return this.JSC$19780_keyboardInUse};
_.E.handleCapturedKeydownEvent=function(y){if(y.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(y)};
_.E.onMouseDownEvent=function(){this.JSC$19780_keyboardInUse=!1};
_.E.onPageUpdate=function(){if(_.e("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.e("web_shorts_keyboard_shortcut_usage_log")){_.TL.clear();for(var y=_.N(_.iG),W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;V=_.ad(V);_.TL.set(W,V);_.Fr(_.Xn(),_.Hf(),V)}_.me.clear();y=_.N(_.fP);for(W=y.next();!W.done;W=y.next())V=_.N(W.value),W=V.next().value,V=V.next().value,V=_.ad(V),_.me.set(W,V),_.Fr(_.Xn(),_.Hf(),V);_.EB(_.Xn(),_.Hf(),[].concat(_.GC(_.me.values()),
_.GC(_.TL.values())));_.IB(_.Xn(),[].concat(_.GC(_.me.values()),_.GC(_.TL.values())))}};
_.E.onMiniplayerActiveChange=function(){var y;(y=_.hs().resolve(_.VH).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(y.document):this.unlistenFromDocument(y.document))};
_.E.ignoreKeyEvent=function(y){if(y.ctrlKey||y.altKey)if(_.e("kevlar_macro_markers_keyboard_shortcut")){if(y.keyCode!==37&&y.keyCode!==39)return!0}else return!0;var W=_.O$(y)||[];return _.Zit(W)?!0:y.defaultPrevented?(YM(y.keyCode,y.shiftKey,this.isShortsPage),!0):y.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(y):!1};
_.E.isSpacebarClick=function(y){var W=y||window.event;var V;W.composedPath&&typeof W.composedPath==="function"?V=W.composedPath():V=W.path;V&&V.length?W=V[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W&&y.keyCode===32&&(y=W.tagName==="BUTTON"||W.tagName==="A"||W.tagName==="INPUT",W=(W=W.getAttribute("role"))&&(W==="option"||W==="button"||W.indexOf("menuitem")===0),y||W)?!0:!1};
_.E.onKeyDownEvent=function(y){if(!this.ignoreKeyEvent(y)&&(y.keyCode===191&&(y.shiftKey||y.metaKey?y.repeat!=null&&y.repeat||(this.openHotkeyDialog(),YM(y.keyCode,y.shiftKey,this.isShortsPage)):(this.focusSearchBox(),y.preventDefault())),!y.metaKey)){var W=_.hs().resolve(_.VH);switch(y.keyCode){case 9:this.JSC$19780_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(y);break;case 84:W.pipController.getWindow()&&window.focus();this.toggleTheaterMode(y.keyCode,y.shiftKey);break;case 73:W.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(y.keyCode,y.shiftKey);break;case 70:if(this.isShortsPage&&_.e("web_fullscreen_shorts")){_.yLq();break}this.isMiniplayerActive()?W.pipController.getWindow()&&(W.close(!0),window.focus()):this.passEventToPlayer(y);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(y.keyCode,y.shiftKey):this.closeMiniplayer(y.keyCode,y.shiftKey)||this.passEventToPlayer(y);break;case 13:y.shiftKey&&_.hs().resolve(_.kT).activate(y);break;default:this.passEventToPlayer(y)}}};
_.E.onKeyUpEvent=function(y){if(!this.ignoreKeyEvent(y))if(_.e("web_speedmaster_spacebar_control")&&y.keyCode===32)this.handlePlayerSpaceKey(y,!0);else{var W=this.getPlayerManager();W&&(W=W.getPlayer())&&W.handleGlobalKeyUp(y.keyCode,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code)}};
_.E.getPlayerManager=function(){var y=_.Kn(),W=_.hs().resolve(_.eX(_.hn));return y&&W&&W.isOnWatch()?y:null};
_.E.passEventToPlayer=function(y,W){var V=this,w,t,F,I;return _.g(function(P){if(P.nextAddress==1){if(!_.e("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&V.isMiniplayerActive())w=_.hs().resolve(_.VH).getPlayerElement();else if(V.inlinePreviewIsActive){if(t=_.Kg(V.hostElement,"yt-get-inline-preview-player-action"),(F=t)==null?0:F[0])w=t[0]}else w=_.Kn();return w?P.yield(w.getPlayerPromise(),3):P.jumpTo(0)}I=P.yieldResult;W?I.handleGlobalKeyUp(y.keyCode,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,
y.key,y.code):I.handleGlobalKeyDown(y.keyCode,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code,y.repeat);y.keyCode!==38&&y.keyCode!==40&&YM(y.keyCode,y.shiftKey,V.isShortsPage);_.B7(P)})};
_.E.focusSearchBox=function(){_.h1(this.hostElement,"yt-focus-searchbox")};
_.E.openHotkeyDialog=function(){_.h1(this.hostElement,"yt-open-hotkey-dialog")};
_.E.isMiniplayerActive=function(){return _.hs().resolve(_.VH).isMiniplayerActive()};
_.E.closeMiniplayer=function(y,W){return this.isMiniplayerActive()?(_.hs().resolve(_.VH).close(),YM(y,W,this.isShortsPage),!0):!1};
_.E.toggleTheaterMode=function(y,W){var V=_.W5(_.dP().getState()),w=this.getPlayerManager(),t=_.e("disable_theater_mode_keyboard")||_.W4("START_IN_FULL_WINDOW_MODE");w&&!t&&(V=!V,_.Lg()&&_.e("external_fullscreen")&&(V=!0),_.ow(this.hostElement,"yt-toggle-theater-mode",[V]),YM(y,W,this.isShortsPage))};
_.E.toggleMiniplayer=function(y,W){var V=this.getPlayerManager();if(this.isMiniplayerActive()){var w;((w=_.hs().resolve(_.eX(_.hn)))==null?0:w.isOnWatch())?_.hs().resolve(_.VH).close(!0):_.Xs(_.hs().resolve(_.VH));YM(y,W,this.isShortsPage)}else V&&(_.ow(this.hostElement,"yt-activate-miniplayer-from-watch-action"),YM(y,W,this.isShortsPage))};
_.E.handlePlayerSpaceKey=function(y,W){var V=!!_.Kn()||this.isMiniplayerActive();V=_.e("disable_space_scroll_fix")||V;_.e("global_spacebar_pause")&&!this.isKeyBoardInUse()&&V&&(y.preventDefault(),this.passEventToPlayer(y,W))};
_.E.isPresentingTheaterMode=function(){return _.e("web_watch_enable_tm_esc_key")?_.W5(_.dP().getState())&&!_.Lg():!1};
C_.prototype.onMiniplayerActiveChange=C_.prototype.onMiniplayerActiveChange;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],C_.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],C_.prototype,"ytdReduxBehavior",void 0);_.J([_.q({selector:_.mxj}),_.R("design:type",Boolean)],C_.prototype,"inlinePreviewIsActive",void 0);_.J([_.q({selector:_.gmP}),_.R("design:type",Boolean)],C_.prototype,"isShortsPage",void 0);
_.J([_.q({selector:_.bg}),_.R("design:type",Boolean)],C_.prototype,"miniplayerIsActive",void 0);_.J([_.xA("miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C_.prototype,"onMiniplayerActiveChange",null);_.J([_.k({disableElementRegistration:!0,is:"yt-hotkey-manager"})],C_);_.Y(C_,"yt-hotkey-manager",void 0,{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var Ou=function(){var y=_.u.apply(this,arguments)||this;y.loopStateEntityKey_=null;y.playlistLoopStateEntity_=null;y.isShuffleNextPlaylist=!1;y.PLAYER_EVENTS_=new Map;y.playerListenersSetup_=!1;y.videoSkipJob_=0;y.canAutoAdvance_=!1;y.playerManager_=null;y.TEST_ONLY={};return y};
_.p(Ou,_.u);_.E=Ou.prototype;_.E.ready=function(){_.hs().addProvider({provide:_.wd,useValue:this.hostElement})};
_.E.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_)};
_.E.attached=function(){document.addEventListener("yt-navigate-start",_.Dp(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Dp(this,this.onYtNavigateFinish_))};
_.E.detached=function(){document.removeEventListener("yt-navigate-start",_.Dp(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Dp(this,this.onYtNavigateFinish_))};
_.E.updatePlaylistEventListeners=function(y,W){W&&!this.playerListenersSetup_?(this.playerManager_=y,this.registerPlaylistEventListeners_(y)):!W&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(y))};
_.E.setPlayer=function(y){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=y};
_.E.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.E.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.E.registerPlaylistEventListeners_=function(y){var W=this;y.getPlayerPromise().then(function(V){W.playerListenersSetup_||(W.ytPlayerListenerBehavior.listenToPlayerEvents(V,W.PLAYER_EVENTS_),W.playerListenersSetup_=!0)})};
_.E.removePlaylistEventListeners_=function(y){var W=this;y.getPlayerPromise().then(function(V){W.playerListenersSetup_&&(W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V,W.PLAYER_EVENTS_),W.playerListenersSetup_=!1)})};
_.E.setPlaylistComponent=function(y){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Dp(this,this.onPlaylistYtNavigate_)),y&&(y.data&&this.playlistComponent.data&&y.data.playlistId==this.playlistComponent.data.playlistId?(y.loopOn=this.playlistComponent.loopOn,y.shuffleOn=this.playlistComponent.shuffleOn):(y.loopOn=!1,y.shuffleOn=!1),this.isShuffleNextPlaylist&&(y.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=y;this.playlistComponent.addEventListener("yt-navigate",
_.Dp(this,this.onPlaylistYtNavigate_))};
_.E.setAutoplayRenderer=function(y){this.autoplayData=y};
_.E.setPlaylistData=function(y){this.currentPlaylistData_=y;_.h1(this.hostElement,"yt-playlist-data-updated");_.Gc.isEmpty(y)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(y)};
_.E.setPlayerPlaybackControlData=function(y){this.playerManager_&&this.playerManager_.updatePlayerComponents(y.playlistPanelRenderer)};
_.E.getPlaylistData=function(){return this.currentPlaylistData_};
_.E.getTempData_=function(y,W){if(this.playlistComponent==null)return null;y={};this.playlistComponent.shuffleOn&&(y.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(y.loop_on=this.playlistComponent.loopOn);W&&(y.autonav="1",_.hs().resolve(_.rL),W=_.es(),W>0&&(y.lact=W),this.playerManager_&&(W=this.playerManager_.getPlayer())&&W.shouldSendVisibilityState()&&(W=W.getVisibilityState(),W!=0&&(y.vis=W)));_.e("enable_unknown_lact_fix_on_html5")&&(_.hs().resolve(_.rL),y.lact=
_.es());return y};
_.E.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.E.setLoopStateEntityKey_=function(y){var W;this.loopStateEntityKey_=((W=this.getPlaylistLoopData_(y))==null?void 0:W.playlistLoopStateEntityKey)||null};
_.E.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.E.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.E.skipVideo=function(){var y=this,W=_.e("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||W)W=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.jf(_.HU,function(){y.onPlaylistNext();y.videoSkipJob_=0},W)};
_.E.cancelVideoSkip=function(){this.videoSkipJob_&&(_.HU.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.E.isInBackground_=function(){var y=window.document.visibilityState;return!(!y||y=="visible")};
_.E.onPlaylistIndex_=function(y){this.playlistComponent&&(y=this.playlistComponent.data.contents[y].playlistPanelVideoRenderer.navigationEndpoint,_.h1(this.hostElement,"yt-navigate",{endpoint:y,tempData:this.getTempData_(y)}))};
_.E.onPlayerStateChange_=function(y){if(y=y==0&&this.playlistComponent&&this.canAutoAdvance_)y=_.en.getInstance(),y=!(y.autonavState_===3?y.autonavPauseReason_&&y.autonavPauseReason_.inputBoxFocus===!0:y.autonavState_===1&&y.disabledAutonavPauseReason_&&y.disabledAutonavPauseReason_.inputBoxFocus===!0);y&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.E.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.E.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.E.navigateToAutoplayWatchEndpoint_=function(y,W,V){var w=this.playlistComponent.data.currentIndex,t=this.getNumPlayableVideos_();y=="NORMAL"&&W=="autoplayVideo"&&w+1>=t&&V||!(y=this.getVideoEndpoint_(y,W))||(V=this.getTempData_(y,V),_.h1(this.hostElement,"yt-navigate",{endpoint:y,tempData:V}))};
_.E.getNumPlayableVideos_=function(){for(var y=0,W=_.N(this.playlistComponent.data.contents||[]),V=W.next();!V.done;V=W.next())V.value.playlistPanelVideoRenderer&&(y+=1);return y};
_.E.getVideoEndpoint_=function(y,W){if(this.autoplayData&&this.autoplayData.sets)for(var V=0,w=this.autoplayData.sets.length;V<w;V++){var t=this.autoplayData.sets[V];if(t.mode==y){if(t[W])return t[W];break}}else y=new _.Js("AutoplayData is undefined in playlist manager","Mode: "+y+" endpoint: "+W),_.rQ(y)};
_.E.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.E.onPlaylistYtNavigate_=function(y){if(y.detail.endpoint){y.stopPropagation();var W=y.detail;W.tempData=this.getTempData_(y.detail.endpoint);_.h1(this.hostElement,"yt-navigate",W)}};
_.E.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.E.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.E.playlistLoopStateEntityChanged_=function(y){var W=this,V,w,t;return _.g(function(F){if(F.nextAddress==1){if(!y)return F.return();V=y.state==="PLAYLIST_LOOP_STATE_ONE";return W.playerManager_?F.yield(W.playerManager_.getPlayerPromise(),3):F.jumpTo(2)}F.nextAddress!=2&&(w=F.yieldResult,w.setLoopVideo(V));t=y.state==="PLAYLIST_LOOP_STATE_ALL";W.playlistComponent&&(W.playlistComponent.loopOn=t);_.B7(F)})};
_.E.getPlaylistLoopData_=function(y){var W,V;if(y=y==null?void 0:(W=y.playlistButtons)==null?void 0:(V=W.menuRenderer)==null?void 0:V.topLevelButtons)for(W=_.N(y),V=W.next();!V.done;V=W.next())if(V=V.value,V.playlistLoopButtonRenderer)return V.playlistLoopButtonRenderer};
_.E.getLoopStateCommand_=function(y){var W=this.getPlaylistData(),V;W=((V=this.getPlaylistLoopData_(W))==null?void 0:V.states)||[];var w;y=(w=_.h(W[y?1:2],_.TFm))==null?void 0:w.button;var t;return(t=_.h(y,_.wz))==null?void 0:t.command};
_.E.onPlayerLoopChange_=function(y){this.playlistLoopStateEntity_&&(y?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(y=this.getLoopStateCommand_(y))&&this.ytComponentBehavior.resolveCommand(y)};
_.E.onSleepTimerSettingsChanged_=function(y){this.canAutoAdvance_=y!=="End of video"};
Ou.prototype.onPlaylistLoopStateEntityChanged=Ou.prototype.onPlaylistLoopStateEntityChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ou.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],Ou.prototype,"ytPlayerListenerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Ou.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ou.prototype,"loopStateEntityKey_",void 0);
_.J([_.q({selectorArgs:["loopStateEntityKey_"],selector:_.UQa}),_.R("design:type",Object)],Ou.prototype,"playlistLoopStateEntity_",void 0);_.J([_.xA("playlistLoopStateEntity_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ou.prototype,"onPlaylistLoopStateEntityChanged",null);_.J([_.k({disableElementRegistration:!0,is:"yt-playlist-manager"})],Ou);_.Y(Ou,"yt-playlist-manager",void 0,{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var cjt,eRd=function(){if(cjt!==void 0)return cjt;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return cjt=y};var vk=function(){var y=_.u.apply(this,arguments)||this;y.lastCallback=null;y.getAccountLinkPromises={};y.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);y.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return y};
_.p(vk,_.u);_.E=vk.prototype;_.E.getLocation=function(){return window.location.href};
_.E.getCompletionUrl=function(){return _.Cg(this.getLocation())};
_.E.containsRedirectState=function(y){return(y=_.Hm(_.IFz(y)))?(new URLSearchParams(y)).get("redirect_state")!==null:!1};
_.E.createGalConfig=function(y,W){var V=new SX3;y=V=W?this.getPopupOrRedirectSetting(V,_.yC("LINK_API_KEY"),_.yC("LINK_API_KEY_REDIRECT"),y):DWj(V,_.yC("LINK_API_KEY"));y.authUser=_.yC("SESSION_INDEX")||0;y.supportedFlows=new Set([4]);return y.build()};
_.E.getPopupOrRedirectSetting=function(y,W,V,w){this.isGalInteractionPopupMode(w)?(y.interactionMode=0,y=DWj(y,W)):(y.interactionMode=1,W=this.getCompletionUrl(),y.completionUrl=W,y=DWj(y,V));return y};
_.E.isGalInteractionPopupMode=function(y){if(this.redirectModeProviderAllowlist.has(y))switch(y){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.E.getStatusEntityKeyForProviderId=function(y){return _.qK(y+":all","accountLinkStatusEntity")};
_.E.findNestedPropValue=function(y,W){var V=!1,w=null;JSON.stringify(y,function(t,F){V||t!==W||(V=!0,w=F);return V?null:F});
return w};
_.E.findAccountLinkButtonViewModel=function(y,W){var V=null,w=!1;JSON.stringify(y,function(t,F){w||F.accountLinkStatusEntityKey!==W||F.accountLinkStatusSecondaryEntityKey||(w=!0,V=F);return w?null:F});
return V};
_.E.executeLinkingSuccessOrFailureCommands=function(y,W,V){var w=null,t;(W==null?0:(t=W.url)==null?0:t.includes("account_sharing"))?w=W==null?void 0:W.response:w=W==null?void 0:W.response;(W=this.findAccountLinkButtonViewModel(w,y))?(y=V?this.findNestedPropValue(W,"onSuccessCommand"):this.findNestedPropValue(W,"onFailureCommand"))?_.M8([y],this.hostElement):_.FU(Error("ol")):_.FU(Error("pl`"+y))};
_.E.handleInitializeRequest=function(y,W){var V=this,w=yzj(this.createGalConfig(y,!0));this.containsRedirectState(this.getLocation())?G2q(y,w.config,w.galService).then(function(t){var F=V.getStatusEntityKeyForProviderId(y);if(t.statusCode===1)W&&V.executeLinkingSuccessOrFailureCommands(F,W,!0),t=V.getLocation().indexOf("#"),t!==-1&&window.history.pushState(null,"",V.getLocation().substring(0,t));else return W&&V.executeLinkingSuccessOrFailureCommands(F,W,!1),Promise.reject(Error(t.statusMessage))}).catch(function(t){_.rQ(t);
_.Hp("gamingAccountLinkStatusChanged",{serviceId:y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(t)}):this.getAccountLinkPromises[y]=w.startLinkingSession({serviceId:y})};
_.E.handleAccountLinkCommand=function(y){_.h(y,eYu)&&this.handleLinkRequest(_.h(y,eYu))};
_.E.handleLinkRequest=function(y){var W=this,V=y.thirdPartyId;if(V)if(this.isGalInteractionPopupMode(V)){var w=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",y.onFailureCommand)},t=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",y.onSuccessCommand)};
this.lastCallback=t;this.getAccountLinkPromises[V].then(function(F){CQv(F).then(function(I){I.statusCode===1?t():w()})}).catch(function(){w()})}else this.getAccountLinkPromises[V].then(function(F){CQv(F).then(function(I){if(I.statusCode!==1)return Promise.reject(Error(I.statusMessage))})}).catch(function(F){_.rQ(F);
_.Hp("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(F)})};
_.E.closeAndFire=function(y,W){_.ow(this.hostElement,"yt-close-popup-action",[y]);W&&_.M8([W],this.hostElement)};
_.E.handleAccountUnlinkCommand=function(y){_.h(y,hYd)&&this.handleUnlinkRequest(_.h(y,hYd))};
_.E.handleUnlinkRequest=function(y){var W=this,V=y.thirdPartyId;if(V){var w=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",y.onFailureCommand)},t=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",y.onSuccessCommand)};
this.lastCallback=t;var F=yzj(this.createGalConfig(V,!1));this.unlinkUserGal(F,V).then(function(I){I.statusCode===1?t():w()}).catch(function(){w()})}};
_.E.unlinkUserGal=function(y,W){return y.deleteLink(W)};
_.E.handleLogAccountLinkingEventCommand=function(y){_.e("enable_gel_log_commands")&&_.h(y,oKu)&&(y=_.h(y,oKu).event)&&_.Hp("gamingAccountLinkStatusChanged",y)};
_.CM.Object.defineProperties(vk,{template:{configurable:!0,enumerable:!0,get:function(){return eRd()}}});
_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],vk.prototype,"ytOpenPopupBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],vk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-third-party-manager"})],vk);_.Y(vk,"ytd-third-party-manager",function(){return eRd()},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var hRu,oqq=function(){if(hRu!==void 0)return hRu;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hRu=y};var K3P=_.CF(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),dG=function(){var y=_.u.apply(this,arguments)||this;y.currentPage=void 0;y.renderLoadingStateJobId=0;y.updatePageDataJobId=0;y.pageDisposeJobsets=new WeakMap;y.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"};y.shouldApplyLockupToWatchTransition=_.e("web_thumbnail_to_watch_transition");y.shouldApplySlideTransition=_.iC("web_page_transition_type")==="slide"||_.e("enable_plj_landing_page");y.shouldApplyLearningJourneyTransition=_.e("enable_plj_landing_page");y.TEST_ONLY=void 0;return y};
_.p(dG,_.u);_.E=dG.prototype;_.E.ready=function(){var y=_.hs();y.addProvider({provide:_.hn,useValue:this});y.addProvider({provide:_.Fy6,useValue:this})};
_.E.created=function(){this.pagePool=new Hru;this.contextSwitcher=new Etu};
_.E.attached=function(){_.h1(this.hostElement,"attached");var y=_.hs().resolve(_.eX(_.bN));y&&(this.contextSwitcher.JSC$19606_networkService_=y);this.viewTransitionManager=_.hs().resolve(_.Hu);this.setupPageTransitionAnimation()};
_.E.getPageOffset=function(y){return y.getScrollTop()};
_.E.setPageOffset=function(y,W){try{y.setScrollTop(W)}catch(V){}};
_.E.setPageOffsetForNavigation=function(y,W){_.h1(this.hostElement,"yt-navigate-set-page-offset",{page:y,offset:W===void 0?0:W})};
_.E.pauseActiveContext=function(){var y=this.contextSwitcher;y.activeContext_&&y.activeContext_.pause()};
_.E.getModuleNameForType=function(y){return y==="watch"?_.e("kevlar_watch_fixie")?"watchFixie":_.e("kevlar_watch_grid")?"watchGrid":"watchFlexy":y==="shorts"||y==="search"?y:"browse"};
_.E.attachPage=function(y){var W,V=!_.e("pc_is_attached_ks")&&(y==null?void 0:(W=y.polymerController)==null?void 0:W.isAttached);if(!y.isAttached&&!V)try{_.i6(this.hostElement).appendChild(y)}catch(t){var w;_.rQ(new _.Js("Error attaching page element for component",{origin:(w=this.currentPage)==null?void 0:w.is,component:y.is}))}};
_.E.setActivePage=function(y){var W=this,V=!1,w=function(){var t=W.isOnWatch(),F=W.currentPage;if(y)if(y!==W.currentPage){F&&(F.hidden=!0,F.active=!1,F.removeAttribute("role"));W.currentPage=y;var I,P=_.k1((I=W.data)==null?void 0:I.endpoint);F&&_.h1(W.hostElement,"yt-page-type-changed",{oldPageType:F.is,newPageType:y.is,newPageSubtype:P});_.vC().dispatch(_.ig({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:y.is}));_.vC().dispatch(_.ig({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:P||""}));y.hidden=
!1;W.attachPage(y);y.active=!0;y.setAttribute("role","main");F&&W.setPageOffsetForNavigation(y,0);_.e("kevlar_remove_page_dom_on_switch")&&!t&&F&&_.i6(W.hostElement).removeChild(F)}else V=!0;else t=new _.Js("Unable to set active page",F?F.is:"unknown origin",(P=W.data)==null?void 0:P.endpoint),_.ap(t)};
this.shouldRunLockupToWatchTransition(this.currentPage,y)?Myt(this.viewTransitionManager,w):this.shouldRunBrowseTransition(this.currentPage,y)?mU3(this.viewTransitionManager,w):this.shouldRunLearningJourneyTransition(this.currentPage,y)?UUj(this.viewTransitionManager,w):w();return V};
_.E.shouldRunLockupToWatchTransition=function(y,W){return this.shouldApplyLockupToWatchTransition&&(y==null?void 0:y.is)==="ytd-browse"&&this.isWatchPage(W)};
_.E.shouldRunBrowseTransition=function(y,W){return this.shouldApplySlideTransition&&(y==null?void 0:y.is)==="ytd-browse"&&(W==null?void 0:W.is)==="ytd-browse"&&y!==W};
_.E.shouldRunLearningJourneyTransition=function(y,W){return this.shouldApplyLearningJourneyTransition&&(y==null?void 0:y.is)==="ytd-browse"&&((W==null?void 0:W.is)==="ytd-watch-learning-journey"||(W==null?void 0:W.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.E.shouldRunWatchNextLoadedTransition=function(y,W){return this.viewTransitionManager&&y.is==="ytd-watch-flexy"&&W};
_.E.updatePageData=function(y){var W=this,V=this.data;this.updatePageDataJobId&&_.HU.cancelJob(this.updatePageDataJobId);this.data=y;return new _.qN(function(w){var t=function(){y.filler?W.performDataUpdate(y,V):sJj(function(){W.performDataUpdate(y,V)});
var C=_.FS();_.EA(C,"cr")||C.processSignal("cr");w()},F=function(){y&&y.page==="watch"?W.updatePageDataJobId=_.jf(_.HU,t):t()};
if(_.e("kevlar_enable_mss_page_modules_client")&&y){var I=_.hs().resolve(_.td),P=W.getModuleNameForType(y.page);(I=f6j(I,[P]))?I.then(F):F()}else F()})};
_.E.isDownloadsPage=function(y){var W,V;return(y==null?void 0:(W=y.endpoint)==null?void 0:(V=W.browseEndpoint)==null?void 0:V.browseId)==="FEdownloads"};
_.E.setPlayerSyncInterval=function(y){var W;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.hs().resolve(_.mG),2);W=V.yieldResult;W.setUpPositionSyncInterval(y);_.B7(V)})};
_.E.performDataUpdate=function(y,W){_.e("kevlar_early_popup_close")||_.ow(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var V=!y.filler;V&&(_.aw("lps"),_.e("config_age_report_killswitch")||OMu());var w=My(y),t,F=!1;if(_.e("kevlar_remove_page_dom_on_switch")){var I=W&&My(W);w===I&&(t=this.getCurrentPage())}t||(t=wG(this.pagePool,w));V&&Bpe(this.pagePool.elementPoolPopulator,w);V&&!this.renderLoadingStateJobId&&(F=this.setActivePage(t));if(t){I=w==="watch";var P=
w==="shorts",C=w==="learning_journey_watch";_.e("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(t);if(I||P||C)t.playerData=y.playerResponse;if(P)if(_.e("web_enable_delay_shorts_sequence_call")){y.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=y.reelWatchSequenceResponse);t.currentEndpoint=y.endpoint;var d;t.isPreviousPageShorts=!!(W==null?0:(d=W.endpoint)==null?0:d.reelWatchEndpoint);var L,z;y.cachedSequenceParams=((L=y.endpoint)==null?void 0:(z=L.reelWatchEndpoint)==
null?void 0:z.sequenceParams)||y.cachedSequenceParams||(W==null?void 0:W.cachedSequenceParams);var c,K;y.cachedSequenceProvider=((c=y.endpoint)==null?void 0:(K=c.reelWatchEndpoint)==null?void 0:K.sequenceProvider)||y.cachedSequenceProvider||(W==null?void 0:W.cachedSequenceProvider);t.cachedSequenceParams=y.cachedSequenceParams;t.cachedSequenceProvider=y.cachedSequenceProvider}else{y.reelWatchSequenceResponse?t.reelWatchSequenceResponse=y.reelWatchSequenceResponse:y.cachedReelWatchSequenceResponse?
t.reelWatchSequenceResponse=y.cachedReelWatchSequenceResponse:_.e("web_enable_cached_reel_sequence_fix")&&t.cachedReelWatchSequenceResponse&&!t.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse);t.currentEndpoint=y.endpoint;var f;t.isPreviousPageShorts=!!(W==null?0:(f=W.endpoint)==null?0:f.reelWatchEndpoint);y.cachedReelWatchSequenceResponse=y.reelWatchSequenceResponse||y.cachedReelWatchSequenceResponse||(W==null?void 0:W.cachedReelWatchSequenceResponse);t.cachedReelWatchSequenceResponse=
y.cachedReelWatchSequenceResponse}d=this.isDownloadsPage(y);L=this.isDownloadsPage(W);d&&!L?this.setPlayerSyncInterval(6E5):!d&&L&&this.setPlayerSyncInterval();_.e("block_all_player_prefetch_requests")||this.preparePrefetchRequest(y,t,V,I,P,C);uWW(_.hs().resolve(_.VH),W,y);_.eU(_.hs().resolve(_.rL));_.e("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(t);V?(V=typeof t.loadPage,V==="function"?(t.pageContext=NZm(this.contextSwitcher,t,t.data!==y.response),V=function(){t.loadPage(y.response)},
this.shouldApplySlideTransition&&t.is==="ytd-browse"&&F&&(w==="learning"||this.isDifferentBrowseId(y==null?void 0:y.endpoint,W==null?void 0:W.endpoint))?mU3(this.viewTransitionManager,V):this.shouldRunWatchNextLoadedTransition(t,F)?qZe(this.viewTransitionManager,V):V()):_.GD(new _.Js("b/38014653 ",[w,
t.is,t.nodeName,V,t.isAttached,W&&My(W),this.hostElement.children.length])),_.aw("pdl")):(t.hidden=!0,y.response.filler=!0,t.data=y.response,this.attachPage(t));_.h1(this.hostElement,"yt-page-data-updated",{pageType:w})}_.Jt(_.HU,function(){_.e("logging_avoid_blocking_during_navigation")&&_.YUj().transition("none");var U=pSC(),l=t;if(y){var x=HOW(y),B=X9P(y),r;a:{if(y.playerResponse){var H=y.playerResponse,a;if((r=H.auxiliaryUi)==null?0:(a=r.messageRenderers)==null?0:a.upsellDialogRenderer){r=H.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(y.response&&(r=y.response,(H=r.overlay)==null?0:H.upsellDialogRenderer)){r=r.overlay.upsellDialogRenderer;break a}r=void 0}var b;var Fv;a=(b=y.playerResponse)==null?void 0:(Fv=b.auxiliaryUi)==null?void 0:Fv.messageRenderers;b=(a==null?void 0:a.enforcementMessageViewModel)||(a==null?void 0:a.bkaEnforcementMessageViewModel);b=(b==null?void 0:b.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?b:void 0;var Py;a:{if(y.response&&(Fv=y.response,(Py=Fv.overlay)==null?0:
Py.commandWrapperPromoRenderer)){Py=Fv.overlay.commandWrapperPromoRenderer;break a}Py=void 0}KOd(U,x,B,r,b,Py,l)}})};
_.E.preparePrefetchRequest=function(y,W,V,w,t,F){var I,P,C,d,L,z,c,K,f,U,l,x,B,r,H;return _.g(function(a){if(a.nextAddress==1)return!V||!(w||t||F)||_.e("kevlar_disable_background_prefetch")&&_.wi(_.D2y)()===0?a.return():(I=_.oJ(W))?a.yield(I.getPlayerPromise(),2):a.return();P=a.yieldResult;C=_.hs().resolve(_.eX(_.bN));if(!C)return a.return();if(t)return d=_.hD(_.Rb),X5j(d,(L=y.endpoint)==null?void 0:L.reelWatchEndpoint,W.reelWatchSequenceResponse,P,C),a.return();K=(z=y.response)==null?void 0:(c=z.responseContext)==
null?void 0:c.webResponseContextExtensionData;if(!K)return a.return();B=(f=y.response)==null?void 0:(U=f.contents)==null?void 0:(l=U.twoColumnWatchNextResults)==null?void 0:(x=l.autoplay)==null?void 0:x.autoplay;r=_.hs().resolve(_.wd);H=_.hD(_.Rb);a1P(H,K,P,C,r,B);_.B7(a)})};
_.E.movePlayerToWatch=function(y){var W=this,V,w;return _.g(function(t){V=wG(W.pagePool,"watch");w=V.getPlayerContainer();y.appendTo(w);_.B7(t)})};
_.E.movePlayerToShorts=function(y){var W=this,V,w,t;return _.g(function(F){V=wG(W.pagePool,"shorts");w=V.getPlayerContainer();(t=y)==null||t.appendTo(w,void 0,!0);_.B7(F)})};
_.E.getPlayerFromWatch=function(){var y=wG(this.pagePool,"watch");return _.oJ(y)};
_.E.getPlayerFromShorts=function(){var y=wG(this.pagePool,"shorts");return _.oJ(y)};
_.E.startLoadingWatch=function(){var y=wG(this.pagePool,"watch");this.renderLoadingStateJobId?(_.HU.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(y)};
_.E.startLoadingShorts=function(){var y=wG(this.pagePool,"shorts");this.setActivePage(y)};
_.E.startLoadingLearningJourney=function(){var y=wG(this.pagePool,"learning_journey_watch");this.setActivePage(y)};
_.E.getCurrentPage=function(){return this.currentPage};
_.E.getDestinationPageType=function(){return this.destinationPageType};
_.E.getCurrentData=function(){return this.data};
_.E.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.E.isOnShorts=function(){var y;return((y=this.currentPage)==null?void 0:y.is)==="ytd-shorts"};
_.E.isWatchPage=function(y){return!!y&&(y.is==="ytd-watch-flexy"||y.is==="ytd-watch-fixie"||y.is==="ytd-watch-grid")};
_.E.preparePage=function(y,W){var V=this,w=function(){var I=V.pagePool.preparePage(y,V.currentPage,W);I&&V.attachPage(I)},t=function(I){_.bb(I,W);
_.rQ(I)};
if(_.e("kevlar_enable_mss_page_modules_client")){var F=this.getModuleNameForType(y);if(F=f6j(_.hs().resolve(_.td),[F])){F.then(w.bind(this)).catch(t.bind(this));return}}try{w()}catch(I){t(I)}};
_.E.lazyPrepareCriticalPages=function(y,W){y=_.k1(W)||y;_.e("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(y).then(this.maybePrepareWatchPage.bind(this,y)):this.maybePrepareWatchPage(y)};
_.E.maybePrepareWatchPage=function(y){y!=="watch"&&_.Jt(_.HU,this.preparePage.bind(this,"watch"))};
_.E.downloadPageModules=function(y){y=this.getModuleNameForType(y);var W=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);W.delete(y);var V=_.hs().resolve(_.td);V.JSC$18362_loadModules(y);return V.JSC$18362_loadModules.apply(V,_.GC(W))};
_.E.renderPageLoadingState=function(y,W){this.preparePage(y,W);var V=wG(this.pagePool,y);V.loadingData&&(V.loadingData.endpoint=W);V.loading=!0;this.setActivePage(V);y!=="watch"&&y!=="learning_journey_watch"||_.h1(this.hostElement,"yt-guide-close")};
_.E.prepareForNavigation=function(y,W){var V=this;if(this.currentPage&&this.data){var w=_.k1(W)||y;this.destinationPageType=w;My(this.data)==w&&_.h1(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((y==="watch"||y==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.HU.cancelJob(this.renderLoadingStateJobId);_.hs().resolve(_.VH).deactivate(W);var t=this.data;this.renderLoadingStateJobId=_.b8(_.HU,function(){if(V.data!=
t){var F=wG(V.pagePool,y);V.setActivePage(F)}else V.renderPageLoadingState(y,W);V.renderLoadingStateJobId=0},150)}};
_.E.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var y=new _.oY(1);this.currentPage.pageDisposeJobs.forEach(function(W){_.Kh(y,W)});
this.pageDisposeJobsets.set(this.currentPage,y)}};
_.E.flushPageDisposeJobset=function(y){var W=this.pageDisposeJobsets.get(y);W&&(W.flushJobs(),this.pageDisposeJobsets.delete(y))};
_.E.onYtStopOldPlayer=function(y,W){W=W===void 0?!1:W;var V,w=_.fB("kevlar_new_stop_old_player_logic_pages");if(_.e("kevlar_check_current_page_on_stop_old_player")&&(w.length===0||this.currentPage&&w.includes(this.currentPage.is)))if(this.data&&(V=My(this.data)),My(y)===V&&this.currentPage&&My(this.currentPage.data)!==V)var t=_.oJ(this.currentPage);else V=My(this.data),t=wG(this.pagePool,V),t=_.oJ(t);else this.data&&(V=My(this.data),t=wG(this.pagePool,V),t=_.oJ(t));if(t)if(y=My(y),w=wG(this.pagePool,
y),w=_.oJ(w),t==w)W&&!_.e("kevlar_disable_preemptive_player_reset")&&t.resetForNewPlayback();else if(W=V==="watch"&&y!=="watch",!W||y==="shorts"||_.cj2()&&!Eke(this.data)&&y!=="yts-products"&&y!="mini_app"&&y!="playables")V=_.hs().resolve(_.VH),W&&V.isMiniplayerActive()&&V.pipController.getWindow()||t.stop()};
_.E.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var y=_.pB("web_page_transition_exit_ms"),W=_.pB("web_page_transition_wait_ms"),V=_.pB("web_page_transition_enter_ms");if(!isNaN(y)||!isNaN(W)||!isNaN(V))if(y=vk3(K3P,y,W,V))W=document.createElement("style"),W.textContent=_.r_j(y),document.head.appendChild(W)}};
_.E.isDifferentBrowseId=function(y,W){y=_.h(y,_.sT);W=_.h(W,_.sT);return(y==null?void 0:y.browseId)!==(W==null?void 0:W.browseId)};
_.CM.Object.defineProperties(dG,{template:{configurable:!0,enumerable:!0,get:function(){return oqq()}}});
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],dG.prototype,"ytActionHandlerBehavior",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-page-manager"})],dG);_.Y(dG,"ytd-page-manager",function(){return oqq()},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var L_=function(y,W,V){V=V===void 0?!1:V;_.Ru.call(this);this.draggableElement=y;this.callbacks=W;this.allowClicks=V;this.dragOccurred=!1;this.internalDragger=new _.Ws(this.draggableElement);this.dragDelay=new _.dy(this.delayedDrag.bind(this));p_W(this);this.allowClicks&&(_.OAK(this.internalDragger,5),y.addEventListener("click",_.Dp(this,this.validateClick),{capture:!0}))};
_.p(L_,_.Ru);var p_W=function(y){_.XZ(y.internalDragger,"earlycancel",function(){y.allowClicks&&(y.dragOccurred=!1)});
_.XZ(y.internalDragger,"start",function(W){var V,w;(w=(V=y.callbacks).onStartDrag)==null||w.call(V,W);!W.defaultPrevented&&y.allowClicks&&(y.dragOccurred=!0)});
_.XZ(y.internalDragger,"beforedrag",function(W){W.preventDefault();y.lastOffset=new _.bj(W.clientX-y.internalDragger.startX,W.clientY-y.internalDragger.startY);y.dragDelay.start()});
_.XZ(y.internalDragger,"end",function(){y.dragDelay.stop();var W,V;(V=(W=y.callbacks).onEndDrag)==null||V.call(W);y.lastOffset=void 0})};
L_.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
L_.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Dp(this,this.validateClick),{capture:!0})};
L_.prototype.validateClick=function(y){this.dragOccurred&&(this.dragOccurred=!1,y.stopPropagation(),y.preventDefault())};var zB=function(y,W){_.Ru.call(this);this.JSC$19803_resizeContainer=y;this.callbacks=W;this.aspectRatio=16/9;this.JSC$19803_resizers=[];y=_.N(this.JSC$19803_resizeContainer.children);for(W=y.next();!W.done;W=y.next())isd(this,W.value)};
_.p(zB,_.Ru);zB.prototype.disposeInternal=function(){for(var y=_.N(this.JSC$19803_resizers),W=y.next();!W.done;W=y.next())W.value.dispose();y=_.N(this.JSC$19803_resizeContainer.children);for(W=y.next();!W.done;W=y.next())W.value.setAttribute("disabled","");this.JSC$19803_resizers.length=0};
zB.prototype.setSize=function(y){this.currentMiniplayerSize=y};
zB.prototype.setAspectRatio=function(y){this.aspectRatio=y};
zB.prototype.update=function(y,W){for(var V=_.N(this.JSC$19803_resizeContainer.children),w=V.next();!w.done;w=V.next()){w=w.value;var t=w.getAttribute("alignment");_.mg(w,"disabled",t===y||t===W)}};
var isd=function(y,W){var V=W.getAttribute("alignment"),w=new L_(W,{onStartDrag:function(t){if(W.hasAttribute("disabled"))t.preventDefault();else{y.dragStartSize=y.currentMiniplayerSize;var F,I;(I=(F=y.callbacks).onStartResize)==null||I.call(F)}},
onDrag:function(t){if(y.dragStartSize){V!=="north"&&V!=="west"||t.scale(-1);var F=V==="north"||V==="south";t=F?t.y:t.x;F&&y.aspectRatio>=1?t*=y.aspectRatio:!F&&y.aspectRatio<1&&(t/=y.aspectRatio);y.callbacks.onResize(y.dragStartSize+t)}}});
y.JSC$19803_resizers.push(w)};var fuE;var Tat=_.eY(function(y){var W=_.I0("yt-draggable"),V=y.onDrag,w=y.onDragStart,t=y.onDragEnd,F=_.zb(y,{allowClicks:!1,dragThreshold:5}),I=F.dragThreshold,P=F.allowClicks;y=F.children;F=F.className;var C=void 0,d=void 0,L=new _.bj(0,0),z=!1;_.a8(function(){C=new _.Ws(W.value);d=new _.dy(K);c(C,d);if(P()){_.OAK(C,I());var U;(U=W.value)==null||U.addEventListener("click",f,{capture:!0})}_.XT(function(){var l;(l=C)==null||l.dispose();if(P()){var x;(x=W.value)==null||x.removeEventListener("click",f,{capture:!0})}})});
var c=function(U,l){_.XZ(U,"earlycancel",function(){P()&&(z=!1)});
_.XZ(U,"start",function(x){w==null||w(x);x.defaultPrevented||P()&&(z=!0)});
_.XZ(U,"beforedrag",function(x){C&&d&&(x.preventDefault(),L=new _.bj(x.clientX-C.startX,x.clientY-C.startY),d.start())});
_.XZ(U,"end",function(){l.stop();t==null||t();L=new _.bj(0,0)})},K=function(){L&&V(L)},f=function(U){z&&(z=!1,U.stopPropagation(),U.preventDefault())};
return _.O("yt-draggable",{el:W,class:_.kS("ytDraggableComponentHost",F)},y)},"Bg");var mJj=_.eY(function(y){var W=_.N(_.M1(0,void 0,"CvAwBd")),V=W.next().value,w=W.next().value;W=function(t){var F={},I={};return _.O(Tat,{className:_.kS("ytdMiniplayerComponentResizer",(F.ytdMiniplayerComponentResizerDisabled=function(){return t===y.horizontalAlignment()||t===y.verticalAlignment()},F.ytdMiniplayerComponentResizerNorth=t==="north",F.ytdMiniplayerComponentResizerEast=t==="east",F.ytdMiniplayerComponentResizerSouth=t==="south",F.ytdMiniplayerComponentResizerWest=t==="west",F)),
onDragStart:function(){w(y.currentMiniplayerSize());if(y.onResizeStart)y.onResizeStart()},
onDrag:function(P){t!=="north"&&t!=="west"||P.scale(-1);var C;P=(C=t==="north"||t==="south")?P.y:P.x;var d=y.currentAspectRatio();C&&d>=1?P*=d:!C&&d<1&&(P/=d);C=P;y.onResize(V()+C)}},_.O("div",{class:_.kS("ytdMiniplayerComponentResizerCorner",(I.ytdMiniplayerComponentResizerNorthCorner=t==="north",I.ytdMiniplayerComponentResizerEastCorner=t==="east",I.ytdMiniplayerComponentResizerSouthCorner=t==="south",I.ytdMiniplayerComponentResizerWestCorner=t==="west",I))}))};
return _.O("div",{class:"ytdMiniplayerComponentResizers"},W("north"),W("east"),W("south"),W("west"))},"Cg");var Mwj=16/9,q_E=_.eY(function(){var y=_.I0("ytd-miniplayer"),W=_.N(_.M1(new _.YY(NaN,NaN),void 0,"GNXZTe")),V=W.next().value,w=W.next().value;W=_.N(_.M1(!1,void 0,"XqI9xc"));var t=W.next().value,F=W.next().value;W=_.N(_.M1(!1,void 0,"k3iLGe"));var I=W.next().value,P=W.next().value;W=_.N(_.M1(!1,void 0,"ApjQ9b"));var C=W.next().value,d=W.next().value;W=_.N(_.M1(!1,void 0,"PzlhGe"));var L=W.next().value,z=W.next().value;W=_.N(_.M1(!1,void 0,"pm6fl"));var c=W.next().value,K=W.next().value;W=_.N(_.M1(!1,
void 0,"xQrL1e"));var f=W.next().value,U=W.next().value;W=_.N(_.M1(Mwj,void 0,"NcrWZb"));var l=W.next().value,x=W.next().value,B=_.N(_.M1(!1,void 0,"e5rxBc"));W=B.next().value;var r=B.next().value;B=_.N(_.M1(!1,void 0,"uZtCde"));var H=B.next().value,a=B.next().value;B=_.N(_.M1(void 0,void 0,"wKFvEe"));var b=B.next().value,Fv=B.next().value;B=_.N(_.M1(_.yC("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var Py=B.next().value,du=B.next().value;B=_.N(_.M1("south",void 0,"QXcssb"));var mL=B.next().value,
un=B.next().value;B=_.N(_.M1(400,void 0,"Fr8gSb"));var hv=B.next().value,$P=B.next().value,sz=_.hs().resolve(_.VH).miniplayerPropSignalMap[0],Wz=sz.data,mf=sz.externalPlaylistData;B=sz.toastData;var OE=sz.playabilityStatus,Qj=sz.isReadyToResume,Kq=sz.isDisabled,zR=sz.watchWhile,l2=sz.playerVe,lt=sz.expandVe,yu=sz.closeVe,Na=sz.readyToResumeVe,F6=sz.readyToResumeCloseVe,TR=sz.repositionVe,eP=sz.resizeVe;sz=_.N(_.Jl(Qj));var hA=sz.next().value,jQ=sz.next().value,Fy=!1,Wd=!1,Pz;_.a8(function(){w(_.B9());
y.value.addEventListener("animationend",function(GR){GR.target===y.value&&(K(!1),U(!1))});
dg3(y.value)});
_.NT("yt-window-resized",function(GR){GR&&w(GR)});
var b2=function(){Pz&&x(Pz.getVideoAspectRatio())},vd=function(){if(Pz){var GR=Pz.getPlayerState()===1;
hA()&&GR&&jQ(!1)}},Mr=function(){var GR=lt();
if(GR){var ne=_.Xn(3);ne&&_.PE(ne,GR)}},u2=function(){var GR=yu(),ne=F6();
GR&&_.PE(_.Xn(3),GR);Qj()&&ne&&_.PE(_.Xn(3),ne)};
_.NT("yt-activate-miniplayer",function(GR){var ne;return _.g(function(FM){if(FM.nextAddress==1)return t()?FM.return():FM.yield((ne=_.hs().resolve(_.VH).getPlayerElement())==null?void 0:ne.getPlayerPromise(),2);Pz=FM.yieldResult;if(!Pz)return FM.return();!H()&&_.e("kevlar_watch_while_v2")&&(un(GR&&!_.e("kevlar_watch_while_bottom_align")?"north":"south"),du(_.yC("HTML_DIR")==="rtl"?"west":"east"));var Ex=Pz;Ex.addEventListener("onVideoDataChange",b2);Ex.addEventListener("onStateChange",vd);Ex.addEventListener("onExpandMiniplayer",
Mr);Ex.addEventListener("onCloseMiniplayer",u2);x(Pz.getVideoAspectRatio());F(!0);O6t()||K(!0);_.B7(FM)})});
_.NT("yt-deactivate-miniplayer",function(GR){return _.g(function(ne){if(!t())return ne.return();F(!1);jQ(!1);U(GR);z(!1);P(!1);if(Pz){var FM=Pz;FM.removeEventListener("onVideoDataChange",b2);FM.removeEventListener("onStateChange",vd);FM.removeEventListener("onExpandMiniplayer",Mr);FM.removeEventListener("onCloseMiniplayer",u2)}O6t()||K(!0);_.B7(ne)})});
var ov=function(){return!(zR()&&_.e("kevlar_watch_while_modern"))},v7=function(){var GR;
return!((GR=mf())==null||!GR.contents)},Ce=function(){var GR=hv();
var ne=V();ne=Math.min(Math.min(ne.width,ne.height)-32,720);var FM=l(),Ex=ov(),BM=v7()&&I(),qG=Math.min(GR,ne);GR=new _.YY(192,Ex?116:192);FM=H5t(new _.YY(BM?Mwj:FM,1),new _.YY(qG,Ex?qG-76:qG));GR.width<=FM.width&&GR.height<=FM.height||(nSW(FM,GR),FM.width=Math.min(FM.width,ne),FM.height=Math.min(FM.height,ne));return new _.YY(FM.width,_.QW(192,FM.height+hkE(Ex,BM),720))},MG=function(){var GR=Ce(),ne=ov(),FM=v7()&&I();
return new _.YY(GR.width,GR.height-hkE(ne,FM))},b5=function(){var GR=function(ne){ne.target===y.value&&L()&&(z(!1),y.value.removeEventListener("transitionend",GR))};
O6t()||(y.value.addEventListener("transitionend",GR),z(!0));P(!I())};
_.H1(function(){var GR=l2(),ne=_.Xn(3),FM=_.Hf(3);if(ne&&FM&&GR){_.Fr(ne,FM,GR);FM=TR();var Ex=eP(),BM=lt(),qG=yu(),bh=F6();BM&&qG&&bh&&(_.EB(ne,GR,[BM,qG,bh]),_.IB(ne,[BM,qG]));FM&&Ex&&_.EB(ne,GR,[FM,Ex])}},"Snz6Ld");
_.H1(function(){var GR=Na();if(GR){var ne=_.Xn(0),FM=_.Hf(0);ne&&FM&&(_.Fr(ne,FM,GR),_.IB(ne,[GR]))}},"X1FpHd");
sz={};return _.O("ytd-miniplayer",{el:y,class:_.kS("ytdMiniplayerComponentHost",(sz.ytdMiniplayerComponentVisible=function(){return t()||c()},sz.ytdMiniplayerComponentAnimatingSnap=C,sz.ytdMiniplayerComponentAnimatingPlaylistExpand=L,sz.ytdMiniplayerComponentAnimatingFade=c,sz),function(){if(c()){var GR=mL();
var ne=t(),FM=f();GR=ne?GR==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":FM?GR==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":GR==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else GR="";return GR}),
style:_.Rd({top:function(){return mL()==="north"?"16px":""},
right:function(){return Py()==="east"?"16px":""},
bottom:function(){return mL()==="south"?"16px":""},
left:function(){return Py()==="west"?"16px":""},
width:function(){return Ce().width+"px"},
height:function(){return Ce().height+"px"},
transform:function(){var GR=b();return GR?"translate("+GR.x+"px, "+GR.y+"px)":""}})},_.O("div",{class:"ytdMiniplayerComponentContent"},_.O(Tat,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(GR){var ne=eke(Py(),mL(),V(),Ce(),b()),FM=MG();Math.abs(GR.clientY-(ne.y+FM.height))>15?(r(!0),GR=_.Xn(3),ne=TR(),Fy||(Fy=!0,GR&&ne&&_.IB(GR,[ne])),GR&&ne&&_.PE(GR,ne)):GR.preventDefault()},
onDrag:function(GR){Fv(GR)},
onDragEnd:function(){var GR=Lg3(eke(Py(),mL(),V(),Ce(),b()),V(),Ce()),ne=ccd(Py(),mL(),V(),Ce()),FM=ccd(GR.horizontalAlignment,GR.verticalAlignment,V(),Ce());FM=new _.bj(FM.x-ne.x,FM.y-ne.y);var Ex;ne=ne.y+(((Ex=b())==null?void 0:Ex.y)||0)+Ce().height/2;var BM=function(){Py()===GR.horizontalAlignment&&mL()===GR.verticalAlignment||a(!0);du(GR.horizontalAlignment);un(GR.verticalAlignment);Fv(void 0)},qG=function(bh){bh.target===y.value&&C()&&(d(!1),BM(),y.value.removeEventListener("transitionend",qG))};
r(!1);mL()==="south"&&ne>V().height?(BM(),_.hs().resolve(_.VH).close()):(y.value.addEventListener("transitionend",qG),d(!0),Fv(FM))}},_.O(_.v,{cond:t,
then:function(){return _.O(_.oXj,{isDisabled:Kq,playabilityStatus:OE,size:MG})}}),_.O(_.v,{cond:ov,
then:function(){return _.O(_.e83,{isReadyToResume:hA,data:Wz,expanded:I,onExpandClick:b5,playlistData:mf})}}),_.O(_.v,{cond:W,
then:function(){return _.O("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.O(_.v,{cond:function(){return v7()&&I()||L()},
then:function(){return _.O(_.qLE,{className:"ytdMiniplayerComponentPlaylistPanel",data:mf,hideHeaderText:!0,withinMiniplayer:!0})}}),_.O("div",{class:"ytdMiniplayerComponentToast"},_.O(_.KXd,{toastData:B}))),_.O(mJj,{onResize:function(GR){$P(_.QW(192,GR,720))},
onResizeStart:function(){var GR=_.Xn(3),ne=eP();Wd||(Wd=!0,GR&&ne&&_.IB(GR,[ne]));GR&&ne&&_.PE(GR,ne)},
currentAspectRatio:l,currentMiniplayerSize:hv,horizontalAlignment:Py,verticalAlignment:mL}))},"Dg");_.e("ytd_miniplayer_to_wiz")&&_.iF(q_E,"ytd-miniplayer",{});_.iF(_.KXd,"ytd-miniplayer-toast",{props:{toastData:_.vB}});var UJu=16/9,u7e=new _.YY(400,400/UJu),ck=function(){var y=_.u.apply(this,arguments)||this;y.active=!1;y.hasNoData=!1;y.enabled=!1;y.expanded=!1;y.readyToResume=!1;y.isDisabled=!1;y.externalPlaylistData={};y.premiumBadges=[];y.watchWhile=!1;y.playerState=null;y.verticalAttachment="south";y.horizontalAttachment=_.yC("HTML_DIR")==="rtl"?"west":"east";y.isAnimatingFade=!1;y.isAnimatingSnap=!1;y.isAnimatingExpand=!1;y.isDragging=!1;y.playerHidden=!1;y.hasPlaylistData=!1;y.closed=!1;y.expandedClosed=!1;
y.isForReadyToResume=!1;y.watchResponse=null;y.player=null;y.playerVe=null;y.expandVe=null;y.closeVe=null;y.readyToResumeCloseVe=null;y.disabledInitialStateIsPlaying=!1;y.PLAYER_EVENTS=new Map;y.aspectRatio=UJu;y.currentMiniplayerSize=400;y.userSetSize=!1;y.userSetPosition=!1;y.userHasDragged=!1;y.maxMiniplayerSize=720;y.transform=new _.bj(0,0);y.windowDimensions=new _.YY(NaN,NaN);y.dimensions=u7e;y.screenLayer=3;y.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return y};
_.p(ck,_.u);_.E=ck.prototype;_.E.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.E.ready=function(){this.setUpDragging();this.setUpResizing()};
_.E.attached=function(){this.onWindowResized(_.B9());this.hostElement.addEventListener("animationend",_.Dp(this,this.resetFadingAnimation))};
_.E.detached=function(){this.hostElement.removeEventListener("animationend",_.Dp(this,this.resetFadingAnimation))};
_.E.resetFadingAnimation=function(y){y.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.E.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.E.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.E.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var y=_.Xn(this.screenLayer);this.readyToResumeCloseVe&&y&&_.IB(y,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.E.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var y=_.Xn(0),W=_.Hf(0);y&&W&&(_.Fr(y,W,this.readyToResumeVe),_.IB(y,[this.readyToResumeVe]))}};
_.E.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var y=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=y===-1||y===1||y===3)&&this.player.pauseVideo()}};
_.E.activate=function(y,W){W=W===void 0?!1:W;var V=this,w;return _.g(function(t){if(t.nextAddress==1)return V.setInitialActivatePositioning(W),V.enabled=!0,V.active=!0,V.expanded=!1,V.closed=!1,V.expandedClosed=!1,V.watchWhileHidden||(V.isAnimatingFade=!0),_.hs().resolve(_.wd).setPlaylistComponent(V.JSC$19814_playlistPanel),y.appendTo(V.playerContainer),t.yield(y.getPlayerPromise(),2);w=t.yieldResult;w.setSizeStyle(!1,!0);V.ytPlayerListenerBehavior.listenToPlayerEvents(w,V.PLAYER_EVENTS);V.player=
w;V.watchWhile&&_.e("kevlar_watch_while_minimum_size")&&V.setMiniplayerSize(192);V.setAspectRatio(V.player.getVideoAspectRatio());V.onIsDisabledChanged();_.B7(t)})};
_.E.setInitialActivatePositioning=function(y){if(!this.userSetPosition&&_.e("kevlar_watch_while_v2")){this.verticalAttachment=y&&!_.e("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.yC("HTML_DIR")==="rtl"?"west":"east";var W;(W=this.JSC$19814_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)}};
_.E.deactivate=function(y,W){var V=this;return _.g(function(w){if(!V.active)return w.return();y||(V.expanded?V.expandedClosed=!0:V.closed=!0);V.active=!1;V.isForReadyToResume=!1;W&&_.e("kevlar_watch_while_counterfactual")||(V.isAnimatingFade=!0);V.player&&V.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V.player,V.PLAYER_EVENTS);V.player=null;_.B7(w)})};
_.E.onMetadataTap=function(y){this.expandVe&&(y===void 0||y)&&(y=_.Xn(this.screenLayer))&&_.PE(y,this.expandVe);_.Xs(_.hs().resolve(_.VH))};
_.E.onDisabledTap=function(y){y.target===_.i6(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.E.onPlaylistExpandTap=function(y){if(this.hasPlaylistData){y=_.O$(y)||[];y=_.N(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;if(W===this.hostElement)break;if(W.classList&&W.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.E.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Dp(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.E.animatedResizePlaylist=function(y){y.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Dp(this,this.animatedResizePlaylist)))};
_.E.getExpandIcon=function(y){return y?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.E.onPlayerVideoDataChange=function(){var y,W=(y=this.player)==null?void 0:y.getVideoAspectRatio();W&&W!==this.aspectRatio&&this.setAspectRatio(W)};
_.E.setAspectRatio=function(y){if(this.active){this.aspectRatio=y;this.updateDimensionsAndResize();var W;(W=this.JSC$19814_resizers)==null||W.setAspectRatio(y)}};
_.E.updateDimensionsAndResize=function(){var y=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),W=this.expanded?UJu:this.aspectRatio,V=new _.YY(192,this.showInfoBar?116:192);y=H5t(new _.YY(W,1),new _.YY(y,this.showInfoBar?y-76:y));V.width<=y.width&&V.height<=y.height||(nSW(y,V),y.width=Math.min(y.width,this.maxMiniplayerSize),y.height=Math.min(y.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&W<=1?Math.max(y.width,y.height)+76:Math.max(y.width,y.height)));this.dimensions=
new _.YY(y.width,this.clamp(y.height+this.getNonPlayerHeight()));this.resize()};
_.E.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var y=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=y.height+"px";var W;(W=this.player)==null||W.setInternalSize(y.width,y.height)};
_.E.getPlayerSize=function(y){var W=Math.max(0,y.height-this.getNonPlayerHeight());return new _.YY(y.width,W)};
_.E.getNonPlayerHeight=function(){var y=0;this.showInfoBar&&(y+=76);this.expanded&&(y+=285);return y};
_.E.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.hs().resolve(_.VH).close()};
_.E.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.E.logClosingClick=function(){this.closeVe&&_.PE(_.Xn(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.PE(_.Xn(this.screenLayer),this.readyToResumeCloseVe)};
_.E.onPlayerExpandMiniplayer=function(){if(this.expandVe){var y=_.Xn(this.screenLayer);y&&_.PE(y,this.expandVe)}};
_.E.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var y=this.playerState===1;this.continueWatching&&y&&(this.continueWatching=!1);this.premiumBadges.length&&y&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.E.getScreenLayer=function(){return this.screenLayer};
_.E.logMiniplayer=function(){var y=_.Xn(this.screenLayer),W=_.Hf(this.screenLayer);y&&W&&this.playerVe&&(_.Fr(y,W,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.EB(y,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.IB(y,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.EB(y,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.E.computePlaylistData=function(y,W){return W};
_.E.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.E.computeExpandButtonHidden=function(y,W,V){return!y||!W||V};
_.E.computePlaylistIndexHidden=function(y,W){return!y||W};
_.E.computePlaylistPanelHidden=function(y,W){return!W&&!y};
_.E.computeExpandButtonLabel=function(y){return y?_.u5("MINIPLAYER_COLLAPSE_LABEL"):_.u5("MINIPLAYER_EXPAND_LABEL")};
_.E.computeDisabledStateCloseButtonLabel=function(){return _.u5("MINIPLAYER_CLOSE",void 0,"Close")};
_.E.onWindowResized=function(y){y&&(y=this.windowDimensions=y,this.maxMiniplayerSize=Math.min(Math.min(y.width,y.height)-32,720),this.updateDimensionsAndResize())};
_.E.setUpResizing=function(){var y=this;this.JSC$19814_resizers||(this.JSC$19814_resizers=new zB(this.JSC$19814_resizeContainer,{onStartResize:function(){y.handleResizeStart()},
onResize:function(W){y.handleResize(W)}}),this.JSC$19814_resizers.setSize(this.currentMiniplayerSize),this.JSC$19814_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.E.handleResizeStart=function(){var y=_.Xn(this.screenLayer);this.userSetSize||(this.userSetSize=!0,y&&this.resizeVe&&_.IB(y,[this.resizeVe]));y&&this.resizeVe&&_.PE(y,this.resizeVe)};
_.E.handleResize=function(y){this.setMiniplayerSize(y);this.updateDimensionsAndResize()};
_.E.setUpDragging=function(){var y=this;this.JSC$19814_dragger||(this.JSC$19814_dragger=new L_(this.draggableContainer,{onStartDrag:function(W){!y.isSafeToDrag(W)||y.isAnimatingSnap?W.preventDefault():y.handleDragStart()},
onDrag:function(W){y.transform=W;y.setTransform(y.transform)},
onEndDrag:function(){y.handleDragEnd()}},!0))};
_.E.handleDragStart=function(){this.isDragging=!0;var y=_.Xn(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,y&&this.repositionVe&&_.IB(y,[this.repositionVe]));y&&this.repositionVe&&_.PE(y,this.repositionVe)};
_.E.handleDragEnd=function(){this.isDragging=!1;var y=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&y>this.windowDimensions.height&&_.hs().resolve(_.VH).close();this.animateSnapToCorner()};
_.E.animateSnapToCorner=function(){var y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),W=this.getNearestAttachments();W=this.getGlobalPositionFromAttachments(W.horizontalAttachment,W.verticalAttachment);y=new _.bj(W.x-y.x,W.y-y.y);this.isAnimatingSnap=!0;this.setTransform(y);this.hostElement.addEventListener("transitionend",_.Dp(this,this.endSnapAnimation))};
_.E.endSnapAnimation=function(y){y.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Dp(this,this.endSnapAnimation)),this.endDrag())};
_.E.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.E.setTransform=function(y){this.hostElement.style.transform=y?"translate("+y.x+"px, "+y.y+"px)":""};
_.E.getGlobalPositionFromAttachments=function(y,W){return new _.bj(y==="west"?16:this.windowDimensions.width-this.dimensions.width-16,W==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.E.updateAttachments=function(){var y=this.getNearestAttachments();if(this.horizontalAttachment!==y.horizontalAttachment||this.verticalAttachment!==y.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=y.horizontalAttachment;this.verticalAttachment=y.verticalAttachment;var W;(W=this.JSC$19814_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)};
_.E.getNearestAttachments=function(){var y=this.getCurrentGlobalPosition();return{horizontalAttachment:y.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:y.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.E.getCurrentGlobalPosition=function(){var y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return zkP(y,this.transform)};
_.E.isSafeToDrag=function(y){var W=this.playerContainer.getBoundingClientRect();return Math.abs(y.clientY-(W.y+W.height))>15};
_.E.setMiniplayerSize=function(y){this.currentMiniplayerSize=this.clamp(y);var W;(W=this.JSC$19814_resizers)==null||W.setSize(this.currentMiniplayerSize)};
_.E.clamp=function(y){return _.QW(192,y,720)};
_.E.registerWithViewTransitionManager=function(){var y=_.hs().resolve(_.eX(_.Hu));y&&vAu(y,this.hostElement)};
_.CM.Object.defineProperties(ck.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.e("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.u5("CONTINUE_WATCHING",void 0,"Continue watching")};var y;if((y=this.externalPlaylistData)==null?0:y.contents)return this.externalPlaylistData.titleText;var W;return(W=this.data)==null?void 0:W.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.externalPlaylistData)==null?0:y.contents){var W;return(W=_.Rj4(this.externalPlaylistData))==null?void 0:W.title}var V;return(V=this.data)==null?void 0:V.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var y,W,V,w;return((y=this.externalPlaylistData)==null?void 0:y.currentIndex)!==void 0&&((W=this.externalPlaylistData)==null?0:W.totalVideos)&&!((V=this.data)==null?0:(w=V.playlistData)==null?0:w.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.jOv(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.e("kevlar_watch_while_counterfactual")}}});
ck.prototype.onIsDisabledChanged=ck.prototype.onIsDisabledChanged;ck.prototype.readyToResumeVeChanged=ck.prototype.readyToResumeVeChanged;ck.prototype.premiumBrandingChanged=ck.prototype.premiumBrandingChanged;ck.prototype.onPlayerVeChange=ck.prototype.onPlayerVeChange;ck.prototype.hasPlaylistDataChanged=ck.prototype.hasPlaylistDataChanged;_.J([_.m(_.Cr.YtPlayerListenerBehavior),_.R("design:type",_.O4)],ck.prototype,"ytPlayerListenerBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ck.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],ck.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],ck.prototype,"ytdReduxBehavior",void 0);_.J([_.s$("#draggable"),_.R("design:type",HTMLDivElement)],ck.prototype,"draggableContainer",void 0);
_.J([_.s$("#resize-container"),_.R("design:type",HTMLDivElement)],ck.prototype,"JSC$19814_resizeContainer",void 0);_.J([_.s$("#video-container"),_.R("design:type",HTMLDivElement)],ck.prototype,"videoContainer",void 0);_.J([_.s$("#player-container"),_.R("design:type",HTMLDivElement)],ck.prototype,"playerContainer",void 0);_.J([_.s$("#playlist"),_.R("design:type",HTMLDivElement)],ck.prototype,"JSC$19814_playlistPanel",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"active",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"hasNoData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"enabled",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"expanded",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"readyToResume",void 0);
_.J([_.q(),_.R("design:type",Object)],ck.prototype,"isDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"externalPlaylistData",void 0);_.J([_.q(),_.R("design:type",Array)],ck.prototype,"premiumBadges",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"toastData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"watchWhile",void 0);_.J([_.q(),_.R("design:type",Boolean)],ck.prototype,"premiumBranding",void 0);
_.J([_.q(),_.R("design:type",Object)],ck.prototype,"playerState",void 0);_.J([_.q(),_.R("design:type",Boolean)],ck.prototype,"continueWatching",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],ck.prototype,"verticalAttachment",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],ck.prototype,"horizontalAttachment",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"isAnimatingFade",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"isAnimatingSnap",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"isAnimatingExpand",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"isDragging",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"playerHidden",void 0);
_.J([_.q({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.R("design:type",Object)],ck.prototype,"playlistData",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.R("design:type",Object)],ck.prototype,"hasPlaylistData",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"closed",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"expandedClosed",void 0);
_.J([_.q({selector:_.fNP}),_.R("design:type",Boolean)],ck.prototype,"isSingleOptionSurveyActive",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.QD}),_.R("design:type",Boolean)],ck.prototype,"isWatchPage",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("watchWhile"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"showInfoBar",null);_.J([_.M("premiumBadges","showInfoBar"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"showOverlayPremiumBadges",null);
_.J([_.q(),_.R("design:type",Object)],ck.prototype,"watchResponse",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"miniplayerRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"playabilityStatus",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"playerVe",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"expandVe",void 0);_.J([_.q(),_.R("design:type",Object)],ck.prototype,"closeVe",void 0);
_.J([_.q(),_.R("design:type",Object)],ck.prototype,"readyToResumeCloseVe",void 0);_.J([_.q(),_.R("design:type",_.nM)],ck.prototype,"readyToResumeVe",void 0);_.J([_.q(),_.R("design:type",_.nM)],ck.prototype,"resizeVe",void 0);_.J([_.q(),_.R("design:type",_.nM)],ck.prototype,"repositionVe",void 0);_.J([_.xA("hasPlaylistData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"hasPlaylistDataChanged",null);
_.J([_.xA("playerVe"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"onPlayerVeChange",null);_.J([_.xA("premiumBranding"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"premiumBrandingChanged",null);_.J([_.xA("readyToResumeVe"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"readyToResumeVeChanged",null);
_.J([_.xA("isDisabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"onIsDisabledChanged",null);_.J([_.M("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"miniplayerSubtitle",null);_.J([_.M("data.miniplayerTitle","externalPlaylistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"miniplayerTitle",null);
_.J([_.M("externalPlaylistData","continueWatching"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"playlistIndexMessage",null);_.J([_.q({reflectToAttribute:!0}),_.M("playabilityStatus"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"showErrorScreen",null);_.J([_.q({reflectToAttribute:!0}),_.M("watchWhile"),_.R("design:type",Object),_.R("design:paramtypes",[])],ck.prototype,"watchWhileHidden",null);
_.e("ytd_miniplayer_to_wiz")||_.Y(ck,"ytd-miniplayer",function(){if(fuE===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);fuE=y}y=fuE;return y},{mode:2});var S_d;var eS=function(){var y=_.u.apply(this,arguments)||this;y.useListItemStyles=_.e("web_list_item_style_for_menu_items");y.systemIcons=_.e("kevlar_system_icons");return y};
_.p(eS,_.u);_.E=eS.prototype;_.E.ready=function(){this.hostElement.addEventListener("tap",_.Dp(this,this.onEndpointTapExtra))};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.E.onFocus=function(){var y;(y=_.i6(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.E.onEndpointTapExtra=function(y){_.h1(this.hostElement,"iron-activate");var W=this.data.navigationEndpoint;W&&_.h(W,_.AIb)&&(y.stopPropagation(),_.fg(this.hostElement,[W],this.hostElement))};
_.E.computeIcon=function(y){return y&&y.iconType?_.D8(y.iconType):""};
_.E.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.E.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.E.forceUpdateStylesOnLegacyBrowsers=function(){_.e("kevlar_legacy_browsers")&&_.qg(this.hostElement)};
eS.prototype.forceUpdateStylesOnLegacyBrowsers=eS.prototype.forceUpdateStylesOnLegacyBrowsers;eS.prototype.onFocus=eS.prototype.onFocus;_.J([_.m(_.LK),_.R("design:type",Object)],eS.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.SLK.YtConditionalRendererBehavior),_.R("design:type",Object)],eS.prototype,"ytConditionalRendererBehavior",void 0);_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],eS.prototype,"ytEndpointBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],eS.prototype,"data",void 0);_.J([_.q({computed:"computeIcon(data.icon)",value:""}),_.R("design:type",String)],eS.prototype,"icon",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],eS.prototype,"useIcons",void 0);_.J([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Boolean)],eS.prototype,"hasSeparator",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eS.prototype,"useListItemStyles",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],eS.prototype,"systemIcons",void 0);_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eS.prototype,"onFocus",null);_.J([_.xA("useIcons","hasSeparator"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(eS,"ytd-menu-navigation-item-renderer",function(){if(S_d===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);S_d=y}y=S_d;return y},{mode:1});var DJ3;var luq=_.CO(_.u5("DOWNLOAD",{},"Download")),xJj=_.CO(_.u5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),khC=_.CO(_.u5("RETRY",{},"Retry")),s5P=_.CO(_.u5("PAUSE_DOWNLOADING",{},"Pause downloading")),Aj4=_.CO(_.u5("RESUME_DOWNLOAD",{},"Resume download")),h2=function(){var y=_.u.apply(this,arguments)||this;y.primaryText=luq;y.primaryIconType="OFFLINE_DOWNLOAD";y.hasSecondaryContent=!1;y.hasSeparator=!1;y.transferState="TRANSFER_STATE_UNKNOWN";y.isVideoDeletedByUser=!1;y.isHidden=!1;y.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return y};
_.p(h2,_.u);_.E=h2.prototype;_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.E.onFocus=function(){this.primaryEntry.focus()};
_.E.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.E.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.E.getRemoveAction=function(){return"ACTION_REMOVE"};
_.E.sendOfflineAction=function(y){var W=this.data.serviceEndpoint;if(W){var V=_.h(W,_.xn);V&&y&&(V.action=y);this.ytComponentBehavior.resolveCommand(W)}};
_.E.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=luq,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=luq;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=khC;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=xJj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Aj4;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=xJj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
s5P;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=xJj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=xJj;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=luq,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.E.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.E.isSecondaryEntryHidden=function(y,W){return y?!0:!W};
_.E.computeHasSeparator=function(){var y;return!((y=this.data)==null||!y.hasSeparator)};
h2.prototype.showHideButton=h2.prototype.showHideButton;h2.prototype.onTransferStateChange=h2.prototype.onTransferStateChange;h2.prototype.onFocus=h2.prototype.onFocus;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],h2.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],h2.prototype,"primaryText",void 0);_.J([_.q(),_.R("design:type",String)],h2.prototype,"primaryIconType",void 0);_.J([_.q(),_.R("design:type",String)],h2.prototype,"primaryAction",void 0);_.J([_.q(),_.R("design:type",Object)],h2.prototype,"secondaryText",void 0);_.J([_.q(),_.R("design:type",String)],h2.prototype,"secondaryIconType",void 0);
_.J([_.q(),_.R("design:type",String)],h2.prototype,"secondaryAction",void 0);_.J([_.q(),_.R("design:type",Object)],h2.prototype,"hasSecondaryContent",void 0);_.J([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Object)],h2.prototype,"hasSeparator",void 0);_.J([_.q({selector:_.yY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",String)],h2.prototype,"transferState",void 0);
_.J([_.q({selector:_.n0n,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",Object)],h2.prototype,"isVideoDeletedByUser",void 0);_.J([_.q(),_.R("design:type",Object)],h2.prototype,"isHidden",void 0);_.J([_.q({selector:_.AgR,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",Object)],h2.prototype,"offlineabilityState",void 0);_.J([_.s$("#primary-entry"),_.R("design:type",Object)],h2.prototype,"primaryEntry",void 0);
_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h2.prototype,"onFocus",null);_.J([_.Jc("transferState","isVideoDeletedByUser"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h2.prototype,"onTransferStateChange",null);_.J([_.Jc("offlineabilityState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h2.prototype,"showHideButton",null);
_.Y(h2,"ytd-menu-service-item-download-renderer",function(){if(DJ3===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);DJ3=y}y=DJ3;return y},{mode:1});var Y_W;var oK=function(){var y=_.u.apply(this,arguments)||this;y.useIcons=!1;y.systemIcons=_.e("kevlar_system_icons");y.useListItemStyles=_.e("web_list_item_style_for_menu_items");return y};
_.p(oK,_.u);_.E=oK.prototype;_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.E.onFocus=function(){var y;(y=_.i6(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.E.onTap=function(){_.Kg(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var y=this.data.serviceEndpoint,W=this.data.command;if(y){var V,w=(V=this.data)==null?void 0:V.trackingParams;V=!!_.h(y,_.SJz);w&&V&&_.dP().dispatch(_.ig({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:w}}));this.ytComponentBehavior.resolveCommand(y)||_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}})}W&&(this.ytComponentBehavior.resolveCommand(W)||_.fg(this.hostElement,
[W],this.hostElement))};
_.E.computeIcon=function(y){return y&&y.iconType?_.D8(y.iconType):""};
_.E.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.E.computeHasSeparator=function(){var y;return!((y=this.data)==null||!y.hasSeparator)};
_.E.forceUpdateStylesOnLegacyBrowsers=function(){_.e("kevlar_legacy_browsers")&&_.qg(this.hostElement)};
_.E.computeIsSelected=function(){var y;return!((y=this.data)==null||!y.isSelected)};
oK.prototype.forceUpdateStylesOnLegacyBrowsers=oK.prototype.forceUpdateStylesOnLegacyBrowsers;oK.prototype.onTap=oK.prototype.onTap;oK.prototype.onFocus=oK.prototype.onFocus;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],oK.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.SLK.YtConditionalRendererBehavior),_.R("design:type",Object)],oK.prototype,"ytConditionalRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oK.prototype,"data",void 0);_.J([_.q({computed:"computeIcon(data.icon)",value:""}),_.R("design:type",String)],oK.prototype,"icon",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oK.prototype,"useIcons",void 0);
_.J([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Boolean)],oK.prototype,"hasSeparator",void 0);_.J([_.q({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.R("design:type",Boolean)],oK.prototype,"isSelected",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oK.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],oK.prototype,"useListItemStyles",void 0);
_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oK.prototype,"onFocus",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],oK.prototype,"onTap",null);_.J([_.xA("useIcons","hasSeparator"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oK.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(oK,"ytd-menu-service-item-renderer",function(){if(Y_W===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Y_W=y}y=Y_W;return y},{mode:2});var Bau;var K_=function(){return _.u.apply(this,arguments)||this};
_.p(K_,_.u);_.E=K_.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.onDataChanged=function(){var y=this;_.gy(this,function(){y.postbox.openDialog();y.focus();_.h1(y.hostElement,"yt-refit")})};
_.E.focus=function(){this.postbox.focus()};
_.E.closePopup=function(){_.ow(this.hostElement,"yt-close-popup-action")};
_.E.onYtCommentboxDismiss=function(){this.closePopup()};
K_.prototype.onYtCommentboxDismiss=K_.prototype.onYtCommentboxDismiss;K_.prototype.onDataChanged=K_.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],K_.prototype,"data",void 0);_.J([_.q({value:function(){return _.u5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],K_.prototype,"closeButtonAriaLabel",void 0);_.J([_.s$("#postbox"),_.R("design:type",Object)],K_.prototype,"postbox",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],K_.prototype,"onDataChanged",null);_.J([_.l6("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],K_.prototype,"onYtCommentboxDismiss",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],K_);
_.Y(K_,"ytd-backstage-post-dialog-popup-renderer",function(){if(Bau!==void 0)return Bau;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Bau=y},{mode:1});var JjE;var p_=function(){return _.u.apply(this,arguments)||this};
_.p(p_,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],p_.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],p_);
_.Y(p_,"ytd-sender-id-section-renderer",function(){if(JjE!==void 0)return JjE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return JjE=y},{mode:1});var RRW;var j5u;var $Jm;var iB=function(){return _.u.apply(this,arguments)||this};
_.p(iB,_.u);iB.prototype.closePopup=function(){_.ow(this.hostElement,"yt-close-popup-action")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iB.prototype,"data",void 0);_.J([_.Zp({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],iB);
_.Y(iB,"yt-community-post-section-renderer",function(){if($Jm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;j5u===void 0&&(j5u=document.createElement("template"));var w=j5u;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$Jm=y}y=$Jm;return y},{mode:2});var nq4;var Hsj;var X_C;var auP;var Ghu;var rju;var f_=function(){return _.u.apply(this,arguments)||this};
_.p(f_,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],f_.prototype,"data",void 0);_.J([_.Zp({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],f_);
_.Y(f_,"yt-share-start-time-with-context-renderer",function(){if(rju===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Ghu===void 0&&(Ghu=document.createElement("template"));var w=Ghu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);rju=y}y=rju;return y},{mode:2});var TB=function(){return _.u.apply(this,arguments)||this};
_.p(TB,_.u);TB.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],TB.prototype,"data",void 0);_.J([_.Zp({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],TB);
_.Y(TB,"yt-share-panel-title-v15-renderer",function(){if(auP===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;X_C===void 0&&(X_C=document.createElement("template"));var w=X_C;V.call(W,w.content.cloneNode(!0),y.content.firstChild);auP=y}y=auP;return y},{mode:2});var mn=function(){return _.u.apply(this,arguments)||this};
_.p(mn,_.u);mn.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mn.prototype,"data",void 0);_.J([_.Zp({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],mn);
_.Y(mn,"yt-share-panel-header-renderer",function(){if(Hsj===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;nq4===void 0&&(nq4=document.createElement("template"));var w=nq4;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Hsj=y}y=Hsj;return y},{mode:2});var bse;var Q5W;var Mj=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-open-popup-action":"onOpen"};return y};
_.p(Mj,_.u);_.E=Mj.prototype;_.E.attached=function(){this.onOpen()};
_.E.updateTimeSecs=function(y){this.currentTimeSecs=y};
_.E.computeTimeString=function(y){y=y.toString();var W=Math.floor(Number(y)/3600),V=Math.floor(Number(y)%3600%60);return(W>0?W+":":"")+_.pl(Math.floor(Number(y)%3600/60),W>0?2:1)+":"+_.pl(V,2)};
_.E.computeTimeStringA11y=function(y){y=_.XhL({seconds:y});var W=y.hours===void 0?0:y.hours,V=y.minutes===void 0?0:y.minutes,w=y.seconds===void 0?0:y.seconds;y=[];if(W>0){var t=Xl3().format({hours:W});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.tx)||W>9999)t=t.replace(W.toString(),_.aNy(W)),_.tx==="km"&&(t=t.replace(".",","));y.push(t)}V>0&&y.push(Xl3().format({minutes:V}));w>0&&y.push(Xl3().format({seconds:w}));W="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");V=_.tx==
"am"?"{0}\u1363 ":_.tx=="fa"?"{0}\u060c\u200f ":_.tx=="my"?"{0} - ":_.tx=="ne"?"{0},":_.tx=="th"?"{0} ":_.tx=="ur"?"{0}\u060c ":_.tx=="ar"||_.tx=="ar-XB"?"{0} \u0648":_.tx=="ja"||_.tx=="zh-CN"||_.tx=="zh-HK"||_.tx=="zh-TW"?"{0}\u3001":"{0}, ";w=_.tx=="am"?"\u1363 ":_.tx=="fa"?"\u060c\u200f ":_.tx=="my"?" - ":_.tx=="th"?" ":_.tx=="ur"?"\u060c ":_.tx=="ar"||_.tx=="ar-XB"?" \u0648":_.tx=="ja"||_.tx=="zh-CN"||_.tx=="zh-HK"||_.tx=="zh-TW"?"\u3001":", ";t=_.tx=="am"?" \u12a5\u1293 {0}":_.tx=="as"?" \u0986\u09f0\u09c1 {0}":
_.tx=="az"?" v\u0259 {0}":_.tx=="bn"?" \u098f\u09ac\u0982 {0}":_.tx=="cs"?" a\u00a0{0}":_.tx=="de"?" und {0}":_.tx=="el"?" \u03ba\u03b1\u03b9 {0}":_.tx=="eu"?" eta {0}":_.tx=="fa"?"\u060c \u0648 {0}":_.tx=="fil"?", at {0}":_.tx=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.tx=="hi"?", \u0914\u0930 {0}":_.tx=="hu"?" \u00e9s {0}":_.tx=="hy"?" \u0587 {0}":_.tx=="id"?", dan {0}":_.tx=="iw"?" \u05d5-{0}":_.tx=="ja"?"\u3001{0}":_.tx=="ka"?" \u10d3\u10d0 {0}":_.tx=="km"?" \u1793\u17b7\u1784 {0}":_.tx=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.tx=="ko"?" \ubc0f {0}":_.tx=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.tx=="lt"?" ir {0}":_.tx=="lv"?" un {0}":_.tx=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.tx=="mr"?" \u0906\u0923\u093f {0}":_.tx=="ms"?" dan {0}":_.tx=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.tx=="ne"?" \u0930 {0}":_.tx=="or"?", \u0b13 {0}":_.tx=="pa"?" \u0a05\u0a24\u0a47 {0}":_.tx=="ro"?" \u0219i {0}":_.tx=="si"?", \u0dc3\u0dc4 {0}":_.tx=="sk"?" a {0}":_.tx=="sl"?" in {0}":_.tx=="sq"?" dhe {0}":_.tx=="sv"?" och {0}":
_.tx=="sw"?" na {0}":_.tx=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.tx=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.tx=="th"?" \u0e41\u0e25\u0e30{0}":_.tx=="tr"?" ve {0}":_.tx=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.tx=="uz"?" va {0}":_.tx=="vi"?" v\u00e0 {0}":_.tx=="zh-HK"?"\u53ca{0}":_.tx=="zu"?", ne-{0}":_.tx=="af"||_.tx=="nl"?" en {0}":_.tx=="ar"||_.tx=="ar-XB"?" \u0648{0}":_.tx=="be"||_.tx=="uk"?" \u0456 {0}":_.tx=="en-GB"||_.tx=="en-IN"?" and {0}":_.tx=="en"||_.tx=="en-XA"?
", and {0}":_.tx=="et"||_.tx=="fi"?" ja {0}":_.tx=="fr"||_.tx=="fr-CA"?" et {0}":_.tx=="zh-CN"||_.tx=="zh-TW"?"\u548c{0}":_.tx=="da"||_.tx=="is"||_.tx=="no"?" og {0}":_.tx=="es"||_.tx=="es-419"||_.tx=="es-US"?" y {0}":_.tx=="kk"||_.tx=="lo"||_.tx=="mn"?", {0}":_.tx=="bg"||_.tx=="mk"||_.tx=="ru"||_.tx=="sr"?" \u0438 {0}":_.tx=="gl"||_.tx=="it"||_.tx=="pt-BR"||_.tx=="pt-PT"?" e {0}":" i {0}";var F=_.tx=="am"?"{0} \u12a5\u1293 {1}":_.tx=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.tx=="az"?"{0} v\u0259 {1}":
_.tx=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.tx=="de"?"{0} und {1}":_.tx=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.tx=="eu"?"{0} eta {1}":_.tx=="fa"?"{0} \u0648 {1}":_.tx=="fil"?"{0} at {1}":_.tx=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.tx=="hi"?"{0} \u0914\u0930 {1}":_.tx=="hu"?"{0} \u00e9s {1}":_.tx=="hy"?"{0} \u0587 {1}":_.tx=="iw"?"{0} \u05d5-{1}":_.tx=="ja"?"{0}\u3001{1}":_.tx=="ka"?"{0} \u10d3\u10d0 {1}":_.tx=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.tx=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.tx=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.tx=="ko"?"{0} \ubc0f {1}":_.tx=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.tx=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.tx=="lt"?"{0} ir {1}":_.tx=="lv"?"{0} un {1}":_.tx=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.tx=="mn"?"{0}, {1}":_.tx=="mr"?"{0} \u0906\u0923\u093f {1}":_.tx=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.tx=="ne"?"{0} \u0930 {1}":_.tx=="or"?"{0} \u0b13 {1}":_.tx=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.tx=="ro"?"{0} \u0219i {1}":_.tx==
"si"?"{0} \u0dc3\u0dc4 {1}":_.tx=="sl"?"{0} in {1}":_.tx=="sq"?"{0} dhe {1}":_.tx=="sv"?"{0} och {1}":_.tx=="sw"?"{0} na {1}":_.tx=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.tx=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.tx=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.tx=="tr"?"{0} ve {1}":_.tx=="ur"?"{0} \u0627\u0648\u0631 {1}":_.tx=="uz"?"{0} va {1}":_.tx=="vi"?"{0} v\u00e0 {1}":_.tx=="zh-HK"?"{0}\u53ca{1}":_.tx=="zu"?"{0} ne-{1}":_.tx=="af"||_.tx=="nl"?"{0} en {1}":_.tx=="ar"||_.tx==
"ar-XB"?"{0} \u0648{1}":_.tx=="be"||_.tx=="uk"?"{0} \u0456 {1}":_.tx=="cs"||_.tx=="sk"?"{0} a\u00a0{1}":_.tx=="et"||_.tx=="fi"?"{0} ja {1}":_.tx=="fr"||_.tx=="fr-CA"?"{0} et {1}":_.tx=="id"||_.tx=="ms"?"{0} dan {1}":_.tx=="zh-CN"||_.tx=="zh-TW"?"{0}\u548c{1}":_.tx=="da"||_.tx=="is"||_.tx=="no"?"{0} og {1}":_.tx=="es"||_.tx=="es-419"||_.tx=="es-US"?"{0} y {1}":_.tx=="bg"||_.tx=="mk"||_.tx=="ru"||_.tx=="sr"?"{0} \u0438 {1}":_.tx=="en"||_.tx=="en-GB"||_.tx=="en-IN"||_.tx=="en-XA"?"{0} and {1}":_.tx==
"gl"||_.tx=="it"||_.tx=="pt-BR"||_.tx=="pt-PT"?"{0} e {1}":"{0} i {1}";_.tx==="sq"?(t=t.replace("dhe","e"),F=F.replace("dhe","e")):_.tx==="th"?(w=w.replace("{0}"," {0}"),F=F.replace("{0}","{0} "),F=F.replace("{1}"," {1}")):_.tx==="ne"?w=",":_.tx==="zh-CN"?w="":W.includes(_.tx)&&(w=" ");return y.length<2?y.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(_.tx)?y.length===2?
F.replace("{0}",y[0]).replace("{1}",y[1]):V.replace("{0}",y[0])+y.slice(1,-1).join(w)+t.replace("{0}",y[y.length-1]):y.join(w)};
_.E.getTimeParam=function(){return oAe(this.timeString)};
_.E.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var y={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},W;_.DN(_.BC(),(W=this.data)==null?void 0:W.trackingParams,y,7)};
_.E.onChangeStartAtTimestamp=function(){for(var y=this.startAtTimestamp.value.split(":"),W=0,V=1,w=y.length-1;w>=0;w--)W+=Number(y[w])*V,V*=60;this.updateTimeSecs(W);this.setTimestamp()};
_.E.onOpen=function(){var y=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var W=_.Kn();W?W.getPlayerPromise().then(function(V){V=V.getCurrentTime();y.updateTimeSecs(V)}):ny3()&&this.updateTimeSecs(ny3())};
_.E.setTimestamp=function(){var y=Math.floor(this.currentTimeSecs);_.ow(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!y,timestamp:y||""}])};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Mj.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Mj.prototype,"data",void 0);_.J([_.q({value:!1,notify:!0}),_.R("design:type",Boolean)],Mj.prototype,"isStartAtChecked",void 0);_.J([_.q(),_.R("design:type",Number)],Mj.prototype,"currentTimeSecs",void 0);
_.J([_.q({computed:"computeTimeString(currentTimeSecs)"}),_.R("design:type",String)],Mj.prototype,"timeString",void 0);_.J([_.q({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.R("design:type",String)],Mj.prototype,"timeStringA11y",void 0);_.J([_.s$("#start-at-timestamp"),_.R("design:type",Object)],Mj.prototype,"startAtTimestamp",void 0);_.J([_.Zp({is:"yt-start-at-renderer",disableElementRegistration:!0})],Mj);
_.Y(Mj,"yt-start-at-renderer",function(){if(Q5W===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;bse===void 0&&(bse=document.createElement("template"));var w=bse;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Q5W=y}y=Q5W;return y},{mode:2});var ZsW;var ykW;var Wle=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),VFC=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),wGq=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var tFt={};tFt.YtBindingExpressionsBehavior={identity:_.Jv,msg:function(y,W){W=W===void 0?{}:W;return _.u5(y,W,y)},
msgPlural:function(y,W){return _.SM(y,W)},
getMusicIconFromType:function(y){if(_.e("music_web_enable_icon_wil"))y=_.D8(y);else if(VFC.has(y))y="yt-sys-icons:"+VFC.get(y);else{var W=Wle.get(y)||_.D8(y).split(":")[1];W=_.o6z(W);var V;y=((V=wGq.get(y))!=null?V:"yt-sys-icons:")+W}return y}};var Flt;var Erm;var NXj;var Irj=document.head,grv=Irj.appendChild,Ppq;if(NXj===void 0){var Cp4=document.createElement("template");_.T(Cp4,'\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>');NXj=Cp4}Ppq=NXj;grv.call(Irj,Ppq.content);var qj=function(){var y=_.u.apply(this,arguments)||this;y.screenLayer=7;return y};
_.p(qj,_.u);qj.prototype.getScreenLayer=function(){return this.screenLayer};
qj.prototype.onTap=function(y){y&&y.detail&&(y.detail.x||y.detail.y)&&_.i6(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.i5(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(y=this.getScreenLayer(),_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:y}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.CM.Object.defineProperties(qj.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()}}});
qj.prototype.onTap=qj.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],qj.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qj.prototype,"data",void 0);_.J([_.M("data.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],qj.prototype,"title",null);
_.J([_.M("data.serviceName"),_.R("design:type",String),_.R("design:paramtypes",[])],qj.prototype,"icon",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],qj.prototype,"onTap",null);_.J([_.Zp({is:"yt-share-target-renderer",disableElementRegistration:!0})],qj);
_.Y(qj,"yt-share-target-renderer",function(){if(Erm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Flt===void 0&&(Flt=document.createElement("template"));var w=Flt;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Erm=y}y=Erm;return y},{mode:2});var O9u;var vrC;var Uu=function(){var y=_.u.apply(this,arguments)||this;y.SHARE_TARGET_WIDTH=70;y.SHARE_TARGET_MARGIN_RIGHT=8;y.PAGE_SCROLL_SPEED=9;y.actionMap={"yt-share-panel-reset-action":"onReset_"};return y};
_.p(Uu,_.u);_.E=Uu.prototype;_.E.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.E.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.i6(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.i6(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.E.onReset_=function(){if(_.i6(this.hostElement).querySelector("#list")){var y=_.i6(this.hostElement).querySelector("#list");var W=_.i6(this.hostElement).querySelector("#list");var V=W.offsetLeft,w=W.offsetParent;w||_.du2(W)!="fixed"||(w=_.ZS(W).documentElement);if(w){if(_.MW&&!_.UX(58)){var t=_.pdE(w);V+=t.left}else Number(_.Jiy)>=8&&!(Number(_.Jiy)>=9)&&(t=_.pdE(w),V-=t.left);W=_.oEA(w)?w.clientWidth-(V+W.offsetWidth):V}else W=V;Zvj(y,W);this.updateScrollButtons_()}};
_.E.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.E.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.E.onScrollWheel_=function(y){y.stopPropagation();y.preventDefault();var W=Qtj(_.i6(this.hostElement).querySelector("#list"));y=Math.abs(y.deltaX)>Math.abs(y.deltaY)?y.deltaX:y.deltaY;Zvj(_.i6(this.hostElement).querySelector("#list"),W+y);this.updateScrollButtons_()};
_.E.smoothScrollByOnePage_=function(y){var W=_.i6(this.hostElement).querySelector("#list"),V=(Math.floor(W.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,w=Qtj(W),t=V*(y?1:-1),F=this.PAGE_SCROLL_SPEED,I=this.updateScrollButtons_.bind(this),P=0,C;(function L(){P+=F;C=P/V*2;Zvj(W,w+t*(C<1?C*C:-C*C+4*C-2));P<V?window.requestAnimationFrame(L):I()})()};
_.E.updateScrollButtons_=function(){var y=Qtj(_.i6(this.hostElement).querySelector("#list")),W=_.i6(this.hostElement).querySelector("#list").scrollWidth-_.i6(this.hostElement).querySelector("#list").clientWidth;_.i6(this.hostElement).querySelector("#scroll-button-back").hidden=y<=0;_.i6(this.hostElement).querySelector("#scroll-button-forward").hidden=y>=W};
Uu.prototype.onScrollWheel_=Uu.prototype.onScrollWheel_;Uu.prototype.onDataChanged_=Uu.prototype.onDataChanged_;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(tFt.YtBindingExpressionsBehavior),_.R("design:type",Object)],Uu.prototype,"ytBindingExpressionsBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Uu.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Uu.prototype,"onDataChanged_",null);_.J([_.l6("wheel"),_.R("design:type",Function),_.R("design:paramtypes",[WheelEvent]),_.R("design:returntype")],Uu.prototype,"onScrollWheel_",null);
_.J([_.Zp({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Uu);
_.Y(Uu,"yt-third-party-share-target-section-renderer",function(){if(vrC===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;O9u===void 0&&(O9u=document.createElement("template"));var w=O9u;V.call(W,w.content.cloneNode(!0),y.content.firstChild);vrC=y}y=vrC;return y},{mode:2});var uB=function(){return _.u.apply(this,arguments)||this};
_.p(uB,_.u);uB.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"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uB.prototype,"data",void 0);_.J([_.Zp({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],uB);
_.Y(uB,"yt-third-party-network-section-renderer",function(){if(ykW===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ZsW===void 0&&(ZsW=document.createElement("template"));var w=ZsW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);ykW=y}y=ykW;return y},{mode:2});_.iF(_.eY(function(y){return _.O("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.O("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.O(_.Q7,{data:function(){return y.data().firstPartyItems}},{listItemViewModel:_.Zo})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.vB}});var dDj=_.CF(["data:image/svg+xml;charset=UTF-8;base64,",""]),SS=function(){var y=_.u.apply(this,arguments)||this;y.screenLayer=7;y.qrCodeEnabled=_.e("web_enable_sharing_qr_code");y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return y};
_.p(SS,_.u);_.E=SS.prototype;_.E.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"}}}};
_.E.attached=function(){this.JSC$19866_scroller&&(this.JSC$19866_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19866_scroller.attached&&typeof this.JSC$19866_scroller.attached==="function"&&this.JSC$19866_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.E.onDataChanged=function(){var y=this,W;(W=this.data)!=null&&W.contents&&(this.hostElement.setAttribute("links-only","true"),_.mg(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.gy(this,function(){_.h1(y.hostElement,"yt-refit");y.focusSharePanelHeader()}))};
_.E.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.E.handleSetTimestamp=function(y){var W=this.shortUrl();y.isSet&&(W=_.NI(W,"t",y.timestamp));this.maybeRenderQrCode(W)};
_.E.shortUrl=function(){var y,W=(y=this.data)==null?void 0:y.contents;if(W)for(y=0;y<W.length;y++){var V=void 0,w=void 0;if((V=W[y])==null?0:(w=V.thirdPartyNetworkSection)==null?0:w.copyLinkContainer){var t=w=V=void 0;return(t=_.h((V=W[y])==null?void 0:(w=V.thirdPartyNetworkSection)==null?void 0:w.copyLinkContainer,ySj))==null?void 0:t.shortUrl}}};
_.E.maybeRenderQrCode=function(y){var W=this,V,w,t,F,I,P,C,d,L;return _.g(function(z){if(z.nextAddress==1){V=_.i6(W.hostElement).querySelector("#qr-code");if(!W.qrCodeEnabled||!y)return V&&(V.style.display="none"),z.return();w=_.utP(_.hs().resolve(_.lE),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});t=document.createElement("div");return typeof w==="function"?(w(t),z.jumpTo(2)):z.yield(w,3)}z.nextAddress!=2&&(F=z.yieldResult,F(t));C=(I=t)==null?void 0:(P=I.firstChild)==null?void 0:P.firstChild;
d=document.createElement("img");L=_.A_u(dDj,btoa(C.outerHTML));d.onload=function(){var c={canvas:V,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:d},K=new e5v;fHj(K,y);T5u(K,!1,mK4(K));var f=K.modules,U=Object.assign({},nGC,c);f=structuredClone(f);c=f.length;var l,x=(l=U.canvas)!=null?l:document.createElement("canvas");l=U.cellSize;K=U.logo;var B,r=(B=U.logoSize)!=null?B:Math.floor(c/4);c%2!==r%2&&r++;var H=U.logoPadding,a=U.backgroundColor;B=c*l;var b=
U.width,Fv=0;b&&(Fv=U.padding,Fv=Math.ceil(Fv*B/(b-Fv*2)),x.style.width=b+"px",x.style.height=b+"px");x.width!==B+Fv*2&&(x.width=B+Fv*2);x.height!==B+Fv*2&&(x.height=B+Fv*2);B=x.getContext("2d");U.autoClear&&B.clearRect(0,0,x.width,x.height);B.fillStyle=a;B.beginPath();B.roundRect(0,0,x.width,x.height,U.borderRadius);B.fill();B.save();B.translate(Fv,Fv);if(K)for(x=Math.floor(c-r)/2-H,H=Math.floor(c+r)/2+H,a=x;a<H;a++)for(b=x;b<H;b++)f[a][b]=!1;for(x=0;x<c;x++)for(H=0;H<c;H++)(x<7&&H<7||x<7&&H>=c-
7||x>=c-7&&H<7)&&(f[x][H]=!1);var Py;x=(Py=U.markerColor)!=null?Py:U.color;qBm(B,0,0,l,x);qBm(B,l*(c-7),0,l,x);qBm(B,0,l*(c-7),l,x);switch(U.cellStyle){case 0:Py=f;f=Py.length;x=U.cellSize;B.beginPath();for(H=0;H<f;H++)for(a=0;a<f;a++)Py[H][a]&&B.rect(H*x,a*x,x,x);B.fillStyle=U.color;B.fill();break;case 1:Py=f;f=Py.length;x=U.cellSize;H=x*U.relativeCircleSize;B.fillStyle=U.color;B.beginPath();for(U=0;U<f;U++)for(a=0;a<f;a++)Py[U][a]&&(B.beginPath(),B.ellipse((U+.5)*x,(a+.5)*x,H/2,H/2,0,0,2*Math.PI),
B.fill());B.fill();break;case 2:Py=f;f=Py.length;x=U.cellSize;B.fillStyle=U.color;U=[[1,1],[-1,1],[-1,-1],[1,-1]];B.beginPath();for(H=0;H<f;H++)for(a=0;a<f;a++)if(Py[H][a])B.roundRect(H*x,a*x,x,x,x/2),H+1<f&&Py[H+1][a]&&B.rect(H*x+x/2,a*x,x,x),a+1<f&&Py[H][a+1]&&B.rect(H*x,a*x+x/2,x,x);else{b=H*x+x/2;Fv=a*x+x/2;for(var du=0;du<4;du++){var mL=_.N(U[du]),un=mL.next().value;mL=mL.next().value;H+un>=0&&H+un<f&&a+mL>=0&&a+mL<f&&Py[H+un][a]&&Py[H][a+mL]&&Py[H+un][a+mL]&&(un=du*Math.PI/2,mL=x/2,B.moveTo(b+
mL*Math.cos(un),Fv+mL*Math.sin(un)),B.arc(b,Fv,x/2,un,un+Math.PI/2,!1),B.lineTo(b+mL*(Math.cos(un)-Math.sin(un)),Fv+mL*(Math.cos(un)+Math.sin(un))),B.lineTo(b+mL*Math.cos(un),Fv+mL*Math.sin(un)))}}B.fill()}K&&B.drawImage(K,(c-r)*l/2,(c-r)*l/2,r*l,r*l);B.restore();V.style.removeProperty("display")};
d.src=_.G3(L);_.B7(z)})};
_.E.hasCommunityPostRenderer=function(){var y,W,V,w;return!!((y=this.data)==null?0:(W=y.header)==null?0:(V=W.sharePanelHeaderRenderer)==null?0:(w=V.communityPost)==null?0:w.communityPostSectionRenderer)};
_.E.onTapClose=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.E.getScreenLayer=function(){return this.screenLayer};
_.E.logSharePanelPage=function(){if(!_.e("enable_share_panel_navigation_logging_fix_on_web")){var y;if((y=this.data)!=null&&y.trackingParams){y=this.data.trackingParams;var W=this.parentClickTrackingParams;W=W?_.nD(W):void 0;var V=_.BC();_.qx(V,21760,W,{layer:7,parentLayer:0});V.graftServerVe(y,void 0,7);_.dP().dispatch(_.ig({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
SS.prototype.onDataChanged=SS.prototype.onDataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],SS.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],SS.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],SS.prototype,"data",void 0);_.J([_.q({value:_.u5("SBOX_INAPPROPRIATE_CANCEL")}),_.R("design:type",String)],SS.prototype,"closeButtonAriaLabel",void 0);_.J([_.s$("yt-share-panel-header-renderer"),_.R("design:type",HTMLElement)],SS.prototype,"header",void 0);_.J([_.q({selector:function(y){return y.share.parentClickTrackingParams}}),
_.R("design:type",String)],SS.prototype,"parentClickTrackingParams",void 0);_.J([_.q(),_.R("design:type",Object)],SS.prototype,"qrCodeEnabled",void 0);_.J([_.s$("#scroller"),_.R("design:type",Object)],SS.prototype,"JSC$19866_scroller",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],SS.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],SS);
_.Y(SS,"ytd-unified-share-panel-renderer",function(){if(RRW!==void 0)return RRW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return RRW=y},{mode:1});var LlE;var Dl=function(){var y=_.u.apply(this,arguments)||this;y.modernModal=!0;return y};
_.p(Dl,_.u);Dl.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Dl.prototype.computeShouldHideOldButtons=function(){var y;return!((y=this.data)==null?0:y.button)};
_.CM.Object.defineProperties(Dl.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var y,W;return(y=this.data)==null?void 0:(W=y.button)==null?void 0:W.buttonRenderer}}});
_.J([_.q(),_.R("design:type",Object)],Dl.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Dl.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Dl.prototype,"modernModal",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dl.prototype,"buttonRendererData",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Dl);
_.Y(Dl,"ytd-modal-with-title-and-button-renderer",function(){if(LlE!==void 0)return LlE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return LlE=y},{mode:1});var zGd;var lB=function(){return _.u.apply(this,arguments)||this};
_.p(lB,_.u);lB.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("page-changed",this.page))};
lB.prototype.pageChangedForBinding=lB.prototype.pageChangedForBinding;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lB.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],lB.prototype,"page",void 0);_.J([_.xA("page"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lB.prototype,"pageChangedForBinding",null);
_.J([_.k({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],lB);
_.Y(lB,"ytd-account-item-section-header-renderer",function(){if(zGd!==void 0)return zGd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zGd=y},{mode:1});var cku;var xH=function(){return _.u.apply(this,arguments)||this};
_.p(xH,_.u);xH.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"}}}};
xH.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],xH.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xH.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Function)],xH.prototype,"onAccountItemTap",void 0);
_.J([_.k({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],xH);
_.Y(xH,"ytd-account-item-section-renderer",function(){if(cku!==void 0)return cku;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return cku=y},{mode:1});var eGt;var hG3;var kH=function(){return _.u.apply(this,arguments)||this};
_.p(kH,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kH.prototype,"data",void 0);_.J([_.k({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],kH);
_.Y(kH,"ytd-accounts-dialog-header-renderer",function(){if(hG3!==void 0)return hG3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return hG3=y},{mode:1});var orW;var su=function(){return _.u.apply(this,arguments)||this};
_.p(su,_.u);su.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],su.prototype,"data",void 0);_.J([_.k({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],su);
_.Y(su,"ytd-google-account-header-renderer",function(){if(orW!==void 0)return orW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return orW=y},{mode:1});var A2=function(){return _.u.apply(this,arguments)||this};
_.p(A2,_.u);A2.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"}}}};
A2.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("page-changed",this.page))};
A2.prototype.pageChangedForBinding=A2.prototype.pageChangedForBinding;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],A2.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],A2.prototype,"page",void 0);
_.J([_.xA("page"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A2.prototype,"pageChangedForBinding",null);_.J([_.k({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],A2);
_.MM()(A2,"ytd-account-section-list-renderer",function(){if(eGt===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);eGt=y}y=eGt;return y},{allowedProps:["data"],
mode:1});var Klm;var YH=function(){var y=_.u.apply(this,arguments)||this;y.enableHandlesAccountMenuSwitcher=_.e("enable_handles_account_menu_switcher");return y};
_.p(YH,_.u);YH.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
YH.prototype.dataChanged=YH.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],YH.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],YH.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.J([_.s$("#avatar"),_.R("design:type",Object)],YH.prototype,"avatar",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YH.prototype,"dataChanged",null);_.J([_.k({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],YH);
_.MM()(YH,"ytd-active-account-header-renderer",function(){if(Klm===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);Klm=y}y=Klm;return y},{allowedProps:["data"],
mode:1});var pGq;var i9t;var Bk=function(){return _.u.apply(this,arguments)||this};
_.p(Bk,_.u);Bk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bk.prototype.onBackTap=function(){_.h1(this.hostElement,"yt-menu-back-tapped")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Bk.prototype,"data",void 0);_.J([_.k({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Bk);
_.MM()(Bk,"ytd-simple-menu-header-renderer",function(){if(i9t===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);i9t=y}y=i9t;return y},{allowedProps:["data"],
mode:2});var frv;var J2=function(){return _.u.apply(this,arguments)||this};
_.p(J2,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],J2.prototype,"data",void 0);_.J([_.k({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],J2);
_.Y(J2,"ytd-comment-video-thumbnail-header-renderer",function(){if(frv!==void 0)return frv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return frv=y},{mode:1});var TX4;var RK=function(){return _.u.apply(this,arguments)||this};
_.p(RK,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RK.prototype,"data",void 0);_.J([_.k({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],RK);
_.Y(RK,"ytd-abuse-type-selector-renderer",function(){if(TX4!==void 0)return TX4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TX4=y},{mode:1});var mDj;var jS=function(){return _.u.apply(this,arguments)||this};
_.p(jS,_.u);jS.prototype.attached=function(){var y=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){y.additionalContextInput.focusTextInput()})};
jS.prototype.handleAdditionalContextChanged=function(){var y=this;_.NM(this,"ytd-report-channel-additional-context-update",function(){y.ytdReduxBehavior.dispatch(_.ig({type:"ADDITIONAL_CONTEXT_UPDATED",payload:y.additionalContext}))},300)};
jS.prototype.updateAdditionalContextFromBinding=function(y){this.additionalContext=y.detail.value};
jS.prototype.handleAdditionalContextChanged=jS.prototype.handleAdditionalContextChanged;_.J([_.m(_.y$),_.R("design:type",Object)],jS.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",String)],jS.prototype,"additionalContext",void 0);_.J([_.q({selector:function(y){return y.reportChannelAbuse.additionalContext}}),
_.R("design:type",String)],jS.prototype,"additionalContextRedux",void 0);_.J([_.q(),_.R("design:type",Object)],jS.prototype,"data",void 0);_.J([_.s$("yt-text-input-form-field-renderer"),_.R("design:type",Object)],jS.prototype,"additionalContextInput",void 0);_.J([_.xA("additionalContext"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jS.prototype,"handleAdditionalContextChanged",null);
_.J([_.k({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],jS);
_.Y(jS,"ytd-report-channel-modal-additional-context-renderer",function(){if(mDj!==void 0)return mDj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mDj=y},{mode:1});var MFt;var $H=function(){var y=_.u.apply(this,arguments)||this;y.nextButtonDisabled=null;y.submitEndpoint=null;y.navigationEndpoint=null;y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return y};
_.p($H,_.u);_.E=$H.prototype;_.E.computeNextButtonData=function(y,W,V){var w={};W&&(w.navigationEndpoint=W);V&&(w.serviceEndpoint=V);y&&y.buttonRenderer&&_.Gc.extend(w,y.buttonRenderer);return w};
_.E.handleReportChannelModalDisableNextButtonAction=function(y){this.setNextButtonIsDisabled(y)};
_.E.handleReportFormEndpointUpdateAction=function(y){this.setNextButtonIsDisabled(!!y.disableSubmitButton);this.resetEndpointData();y.submitEndpoint?this.submitEndpoint=y.submitEndpoint:y.submitNavigationEndpoint&&(this.navigationEndpoint=y.submitNavigationEndpoint)};
_.E.handleSignalActionSubmitForm=function(){var y,W=Object.keys(((y=this.reportChannelAbuseForm)==null?void 0:y.selectedVideoIds)||{}),V;y=((V=this.reportChannelAbuseForm)==null?void 0:V.additionalContext)||"";var w;V=((w=this.reportChannelAbuseForm)==null?void 0:w.impersonatedChannelUrl)||"";var t;if((t=this.data)==null?0:t.submitEndpoint){W={impersonated_channel_url:V,text:y,video_ids:W};var F;_.hs().resolve(_.oA).resolveCommand((F=this.data)==null?void 0:F.submitEndpoint,{form:Object.assign({},
W,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.E.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.E.onYtServiceRequestError=function(y){this.setNextButtonIsDisabled(!1);_.ey(this.hostElement,y.detail.error.message)};
_.E.setNextButtonIsDisabled=function(y){this.set("data.nextButton.buttonRenderer.isDisabled",y)};
_.E.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
$H.prototype.onYtServiceRequestError=$H.prototype.onYtServiceRequestError;$H.prototype.onYtServiceRequestCompleted=$H.prototype.onYtServiceRequestCompleted;_.J([_.q(),_.R("design:type",Object)],$H.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],$H.prototype,"nextButtonDisabled",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],$H.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],$H.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$H.prototype,"submitEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],$H.prototype,"navigationEndpoint",void 0);_.J([_.q({selector:function(y){return y.reportChannelAbuse}}),
_.R("design:type",Object)],$H.prototype,"reportChannelAbuseForm",void 0);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$H.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$H.prototype,"onYtServiceRequestError",null);
_.J([_.k({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],$H);
_.Y($H,"ytd-report-channel-modal-footer-renderer",function(){if(MFt!==void 0)return MFt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return MFt=y},{mode:1});var qS3;var n_=function(){var y=_.u.apply(this,arguments)||this;y.boundOnTapDismissButton=function(){y.closePopup()};
return y};
_.p(n_,_.u);n_.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
n_.prototype.handleDataChanged=function(){_.Pp(this.hostElement)};
n_.prototype.closePopup=function(){_.ow(this.hostElement,"yt-close-popup-action")};
n_.prototype.handleDataChanged=n_.prototype.handleDataChanged;_.J([_.q(),_.R("design:type",Object)],n_.prototype,"boundOnTapDismissButton",void 0);_.J([_.q(),_.R("design:type",Object)],n_.prototype,"data",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],n_.prototype,"handleDataChanged",null);_.J([_.k({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],n_);
_.Y(n_,"ytd-report-channel-modal-header-renderer",function(){if(qS3!==void 0)return qS3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qS3=y},{mode:1});var UDE;var Hk=function(){var y=_.u.apply(this,arguments)||this;y.autoValidate=!1;y.invalid=!1;y.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return y};
_.p(Hk,_.u);_.E=Hk.prototype;_.E.attached=function(){var y=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){y.channelUrlInput.focusTextInput()})};
_.E.disableNextButton=function(y){_.ow(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[y])};
_.E.handleImpersonatedChannelUrlChanged=function(){var y=this;this.disableNextButton(!0);this.invalid=!1;_.NM(this,"ytd-report-channel-impersonated-channel-update",function(){var W=y.impersonatedChannelUrl.trim();y.ytdReduxBehavior.dispatch(_.ig({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:W}));var V;((V=y.data)==null?0:V.submitEndpoint)&&W&&_.hs().resolve(_.oA).resolveCommand(y.data.submitEndpoint,{form:{impersonated_channel_url:W,element:y.hostElement}})},500)};
_.E.handleModifyReportFormCommand=function(y){this.invalid=this.get("modifyReportFormCommand.action",y)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.E.updateInvalidFromBinding=function(y){this.invalid=y.detail.value};
_.E.updateImpersonatedChannelUrlFromBinding=function(y){this.impersonatedChannelUrl=y.detail.value};
Hk.prototype.handleImpersonatedChannelUrlChanged=Hk.prototype.handleImpersonatedChannelUrlChanged;_.J([_.m(_.y$),_.R("design:type",Object)],Hk.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Hk.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Hk.prototype,"autoValidate",void 0);_.J([_.q(),_.R("design:type",Object)],Hk.prototype,"invalid",void 0);
_.J([_.q(),_.R("design:type",String)],Hk.prototype,"impersonatedChannelUrl",void 0);_.J([_.q({selector:function(y){return y.reportChannelAbuse.impersonatedChannelUrl}}),
_.R("design:type",String)],Hk.prototype,"impersonatedChannelUrlRedux",void 0);_.J([_.q(),_.R("design:type",Object)],Hk.prototype,"data",void 0);_.J([_.s$("#text-input"),_.R("design:type",Object)],Hk.prototype,"channelUrlInput",void 0);_.J([_.xA("impersonatedChannelUrl"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hk.prototype,"handleImpersonatedChannelUrlChanged",null);
_.J([_.k({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Hk);
_.Y(Hk,"ytd-report-channel-modal-impersonation-renderer",function(){if(UDE!==void 0)return UDE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UDE=y},{mode:1});var uH4;var SSj;var Xw=function(){return _.u.apply(this,arguments)||this};
_.p(Xw,_.u);Xw.prototype.onCheckboxToggled=function(y){var W,V,w=(V=_.h((W=this.data)==null?void 0:W.video,_.FB))==null?void 0:V.videoId;w&&this.ytdReduxBehavior.dispatch(y.target.checked?_.ig({type:"VIDEO_SELECTED",payload:w}):_.ig({type:"VIDEO_UNSELECTED",payload:w}))};
Xw.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.CM.Object.defineProperties(Xw.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.video;if(!W)return{};var V;y=(V=_.h(W,_.FB))==null?void 0:V.navigationEndpoint;if(!y)return W;_.h(y==null?void 0:y.commandMetadata,_.dw)&&(_.h(y.commandMetadata,_.dw).ignoreNavigation=!0);return W}}});
_.J([_.q({reflectToAttribute:!0,selector:function(y,W){return W in y.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.R("design:type",Boolean)],Xw.prototype,"checked",void 0);_.J([_.q(),_.R("design:type",Object)],Xw.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xw.prototype,"video",null);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],Xw.prototype,"ytdReduxBehavior",void 0);_.J([_.k({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Xw);
_.Y(Xw,"ytd-selectable-video-renderer",function(){if(SSj!==void 0)return SSj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return SSj=y},{mode:1});var aK=function(){var y=_.u.apply(this,arguments)||this;y.monitorScroll=!0;return y};
_.p(aK,_.u);aK.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aK.prototype,"data",void 0);_.J([_.k({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],aK);
_.Y(aK,"ytd-selectable-video-list-renderer",function(){if(uH4!==void 0)return uH4;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return uH4=y},{mode:1});var DDd;_.ZQ("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var GB=function(){return _.u.apply(this,arguments)||this};
_.p(GB,_.u);GB.prototype.onChange=function(y){if(y=_.vW(y).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.e("kevlar_command_handler_migration_killswitch"))_.fg(this.hostElement,y,this.hostElement);else{y=_.N(y);for(var W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)}};
GB.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
GB.prototype.updateDataToggledFromBinding=function(y){this.set("data.toggled",y.detail.value)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],GB.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],GB.prototype,"data",void 0);_.J([_.q({computed:"isEnabled(data)"}),_.R("design:type",Boolean)],GB.prototype,"enabled",void 0);_.J([_.k({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],GB);
_.Y(GB,"ytd-toggle-item-renderer",function(){if(DDd!==void 0)return DDd;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return DDd=y},{mode:1});var lrE;var xDd;var kXd;var rG=function(){var y=_.u.apply(this,arguments)||this;y.setVisible=!1;y.boundOnSubmitButtonClick=function(){y.onSubmitButtonClick()};
y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return y};
_.p(rG,_.u);rG.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}}}}}};
rG.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
rG.prototype.onSubmitButtonClick=function(){var y;((y=this.data)==null?0:y.submitEndpoint)&&!_.e("enable_ytc_refunds_submit_form_signal_action")&&_.i5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
rG.prototype.handleSignalActionSubmitForm=function(){var y;((y=this.data)==null?0:y.submitEndpoint)&&_.i5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.CM.Object.defineProperties(rG.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.hiddenByDefault)&&!this.setVisible}}});
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],rG.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rG.prototype,"setVisible",void 0);_.J([_.q(),_.R("design:type",Object)],rG.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],rG.prototype,"surveyFeedbackData",void 0);_.J([_.q(),_.R("design:type",Object)],rG.prototype,"boundOnSubmitButtonClick",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data","setVisible"),_.R("design:type",Object),_.R("design:paramtypes",[])],rG.prototype,"visibilityHidden",null);_.J([_.Zp({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],rG);
_.Y(rG,"yt-flow-footer-renderer",function(){if(kXd===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;xDd===void 0&&(xDd=document.createElement("template"));var w=xDd;V.call(W,w.content.cloneNode(!0),y.content.firstChild);kXd=y}y=kXd;return y},{mode:2});var bB=function(){return _.u.apply(this,arguments)||this};
_.p(bB,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],bB.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bB.prototype,"data",void 0);_.J([_.q({selector:function(y){return y.ypc.surveyFeedbackData}}),
_.R("design:type",Object)],bB.prototype,"surveyFeedbackData",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],bB);
_.Y(bB,"ytd-flow-footer-renderer",function(){if(lrE!==void 0)return lrE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return lrE=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var szC;var Ak4;var QN=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return y};
_.p(QN,_.u);_.E=QN.prototype;_.E.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.y7("multiPageMenuSectionItems")}}};
_.E.handleHideEnclosingAction_=function(y){if(this.data&&this.data.items)for(var W=0;W<this.data.items.length;W++){var V=this.data.items[W].notificationRenderer;if(V&&V.notificationId==y.hideEnclosingAction.notificationId){this.splice("data.items",W,1);_.ow(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.E.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.mg(this.hostElement,"hidden",!0)};
_.E.updateMenu_=function(y){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&y&&!y.doNotRefreshInbox){y=this.data.continuations;for(var W=0;W<y.length;W++)if(y[W].invalidationContinuationData){var V=void 0;var w=(V=y[W].invalidationContinuationData)==null?void 0:V.continuation;break}y=_.Gc.clone(this.data.continuationUpdateEndpoint||null);y.continuation=w;y.click_tracking_params=this.data.trackingParams;_.i5(this.hostElement,[y])}};
_.E.onServiceRequestCompleted_=function(y,W){if(this.data&&(y=W.actions)){W=0;for(var V=y.length;W<V;W++){var w=_.h(y[W],_.sym);if(!w)break;if((w.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||w.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&w.continuationItems&&this.data.items){var t=this.data.items.length-1;this.data.items[t].continuationItemRenderer&&(w=["data.items",t,1].concat(w.continuationItems),this.splice.apply(this,w))}}}};
QN.prototype.onServiceRequestCompleted_=QN.prototype.onServiceRequestCompleted_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],QN.prototype,"data",void 0);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],QN.prototype,"onServiceRequestCompleted_",null);_.J([_.Zp({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],QN);
_.MM()(QN,"yt-multi-page-menu-section-renderer",function(){if(Ak4===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;szC===void 0&&(szC=document.createElement("template"));var w=szC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Ak4=y}y=Ak4;return y},{allowedProps:["data"],
mode:2});var YSj;var BXe;var VM=function(){return _.u.apply(this,arguments)||this};
_.p(VM,_.u);VM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.CM.Object.defineProperties(VM.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.progress)==null?0:this.data.progress*100}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],VM.prototype,"data",void 0);_.J([_.M("data.progress"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VM.prototype,"showProgressBar",null);
_.J([_.M("data.progress"),_.R("design:type",Number),_.R("design:paramtypes",[])],VM.prototype,"progress",null);_.J([_.Zp({is:"yt-flow-header-renderer",disableElementRegistration:!0})],VM);
_.Y(VM,"yt-flow-header-renderer",function(){if(BXe===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;YSj===void 0&&(YSj=document.createElement("template"));var w=YSj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);BXe=y}y=BXe;return y},{mode:2});var Jkv;var RGP;var wl=function(){return _.u.apply(this,arguments)||this};
_.p(wl,_.u);wl.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wl.prototype,"data",void 0);_.J([_.Zp({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],wl);
_.Y(wl,"yt-post-confirmation-flow-step-renderer",function(){if(RGP===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Jkv===void 0&&(Jkv=document.createElement("template"));var w=Jkv;V.call(W,w.content.cloneNode(!0),y.content.firstChild);RGP=y}y=RGP;return y},{mode:2});var jzd;var $Dq;var tK=function(){return _.u.apply(this,arguments)||this};
_.p(tK,_.u);
tK.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],tK.prototype,"data",void 0);_.J([_.Zp({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],tK);
_.Y(tK,"yt-refund-confirmation-flow-step-renderer",function(){if($Dq===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;jzd===void 0&&(jzd=document.createElement("template"));var w=jzd;V.call(W,w.content.cloneNode(!0),y.content.firstChild);$Dq=y}y=$Dq;return y},{mode:2});_.zY(Kgt);_.zY(pW4);var i6j=_.nn({avatarViewModel:_.ra});_.zY(fpm);var pX=_.nn({commentInteractionViewModel:pW4,sharedSubscriptionViewModel:fpm,buttonViewModel:_.lk,horizontalShelfViewModel:_.WO});_.zY(Tgm);_.zY(mgj);_.zY(MB3);_.zY(q$E);_.zY(UgE);var uev=_.nn({profileIdentityInfoViewModel:_.uTm,profileInfoViewModel:UgE});_.zY(S$j);_.Sl(S$j,"yt-profile-card-view-model",{propNames:["data"]});var Fp=function(){var y=_.u.apply(this,arguments)||this;y.enableFocusFix=_.e("music_web_enable_focus_on_setting_menu_fix")&&_.W4("IS_MOBILE_WEB",!1);y.covered=!1;y.hideMenu=!1;y.isCommentNotificationOnProfileCard=!1;y.scrolledByTouch=!1;y.disableBackdropFilter=_.e("web_disable_backdrop_filter");y.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return y};
_.p(Fp,_.u);_.E=Fp.prototype;
_.E.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"}}}};
_.E.ready=function(){var y=this;this.JSC$19976_containerElement.addEventListener("scroll",function(){y.ytRendererBehavior.markDirty()})};
_.E.attributeChanged=function(y,W){y==="menu-style"&&_.ow(this.hostElement,"yt-multi-page-menu-closed-action",[W])};
_.E.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Dp(this,this.focusOnStampFinished))};
_.E.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Dp(this,this.focusOnStampFinished))};
_.E.reset=function(){this.closeJobId&&(_.HU.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.E.focusOnStampFinished=function(y){y.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Dp(this,this.focusOnStampFinished)),this.doFocus())};
_.E.doFocus=function(){var y=_.JOE(this.sectionsElement);y.length&&y[0].focus()};
_.E.computeMenuStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.E.computeIsCommentNotificationOnProfileCard=function(y){return _.e("enable_profile_cards_on_comments")&&y.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.E.computeHideMenu=function(y,W){return y||!(!W||!W.showLoadingSpinner)};
_.E.onPopupClosed=function(){this.isPopUpOpen=!1;_.ow(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.E.onPopupOpened=function(y,W){this.isPopUpOpen=!0;W.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.h1(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.ig({type:"CHANNEL_REPORT_RESET"})))};
_.E.onYtNavigate=function(y,W){this.shouldCloseOnNavigateEvent(W.endpoint)&&_.ow(this.hostElement,"yt-close-all-popups-action")};
_.E.handleEndpoint=function(y){y=_.h(y,_.Zs);!this.isCommentNotificationOnProfileCard&&y&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$19976_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.E.handleActions=function(y){for(var W=0,V=y.length;W<V;W++){var w=_.h(y[W],wPq);w&&this.handleGetMultiPageMenuAction(w);(w=_.h(y[W],_.sym))&&this.handleAppendContinuationItemsAction(w)}};
_.E.onServiceRequestSentOrCompleted=function(y,W){y.detail&&y.detail.endpoint&&this.handleEndpoint(y.detail.endpoint);W.actions&&this.handleActions(W.actions)};
_.E.handleGetMultiPageMenuAction=function(y){var W=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.i6(this.submenuElement).appendChild(W);(y=y.menu.multiPageMenuRenderer)&&this.logSubmenu(y);W.data=y;W.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.E.handleAppendContinuationItemsAction=function(y){if(this.data&&y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&y.continuationItems&&this.data.sections){var W=this.data.sections.length-1;this.data.sections[W].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),W--);if(this.data.sections[W].multiPageMenuNotificationSectionRenderer&&y.continuationItems){y=_.N(y==null?void 0:y.continuationItems);for(var V=y.next();!V.done;V=y.next())if(V=V.value,_.h(V,Ui3)){var w=
void 0,t=void 0,F=void 0,I=void 0,P=void 0;((w=this)==null?0:(t=w.data)==null?0:(F=t.sections)==null?0:(I=F[W])==null?0:(P=I.multiPageMenuNotificationSectionRenderer)==null?0:P.items)&&this.push("data.sections."+W+".multiPageMenuNotificationSectionRenderer.items",V)}else if(_.h(V,_.feR)||_.h(V,_.e3))this.push("data.sections",V),W++}}};
_.E.logSubmenu=function(y){if(!_.e("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var W=this.ytRendererBehavior.getScreenLayer(),V=_.Xn(W),w=_.Hf(W);if((y=y.trackingParams)&&V&&w){var t=_.nD(y);_.e("combine_ve_grafts")?_.BC().graftServerVe(y,w,W):_.Fr(V,w,t)}}};
_.E.emptySubmenuContainer=function(){for(var y=_.i6(this.submenuElement);y.firstChild;)y.removeChild(y.firstChild)};
_.E.onMenuBackTap=function(y){_.h1(this.hostElement,"yt-submenu-closed");y.stopPropagation()};
_.E.onSubmenuClosed=function(y){_.vW(y)!==this.hostElement&&(this.covered=!1,_.h1(this.hostElement,"yt-refit"),y.stopPropagation())};
_.E.onRetrieveLocation=function(y,W){W.hasComments&&(W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),y.stopPropagation())};
_.E.shouldCloseOnNavigateEvent=function(y){if(!y)return!0;if(_.h(y,_.f4J)||_.h(y,_.ToA)||_.h(y,_.i8Q)||_.h(y,_.wS))return!1;var W;return((W=_.h(y==null?void 0:y.commandMetadata,_.dw))==null?0:W.ignoreNavigation)?!1:!0};
_.E.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.E.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.E.refitAfterRender=function(){var y=this;_.gy(this,function(){_.h1(y.hostElement,"yt-refit")})};
Fp.prototype.refitAfterRender=Fp.prototype.refitAfterRender;Fp.prototype.onRetrieveLocation=Fp.prototype.onRetrieveLocation;Fp.prototype.onSubmenuClosed=Fp.prototype.onSubmenuClosed;Fp.prototype.onMenuBackTap=Fp.prototype.onMenuBackTap;Fp.prototype.onServiceRequestSentOrCompleted=Fp.prototype.onServiceRequestSentOrCompleted;Fp.prototype.onYtNavigate=Fp.prototype.onYtNavigate;Fp.prototype.onPopupOpened=Fp.prototype.onPopupOpened;Fp.prototype.onPopupClosed=Fp.prototype.onPopupClosed;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Fp.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Fp.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Fp.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],Fp.prototype,"enableFocusFix",void 0);_.J([_.q(),_.R("design:type",Object)],Fp.prototype,"covered",void 0);_.J([_.q({computed:"computeHideMenu(covered, data)"}),_.R("design:type",Object)],Fp.prototype,"hideMenu",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.R("design:type",String)],Fp.prototype,"menuStyle",void 0);
_.J([_.q({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.R("design:type",Object)],Fp.prototype,"isCommentNotificationOnProfileCard",void 0);_.J([_.q(),_.R("design:type",Boolean)],Fp.prototype,"isPopUpOpen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Fp.prototype,"scrolledByTouch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Fp.prototype,"disableBackdropFilter",void 0);
_.J([_.s$("#sections"),_.R("design:type",HTMLElement)],Fp.prototype,"sectionsElement",void 0);_.J([_.s$("#spinner"),_.R("design:type",HTMLElement)],Fp.prototype,"spinnerElement",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],Fp.prototype,"headerElement",void 0);_.J([_.s$("#container"),_.R("design:type",HTMLElement)],Fp.prototype,"JSC$19976_containerElement",void 0);_.J([_.s$("#submenu"),_.R("design:type",HTMLElement)],Fp.prototype,"submenuElement",void 0);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fp.prototype,"onPopupClosed",null);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Fp.prototype,"onPopupOpened",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Fp.prototype,"onYtNavigate",null);
_.J([_.l6("yt-service-request-completed"),_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],Fp.prototype,"onServiceRequestSentOrCompleted",null);_.J([_.l6("yt-menu-back-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Fp.prototype,"onMenuBackTap",null);
_.J([_.l6("yt-submenu-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Fp.prototype,"onSubmenuClosed",null);_.J([_.l6("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Fp.prototype,"onRetrieveLocation",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fp.prototype,"refitAfterRender",null);
_.J([_.k({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Fp);
_.Y(Fp,"ytd-multi-page-menu-renderer",function(){if(pGq!==void 0)return pGq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return pGq=y},{mode:1});var nrv;var EY=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return y};
_.p(EY,_.u);_.E=EY.prototype;_.E.created=function(){this.showTooltips=!0};
_.E.computeAccessibility_=function(y){return this.get("accessibility.accessibilityData",y)||null};
_.E.onTap=function(){var y=_.Kg(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(y&&y.length===1&&y[0])_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var W;if((W=this.data)==null?0:W.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var V;((V=this.data)==null?0:V.menuRequest)&&_.i5(this.hostElement,[this.data.menuRequest])}}};
_.E.handleTopbarMenuClosedAction=function(y){var W,V;(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(y)===((W=this.data)==null?void 0:(V=W.icon)==null?void 0:V.iconType)&&this.toggleIconState(!1)};
_.E.toggleIconState=function(y){_.e("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=y)};
_.E.handleUpdateTopbarAvatarAction=function(y){var W;y=(W=_.h(y,rgP))==null?void 0:W.avatarUrl;var V,w;W=(V=this.data)==null?void 0:(w=V.avatar)==null?void 0:w.thumbnails;y&&W&&(V={thumbnails:[Object.assign({},W[0],{url:y})]},this.set("data.avatar",V))};
_.CM.Object.defineProperties(EY.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.i6(this.hostElement).querySelector("#button")}}});
EY.prototype.onTap=EY.prototype.onTap;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],EY.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.Nti.YtButtonBehavior),_.R("design:type",Object)],EY.prototype,"ytButtonBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],EY.prototype,"data",void 0);
_.J([_.s$("yt-icon-button#button"),_.R("design:type",Object)],EY.prototype,"iconButton",void 0);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EY.prototype,"onTap",null);_.J([_.k({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],EY);
_.Y(EY,"ytd-topbar-menu-button-renderer",function(){if(nrv!==void 0)return nrv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nrv=y},{mode:1});var H9v;var Np=function(){return _.u.apply(this,arguments)||this};
_.p(Np,_.u);Np.prototype.getSelected=function(){return this.reasons.selected};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Np.prototype,"data",void 0);_.J([_.s$("#reasons"),_.R("design:type",Object)],Np.prototype,"reasons",void 0);_.J([_.k({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Np);
_.Y(Np,"ytd-ad-feedback-content",function(){if(H9v!==void 0)return H9v;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return H9v=y},{mode:1});var XGP;var IQ=function(){return _.u.apply(this,arguments)||this};
_.p(IQ,_.u);_.E=IQ.prototype;_.E.onPopupOpened=function(){_.ow(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.E.computeConfirmButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.confirmLabel}};
_.E.computeCancelButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.cancelLabel}};
_.E.onConfirmTap=function(){var y=this.content.getSelected();y!==void 0&&(y=this.data.reasons[y].endpoint)&&(_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}}),_.ow(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.E.sendFeedbackSubmitToastAction=function(){var y;(y=this.data)!=null&&y.completionMessage&&_.ow(this.hostElement,"yt-open-popup-action",[_.zw(this.data.completionMessage),this])};
_.E.onCancelTap=function(){_.ow(this.hostElement,"yt-close-popup-action")};
IQ.prototype.onPopupOpened=IQ.prototype.onPopupOpened;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],IQ.prototype,"data",void 0);_.J([_.s$("#content"),_.R("design:type",Object)],IQ.prototype,"content",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],IQ.prototype,"onPopupOpened",null);
_.J([_.k({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],IQ);
_.Y(IQ,"ytd-ad-feedback-renderer",function(){if(XGP!==void 0)return XGP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return XGP=y},{mode:1});var art;var gl=function(){return _.u.apply(this,arguments)||this};
_.p(gl,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gl.prototype,"data",void 0);_.J([_.k({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],gl);
_.Y(gl,"ytd-ad-info-dialog-content",function(){if(art!==void 0)return art;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return art=y},{mode:1});var GXP;var PJ=function(){return _.u.apply(this,arguments)||this};
_.p(PJ,_.u);PJ.prototype.computeConfirmButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.confirmLabel}};
PJ.prototype.onConfirmTap=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
PJ.prototype.computeShouldShowTitle=function(){var y;return!((y=this.data)==null||!y.title)};
PJ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
PJ.prototype.onPopupClosed=PJ.prototype.onPopupClosed;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PJ.prototype,"data",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PJ.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],PJ);
_.Y(PJ,"ytd-ad-info-dialog-renderer",function(){if(GXP!==void 0)return GXP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return GXP=y},{mode:1});var rku;var CL=function(){var y=_.u.apply(this,arguments)||this;y.actionButtonClass="action-button";y.dismissButtonId="dismiss-button";y.dialogDismiss=!0;return y};
_.p(CL,_.u);_.E=CL.prototype;_.E.computeInPlayer=function(y){return(y==null?void 0:y.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.E.computedLogo=function(){var y,W;return this.isDarkTheme()?(y=this.data)==null?void 0:y.logoDark:(W=this.data)==null?void 0:W.logo};
_.E.computedHeaderImage=function(){var y,W;return this.isDarkTheme()?(y=this.data)==null?void 0:y.headerImageDark:(W=this.data)==null?void 0:W.headerImage};
_.E.computeLogoIconId=function(){var y,W,V,w=(y=this.computedLogo())==null?void 0:(W=y.sources)==null?void 0:(V=W[0])==null?void 0:V.height;return w&&w%31===0?"logo-icon-with-padding":"logo-icon"};
_.E.computeLogoIconHeight=function(){var y,W,V,w=(y=this.computedLogo())==null?void 0:(W=y.sources)==null?void 0:(V=W[0])==null?void 0:V.height;return w&&w%31===0?"31":"24"};
_.E.onPopupClosed=function(){_.hs().resolve(_.qz).dispose()};
_.E.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.E.onShow=function(){this.inPlayer&&_.lN(6)};
_.E.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var y=0;y<this.data.impressionEndpoints.length;y++){var W=_.h(this.data.impressionEndpoints[y],_.wL);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.E.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ow(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.CM.Object.defineProperties(CL.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.headerImageDark)&&!((W=this.data)==null||!W.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.secondaryButton)}}});
CL.prototype.onPopupClosed=CL.prototype.onPopupClosed;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],CL.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.g0.YtVisibilityBehavior),_.R("design:type",Object)],CL.prototype,"ytVisibilityBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],CL.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],CL.prototype,"actionButtonClass",void 0);_.J([_.q(),_.R("design:type",Object)],CL.prototype,"dismissButtonId",void 0);_.J([_.q(),_.R("design:type",Object)],CL.prototype,"dialogDismiss",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],CL.prototype,"hasHeaderImage",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],CL.prototype,"hasPremiumButton",null);
_.J([_.q({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.R("design:type",Boolean)],CL.prototype,"inPlayer",void 0);_.J([_.s$("#dismiss-button"),_.R("design:type",HTMLElement)],CL.prototype,"dismissButton",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],CL.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],CL);
_.Y(CL,"ytd-enforcement-message-view-model",function(){if(rku!==void 0)return rku;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return rku=y},{mode:1});var b9E;var Qzq;var OY=function(){var y=_.u.apply(this,arguments)||this;y.TEST_ONLY={immediateValidation:function(){y.immediateValidation()},
onValidationResponse:function(W){y.onValidationResponse(W)},
onGenerateHandleFromNameResponse:function(W){y.onGenerateHandleFromNameResponse(W)}};
return y};
_.p(OY,_.u);_.E=OY.prototype;_.E.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.E.validate=function(){this.immediateValidation()};
_.E.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.E.setHandleInputValue=function(y){this.handleDir=this.getHandleDir(y);this.handleInput.value=y;this.validationState={status:"PENDING"};this.immediateValidation()};
_.E.getHandleDir=function(y){var W=y===""&&!1;return(W=_.uk6.test.call(_.uk6,y))?"rtl":"ltr"};
_.E.onDataChanged=function(){var y,W;this.handleDir=this.getHandleDir((W=(y=this.data)==null?void 0:y.handle)!=null?W:"");var V;this.validationState=((V=this.data)==null?0:V.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var w;((w=this.data)==null?0:w.validateOnInit)&&this.immediateValidation()};
_.E.stopPropagation=function(y){y.stopPropagation()};
_.E.onInput=function(){var y;this.handleDir=this.getHandleDir((y=this.handleInput.value)!=null?y:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.E.onFocusout=function(y){this.handleInput.contains(y.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.E.delayedValidation=function(){var y,W;this.debouncedValidation((W=(y=this.data)==null?void 0:y.validationDelayMs)!=null?W:1E3)};
_.E.immediateValidation=function(){this.debouncedValidation(0)};
_.E.debouncedValidation=function(y){var W=this;_.NM(this,"debouncedValidation",function(){var V,w=W.staticValidation((V=W.handleInput.value)!=null?V:"");if(w!==void 0)W.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:w};else{var t;if((t=W.data)!=null&&t.validateChannelHandleCommand){W.validationState={status:"LOADING"};var F;W.ytComponentBehavior.resolveCommand(W.data.validateChannelHandleCommand,{form:{handle:(F=W.handleInput.value)!=null?F:""},commandController:{onSuccess:function(I,
P){W.onValidationResponse(P)},
onServerError:function(I,P){W.onValidationServerError(P)}}})}else W.handleUnexpectedValidationError(new _.Js("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",W.data))}},y)};
_.E.staticValidation=function(y){var W;if(((W=this.data)==null?void 0:W.channelHandleStaticValidationParams)!==void 0){W=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(y)&&W.validValueRegexpErrorMessage!==void 0)return W.validValueRegexpErrorMessage;if(W.minLength!==void 0&&y.length<W.minLength&&W.minLengthErrorMessage!==void 0)return W.minLengthErrorMessage;if(W.maxLength!==void 0&&y.length>W.maxLength&&W.maxLengthErrorMessage!==void 0)return W.maxLengthErrorMessage}};
_.E.onValidationResponse=function(y){var W=_.h(y.result,b34);W===void 0?this.handleUnexpectedValidationError(new _.Js("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",y)):this.handleValidationResultRenderer(W)};
_.E.onValidationServerError=function(y){this.handleUnexpectedValidationError(new _.Js("ValidateChannelHandle request failed.",y))};
_.E.handleValidationResultRenderer=function(y){if(y.handle===void 0)this.handleUnexpectedValidationError(new _.Js("ChannelHandleValidationResultRenderer does not contain handle.",y));else if(y.handle===this.handleInput.value)switch(y.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:y.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:y.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Js("Unrecognized ChannelHandleValidationResult",y));break;default:_.gW(y.result)}};
_.E.handleUnexpectedValidationError=function(y){var W;this.validationState={status:"UNKNOWN",handle:(W=this.handleInput.value)!=null?W:""};_.rQ(y)};
_.E.stopEventPropagation=function(y){y.stopPropagation()};
_.E.updateHandleOnChannelNameInputChange=function(y){if(!this.wasEdited){var W,V;this.debouncedGenerateHandleFromName(y,(V=(W=this.data)==null?void 0:W.validationDelayMs)!=null?V:1E3)}};
_.E.debouncedGenerateHandleFromName=function(y,W){var V=this;_.NM(this,"debouncedGenerateHandleFromName",function(){var w;(w=V.data)!=null&&w.validateChannelHandleCommand?V.ytComponentBehavior.resolveCommand(V.data.validateChannelHandleCommand,{form:{name:y},commandController:{onSuccess:function(t,F){V.onGenerateHandleFromNameResponse(F)},
onServerError:function(t,F){_.rQ(new _.Js("Error calling GenerateHandleFromName",F))}}}):_.rQ(new _.Js("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",V.data))},W)};
_.E.onGenerateHandleFromNameResponse=function(y){this.wasEdited||((y=_.h(y.result,QiE))?this.setHandleInputValue(y.handle):_.rQ(new _.Js("Invalid results when generate handle from name")))};
_.CM.Object.defineProperties(OY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var y;if(y=this.validationState)y=this.validationState,y=y.status==="OK"||y.status==="UNKNOWN";if(y)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.validationState)==null?void 0:y.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 y,W=(y=this.channelHandleEntity)==null?void 0:y.handleEdit;this.handleDir=this.getHandleDir(W!=null?W:"");return W}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var y,W;if(((y=this.data)==null?void 0:(W=y.channelHandleStaticValidationParams)==null?void 0:W.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
OY.prototype.stopEventPropagation=OY.prototype.stopEventPropagation;OY.prototype.onDataChanged=OY.prototype.onDataChanged;OY.prototype.applyHandleEdit=OY.prototype.applyHandleEdit;OY.prototype.onValueChanged=OY.prototype.onValueChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],OY.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],OY.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Boolean)],OY.prototype,"wasEdited",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],OY.prototype,"handleDir",void 0);_.J([_.s$("#handle-input"),_.R("design:type",Object)],OY.prototype,"handleInput",void 0);_.J([_.q(),_.M("validationState"),_.R("design:type",Object),_.R("design:paramtypes",[])],OY.prototype,"value",null);
_.J([_.xA("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OY.prototype,"onValueChanged",null);_.J([_.M("validationState"),_.R("design:type",Object),_.R("design:paramtypes",[])],OY.prototype,"errorIndicator",null);_.J([_.q({reflectToAttribute:!0}),_.M("errorIndicator"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],OY.prototype,"borderErrorIndicator",null);
_.J([_.q({selectorArgs:["data.channelHandleEntityKey"],selector:function(y,W){return _.UB(y.entities,"channelHandle",W)}}),
_.R("design:type",Object)],OY.prototype,"channelHandleEntity",void 0);_.J([_.M("channelHandleEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],OY.prototype,"handleEdit",null);_.J([_.xA("handleEdit"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OY.prototype,"applyHandleEdit",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OY.prototype,"onDataChanged",null);
_.J([_.M("data.channelHandleStaticValidationParams.validValueRegexp"),_.R("design:type",Object),_.R("design:paramtypes",[])],OY.prototype,"validValueRegexp",null);_.J([_.l6("yt-service-request-sent"),_.l6("yt-service-request-completed"),_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],OY.prototype,"stopEventPropagation",null);_.J([_.k({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],OY);
_.Y(OY,"ytd-channel-handle-input-renderer",function(){if(Qzq!==void 0)return Qzq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Qzq=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var vJ=function(){var y=_.u.apply(this,arguments)||this;y.data=null;y.errorMessage=null;y.isLoading=!0;y.hideContainer=!1;y.enableNewChannelCreationOnIdForAll=_.e("enable_new_channel_creation_for_id4all");y.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"};y.testOnly={setErrorMessage:function(W){y.resetErrorState();
y.setErrorState(W)}};
return y};
_.p(vJ,_.u);_.E=vJ.prototype;_.E.created=function(){this.logScreenVe()};
_.E.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")};
_.E.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var y;((y=this.zeroStepErrorMessageEntity)==null?0:y.value)&&this.set("errorMessage",_.CO(this.zeroStepErrorMessageEntity.value))};
_.E.onCreateTap=function(){var y=this;if(this.data&&this.data.channelCreationEndpoint){var W,V;if(!((W=this.data.createChannelButton)==null?0:(V=W.buttonRenderer)==null?0:V.isDisabled)){var w;if((w=this.nameInput)!=null&&w.value){this.setLoadingState();var t,F;W=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(t=this.handleInput)==null?void 0:t.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((F=this.handleInput)==null?void 0:F.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:W,commandController:{onSuccess:function(I,P){y.onChannelCreationEndpointSuccess(P);y.obakeImageSource&&_.Hp("channelCreatedWithObakeImage",{imageSourceType:y.obakeImageSource})},
onServerError:function(){y.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.E.endpointRequiresServiceRequestAction=function(y){return!!_.h(y,_.rx)||!!_.h(y,rgP)};
_.E.isNavigateAction=function(y){var W;return!!_.h(y,_.Lk)||!!_.h((W=_.h(y,WPv))==null?void 0:W.command,_.Lk)};
_.E.isPlaylistAction=function(y){return!!_.h(y,_.yB)||!!_.h(y,_.E8)};
_.E.onChannelCreationEndpointSuccess=function(y){if(y.createChannelError){var W;this.setErrorState((W=y.createChannelError)==null?void 0:W.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.e("enable_secondary_channel_creation_form")&&y.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(y.navigationEndpoint);if(y.actions){W=_.N(y.actions);for(var V=W.next();!V.done;V=W.next())if(V=V.value,this.endpointRequiresServiceRequestAction(V)&&this.ytComponentBehavior.resolveCommand(V),
this.isNavigateAction(V)){var w=void 0;V=_.h((w=_.h(V,WPv))==null?void 0:w.command,_.Lk);w=void 0;this.isPlaylistAction((w=V)==null?void 0:w.endpoint)&&(_.ow(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),w=void 0,this.ytComponentBehavior.resolveCommand((w=V)==null?void 0:w.endpoint))}}y.actions&&y.actions.some(function(t){var F;return _.h(t,_.Lk)||_.h((F=_.h(t,WPv))==null?void 0:F.command,_.Lk)})||_.ow(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.E.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.E.onCancelTap=function(){var y,W,V;if(!((y=this.data)==null?0:(W=y.cancelButton)==null?0:(V=W.buttonRenderer)==null?0:V.isDisabled)){var w,t,F;y=(w=this.data)==null?void 0:(t=w.cancelButton)==null?void 0:(F=t.buttonRenderer)==null?void 0:F.command;if(!y||!_.h(y,_.cFy)){var I;this.nameInput&&((I=this.data)==null?0:I.name)&&(this.nameInput.value=this.data.name);var P;this.handleInput&&((P=this.data)==null?0:P.channelHandleInput)&&(this.handleInput.data=_.h(this.data.channelHandleInput,Z3m));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.E.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.E.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.E.onClearProfilePhotoTap=function(){var y,W,V;((y=this.data)==null?0:(W=y.clearProfilePhotoButton)==null?0:(V=W.buttonRenderer)==null?0:V.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.E.onEditAvatarTap=function(){var y,W,V;((y=this.data)==null?0:(W=y.editAvatarButton)==null?0:(V=W.buttonRenderer)==null?0:V.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.E.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)};
_.E.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var y;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((y=this.data)==null?0:y.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.E.setErrorState=function(y){this.resetErrorState();if(y)this.set("errorMessage",y);else{var W;if((W=this.zeroStepErrorMessageEntity)==null?0:W.value)this.set("errorMessage",_.CO(this.zeroStepErrorMessageEntity.value));else{var V;((V=this.data)==null?0:V.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.E.fetchImageBlobWithAlr=function(y,W){W=W===void 0?5:W;var V=this,w,t,F,I,P;return _.g(function(C){switch(C.nextAddress){case 1:return C.yield(fetch(y,{method:"GET",mode:"cors"}),2);case 2:w=C.yieldResult;if(w.ok){C.jumpTo(3);break}if(W===0)throw Error();t=V.addJitter(Math.pow(2,5-W));return C.yield(new Promise(function(d){setTimeout(d,t*1E3)}),4);
case 4:return C.return(V.fetchImageBlobWithAlr(y,W-1));case 3:if(!w.headers.get("content-type").split(";").some(function(d){return d.trim()==="text/plain"})){C.jumpTo(5);
break}F=V;I=F.fetchImageBlobWithAlr;return C.yield(w.text(),6);case 6:return C.return(I.call(F,C.yieldResult,W-1));case 5:return C.yield(w.blob(),7);case 7:return P=C.yieldResult,C.return(P)}})};
_.E.addJitter=function(y){var W=y*.3*Math.random();Math.random()>.5&&(W*=-1);return y+W};
_.E.openProfilePicturePicker=function(){var y=this,W,V,w,t,F;return _.g(function(I){if(I.nextAddress==1){W=y.data.scottyUploadUrl;if(!W)return I.return();V=document.documentElement.hasAttribute("dark");w=document.body.style.colorScheme;V&&(document.body.style.colorScheme="dark");t=tbd(Fxq(wYd(rPj(V?"dark":"light")),function(P){var C,d,L,z,c;return _.g(function(K){if(K.nextAddress==1)return C=_.NI(KxP(new rj(P.photoUrl,!1)).build(),"alr","yes"),y.obakeImageSource=y.pictureChangeSourceToObakeImageSourceType(P.photoSource),
_.l7(K,2),y.setLoadingState(),K.yield(y.fetchImageBlobWithAlr(C),4);if(K.nextAddress!=2)return d=K.yieldResult,L=new FileReader,L.addEventListener("load",function(){var f,U,l,x,B,r;return _.g(function(H){if(H.nextAddress==1){if(d.size>15728640)return y.setErrorState((f=y.data)==null?void 0:f.imageSizeErrorMessage),_.rQ(Error("tl")),H.return();if(!L.result)return y.setErrorState((U=y.data)==null?void 0:U.genericImageLoadErrorMessage),_.rQ(Error("ul")),H.return();l=L.result;_.l7(H,2);return H.yield(Dgv(d,
W),4)}if(H.nextAddress!=2)return x=H.yieldResult,y.handleImageUpdatedAction(l,x),y.resetErrorState(),_.E6(H,0);B=_.YX(H);y.setErrorState((r=y.data)==null?void 0:r.uploadErrorMessage);if(B instanceof Error)_.ap(B);else{var a=new _.Js(JSON.stringify(B));_.ap(a)}_.B7(H)})}),L.readAsDataURL(d),_.E6(K,0);
z=_.YX(K);y.setErrorState((c=y.data)==null?void 0:c.genericImageLoadErrorMessage);z instanceof Error?_.ap(z):_.GD(new _.Js(JSON.stringify(z)));_.B7(K)})}),function(){y.hideContainer=!1;
document.body.style.colorScheme=w});
_.l7(I,2);return I.yield(t.openPicker(),4)}if(I.nextAddress!=2)return _.E6(I,0);_.YX(I);y.setErrorState((F=y.data)==null?void 0:F.selectImageErrorMessage);_.B7(I)})};
_.E.pictureChangeSourceToObakeImageSourceType=function(y){switch(y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.E.logScreenVe=function(){_.qx(_.BC(),124448)};
_.E.graftServerVe=function(){var y=_.Hf(),W,V,w=(W=this.data)==null?void 0:(V=W.loggingDirectives)==null?void 0:V.trackingParams;w&&y&&(this.channelCreationFormVe=_.BC().graftServerVe(w,y),y={visualElement:this.channelCreationFormVe},_.AY().reportShown(y))};
_.E.isNameChanged=function(y){var W;return((W=this.data)==null?void 0:W.name)!==y};
_.E.isHandleChanged=function(y){var W,V=_.h((W=this.data)==null?void 0:W.channelHandleInput,Z3m);return V&&y?V.handle!==y:!1};
_.E.handleImageUpdatedAction=function(y,W){this.hideContainer=!1;this.previewDataUrl=y;this.encryptedBlobId=W};
_.E.handleImageSelectionErrorAction=function(y){this.hideContainer=!1;this.setErrorState(y)};
_.E.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.E.showContainer=function(){this.hideContainer=!1};
_.E.maybeWipeZeroStepErrorMessage=function(){var y,W=(y=this.data)==null?void 0:y.zeroStepErrorMessageEntityKey,V;W&&((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.ytdReduxBehavior.dispatch(_.B5("stringEntity",W,{key:W,value:""}))};
_.CM.Object.defineProperties(vJ.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 y;return((y=this.photoThumbnail)==null?0:y.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 y;return!((y=this.data)==null||!y.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.descriptionInfo}}});
vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],vJ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vJ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],vJ.prototype,"errorMessage",void 0);
_.J([_.q(),_.R("design:type",Object)],vJ.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",String)],vJ.prototype,"previewDataUrl",void 0);_.J([_.q(),_.R("design:type",Number)],vJ.prototype,"obakeImageSource",void 0);_.J([_.q(),_.R("design:type",Object)],vJ.prototype,"hideContainer",void 0);_.J([_.s$("#title-input"),_.R("design:type",Object)],vJ.prototype,"nameInput",void 0);_.J([_.s$("#handle-input"),_.R("design:type",Object)],vJ.prototype,"handleInput",void 0);
_.J([_.q(),_.R("design:type",Boolean)],vJ.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.J([_.q({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.WYv}),_.R("design:type",Object)],vJ.prototype,"zeroStepErrorMessageEntity",void 0);_.J([_.M("data","data.isDefaultProfilePhoto","previewDataUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],vJ.prototype,"photoThumbnail",null);
_.J([_.M("data","data.isDefaultProfilePhoto","photoThumbnail"),_.R("design:type",Object),_.R("design:paramtypes",[])],vJ.prototype,"userSetPhotoThumbnailUrl",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vJ.prototype,"hideProfilePhotoButtonLayer",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vJ.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.J([_.Jc("data","zeroStepErrorMessageEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vJ.prototype,"dataChanged",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.descriptionInfo","zeroStepErrorMessageEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],vJ.prototype,"description",null);_.J([_.k({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],vJ);
_.Y(vJ,"ytd-channel-creation-dialog-renderer",function(){if(b9E!==void 0)return b9E;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return b9E=y},{mode:1});var Z9C;var dl=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;y.isDisabled=!1;return y};
_.p(dl,_.u);dl.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
dl.prototype.updateDisabled=function(){var y;this.isDisabled=this.isLoading||((y=this.handleInput)==null?void 0:y.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
dl.prototype.onSaveClick=function(){var y=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var W;((W=this.data)==null?void 0:W.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 V;if((V=y.data)==null?0:V.nextEndpoint){var w;y.ytComponentBehavior.resolveCommand((w=y.data)==null?void 0:w.nextEndpoint)}else y.isLoading=
!1,y.closeDialog()},
onServerError:function(){y.isLoading=!1;y.handleInput.validate();var V;y.errorMessage=(V=y.data)==null?void 0:V.errorMessage}}}))}};
dl.prototype.closeDialog=function(){_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
dl.prototype.updateDisabled=dl.prototype.updateDisabled;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],dl.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dl.prototype,"data",void 0);_.J([_.s$("#handle-input"),_.R("design:type",Object)],dl.prototype,"handleInput",void 0);_.J([_.xA("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dl.prototype,"updateDisabled",null);
_.J([_.k({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],dl);
_.Y(dl,"ytd-channel-handle-edit-dialog-renderer",function(){if(Z9C!==void 0)return Z9C;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Z9C=y},{mode:1});var y4E;var LL=function(){return _.u.apply(this,arguments)||this};
_.p(LL,_.u);LL.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LL.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],LL);
_.Y(LL,"ytd-channel-switcher-footer-renderer",function(){if(y4E!==void 0)return y4E;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return y4E=y},{mode:1});var WsC;var Vcq;var zu=function(){return _.u.apply(this,arguments)||this};
_.p(zu,_.u);zu.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
zu.prototype.onIronChange=zu.prototype.onIronChange;_.J([_.q(),_.R("design:type",Object)],zu.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Function)],zu.prototype,"onDontAskAgainChanged",void 0);_.J([_.s$("#checkbox"),_.R("design:type",Object)],zu.prototype,"checkbox",void 0);_.J([_.l6("iron-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zu.prototype,"onIronChange",null);
_.J([_.k({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],zu);
_.Y(zu,"ytd-identity-prompt-footer-renderer",function(){if(Vcq!==void 0)return Vcq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Vcq=y},{mode:1});var cJ=function(){var y=_.u.apply(this,arguments)||this;y.dontAskAgain=!1;y.showPopup=!1;y.boundDontAskAgainChanged=function(W){y.dontAskAgainChanged(W)};
y.boundOnAccountItemTap=function(W){y.onAccountItemTap(W)};
return y};
_.p(cJ,_.u);_.E=cJ.prototype;
_.E.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]]"}}}}}};
_.E.ready=function(){var y=this;_.i6(this.hostElement).querySelector("#container").addEventListener("scroll",function(){y.ytRendererBehavior.markDirty()})};
_.E.dontAskAgainChanged=function(y){this.dontAskAgain=y};
_.E.onAccountItemTap=function(y){if(y){var W={};this.dontAskAgain&&(W={dont_ask_again:this.dontAskAgain});_.Ng(y,W)}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.E.redirectOnlyAccount=function(y){y.sections&&y.sections.length>0&&(y=_.h(y.sections[0],_.T4J),(y==null?0:y.contents)&&(y==null?void 0:y.contents.length)<=1?(y=_.P4(window.location.href),(y==null?0:y.next)&&_.Nwj(y.next)?_.Ng(y.next):_.Ng("/")):this.showPopup=!0)};
cJ.prototype.dataChanged=cJ.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cJ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Object)],cJ.prototype,"dontAskAgain",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],cJ.prototype,"showPopup",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Object)],cJ.prototype,"boundDontAskAgainChanged",void 0);_.J([_.q({reflectToAttribute:!1}),_.R("design:type",Object)],cJ.prototype,"boundOnAccountItemTap",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cJ.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],cJ);
_.Y(cJ,"ytd-channel-switcher-renderer",function(){if(WsC!==void 0)return WsC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return WsC=y},{mode:1});var wvj;var ek=function(){return _.u.apply(this,arguments)||this};
_.p(ek,_.u);_.CM.Object.defineProperties(ek.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.J([_.q(),_.R("design:type",Object)],ek.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],ek.prototype,"steps",null);_.J([_.k({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],ek);
_.Y(ek,"ytd-channel-transfer-stepper-renderer",function(){if(wvj!==void 0)return wvj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return wvj=y},{mode:1});var tcm;var hK=function(){var y=_.u.apply(this,arguments)||this;y.data=null;y.isError=!1;y.isLoading=!1;return y};
_.p(hK,_.u);_.E=hK.prototype;_.E.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"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.E.computeProfileName=function(y){return y?y.givenNameValue+" "+y.familyNameValue:""};
_.E.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)};
_.E.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)};
hK.prototype.onYtServiceRequestError=hK.prototype.onYtServiceRequestError;hK.prototype.onYtServiceRequestSent=hK.prototype.onYtServiceRequestSent;hK.prototype.dataChanged=hK.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],hK.prototype,"data",void 0);
_.J([_.q({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.R("design:type",String)],hK.prototype,"profileName",void 0);_.J([_.q(),_.R("design:type",Object)],hK.prototype,"isError",void 0);_.J([_.q(),_.R("design:type",Object)],hK.prototype,"isLoading",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hK.prototype,"dataChanged",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],hK.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],hK.prototype,"onYtServiceRequestError",null);_.J([_.k({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],hK);
_.Y(hK,"ytd-channel-warm-welcome-cont-renderer",function(){if(tcm!==void 0)return tcm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return tcm=y},{mode:1});var Fsj;var oQ=function(){var y=_.u.apply(this,arguments)||this;y.data=null;return y};
_.p(oQ,_.u);oQ.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
oQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],oQ.prototype,"data",void 0);_.J([_.k({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],oQ);
_.Y(oQ,"ytd-channel-warm-welcome-renderer",function(){if(Fsj!==void 0)return Fsj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Fsj=y},{mode:1});var Eh4;var KL=function(){return _.u.apply(this,arguments)||this};
_.p(KL,_.u);_.CM.Object.defineProperties(KL.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.authorThumbnail)||{}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KL.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],KL.prototype,"thumbnailDetails",null);_.J([_.k({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],KL);
_.Y(KL,"ytd-comment-preview-renderer",function(){if(Eh4!==void 0)return Eh4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Eh4=y},{mode:1});var NkC;var pL=function(){return _.u.apply(this,arguments)||this};
_.p(pL,_.u);pL.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.CM.Object.defineProperties(pL.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.submitButton}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pL.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],pL.prototype,"submitButton",null);_.J([_.k({is:"ytd-notice-renderer",disableElementRegistration:!0})],pL);
_.Y(pL,"ytd-notice-renderer",function(){if(NkC!==void 0)return NkC;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return NkC=y},{mode:1});var IU3;var iX=function(){return _.u.apply(this,arguments)||this};
_.p(iX,_.u);iX.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iX.prototype,"data",void 0);_.J([_.k({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],iX);
_.Y(iX,"ytd-preview-comment-dialog-content",function(){if(IU3!==void 0)return IU3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return IU3=y},{mode:1});var ghd;var fL=function(){return _.u.apply(this,arguments)||this};
_.p(fL,_.u);fL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
fL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],fL.prototype,"data",void 0);_.J([_.k({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],fL);
_.Y(fL,"ytd-preview-comment-dialog-renderer",function(){if(ghd!==void 0)return ghd;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ghd=y},{mode:1});var Pqj;var Cqj=_.e("web_button_rework")&&_.W4("BUTTON_REWORK")||_.e("web_button_rework_with_live"),Tu=function(){var y=_.u.apply(this,arguments)||this;y.closeLabel=_.u5("CLOSE");y.selectedAmountIndex=1;y.privacyCheckboxValue=!1;y.useAmsterdamStyle=Cqj;y.amountPlaceholderIndex=-1;return y};
_.p(Tu,_.u);_.E=Tu.prototype;_.E.onAmountClick=function(y){this.selectedAmountIndex=_.i6(this.hostElement).querySelector("#amounts").indexForElement(y.currentTarget)};
_.E.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ow(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.E.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ow(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ow(this.hostElement,"yt-close-popup-action",[this.is]);var y;(y=_.Kn())==null||y.getPlayerPromise().then(function(W){W.pauseVideo()})}};
_.E.donationCallback=function(y){y.success?(this.hostElement.hasAttribute("live-chat")&&y.response&&y.response.data&&y.response.data.actions&&_.ow(this.hostElement,"yt-live-chat-open-popup",[y.response.data.actions[0]]),_.ow(this.hostElement,"yt-close-popup-action",[this.is]),_.ow(this.hostElement,"yt-live-chat-close-buy-flow")):y.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(y.errorMessageRenderer)};
_.E.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.i6(this.hostElement).querySelector("#custom-amount-input").focus()};
_.E.updateConfirmationDialogTextWithAmount=function(y){var W=this.getConfirmDialogRuns();W&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(W),"text"],this.getFormattedAmount(y))};
_.E.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.E.getAmountPlaceholderIndex=function(y){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=y.findIndex(function(W){return W.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.E.getFormattedAmount=function(y){var W;return(new _.F4(4,((W=this.data)==null?void 0:W.currencyCode)||"")).format(y)};
_.E.isAmountValid=function(y){if(y==="")return!1;y=Number(y)*1E6;var W=this.get("minAmountMicros",this.data),V=this.get("maxAmountMicros",this.data);return W&&y<W||V&&y>V?!1:!0};
_.E.setInputError=function(){this.shouldShowValidationError?_.i6(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.i6(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.E.setInitialCheckboxValue=function(){var y;this.privacyCheckboxValue=!((y=this.data)==null||!y.privacyCheckboxInitialState)};
_.E.updateCustomAmountInputFromBinding=function(y){this.customAmountInput=y.detail.value};
_.E.updatePrivacyCheckboxValueFromBinding=function(y){this.privacyCheckboxValue=y.detail.value};
_.CM.Object.defineProperties(Tu.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var y=this,W,V;return((W=this.data)==null?void 0:(V=W.suggestedAmounts)==null?void 0:V.map(function(w,t){return{buttonRenderer:{style:y.selectedAmountIndex===t?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:w.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 y;return!((y=this.data)==null||!y.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 y=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(y&&this.amountMicros!==null)return Object.assign({},y,{ypcGetCartEndpoint:Object.assign({},y.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 y=this.get("confirmLargeAmount",this.data);if(y&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),y}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y=this.get("donateButton.buttonRenderer",this.data);if(y)return Object.assign({},y,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Tu.prototype.setInitialCheckboxValue=Tu.prototype.setInitialCheckboxValue;Tu.prototype.setInputError=Tu.prototype.setInputError;Tu.prototype.setFocusOnCustomAmountInput=Tu.prototype.setFocusOnCustomAmountInput;_.J([_.m(irP),_.R("design:type",Object)],Tu.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Tu.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Tu.prototype,"closeLabel",void 0);_.J([_.q(),_.R("design:type",Object)],Tu.prototype,"selectedAmountIndex",void 0);_.J([_.q(),_.R("design:type",String)],Tu.prototype,"customAmountInput",void 0);_.J([_.q(),_.R("design:type",Object)],Tu.prototype,"privacyCheckboxValue",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Tu.prototype,"useAmsterdamStyle",void 0);_.J([_.xA("customAmount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Tu.prototype,"setFocusOnCustomAmountInput",null);_.J([_.M("data","selectedAmountIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],Tu.prototype,"suggestedAmountButtons",null);
_.J([_.M("data","selectedAmountIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Tu.prototype,"isCustomAmountSelected",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Tu.prototype,"showPrivacyCheckbox",null);_.J([_.M("data","selectedAmountIndex","customAmount"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"amountMicros",null);
_.J([_.M("isCustomAmountSelected","customAmountInput"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"customAmount",null);_.J([_.M("customAmount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Tu.prototype,"shouldShowValidationError",null);_.J([_.M("customAmount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Tu.prototype,"isDonateButtonEnabled",null);
_.J([_.M("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"donateCommand",null);_.J([_.M("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"donateCommandWithConfirmation",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"largeDonationThreshold",null);
_.J([_.M("customAmount","donateCommand","amountMicros"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"confirmLargeAmountCommand",null);_.J([_.M("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tu.prototype,"donateButtonRenderer",null);_.J([_.xA("shouldShowValidationError"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Tu.prototype,"setInputError",null);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Tu.prototype,"setInitialCheckboxValue",null);_.J([_.k({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Tu);
_.Y(Tu,"ytd-donation-amount-picker-renderer",function(){if(Pqj!==void 0)return Pqj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Pqj=y},{mode:1});var Otu;var mE=function(){return _.u.apply(this,arguments)||this};
_.p(mE,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.J([_.q({}),_.R("design:type",Object)],mE.prototype,"data",void 0);_.J([_.k({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],mE);
_.Y(mE,"ytd-donation-post-transaction-content",function(){if(Otu!==void 0)return Otu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Otu=y},{mode:1});var vhj;var Mp=function(){return _.u.apply(this,arguments)||this};
_.p(Mp,_.u);Mp.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.J([_.q({}),_.R("design:type",Object)],Mp.prototype,"data",void 0);_.J([_.k({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Mp);
_.Y(Mp,"ytd-donation-post-transaction-renderer",function(){if(vhj!==void 0)return vhj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return vhj=y},{mode:1});var dFu;var Lsj;var qp=function(){return _.u.apply(this,arguments)||this};
_.p(qp,_.u);qp.prototype.computeIsStreamingProvider=function(y){return!!y.isStreamingShelf};
qp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],qp.prototype,"data",void 0);_.J([_.q({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],qp.prototype,"isStreamingProvider",void 0);
_.J([_.k({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],qp);
_.Y(qp,"ytd-media-provider-renderer",function(){if(Lsj!==void 0)return Lsj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Lsj=y},{mode:1});var zrj;var UY=function(){return _.u.apply(this,arguments)||this};
_.p(UY,_.u);UY.prototype.observeLightsourcePalette=function(){var y,W=(y=this.data)==null?void 0:y.vibrantsourceColorPaletteData;W&&_.bF(this.hostElement,W)};
UY.prototype.observeLightsourcePalette=UY.prototype.observeLightsourcePalette;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],UY.prototype,"data",void 0);
_.J([_.xA("data.vibrantsourceColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UY.prototype,"observeLightsourcePalette",null);_.J([_.k({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],UY);
_.Y(UY,"ytd-streaming-pop-up-dialog",function(){if(zrj!==void 0)return zrj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return zrj=y},{mode:1});var uX=function(){return _.u.apply(this,arguments)||this};
_.p(uX,_.u);uX.prototype.onPopupOpened_=function(){var y;((y=this.data)==null?0:y.serviceEndpoint)&&_.hs().resolve(_.oA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
uX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
uX.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"}}}}};
uX.prototype.onPopupOpened_=uX.prototype.onPopupOpened_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.gk),_.R("design:type",Object)],uX.prototype,"ytContinuationHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uX.prototype,"data",void 0);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uX.prototype,"onPopupOpened_",null);_.J([_.k({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],uX);
_.Y(uX,"ytd-brandconnect-popup-renderer",function(){if(dFu!==void 0)return dFu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dFu=y},{mode:1});var c4P;var Sk=function(){return _.u.apply(this,arguments)||this};
_.p(Sk,_.u);_.E=Sk.prototype;_.E.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(){for(var y=0;y<this.getOptionRenderers().length;y++)this.notifyPath("data.options."+y+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+y+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.E.updateSubmitButton=function(y){this.set("data.submitButton.buttonRenderer.isDisabled",!y)};
_.E.computeAlt=function(y){return _.OT(y)};
_.E.onDismissTap=function(){_.ow(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.E.getOptionRenderers=function(y){return(y=y||this.data)&&y.options?y.options.reduce(function(W,V){V.checkboxSurveyOptionRenderer&&W.push(V.checkboxSurveyOptionRenderer);return W},[]):[]};
_.E.onOptionChange=function(y){var W=this,V=!1;if(y.detail.checked)for(var w=this.getOptionRenderers().find(function(P){return P.value===y.detail.value}),t=this.getOptionRenderers(),F=0;F<t.length;F++){var I=t[F];
this.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked");I.checked&&((w==null?0:w.isExclusiveOption)?!I.isExclusiveOption:I.isExclusiveOption)?this.set("data.options."+F+".checkboxSurveyOptionRenderer.checked",!1):I.checked&&(V=!0)}else V=this.getOptionRenderers().some(function(P,C){W.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");return P.checked});
this.updateSubmitButton(V)};
_.E.onSubmitTap=function(){var y=this.getOptionRenderers().filter(function(F){return F.checked});
if(y.length!==0){var W=y.map(function(F){return F.responseEndpoint});
y=[];for(var V=1;V<W.length;V++){var w=void 0,t=(w=_.h(W[V],_.bw))==null?void 0:w.feedbackToken;t&&y.push(t)}W=[W[0]];y.length&&W.push({extra_feedback_tokens:y});_.i5(this.hostElement,W);_.ow(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);y=this.data&&this.data.submitActions||[];if(_.e("kevlar_command_handler_migration_killswitch"))_.fg(this.hostElement,y,this.hostElement);else for(y=_.N(y),W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)}};
Sk.prototype.onOptionChange=Sk.prototype.onOptionChange;Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Sk.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.J([_.m(RF4),_.R("design:type",Object)],Sk.prototype,"ytdHatsSurveyBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Sk.prototype,"data",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sk.prototype,"dataChanged",null);
_.J([_.l6("ytd-checkbox-survey-option-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sk.prototype,"onOptionChange",null);_.J([_.k({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Sk);
_.Y(Sk,"ytd-checkbox-survey-renderer",function(){if(c4P!==void 0)return c4P;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return c4P=y},{mode:1});var erq;var hrE;var Dj=function(){return _.u.apply(this,arguments)||this};
_.p(Dj,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.J([_.m(JWu),_.R("design:type",Object)],Dj.prototype,"ytdDismissalReasonBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dj.prototype,"data",void 0);_.J([_.k({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Dj);
_.Y(Dj,"ytd-dismissal-reason-text-renderer",function(){if(hrE!==void 0)return hrE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return hrE=y},{mode:1});var ohj;var lX=function(){return _.u.apply(this,arguments)||this};
_.p(lX,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.J([_.m(JWu),_.R("design:type",Object)],lX.prototype,"ytdDismissalReasonBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lX.prototype,"data",void 0);_.J([_.k({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],lX);
_.Y(lX,"ytd-dismissal-reason-video-renderer",function(){if(ohj!==void 0)return ohj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ohj=y},{mode:1});var x3=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(x3,_.u);_.E=x3.prototype;_.E.created=function(){this.selectedFeedbackTokens=new d8};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.E.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.E.onDismissalReasonSelected=function(y,W){_.h1(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(W);this.hasReasonsSelected=!0};
_.E.onDismissalReasonDeselected=function(y,W){_.h1(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(W);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.E.onCancelTap=function(){_.ow(this.hostElement,"yt-close-popup-action")};
_.E.onSubmitTap=function(){var y=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(y={feedback_tokens:y},_.hs().resolve(_.oA).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},y,{element:this.hostElement})}));_.ow(this.hostElement,"yt-close-popup-action")};
x3.prototype.onDismissalReasonDeselected=x3.prototype.onDismissalReasonDeselected;x3.prototype.onDismissalReasonSelected=x3.prototype.onDismissalReasonSelected;x3.prototype.dataChanged=x3.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],x3.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Boolean)],x3.prototype,"hasReasonsSelected",void 0);_.J([_.q(),_.R("design:type",d8)],x3.prototype,"selectedFeedbackTokens",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],x3.prototype,"darkerDarkTheme",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x3.prototype,"dataChanged",null);
_.J([_.l6("yt-dismissal-reason-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],x3.prototype,"onDismissalReasonSelected",null);_.J([_.l6("yt-dismissal-reason-deselected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],x3.prototype,"onDismissalReasonDeselected",null);_.J([_.k({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],x3);
_.Y(x3,"ytd-dismissal-follow-up-renderer",function(){if(erq!==void 0)return erq;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return erq=y},{mode:1});var Ksj;var k3=function(){return _.u.apply(this,arguments)||this};
_.p(k3,_.u);_.E=k3.prototype;_.E.onCheckedChange=function(){this.multiselect||_.h1(this.hostElement,"yt-feedback-single-select-changed");_.i6(this.hostElement).querySelector("#freeform").focus();_.h1(this.hostElement,"yt-refit")};
_.E.showTextBox=function(y,W){return y&&W};
_.E.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))};
_.E.updateDataCheckedFromBinding=function(y){this.set("data.checked",y.detail.value)};
_.E.updateDataResultTextFromBinding=function(y){this.set("data.resultText",y.detail.value)};
k3.prototype.dataChanged=k3.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],k3.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],k3.prototype,"multiselect",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],k3.prototype,"dataChanged",null);
_.J([_.k({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],k3);
_.Y(k3,"ytd-feedback-option-renderer",function(){if(Ksj!==void 0)return Ksj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Ksj=y},{mode:1});var pvu;var sY=function(){return _.u.apply(this,arguments)||this};
_.p(sY,_.u);sY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
sY.prototype.onSingleSelectCheckedChanged=function(y){y=_.vW(y);for(var W=0;W<this.data.options.length;W++)if(y.data!==_.h(this.data.options[W],YAq)){var V="data.options."+W+".feedbackOptionRenderer.checked";this.notifyPath(V);this.set(V,!1)}};
sY.prototype.onSingleSelectCheckedChanged=sY.prototype.onSingleSelectCheckedChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sY.prototype,"data",void 0);
_.J([_.l6("yt-feedback-single-select-changed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],sY.prototype,"onSingleSelectCheckedChanged",null);_.J([_.k({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],sY);
_.Y(sY,"ytd-feedback-question-renderer",function(){if(pvu!==void 0)return pvu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return pvu=y},{mode:1});var itt;var AK=function(){return _.u.apply(this,arguments)||this};
_.p(AK,_.u);AK.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
AK.prototype.getSelectedFeedbackResults=function(){for(var y={},W=0;W<this.data.questions.length;W++)for(var V=_.h(this.data.questions[W],ASt),w=0;w<V.options.length;w++){var t=_.h(V.options[w],YAq);t&&t.checked&&(y[t.optionKey]=t.resultText)}return y};
AK.prototype.onKeyUp=function(){var y=this;_.q4(_.HU,function(){_.h1(y.hostElement,"yt-refit")});
_.HU.start()};
AK.prototype.submitSurvey=function(){var y=this.getSelectedFeedbackResults();Object.keys(y).length>0&&this.data.submitFeedbackEndpoint&&(y={survey_results:y,is_feedback_token_unencrypted:!0},_.hs().resolve(_.oA).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},y,{element:this.hostElement})}))};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AK.prototype,"data",void 0);_.J([_.k({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],AK);
_.Y(AK,"ytd-feedback-survey-renderer",function(){if(itt!==void 0)return itt;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return itt=y},{mode:1});var fUj;var Tk3;var Y3=function(){return _.u.apply(this,arguments)||this};
_.p(Y3,_.u);Y3.prototype.computeAlt=function(y){return _.OT(y)};
Y3.prototype.submitResponse=function(){var y,W;(y=this.data)!=null&&y.feedbackToken&&((W=this.data)==null?void 0:W.nextStageIndex)!==void 0&&(_.Kg(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Kg(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Y3.prototype.onClick=function(){this.submitResponse()};
Y3.prototype.onClick=Y3.prototype.onClick;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Y3.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Y3.prototype,"vertical",void 0);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Y3.prototype,"onClick",null);
_.J([_.k({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Y3);
_.Y(Y3,"ytd-single-select-answer-option-renderer",function(){if(Tk3!==void 0)return Tk3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Tk3=y},{mode:1});var mFW;var BJ=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return y};
_.p(BJ,_.u);BJ.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
BJ.prototype.dataChanged=function(){var y,W;this.vertical=((W=(y=this.data)==null?void 0:y.answerOrientation)!=null?W:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
BJ.prototype.submitFeedback=function(y){var W;((W=this.data)==null?0:W.responseEndpoint)&&y&&_.i5(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[y]}])};
BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],BJ.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],BJ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],BJ.prototype,"vertical",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],BJ.prototype,"darkerDarkTheme",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BJ.prototype,"dataChanged",null);_.J([_.k({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],BJ);
_.Y(BJ,"ytd-single-select-question-renderer",function(){if(mFW!==void 0)return mFW;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return mFW=y},{mode:1});var JK=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return y};
_.p(JK,_.u);_.E=JK.prototype;_.E.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"}}}};
_.E.dataChanged=function(){this.jumpToStage(0)};
_.E.jumpToStage=function(y){var W,V;if((W=this.data)==null?0:(V=W.stages)==null?0:V[y])this.currentStage=this.data.stages[y],this.refitAfterRender()};
_.E.computeAlt=function(y){return _.OT(y)};
_.E.computeSimpleMessage=function(y){var W;return(W=_.h(y,RY3))==null?void 0:W.messageText};
_.E.computeHideDismiss=function(y){var W;return(W=_.h(y,diP))==null?void 0:W.hideParentDismissButton};
_.E.onDismissTap=function(){_.ow(this.hostElement,"yt-close-popup-action");_.h(this.currentStage,RY3)||this.data.dismissalEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.E.refitAfterRender=function(){var y=this;_.gy(this,function(){_.h1(y.hostElement,"yt-refit")})};
JK.prototype.dataChanged=JK.prototype.dataChanged;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],JK.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],JK.prototype,"ytActionHandlerBehavior",void 0);
_.J([_.m(RF4),_.R("design:type",Object)],JK.prototype,"ytdHatsSurveyBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JK.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],JK.prototype,"currentStage",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JK.prototype,"dataChanged",null);_.J([_.k({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],JK);
_.Y(JK,"ytd-multi-stage-survey-renderer",function(){if(fUj!==void 0)return fUj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return fUj=y},{mode:1});var Mcv;var RQ=function(){return _.u.apply(this,arguments)||this};
_.p(RQ,_.u);RQ.prototype.computeAlt=function(y){return _.OT(y)};
RQ.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.hs().resolve(_.oA).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ow(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.BQ3(!1)))};
RQ.prototype.onTap=function(){this.vertical&&this.submitResponse()};
RQ.prototype.onTap=RQ.prototype.onTap;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],RQ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RQ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],RQ.prototype,"vertical",void 0);
_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RQ.prototype,"onTap",null);_.J([_.k({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],RQ);
_.Y(RQ,"ytd-single-option-survey-option-renderer",function(){if(Mcv!==void 0)return Mcv;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Mcv=y},{mode:1});var qtj;var jk=function(){return _.u.apply(this,arguments)||this};
_.p(jk,_.u);_.E=jk.prototype;_.E.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(){var y,W;this.vertical=(((y=this.data)==null?void 0:(W=y.surveyOrientation)==null?void 0:W.type)||"HORIZONTAL")==="VERTICAL"};
_.E.computeAlt=function(y){return _.OT(y)};
_.E.onDismissTap=function(){_.ow(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.hs().resolve(_.oA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.BQ3(!1))};
jk.prototype.dataChanged=jk.prototype.dataChanged;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],jk.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(RF4),_.R("design:type",Object)],jk.prototype,"ytdHatsSurveyBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],jk.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],jk.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],jk.prototype,"vertical",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jk.prototype,"dataChanged",null);_.J([_.k({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],jk);
_.Y(jk,"ytd-single-option-survey-renderer",function(){if(qtj!==void 0)return qtj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return qtj=y},{mode:1});var UFj;var $3=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p($3,_.u);$3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$3.prototype.onDismissTap=function(){_.ow(this.hostElement,"yt-close-popup-action")};
$3.prototype.onNavigate=function(){_.ow(this.hostElement,"yt-close-popup-action")};
$3.prototype.onNavigate=$3.prototype.onNavigate;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],$3.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$3.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$3.prototype,"darkerDarkTheme",void 0);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$3.prototype,"onNavigate",null);_.J([_.k({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],$3);
_.Y($3,"ytd-survey-follow-up-renderer",function(){if(UFj!==void 0)return UFj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return UFj=y},{mode:1});var uNj;var St4;var DFt;var nL=function(){var y=_.u.apply(this,arguments)||this;y.polymer2="Element"in Polymer;return y};
_.p(nL,_.u);_.E=nL.prototype;_.E.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.E.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.E.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.E.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("minutes-changed",this.minutes))};
_.E.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("seconds-changed",this.seconds))};
_.E.updateMinutesFromBinding=function(y){this.minutes=y.detail.value};
_.E.updateSecondsFromBinding=function(y){this.seconds=y.detail.value};
nL.prototype.secondsChangedForBinding=nL.prototype.secondsChangedForBinding;nL.prototype.minutesChangedForBinding=nL.prototype.minutesChangedForBinding;nL.prototype.secondsChanged=nL.prototype.secondsChanged;_.J([_.q(),_.R("design:type",String)],nL.prototype,"minutes",void 0);_.J([_.q(),_.R("design:type",String)],nL.prototype,"seconds",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],nL.prototype,"polymer2",void 0);
_.J([_.s$("#seconds"),_.R("design:type",Object)],nL.prototype,"secondsEl",void 0);_.J([_.xA("seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nL.prototype,"secondsChanged",null);_.J([_.xA("minutes"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nL.prototype,"minutesChangedForBinding",null);
_.J([_.xA("seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nL.prototype,"secondsChangedForBinding",null);_.J([_.Zp({is:"yt-timestamp-input",disableElementRegistration:!0})],nL);
_.Y(nL,"yt-timestamp-input",function(){if(DFt===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;St4===void 0&&(St4=document.createElement("template"));var w=St4;V.call(W,w.content.cloneNode(!0),y.content.firstChild);DFt=y}y=DFt;return y},{mode:2});var HJ=function(){return _.u.apply(this,arguments)||this};
_.p(HJ,_.u);_.E=HJ.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20148_scroller.dialogElement=this.hostElement.parentNode};
_.E.dataChanged=function(){var y=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.pn().getPlayerPromise().then(function(W){W=W.getCurrentTime();y.minutes=Math.floor(W/60).toString();y.seconds=(Math.floor(W)%60).toString()})};
_.E.onTapSubmit=function(y){y.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(y={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(y.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(y.minutes=this.minutes,y.seconds=this.seconds),_.hs().resolve(_.oA).resolveCommand(this.serviceEndpoint,{form:Object.assign({},y,{element:this.hostElement})}))};
_.E.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.E.onYtServiceRequestCompleted=function(y,W){W=W.actions;if(Array.isArray(W))for(var V=0,w=W.length;V<w;V++)_.h(W[V],_.Hq)&&(y.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(W[V]))};
_.E.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.E.toggleSubmitButton=function(y){this.set("submitButton.isDisabled",!y)};
_.E.handleInput=function(){var y=this.issueType,W=this.affiliation,V=this.minutes,w=this.seconds;V=!this.showTimestamp||!!V&&!!w;this.toggleSubmitButton(!!this.descriptionText&&!!y&&!!W&&V)};
_.E.computeServiceEndpoint=function(y){return this.get("submitButton.buttonRenderer.serviceEndpoint",y)};
_.E.computeSubmitButton=function(y){(y=this.get("submitButton.buttonRenderer",y))&&(y=Object.assign({},y,{serviceEndpoint:void 0}));return y};
_.E.computeShowTimestamp=function(y){return!!y};
_.E.onValueChangedForIssueType=function(y){this.issueType=y.detail.value};
_.E.onValueChangedForAffiliation=function(y){this.affiliation=y.detail.value};
_.E.updateDescriptionTextFromBinding=function(y){this.descriptionText=y.detail.value};
_.E.updateFullNameTextFromBinding=function(y){this.fullNameText=y.detail.value};
_.E.updateMinutesFromBinding=function(y){this.minutes=y.detail.value};
_.E.updateSecondsFromBinding=function(y){this.seconds=y.detail.value};
HJ.prototype.handleInput=HJ.prototype.handleInput;HJ.prototype.onYtServiceRequestError=HJ.prototype.onYtServiceRequestError;HJ.prototype.onYtServiceRequestCompleted=HJ.prototype.onYtServiceRequestCompleted;HJ.prototype.onYtServiceRequestSent=HJ.prototype.onYtServiceRequestSent;HJ.prototype.dataChanged=HJ.prototype.dataChanged;_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],HJ.prototype,"ytOpenPopupBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.J([_.s$("#scroller"),_.R("design:type",Object)],HJ.prototype,"JSC$20148_scroller",void 0);_.J([_.s$("#description"),_.R("design:type",HTMLInputElement)],HJ.prototype,"description",void 0);_.J([_.s$("#full-name"),_.R("design:type",Object)],HJ.prototype,"fullName",void 0);_.J([_.q(),_.R("design:type",Object)],HJ.prototype,"data",void 0);
_.J([_.q({computed:"computeShowTimestamp(data.timestampLabel)"}),_.R("design:type",Boolean)],HJ.prototype,"showTimestamp",void 0);_.J([_.q({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.R("design:type",Object)],HJ.prototype,"serviceEndpoint",void 0);_.J([_.q({computed:"computeSubmitButton(data)"}),_.R("design:type",Object)],HJ.prototype,"submitButton",void 0);_.J([_.q(),_.R("design:type",String)],HJ.prototype,"descriptionText",void 0);
_.J([_.q(),_.R("design:type",Number)],HJ.prototype,"issueType",void 0);_.J([_.q(),_.R("design:type",Number)],HJ.prototype,"affiliation",void 0);_.J([_.q(),_.R("design:type",String)],HJ.prototype,"fullNameText",void 0);_.J([_.q(),_.R("design:type",String)],HJ.prototype,"minutes",void 0);_.J([_.q(),_.R("design:type",String)],HJ.prototype,"seconds",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HJ.prototype,"dataChanged",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],HJ.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],HJ.prototype,"onYtServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],HJ.prototype,"onYtServiceRequestError",null);_.J([_.xA("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HJ.prototype,"handleInput",null);_.J([_.k({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],HJ);
_.Y(HJ,"ytd-legal-report-details-form-renderer",function(){if(uNj!==void 0)return uNj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return uNj=y},{mode:1});var lUW;var Xp=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return y};
_.p(Xp,_.u);Xp.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Xp.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var y=this.formRenderer.getForm();y&&this.data.submitEndpoint&&(_.hs().resolve(_.oA).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},y,{element:this.hostElement})}),_.ow(this.hostElement,"yt-close-popup-action"))}};
Xp.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ow(this.hostElement,"yt-close-popup-action"))};
Xp.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Xp.prototype.onPopupClosed=Xp.prototype.onPopupClosed;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Xp.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Xp.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);
_.J([_.s$("yt-form-renderer"),_.R("design:type",Object)],Xp.prototype,"formRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],Xp.prototype,"data",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xp.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-form-popup-content",disableElementRegistration:!0})],Xp);
_.Y(Xp,"ytd-form-popup-content",function(){if(lUW!==void 0)return lUW;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return lUW=y},{mode:1});var xFt;var aQ=function(){return _.u.apply(this,arguments)||this};
_.p(aQ,_.u);aQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
aQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aQ.prototype.onPopupOpened=function(){_.h1(this.hostElement,"yt-invalidate-popup-tabbables")};
aQ.prototype.onYtServiceRequestCompleted=function(y,W){W.data&&W.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.h1(this.hostElement,"yt-invalidate-popup-tabbables"))};
aQ.prototype.onYtServiceRequestCompleted=aQ.prototype.onYtServiceRequestCompleted;aQ.prototype.onPopupOpened=aQ.prototype.onPopupOpened;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],aQ.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],aQ.prototype,"data",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aQ.prototype,"onPopupOpened",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],aQ.prototype,"onYtServiceRequestCompleted",null);_.J([_.k({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],aQ);
_.Y(aQ,"ytd-form-popup-renderer",function(){if(xFt!==void 0)return xFt;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return xFt=y},{mode:1});var ki3;var Gu=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;return y};
_.p(Gu,_.u);_.E=Gu.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");BSq(this.hostElement)};
_.E.onYtServiceRequestSent=function(){this.isLoading=!0};
_.E.onYtServiceRequestCompleted=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.E.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.fg(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.E.closePopupHandler=function(){this.fireOnCloseActions()};
_.E.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var y=this.get("data.headerImage.thumbnails");y&&(y=_.f5(y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+y+")")}};
_.E.onYtNavigate=function(y){(y=_.vW(y))&&y.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Gu.prototype.onYtNavigate=Gu.prototype.onYtNavigate;Gu.prototype.onHeaderImageChanged=Gu.prototype.onHeaderImageChanged;Gu.prototype.closePopupHandler=Gu.prototype.closePopupHandler;Gu.prototype.onYtServiceRequestCompleted=Gu.prototype.onYtServiceRequestCompleted;Gu.prototype.onYtServiceRequestSent=Gu.prototype.onYtServiceRequestSent;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Gu.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Gu.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Gu.prototype,"isLoading",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLDivElement)],Gu.prototype,"header",void 0);_.J([_.s$("#confirm-button"),_.R("design:type",_.jt)],Gu.prototype,"confirmButton",void 0);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Gu.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Gu.prototype,"onYtServiceRequestCompleted",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Gu.prototype,"closePopupHandler",null);_.J([_.xA("data.headerImage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gu.prototype,"onHeaderImageChanged",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Gu.prototype,"onYtNavigate",null);
_.J([_.k({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Gu);
_.Y(Gu,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(ki3!==void 0)return ki3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ki3=y},{mode:1});var s_E;var rl=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;return y};
_.p(rl,_.u);_.E=rl.prototype;_.E.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"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);BSq(this.hostElement)};
_.E.onYtServiceRequestCompleted=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.E.onYtServiceRequestError=function(y){_.ey(this.hostElement,y.detail.error.message)};
_.E.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.E.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ow(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.E.onDataChanged=function(){this.isLoading=!1;var y=this.get("data.headerImage.thumbnails");y&&(y=_.f5(y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+y+")");y=_.Xn();var W=_.Hf(),V=this.get("data.trackingParams");V&&W&&y&&_.Fr(y,W,_.nD(V))};
_.CM.Object.defineProperties(rl.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
rl.prototype.onDataChanged=rl.prototype.onDataChanged;rl.prototype.onDomChange=rl.prototype.onDomChange;rl.prototype.onYtServiceRequestError=rl.prototype.onYtServiceRequestError;rl.prototype.onYtServiceRequestCompleted=rl.prototype.onYtServiceRequestCompleted;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],rl.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],rl.prototype,"isLoading",void 0);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rl.prototype,"hasDescription",null);_.J([_.s$("tp-yt-paper-dialog-scrollable"),_.R("design:type",Object)],rl.prototype,"scrollable",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],rl.prototype,"header",void 0);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rl.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rl.prototype,"onYtServiceRequestError",null);
_.J([_.l6("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rl.prototype,"onDomChange",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rl.prototype,"onDataChanged",null);_.J([_.k({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],rl);
_.Y(rl,"ytd-gaming-account-link-setting-renderer",function(){if(s_E!==void 0)return s_E;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return s_E=y},{mode:1});var A4t;var YtW;var bX=function(){var y=_.u.apply(this,arguments)||this;y.isHeader=!1;y.getEndpointForm=function(){return Y$v(y.data)};
return y};
_.p(bX,_.u);_.E=bX.prototype;_.E.triggerHintActions=function(){var y=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var W=_.Kg(y.hostElement,"yt-get-opened-popups-action");!(W&&W.length===1?W[0]:[]).some(function(V){V=V.openPopupAction.popupType;return V==="SURVEY"||V==="MEALBAR"||V==="HINT"})&&y.data.hintActions&&y.guideOpened&&(_.fg(y.hostElement,y.data.hintActions,y.hostElement),y.data.hintActions=void 0)})};
_.E.getBadgeIconType=function(y){return y&&y.liveBroadcasting?"live":null};
_.E.onDown=function(){this.interaction.triggerDown()};
_.E.onUp=function(){this.interaction.triggerUp()};
_.E.onTap=function(y){if(this.data.serviceEndpoint){var W;_.e("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.h(this.data.serviceEndpoint,_.Jx))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Acd(this.data.serviceEndpoint,this);y.preventDefault()}else this.data.navigationEndpoint&&!_.c5(_.O$(y),this.hostElement,["A".toString()])&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.E.computeActive=function(y,W){if(!y)return!1;var V=y.navigationEndpoint;y=y.serviceEndpoint;if(!V&&!y||!W)return!1;if(V){y=(y=_.k1(W))&&["subscriptions","filteredsubscriptions"].includes(y);if(_.h(V,_.sT)&&_.h(W,_.sT)&&!y){var w=_.h(V,_.sT).browseId;W=_.h(W,_.sT).browseId;return w!==void 0&&W!==void 0&&(w===W||w==="VLWL"&&W==="FEwatch_later"||w==="FEwatch_later"&&W==="VLWL")}var t;V=(t=_.h(V.commandMetadata,_.dw))==null?void 0:t.url;W=(w=_.h(W.commandMetadata,_.dw))==null?void 0:w.url;return!(!V||
!W||V!==W&&V!==_.U1(W))}return this.isActiveShortsTab(y,W)};
_.E.isActiveShortsTab=function(y,W){W=!!_.h(W,_.Jx)||!!_.h(W,_.Wh);return(!!_.h(y,_.Jx)||!!_.h(y,_.Wh))&&W};
_.E.computeIsPrimary=function(y){return!!y};
_.CM.Object.defineProperties(bX.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 y=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&y)return y}}});
bX.prototype.onTap=bX.prototype.onTap;bX.prototype.onUp=bX.prototype.onUp;bX.prototype.onDown=bX.prototype.onDown;bX.prototype.triggerHintActions=bX.prototype.triggerHintActions;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],bX.prototype,"componentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bX.prototype,"rendererBehavior",void 0);_.J([_.m(_.et.YtTaskEmitterBehavior),_.R("design:type",Object)],bX.prototype,"taskEmitterBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],bX.prototype,"activeEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],bX.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],bX.prototype,"guideOpened",void 0);_.J([_.q(),_.R("design:type",String)],bX.prototype,"type",void 0);_.J([_.s$("yt-interaction"),_.R("design:type",Object)],bX.prototype,"interaction",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bX.prototype,"isHeader",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data","activeEndpoint"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bX.prototype,"active",null);_.J([_.q({reflectToAttribute:!0}),_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bX.prototype,"isPrimary",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.count","data.presentationStyle","data.badges.*"),_.R("design:type",String),_.R("design:paramtypes",[])],bX.prototype,"lineEndStyle",null);
_.J([_.M("lineEndStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],bX.prototype,"ariaLabel",null);_.J([_.xA("data.hintActions","guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bX.prototype,"triggerHintActions",null);_.J([_.l6("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bX.prototype,"onDown",null);
_.J([_.l6("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bX.prototype,"onUp",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],bX.prototype,"onTap",null);_.J([_.k({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],bX);
_.Y(bX,"ytd-guide-entry-renderer",function(){if(YtW!==void 0)return YtW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return YtW=y},{mode:1});var QM=function(){var y=_.u.apply(this,arguments)||this;y.userToggled=!1;return y};
_.p(QM,_.u);_.E=QM.prototype;_.E.getItemsPath=function(){return"data.expandableItems"};
_.E.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.E.onExpanderItemTapped=function(y){var W=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.e("kevlar_guide_expandable_items_killswitch")&&_.gy(this,function(){_.Ci(W.expandableItems)});
y.preventDefault()};
_.E.onCollapserItemTapped=function(y){var W=this;this._setExpanded(!1);this.userToggled=!0;y.preventDefault();this.expandableItems&&!_.e("kevlar_guide_collapsible_items_killswitch")&&_.gy(this,function(){_.Pp(W.hostElement)})};
_.E.observeActiveEndpoint=function(){for(var y=this.activeEndpoint,W=this.data,V=this.expandableItems.children,w=0,t=V.length;w<t;w++)V[w].activeEndpoint=y;W&&W.autoExpandCommand&&y&&!this.userToggled&&(V=this.data.autoExpandCommand,W=!(!_.h(V,_.sT)||!_.h(y,_.sT)||_.h(V,_.sT).browseId!==_.h(y,_.sT).browseId),y=this.get("commandMetadata.webCommandMetadata.url",y),V=this.get("commandMetadata.webCommandMetadata.url",V),W=W||!!(y&&V&&y.includes(V)),this._setExpanded(W),W&&this.ytLazyListBehavior.fillRemainingListItems())};
QM.prototype.observeActiveEndpoint=QM.prototype.observeActiveEndpoint;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],QM.prototype,"ytLazyListBehavior",void 0);_.J([_.s$("#expandable-items"),_.R("design:type",HTMLElement)],QM.prototype,"expandableItems",void 0);
_.J([_.q(),_.R("design:type",Object)],QM.prototype,"data",void 0);_.J([_.q({readOnly:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],QM.prototype,"expanded",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],QM.prototype,"initialCount",void 0);_.J([_.q(),_.R("design:type",Object)],QM.prototype,"activeEndpoint",void 0);_.J([_.xA("data","activeEndpoint","canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QM.prototype,"observeActiveEndpoint",null);
_.J([_.k({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],QM);
_.Y(QM,"ytd-guide-collapsible-entry-renderer",function(){if(A4t!==void 0)return A4t;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return A4t=y},{mode:_.qM("kevlar_poly_si_batch_j079")?1:2});var Bk3;var J4W;var Zj=function(){var y=_.u.apply(this,arguments)||this;y.allVideosCount=0;y.renderGuideEntry=!1;return y};
_.p(Zj,_.u);Zj.prototype.observeRenderEntry=function(){var y;this.renderGuideEntry=!((y=this.data)==null||!y.alwaysShow)||!!this.allVideosCount};
Zj.prototype.observeRenderEntry=Zj.prototype.observeRenderEntry;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zj.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Zj.prototype,"activeEndpoint",void 0);_.J([_.q({selector:_.DxL}),_.R("design:type",Object)],Zj.prototype,"allVideosCount",void 0);
_.J([_.q(),_.R("design:type",Object)],Zj.prototype,"renderGuideEntry",void 0);_.J([_.Jc("allVideosCount","data.alwaysShow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zj.prototype,"observeRenderEntry",null);_.J([_.k({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Zj);
_.Y(Zj,"ytd-guide-downloads-entry-renderer",function(){if(J4W===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);J4W=y}y=J4W;return y},{mode:1});var y8=function(){var y=_.u.apply(this,arguments)||this;y.youtab=_.e("web_enable_youtab");y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return y};
_.p(y8,_.u);_.E=y8.prototype;_.E.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]]"}}}}}};
_.E.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var y=this.sectionItems.children,W=0,V=y.length;W<V;W++)y[W].activeEndpoint=this.activeEndpoint}};
_.E.handleAddToGuideSectionAction=function(y){var W=_.h(y,tLt);if(W&&this.data&&(y=W.items,W=W.handlerData,y&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1)){W=0;for(var V=y.length;W<V;W++)y[W].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,y[W])}};
_.E.handleRemoveFromGuideSectionAction=function(y){var W=_.h(y,FPd);W&&this.data&&(y=W.guideEntryId,W=W.handlerData,y&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(y,this.data.sectionItems),this.removeFromCollapsedSection(y,this.data.sectionItems)))};
_.E.removeFromExpandedSection=function(y,W){y=this.getEntryIndexMatchingId(y,W);y!==-1&&this.splice("data.sectionItems",y,1)};
_.E.removeFromCollapsedSection=function(y,W){var V=W.findIndex(function(w){return!!_.h(w,KP3)});
V&&V!==-1&&W[V]&&_.h(W[V],KP3)&&(W=_.h(W[V],KP3).expandableItems)&&(y=this.getEntryIndexMatchingId(y,W),y!==-1&&this.splice("data.sectionItems."+V+".guideCollapsibleEntryRenderer.expandableItems",y,1))};
_.E.getEntryIndexMatchingId=function(y,W){var V=this;return W.findIndex(function(w){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===y})};
y8.prototype.activeEndpointChanged=y8.prototype.activeEndpointChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],y8.prototype,"actionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#section-items"),_.R("design:type",HTMLDivElement)],y8.prototype,"sectionItems",void 0);
_.J([_.s$("#header-entry"),_.R("design:type",Object)],y8.prototype,"headerEntry",void 0);_.J([_.q(),_.R("design:type",Object)],y8.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],y8.prototype,"activeEndpoint",void 0);_.J([_.q(),_.R("design:type",Object)],y8.prototype,"youtab",void 0);_.J([_.xA("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y8.prototype,"activeEndpointChanged",null);
_.J([_.k({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],y8);
_.Y(y8,"ytd-guide-collapsible-section-entry-renderer",function(){if(Bk3===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);Bk3=y}y=Bk3;return y},{mode:1});var Rrm;var j_P;var WT=function(){var y=_.u.apply(this,arguments)||this;y.modernTypography=_.e("web_modern_typography");y.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 y};
_.p(WT,_.u);_.E=WT.prototype;
_.E.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}}}}};
_.E.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var y=_.Kg(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);y&&y.length===1&&y[0]&&_.Kg(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.E.handleResetChannelUnreadCountCommand=function(y){var W;(y=(W=_.h(y,NdC))==null?void 0:W.channelId)&&this.data&&this.data.items&&(W=this.getPathToEntryMatchingId(y))&&(this.set(W+".guideEntryRenderer.count",0),this.set(W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.E.handleResetSubscriptionsUnreadDotCommand=function(y){var W,V=(W=_.h(y,IkE))==null?void 0:W.targetId,w;V&&(w=this.data)!=null&&w.items&&(y=this.data.items.findIndex(function(t){var F;return((F=t.guideEntryRenderer)==null?void 0:F.targetId)===V}),y<0||this.set("data.items."+y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.E.getPathToEntryMatchingId=function(y){if(this.data&&this.data.items){var W=this.getEntryIndexMatchingId(y,this.data.items);if(W>-1)return"data.items."+W;for(var V=0;V<this.data.items.length;V++)if(W=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[V]))if(W=this.getEntryIndexMatchingId(y,W),W>-1)return"data.items."+V+".guideCollapsibleEntryRenderer.expandableItems."+W}};
_.E.handleAddToGuideSectionAction=function(y){var W=this;if(_.h(y,tLt)){var V=_.h(y,tLt).items;y=_.h(y,tLt).handlerData;var w,t;if(V&&y&&((w=this.data)==null?void 0:(t=w.handlerDatas)==null?void 0:t.indexOf(y))>-1){V=V.filter(function(I){return(I=W.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",I))&&!W.isGuideItemPresent(I)});
var F;if(y==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((F=this.data)==null?0:F.items)&&(w=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),w>-1)){this.splice.apply(this,["data.items",w+1,0].concat(_.GC(V)));return}this.unshift.apply(this,["data.items"].concat(_.GC(V)))}}};
_.E.isGuideItemPresent=function(y){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(y,this.data.items)!==-1)return!0;var W=this.data.items.find(function(V){return!!V.guideCollapsibleEntryRenderer});
if((W==null?0:W.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(y,W.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.E.getEntryIndexMatchingId=function(y,W){var V=this;return W.findIndex(function(w){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===y})};
_.E.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(y,W){var V=this;return W.findIndex(function(w){return V.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===y})};
_.E.handleRemoveFromGuideSectionAction=function(y){if(_.h(y,FPd)){var W=_.h(y,FPd).guideEntryId;y=_.h(y,FPd).handlerData;var V,w;W&&y&&((V=this.data)==null?void 0:(w=V.handlerDatas)==null?void 0:w.indexOf(y))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(W,this.data.items),this.removeFromCollapsedSection(W,this.data.items))}};
_.E.removeFromExpandedSection=function(y,W){y=this.getEntryIndexMatchingId(y,W);y!==-1&&this.splice("data.items",y,1)};
_.E.removeFromCollapsedSection=function(y,W){var V=W.findIndex(function(w){return!!w.guideCollapsibleEntryRenderer});
V!==-1&&(W=W[V].guideCollapsibleEntryRenderer.expandableItems)&&(y=this.getEntryIndexMatchingId(y,W),y!==-1&&this.splice("data.items."+V+".guideCollapsibleEntryRenderer.expandableItems",y,1))};
_.E.activeEndpointChanged=function(){for(var y=_.i6(this.hostElement).querySelector("#items").children,W=0,V=y.length;W<V;W++)y[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.E.guideOpenedChanged=function(){for(var y=_.i6(this.hostElement).querySelector("#items").children,W=0,V=y.length;W<V;W++)y[W].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
WT.prototype.guideOpenedChanged=WT.prototype.guideOpenedChanged;WT.prototype.activeEndpointChanged=WT.prototype.activeEndpointChanged;WT.prototype.persistentGuideChanged=WT.prototype.persistentGuideChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],WT.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],WT.prototype,"ytLazyListBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],WT.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],WT.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],WT.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],WT.prototype,"modernTypography",void 0);_.J([_.q(),_.R("design:type",String)],WT.prototype,"type",void 0);_.J([_.q({value:20}),_.R("design:type",Number)],WT.prototype,"initialCount",void 0);_.J([_.q({value:10}),_.R("design:type",Number)],WT.prototype,"targetFramerate",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],WT.prototype,"autoFill",void 0);_.J([_.q({value:50}),_.R("design:type",Number)],WT.prototype,"renderDelay",void 0);
_.J([_.xA("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WT.prototype,"persistentGuideChanged",null);_.J([_.Jc("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WT.prototype,"activeEndpointChanged",null);_.J([_.Jc("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WT.prototype,"guideOpenedChanged",null);
_.J([_.k({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],WT);
_.Y(WT,"ytd-guide-section-renderer",function(){if(j_P!==void 0)return j_P;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return j_P=y},{mode:_.qM("kevlar_poly_si_batch_j073")?1:2});var $FE;var V8=function(){return _.u.apply(this,arguments)||this};
_.p(V8,_.u);_.CM.Object.defineProperties(V8.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],V8.prototype,"rendererBehaviors",void 0);_.J([_.q(),_.R("design:type",Object)],V8.prototype,"data",void 0);_.J([_.q(),_.M("data.signInButton.buttonRenderer.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],V8.prototype,"alignByText",null);_.J([_.k({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],V8);
_.Y(V8,"ytd-guide-signin-promo-renderer",function(){if($FE===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);$FE=y}y=$FE;return y},{mode:1});var wN=function(){var y=_.u.apply(this,arguments)||this;y.showFooter=!1;return y};
_.p(wN,_.u);wN.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}}}}};
wN.prototype.attached=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1){W=_.hs().resolve(_.eX(_.Fq));if(!W)return V.jumpTo(0);W.setGuideData(y.hostElement);return V.yield(0,3)}y.ytLazyListBehavior.initialCount=2;return V.return()})};
wN.prototype.onMouseExit=function(){_.e("web_guide_hover_expansion")&&_.Kg(this.hostElement,"yt-guide-mouseleaved",[])};
wN.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
wN.prototype.dataChanged=wN.prototype.dataChanged;wN.prototype.onMouseExit=wN.prototype.onMouseExit;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],wN.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Kr.YtLazyListBehavior),_.R("design:type",Object)],wN.prototype,"ytLazyListBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wN.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],wN.prototype,"showFooter",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],wN.prototype,"autoFill",void 0);_.J([_.l6("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wN.prototype,"onMouseExit",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wN.prototype,"dataChanged",null);_.J([_.k({is:"ytd-guide-renderer",disableElementRegistration:!0})],wN);
_.Y(wN,"ytd-guide-renderer",function(){if(Rrm!==void 0)return Rrm;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Rrm=y},{mode:_.qM("kevlar_poly_si_batch_j073")?1:2});var nhP;var te=function(){var y=_.u.apply(this,arguments)||this;y.systemIcons=_.e("kevlar_system_icons");y.frostedGlass=_.e("web_frosted_glass");y.getEndpointForm=function(){return Y$v(y.data)};
return y};
_.p(te,_.u);_.E=te.prototype;_.E.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.E.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.OT(this.data.formattedTitle))};
_.E.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.E.onDown=function(){this.interaction.triggerDown()};
_.E.onUp=function(){this.interaction.triggerUp()};
_.E.onTap=function(y){if(this.data.serviceEndpoint){var W;_.e("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.h(this.data.serviceEndpoint,_.Jx))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Acd(this.data.serviceEndpoint,this);y.preventDefault()}else{var V;((V=this.data)==null?0:V.navigationEndpoint)&&!_.c5(_.O$(y),this.hostElement,["A".toString()])&&_.h1(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.E.computeActive=function(y,W){if(!y)return!1;var V=y.navigationEndpoint;y=y.serviceEndpoint;if(!V&&!y||!W)return!1;if(V){y=_.h(V,_.sT);var w=_.h(W,_.sT);if(y&&w)return y.browseId===w.browseId&&y.params===w.params;var t;V=(t=_.h(V.commandMetadata,_.dw))==null?void 0:t.url;var F;W=(F=_.h(W.commandMetadata,_.dw))==null?void 0:F.url;return!(!V||!W||V!==W&&V!==_.U1(W))}return this.isActiveShortsTab(y,W)};
_.E.isActiveShortsTab=function(y,W){W=!!_.h(W,_.Jx)||!!_.h(W,_.Wh);return(!!_.h(y,_.Jx)||!!_.h(y,_.Wh))&&W};
_.E.computeTitle=function(y,W){return W?"":_.OT(y)};
_.CM.Object.defineProperties(te.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
te.prototype.onTap=te.prototype.onTap;te.prototype.onUp=te.prototype.onUp;te.prototype.onDown=te.prototype.onDown;te.prototype.onActiveStateChange=te.prototype.onActiveStateChange;te.prototype.dataChanged=te.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);
_.J([_.m(_.bd),_.R("design:type",Object)],te.prototype,"ironButtonState",void 0);_.J([_.q(),_.R("design:type",Object)],te.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],te.prototype,"activeEndpoint",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],te.prototype,"noLabels",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.R("design:type",Boolean)],te.prototype,"isActive",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],te.prototype,"systemIcons",void 0);_.J([_.s$("yt-interaction"),_.R("design:type",Object)],te.prototype,"interaction",void 0);_.J([_.M("isActive"),_.R("design:type",Object),_.R("design:paramtypes",[])],te.prototype,"ariaSelected",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],te.prototype,"frostedGlass",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],te.prototype,"dataChanged",null);_.J([_.xA("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],te.prototype,"onActiveStateChange",null);_.J([_.l6("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],te.prototype,"onDown",null);
_.J([_.l6("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],te.prototype,"onUp",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],te.prototype,"onTap",null);_.J([_.k({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],te);
_.Y(te,"ytd-mini-guide-entry-renderer",function(){if(nhP!==void 0)return nhP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nhP=y},{mode:_.qM("kevlar_poly_si_batch_j063")?1:2});var HtP;var F5=function(){var y=_.u.apply(this,arguments)||this;y.allVideosCount=0;y.noLabels=_.e("kevlar_mini_guide_no_labels");y.frostedGlass=_.e("web_frosted_glass");return y};
_.p(F5,_.u);_.E=F5.prototype;_.E.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.E.onMouseEnter=function(){_.e("web_guide_hover_expansion")&&_.Kg(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.E.visibleChanged=function(){if(this.visible&&!this.data){var y=_.hs().resolve(_.eX(_.Fq));y&&y.setGuideData(this.hostElement)}};
_.E.dataChanged=function(){var y=[],W;if((W=this.data)!=null&&W.items){W=_.N(this.data.items);for(var V=W.next();!V.done;V=W.next()){V=V.value;var w=void 0;if((w=V.guideSectionRenderer)==null?0:w.items)for(w=void 0,V=_.N((w=V.guideSectionRenderer)==null?void 0:w.items),w=V.next();!w.done;w=V.next())if(w=w.value,w.guideEntryRenderer)w=w.guideEntryRenderer,w.isPrimary&&y.push({guideEntryRenderer:w});else if(w.guideCollapsibleSectionEntryRenderer){var t=void 0;((t=_.h(w.guideCollapsibleSectionEntryRenderer.headerEntry,
zz))==null?0:t.isPrimary)&&y.push({guideEntryRenderer:_.h(w.guideCollapsibleSectionEntryRenderer.headerEntry,zz)});if(w=w.guideCollapsibleSectionEntryRenderer.sectionItems)for(w=_.N(w),t=w.next();!t.done;t=w.next()){var F=t.value;t=_.h(F,pPu);var I=void 0;((I=_.h(F,zz))==null?0:I.isPrimary)?y.push({guideEntryRenderer:_.h(F,zz)}):t&&(F=void 0,_.h((F=t)==null?void 0:F.entryRenderer,zz)&&(t.alwaysShow||this.allVideosCount)&&y.push({guideEntryRenderer:_.h(t.entryRenderer,zz)}))}}}}this.miniGuideItems=
y};
_.E.activeEndpointChanged=function(){for(var y=this.items.children,W=0;W<y.length;W++)y[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
F5.prototype.activeEndpointChanged=F5.prototype.activeEndpointChanged;F5.prototype.dataChanged=F5.prototype.dataChanged;F5.prototype.visibleChanged=F5.prototype.visibleChanged;F5.prototype.onMouseEnter=F5.prototype.onMouseEnter;_.J([_.m(_.y$),_.R("design:type",Object)],F5.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],F5.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],F5.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],F5.prototype,"ytComponentBehavior",void 0);_.J([_.s$("#items"),_.R("design:type",Object)],F5.prototype,"items",void 0);_.J([_.q(),_.R("design:type",Object)],F5.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Boolean)],F5.prototype,"visible",void 0);_.J([_.q(),_.R("design:type",Object)],F5.prototype,"miniGuideItems",void 0);_.J([_.q({selector:_.DxL}),_.R("design:type",Object)],F5.prototype,"allVideosCount",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],F5.prototype,"noLabels",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],F5.prototype,"frostedGlass",void 0);
_.J([_.l6("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F5.prototype,"onMouseEnter",null);_.J([_.Jc("visible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F5.prototype,"visibleChanged",null);_.J([_.Jc("data","allVideosCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F5.prototype,"dataChanged",null);
_.J([_.Jc("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F5.prototype,"activeEndpointChanged",null);_.J([_.k({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],F5);
_.Y(F5,"ytd-mini-guide-renderer",function(){if(HtP===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);HtP=y}y=HtP;return y},{mode:1});var Xv4;var aU4=/^[\x00-\x7F]+$/,Ea=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(Ea,_.u);_.CM.Object.defineProperties(Ea.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var y,W=_.OT((y=this.data)==null?void 0:y.handle);if(W)return _.CO("@"+W)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var y=_.OT(this.displayHandle),W,V=_.OT((W=this.data)==null?void 0:W.handleUrl);if(y&&V)return _.CO(V+y)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var y=_.OT(this.displayHandle);if(y&&!aU4.test(y)){var W;return(W=this.data)==null?void 0:W.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var y=_.OT(this.displayHandleUrl),W,V=_.OT((W=this.data)==null?void 0:W.urlInfoText);if(y&&V)return _.CO(V+" "+y)}}});
_.J([_.q(),_.R("design:type",Object)],Ea.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ea.prototype,"displayHandle",null);_.J([_.M("displayHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ea.prototype,"displayHandleUrl",null);_.J([_.M("displayHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ea.prototype,"warningText",null);
_.J([_.M("displayHandleUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ea.prototype,"urlInfoTextWithUrl",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ea.prototype,"darkerDarkTheme",void 0);_.J([_.k({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ea);
_.Y(Ea,"ytd-handles-claiming-confirm-dialog-content",function(){if(Xv4!==void 0)return Xv4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Xv4=y},{mode:1});var Gi4;var NA=function(){var y=_.u.apply(this,arguments)||this;y.okButtonOverride={style:"mono",type:"outline",size:"M"};return y};
_.p(NA,_.u);NA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NA.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],NA.prototype,"okButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],NA.prototype,"data",void 0);_.J([_.k({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],NA);
_.Y(NA,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Gi4!==void 0)return Gi4;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Gi4=y},{mode:1});var r4E;var btC=/^[\x00-\x7F]+$/,I9=function(){var y=_.u.apply(this,arguments)||this;y.isLoading=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(I9,_.u);I9.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var y;this.selectedHandle=(y=this.handleInput)==null?void 0:y.value;this.onSelectedHandleChanged(this.selectedHandle);_.Kg(this.hostElement,"yt-refit-popups-action")}};
_.CM.Object.defineProperties(I9.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.CO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.CO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!btC.test(this.selectedHandle)){var y;return(y=this.data)==null?void 0:y.warningText}}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],I9.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],I9.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],I9.prototype,"selectedHandle",void 0);_.J([_.q(),_.R("design:type",Object)],I9.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Function)],I9.prototype,"onSelectedHandleChanged",void 0);_.J([_.s$("#channel-handle-input"),_.R("design:type",Object)],I9.prototype,"handleInput",void 0);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],I9.prototype,"handleUrlPrefix",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],I9.prototype,"displayHandle",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],I9.prototype,"displayHandleUrl",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],I9.prototype,"warningText",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],I9.prototype,"darkerDarkTheme",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.J([_.k({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],I9);
_.Y(I9,"ytd-handles-claiming-edit-dialog-content",function(){if(r4E!==void 0)return r4E;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return r4E=y},{mode:1});var Q_q;var gN=function(){var y=_.u.apply(this,arguments)||this;y.actionButtonOverride={style:"mono",type:"filled",size:"M"};y.cancelButtonOverride={style:"mono",type:"text",size:"M"};y.selectButtonDisabled=!1;y.isLoading=!1;y.hasSelectedHandleEventListener=!1;y.selectedHandleChanged=function(W){y.selectedHandle=W};
return y};
_.p(gN,_.u);_.E=gN.prototype;_.E.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.E.onDataChanged=function(){var y,W;this.selectedHandle=(W=_.h((y=this.data)==null?void 0:y.inputField,Z3m))==null?void 0:W.handle};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.onCancel=function(){this.selectedHandle="";_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
_.E.onSelectHandle=function(){var y=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.ey(y.hostElement,_.OT(w.newHandleUpdateStatus.errorMessage)),
y.isLoading=!1;else{var t;if((t=y.data)==null?0:t.onChannelUpdateSuccess){V=y.data.onChannelUpdateSuccess;var F,I;if(w=(F=_.h(V,_.Hq))==null?void 0:(I=F.popup)==null?void 0:I.handlesClaimingConfirmDialogRenderer)w.handle=_.CO(y.selectedHandle);y.ytComponentBehavior.resolveCommand(V);_.ow(y.hostElement,"yt-close-popup-action",[y.is])}else y.isLoading=!1}},
onServerError:function(){var V;y.content&&((V=y.content)==null?0:V.handleInput)&&y.content.handleInput.validate();y.isLoading=!1;_.ey(y.hostElement,_.u5("TRY_AGAIN_LATER"))}}}))}};
_.E.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
gN.prototype.onDataChanged=gN.prototype.onDataChanged;gN.prototype.onSelectedHandleChanged=gN.prototype.onSelectedHandleChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],gN.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"actionButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"cancelButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",String)],gN.prototype,"selectedHandle",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"selectButtonDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"hasSelectedHandleEventListener",void 0);_.J([_.q(),_.R("design:type",Object)],gN.prototype,"handleInput",void 0);
_.J([_.xA("selectedHandle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"onSelectedHandleChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"onDataChanged",null);_.J([_.s$("ytd-handles-claiming-edit-dialog-content"),_.R("design:type",Object)],gN.prototype,"content",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.k({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],gN);
_.Y(gN,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Q_q!==void 0)return Q_q;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Q_q=y},{mode:1});var Ztd;var PT=function(){return _.u.apply(this,arguments)||this};
_.p(PT,_.u);_.CM.Object.defineProperties(PT.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.handle){var W;return _.CO("@"+_.OT((W=this.data)==null?void 0:W.handle))}}}});
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],PT.prototype,"formattedHandle",null);_.J([_.q(),_.R("design:type",Object)],PT.prototype,"data",void 0);_.J([_.k({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],PT);
_.Y(PT,"ytd-handles-claiming-radio-option-renderer",function(){if(Ztd!==void 0)return Ztd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Ztd=y},{mode:1});var y3W;var Wid=/^[\x00-\x7F]+$/,CZ=function(){var y=_.u.apply(this,arguments)||this;y.initialRadioIndex="-1";y.isLoading=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.maybeSubmitFeedback=function(){y.feedbackSurveyRenderer.submitSurvey()};
return y};
_.p(CZ,_.u);CZ.prototype.updateSelectedHandleIndexFromBinding=function(y){this.selectedRadioIndex=+y.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(y)};
CZ.prototype.selectedHandleChanged=function(y){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(y)}};
_.CM.Object.defineProperties(CZ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var y;return this.ytRendererBehavior.getSimpleString((y=this.data)==null?void 0:y.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.CO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.CO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Wid.test(this.selectedHandle)){var y;return(y=this.data)==null?void 0:y.warningText}}}});
_.J([_.q(),_.R("design:type",Object)],CZ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],CZ.prototype,"initialRadioIndex",void 0);_.J([_.q(),_.R("design:type",Number)],CZ.prototype,"selectedRadioIndex",void 0);_.J([_.q(),_.R("design:type",String)],CZ.prototype,"selectedHandle",void 0);_.J([_.q(),_.R("design:type",Object)],CZ.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Function)],CZ.prototype,"onSelectedHandleChanged",void 0);
_.J([_.q(),_.R("design:type",Function)],CZ.prototype,"onSelectedRadioIndexChanged",void 0);_.J([_.s$("#channel-handle-input"),_.R("design:type",Object)],CZ.prototype,"handleInput",void 0);_.J([_.s$("ytd-feedback-survey-renderer"),_.R("design:type",Object)],CZ.prototype,"feedbackSurveyRenderer",void 0);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],CZ.prototype,"radioButtonLength",null);
_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],CZ.prototype,"handleUrlPrefix",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],CZ.prototype,"displayHandle",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],CZ.prototype,"displayHandleUrl",null);_.J([_.M("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],CZ.prototype,"warningText",null);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],CZ.prototype,"darkerDarkTheme",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.J([_.k({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],CZ);
_.Y(CZ,"ytd-handles-claiming-select-dialog-content",function(){if(y3W!==void 0)return y3W;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return y3W=y},{mode:1});var Vje;var Oa=function(){var y=_.u.apply(this,arguments)||this;y.actionButtonOverride={style:"mono",type:"filled",size:"M"};y.cancelButtonOverride={style:"mono",type:"text",size:"M"};y.initialRadioIndex="-1";y.selectButtonDisabled=!1;y.isLoading=!1;y.selectedRadioIndexChanged=function(W){y.selectedRadioIndex=Number(W.detail.value)};
y.selectedHandleChanged=function(W){y.selectedHandle=W.detail.value};
y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(Oa,_.u);_.E=Oa.prototype;_.E.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.E.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.E.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Kg(this.hostElement,"yt-refit-popups-action")};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
_.E.onSelectHandle=function(){var y=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.ey(y.hostElement,_.OT(w.newHandleUpdateStatus.errorMessage)),
y.isLoading=!1;else{var t;if((t=y.data)==null?0:t.onChannelUpdateSuccess){V=y.data.onChannelUpdateSuccess;w=_.h(V,_.Hq);var F;if(w==null?0:(F=w.popup)==null?0:F.handlesClaimingConfirmDialogRenderer)w.popup.handlesClaimingConfirmDialogRenderer.handle=_.CO(y.selectedHandle);y.ytComponentBehavior.resolveCommand(V);_.ow(y.hostElement,"yt-close-popup-action",[y.is])}else y.isLoading=!1}},
onServerError:function(){if(y.selectedRadioIndex===y.radioButtonLength){var V;y.content&&((V=y.content)==null?0:V.handleInput)&&y.content.handleInput.validate()}y.isLoading=!1;_.ey(y.hostElement,_.u5("TRY_AGAIN_LATER"))}}}))}};
_.E.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var y,W;this.selectedHandle=(y=this.content)==null?void 0:(W=y.handleInput)==null?void 0:W.value}else this.selectedRadioIndex>=0&&((y=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(y==null?void 0:y.handle):this.selectedHandle=void 0)};
_.E.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.E.getRadioItem=function(y){if(this.radioButtonLength>y&&y>=0)return _.h(this.data.radioButton[y],LPd)};
_.CM.Object.defineProperties(Oa.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.radioButton)||[]).length}}});
Oa.prototype.onSelectedHandleChanged=Oa.prototype.onSelectedHandleChanged;Oa.prototype.onSelectedHandleIndexChanged=Oa.prototype.onSelectedHandleIndexChanged;Oa.prototype.onDataChanged=Oa.prototype.onDataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Oa.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"actionButtonOverride",void 0);_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"cancelButtonOverride",void 0);
_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"initialRadioIndex",void 0);_.J([_.q(),_.R("design:type",Number)],Oa.prototype,"selectedRadioIndex",void 0);_.J([_.q(),_.R("design:type",String)],Oa.prototype,"selectedHandle",void 0);_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"selectButtonDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],Oa.prototype,"isLoading",void 0);
_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],Oa.prototype,"radioButtonLength",null);_.J([_.s$("ytd-handles-claiming-select-dialog-content"),_.R("design:type",Object)],Oa.prototype,"content",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Oa.prototype,"onDataChanged",null);
_.J([_.xA("selectedRadioIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Oa.prototype,"onSelectedHandleIndexChanged",null);_.J([_.xA("selectedHandle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Oa.prototype,"onSelectedHandleChanged",null);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Oa.prototype,"darkerDarkTheme",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.J([_.k({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Oa);
_.Y(Oa,"ytd-handles-claiming-select-dialog-renderer",function(){if(Vje!==void 0)return Vje;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Vje=y},{mode:1});var w6e;var tjP;var vT=function(){return _.u.apply(this,arguments)||this};
_.p(vT,_.u);vT.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vT.prototype,"data",void 0);_.J([_.k({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],vT);
_.Y(vT,"ytd-hotkey-dialog-section-option-renderer",function(){if(tjP!==void 0)return tjP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return tjP=y},{mode:1});var Fiu;var dN=function(){return _.u.apply(this,arguments)||this};
_.p(dN,_.u);dN.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dN.prototype,"data",void 0);_.J([_.k({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],dN);
_.Y(dN,"ytd-hotkey-dialog-section-renderer",function(){if(Fiu!==void 0)return Fiu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Fiu=y},{mode:1});var LZ=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(LZ,_.u);LZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],LZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],LZ.prototype,"darkerDarkTheme",void 0);_.J([_.k({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],LZ);
_.Y(LZ,"ytd-hotkey-dialog-content",function(){if(w6e!==void 0)return w6e;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return w6e=y},{mode:1});var Ewj;var z1=function(){return _.u.apply(this,arguments)||this};
_.p(z1,_.u);z1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var y=document.querySelector("ytd-hotkey-dialog-content #scrollable");y&&(y.dialogElement=this.hostElement.parentElement)};
z1.prototype.onCloseTap=function(){_.ow(this.hostElement,"yt-close-popup-action")};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],z1.prototype,"data",void 0);_.J([_.k({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],z1);
_.Y(z1,"ytd-hotkey-dialog-renderer",function(){if(Ewj!==void 0)return Ewj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Ewj=y},{mode:1});var NRq;var cT=function(){return _.u.apply(this,arguments)||this};
_.p(cT,_.u);cT.prototype.onYtServiceRequestError=function(){if(this.blocked){var y;var W=(y=this.data)==null?void 0:y.defaultServiceEndpoint}else{var V;W=(V=this.data)==null?void 0:V.toggledServiceEndpoint}var w;(W=(w=_.h(W,_.mcm))==null?void 0:w.onFailureAction)&&this.ytComponentBehavior.resolveCommand(W);this.updateBlockState(!this.blocked)};
cT.prototype.onYtToggleButton=function(y){this.updateBlockState(y.detail.toggled)};
cT.prototype.updateBlockState=function(y){if(y!==this.blocked){var W=this.blockedEntityKey;W&&this.ytdReduxBehavior.dispatch(_.B5("blockStateEntity",W,{key:W,blocked:y}));this.set("data.isToggled",y)}};
_.CM.Object.defineProperties(cT.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)}}});
cT.prototype.onYtToggleButton=cT.prototype.onYtToggleButton;cT.prototype.onYtServiceRequestError=cT.prototype.onYtServiceRequestError;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cT.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],cT.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],cT.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],cT.prototype,"blockedEntityKey",void 0);
_.J([_.q({selectorArgs:["blockedEntityKey"],selector:function(y,W){return _.UB(y.entities,"blockStateEntity",W)}}),
_.R("design:type",Object)],cT.prototype,"blockStateEntity",void 0);_.J([_.M("data","blockStateEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cT.prototype,"blocked",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cT.prototype,"onYtServiceRequestError",null);
_.J([_.l6("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cT.prototype,"onYtToggleButton",null);_.J([_.k({is:"ytd-block-button",disableElementRegistration:!0})],cT);
_.Y(cT,"ytd-block-button",function(){if(NRq!==void 0)return NRq;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return NRq=y},
{mode:1});var Iij;var gwP;var e8=function(){return _.u.apply(this,arguments)||this};
_.p(e8,_.u);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],e8.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],e8.prototype,"data",void 0);_.J([_.k({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],e8);
_.Y(e8,"ytd-kids-blocklist-picker-item-renderer",function(){if(gwP!==void 0)return gwP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return gwP=y},{mode:1});var he=function(){return _.u.apply(this,arguments)||this};
_.p(he,_.u);he.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],he.prototype,"data",void 0);_.J([_.k({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],he);
_.Y(he,"ytd-kids-blocklist-picker-content",function(){if(Iij!==void 0)return Iij;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Iij=
y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var PxC;var o9=function(){var y=_.u.apply(this,arguments)||this;y.hasAnyRequestSucceeded=!1;y.hasAnyRequestFailed=!1;y.numPendingRequests=0;return y};
_.p(o9,_.u);_.E=o9.prototype;_.E.attached=function(){this.hostElement.setAttribute("dialog","")};
_.E.onDoneButtonTap=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.E.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.E.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.E.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.E.onPopupClosed=function(y){var W,V;if(((W=y.detail)==null?void 0:(V=W.popup)==null?void 0:V.is)==="tp-yt-paper-dialog"){var w;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((w=this.data)==null?0:w.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.zw(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
o9.prototype.onPopupClosed=o9.prototype.onPopupClosed;o9.prototype.onYtServiceRequestError=o9.prototype.onYtServiceRequestError;o9.prototype.onYtServiceRequestCompleted=o9.prototype.onYtServiceRequestCompleted;o9.prototype.onYtServiceRequestSent=o9.prototype.onYtServiceRequestSent;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],o9.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],o9.prototype,"data",void 0);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o9.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o9.prototype,"onYtServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o9.prototype,"onYtServiceRequestError",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],o9.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],o9);
_.Y(o9,"ytd-kids-blocklist-picker-renderer",function(){if(PxC!==void 0)return PxC;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return PxC=y},{mode:1});var Cx4;var OmE;var KZ=function(){return _.u.apply(this,arguments)||this};
_.p(KZ,_.u);KZ.prototype.setTip=function(y){var W=this;this.data&&(this.tip=FOe(wSP.getInstance(),y,this.data),_.gy(this,function(){_.h1(W.hostElement,"yt-refit")}))};
KZ.prototype.clearTip=function(){this.tip=void 0};
KZ.prototype.computeHidden=function(y){return!y};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],KZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.R("design:type",Boolean)],KZ.prototype,"hidden",void 0);_.J([_.q(),_.R("design:type",Object)],KZ.prototype,"tip",void 0);_.J([_.k({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],KZ);
_.Y(KZ,"ytd-menu-popup-tip-renderer",function(){if(OmE!==void 0)return OmE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);
return OmE=y},{mode:1});var vw4;var pZ=function(){var y=_.u.apply(this,arguments)||this;y.useIcons=!1;y.systemIcons=_.e("kevlar_system_icons");y.useListItemStyles=_.e("web_list_item_style_for_menu_items");return y};
_.p(pZ,_.u);_.E=pZ.prototype;_.E.onFocus=function(){var y;(y=_.i6(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.E.onTap=function(){var y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(y&&_.h(y,_.mR))this.componentBehavior.resolveCommand(y),this.updateToggledStateInEntity();else if(y){this.componentBehavior.resolveCommand(y)||_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}});var W;((W=_.h(y,_.q8))==null?void 0:W.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.E.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.E.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.E.updateToggledStateInEntity=function(){var y=this.data.toggleMenuServiceItemEntityKey,W=!this.data.isToggled;y&&this.ytdReduxBehavior.dispatch(_.B5("toggleMenuServiceItemEntity",y,{key:y,isToggled:W}))};
_.E.computeIcon=function(y,W,V){return(y=y?V:W)&&y.iconType?_.D8(y.iconType):""};
_.E.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.E.isIconActive=function(y){return!_.e("toggle_menu_active_icon_killswitch")&&y};
_.CM.Object.defineProperties(pZ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?0:y.isToggled)?(W=this.data)==null?void 0:W.toggledText:(V=this.data)==null?void 0:V.defaultText}}});
pZ.prototype.toggledStateEntityChanged=pZ.prototype.toggledStateEntityChanged;pZ.prototype.onYtServiceRequestCompleted=pZ.prototype.onYtServiceRequestCompleted;pZ.prototype.onTap=pZ.prototype.onTap;pZ.prototype.onFocus=pZ.prototype.onFocus;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],pZ.prototype,"componentBehavior",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],pZ.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],pZ.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pZ.prototype,"useIcons",void 0);_.J([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.R("design:type",String)],pZ.prototype,"icon",void 0);
_.J([_.q({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(y,W){return _.UB(y.entities,"toggleMenuServiceItemEntity",W)}}),
_.R("design:type",Object)],pZ.prototype,"toggleMenuServiceItemEntity",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pZ.prototype,"systemIcons",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],pZ.prototype,"useListItemStyles",void 0);_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pZ.prototype,"onFocus",null);
_.J([_.M("data.isToggled"),_.R("design:type",Object),_.R("design:paramtypes",[])],pZ.prototype,"toggleButtonText",null);_.J([_.l6("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pZ.prototype,"onTap",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pZ.prototype,"onYtServiceRequestCompleted",null);
_.J([_.xA("toggleMenuServiceItemEntity.isToggled","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pZ.prototype,"toggledStateEntityChanged",null);_.J([_.k({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],pZ);
_.Y(pZ,"ytd-toggle-menu-service-item-renderer",function(){if(vw4!==void 0)return vw4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return vw4=y},{mode:1});var dhd;var iZ=function(){return _.u.apply(this,arguments)||this};
_.p(iZ,_.u);iZ.prototype.onFocus=function(){var y;(y=_.i6(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.CM.Object.defineProperties(iZ.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ye(this.data.iconUrl)}}});
iZ.prototype.onFocus=iZ.prototype.onFocus;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iZ.prototype,"rendererBehavior",void 0);_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],iZ.prototype,"ytEndpointBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],iZ.prototype,"data",void 0);_.J([_.l6("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iZ.prototype,"onFocus",null);
_.J([_.M("data.iconUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],iZ.prototype,"imageSource",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],iZ);
_.Y(iZ,"ytd-menu-custom-icon-item-renderer",function(){if(dhd!==void 0)return dhd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return dhd=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});_.iF(_.Zo,"yt-list-item-view-model",{props:{data:_.vB,isMenuItem:_.vB,isCompact:_.vB,onTap:_.p5,trailingAccessory:_.p5,hideSelectionTextChevron:_.vB,disabled:_.vB,inPopup:_.vB,disableHorizontalPadding:_.vB,isOverlay:_.vB,isToggled:_.vB,ariaLabel:_.vB,ariaPressed:_.vB}});var fZ=function(){var y=_.u.apply(this,arguments)||this;y.disableBackdropFilter=_.e("web_disable_backdrop_filter");return y};
_.p(fZ,_.u);_.E=fZ.prototype;
_.E.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"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.E.computeAriaLabel=function(y){return y};
_.E.onPopupOpened=function(){this.items.selected=0;for(var y=_.N(_.i6(this.items).children),W=y.next();!W.done;W=y.next())W.value.popupPositionTarget=this.positionTarget;if(y=this.popupTip||void 0)y.setTip(this.source||""),this.source=void 0;this.veData&&(y=_.Xn())&&_.IB(y,[this.veData])};
_.E.onPopupClosed=function(){var y=this.popupTip||void 0;y&&y.clearTip()};
_.E.onIronActivate=function(y){this.shouldPersist(y)||_.ow(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(y=_.Xn())&&_.PE(y,this.veData)};
_.E.shouldPersist=function(y){var W,V;if(((W=y.detail)==null?void 0:W.selected)===void 0||(V=this.data)==null||!V.items)return!1;var w,t;return!((t=(w=this.data.items[y.detail.selected])==null?void 0:w.toggleMenuServiceItemRenderer)==null||!t.persistentOnMenuPopup)};
_.E.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(y){return y.menuNavigationItemRenderer?!!y.menuNavigationItemRenderer.icon:y.menuServiceItemRenderer?!!y.menuServiceItemRenderer.icon:y.menuConditionalServiceItemRenderer?!!y.menuConditionalServiceItemRenderer.icon:y.menuConditionalNavigationItemRenderer?!!y.menuConditionalNavigationItemRenderer.icon:y.toggleMenuServiceItemRenderer?!!y.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
fZ.prototype.onPopupClosed=fZ.prototype.onPopupClosed;fZ.prototype.onPopupOpened=fZ.prototype.onPopupOpened;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],fZ.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],fZ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],fZ.prototype,"veData",void 0);_.J([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.R("design:type",String)],fZ.prototype,"ariaLabel",void 0);_.J([_.q({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],fZ.prototype,"useIcons",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],fZ.prototype,"disableBackdropFilter",void 0);_.J([_.s$("#items"),_.R("design:type",Object)],fZ.prototype,"items",void 0);_.J([_.s$("ytd-menu-popup-tip-renderer"),_.R("design:type",Object)],fZ.prototype,"popupTip",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fZ.prototype,"onPopupOpened",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fZ.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],fZ);
_.Y(fZ,"ytd-menu-popup-renderer",function(){if(Cx4!==void 0)return Cx4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Cx4=y},{mode:1});var LiP;var zxC=_.eY(function(y){y=_.zb(y,{icon:void 0});var W=y.data;y=y.icon;var V=function(){return W().iconBadgeText},w={},t=_.kS("yt-spec-icon-badge-shape",function(){a:switch(W().iconBadgeType){case "notification":var F="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":F="yt-spec-icon-badge-shape--type-cart";break a;default:F=""}return F},function(){a:switch(W().iconBadgeStyle){case "overlay":var F="yt-spec-icon-badge-shape--style-overlay";
break a;default:F=""}return F},(w["yt-spec-icon-badge-shape--text-size-small"]=function(){var F=V();
return!!((F==null?0:F.length)&&F.length>2)},w));
return _.O("yt-icon-badge-shape",null,_.O(_.v,{cond:y,then:function(F){return _.O("div",{class:t},_.O("div",{class:"yt-spec-icon-badge-shape__icon"},_.O(_.jl,{icon:F})),_.O(_.v,{cond:V,then:function(I){return _.O("div",{class:"yt-spec-icon-badge-shape__badge"},I)}}))}}))},"Fg");
zxC.idomCompat=!0;_.iF(zxC,"yt-icon-badge-shape",{props:{data:_.vB,icon:_.vB}});var T1=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};y.unseenCount=0;y.isOverlay=!1;return y};
_.p(T1,_.u);_.E=T1.prototype;_.E.attached=function(){var y=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(W){y.onServiceWorkerMessage(W)})};
_.E.onDataChanged=function(){this.isAttached&&!this.JSC$20279_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20279_lastData=this.data};
_.E.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.E.computeIcon=function(){var y,W;return(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType};
_.E.onServiceWorkerMessage=function(y){y.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.E.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.h(this.data.updateUnseenCountEndpoint,_.q8)&&_.h(this.data.updateUnseenCountEndpoint,_.q8).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.E.handleUpdateNotificationsUnseenCountAction=function(y){var W=this;y=_.h(y,EKv);y!=null&&y.unseenCount&&y.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(y.unseenCount),_.HU.addLowPriorityJob(function(){W.data.updateUnseenCountEndpoint&&W.ytComponentBehavior.resolveCommand(W.data.updateUnseenCountEndpoint)},y.timeoutMs))};
_.E.onClick=function(){_.h1(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var y=_.Kg(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),W=this.data.menuRequest;y&&y.length===1&&y[0]?_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):W&&this.ytComponentBehavior.resolveCommand(W)};
_.E.handleTopbarMenuClosedAction=function(y){y==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.E.toggleIconState=function(y){this.iconButton&&(this.iconButton.pressed=y)};
_.E.sendUnseenCountRequest=function(y){var W=this;_.Jt(_.HU,function(){W.ytComponentBehavior.resolveCommand(y)})};
_.E.updateCountUI=function(y){this.set("unseenCount",y<9?y:"9+")};
_.CM.Object.defineProperties(T1.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
T1.prototype.handleUpdateNotificationsUnseenCountAction=T1.prototype.handleUpdateNotificationsUnseenCountAction;T1.prototype.onDataChanged=T1.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.LK),_.R("design:type",Object)],T1.prototype,"ytdOpenPopupBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],T1.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],T1.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],T1.prototype,"unseenCount",void 0);_.J([_.q(),_.R("design:type",Object)],T1.prototype,"isOverlay",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],T1.prototype,"showTooltips",void 0);_.J([_.s$("yt-icon-button"),_.R("design:type",Object)],T1.prototype,"iconButton",void 0);
_.J([_.M("unseenCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],T1.prototype,"showNotificationCount",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],T1.prototype,"onDataChanged",null);_.J([_.l6("yt-update-notifications-unseen-count-action"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],T1.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.J([_.k({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],T1);
_.Y(T1,"ytd-notification-topbar-button-renderer",function(){if(LiP!==void 0)return LiP;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return LiP=y},{mode:_.qM("kevlar_poly_si_batch_j025")?1:2});var c3j;var mc=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return y};
_.p(mc,_.u);mc.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}}}}}};
mc.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
mc.prototype.onDarkModeToggled=function(y){this.dark=y};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],mc.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],mc.prototype,"data",void 0);_.J([_.q({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],mc.prototype,"dark",void 0);
_.J([_.k({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],mc);
_.Y(mc,"yt-pdg-buy-flow-header-renderer",function(){if(c3j!==void 0)return c3j;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return c3j=y},{mode:1});var ext;var hx3;var MA=function(){var y=_.u.apply(this,arguments)||this;y.immediateValue=0;y.isDarkTheme=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(MA,_.u);_.E=MA.prototype;_.E.created=function(){_.Ff.requestAvailability()};
_.E.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.E.dataChanged=function(){var y=_.i6(this.hostElement).querySelector("#color-slider");y.immediateValue&&this.updateSliderKnobAndGradientStyles(y.immediateValue);this.data.notches[0].knobColorArgb&&_.qg(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.wg(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.yC("HTML_DIR")==="rtl"&&_.i6(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.E.onSliderImmediateChange=function(){var y=_.i6(this.hostElement).querySelector("#color-slider");y.dragging&&(y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(y.immediateValue),this.updateSliderKnobAndGradientStyles(y.immediateValue)),this.updateSliderAria())};
_.E.onSliderChange=function(){var y=_.i6(this.hostElement).querySelector("#color-slider");y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(y.immediateValue),this.updateSliderKnobAndGradientStyles(y.immediateValue));this.updateSliderAria()};
_.E.updateSliderAria=function(){var y=_.i6(this.hostElement).querySelector("#color-slider"),W=_.i6(this.hostElement).querySelector("#color-slider");W=_.OT(this.data.notches[W.immediateValue].tierValue);_.Dt()&&_.h1(this.hostElement,"iron-announce",{text:W});y.setAttribute("aria-valuetext",W)};
_.E.updateSuperThanksSelectedTierEntity=function(y){if(y!==this.immediateValue){var W,V,w=this==null?void 0:(W=this.data)==null?void 0:(V=W.superThanksSelectedTierEntity)==null?void 0:V.key;w&&w.length>0&&this.ytdReduxBehavior.dispatch(_.B5("superThanksSelectedTierEntity",w,{key:w,index:y}))}};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.updateSliderKnobAndGradientStyles=function(y){this.immediateValue=y;y=this.data.notches[y];if(y==null?0:y.knobColorArgb)var W={"--ytd-pdg-color-slider-knob-color":_.wg(y.knobColorArgb)};(y==null?0:y.linearGradientCssStyle)&&W!==null&&(W=Object.assign({},W,{"--ytd-pdg-color-slider-active-color":y==null?void 0:y.linearGradientCssStyle}));W!==null&&_.qg(this.hostElement,W)};
MA.prototype.onSliderChange=MA.prototype.onSliderChange;MA.prototype.onSliderImmediateChange=MA.prototype.onSliderImmediateChange;MA.prototype.dataChanged=MA.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],MA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],MA.prototype,"immediateValue",void 0);_.J([_.q(),_.R("design:type",Number)],MA.prototype,"maxMarkers",void 0);
_.J([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aA3}),_.R("design:type",Object)],MA.prototype,"superThanksSelectedTierEntity",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],MA.prototype,"isDarkTheme",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],MA.prototype,"ytdReduxBehavior",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MA.prototype,"dataChanged",null);
_.J([_.l6("immediate-value-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MA.prototype,"onSliderImmediateChange",null);_.J([_.l6("change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MA.prototype,"onSliderChange",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],MA);
_.Y(MA,"ytd-pdg-color-slider-renderer",function(){if(hx3!==void 0)return hx3;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return hx3=y},{mode:1});var owu;var Kiu;var qA=null;
_.a6({is:"ytd-comment-input",_template:function(){if(Kiu!==void 0)return Kiu;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Kiu=y},
behaviors:[_.nrR.YtHostElementBehavior,_.Bw,_.Em.YtComponentBehavior,_.ph.YtRendererstamperBehavior,_.AFz.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 _.FX}},
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",_.Dp(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;_.uJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.Dp(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(y){y=y.detail;y=y.isCustomEmoji?y.shortcuts[0]:y.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,y);this.maybeUpdateTextDirection_();_.h1(this.hostElement,"input")},
getInputRange_:function(){var y=_.k9();if(y){y=y.getBrowserRangeObject();for(var W=y.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return y;W=W.parentNode}}y=this.getEditableTextArea_();y=_.yO(y,y.childNodes.length);y.select();return y.getBrowserRangeObject()},
insertTextWithEmojis_:function(y,W,V){(W=this.emojiManager.createDocumentFragment(W,!0,!1,V===void 0?!0:V))&&W.childNodes.length!==0&&(y.collapsed||y.deleteContents(),V=W.lastChild,y.insertNode(W),_.RdR(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var y=_.k9();if(y){var W=y.JSC$11221_getStartNode(),V=y.JSC$11221_getEndNode();if(BgW(W)&&BgW(V)){var w=y.JSC$11221_getStartOffset(),t;if(_.uP&&W.nodeType===Node.ELEMENT_NODE&&(t=_.RiQ(W)))_.yO(t,0).select();else{t=ie(W)?W:_.WM(W,ie);var F=ie(V)?V:_.WM(V,ie);if(t||F)if(y.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){y=!0;w===W.length&&(y=!1);if(qA==="end"||qA==="right")y=!1;W=W.parentNode;y=[].concat(_.GC(W.parentNode.childNodes)).indexOf(W)+(y?0:1);_.yO(W.parentNode,
y).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.Ww(V,y.JSC$11221_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),t.parentNode.insertBefore(W,t),_.Ww(V,y.JSC$11221_getEndOffset(),W,0).select()):F&&(F.nextSibling&&F.nextSibling.length>0?_.Ww(W,y.JSC$11221_getStartOffset(),F.nextSibling,1).select():(V=document.createTextNode("\u200b"),F.parentNode.insertBefore(V,F.nextSibling),_.Ww(W,y.JSC$11221_getStartOffset(),V,V.length).select()));
qA=null}}else qA=null}else qA=null},
leftKeyPressed_:function(){qA="left"},
rightKeyPressed_:function(){qA="right"},
endKeyPressed_:function(){qA="end"},
maybeDeleteChip_:function(){var y=H6e(!0);if(y){var W=_.k9(),V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();_.Gn(V,W,y,y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var y=H6e(!1);if(y){var W=_.k9(),V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();_.Gn(V,W,y,0).select()}},
maybeBackspaceChipWordMode_:function(y){var W=_.k9();if(W.isCollapsed()){var V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();var w=XWu(V,W,!0);w&&(_.Gn(V,W,w,0).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(y){var W=_.k9();if(W.isCollapsed()){var V=W.JSC$11221_getStartNode();W=W.JSC$11221_getStartOffset();var w=XWu(V,W,!1);w&&(_.Gn(V,W,w,w.childNodes.length).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
onContentClick:function(y){y.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(y){y.defaultPrevented||y.currentTarget.tagName==="YTD-COMMENT-INPUT"&&ie(y.target)&&y.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.i6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.i6(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(y,W){y=Rkd(y,this.emojiManager,W).cloneNode(!0);for(W=y.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var V=_.Xh();_.rAR(V,W);W=V.nextSibling;break;case "DIV":(V=W.lastChild)&&W.nextSibling&&_.bQ(_.Xh(),V);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.r4(_.Xh(),W);V&&V.nodeName==="BR"&&_.ku(V);V=W;W.hasChildNodes()?(W=W.firstChild,
_.bqQ(V)):(W=W.nextSibling,_.ku(V));break;default:W=W.nextSibling}return apt(y)},
setTextAreaValue:function(y){y||(y="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof y==="string"&&(y={runs:[{text:y}]});W.text=y},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();qA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var y=this.getEditableTextArea_();y&&(_.yO(y,y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.yC("HTML_DIR")==="rtl"){var y=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";y.setAttribute("dir",W)}},
handleInputEvent_:function(){var y=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(y=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(y,!0);this.updateCharCount_();y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=y.scrollHeight>y.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:y})},
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(y){this.isEmojiButtonDisplayed&&(y.preventDefault(),y.stopImmediatePropagation(),y=y.clipboardData.getData("text/plain"),this.insertText_(y,!1,!1),_.h1(this.hostElement,"input"))},
insertText_:function(y,W,V){W=W===void 0?!1:W;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&y){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(W&&this.emojiInput.offsetStartOfRangeBy(w,y.length),this.insertTextWithEmojis_(w,y,V),Jcj(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,y),this.updateSuggestionOffset_(w)))}},
getSimpleString:_.OT,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(y){return y?"focused":"not-focused"},
computePlaceholderText_:function(y){return this.getSimpleString(y)},
computeEditableText_:function(y){return this.getSimpleString(y)},
onPrefilledContentDismissed_:function(y){y.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(y,W){y?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(y){var W=this.getEditableTextArea_();[].concat(_.GC(y.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(w){W.appendChild(document.createTextNode(w))})});
y.preventDefault()},
preventDefault_:function(y){y.preventDefault()},
onSuggestionInsert_:function(y){this.insertTextWithEmojis_(y.detail.range,y.detail.text)},
onEmojiSuggestionClick_:function(y){this.emojiInput.insertSuggestion(y.detail)},
updateSuggestionOffset_:function(y){if(this.emojiInput&&_.i6(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,V=y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-V)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;y=y.getBoundingClientRect().left-W;_.i6(this.emojiInput).querySelector("#dropdown").style.marginLeft=y+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Zb("yt-post"));return this.localStorage}});var Ua=function(){var y=_.u.apply(this,arguments)||this;y.currentCommentOptionIndex=0;y.isEmojiPickerDisplayed=!1;y.emojiManager=_.FX;y.isUgcEmpty=!1;y.userGeneratedCommentChangedHandler=function(){_.h1(y.hostElement,"ytd-pdg-user-generated-comment-changed");y.isEmojiYtdCommentInputEnabled&&(y.isUgcEmpty=!y.ytdCommentInputEl.getTextAreaValue())};
y.pasteHandler=function(W){W.preventDefault();W.stopImmediatePropagation();var V;if(W=(V=W.clipboardData)==null?void 0:V.getData("text/plain"))V=document.getSelection().getRangeAt(0),V.collapsed||V.deleteContents(),W=document.createTextNode(W),V.insertNode(W),V.selectNodeContents(W),V.collapse(!1),W=window.getSelection(),W.removeAllRanges(),W.addRange(V)};
y.onDocumentClick=function(W){if(y.isEmojiPickerDisplayed){var V,w,t;!(W.target instanceof Node)||(V=W.composedPath())!=null&&V.includes(y.editableTextEl)||(w=W.composedPath())!=null&&w.includes(y.emojiButtonEl)||(t=W.composedPath())!=null&&t.includes(y.emojiPickerEl)||(y.isEmojiPickerDisplayed=!1)}};
return y};
_.p(Ua,_.u);_.E=Ua.prototype;_.E.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.E.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.E.detached=function(){var y;(y=this.contentEl)==null||y.removeEventListener("input",this.userGeneratedCommentChangedHandler);var W;(W=this.contentEl)==null||W.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.E.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.E.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var y;this.contentEl.textContent=this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.E.reloadEmojis=function(){this.emojiPickerEl&&_.h(this.emojiPicker,_.ARi)&&this.emojiPickerEl.updateEmojiCategories()};
_.E.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.qg(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.E.handleBackgroundColorStyling=function(){var y;if((y=this.currentCommentOption)==null?0:y.commentBackgroundColorArgb){var W;_.qg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.wg((W=this.currentCommentOption)==null?void 0:W.commentBackgroundColorArgb)})}else _.qg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.E.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var y;(y=this.contentEl)==null||y.focus()}};
_.E.onEditButtonClick=function(y){var W=document.getSelection();W&&this.contentEl&&(y.stopPropagation(),y.preventDefault(),W.selectAllChildren(this.contentEl),W.collapseToEnd())};
_.E.onContentDrop=function(y){var W=this;if(y.dataTransfer){y=_.N(y.dataTransfer.items);for(var V=y.next();!V.done;V=y.next())V=V.value,V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(w){var t;(t=W.contentEl)==null||t.appendChild(document.createTextNode(w))})}};
_.E.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.E.getUserGeneratedCommentText=function(){var y,W=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(y=this.contentEl)==null?void 0:y.textContent;return W?W.trim():""};
_.E.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.E.onEmojiSelect=function(y){this.ytdCommentInputEl.onEmojiSelect(y)};
_.CM.Object.defineProperties(Ua.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.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 y;return!((y=this.currentCommentOption)==null||!y.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if(_.h((y=this.currentCommentOption)==null?void 0:y.chipRenderer,_.yr6)){var W;return _.h((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.yr6)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var y,W;return((y=this.data)==null?0:y.commentOptionRenderers)?_.h((W=this.data)==null?void 0:W.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Dit):void 0}var V,w;return((V=this.data)==null?0:V.commentOptionRenderers)?_.h((w=this.data)==null?void 0:w.commentOptionRenderers[this.currentCommentOptionIndex],Dit):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var y;return this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var y;return this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.commentDialog,_.UIz))==null?void 0:W.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.commentDialog,_.UIz))==null?void 0:W.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.h((y=this.data)==null?void 0:y.commentDialog,_.UIz))==null?void 0:W.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(W=_.h((y=this.data)==null?void 0:y.commentDialog,_.UIz))==null?void 0:W.emojiPicker;if(!_.h(V,_.ARi)||!_.h(V,_.ARi).categories)return!1;y=function(F){return F.emojiPickerCategoryRenderer?F.emojiPickerCategoryRenderer.emojiIds&&F.emojiPickerCategoryRenderer.emojiIds.length>0:F.emojiPickerUpsellCategoryRenderer?F.emojiPickerUpsellCategoryRenderer.emojis&&F.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var w,t;return((w=_.h(V,_.ARi))==null?0:(t=w.categories)==null?0:t.find(y))?!0:!1}}});
Ua.prototype.onEmojiSelect=Ua.prototype.onEmojiSelect;Ua.prototype.dataChanged=Ua.prototype.dataChanged;Ua.prototype.currentCommentOptionChanged=Ua.prototype.currentCommentOptionChanged;_.J([_.m(_.y$),_.R("design:type",Object)],Ua.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ua.prototype,"rendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.s$("#content-dom-if"),_.R("design:type",_.rg)],Ua.prototype,"contentDomIfEl",void 0);_.J([_.s$("#content-no-emojis"),_.R("design:type",HTMLElement)],Ua.prototype,"contentEl",void 0);_.J([_.s$("#container"),_.R("design:type",HTMLElement)],Ua.prototype,"containerEl",void 0);_.J([_.s$("#comment-chip-container"),_.R("design:type",HTMLElement)],Ua.prototype,"paidCommentChipContainerEl",void 0);_.J([_.s$("#text-input"),_.R("design:type",HTMLElement)],Ua.prototype,"editableTextEl",void 0);
_.J([_.s$("#emoji-button"),_.R("design:type",HTMLElement)],Ua.prototype,"emojiButtonEl",void 0);_.J([_.s$("#emoji-picker > yt-emoji-picker-renderer"),_.R("design:type",Object)],Ua.prototype,"emojiPickerEl",void 0);_.J([_.s$("#text-input > ytd-comment-input"),_.R("design:type",Object)],Ua.prototype,"ytdCommentInputEl",void 0);_.J([_.q(),_.R("design:type",Object)],Ua.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Ua.prototype,"currentCommentOptionIndex",void 0);
_.J([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aA3}),_.R("design:type",Object)],Ua.prototype,"superThanksSelectedTierEntity",void 0);_.J([_.q(),_.R("design:type",Object)],Ua.prototype,"isEmojiPickerDisplayed",void 0);_.J([_.q(),_.R("design:type",Object)],Ua.prototype,"emojiManager",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ua.prototype,"isUgcEmpty",void 0);
_.J([_.xA("currentCommentOption"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ua.prototype,"currentCommentOptionChanged",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ua.prototype,"dataChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ua.prototype,"isEmojiYtdCommentInputEnabled",null);
_.J([_.M("data.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"title",null);_.J([_.M("data.authorText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"channelName",null);_.J([_.M("data.commentOptionRenderers","currentCommentOption"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ua.prototype,"shouldShowPaidCommentChipRenderer",null);
_.J([_.M("data.commentOptionRenderers","currentCommentOption"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"paidCommentChipRenderer",null);_.J([_.M("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"currentCommentOption",null);
_.J([_.M("data.defaultCommentText","superThanksSelectedTierEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"commentText",null);_.J([_.M("data.placeholderText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"placeholderText",null);_.J([_.M("data.commentDialog.commentDialogRenderer.editableText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"editableText",null);
_.J([_.M("data.commentDialog.commentDialogRenderer.emojiButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"emojiButton",null);_.J([_.M("data.commentDialog.commentDialogRenderer.emojiPicker"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ua.prototype,"emojiPicker",null);
_.J([_.M("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ua.prototype,"isEmojiButtonDisplayed",null);_.J([_.l6("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Ua.prototype,"onEmojiSelect",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Ua);
_.Y(Ua,"ytd-pdg-comment-preview-renderer",function(){if(owu!==void 0)return owu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return owu=y},{mode:2});var p64;var uZ=function(){var y=_.u.apply(this,arguments)||this;y.selected=!1;return y};
_.p(uZ,_.u);_.E=uZ.prototype;_.E.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.E.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.E.dataChanged=function(){this.data&&(_.f6(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.qg(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.wg(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.wg(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.E.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.E.onClick=function(){this.logClick()};
_.E.onKeyboardSelect=function(){_.h1(this.hostElement,"tap");this.onClick()};
_.E.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
uZ.prototype.onClick=uZ.prototype.onClick;uZ.prototype.selectedChanged=uZ.prototype.selectedChanged;uZ.prototype.dataChanged=uZ.prototype.dataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],uZ.prototype,"componentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Bw),_.R("design:type",Object)],uZ.prototype,"ironA11yKeysBehavior",void 0);
_.J([_.m(_.PC),_.R("design:type",Object)],uZ.prototype,"ironSelectableBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uZ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],uZ.prototype,"shownThumbnail",void 0);_.J([_.q(),_.R("design:type",Object)],uZ.prototype,"basePriceText",void 0);_.J([_.q(),_.R("design:type",Object)],uZ.prototype,"purchaseCommand",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],uZ.prototype,"selected",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uZ.prototype,"dataChanged",null);_.J([_.xA("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uZ.prototype,"selectedChanged",null);_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uZ.prototype,"onClick",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],uZ);
_.Y(uZ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(p64!==void 0)return p64;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return p64=y},{mode:1});var S8=function(){var y=_.u.apply(this,arguments)||this;y.selectedItemIndex=0;y.buyButtonDisabled=!1;return y};
_.p(S8,_.u);_.E=S8.prototype;
_.E.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]]"}}}}}};
_.E.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var y;var W=(y=_.h(this.data.colorSlider,SAq))==null?void 0:y.notches[this.selectedItemIndex].purchaseCommand}else{var V;W=(V=_.h(this.data.selectableItemButtons[this.selectedItemIndex],xi4))==null?void 0:V.purchaseCommand}if(W){y=_.h(W,_.xC2);y.productData||(y.productData={});var w;y.productData={pdgData:{commentMessageText:(w=this.commentPreviewRenderer)==null?void 0:w.getUserGeneratedCommentText()}};
_.h1(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(W)}}};
_.E.dataChanged=function(){if(this.data){_.FX.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.vQs(_.FX,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.FX.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var y;this.buyButtonDisabled=!((y=_.h(this.data.commentPreview,lkE))==null||!y.placeholderText);this.updatePriceSelectorStatus();var W;if((W=this.data)==null?0:W.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;y=[];this.data.preloadImages&&(y=this.data.preloadImages);
y=y.map(function(V){return _.f5(V.thumbnails,1920)});
y=_.N(y);for(W=y.next();!W.done;W=y.next())(W=W.value)&&_.qIz(W).thenCatch(function(){_.rQ(Error("vl"))})}};
_.E.superThanksSelectedTierEntityChanged=function(){var y;(this==null?void 0:(y=this.superThanksSelectedTierEntity)==null?void 0:y.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.E.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.E.updatePriceSelectorStatus=function(){this.isColorSlider?(_.i6(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.i6(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.i6(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.i6(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.E.closeBuyFlow=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.E.onUserGeneratedContentChanged=function(){var y;this.buyButtonDisabled=!((y=this.commentPreviewRenderer)==null?0:y.getUserGeneratedCommentText())};
_.E.updateSelectedItemIndexFromBinding=function(y){this.selectedItemIndex=y.detail.value};
_.CM.Object.defineProperties(S8.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.disclaimerText)}}});
S8.prototype.onUserGeneratedContentChanged=S8.prototype.onUserGeneratedContentChanged;S8.prototype.closeBuyFlow=S8.prototype.closeBuyFlow;S8.prototype.selectedItemIndexChanged=S8.prototype.selectedItemIndexChanged;S8.prototype.superThanksSelectedTierEntityChanged=S8.prototype.superThanksSelectedTierEntityChanged;S8.prototype.dataChanged=S8.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],S8.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],S8.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],S8.prototype,"selectedItemIndex",void 0);_.J([_.q(),_.R("design:type",Boolean)],S8.prototype,"isColorSlider",void 0);
_.J([_.q(),_.R("design:type",Object)],S8.prototype,"buyButtonDisabled",void 0);_.J([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aA3}),_.R("design:type",Object)],S8.prototype,"superThanksSelectedTierEntity",void 0);_.J([_.s$("ytd-pdg-comment-preview-renderer"),_.R("design:type",Object)],S8.prototype,"commentPreviewRenderer",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],S8.prototype,"ytdReduxBehavior",void 0);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S8.prototype,"dataChanged",null);_.J([_.xA("superThanksSelectedTierEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S8.prototype,"superThanksSelectedTierEntityChanged",null);_.J([_.xA("selectedItemIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S8.prototype,"selectedItemIndexChanged",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S8.prototype,"closeBuyFlow",null);_.J([_.l6("ytd-pdg-user-generated-comment-changed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S8.prototype,"onUserGeneratedContentChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],S8.prototype,"isDisclaimerTextShown",null);
_.J([_.k({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],S8);
_.Y(S8,"yt-super-vod-buy-flow-content-renderer",function(){if(ext!==void 0)return ext;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ext=y},{mode:1});var imW;var Dc=function(){var y=_.u.apply(this,arguments)||this;y.lottieAnimationRef={};return y};
_.p(Dc,_.u);_.E=Dc.prototype;_.E.created=function(){_.Ff.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Dp(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.E.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.h1(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.E.detached=function(){this.autoCloseJobId&&_.HU.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Dp(this,this.onPopupIronOverlayOpened))};
_.E.dataChanged=function(){var y=this;this.data&&this.data.autoCloseDelay&&(_.ow(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.q4(_.HU,function(){y.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.qg(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.E.onDOMLoadedLottie=function(){var y=this,W,V,w=Number((W=this.data)==null?void 0:(V=W.autoCloseDelay)==null?void 0:V.seconds)||0;this.fadeOutJobId=_.q4(_.HU,function(){y.lottiePlayerEl.classList.add("fadeout")},(w-.25)*1E3);
this.autoCloseJobId=_.q4(_.HU,function(){y.closePopup()},w*1E3)};
_.E.openPopup=function(){this.ironOverlayBehavior.open()};
_.E.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ow(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.fg(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.hs().resolve(_.oA).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.HU.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.HU.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.E.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var y,W;(y=this.lottieAnimationRef)==null||(W=y.lottieEl)==null||W.destroy();y=this.data.lottie;var V,w;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:y.url+"_"+Math.random(),path:y.url,autoplay:!0,loop:(w=(V=y.settings)==null?void 0:V.loop)!=null?w:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.CM.Object.defineProperties(Dc.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.lottie)==null?0:W.url)}}});
Dc.prototype.maybeInitializeLottie=Dc.prototype.maybeInitializeLottie;Dc.prototype.dataChanged=Dc.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dc.prototype,"rendererBehavior",void 0);_.J([_.m(_.Pq),_.R("design:type",Object)],Dc.prototype,"ironOverlayBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Dc.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Dc.prototype,"lottiePlayerProps",void 0);
_.J([_.q(),_.R("design:type",Object)],Dc.prototype,"lottieAnimationRef",void 0);_.J([_.s$("ytd-lottie-player"),_.R("design:type",HTMLElement)],Dc.prototype,"lottiePlayerEl",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dc.prototype,"dataChanged",null);_.J([_.M("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dc.prototype,"hasLottieAnimation",null);
_.J([_.xA("data.lottie.url"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dc.prototype,"maybeInitializeLottie",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Dc);
_.Y(Dc,"ytd-desktop-image-overlay-renderer",function(){if(imW!==void 0)return imW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return imW=y},{mode:1});var TRe;var lZ=function(){return _.u.apply(this,arguments)||this};
_.p(lZ,_.u);_.E=lZ.prototype;_.E.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"}}}}};
_.E.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",_.Dp(this,this.closePopup))};
_.E.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Dp(this,this.closePopup))};
_.E.dataChanged=function(){_.Kg(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.h(this.data.header,uSe)&&(this.hasBackgroundBanner=!!_.h(this.data.header,uSe).backgroundBanner)};
_.E.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Dp(this,this.closePopup))};
_.E.closePopup=function(){this.data&&this.data.onCloseCommand&&_.i5(this.hostElement,[this.data.onCloseCommand])};
lZ.prototype.handleBuyflowSelectionSubmitted=lZ.prototype.handleBuyflowSelectionSubmitted;lZ.prototype.dataChanged=lZ.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lZ.prototype,"data",void 0);
_.J([_.q({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],lZ.prototype,"hasBackgroundBanner",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lZ.prototype,"dataChanged",null);_.J([_.l6("yt-pdg-buy-flow-selection-submitted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lZ.prototype,"handleBuyflowSelectionSubmitted",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],lZ);
_.Y(lZ,"ytd-pdg-buy-flow-renderer",function(){if(TRe!==void 0)return TRe;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TRe=y},{mode:1});var mh3;var xz=function(){var y=_.u.apply(this,arguments)||this;y.isOpen=!1;y.isPlaylistCreated=!1;return y};
_.p(xz,_.u);_.E=xz.prototype;_.E.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.E.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.h1(this.hostElement,"yt-refit")};
_.E.onCreateTap=function(){var y=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.i5(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(W,V){if(!_.e("killswitch_ep_in_create_playlist_response")&&(V==null?0:V.actions))for(W=_.N(V.actions),V=W.next();!V.done;V=W.next())V=V.value,_.h(V,_.rx)&&y.ytComponentBehavior.resolveCommand(V)}}]),this.isPlaylistCreated=!0)};
_.E.onKeydown=function(y){if(y.keyCode===13)this.onCreateTap()};
_.E.onServiceRequestCompleted=function(y){y.stopPropagation();_.ow(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.E.computePrivacyBadge=function(y){return y?[{metadataBadgeRenderer:y}]:[]};
xz.prototype.onServiceRequestCompleted=xz.prototype.onServiceRequestCompleted;xz.prototype.onKeydown=xz.prototype.onKeydown;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xz.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],xz.prototype,"isOpen",void 0);
_.J([_.q(),_.R("design:type",Object)],xz.prototype,"isPlaylistCreated",void 0);_.J([_.q({value:{REQUIRED_LABEL:_.u5("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.u5("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.R("design:type",Object)],xz.prototype,"addToStrings",void 0);_.J([_.q({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.R("design:type",Array)],xz.prototype,"privacyBadge",void 0);
_.J([_.s$("#privacy-input"),_.R("design:type",Object)],xz.prototype,"privacyInput",void 0);_.J([_.s$("#name-input"),_.R("design:type",Object)],xz.prototype,"nameInput",void 0);_.J([_.l6("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],xz.prototype,"onKeydown",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xz.prototype,"onServiceRequestCompleted",null);
_.J([_.k({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],xz);
_.Y(xz,"ytd-add-to-playlist-create-renderer",function(){if(mh3!==void 0)return mh3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mh3=y},{mode:1});var Mjd;var qjj;var kz=function(){var y=_.u.apply(this,arguments)||this;y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.p(kz,_.u);kz.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
kz.prototype.onCheckboxChange=function(y){var W=this;this.data&&_.NM(this,"yt-playlist-checkbox-changed",function(){var V=_.vW(y).checked?W.data.addToPlaylistServiceEndpoint:W.data.removeFromPlaylistServiceEndpoint;V&&_.hs().resolve(_.oA).resolveCommand(V,{form:{element:W.hostElement}});_.e("dl_playlist_killswitch")||W.transferState!=="TRANSFER_STATE_UNKNOWN"&&W.transferState!=="TRANSFER_STATE_FAILED"&&W.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:W.data.playlistId,action:"ACTION_SYNC"}})},
100)};
kz.prototype.computeIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
kz.prototype.dataChanged=kz.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kz.prototype,"data",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],kz.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],kz.prototype,"ytComponentBehavior",void 0);_.J([_.s$("#checkbox"),_.R("design:type",HTMLInputElement)],kz.prototype,"checkbox",void 0);
_.J([_.q({selector:_.W9,selectorArgs:["data.playlistId"]}),_.R("design:type",String)],kz.prototype,"transferState",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kz.prototype,"dataChanged",null);_.J([_.k({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],kz);
_.Y(kz,"ytd-playlist-add-to-option-renderer",function(){if(qjj!==void 0)return qjj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qjj=y},{mode:1});_.zY(GAC);_.Sl(GAC,"ytd-menu-title-renderer",{propNames:["data"]});var sa=function(){var y=_.u.apply(this,arguments)||this;y.addToStrings={ADD_TO_DROPDOWN_LABEL:_.u5("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};y.closeButtonAriaLabel=_.u5("SBOX_INAPPROPRIATE_CANCEL");y.dialog=_.e("desktop_add_to_playlist_renderer_dialog_popup");return y};
_.p(sa,_.u);_.E=sa.prototype;_.E.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"}}}};
_.E.onPopupOpened=function(){_.TA(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.E.onPopupClosed=function(){_.TA(this.playlists,"scrollable",!1)};
_.E.computeAriaLabel=function(){var y;if(this==null?0:(y=this.data)==null?0:y.actions){y=_.N(this.data.actions);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.menuTitleRenderer)return _.OT(W.menuTitleRenderer.title)}};
_.E.onTapClose=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.CM.Object.defineProperties(sa.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if(this==null?0:(y=this.data)==null?0:y.actions){y=_.N(this.data.actions);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.menuTitleRenderer)return W.menuTitleRenderer}return!1}}});
sa.prototype.onPopupClosed=sa.prototype.onPopupClosed;sa.prototype.onPopupOpened=sa.prototype.onPopupOpened;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],sa.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sa.prototype,"ytRendererStamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],sa.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],sa.prototype,"addToStrings",void 0);_.J([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.R("design:type",String)],sa.prototype,"ariaLabel",void 0);_.J([_.q(),_.R("design:type",String)],sa.prototype,"closeButtonAriaLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],sa.prototype,"dialog",void 0);
_.J([_.s$("#playlists"),_.R("design:type",HTMLElement)],sa.prototype,"playlists",void 0);_.J([_.s$("ytd-add-to-playlist-create-renderer"),_.R("design:type",Object)],sa.prototype,"createRenderer",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sa.prototype,"menuTitleRenderer",null);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sa.prototype,"onPopupOpened",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sa.prototype,"onPopupClosed",null);_.J([_.k({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],sa);
_.Y(sa,"ytd-add-to-playlist-renderer",function(){if(Mjd!==void 0)return Mjd;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Mjd=y},{mode:1});var Uhu;var Ae=function(){var y=_.u.apply(this,arguments)||this;y.isPlaylistEditComplete=!1;y.isCollabEngagementDisabled=!1;y.closeButtonAriaLabel=_.u5("SBOX_INAPPROPRIATE_CANCEL");y.saveButton={title:_.u5("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"};y.onValueChanged=function(){y.updateSaveButtonState();y.computeCollabEngagementDisabled()};
return y};
_.p(Ae,_.u);_.E=Ae.prototype;_.E.attached=function(){this.JSC$20335_scroller&&(this.JSC$20335_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20335_scroller.attached&&typeof this.JSC$20335_scroller.attached==="function"&&this.JSC$20335_scroller.attached())};
_.E.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.E.onPopupClosed=function(){this.reset()};
_.E.close=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.E.onClickSave=function(){var y=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var W=[];this.nameInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var V=Number(this.privacyInput.value);isNaN(V)||W.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:V})}this.votingInput.value!==null&&(V=this.votingInput.value)&&W.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:V});if(W.length>0){var w;_.h((w=this.data)==null?void 0:w.updateSettingsEndpoint,_.yB).actions=W;var t;if((t=this.data)==null?0:t.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){y.close()}}}),this.isPlaylistEditComplete=!0}}};
_.E.computePrivacyBadge=function(y){return y?[{metadataBadgeRenderer:y}]:[]};
_.E.computeEditorData=function(y){var W,V;return y==null?void 0:(W=y.sections)==null?void 0:(V=W[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer};
_.E.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.E.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}}}}}};
_.E.computeAriaLabel=function(){var y,W,V,w=(y=this.data)==null?void 0:(W=y.sections)==null?void 0:(V=W[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer;return _.OT(w==null?void 0:w.title)};
_.E.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"}))};
_.E.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.E.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.E.isNameChanged=function(){var y,W,V;return(((y=this.editorData)==null?void 0:(W=y.name)==null?void 0:(V=W.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.nameInput.value||"")};
_.E.isDescriptionChanged=function(){var y,W,V;return(((y=this.editorData)==null?void 0:(W=y.description)==null?void 0:(V=W.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.descriptionInput.value||"")};
_.E.isPrivacyChanged=function(){var y,W,V,w,t,F,I,P;return((I=(y=this.editorData)==null?void 0:(W=y.privacy)==null?void 0:(V=W.dropdownFormFieldRenderer)==null?void 0:(w=V.dropdown)==null?void 0:(t=w.dropdownRenderer)==null?void 0:(F=t.entries)==null?void 0:F.find(function(C){var d;return C==null?void 0:(d=C.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(P=I.privacyDropdownItemRenderer)==null?void 0:P.int32Value)!==this.privacyInput.value};
_.E.isVotingChanged=function(){var y,W,V,w,t,F,I,P;return((I=(y=this.editorData)==null?void 0:(W=y.voting)==null?void 0:(V=W.dropdownFormFieldRenderer)==null?void 0:(w=V.dropdown)==null?void 0:(t=w.dropdownRenderer)==null?void 0:(F=t.entries)==null?void 0:F.find(function(C){var d;return C==null?void 0:(d=C.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(P=I.privacyDropdownItemRenderer)==null?void 0:P.int32Value)!==this.votingInput.value};
Ae.prototype.onPopupClosed=Ae.prototype.onPopupClosed;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Ae.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ae.prototype,"ytRendererStamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Ae.prototype,"data",void 0);_.J([_.q({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.R("design:type",Array)],Ae.prototype,"privacyBadge",void 0);_.J([_.q({computed:"computeEditorData(data)"}),_.R("design:type",Object)],Ae.prototype,"editorData",void 0);_.J([_.q(),_.R("design:type",Object)],Ae.prototype,"isPlaylistEditComplete",void 0);_.J([_.q(),_.R("design:type",Object)],Ae.prototype,"isCollabEngagementDisabled",void 0);
_.J([_.q({value:{REQUIRED_LABEL:_.u5("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.u5("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.R("design:type",Object)],Ae.prototype,"addToStrings",void 0);_.J([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.R("design:type",String)],Ae.prototype,"ariaLabel",void 0);_.J([_.q(),_.R("design:type",String)],Ae.prototype,"closeButtonAriaLabel",void 0);
_.J([_.q(),_.R("design:type",Object)],Ae.prototype,"saveButton",void 0);_.J([_.s$("#name-input"),_.R("design:type",Object)],Ae.prototype,"nameInput",void 0);_.J([_.s$("#description-input"),_.R("design:type",Object)],Ae.prototype,"descriptionInput",void 0);_.J([_.s$("#privacy-input"),_.R("design:type",Object)],Ae.prototype,"privacyInput",void 0);_.J([_.s$("#voting-input"),_.R("design:type",Object)],Ae.prototype,"votingInput",void 0);
_.J([_.s$("#scroller"),_.R("design:type",Object)],Ae.prototype,"JSC$20335_scroller",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ae.prototype,"onPopupClosed",null);_.J([_.q(),_.R("design:type",Object)],Ae.prototype,"onValueChanged",void 0);_.J([_.k({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Ae);
_.Y(Ae,"ytd-playlist-settings-editor-renderer",function(){if(Uhu===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);Uhu=y}y=Uhu;return y},{mode:1});var u9P;_.ZQ("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Yz=function(){return _.u.apply(this,arguments)||this};
_.p(Yz,_.u);_.E=Yz.prototype;_.E.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}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.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 y=this.get("data.nextButton.buttonRenderer.navigationEndpoint");y&&(this.nextNavigationEndpoint=y,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.E.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 y={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",y)}}};
_.E.onPopupOpened=function(y){y.detail!==this&&y.detail!==this.hostElement||!_.e("enable_premium_voluntary_pause")||_.ow(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.E.onNextButtonTap=function(){var y=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);y&&this.ytdOpenPopupBehavior.openPopup(y)};
_.E.updateSelectedResponseIndexFromBinding=function(y){this.selectedResponseIndex=y.detail.value};
Yz.prototype.onPopupOpened=Yz.prototype.onPopupOpened;Yz.prototype.onSelectedResponseIndexChange=Yz.prototype.onSelectedResponseIndexChange;Yz.prototype.dataChanged=Yz.prototype.dataChanged;_.J([_.m(_.LK),_.R("design:type",Object)],Yz.prototype,"ytdOpenPopupBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],Yz.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],Yz.prototype,"selectedResponseIndex",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yz.prototype,"dataChanged",null);_.J([_.xA("selectedResponseIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yz.prototype,"onSelectedResponseIndexChange",null);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Yz.prototype,"onPopupOpened",null);_.J([_.k({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Yz);
_.Y(Yz,"ytd-red-cancel-survey-renderer",function(){if(u9P!==void 0)return u9P;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return u9P=y},{mode:1});var SjP;var BT=function(){var y=_.u.apply(this,arguments)||this;y.closeButtonAriaLabel=_.u5("SBOX_INAPPROPRIATE_CANCEL");return y};
_.p(BT,_.u);BT.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
BT.prototype.onClickClose=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],BT.prototype,"rendererStamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BT.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],BT.prototype,"closeButtonAriaLabel",void 0);_.J([_.k({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],BT);
_.Y(BT,"ytd-search-filter-options-dialog-renderer",function(){if(SjP!==void 0)return SjP;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return SjP=y},{mode:1});var Dht;var Q6C=function(){return function(y){y=y.availabilityType;return y===void 0||y==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||y==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Je=function(){var y=_.u.apply(this,arguments)||this;y.qualityOptions=[];y.upsellOptions=[];y.showUpsellSection=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.rememberSettingsChecked=!1;return y};
_.p(Je,_.u);_.E=Je.prototype;_.E.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}}}}};
_.E.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.E.updateQualityOptions=function(){if(this.formats===void 0)_.ow(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var y=[],W=[];this.showUpsellSection=!1;for(var V=_.N(this.formats),w=V.next();!w.done;w=V.next())(w=w.value)&&(w.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?W.push(w):y.push(w));y.length&&(this.qualityOptions=b6d(y));W.length&&(this.showUpsellSection=!0,this.upsellOptions=b6d(W))}};
_.E.updateRememberString=function(){if(this.downloadQualityPickerEntity)var y=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var W;y=(W=this.data)==null?void 0:W.premiumRememberSettingString}else{var V;y=(V=this.data)==null?void 0:V.rememberSettingString}y=y===void 0?_.u5("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):y;this.rememberSettingsCheckboxRenderer={title:_.oB(y),disabled:!1}};
_.E.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.CM.Object.defineProperties(Je.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(y=this.data)==null?void 0:y.qualityFormats}}});
Je.prototype.updateRememberString=Je.prototype.updateRememberString;Je.prototype.updateQualityOptions=Je.prototype.updateQualityOptions;Je.prototype.dataChanged=Je.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Je.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Je.prototype,"data",void 0);
_.J([_.m(_.y$),_.R("design:type",Object)],Je.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Boolean)],Je.prototype,"selectedUpsellQuality",void 0);_.J([_.q({computed:"computeIcon_(data.premiumIcon)",value:""}),_.R("design:type",String)],Je.prototype,"premiumIcon",void 0);_.J([_.q({selector:$Tj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.R("design:type",Object)],Je.prototype,"downloadQualityPickerEntity",void 0);
_.J([_.q(),_.R("design:type",Array)],Je.prototype,"qualityOptions",void 0);_.J([_.q(),_.R("design:type",Array)],Je.prototype,"upsellOptions",void 0);_.J([_.q(),_.R("design:type",Object)],Je.prototype,"showUpsellSection",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Je.prototype,"darkerDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],Je.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.J([_.s$("#remember-settings"),_.R("design:type",HTMLInputElement)],Je.prototype,"rememberSettingsCheckbox",void 0);_.J([_.q(),_.R("design:type",Object)],Je.prototype,"rememberSettingsChecked",void 0);_.J([_.q(),_.R("design:type",Function)],Je.prototype,"onRememberSettingsCheckedChanged",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Je.prototype,"dataChanged",null);
_.J([_.xA("downloadQualityPickerEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Je.prototype,"updateQualityOptions",null);_.J([_.xA("selectedUpsellQuality"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Je.prototype,"updateRememberString",null);_.J([_.k({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Je);
_.Y(Je,"ytd-download-quality-selector-content",function(){if(Dht!==void 0)return Dht;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Dht=y},{mode:1});var lid;var R9=function(){var y=_.u.apply(this,arguments)||this;y.selectedUpsellQuality=!1;y.qualityOptions=[];y.darkerDarkTheme=_.e("web_darker_dark_theme");y.useUpsellDismissAlternate=_.e("use_not_now_dl_upsell_dismiss_cta");y.shouldShowAlternateUpsellDimiss=!1;y.rememberSettings=!1;y.rememberSettingsChecked=!1;y.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};y.rememberSettingsCheckedChanged=function(W){y.rememberSettingsChecked=W};
return y};
_.p(R9,_.u);_.E=R9.prototype;
_.E.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.oB(_.u5("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.E.updateQualityOptions=function(){this.formats===void 0?_.ow(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=b6d(this.formats)};
_.E.onQualityOptionsSelect=function(y){if(this.qualityOptions&&y){y!==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 W=_.N(this.qualityOptions.entries()),V=W.next();!V.done;V=
W.next()){V=_.N(V.value);var w=V.next().value;V=V.next().value;var t=void 0,F=void 0;if(((t=V)==null?void 0:(F=t.settingsRadioOptionRenderer)==null?void 0:F.id)===y){this.selectedQualityIndex=w;y=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((y=this.formats[w])==null?void 0:y.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.E.onClickSubmit=function(){var y;if((y=this.downloadButtonRenderer)==null||!y.isDisabled){var W,V;y=(V=(W=this.data)==null?void 0:W.onSubmitEndpoint)!=null?V:{};var w,t;if(this.formats&&(((w=_.h(y,_.xn))==null?0:w.videoId)||((t=_.h(y,_.sP))==null?0:t.playlistId))){var F,I,P,C,d,L;W={formatType:(C=(F=this.formats)==null?void 0:(I=F[(P=this.selectedQualityIndex)!=null?P:0])==null?void 0:I.format)!=null?C:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(d=this.getOfflineEndpoint(y))==null?void 0:(L=d.actionParams)==null?void 0:L.settingsAction)};this.getOfflineEndpoint(y).actionParams=W;this.ytComponentBehavior.resolveCommand(y)}_.ow(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.E.onClickUpsell=function(){var y;if((y=this.upsellButtonRenderer)==null||!y.isDisabled){var W,V;y=(V=(W=this.data)==null?void 0:W.upsellEndpoint)!=null?V:{};this.ytComponentBehavior.resolveCommand(y);_.ow(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);W="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var w,t,F,I;W=(I=(w=this.formats)==null?void 0:(t=w[(F=this.selectedQualityIndex)!=null?F:0])==null?void 0:t.format)!=null?I:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:W}})}};
_.E.onClickClose=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.E.getOfflineSettingsAction=function(y,W){return y?W===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":W:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.E.getOfflineEndpoint=function(y){return _.h(y,_.xn)?_.h(y,_.xn):_.h(y,_.sP)};
_.CM.Object.defineProperties(R9.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.oB(_.u5("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(y=this.data)==null?void 0:y.qualityFormats}}});
R9.prototype.updateQualityOptions=R9.prototype.updateQualityOptions;R9.prototype.dataChanged=R9.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],R9.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Number)],R9.prototype,"selectedQualityIndex",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"selectedUpsellQuality",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],R9.prototype,"ytdReduxBehavior",void 0);
_.J([_.q({selector:$Tj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.R("design:type",Object)],R9.prototype,"downloadQualityPickerEntity",void 0);_.J([_.q(),_.R("design:type",Array)],R9.prototype,"qualityOptions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],R9.prototype,"darkerDarkTheme",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],R9.prototype,"useUpsellDismissAlternate",void 0);
_.J([_.q(),_.R("design:type",Object)],R9.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"downloadButtonRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"upsellButtonRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"cancelButtonRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"upsellCancelButtonRenderer",void 0);_.J([_.q(),_.R("design:type",Object)],R9.prototype,"rememberSettings",void 0);
_.J([_.q(),_.R("design:type",Object)],R9.prototype,"rememberSettingsChecked",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R9.prototype,"dataChanged",null);_.J([_.xA("downloadQualityPickerEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R9.prototype,"updateQualityOptions",null);_.J([_.k({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],R9);
_.Y(R9,"ytd-download-quality-selector-renderer",function(){if(lid!==void 0)return lid;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return lid=y},{mode:1});var xhj;var j8=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(j8,_.u);j8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
j8.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],j8.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],j8.prototype,"darkerDarkTheme",void 0);_.J([_.q({computed:"computeIcon_(data.infoIcon)"}),_.R("design:type",Object)],j8.prototype,"infoIcon",void 0);
_.J([_.q({computed:"computeIcon_(data.warningIcon)"}),_.R("design:type",Object)],j8.prototype,"warningIcon",void 0);_.J([_.k({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],j8);
_.Y(j8,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(xhj!==void 0)return xhj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xhj=y},{mode:1});var kEm;var $z=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p($z,_.u);$z.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$z.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"}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],$z.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],$z.prototype,"darkerDarkTheme",void 0);_.J([_.k({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],$z);
_.Y($z,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(kEm!==void 0)return kEm;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return kEm=y},{mode:1});var s7W;var nZ=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(nZ,_.u);nZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nZ.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"}}}}};
nZ.prototype.onServiceRequestSentOrCompleted=function(y,W){W&&W.actions&&W.actions.length>0&&_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
nZ.prototype.onServiceRequestSentOrCompleted=nZ.prototype.onServiceRequestSentOrCompleted;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nZ.prototype,"darkerDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],nZ.prototype,"data",void 0);
_.J([_.l6("yt-service-request-completed"),_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],nZ.prototype,"onServiceRequestSentOrCompleted",null);_.J([_.k({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],nZ);
_.Y(nZ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(s7W!==void 0)return s7W;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return s7W=y},{mode:1});var A3u;var HT=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.submitButtonDisabled=!0;return y};
_.p(HT,_.u);_.E=HT.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.E.onDataChanged=function(){var y,W,V;if(((y=this.data)==null?void 0:(W=y.confirmButton)==null?void 0:(V=W.buttonRenderer)==null?void 0:V.isDisabled)!==void 0){var w,t,F;this.submitButtonDisabled=(w=this.data)==null?void 0:(t=w.confirmButton)==null?void 0:(F=t.buttonRenderer)==null?void 0:F.isDisabled}};
_.E.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.E.updateSubmitButtonDisabledFromBinding=function(y){this.submitButtonDisabled=y.detail.value};
_.E.updateSubmitButtonDisabledFromConfirmCheckbox=function(y){this.submitButtonDisabled=!y.detail.value};
HT.prototype.onDataChanged=HT.prototype.onDataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],HT.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],HT.prototype,"darkerDarkTheme",void 0);
_.J([_.q(),_.R("design:type",Object)],HT.prototype,"submitButtonDisabled",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HT.prototype,"onDataChanged",null);_.J([_.k({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],HT);
_.Y(HT,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(A3u!==void 0)return A3u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return A3u=y},{mode:1});var Yjd;var X5=function(){return _.u.apply(this,arguments)||this};
_.p(X5,_.u);_.CM.Object.defineProperties(X5.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var y,W,V;return((y=this.data)==null?void 0:y.title)+" "+((W=this.data)==null?void 0:W.metadataPrimary)+" "+((V=this.data)==null?void 0:V.metadataSecondary)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],X5.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],X5.prototype,"data",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],X5.prototype,"ariaLabel",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],X5);
_.Y(X5,"ytd-compact-product-list-item-renderer",function(){if(Yjd!==void 0)return Yjd;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Yjd=y},{mode:1});var BRu;var a9=function(){return _.u.apply(this,arguments)||this};
_.p(a9,_.u);a9.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]]"}}}}}};
_.CM.Object.defineProperties(a9.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],a9.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],a9.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],a9);
_.Y(a9,"ytd-compact-product-list-renderer",function(){if(BRu!==void 0)return BRu;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return BRu=y},{mode:1});var J3m;var G1=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(G1,_.u);_.E=G1.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E.getBackgroundUrl=function(){var y=this.get("data.headerImage.thumbnails");return y?"url("+_.f5(y,this.hostElement.clientWidth)+")":""};
_.E.onDataChanged=function(){var y=this.getBackgroundUrl();y&&(this.header.style.backgroundImage=y);y=_.Xn();var W=_.Hf(),V=this.get("data.trackingParams");V&&W&&y&&_.Fr(y,W,_.nD(V));y=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=y.next();!W.done;W=y.next())W.value.onShow()};
_.E.onPopupClosed=function(y){_.vW(y).localName==="ytd-membership-post-cancel-renderer"&&_.ow(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
G1.prototype.onPopupClosed=G1.prototype.onPopupClosed;G1.prototype.onDataChanged=G1.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],G1.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],G1.prototype,"darkerDarkTheme",void 0);
_.J([_.s$("#header"),_.R("design:type",HTMLDivElement)],G1.prototype,"header",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],G1.prototype,"onDataChanged",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],G1.prototype,"onPopupClosed",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],G1);
_.Y(G1,"ytd-membership-post-cancel-renderer",function(){if(J3m!==void 0)return J3m;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return J3m=y},{mode:1});var Rxu;var rN=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(rN,_.u);rN.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rN.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],rN.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],rN.prototype,"darkerDarkTheme",void 0);_.J([_.s$("ytd-feedback-survey-renderer"),_.R("design:type",Object)],rN.prototype,"feedbackSurveyRenderer",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rN);
_.Y(rN,"ytd-sponsorship-confirm-cancel-content",function(){if(Rxu!==void 0)return Rxu;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Rxu=y},{mode:1});var j7u;var bZ=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.maybeSubmitFeedback=function(){y.content&&y.content.maybeSubmitFeedback()};
return y};
_.p(bZ,_.u);_.E=bZ.prototype;_.E.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.E.onYtPopupOpened=function(y,W){W===this&&this.data&&this.data.onOpenCommands&&_.fg(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ow(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.E.onYtPopupClosed=function(y,W){(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.fg(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.E.onYtServiceRequestCompleted=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.E.onYtServiceRequestError=function(y){_.ey(this.hostElement,y.detail.error.message)};
_.E.onDataChanged=function(){if(this.isAttached){var y=this.backgroundUrl;y&&(_.i6(this.hostElement).querySelector("#header").style.backgroundImage=y)}};
_.CM.Object.defineProperties(bZ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return y?"url("+_.f5(y,this.hostElement.clientWidth)+")":""}}});
bZ.prototype.onDataChanged=bZ.prototype.onDataChanged;bZ.prototype.onYtServiceRequestError=bZ.prototype.onYtServiceRequestError;bZ.prototype.onYtServiceRequestCompleted=bZ.prototype.onYtServiceRequestCompleted;bZ.prototype.onYtPopupClosed=bZ.prototype.onYtPopupClosed;bZ.prototype.onYtPopupOpened=bZ.prototype.onYtPopupOpened;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],bZ.prototype,"data",void 0);_.J([_.q({value:function(){return _.u5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],bZ.prototype,"closeButtonAriaLabel",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],bZ.prototype,"darkerDarkTheme",void 0);_.J([_.s$("#scrollable"),_.R("design:type",Object)],bZ.prototype,"scrollable",void 0);_.J([_.s$("ytd-sponsorship-confirm-cancel-content"),_.R("design:type",Object)],bZ.prototype,"content",void 0);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],bZ.prototype,"onYtPopupOpened",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],bZ.prototype,"onYtPopupClosed",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],bZ.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],bZ.prototype,"onYtServiceRequestError",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bZ.prototype,"onDataChanged",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],bZ);
_.Y(bZ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(j7u!==void 0)return j7u;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return j7u=y},{mode:_.qM("kevlar_poly_si_batch_j081")?1:2});var $hj;var Q8=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(Q8,_.u);Q8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Q8.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Q8.prototype,"darkerDarkTheme",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Q8);
_.Y(Q8,"ytd-sponsorships-celebration-content",function(){if($hj!==void 0)return $hj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return $hj=
y},{mode:1});var nwW;var HmC=_.CF(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Zc=function(){var y=_.u.apply(this,arguments)||this;y.scriptsAppended=!1;y.buttonOverrides={type:"tonal",style:"overlay-dark"};return y};
_.p(Zc,_.u);_.E=Zc.prototype;
_.E.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:_.e("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.onDataChanged=function(){var y;(y=this.header)==null||y.style.setProperty("background-color",this.backgroundColor);if(y=this.headerImageUrl){var W;(W=this.header)==null||W.style.setProperty("background-image",y)}W=_.Xn(4);y=_.Hf(4);var V=this.get("data.trackingParams");if(V&&y&&W){var w=_.nD(V);_.Fr(W,y,w);_.e("combine_ve_grafts")?_.BC().graftServerVe(V,y,4):_.Fr(W,y,w)}W=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(y=W.next();!y.done;y=W.next())y.value.onShow();if(W=this.get("data.gtmId"))_.ab(W,
_.yC("GL","")),this.setupConversionTracking()};
_.E.setupConversionTracking=function(){if(!this.scriptsAppended){var y=document.createElement("script");var W=_.d$(HmC.join(""));_.LJ(y,W);document.head.appendChild(y);y=document.createElement("noscript");y.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(y);this.scriptsAppended=!0}};
_.E.onPopupClosed=function(y){if(_.vW(y).localName==="ytd-sponsorships-celebration-renderer"){_.ow(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var W;this.data&&((W=this.data)==null?0:W.dismissCommand)&&_.xc.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.CM.Object.defineProperties(Zc.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.wg(y)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return y?"url("+_.f5(y,this.hostElement.getBoundingClientRect().width)+")":""}}});
Zc.prototype.onPopupClosed=Zc.prototype.onPopupClosed;Zc.prototype.onDataChanged=Zc.prototype.onDataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Zc.prototype,"data",void 0);_.J([_.s$("#header"),_.R("design:type",HTMLElement)],Zc.prototype,"header",void 0);
_.J([_.q(),_.R("design:type",Object)],Zc.prototype,"scriptsAppended",void 0);_.J([_.q(),_.R("design:type",Object)],Zc.prototype,"buttonOverrides",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zc.prototype,"onDataChanged",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Zc.prototype,"onPopupClosed",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Zc);
_.Y(Zc,"ytd-sponsorships-celebration-renderer",function(){if(nwW!==void 0)return nwW;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return nwW=y},{mode:1});var X64;var yQ=function(){var y=_.u.apply(this,arguments)||this;y.isToggleChecked=!1;return y};
_.p(yQ,_.u);yQ.prototype.onDataChanged=function(){var y;this.isToggleChecked=((y=this.data)==null?void 0:y.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
yQ.prototype.close=function(){var y;((y=this.data)==null?0:y.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
yQ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var y,W=_.h((y=this.data)==null?void 0:y.switchButton,kq4);W&&(this.isToggleChecked&&W.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOnInnertubeCommand),!this.isToggleChecked&&W.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOffInnertubeCommand))};
yQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yQ.prototype.onDataChanged=yQ.prototype.onDataChanged;_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],yQ.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],yQ.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],yQ.prototype,"isToggleChecked",void 0);_.J([_.q({value:_.u5("CLOSE")}),_.R("design:type",String)],yQ.prototype,"closeButtonAriaLabel",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yQ.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],yQ);
_.Y(yQ,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(X64!==void 0)return X64;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return X64=y},{mode:1});var ai4;var WF=function(){return _.u.apply(this,arguments)||this};
_.p(WF,_.u);_.E=WF.prototype;_.E.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"}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.detached=function(){this.playerElement.stop()};
_.E.onYtServiceRequestCompleted=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.E.onYtServiceRequestError=function(y){_.ey(this.hostElement,y.detail.error.message)};
_.E.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.E.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.E.getTier=function(y,W){return!y||!y.tiers||W<0?null:_.h(y.tiers[W],Bde)};
_.E.moreThanOne=function(y){return!!(y&&y.length>1)};
_.E.tierOverviewTap=function(y){var W=this;this.selectedTier=y.model.index;_.gy(this,function(){_.h1(W.hostElement,"yt-refit")})};
_.E.computeSelectedClass=function(y,W){return this.isSelected(y,W)?"selected":""};
_.E.computeButtonAriaPressed=function(y,W){return this.isSelected(y,W)?"true":"false"};
_.E.isSelected=function(y,W){return y===W};
_.E.onDataChanged=function(){_.i6(this.hostElement).querySelector("#header-overlay").style.visibility="";_.i6(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 y=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),
W=y.next();!W.done;W=y.next())W.value.onShow();var V;this.set("selectedTier",(V=this.get("data.targetTierIndex"))!=null?V:0);var w;(y=(w=this.data)==null?void 0:w.onVisible)&&this.ytComponentBehavior.resolveCommand(y)};
_.E.initializeVe=function(y){var W=_.Xn(),V=_.Hf(),w=this.get("data.trackingParams");V&&W&&(this.screenLayer=4,W=_.wi(_.wwL)(void 0,69877,{clientScreenNonce:W,visualElement:V},void 0,void 0,void 0),_.Gy(W,69877,4),V=_.Hf(4),w&&V&&(w=_.nD(w),_.Fr(W,V,w),y&&(this.offerVideoVe=_.ad(74659),_.Fr(W,w,this.offerVideoVe))))};
_.E.setHeaderBackground=function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.i6(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.wg(y);if(y=this.getHeaderImage())y=_.f5(y,screen.width),_.i6(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+y+")"};
_.E.getHeaderImage=function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&y?y:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.E.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E.setupVideoPlayer=function(y){var W=this,V,w,t,F;return _.g(function(I){if(I.nextAddress==1)return V=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),w=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.e("kevlar_player_update_killswitch")?W.playerElement.update({args:{autoplay:V,video_id:y,player_params:w}}):W.playerElement.loadVideoWithPlayerVars({autoplay:V,video_id:y,player_params:w}),
I.yield(W.playerElement.getPlayerPromise(),2);t=I.yieldResult;t.addEventListener("onStateChange",function(P){W.onPlayerStateChange(P)});
t.setScreenLayer(W.screenLayer);(F=_.Xn(4))&&W.offerVideoVe&&_.NK(F,W.offerVideoVe);V&&(W.pauseOtherPlayers(),W.playerElement.focusOnPlayer(),W.playerElement.getPlayer().hideControls(),_.Jt(_.HU,function(){W.fadeOutHeaderOverlay()},4E3));
_.B7(I)})};
_.E.onPlayerStateChange=function(y){y===1?this.backgroundPlayerElement&&(y=this.backgroundPlayerElement.player_.getPlayerState(),y!==1&&y!==3||this.backgroundPlayerElement.pause()):y===0&&(_.i6(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.i6(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.E.fadeOutHeaderOverlay=function(){_.i6(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.E.onHeaderTap=function(){if(this.offerVideo){_.i6(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var y;((y=this.playerElement.player_)==null?void 0:y.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(y=_.Xn(4))&&this.offerVideoVe&&_.PE(y,this.offerVideoVe)}};
_.E.getBackgroundImageLayerClass=function(y){return y?"background-image-layer-with-video":""};
_.E.getHeaderClass=function(y){return y?"header-with-video":""};
_.E.getHeaderOverlayClass=function(y){return y?"header-overlay-with-video":""};
_.E.getTitleContainerClass=function(y,W){return y?"title-container-with-video":W?"title-container-without-video-flexible":"title-container-without-video"};
_.E.tierTitleDisplayStatus=function(y){return this.moreThanOne(y)?"hide":"show"};
_.E.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.hs().resolve(_.VH).getPlayerElement():this.backgroundPlayerElement=_.Kn();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var y=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=y===1||y===3;this.backgroundPlayerElement.pause()}};
_.E.isMiniplayerActive=function(){return _.hs().resolve(_.VH).isMiniplayerActive()};
_.E.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("selected-tier-changed",this.selectedTier))};
WF.prototype.selectedTierChangedForBinding=WF.prototype.selectedTierChangedForBinding;WF.prototype.onDataChanged=WF.prototype.onDataChanged;WF.prototype.onYtPopupClosed=WF.prototype.onYtPopupClosed;WF.prototype.onYtPopupOpened=WF.prototype.onYtPopupOpened;WF.prototype.onYtServiceRequestError=WF.prototype.onYtServiceRequestError;WF.prototype.onYtServiceRequestCompleted=WF.prototype.onYtServiceRequestCompleted;
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],WF.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],WF.prototype,"data",void 0);_.J([_.q({value:0}),_.R("design:type",Number)],WF.prototype,"selectedTier",void 0);
_.J([_.q({value:""}),_.R("design:type",String)],WF.prototype,"offerVideo",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],WF.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.J([_.q({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.tA(this)}}),
_.R("design:type",String)],WF.prototype,"playerId",void 0);_.J([_.s$("tp-yt-paper-dialog-scrollable"),_.R("design:type",Object)],WF.prototype,"scrollable",void 0);_.J([_.s$("ytd-sponsorships-tier-renderer"),_.R("design:type",Object)],WF.prototype,"tierRenderer",void 0);_.J([_.s$("#player"),_.R("design:type",Object)],WF.prototype,"playerElement",void 0);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],WF.prototype,"onYtServiceRequestCompleted",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],WF.prototype,"onYtServiceRequestError",null);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WF.prototype,"onYtPopupOpened",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WF.prototype,"onYtPopupClosed",null);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WF.prototype,"onDataChanged",null);
_.J([_.xA("selectedTier"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WF.prototype,"selectedTierChangedForBinding",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],WF);
_.Y(WF,"ytd-sponsorships-offer-renderer",function(){if(ai4!==void 0)return ai4;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return ai4=y},{mode:_.qM("kevlar_poly_si_batch_j077")?1:2});var GEE;var VQ=function(){var y=_.u.apply(this,arguments)||this;y.buttonOverrides={type:"filled",style:"mono"};return y};
_.p(VQ,_.u);VQ.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}}}}}};
VQ.prototype.backgroundColorChanged=function(){var y,W,V,w=(W=_.h((y=this.data)==null?void 0:y.content,JSW))==null?void 0:(V=W.backgroundColor)==null?void 0:V.backgroundColor;w&&(y=_.V2(w),_.i6(this.hostElement).querySelector("#banner").style.backgroundColor=y,_.i6(this.hostElement).querySelector("#abstract-art").style.backgroundColor=y)};
VQ.prototype.attached=function(){this.JSC$20421_scroller&&(this.JSC$20421_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20421_scroller.attached&&typeof this.JSC$20421_scroller.attached==="function"&&this.JSC$20421_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VQ.prototype.backgroundColorChanged=VQ.prototype.backgroundColorChanged;_.J([_.q(),_.R("design:type",Object)],VQ.prototype,"data",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#scroller"),_.R("design:type",Object)],VQ.prototype,"JSC$20421_scroller",void 0);_.J([_.q(),_.R("design:type",Object)],VQ.prototype,"buttonOverrides",void 0);
_.J([_.xA("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VQ.prototype,"backgroundColorChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],VQ);
_.Y(VQ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(GEE!==void 0)return GEE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return GEE=y},{mode:_.qM("kevlar_poly_si_batch_j077")?1:2});var r3d;var bmj;var wA=function(){return _.u.apply(this,arguments)||this};
_.p(wA,_.u);wA.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
wA.prototype.computeIsInitiallyChecked=function(y){return y===1};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],wA.prototype,"data",void 0);_.J([_.s$("#checkbox"),_.R("design:type",Object)],wA.prototype,"checkbox",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],wA);
_.Y(wA,"ytd-subscription-toggle-option-renderer",function(){if(bmj!==void 0)return bmj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return bmj=y},{mode:1});var tH=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return y};
_.p(tH,_.u);tH.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"}}}};
tH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tH.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var y=_.i6(this.hostElement).querySelector("#options").selected;y=this.data.options[y].subscriptionRadioOptionRenderer.serviceEndpoint;var W=_.i6(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");W&&y&&y.modifyChannelNotificationPreferenceEndpoint&&(W=W.getValue())&&(y.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[W]);_.hs().resolve(_.oA).resolveCommand(y,{form:{element:this.hostElement}});
_.ow(this.hostElement,"yt-close-popup-action")};
_.CM.Object.defineProperties(tH.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var y=this.data.options,W=0;W<y.length;W++){var V=y[W].subscriptionRadioOptionRenderer;if(V&&V.selected)return W}return null}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],tH.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],tH.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],tH.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],tH.prototype,"darkerDarkTheme",void 0);_.J([_.M("data.options"),_.R("design:type",Object),_.R("design:paramtypes",[])],tH.prototype,"initialIndex",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],tH);
_.Y(tH,"ytd-subscription-notification-options-renderer",function(){if(r3d!==void 0)return r3d;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return r3d=y},{mode:1});var Q7E;var F8=function(){return _.u.apply(this,arguments)||this};
_.p(F8,_.u);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],F8.prototype,"data",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],F8);
_.Y(F8,"ytd-tvfilm-offer-groups-renderer",function(){if(Q7E!==void 0)return Q7E;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Q7E=y},{mode:1});var Zmj;var Ew=function(){var y=_.u.apply(this,arguments)||this;y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(Ew,_.u);_.E=Ew.prototype;_.E.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"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.E.computeThumbnailClass=function(y){return y.thumbnailOverlays?y.isShow?"thumbnail-show":"thumbnail-movie":y.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.E.computeCommerceSectionClass=function(y){return y.offers&&y.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.E.computeTitleClass=function(y){return y.offers&&y.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.E.onDataChanged=function(){[].concat(_.GC(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(y){y.onShow()})};
Ew.prototype.onDataChanged=Ew.prototype.onDataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ew.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],Ew.prototype,"darkerDarkTheme",void 0);
_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ew.prototype,"onDataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Ew);
_.Y(Ew,"ytd-ypc-offers-overlay-renderer",function(){if(Zmj!==void 0)return Zmj;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return Zmj=y},{mode:_.qM("kevlar_poly_si_batch_j028")?1:2});var yEE;var Wwq=function(){this.usedMethods=new Set};
Wwq.prototype.add=function(y){this.usedMethods.add(y)};
Wwq.prototype.reset=function(){this.usedMethods.clear()};var t$j=function(y,W){this.query=y;this.previousSearchQuery=W;this.id=V$u++;if(!wDu){W=_.yC("SBOX_SETTINGS");y="https://"+((W==null?void 0:W.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var V=W==null?void 0:W.REQUEST_LANGUAGE;V&&(y+="&hl="+V);(V=W==null?void 0:W.REQUEST_DOMAIN)&&(y+="&gl="+V);y+="&client=youtube&gs_ri=youtube";(V=W==null?void 0:W.SUGG_EXP_ID)&&(y+="&sugexp="+encodeURIComponent(V));(V=W==null?void 0:W.PSUGGEST_TOKEN)&&(y+="&tok="+V);(W=
W==null?void 0:W.SESSION_INDEX)&&(y+="&authuser="+W);_.e("desktop_enable_visual_suggest")&&(y+="&h=180&w=320&ytvs=1");wDu=y}},FwP=function(y){var W="q="+encodeURIComponent(y.query);
y.previousSearchQuery&&(W+="&pq="+encodeURIComponent(y.previousSearchQuery));return W},EZu=function(){var y=_.yC("SBOX_SETTINGS"),W={};
if(y==null?0:y.SEND_VISITOR_DATA)W["X-Goog-Visitor-Id"]=y==null?void 0:y.VISITOR_DATA;return W},NOE=function(y){var W=wDu;
W+="&gs_id="+y.id.toString(36);W+="&q="+encodeURIComponent(y.query);W+="&cp="+y.query.length;y.previousSearchQuery&&(W+="&pq="+encodeURIComponent(y.previousSearchQuery));(y=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(W+="&video_id="+y);return W},V$u=0,wDu="";var IdE=_.zL.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,gZW=_.zL.SEARCH_ENTITY_SUGGESTION_MOVIE,Pv4=_.zL.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Cvt=_.zL.SEARCH_ENTITY_SUGGESTION_TV_SHOW,ONP=function(y,W){this.text=y;this.bold=W},vZ4=function(y,W,V){this.input=W;
this.index=V;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=y[0];this.type=y[1];this.subtypes=y[2];var w;this.displayText=TV((w=y[3])==null?void 0:w.b);var t;this.ignoredPrefix=TV((t=y[3])==null?void 0:t.a);var F,I;this.hasNewVideo=((F=y[3])==null?void 0:(I=F.zam)==null?void 0:I.toString())==="true"?!0:!1;var P;this.visualSuggestUrl=(P=y[3])==null?void 0:P.zai;var C;this.entityType=TV((C=y[3])==null?void 0:C.zap);var d;this.entityName=TV((d=y[3])==null?void 0:d.zao);var L;W=TV((L=
y[3])==null?void 0:L.zaf);var z;this.entityMid=(z=y[3])==null?void 0:z.zae;L=yYq(this.subtypes,this.entityMid);if(W&&L){if(W){z="";switch(L){case "YOUTUBE_ENTITY_TYPE_SONG":z=Pv4;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":z=IdE;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":z=Cvt;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":z=gZW}L=L==="YOUTUBE_ENTITY_TYPE_SONG"||L==="YOUTUBE_ENTITY_TYPE_ALBUM"?z+" \u2022  \u2022 "+W:W}else L="";this.entitySubtitle=L}var c;this.externalChannelId=(c=y[3])==null?void 0:c.zav;var K;
this.entityThumbnailAttributionUrl=(K=y[3])==null?void 0:K.zaq},Lwd=function(y,W){var V=[],w,t=(w=y.displayText)!=null?w:y.text;
(W==null?0:W.useEntityName)&&dwe(y)&&y.entityName&&(t=y.entityName);if(y.type===33)return V.push(new ONP(t,!1)),V;if(t.length>=y.input.length&&t.substring(0,y.input.length)===y.input)V.push(new ONP(y.input,!1)),V.push(new ONP(t.substring(y.input.length),!0));else{var F=new Set(y.input.split(/\s/)),I=t.split(/\s/);V=I.map(function(P,C){return new ONP(P.trim()+(C===I.length-1?"":" "),!F.has(P))})}return V},dwe=function(y){var W=!!yYq(y.subtypes);
y=!!y.entityMid;return W||y};var zhm=function(y){this.rawResponse=["",[],{}];this.suggestions=[];try{var W=JSON.parse(WMd(y));if(typeof W==="object"&&W!==null)this.rawResponse=W;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(w){console.log("Suggest: Failed to parse SuggestResponse!");return}var V=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(w,t){return new vZ4(w,V,t)})};var cEW=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Wwq;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20458_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},ehu,hhj=function(){ehu||(ehu=new cEW);
return ehu};
cEW.prototype.updateSuggestions=function(y){var W=this;this.availableSuggestions.forEach(function(V){W.previousSuggestions[V]=!0});
this.availableSuggestions=y.map(function(V){var w=V.type.toString();V.subtypes.length>0&&(w+="i"+V.subtypes.join("i"),w+="k"+V.suggestionSources.COMPLETE_SERVER.toString());return w})};
var oZj=function(y,W){var V=Date.now();y.firstEditTime<0&&(y.firstEditTime=V);W&&(y.lastQueryBuildTime=V);y.lastEditTime=V};
cEW.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20458_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Kw3=function(y){var W="";y.availableSuggestions.forEach(function(t){delete y.previousSuggestions[t]});
for(var V=_.N(Object.keys(y.previousSuggestions)),w=V.next();!w.done;w=V.next())w=w.value,y.previousSuggestions[w]&&(W+=(W?"j":"")+w);return W},pDu=function(y,W){var V=[];
W&&(V[1]=W.toString());V[0]="youtube";V[7]=Date.now()-y.startTime;V[6]=y.sessionNumber;y.zeroPrefixSuggestionCount>=0&&(V[33]=y.zeroPrefixSuggestionCount);V[13]=y.outOfSyncResponseCount;if(y.availableSuggestions.length>0){for(var w=W="",t=0,F=_.N(y.availableSuggestions),I=F.next();!I.done;I=F.next())I=I.value,I!==w&&(t>1&&(W+="l"+t),W+=(w?"j":"")+I,t=0,w=I),t+=1;t>1&&(W+="l"+t);V[3]=W}V[35]=Kw3(y);y.selectedSuggestionIndex>=0&&(V[2]=y.selectedSuggestionIndex);var P;if(W=(P=_.yC("SBOX_SETTINGS"))==
null?void 0:P.SUGG_EXP_ID)V[19]=y.normalize(W),P=0,y.experimentTriggeredBeforeFinal&&(P|=1),y.experimentTriggeredFinal&&(P|=2),V[20]=P;V[26]=Array.from(y.inputMethodsTracker.usedMethods).join("j");if(y.JSC$20458_totalRoundTripTime>0){V[15]=y.JSC$20458_totalRoundTripTime;V[14]=y.maxRoundTripTime;P=[];for(t=W=0;t<10;t++)w=y.roundTripTimeHistogram[t],w===0?W++:(W>1?P.push(t+"-"+w):W===1?P.push("0j"+w):P.push(w.toString()),W=0);P=P.join("j");V[16]=P}y.zeroPrefixRoundTripTime>0&&(V[36]=y.zeroPrefixRoundTripTime);
y.lastQueryBuildTime>0&&(V[18]=y.lastQueryBuildTime-y.startTime);y.firstEditTime>0&&(V[4]=y.firstEditTime-y.startTime);y.lastEditTime>0&&(V[5]=y.lastEditTime-y.startTime);return V.join(".")};
cEW.prototype.normalize=function(y){return y.replaceAll(".","-")};
var iNt=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Ns=function(){var y=_.u.apply(this,arguments)||this;y.microphoneSpinnerActive=!1;y.noAnimations=!1;y.boundExitClick=function(){y.onExitButtonClick()};
y.speechOverlayClassName="";y.isLevelAnimating=!1;y.playCloseDialogAudioFeedback=!0;y.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return y};
_.p(Ns,_.u);_.E=Ns.prototype;_.E.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.E.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=CVd()};
_.E.dataChanged=function(){this.logDialog()};
_.E.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var y;(y=this.manager.audioPlayer)!=null&&(y.JSC$19748_audioEnabled=!1)}this.manager.stop();(y=this.manager.audioPlayer)!=null&&(y.JSC$19748_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.E.handleSpeechQueryCompleteAction=function(y){var W=y.navigationAction;W&&(y.trackingParams&&_.BC().graftServerVe(y.trackingParams,this.dialogVe,5),_.h1(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getNavigationParams(W),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.E.onExitButtonClick=function(){this.closeDialog()};
_.E.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var y;if((y=this.manager)!=null){var W;(W=y.audioPlayer)==null||IK(W,"failure");y.setState("microphone-off");y.stop()}}else(y=this.manager)==null||y.start()};
_.E.transcriptionChanged=function(){var y,W;(((y=this.transcription)==null?0:y.low)||((W=this.transcription)==null?0:W.high))&&this.setState("transcribing",this.transcription)};
_.E.stateChanged=function(){this.setState(this.state,this.transcription)};
_.E.logDialog=function(){var y;(y=this.data)!=null&&y.trackingParams&&(y=_.BC(),_.qx(y,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=y.graftServerVe(this.data.trackingParams,void 0,5))};
_.E.getNavigationParams=function(y){var W={};if(_.e("web_yt_searchbox")){var V=hhj();V.inputMethodsTracker.add(6);V=pDu(V,15);W.gs_l=V;var w;W.oq=((w=_.h(y,_.Ax))==null?void 0:w.query)||""}else if(y=window.ytvoicesearchloggingparams){if(y=y())W.oq=y.oq,W.gs_l=y.gs_l}else _.FU(Error("wl"));return W};
_.E.closeDialog=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.E.setState=function(y,W){if(this.data){var V=this.data,w={};switch(y){case "listening":w={headerText:V.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "timeout":w={headerText:V.promptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,microphoneAriaLabel:V.promptMicrophoneLabel};break;case "microphone-off":w={headerText:V.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,
microphoneAriaLabel:V.promptMicrophoneLabel};break;case "transcribing":(W==null?0:W.low)||(W==null?0:W.high)?w={transcriptionLow:W==null?void 0:W.low,transcriptionHigh:W==null?void 0:W.high,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel}:w={headerText:V.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "processing":w={headerText:V.loadingHeader,microphoneState:"processing",microphoneAriaLabel:V.microphoneButtonAriaLabel};
break;case "offline":w={headerText:V.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:V.connectionErrorMicrophoneLabel,microphoneAriaLabel:V.connectionErrorMicrophoneLabel};break;case "permission":w={headerText:V.permissionsHeader,bodyLine1:V.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:V.permissionsSubtext};break;case "permission-denied":w={headerText:V.disabledHeader,bodyLine1:V.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:V.disabledSubtext}}w.className=
y;this.speechOverlayState=w;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.E.setMicrophoneState=function(y){var W=this.isLevelAnimating;this.isLevelAnimating=y==="speaking";!W&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=y==="processing"&&!this.noAnimations};
_.E.setClass=function(y){this.speechOverlayClassName&&_.TA(this.hostElement,this.speechOverlayClassName,!1);y&&(this.speechOverlayClassName=y,_.TA(this.hostElement,y,!0))};
_.E.runLevelAnimation=function(){var y=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var W=1+Math.random()*.75,V=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+V/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+W+")");_.HU.addJob(function(){y.runLevelAnimation()},3,V)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Ns.prototype.stateChanged=Ns.prototype.stateChanged;Ns.prototype.transcriptionChanged=Ns.prototype.transcriptionChanged;Ns.prototype.onPopupClosed=Ns.prototype.onPopupClosed;Ns.prototype.dataChanged=Ns.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Ns.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Ns.prototype,"rendererStamperBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],Ns.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Ns.prototype,"eventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ns.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],Ns.prototype,"speechOverlayState",void 0);
_.J([_.q(),_.R("design:type",Object)],Ns.prototype,"microphoneSpinnerActive",void 0);_.J([_.q({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.R("design:type",Object)],Ns.prototype,"noAnimations",void 0);_.J([_.q({selector:function(y){var W;return(W=y.voiceSearch)==null?void 0:W.transcription}}),
_.R("design:type",Object)],Ns.prototype,"transcription",void 0);_.J([_.q({selector:function(y){var W;return(W=y.voiceSearch)==null?void 0:W.overlay}}),
_.R("design:type",String)],Ns.prototype,"state",void 0);_.J([_.q(),_.R("design:type",Object)],Ns.prototype,"boundExitClick",void 0);_.J([_.s$("#microphone-levels"),_.R("design:type",HTMLElement)],Ns.prototype,"level",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ns.prototype,"dataChanged",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ns.prototype,"onPopupClosed",null);
_.J([_.Jc("transcription"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ns.prototype,"transcriptionChanged",null);_.J([_.Jc("state"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ns.prototype,"stateChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Ns);
_.Y(Ns,"ytd-voice-search-dialog-renderer",function(){if(yEE!==void 0)return yEE;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return yEE=y},{mode:1});var fdj;var IF=function(){var y=_.u.apply(this,arguments)||this;y.isOverlay=!1;y.hidden=!1;return y};
_.p(IF,_.u);_.E=IF.prototype;_.E.onPopupClosed=function(){this.toggleIconState(!1)};
_.E.computeIcon=function(){var y,W,V;return(W=_.h((y=this.data)==null?void 0:y.icon,Hce))==null?void 0:(V=W.icon)==null?void 0:V.iconType};
_.E.computeIconBadgeShape=function(){var y;return{iconBadgeType:"cart",iconBadgeText:(y=this.iconBadgeEntity)==null?void 0:y.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.E.onClick=function(){var y;(y=this.data)!=null&&y.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.E.computeHidden=function(y){return!y};
_.E.toggleIconState=function(y){this.iconButton&&(this.iconButton.pressed=y)};
IF.prototype.onPopupClosed=IF.prototype.onPopupClosed;_.J([_.m(_.y$),_.R("design:type",Object)],IF.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],IF.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],IF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],IF.prototype,"isOverlay",void 0);
_.J([_.q({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.R("design:type",Object)],IF.prototype,"hidden",void 0);_.J([_.q({selectorArgs:["data.iconBadgeEntityKey"],selector:function(y,W){return _.UB(y.entities,"iconBadgeEntity",W)}}),
_.R("design:type",Object)],IF.prototype,"iconBadgeEntity",void 0);_.J([_.s$("yt-icon-button"),_.R("design:type",HTMLButtonElement)],IF.prototype,"iconButton",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IF.prototype,"onPopupClosed",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],IF);
_.Y(IF,"ytd-icon-badge-topbar-button-renderer",function(){if(fdj!==void 0)return fdj;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return fdj=y},{mode:1});var TO3;var gA=function(){var y=_.u.apply(this,arguments)||this;y.premiumOptions=[];y.darkerDarkTheme=_.e("web_darker_dark_theme");return y};
_.p(gA,_.u);gA.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.CM.Object.defineProperties(gA.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],gA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Array)],gA.prototype,"premiumOptions",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],gA.prototype,"darkerDarkTheme",void 0);_.J([_.M("premiumOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],gA.prototype,"hasPremiumOptions",null);
_.J([_.k({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],gA);
_.Y(gA,"ytd-offline-promo-content",function(){if(TO3!==void 0)return TO3;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return TO3=y},{mode:1});var mwW;var PF=function(){var y=_.u.apply(this,arguments)||this;y.premiumOptions=[];return y};
_.p(PF,_.u);PF.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var y;this.premiumOptions=Z6u((y=this.data)==null?void 0:y.formats)};
PF.prototype.onClickSubmit=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var y;(y=_.Kn())==null||y.pause()};
PF.prototype.attached=function(){this.JSC$20478_scroller&&(this.JSC$20478_scroller.dialogElement=this.hostElement.parentNode)};
_.CM.Object.defineProperties(PF.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
PF.prototype.dataChanged=PF.prototype.dataChanged;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],PF.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],PF.prototype,"data",void 0);
_.J([_.q({computed:"computeIcon_(data.headersIcon)",value:""}),_.R("design:type",String)],PF.prototype,"headersIcon",void 0);_.J([_.q(),_.R("design:type",Array)],PF.prototype,"premiumOptions",void 0);_.J([_.s$("#scroller"),_.R("design:type",Object)],PF.prototype,"JSC$20478_scroller",void 0);_.J([_.M("headersIcon"),_.R("design:type",Object),_.R("design:paramtypes",[])],PF.prototype,"showIcon",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PF.prototype,"dataChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],PF);
_.Y(PF,"ytd-offline-promo-renderer",function(){if(mwW!==void 0)return mwW;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return mwW=y},{mode:1});var M$d;var CS=function(){var y=_.u.apply(this,arguments)||this;y.playbackPauseInterval=NaN;y.isLoading=!1;y.hasError=!1;y.dialogClass="";y.youtubeLabel=_.u5("LOGO_ALT_LABEL",{},"YouTube Home");y.logoName="yt-logos-ext:yt-logo-updated";y.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return y};
_.p(CS,_.u);_.E=CS.prototype;_.E.onDataChange=function(){var y;if(this.showEOMV1Text=!((y=this.data)==null||!y.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.E.attached=function(){this.pausePlayer()};
_.E.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.E.handleLangSelect=function(y){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[y.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.E.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.E.handleSaveConsent=function(y){var W=this;this.showLoadingSpinner();this.showLoadingSpinner();DTE(_.h(y,XhC)).catch(function(V){_.rQ(new _.Js("Something went wrong when save consent "+(V.message?V.message:V)+"."));W.hideLoadingSpinner();W.showErrorMessage()})};
_.E.handleDisablePersonalization=function(y){var W=this;this.showLoadingSpinner();lRv(_.h(y,H3v)).then(function(){W.dialog.close();W.resumePlayer()}).catch(function(V){_.rQ(new _.Js("Something went wrong when disable personalization "+(V.message?V.message:V)+"."));
W.hideLoadingSpinner();W.showErrorMessage()})};
_.E.showLoadingSpinner=function(){var y=this;this.showSpinnerJobId=_.HU.addLowPriorityJob(function(){y.isLoading=!0},500)};
_.E.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.HU.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.E.showErrorMessage=function(){var y=this;this.hasError=!0;_.HU.addLowPriorityJob(function(){y.hasError=!1},2E3)};
_.E.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.MO(function(){try{var y=_.Kn();y&&y.pause()}catch(W){}},100))};
_.E.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var y=_.Kn();y&&y.play()}catch(W){}};
_.CM.Object.defineProperties(CS.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.eomV1Text)return[];y=[];for(var W=["SHIELD","WARNING","BAR_CHART"],V=this.data.eomV1Text.essentialCookieMsg.items,w=0;w<W.length&&w<V.length;w++)y.push({icon:W[w],text:V[w]});return y}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.eomV1Text)return[];y=[];for(var W=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],V=this.data.eomV1Text.nonEssentialCookieMsg.items,w=0;w<W.length&&w<V.length;w++)y.push({icon:W[w],text:V[w]});return y}}});
CS.prototype.onDataChange=CS.prototype.onDataChange;_.J([_.q(),_.R("design:type",Object)],CS.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],CS.prototype,"showEOMV1Text",void 0);_.J([_.q(),_.R("design:type",Object)],CS.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Object)],CS.prototype,"hasError",void 0);_.J([_.q(),_.R("design:type",Number)],CS.prototype,"showSpinnerJobId",void 0);_.J([_.q(),_.R("design:type",Object)],CS.prototype,"dialogClass",void 0);
_.J([_.s$("#dialog"),_.R("design:type",Object)],CS.prototype,"dialog",void 0);_.J([_.s$("#cb-header"),_.R("design:type",HTMLElement)],CS.prototype,"header",void 0);_.J([_.s$("#lang-select"),_.R("design:type",HTMLElement)],CS.prototype,"langSelect",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],CS.prototype,"ytComponentBehavior",void 0);
_.J([_.q(),_.R("design:type",String)],CS.prototype,"youtubeLabel",void 0);_.J([_.q(),_.R("design:type",Object)],CS.prototype,"logoName",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CS.prototype,"onDataChange",null);_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],CS.prototype,"eomEssentialCookieMsgItems",null);
_.J([_.M("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],CS.prototype,"eomNonEssentialCookieMsgItems",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],CS);
_.Y(CS,"ytd-consent-bump-v2-lightbox",function(){if(M$d!==void 0)return M$d;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return M$d=y},{mode:1});var qbv;var Ow=function(){return _.u.apply(this,arguments)||this};
_.p(Ow,_.u);Ow.prototype.ready=function(){if(!_.As()||EUC)var y=!0;else EUC=!0,y=!1;y||(y=document.querySelector("ytd-app"),y||(y=document.body),this.internalLightBox=_.i6(y).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.J([_.q(),_.R("design:type",Object)],Ow.prototype,"data",void 0);_.J([_.s$("#lightbox"),_.R("design:type",Object)],Ow.prototype,"lightBox",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ow);
_.Y(Ow,"ytd-consent-bump-v2-renderer",function(){if(qbv!==void 0)return qbv;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return qbv=y},{mode:1});var Uwj;var uQj;var Sbq;var vF=function(){return _.u.apply(this,arguments)||this};
_.p(vF,_.u);_.E=vF.prototype;_.E.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&v9E(this.toastManager,this.toastType)};
_.E.open=function(y){this.toast&&(this.ephemeralAction&&_.hs().resolve(_.kT).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=y!=null?y:0,this.toastManager.enqueue(this.toast,y)):this.toast.open())};
_.E.close=function(y){var W;(W=this.toast)==null||W.close();this.toastManager&&y===1&&v9E(this.toastManager,y)};
_.E.refit=function(){var y;(y=this.toast)==null||y.refit()};
_.E.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var y;(y=this.toast)==null||y.close()}};
_.E.setVerticalOffset=function(y){this.toast&&(this.toast.verticalOffset=y,this.toast.fit())};
_.E.computeButtonClass_=function(y){return y?"toast-button":""};
_.E.computeText_=function(y){return _.OT(y)};
_.E.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.ge("toast-opened-changed",this.toastOpened))};
_.E.updateToastOpenedFromBinding=function(y){this.toastOpened=y.detail.value};
_.CM.Object.defineProperties(vF.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var y,W,V=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:W.buttonRenderer;return(V==null?void 0:V.command)||(V==null?void 0:V.serviceEndpoint)||(V==null?void 0:V.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 y=[],W;((W=this.data)==null?0:W.responseText)&&y.push(_.OT(this.data.responseText));var V;((V=this.data)==null?0:V.subText)&&y.push(_.OT(this.data.subText));var w,t;if((w=this.data)==null?0:(t=w.actionButton)==null?0:t.buttonRenderer){var F,I;y.push(((F=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(I=F.accessibilityData)==null?void 0:I.label)||_.OT(this.data.actionButton.buttonRenderer.text))}return y.filter(function(P){return P}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.toast)==null?void 0:y.opened)!=null?W:!1}}});
vF.prototype.toastOpenedChangedForBinding=vF.prototype.toastOpenedChangedForBinding;vF.prototype.toastOpenedChanged=vF.prototype.toastOpenedChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],vF.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],vF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],vF.prototype,"duration",void 0);
_.J([_.q(),_.R("design:type",Number)],vF.prototype,"toastType",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],vF.prototype,"useCloseButton",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],vF.prototype,"closeToastOnActionButtonClick",void 0);_.J([_.q({value:function(){return _.u5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],vF.prototype,"closeButtonAriaLabel",void 0);_.J([_.q(),_.R("design:type",Boolean)],vF.prototype,"toastOpened",void 0);_.J([_.q(),_.R("design:type",Boolean)],vF.prototype,"hasOpened",void 0);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vF.prototype,"command",null);_.J([_.M("labelText","command","duration"),_.R("design:type",Object),_.R("design:paramtypes",[])],vF.prototype,"ephemeralAction",null);
_.J([_.M("ephemeralAction"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vF.prototype,"hasEphemeralAction",null);_.J([_.s$("#toast"),_.R("design:type",Object)],vF.prototype,"toast",void 0);_.J([_.q({value:function(){return{style:"call-to-action-inverse"}}}),
_.R("design:type",Object)],vF.prototype,"buttonOverrides",void 0);_.J([_.q({value:{style:"mono-inverse"}}),_.R("design:type",Object)],vF.prototype,"closeButtonOverrides",void 0);_.J([_.q({value:function(){return _.hs().resolve(_.eX(_.uc))}}),
_.R("design:type",Object)],vF.prototype,"toastManager",void 0);_.J([_.M("data.responseText","data.subText","data.actionButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],vF.prototype,"labelText",null);_.J([_.xA("toastOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vF.prototype,"toastOpenedChanged",null);
_.J([_.xA("toastOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vF.prototype,"toastOpenedChangedForBinding",null);_.J([_.Zp({is:"yt-notification-action-renderer",disableElementRegistration:!0})],vF);
_.Y(vF,"yt-notification-action-renderer",function(){if(Sbq===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;uQj===void 0&&(uQj=document.createElement("template"));var w=uQj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Sbq=y}y=Sbq;return y},{mode:2});var dA=function(){var y=_.u.apply(this,arguments)||this;y.duration=4E3;y.downloadingCount=0;y.downloadedCount=0;y.downloadingOnlySmartDownloads=!1;y.sessionTotalDownloads=0;y.sessionDownloaded=0;y.previousSessionsDownloaded=0;y.totalDownloadPercentage=0;y.currentDownloadProgress=0;y.currentDownloadPercentage=0;y.isLeaderTab=!0;y.isFullScreen=!1;y.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};y.boundBeforeUnload=function(W){y.isLeaderTab&&y.downloadingCount>0&&(W.preventDefault(),
W.returnValue=!0)};
return y};
_.p(dA,_.u);_.E=dA.prototype;
_.E.open=function(){this.updateDownloadState();if(this.data){var y=this.sessionDownloaded+1,W=this.sessionTotalDownloads>1?_.u5("VIDEOS_DOWNLOADING_RATIO",{downloaded:y.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+y+"/"+this.sessionTotalDownloads):_.u5("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(W=this.sessionTotalDownloads>1?_.u5("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:y.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
y+"/"+this.sessionTotalDownloads):_.u5("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));y=this.isLeaderTab?_.u5("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.OT(this.data.responseText)!==W||_.OT(this.data.subText)!==y)this.set("data.responseText",_.CO(W)),this.set("data.subText",_.CO(y)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.E.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.E.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.E.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.E.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var y=this.downloadedCount-this.previousSessionsDownloaded;y<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-y);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.E.handleFullscreenChange=function(y){(this.isFullScreen=y)||this.updatePopup()};
dA.prototype.updateCurrentDownloadProgress=dA.prototype.updateCurrentDownloadProgress;dA.prototype.updatePopup=dA.prototype.updatePopup;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],dA.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],dA.prototype,"ytEventForwardingBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],dA.prototype,"actionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"duration",void 0);_.J([_.q({selector:function(y){return _.Dnb(y.entities).length}}),
_.R("design:type",Object)],dA.prototype,"downloadingCount",void 0);_.J([_.q({selector:j0t}),_.R("design:type",Object)],dA.prototype,"downloadedCount",void 0);_.J([_.q({selector:function(y){var W=_.Dnb(y.entities);return Rmu(y.entities,W)}}),
_.R("design:type",Object)],dA.prototype,"downloadingOnlySmartDownloads",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"sessionTotalDownloads",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"sessionDownloaded",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"previousSessionsDownloaded",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"totalDownloadPercentage",void 0);
_.J([_.q({selector:function(y){var W;y=(W=_.Dnb(y.entities))!=null?W:[];return y.length>0?_.KIt(y.slice(-1)):0}}),
_.R("design:type",Object)],dA.prototype,"currentDownloadProgress",void 0);_.J([_.q(),_.R("design:type",Object)],dA.prototype,"currentDownloadPercentage",void 0);_.J([_.q({selector:_.siu}),_.R("design:type",Object)],dA.prototype,"isLeaderTab",void 0);_.J([_.s$("yt-notification-action-renderer"),_.R("design:type",Object)],dA.prototype,"notificationActionRenderer",void 0);
_.J([_.Jc("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dA.prototype,"updatePopup",null);_.J([_.Jc("currentDownloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dA.prototype,"updateCurrentDownloadProgress",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],dA);
_.Y(dA,"ytd-video-download-toast-renderer",function(){if(Uwj!==void 0)return Uwj;var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return Uwj=y},{mode:1});var DwP;var ldj;var LS=function(){return _.u.apply(this,arguments)||this};
_.p(LS,_.u);LS.prototype.computeIsRedLogo=function(y,W){!y&&W&&(y=W);return y==="YOUTUBE_RED_LOGO"||y==="YOUTUBE_PREMIUM_LOGO"};
LS.prototype.computeLogoName=function(y){y=this.componentBehavior.computeIcon_(y);return y===""?"yt-logos-ext:yt-logo-updated":y};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],LS.prototype,"componentBehavior",void 0);_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.R("design:type",Boolean)],LS.prototype,"isRedLogo",void 0);_.J([_.q({computed:"computeLogoName(data)"}),_.R("design:type",String)],LS.prototype,"logoName",void 0);_.J([_.q({value:{}}),_.R("design:type",Object)],LS.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],LS.prototype,"logoType",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-logo"})],LS);
_.Y(LS,"ytd-logo",function(){if(ldj!==void 0)return ldj;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return ldj=y},{mode:_.qM("kevlar_poly_si_batch_j074")?1:2});var zU=function(){var y=_.u.apply(this,arguments)||this;y.animationRef={};return y};
_.p(zU,_.u);_.E=zU.prototype;_.E.attached=function(){document.addEventListener("yt-navigate-finish",_.Dp(this,this.logYoodle))};
_.E.detached=function(){document.removeEventListener("yt-navigate-finish",_.Dp(this,this.logYoodle))};
_.E.logYoodle=function(){var y,W;if((y=this.data)==null?0:(W=y.loggingDirectives)==null?0:W.trackingParams)this.ytRendererBehavior.markDirty(),_.BC().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.E.computeHideImg=function(y,W){return!!y||!!W};
_.E.computeHideYtdLogo=function(y,W){return!y||!!W};
_.E.computeHideLottie=function(y){return!y};
_.E.computeIsRedLogo=function(y){return y==="YOUTUBE_RED_LOGO"||y==="YOUTUBE_PREMIUM_LOGO"};
_.E.renderLogoEntity=function(){var y=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),W=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),V=this.getLogoTitleText(this.data),w=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==y&&(this.url=y);this.animatedUrl!==W&&(this.animatedUrl=W);this.logoTitleText!==V&&(this.logoTitleText=V);this.lottieUrl!==w&&(this.lottieUrl=w,this.lottiePlayerProps=this.computeLottiePlayerProps(w))};
_.E.getSanitizedThumbnail=function(y){return y&&y.thumbnails?_.RfR(y.thumbnails,122)||"":""};
_.E.getThumbnailUrl=function(y,W){if(!W)return"";var V,w;y=y?(V=W.darkThemeLogo)==null?void 0:V.thumbnail:(w=W.lightThemeLogo)==null?void 0:w.thumbnail;return this.getSanitizedThumbnail(y)};
_.E.getAnimatedThumbnailUrl=function(y,W){return W?this.getSanitizedThumbnail(y?W.darkThemeAnimatedLogo:W.lightThemeAnimatedLogo):""};
_.E.getLogoTitleText=function(y){if(y)return _.OT(y.tooltipText)};
_.E.computeLogoIcon=function(y,W){if(W){var V,w;return y?(V=W.darkThemeLogo)==null?void 0:V.icon:(w=W.lightThemeLogo)==null?void 0:w.icon}};
_.E.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.E.getLottieUrl=function(y,W){var V,w,t,F;return y?W==null?void 0:(V=W.darkThemeLogo)==null?void 0:(w=V.lottieAnimation)==null?void 0:w.url:W==null?void 0:(t=W.lightThemeLogo)==null?void 0:(F=t.lottieAnimation)==null?void 0:F.url};
_.E.computeLottiePlayerProps=function(y){if(y){var W;if((W=this.animationRef)==null?0:W.lottieEl){var V;(V=this.animationRef)==null||V.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:y,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.E.onLottieError=function(){this.data&&this.lottieUrl&&_.h1(this.hostElement,"yoodle-error")};
_.E.onImgError=function(){this.data&&!this.lottieUrl&&_.h1(this.hostElement,"yoodle-error")};
zU.prototype.playAnimation=zU.prototype.playAnimation;zU.prototype.renderLogoEntity=zU.prototype.renderLogoEntity;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],zU.prototype,"data",void 0);_.J([_.q({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.R("design:type",Boolean)],zU.prototype,"hideImg",void 0);
_.J([_.q({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.R("design:type",Boolean)],zU.prototype,"hideYtdLogo",void 0);_.J([_.q({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.R("design:type",Boolean)],zU.prototype,"hideLottie",void 0);_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.R("design:type",Boolean)],zU.prototype,"isRedLogo",void 0);
_.J([_.q(),_.R("design:type",Boolean)],zU.prototype,"useDarkThemeYoodle",void 0);_.J([_.q(),_.R("design:type",String)],zU.prototype,"url",void 0);_.J([_.q(),_.R("design:type",String)],zU.prototype,"animatedUrl",void 0);_.J([_.q(),_.R("design:type",String)],zU.prototype,"logoTitleText",void 0);_.J([_.q({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.R("design:type",Object)],zU.prototype,"logoIcon",void 0);_.J([_.q(),_.R("design:type",Object)],zU.prototype,"logoType",void 0);
_.J([_.q(),_.R("design:type",String)],zU.prototype,"lottieUrl",void 0);_.J([_.q(),_.R("design:type",Object)],zU.prototype,"lottiePlayerProps",void 0);_.J([_.q(),_.R("design:type",Object)],zU.prototype,"animationRef",void 0);_.J([_.xA("data"),_.xA("useDarkThemeYoodle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zU.prototype,"renderLogoEntity",null);
_.J([_.l6("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],zU.prototype,"playAnimation",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],zU);
_.Y(zU,"ytd-yoodle-renderer",function(){if(DwP!==void 0)return DwP;var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return DwP=y},{mode:_.qM("kevlar_poly_si_batch_j074")?1:2});var xwE;var k_m;var cF=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return y};
_.p(cF,_.u);_.E=cF.prototype;_.E.onYoodleError=function(){_.e("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.E.computeLogoName=function(y){y=this.componentBehavior.computeIcon_(y);return y===""?"yt-logos-ext:yt-logo-updated":y};
_.E.computeTitle=function(y,W,V){return V&&(W==null?0:W.tooltipText)?_.OT(W.tooltipText):_.OT(y)};
_.E.computeAriaLabel=function(y,W,V){return V&&(W==null?0:W.tooltipText)?_.OT(y):""};
_.E.computeShowYoodle=function(y,W,V){return!y||!W&&!!V&&!_.Gc.isEmpty(V)};
_.E.onNavigateHomeAction=function(){if(_.e("kevlar_miniplayer_navigate_home_from_app_killswitch")){var y;(y=_.i6(this.hostElement).querySelector(".yt-simple-endpoint"))==null||y.click()}};
_.E.computeLogoHref=function(y,W,V){var w;(V==null?0:V.onTapCommand)?w=this.componentBehavior.computeHref_(V.onTapCommand):y&&(w=this.componentBehavior.computeHref_(y));return w?w:W};
_.E.computeCommand=function(y,W){return(W==null?void 0:W.onTapCommand)||y};
_.E.getEndpointForm=function(){if(_.e("kevlar_topbar_disable_cache_only_home")){var y=_.hs().resolve(_.w0),W=r8e(y.getState())||"";y=_.esj(y.getState())||"";return{disableCache:W==="ytd-browse"&&y==="home"}}return{disableCache:!0}};
cF.prototype.onYoodleError=cF.prototype.onYoodleError;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],cF.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],cF.prototype,"componentBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],cF.prototype,"ytdReduxBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],cF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],cF.prototype,"countryCode",void 0);_.J([_.q({selectorArgs:["data.overrideEntityKey"],selector:function(y,W){return _.UB(y.entities,"logoEntity",W)}}),
_.R("design:type",Object)],cF.prototype,"logoEntity",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.R("design:type",Boolean)],cF.prototype,"showYoodle",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],cF.prototype,"yoodleError",void 0);_.J([_.q({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.R("design:type",String)],cF.prototype,"titleText",void 0);
_.J([_.q({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.R("design:type",String)],cF.prototype,"ariaLabelText",void 0);_.J([_.q({value:"/"}),_.R("design:type",String)],cF.prototype,"defaultEndpointUrl",void 0);_.J([_.q({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.R("design:type",String)],cF.prototype,"endpointUrl",void 0);
_.J([_.q({computed:"computeCommand(data.endpoint, logoEntity)"}),_.R("design:type",String)],cF.prototype,"command",void 0);_.J([_.q(),_.R("design:type",Object)],cF.prototype,"logoType",void 0);_.J([_.q({}),_.R("design:type",Boolean)],cF.prototype,"useDarkThemeYoodle",void 0);_.J([_.l6("yoodle-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cF.prototype,"onYoodleError",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],cF);
_.Y(cF,"ytd-topbar-logo-renderer",function(){if(k_m!==void 0)return k_m;var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return k_m=y},{mode:_.qM("kevlar_poly_si_batch_j027")?1:2});var sEd=0;var AEu=_.zL.SEARCH_APPEND_LABEL,YbE=_.zL.SUGGESTION_NEW_VIDEOS_TEXT,BOW=_.zL.SUGGESTION_THUMBNAIL_LABEL,JEj=_.zL.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Rh4=_.eY(function(y){function W(u2){var ov,v7;return _.g(function(Ce){if(Ce.nextAddress==1)return ov=new Request(u2),_.l7(Ce,2),Ce.yield(fetch(ov,{credentials:"include"}),4);if(Ce.nextAddress!=2)return lt(!0),_.E6(Ce,0);v7=_.YX(Ce);_.rQ(v7);_.B7(Ce)})}
var V=y.isHighlighted;var w=y.suggestion;var t=y.onClickCallback;var F=y.onHoverUpdateCallback;var I=y.labels;var P=y.queryBuilderFunction;var C=y.onRemoveCallback;var d=y.suggestionIndex;var L=y.generateUniqueId;var z=y.highlightedId;var c=y.useScrollMargin;var K=y.isKeyboardMode;var f=null,U=null,l=_.I0("div"),x=_.I0("span");y=_.N(_.M1(!1,void 0,"CgAMgc"));var B=y.next().value,r=y.next().value,H=_.gS("a",function(u2){u2&&_.at(237477,u2,U,function(ov){U=ov})}),a=_.gS("button",function(u2){u2&&_.at(237477,
u2,U,function(ov){U=ov})}),b=_.YS(function(u2){if((u2==null?void 0:u2.button)===2)return u2.preventDefault(),!1;
var ov=_.Xn();ov&&f&&_.vE(ov,f,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var v7;t(u2,w().text,w().index,w().entityMid,u2==null?void 0:(v7=u2.detail)==null?void 0:v7.wasSelectedByKeyboard);return!1}),Fv=function(){return w().type===35},Py=function(){return _.e("desktop_enable_single_suggestion_highlight")},du=function(){return _.pB("desktop_suggestions_panel_row_height")||0},mL=function(){var u2;
return _.e("desktop_enable_new_video_metadata")&&((u2=w())==null?void 0:u2.hasNewVideo)===!0},un=function(){return _.e("desktop_enable_visual_suggest")},hv=function(){return _.e("desktop_enable_entity_suggest")&&dwe(w())},$P=function(){return w().entitySubtitle},sz=function(){return Py()?(V==null?void 0:V())||F6()&&!(K==null?0:K()):(V==null?void 0:V())||F6()},Wz=function(){var u2=_.yC("SBOX_SETTINGS");
return Fv()&&!(u2==null?0:u2.HIDE_REMOVE_LINK)},mf=function(){return Lwd(w(),{useEntityName:hv()})},OE,Qj=!((OE=_.hs().resolve(_.eX(_.va)))==null||!OE()),Kq=function(){return Fv()?_.e("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},zR=function(){return I==null?void 0:I().SUGGESTION_DISMISS_LABEL},l2=function(){return I==null?void 0:I().SUGGESTION_DISMISSED_LABEL};
y=_.N(_.M1(!1,void 0,"RcUcKd"));OE=y.next().value;var lt=y.next().value;y=_.N(_.M1(!1,void 0,"yGR7je"));var yu=y.next().value,Na=y.next().value,F6=yu,TR=_.YS(function(){P(x.value.innerText);return!1}),eP=_.YS(function(u2){u2.preventDefault();
return!1}),hA=_.YS(function(u2){var ov=w().text,v7=_.yC("SBOX_SETTINGS"),Ce="https://"+(v7.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Ce+="&delq="+encodeURIComponent(ov);(ov=v7==null?void 0:v7.PSUGGEST_TOKEN)&&(Ce+="&tok="+ov);(v7=v7==null?void 0:v7.SESSION_INDEX)&&(Ce+="&authuser="+v7);W(Ce);u2.preventDefault();(u2=_.Xn())&&U&&_.vE(u2,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");C(d==null?void 0:d());return!1}),jQ=_.YS(function(){if(Py()&&(K==null?0:K()))return!1;
Na(!0);F(!0);return!1}),Fy=_.YS(function(){Na(!1);
F(!1);return!1}),Wd=_.YS(function(){r(!0);
return!1}),Pz=_.YS(function(){r(!1);
return!1}),b2=_.YS(function(u2){u2.preventDefault();
var ov;(u2=(ov=w().entityThumbnailAttributionUrl)!=null?ov:"")&&_.F3G(u2);return!1});
y=_.N(_.M1("",void 0,"k9uVge"));var vd=y.next().value,Mr=y.next().value;_.HV(function(){Wz()&&Mr(L==null?void 0:L(d==null?void 0:d()));l.value&&_.at(12453,l.value,f,function(u2){f=u2})});
return _.O(_.v,{cond:OE,then:function(){var u2={};return _.O("div",{class:_.kS("ytSuggestionComponentRemovedText",(u2.ytSuggestionComponentLargerRemovedText=function(){return un()},u2)),
style:function(){return du()>0?"height: "+du()+"px;":""},
role:"button"},l2)},
else:function(){var u2={},ov={};return _.O("div",{class:_.kS("ytSuggestionComponentSuggestion",(u2.ytSuggestionComponentSuggestionHover=function(){return!Py()},u2.ytSuggestionComponentHighlighted=sz,u2.ytSuggestionComponentPersonalizedSuggestion=Fv,u2.ytSuggestionComponentMweb=!1,u2.ytSuggestionComponentLargerSuggestion=function(){return mL()||un()},u2.ytSuggestionComponentThumbnailSuggestion=function(){return un()},u2.ytSuggestionComponentRoundedSuggestion=function(){return _.e("desktop_enable_scrollable_suggestions_panel")&&
_.e("desktop_enable_suggestions_panel_padding")},u2.ytSuggestionComponentThumbnailPadding=function(){return un()&&!Fv()},u2)),
style:function(){return du()>0?"height: "+du()+"px;":""},
role:"presentation","on:mousedown":b,"on:mouseover":jQ,"on:mouseout":Fy,el:l},_.O("div",{class:_.kS("ytSuggestionComponentText",(ov.ytSuggestionComponentScrollMargin=c,ov)),"aria-label":function(){return mL()?w().text+" "+YbE:w().text},
id:function(){return L==null?void 0:L(d==null?void 0:d())},
"on:mousedown":b,role:"option"},_.O(_.v,{cond:function(){return w().type!==33},
then:function(){return _.O(_.jl,{icon:Kq,className:"ytSuggestionComponentIcon"})}}),_.O("div",{class:"ytSuggestionComponentLeftContainer"},_.O("span",{el:x,
role:"button",tabindex:0},_.O(_.YV,{each:mf},function(v7){return v7.bold?_.O("span",{class:"ytSuggestionComponentBold"},v7.text):_.O("span",null,v7.text)})),_.O(_.v,{cond:function(){return hv()&&!!w().entitySubtitle||mL()},
then:function(){return _.O("div",{class:"ytSuggestionComponentMetadataContainer"},_.O(_.v,{cond:function(){return hv()&&!!w().entitySubtitle},
then:function(){return _.O("div",{class:"ytSuggestionComponentEntitySubtitle"},$P)}}),_.O(_.v,{cond:function(){return mL()},
then:function(){return _.O("div",{class:"ytSuggestionComponentNewVideoContainer"},_.O("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.O("div",{class:"ytSuggestionComponentNewVideoText"},YbE))}}))}}))),_.O("div",{class:"ytSuggestionComponentRightContainer"},_.O(_.v,{cond:function(){return un()&&w().visualSuggestUrl!==void 0},
then:function(){var v7={};return _.O("div",{class:"ytSuggestionComponentThumbnailContainer"},_.O("img",{"aria-label":BOW,class:_.kS("ytSuggestionComponentVisualSuggestThumbnail",(v7.ytSuggestionComponentCircularFrame=function(){return hv()&&w().subtypes.includes(790)},v7.ytSuggestionComponentEntitySuggestThumbnail=function(){return hv()},v7)),
src:function(){return w().visualSuggestUrl}}),_.O(_.v,{cond:function(){return hv()&&!!w().entityThumbnailAttributionUrl},
then:function(){var Ce={};return _.O("span",{title:JEj,role:"tooltip"},_.O("div",{"on:mouseover":Wd,"on:mouseout":Pz,"on:mousedown":b2,class:_.kS("ytSuggestionComponentThumbnailOverlay",(Ce.ytSuggestionComponentThumbnailOverlayHidden=function(){return!B()},Ce))},_.O(_.jl,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.O(_.$V,null,_.O(_.BV,{when:function(){return un()&&Wz()}},function(){var v7={};
return _.O("button",{class:_.kS("ytSuggestionComponentRemoveLinkClearButton",(v7.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return vd()&&vd()===(z==null?void 0:z())},v7.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!sz()},v7)),
el:a,"on:mousedown":hA,"aria-label":zR,id:function(){return vd()}},_.O(_.jl,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.O(_.BV,{when:function(){return!(un()&&w().visualSuggestUrl!==void 0)&&Wz()}},function(){var v7={};
return _.O("a",{class:_.kS("ytSuggestionComponentRemoveLink",(v7.ytSuggestionComponentRemoveLinkDark=Qj,v7.ytSuggestionComponentRemoveLinkSelected=function(){return vd()&&vd()===(z==null?void 0:z())},v7)),
el:H,"on:mousedown":hA,"aria-label":zR,tabindex:0,role:"button",id:function(){return vd()}},zR)}),_.O(_.BV,{when:function(){return!1}},function(){return _.O("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":TR,"on:mousedown":eP,role:"button","aria-label":AEu},_.O(_.jl,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Gg");var jEe=_.CF(["//www.google.com/textinputassistant/","/","_tia.js"]),$wu=_.eY(function(){return _.O("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.O("button",{class:"ytdTextInputAssistantButton","on:click":_.YS(function(){hhj().inputMethodsTracker.add(3);var y,W=(y=_.yC("SBOX_SETTINGS"))==null?void 0:y.REQUEST_LANGUAGE;if(W)return _.ym(_.Tc(jEe,14,W)),!1})},_.O("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Hg");var nZj=function(){this.cache=new Map},HNd=function(y){for(var W=_.N(y.cache.entries()),V=W.next();!V.done;V=W.next()){var w=_.N(V.value);
V=w.next().value;w=w.next().value;w.suggestions.some(function(t){return t.type===35})&&y.cache.delete(V)}};var XDu=_.zL.SEARCH,adq=_.zL.SEARCH_CLEAR_LABEL,G_W=new _.e9("FAKE_SUGGEST_RESPONSE");_.iF(_.eY(function(y){function W(){Wd||(Wd=setTimeout(function(){b2()},1E3))}
function V(i2,eQ,ut){if(i2.trim()){Fy=i2;_.Z7("REFINEMENTS_TUPLE",void 0);hA=!0;var oG;eQ=pDu(yu,eQ);var vz=(oG=y.searchEndpoint)==null?void 0:oG.call(y);oG=Kq.value.value;vz||(vz=gnd);var TC;(TC=_.h(vz.commandMetadata,_.dw))!=null&&TC.url||(TC=Error("xl`"+JSON.stringify(vz)),_.ap(TC),vz=gnd);TC=_.Gc.unsafeClone(vz);vz=_.ZY(_.h(TC.commandMetadata,_.dw).url,"search_query",i2);_.to(location.href,"sv")==="1"&&(_.h(TC,_.Ax).params="EgOAAgE%3D",vz=_.ZY(vz,"sv","1"));_.h(TC,_.Ax)&&(_.h(TC,_.Ax).query=i2);
vz=vz.replace(/%20/g,"+");_.h(TC.commandMetadata,_.dw).url=vz;ut=_.e("desktop_enable_entity_suggest")?{entityMid:ut}:{};_.hs().resolve(_.oA).resolveCommand(TC,{form:{tempData:Object.assign({},{gs_l:eQ,oq:oG!=null?oG:i2},ut)}});b2();Kq.value.value=i2;Kq.value.blur();yu.reset()}}
function w(i2){return _.g(function(eQ){return eQ.return(new Promise(function(ut){var oG=new XMLHttpRequest;oG.open("GET",NOE(i2),!0);oG.withCredentials=!0;var vz=_.yC("SBOX_SETTINGS");(vz==null?0:vz.SEND_VISITOR_DATA)&&oG.setRequestHeader("X-Goog-Visitor-Id",vz==null?void 0:vz.VISITOR_DATA);oG.onload=function(){ut(oG.responseText)};
oG.onerror=function(){_.rQ(Error("yl"));ut(null)};
setTimeout(function(){oG.abort()},1E4);
oG.send(null)}))})}
function t(i2){var eQ,ut,oG,vz;return _.g(function(TC){switch(TC.nextAddress){case 1:return eQ={credentials:"include",headers:EZu()},window.AbortController&&(ut=new AbortController,setTimeout(function(){ut.abort("ytsbox-suggest-timeout")},1E4),eQ.signal=ut.signal),_.l7(TC,2),TC.yield(fetch(NOE(i2),eQ),4);
case 4:oG=TC.yieldResult.text();_.E6(TC,3);break;case 2:return vz=_.YX(TC),vz!=="ytsbox-abort-last"&&vz!=="ytsbox-suggest-timeout"&&_.rQ(vz),TC.return(null);case 3:return TC.return(oG)}})}
function F(i2){var eQ,ut,oG;return _.g(function(vz){switch(vz.nextAddress){case 1:if(eQ=_.hs().resolve(_.eX(G_W)))return vz.return(eQ);ut=Date.now();W();return _.e("yt_searchbox_xhr")?vz.yield(w(i2),5):vz.yield(t(i2),4);case 4:oG=vz.yieldResult;vz.jumpTo(3);break;case 5:oG=vz.yieldResult;case 3:if(oG){Wd&&(clearTimeout(Wd),Wd=null);var TC=yu,x_=ut,YR=i2.query.length===0;x_=Date.now()-x_;YR?TC.zeroPrefixRoundTripTime=x_:(TC.JSC$20458_totalRoundTripTime+=x_,TC.maxRoundTripTime=Math.max(TC.maxRoundTripTime,
x_),YR=Math.floor(x_/100),YR>=iNt.length?++TC.roundTripTimeHistogram[9]:++TC.roundTripTimeHistogram[iNt[YR]])}return vz.return(oG)}})}
function I(i2){var eQ,ut,oG;return _.g(function(vz){if(vz.nextAddress==1)return(eQ=lt.cache.get(FwP(i2)))?vz.return(eQ):vz.yield(F(i2),2);ut=vz.yieldResult;if(ut===null)return vz.return(null);oG=new zhm(ut);i2.query.length===0&&oG.suggestions.length===0||lt.cache.set(FwP(i2),oG);return vz.return(oG)})}
function P(i2){var eQ,ut;return _.g(function(oG){if(oG.nextAddress==1){jQ=!1;var vz=Fy;vz=_.Bbv()==="search"?(_.to(location.href,"search_query")||_.to(location.href,"q"))===vz:!1;eQ=new t$j(i2,vz?Fy:null);return oG.yield(I(eQ),2)}ut=oG.yieldResult;if(ut===null)return oG.return();eQ.query.length===0&&(yu.zeroPrefixSuggestionCount=ut.suggestions.length);if(eQ.id<=Pz)return yu.outOfSyncResponseCount++,oG.return();if(document.activeElement!==Kq.value)return oG.return();Pz=eQ.id;var TC=yu,x_=ut.rawResponse[2]||
{};TC.experimentTriggeredBeforeFinal||(TC.experimentTriggeredBeforeFinal=TC.experimentTriggeredFinal);TC.experimentTriggeredFinal=!!x_.e;yu.updateSuggestions(ut.suggestions);l(-1);Wz([]);ut.suggestions!==K()&&bz(ut.suggestions.length);f(ut.suggestions);Py(ut.suggestions.length>0&&ut.suggestions[0].type===33);l2&&(l2.hidden=ut.suggestions.length===0,Fv()?(l2.style.minWidth="",TC=l2.style,x_=(vz=K()[0])==null?void 0:vz.ignoredPrefix,TC.marginLeft=(x_?Math.min(x_.length*6,zR.value.offsetWidth):0).toString()+
"px"):(l2.style.minWidth=zR.value.offsetWidth+"px",l2.style.marginLeft="0"),tU());_.B7(oG)})}
function C(){if(!hA)return!1;var i2=_.yC("REFINEMENTS_TUPLE");return i2?(i2=i2[1].map(function(eQ,ut){return new vZ4([eQ,0,[71]],Kq.value.value,ut)}),K()!==i2&&bz(i2.length),Wz([]),f(i2),yu.updateSuggestions(i2),hA=!1,l2.hidden=i2.length===0,jQ=i2.length>0,!0):!1}
function d(){var i2=Kq.value.value;(typeof i2==="string"||i2 instanceof String)&&i2!==""?H(!0):H(!1)}
function L(){if(_.Bbv()==="search"){var i2=window.location.href;try{var eQ=_.to(i2,"search_query")||_.to(i2,"q")||""}catch(ut){eQ=""}eQ&&(Kq.value.value=eQ,H(!0))}}
var z=_.N(_.M1([],void 0,"kGFAjf")),c=z.next().value;z=z.next().value;var K=c,f=z;c=_.N(_.M1(-1,void 0,"mLGL9e"));var U=c.next().value,l=c.next().value;c=_.N(_.M1(-1,void 0,"u2rYdc"));var x=c.next().value,B=c.next().value;c=_.N(_.M1(!1,void 0,"W9DFC"));var r=c.next().value,H=c.next().value;c=_.N(_.M1(!1,void 0,"Ip4dNc"));var a=c.next().value,b=c.next().value;z=_.N(_.M1(!1,void 0,"ZNKSQb"));c=z.next().value;z=z.next().value;var Fv=c,Py=z;z=_.N(_.M1(!1,void 0,"JBrGLd"));c=z.next().value;var du=z.next().value;
z=_.N(_.M1(!1,void 0,"P2pD6e"));var mL=z.next().value,un=z.next().value;z=_.N(_.M1(1,void 0,"SjP20c"));var hv=z.next().value,$P=z.next().value;z=_.N(_.M1([],void 0,"h4dRaf"));var sz=z.next().value,Wz=z.next().value;z=_.N(_.M1(!1,void 0,"TUTzaf"));var mf=z.next().value,OE=z.next().value;z=_.e("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Qj=_.I0("yt-searchbox"),Kq=_.I0("input"),zR=_.I0("div"),l2,lt=
new nZj,yu=hhj(),Na=_.hs().resolve(_.eX(_.va)),F6=function(){var i2;return((i2=y.forceDarkMode)==null?void 0:i2.call(y))||!(Na==null||!Na())},TR=function(){return _.e("desktop_enable_scrollable_suggestions_panel")},eP="i"+sEd++,hA=!1,jQ=!1,Fy="",Wd=null,Pz=-1,b2=function(){Wz([]);
f([]);Py(!1);l2&&(l2.hidden=!0);Wd&&(clearTimeout(Wd),Wd=null);l(-1)},vd=function(i2,eQ){i2.preventDefault();
OE(!0);l2&&(l2.hidden=!1);var ut=U();i2=K();var oG=sz();eQ=VYt(eQ);ut+=eQ;for(ut>=i2.length?ut=-1:ut<-1&&(ut=i2.length-1);ut!==-1&&(oG.includes(ut)||ut>=i2.length||ut<0);)ut+=eQ,ut>=i2.length&&(ut=-1);l(ut);U()>=0&&(Kq.value.value=K()[U()].text,B(0),d(),i2=U(),oG=x(),(oG=document.getElementById(qG[i2][oG]))&&TR()&&(i2===K().length-1?l2.scrollTop=l2.scrollHeight:oG.scrollIntoView({block:"nearest",inline:"start"})))},Mr=_.YS(function(i2){if(!(i2.relatedTarget instanceof Element&&i2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){b(!0);
var eQ;(eQ=y.focusCallback)==null||eQ.call(y,!0);C()||(jQ?l2.hidden=!1:(_.h1(Qj.value,"yt-autonav-pause-focus",{}),P(i2.target.value)))}}),u2=_.YS(function(i2){if(!(i2.relatedTarget instanceof Element&&i2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){b(!1);
var eQ;(eQ=y.focusCallback)==null||eQ.call(y,!1);l2.scrollTop=0;l2.hidden=!0;_.h1(Qj.value,"yt-autonav-pause-blur",{})}}),ov=function(i2){i2=VYt(i2);
var eQ;((eQ=qG[U()])==null?0:eQ[x()+i2])&&B(x()+i2)},v7=_.YS(function(i2){var eQ=i2.target;
switch(i2.keyCode){case 13:i2.preventDefault();var ut;if((ut=qG[U()])==null?0:ut[x()]){var oG;(oG=document.getElementById(qG[U()][x()]))==null||oG.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}i2=i2.shiftKey?4:3;ut=yu;oG=U();ut.selectedSuggestionIndex=oG;V(eQ.value,i2);break;case 27:l2&&(l2.hidden=!0);break;case 40:vd(i2,40);break;case 38:vd(i2,38);break;case 39:ov(39);break;case 37:ov(37);break;case 229:yu.inputMethodsTracker.add(4);break;default:yu.inputMethodsTracker.add(1),
oZj(yu)}return!1}),Ce=_.YS(function(i2){P(i2.target.value);
d();TR()&&l2&&(l2.scrollTop=0);return!1}),MG=_.YS(function(){yu.inputMethodsTracker.add(2);
oZj(yu);return!1});
_.HV(function(){if(l2){yu.reset();if(window.ResizeObserver){var i2=new ResizeObserver(function(){Fv()||(l2.style.minWidth=zR.value.offsetWidth+"px")});
i2.observe(zR.value);(new ResizeObserver(function(){tU()})).observe(l2);
_.XT(function(){i2.disconnect()})}L();
window.addEventListener("yt-navigate-finish",L);window.addEventListener("yt-focus-searchbox",function(){Kq.value.focus()});
var eQ;du((eQ=_.yC("SBOX_SETTINGS"))==null?void 0:eQ.HAS_ON_SCREEN_KEYBOARD)}else _.ap(new _.Js("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var b5=_.YS(function(i2){i2.preventDefault();V(Kq.value.value,12);return!1}),GR=_.YS(function(i2){i2.preventDefault();
var eQ,ut;(eQ=Kq)==null||(ut=eQ.value)==null||ut.focus();var oG,vz;((oG=Kq)==null?void 0:(vz=oG.value)==null?void 0:vz.value)!==""&&(Kq.value.value="",Kq.value.dispatchEvent(new Event("input")));return!1}),ne=_.YS(function(){var i2=bMW(Kq.value.value,K().filter(function(eQ){return eQ.type!==35}).map(function(eQ){return{label:eQ.text}}));
_.ow(Qj.value,"yt-open-popup-action",[{openPopupAction:i2},document.body]);return!1}),FM=_.YS(function(){Kq.value.focus();
return!1}),Ex=function(i2,eQ,ut,oG,vz){yu.selectedSuggestionIndex=ut;
V(eQ,vz?3:1,oG)},BM=function(i2){Kq.value.value=i2;
Kq.value.dispatchEvent(new Event("input"));yu.inputMethodsTracker.add(5);oZj(yu,!0)},qG=[[]],bh=function(i2){var eQ="searchbox-suggestion"+_.bK(_.GT);
qG[i2].push(eQ);return eQ},bz=function(i2){if(K()){qG=[[]];
for(var eQ=0;eQ<i2;eQ++)qG.push([])}},tU=function(){if(TR()){var i2=l2,eQ=i2.scrollTop;
i2=i2.scrollHeight-i2.clientHeight;un(eQ>=i2);eQ=Math.abs(i2-eQ);eQ<=40?$P(1-(40-eQ)/40):$P(1)}},Qm=function(){return"opacity: "+hv()*100+"%"},TG=_.YS(function(){tU();
return!1}),YP=_.YS(function(){OE(!1);
return!1}),Hy,pq={},Pd={},xR={},Ke={};
return _.O("yt-searchbox",{class:_.kS("ytSearchboxComponentHost",(pq.ytSearchboxComponentMweb=!1,pq.ytSearchboxComponentDesktop=!0,pq["yt-searchbox-filled-query"]=function(){return r()},pq["ytd-masthead"]=function(){return!a()},pq.ytSearchboxComponentHostDark=F6,pq)),
role:"search",el:Qj,"client-ve-type":10349},_.O("div",{el:zR,"on:click":FM,class:_.kS("ytSearchboxComponentInputBox",(Pd.ytSearchboxComponentInputBoxDark=F6,Pd.ytSearchboxComponentInputBoxHasFocus=a,Pd))},_.O("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":b5},_.O(_.v,{cond:a,then:function(){return _.O("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.O(_.jl,{icon:"SEARCH"}))}}),_.O("input",{el:Kq,
class:_.kS("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":eP,"aria-expanded":!((Hy=l2)==null?0:Hy.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":u2,"on:focus":Mr,"on:input":Ce,"on:keydown":v7,"on:paste":MG,placeholder:y.placeholderText,"aria-activedescendant":function(){var i2;return(i2=qG[U()])==null?void 0:i2[x()]},
"aria-autocomplete":"list",role:"combobox"})),_.O(_.v,{cond:c,then:function(){return _.O("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.O($wu,null))}}),_.O(_.v,{cond:r,
then:function(){return _.O("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.O("button",{class:"ytSearchboxComponentClearButton","on:click":GR,"aria-label":y.clearButtonAriaLabel||adq},_.O(_.jl,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.O(_.Ha,{model:{}})))}})),_.O("button",{class:_.kS("ytSearchboxComponentSearchButton",(xR.ytSearchboxComponentSearchButtonDark=F6,xR)),
"on:click":b5,"aria-label":XDu,title:y.placeholderText},_.O(_.jl,{icon:"SEARCH"})),_.O(_.v,{cond:function(){if(C6P()&&_.e("mweb_voice_search")&&y.voiceSearchButton)return y.voiceSearchButton()},
then:function(i2){var eQ={};return _.O("div",{class:_.kS("ytSearchboxComponentVoiceSearchWrapper",(eQ.ytSearchboxComponentHideVoiceSearchButton=function(){return r()},eQ))},_.O(_.Q7,{data:i2},{buttonRenderer:function(ut){return _.O(_.dX,{data:ut.data,
onButtonClickCallback:function(){}})}}))}}),_.O("div",{el:_.hl(function(i2){return void(l2=i2)}),
id:eP,class:_.kS("ytSearchboxComponentSuggestionsContainer",(Ke.ytSearchboxComponentSuggestionsContainerDark=F6,Ke["yt-searchbox-suggestions-container"]=!1,Ke.ytSearchboxComponentSuggestionsContainerScrollable=TR(),Ke.ytSearchboxComponentSuggestionsContainerAnimated=z,Ke)),"on:scroll":TG,"on:mousemove":YP,role:"listbox",hidden:!0},_.O(_.YV,{each:K},function(i2,eQ){return _.O(Rh4,{suggestion:i2,isHighlighted:function(){return eQ()===U()},
onClickCallback:Ex,onHoverUpdateCallback:function(ut){if(_.e("desktop_enable_single_suggestion_highlight")){var oG=eQ();ut&&(B(0),l(oG))}},
onRemoveCallback:function(ut){HNd(lt);ut===void 0||ut<0||sz().includes(ut)||Wz([].concat(_.GC(sz()),[ut]))},
labels:y.labels,queryBuilderFunction:BM,suggestionIndex:eQ,generateUniqueId:bh,highlightedId:function(){var ut;return(ut=qG[U()])==null?void 0:ut[x()]},
useScrollMargin:TR(),isKeyboardMode:mf})}),_.O(_.v,{cond:function(){return!Fv()&&K().find(function(i2){return i2.type!==35})&&_.e("searchbox_reporting")},
then:function(){return _.O("button",{class:"ytSearchboxComponentReportButton","on:mousedown":ne},_.u5("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.O(_.v,{cond:function(){return!mL()&&TR()},
then:function(){return _.O("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.O("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Qm}))}})))},"Ig"),"yt-searchbox",{props:{searchEndpoint:_.vB,
placeholderText:_.vB,labels:_.vB,voiceSearchButton:_.vB,focusCallback:_.p5,clearButtonAriaLabel:_.vB,forceDarkMode:_.vB}});var ep=function(){var y=_.u.apply(this,arguments)||this;y.menuButtonTargetId="topbar-guide-menu";y.narrow=!1;y.menuStrings={BACK_ALT_LABEL:_.u5("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.u5("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.u5("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.u5("SBOX_PLACEHOLDER",void 0,"Search")};y.pageDarkTheme=document.documentElement.hasAttribute("dark");y.watchPageScrollTop=0;y.theater=!1;y.fullscreen=!1;y.disableFrostedGlassDuringViewTransition=
!1;y.desktopUnifiedSearchPanelMode=_.e("desktop_enable_unified_search_panel");y.cinematicTheaterMode=_.e("web_cinematic_theater_mode");y.ytSearchboxFocused=!1;y.searchboxLabels=_.yC("SBOX_LABELS");y.topbarIsAboveChipbar=!1;y.isDarkThemeForced=!1;y.areGhostCardsHidden=!1;y.guideKeyboardToggle=!1;y.voiceSearchManager=CVd();y.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};y.setYtSearchboxFocused=function(W){y.ytSearchboxFocused=
W};
y.toggleFrostedGlassDuringViewTransition=function(W){y.disableFrostedGlassDuringViewTransition=W};
return y};
_.p(ep,_.u);_.E=ep.prototype;_.E.computeSimpleText=function(y){return _.OT(y)};
_.E.onDarkChanged=function(){for(var y=_.N(this.buttons||[]),W=y.next();!W.done;W=y.next())W.value.isOverlay=!!this.dark;y=_.N(this.buttonRenderers||[]);for(W=y.next();!W.done;W=y.next())W.value.overrides=this.computeButtonOverride()};
_.E.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.E.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var y=_.EA(_.FS(),"aa");_.TA(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||y||(this.isDarkThemeForced=this.dark=!0);this.logoType?(y=this.hostElement.querySelector("#masthead-logo"))&&(_.e("polymer_on_demand_shady_dom")?y.setAttribute("slot","masthead-logo-old"):_.ku(y)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Dp(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Dp(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.E.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Dp(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Dp(this,this.onSetTheaterModeEnabled))};
_.E.dataChanged=function(){var y=this.data;y&&(this.voiceEnabled=y.voiceSearchButton?CVd().isSupported():!1,_.zxf(_.$K(),this.menuButtonTargetId,this.guideButton),y.onReceivedActions&&y.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.fg(this.hostElement,y.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&y&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.TA(this.hostElement,"dark",!1),_.TA(this.hostElement,"theater",!1),
(y=this.hostElement.querySelector("#masthead-logo"))&&(_.e("polymer_on_demand_shady_dom")?y.setAttribute("slot","masthead-logo-old"):_.ku(y))))};
_.E.computeCenterHidden=function(){var y;return this.data&&!((y=this.data.searchbox)==null?0:y.fusionSearchboxRenderer)};
_.E.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.TA(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.E.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.E.onWatchScroll=function(y){this.watchPageScrollTop=y.detail||0;this.updateMastheadBackgroundOpacity()};
_.E.onFullscreenChangeAction=function(y){y||(this.watchPageScrollTop=0);this.fullscreen=y;this.updateMastheadBackgroundOpacity()};
_.E.onSetTheaterModeEnabled=function(y){this.theater=y.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.E.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.E.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.E.setBackgroundOpacity=function(y){y=this.calculateBackgroundOpacity(y);this.background.style.opacity=""+y};
_.E.calculateBackgroundOpacity=function(y){var W=this.theater&&this.cinematicTheaterMode?.6:0,V=this.hostElement.clientHeight/2;return Math.min(Math.max(y,0),V)/V*(1-W)+W};
_.E.shouldShowCinematicMastHead=function(){var y=_.e("kevlar_watch_grid")&&!_.e("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(y||this.pageDarkTheme)};
_.E.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.E.focusGuide=function(){this.guideButton.focus()};
_.E.onGuideToggleTap=function(){_.h1(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.E.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.E.onGuideToggleHover=function(){_.h1(this.hostElement,"yt-guide-hover")};
_.E.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.E.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.E.closeOnOutsideClickCondition=function(y){for(y=_.O$(y);y[0];){var W=y.shift();if(W instanceof Element&&W.id==="kbd")return!1}return!0};
_.E.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.E.pausePlayer=function(){var y;(y=_.Kn())==null||y.pause();this.pauseMiniplayer()};
_.E.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var y;(y=_.hs().resolve(_.VH).getPlayerElement())==null||y.pause()}};
_.E.isMiniplayerActive=function(){return _.hs().resolve(_.VH).isMiniplayerActive()};
_.E.updateNarrowFromBinding=function(y){this.narrow=y.detail.value};
_.E.onYtSendFeedbackAction=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.E.registerWithViewTransitionManager=function(){T7j(_.hs().resolve(_.Hu),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.CM.Object.defineProperties(ep.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var y;return(y=this.data)==null?void 0:y.voiceSearchButton}}}});
ep.prototype.narrowChanged=ep.prototype.narrowChanged;ep.prototype.onWatchPageChange=ep.prototype.onWatchPageChange;ep.prototype.onRendererStamperFinished=ep.prototype.onRendererStamperFinished;ep.prototype.dataChanged=ep.prototype.dataChanged;ep.prototype.onDarkChanged=ep.prototype.onDarkChanged;_.J([_.m(_.Gm),_.R("design:type",Object)],ep.prototype,"ironResizableBehavior",void 0);_.J([_.m(_.FTe),_.R("design:type",Object)],ep.prototype,"ytdExpandableInputBehavior",void 0);
_.J([_.m(_.E4.YtdGuideStateAwareBehavior),_.R("design:type",Object)],ep.prototype,"ytdGuideStateAwareBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],ep.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],ep.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.y$),_.R("design:type",Object)],ep.prototype,"ytdReduxBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"narrow",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"logoType",void 0);_.J([_.q(),_.R("design:type",Boolean)],ep.prototype,"voiceEnabled",void 0);
_.J([_.q(),_.R("design:type",Object)],ep.prototype,"menuStrings",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],ep.prototype,"dark",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ep.prototype,"pageDarkTheme",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"watchPageScrollTop",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.QD}),_.R("design:type",Boolean)],ep.prototype,"isWatchPage",void 0);
_.J([_.q({reflectToAttribute:!0,selector:_.Tzu}),_.R("design:type",Boolean)],ep.prototype,"isShortsPage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ep.prototype,"theater",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ep.prototype,"fullscreen",void 0);_.J([_.q({reflectToAttribute:!0,selector:_.Uxj}),_.R("design:type",String)],ep.prototype,"frostedGlassMode",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],ep.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"ytSearchboxFocused",void 0);_.J([_.Ac("#buttons > *"),_.R("design:type",Array)],ep.prototype,"buttons",void 0);_.J([_.Ac("ytd-button-renderer"),_.R("design:type",Array)],ep.prototype,"buttonRenderers",void 0);_.J([_.s$("#background"),_.R("design:type",HTMLDivElement)],ep.prototype,"background",void 0);
_.J([_.s$("#guide-button"),_.R("design:type",Object)],ep.prototype,"guideButton",void 0);_.J([_.s$("#logo"),_.R("design:type",Object)],ep.prototype,"logo",void 0);_.J([_.q({computed:"computeButtonOverride(dark)"}),_.R("design:type",Object)],ep.prototype,"buttonOverrides",void 0);_.J([_.Jc("dark"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ep.prototype,"onDarkChanged",null);_.J([_.q({value:function(){return this.onVoiceTap.bind(this)}}),
_.R("design:type",Function)],ep.prototype,"boundOnTapVoiceButton",void 0);_.J([_.q(),_.R("design:type",Object)],ep.prototype,"topbarIsAboveChipbar",void 0);_.J([_.q(),_.R("design:type",String),_.R("design:paramtypes",[])],ep.prototype,"guideIcon",null);_.J([_.M("voiceEnabled"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ep.prototype,"shouldShowVoiceSearchButton",null);_.J([_.M("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],ep.prototype,"voiceSearchButton",null);
_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ep.prototype,"dataChanged",null);_.J([_.l6("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ep.prototype,"onRendererStamperFinished",null);_.J([_.Jc("isWatchPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ep.prototype,"onWatchPageChange",null);
_.J([_.Jc("narrow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ep.prototype,"narrowChanged",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-masthead"})],ep);
_.Y(ep,"ytd-masthead",function(){if(xwE!==void 0)return xwE;var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return xwE=y},{mode:_.qM("kevlar_poly_si_batch_j036")?1:2});var rEC;var bNP={},QE3={},ZNP={},yQq={},W7P=(yQq.OFFLINE=(bNP["publicytnetworkstatus-online"]="BACK_ONLINE",bNP),yQq.ONLINE=(QE3["publicytnetworkstatus-offline"]="OFFLINE",QE3),yQq.BACK_ONLINE=(ZNP["publicytnetworkstatus-offline"]="OFFLINE",ZNP.TIMER_TRIGGER="ONLINE",ZNP),yQq),hH=function(){var y=_.u.apply(this,arguments)||this;y.currentState="ONLINE";y.scheduledJobId=0;y.bannerString="";y.bannerVe=null;y.networkStatusManagerInstance=new _.NN;return y};
_.p(hH,_.u);_.E=hH.prototype;_.E.attached=function(){var y=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.E.detached=function(){var y=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.E.enterState=function(y){var W=this;this.scheduledJobId&&_.HU.cancelJob(this.scheduledJobId);y==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):y==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.u5("NO_INTERNET_CONNECTION",void 0,"No internet connection")):y==="BACK_ONLINE"&&(this.bannerString=_.u5("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Jt(_.HU,function(){W.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=y};
_.E.stateChangeHandler=function(y){(y=W7P[this.currentState][y])&&this.enterState(y)};
_.E.logVisibility=function(y){var W=_.Xn();this.createBannerVe(y);W&&this.bannerVe&&(y?_.IB(W,[this.bannerVe]):_.g5(W,[this.bannerVe]))};
_.E.createBannerVe=function(y){!this.bannerVe&&y&&(this.bannerVe=_.ad(37929),_.uT(_.BC(),this.bannerVe))};
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",String)],hH.prototype,"currentState",void 0);_.J([_.q(),_.R("design:type",Object)],hH.prototype,"scheduledJobId",void 0);_.J([_.q(),_.R("design:type",Object)],hH.prototype,"bannerString",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-network-status-banner"})],hH);
_.Y(hH,"ytd-network-status-banner",function(){if(rEC!==void 0)return rEC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return rEC=
y},{mode:1});var VoC;var oF=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};y.hidden=!0;y.frostedGlass=_.e("web_frosted_glass");return y};
_.p(oF,_.u);oF.prototype.computeHidden=function(y){return y&&y.status?!1:!0};
oF.prototype.handleUpdatePermissionRoleCommand=function(y){if(y=_.h(y,_.VZA))if(y=_.h(y.renderer,_.WIi))this.data=y};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],oF.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],oF.prototype,"componentBehavior",void 0);_.J([_.q({value:!0,computed:"computeHidden(data)"}),_.R("design:type",Object)],oF.prototype,"hidden",void 0);_.J([_.q(),_.R("design:type",Object)],oF.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],oF.prototype,"frostedGlass",void 0);
_.J([_.k({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],oF);
_.Y(oF,"ytd-permission-role-bottom-bar-renderer",function(){if(VoC!==void 0)return VoC;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return VoC=y},{mode:1});var wtj;var tod;var wCm={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var KS=function(){return _.u.apply(this,arguments)||this};
_.p(KS,_.u);_.E=KS.prototype;_.E.attached=function(){this.JSC$20561_scroller&&(this.JSC$20561_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20561_scroller.attached&&typeof this.JSC$20561_scroller.attached==="function"&&this.JSC$20561_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(V){V.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var y=_.i6(this.hostElement);y.querySelector("tp-yt-paper-radio-group").selected="";var W=y.querySelector("#reason-text");W&&(W.value="");y.querySelector("#description-text").value=""}};
_.E.canSubmit=function(y,W){_.h1(this.hostElement,"yt-invalidate-popup-tabbables");return!(y&&W)};
_.E.onCancel=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.E.onSubmit=function(){var y=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(F){return F.active}).map(function(F){return F.innerText.trim()}),W=this.hostElement.querySelector("tp-yt-paper-radio-group"),V=W.selectedItem,w=V.name;
V=V.innerText.trim();var t=W.querySelector("#reason-text");W=void 0;t&&(W=t.value);(t=this.descriptionText.value)&&(t=t.trim());tYm(this.data.searchQuery,y,w,V,t,W);_.ow(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.E.sendFormSubmitToast=function(){var y=_.eW(_.u5("SBOX_INAPPROPRIATE_TOAST"));_.ow(this.hostElement,"yt-open-popup-action",[y,this])};
_.E.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(y){return y.active})};
_.E.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
KS.prototype.onIronSelect=KS.prototype.onIronSelect;KS.prototype.onIronChange=KS.prototype.onIronChange;KS.prototype.dataChanged=KS.prototype.dataChanged;_.J([_.q(),_.R("design:type",Object)],KS.prototype,"data",void 0);_.J([_.q({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.R("design:type",Boolean)],KS.prototype,"submitDisabled",void 0);_.J([_.q(),_.R("design:type",Boolean)],KS.prototype,"suggestionSelected",void 0);
_.J([_.q(),_.R("design:type",Boolean)],KS.prototype,"catagorySelected",void 0);_.J([_.s$("#scroller"),_.R("design:type",Object)],KS.prototype,"JSC$20561_scroller",void 0);_.J([_.s$("#description-text"),_.R("design:type",Object)],KS.prototype,"descriptionText",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KS.prototype,"dataChanged",null);
_.J([_.l6("iron-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KS.prototype,"onIronChange",null);_.J([_.l6("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KS.prototype,"onIronSelect",null);_.J([_.k({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],KS);
_.Y(KS,"ytd-search-suggestion-report-dialog",function(){if(tod!==void 0)return tod;var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);return tod=y},{mode:1});var pS=function(y){var W=y.openPopupAction;var V=y.target;var w=y.container;var t=y.popupContainerConfig;var F=y.getElement;y=y.removeWhenClosed===void 0?!1:y.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=W;this.target=V;this.container=w;this.popupContainerConfig=t;this.getElement=F;this.JSC$20567_popupConfig=this.popupContainerConfig.JSC$19683_popupConfig[this.openPopupAction.popupType];this.rendererName=(W=this.getName())?_.hMa(W,jjt(this.popupContainerConfig,
W)):"";_.e("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=y);this.createPopup()};
pS.prototype.updatePopup=function(y){this.openPopupAction=y;this.JSC$20567_popupConfig=this.popupContainerConfig.JSC$19683_popupConfig[this.openPopupAction.popupType];F7u(this);_.e("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
pS.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Ioj=function(y,W,V){(W=W&&y.JSC$20567_popupConfig.narrowProperties?y.JSC$20567_popupConfig.narrowProperties:y.JSC$20567_popupConfig.properties)&&V!==void 0&&(W.isAriaModal=V);E6m(y,W);y.isRtl()&&E6m(y,y.JSC$20567_popupConfig.rtlProperties);N_j(y)};
pS.prototype.createPopup=function(){var y=this.JSC$20567_popupConfig.component;if(this.popupContent=g6P(this,this.rendererName)){if(y){this.popup=g6P(this,y);var W=this.popupContent;_.e("web_enable_wrapper_for_cow_component_in_popup")&&(W=document.createElement("div"),W.appendChild(this.popupContent));_.e("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20567_popupConfig.slotName&&W.setAttribute("slot",this.JSC$20567_popupConfig.slotName);y=this.popup;var V=this.container.tagName.toLowerCase(),
w=_.L6(W);_.X_L(_.cW(y),_.o6(W,V,w));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.e("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.i6(this.container).appendChild(this.popup)}};
var F7u=function(y){var W,V,w=(W=y.openPopupAction.accessibilityData)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label;w&&(y.popup.ariaLabel=w);var t;((t=y.popupContent.polymerController)!=null?t:y.popupContent).data=(0,_.Gc.unsafeClone)(y.openPopupAction.popup[y.getName()]);y.popupContent.duration=PHu(y);y.popupContent.positionType=y.openPopupAction.position;var F=y.openPopupAction.properties;F&&Object.keys(F).forEach(function(I){y.popupContent[I]=F[I]})},E6m=function(y,W){if(W)for(var V=
_.N(Object.keys(W)),w=V.next();!w.done;w=V.next())w=w.value,y.popup[w]=W[w]},N_j=function(y){if(y.openPopupAction.position){var W=y.JSC$20567_popupConfig.positionalProperties&&y.JSC$20567_popupConfig.positionalProperties[y.openPopupAction.position],V=y.JSC$20567_popupConfig.rtlPositionalProperties&&y.JSC$20567_popupConfig.rtlPositionalProperties[y.openPopupAction.position];
W=y.isRtl()&&V?V:W;W.shiftedHorizontalOffset&&(V=y.popup.style.display,y.popup.style.display="block",y.popupContent&&y.popup.positionTarget&&y.popupContent.clientWidth>y.popup.positionTarget.clientWidth&&(W.horizontalOffset=y.popup.positionTarget.clientWidth/2-W.shiftedHorizontalOffset),y.popup.style.display=V);E6m(y,W)}},CHj=function(y,W){if(W)for(var V=_.N(Object.keys(W)),w=V.next();!w.done;w=V.next())w=w.value,y.popup.style[w]=W[w]};
pS.prototype.getName=function(){return _.bU(this.openPopupAction.popup,"renderer")||_.bU(this.openPopupAction.popup,"dialog")||_.bU(this.openPopupAction.popup,"model")||void 0};
var PHu=function(y){y=y.openPopupAction.durationHintMs;return y===0?y:Math.max(4E3,y||4E3)};
pS.prototype.isRtl=function(){return _.yC("HTML_DIR")==="rtl"};
var g6P=function(y,W){y=y.getElement(W,y.target);y==null&&_.rQ(new _.Js("popup getElement returned null",W));return y};var ORP={};
ORP.YtPopupContainerBehavior=[_.Em.YtComponentBehavior,_.ik.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_);_.cN(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.eM(this.hostElement)},
closePopup:function(y){var W=this.createCacheKey(void 0,y);this.popups_[W]&&this.handleClosePopupAction_(void 0,y)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.HU.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.HU.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(y){y.opened&&y.keepBelowPlayer&&this.ensurePopupBelowPlayer(y)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var y in this.popups_){var W=this.popups_[y];if(W.popup.scrollAction==="refit"){var V=W.popup.positionTarget.getBoundingClientRect(),w=W.popup;V=V.top;var t=W;if(!t.naturalHeight){t.popup.hidden=!1;t.popup.style.position="fixed";t.popup.style.top="0px";t.popup.style.left="0px";var F=t.popup.getBoundingClientRect();t.naturalHeight=F.bottom-F.top;t.popup.refit()}w.hidden=!(V>=t.naturalHeight+60);W.popupContent.clientHeight===0&&W.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(y){this.popupContainerConfig=y},
handleOpenPopupAction:function(y,W){var V=y.openPopupAction,w=_.hs().resolve(_.eX(_.uc))&&V.popupType==="TOAST";w&&!V.uniqueId&&(V.uniqueId=_.Wn());if(!_.e("popup_container_parent_target_killswitch")){var t;W=(t=this.getParentTarget(W))!=null?t:W}var F=this.ensurePopup_(V,W);return new _.qN(function(I){F.then(function(P){if(!P)return I();this.maybeCreateNarrowMediaQuery_();var C=this.createCacheKey(P.rendererName,P.openPopupAction.uniqueId);if(V.showOncePerUniqueId){if(this.shownPopupKeys_.has(C))return I();
this.shownPopupKeys_.add(C)}C=this.popups_[C];var d=!(!C||!C.openPopupAction.beReused);d=!!V.reusePopup||d;if(P.popup.opened&&!d){w&&!P.openPopupAction.replacePopup||this.handleClosePopupAction_(P.rendererName,P.openPopupAction.uniqueId);d=V.popupType==="DIALOG"&&!_.e("popup_container_dialog_reopen_killswitch");if(!w&&!d&&C&&C.target==W&&!P.openPopupAction.replacePopup)return I();_.gy(P.popup,function(){this.completeOpenPopupAction_(V,W,P);I()}.bind(this))}else P.popup.opened?P.updatePopup(V):this.completeOpenPopupAction_(V,
W,P),I()}.bind(this))}.bind(this))},
getParentTarget:function(y){if(y&&y instanceof HTMLElement)for(var W=_.N(Object.entries(this.popups_)),V=W.next();!V.done;V=W.next())if(V=_.N(V.value),V.next(),V=V.next().value,V.popup.tagName==="TP-YT-IRON-DROPDOWN"&&y.closest(V.rendererName))return V.target},
completeOpenPopupAction_:function(y,W,V){V.updatePopup(y);y=this.narrowMediaQuery_.queryMatches;var w=this.isAriaModal;V.target=W;var t;W=((t=V.target.polymerController)!=null?t:V.target).popupPositionTarget||V.target;V.JSC$20567_popupConfig.targetContainer&&(W=V.container);V.popup.positionTarget=W;V.popupContent.positionTarget=W;N_j(V);V.JSC$20567_popupConfig.forceFocus&&(V.popupContent.style.outline="none");V.popupContent.tabIndex=-1;V.JSC$20567_popupConfig.narrowProperties&&(V.popup.style.position=
"static");V.JSC$20567_popupConfig.preventAutonav&&V.popup.setAttribute("prevent-autonav",!0);V.JSC$20567_popupConfig.forceCloseOnOutsideClick&&V.popup.setAttribute("force-close-on-outside-click",!0);Ioj(V,y,w);CHj(V,V.JSC$20567_popupConfig.styles);V.isRtl()&&CHj(V,V.JSC$20567_popupConfig.rtlStyles);if(!V.openPopupAction.shouldStopParentSignal){var F;t=(F=V.target.polymerController)!=null?F:V.target;(V.popupContent.startForwardingEvents||V.popupContainerConfig.forwardingEnabledPopups.has(V.rendererName))&&
t.parentComponent!==V.popupContent&&V.popupContent!==V.target&&V.target!==document.body&&(V.popupContent.startForwardingEvents?V.popupContent.startForwardingEvents(V.popupContainerConfig.forwardedEvents,V.target):(V.JSC$20567_eventForwarder||(V.JSC$20567_eventForwarder=new _.qE(V.popupContent)),V.JSC$20567_eventForwarder.start(V.popupContainerConfig.forwardedEvents,V.target)))}V=V.popup;V.addEventListener("iron-overlay-opened",_.Dp(this,this.onPopupIronOverlayOpened_));V.addEventListener("iron-overlay-closed",
_.Dp(this,this.onPopupIronOverlayClosed_));V.addEventListener("iron-overlay-canceled",_.Dp(this,this.onPopupIronOverlayCanceled_));V.addEventListener("yt-refit",_.Dp(this,this.refitPopup_));V.addEventListener("yt-invalidate-popup-tabbables",_.Dp(this,this.handleInvalidatePopupTabbables_));V.open()},
getPopupDurationMs_:function(y){return y.durationHintMs===0?y.durationHintMs:Math.max(4E3,y.durationHintMs||4E3)},
handleClosePopupAction_:function(y,W){var V=_.e("web_popup_cache_key_killswitch")||!!W;if(y||V){var w=this.createCacheKey(y,W);y=(y=this.popups_[w])&&y.popup}else y=_.$Ui(_.Ix);if(y&&y.close){if(W=_.hs().resolve(_.eX(_.MC)))y.restoreFocusOnClose=W.isKeyBoardInUse();y.close();this.removePopup_(y,w)}},
handleClosePopupCommand_:function(y){y.closePopupCommand&&y.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,y.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(y){var W={},V;for(V in this.popups_)if(W={key$jscomp$1179:W.key$jscomp$1179},W.key$jscomp$1179=V,!y||!y.some(function(F){return function(I){return I==F.key$jscomp$1179}}(W))){var w=this.popups_[W.key$jscomp$1179],t=w.popup;
_.hs().resolve(_.eX(_.uc))&&w.openPopupAction.popupType==="TOAST"||(t&&t.close&&t.close(),this.removePopup_(t,W.key$jscomp$1179))}},
handleClosePopupsAction_:function(y){y.forEach(function(W){var V=this.popups_[W];V&&((V=V.popup)&&V.close&&V.close(),this.removePopup_(V,W))}.bind(this))},
handleGetPopupOpenedAction_:function(y,W){return(W=this.createCacheKey(y,W))&&this.popups_[W]?this.popups_[y].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var y=[],W;for(W in this.popups_){var V=this.popups_[W];V.popup.opened&&y.push(V)}return y},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(y,W){_.e("ytpopup_disable_default_html_caching")&&y&&y.removeWhenClosed&&(_.i6(this.hostElement).removeChild(y),W&&this.popups_[W]&&delete this.popups_[W])},
shouldReusePopup_:function(y){return!(!y||!y.reusePopup)||!(!y||!y.beReused)},
ensurePopup_:function(y,W){this.maybeCreateNarrowMediaQuery_();var V=_.bU(y.popup,"renderer")||_.bU(y.popup,"dialog")||_.bU(y.popup,"model");if(!V)return _.T2();V=_.hMa(V,jjt(this.popupContainerConfig,V));return _.T2(this.getAndMaybeCreatePopup_(y,V,W))},
getAndMaybeCreatePopup_:function(y,W,V){var w=this.createCacheKey(W,y.uniqueId);if(this.popups_[w])return this.popups_[w];y=new pS({openPopupAction:y,target:V,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(W)});return this.popups_[w]=y},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(y){return _.e("ytpopup_disable_default_html_caching")?y&&y.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",_.Dp(this,this.openPopupQueryMatchesChanged_)),_.i6(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(y){y=y.detail.value;for(var W in this.popups_)Ioj(this.popups_[W],y)},
onPopupIronOverlayClosed_:function(y){var W=y.currentTarget,V=_.vrL(W);V=V.length>0?V[0]:W;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||y.target.is!=="tp-yt-iron-dropdown"){y.detail.popup=W;y.detail.popupRenderer=V;var w,t={context:{openingElement:((w=this.popups_[(V==null?void 0:V.is)||""])==null?void 0:w.target)||void 0}};Object.assign(t,y.detail);var F;_.h1((F=V.hostElement)!=null?F:V,"yt-popup-closed",t);W.removeEventListener("yt-refit",_.Dp(this,this.refitPopup_));W.removeEventListener("yt-invalidate-popup-tabbables",
_.Dp(this,this.handleInvalidatePopupTabbables_));W.removeEventListener("iron-overlay-canceled",_.Dp(this,this.onPopupIronOverlayCanceled_));W.removeEventListener("iron-overlay-closed",_.Dp(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(W)}},
onPopupIronOverlayCanceled_:function(y,W){var V=y.currentTarget,w=_.vrL(V);w=w.length>0?w[0]:V;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||y.target.is!=="tp-yt-iron-dropdown"){var t;_.h1((t=w.hostElement)!=null?t:w,"yt-popup-canceled",y.detail);t=W?_.O$(W):null;(!W||["click","tap"].includes(W.type))&&!V.hasAttribute("force-close-on-outside-click")&&V.positionTarget&&t&&t.includes(V.positionTarget)&&y.preventDefault();V.restoreFocusOnClose=_.Bw.keyboardEventMatchesKeys(W,"esc")}},
onPopupIronOverlayOpened_:function(y){y=y.currentTarget;var W=_.vrL(y);W=W.length>0?W[0]:y;var V,w;_.h1((V=W.hostElement)!=null?V:W,"yt-popup-opened",(w=W.hostElement)!=null?w:W);y.keepBelowPlayer&&(this.ensurePopupBelowPlayer(y,!0),this.dynamicallyPositionedElements_.add(y));V=_.hs().resolve(_.eX(_.MC));w=!!W.querySelector("#toast");V&&V.isKeyBoardInUse()&&!w&&(typeof W.focusFirstItem==="function"?W.focusFirstItem():(W=_.JOE(y),W.length&&W[0].focus()));y.removeEventListener("iron-overlay-opened",
_.Dp(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(y){y=y.currentTarget;y.refit&&y.refit()},
refitPopups_:function(){for(var y in this.popups_)this.popups_[y].refit()},
handleInvalidatePopupTabbables_:function(y){y=y.currentTarget;y.invalidateTabbables&&y.invalidateTabbables()},
createCacheKey:function(y,W){return _.e("web_popup_cache_key_killswitch")?W?y+"#"+W:y:W?"#"+W:y},
openSheet:function(y,W){var V=y==null?void 0:y.openPopupActionCommand;!V&&(y==null?0:y.viewModel)&&(V={openPopupAction:{popup:{sheetViewModel:y.viewModel},popupType:"CONTEXTUAL_SHEET"}});V&&this.handleOpenPopupAction(V,W)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var y=this;return _.g(function(W){return W.return(y.handleGetOpenedPopupsAction_().filter(function(V){var w;return((w=V.openPopupAction)==null?void 0:w.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(y,W,V){if(_.e("web_dialog_utils_killswitch")){var w=y==null?void 0:y.openPopupActionCommand,t=(V==null?0:V.ariaLabel)?{accessibilityData:{accessibilityData:{label:V.ariaLabel}}}:void 0;!w&&(y==null?0:y.viewModel)&&(w={openPopupAction:Object.assign({},{popup:{dialogViewModel:y.viewModel},popupType:(V==null?0:V.isModal)?"MODAL":"DIALOG"},t&&t)});w&&this.handleOpenPopupAction(w,W)}else{if(t=y==null?void 0:y.viewModel){var F=V=V===void 0?{}:V;V=F.ariaLabel;t={popup:{dialogViewModel:t},
popupType:F.isModal?"MODAL":"DIALOG"};F={accessibilityData:{label:V}};V&&(t.accessibilityData=F);t={openPopupAction:t}}else t=void 0;if(t=(w=t)!=null?w:y==null?void 0:y.openPopupActionCommand)this.isAriaModal=_.e("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(t,W)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var y=this;return _.g(function(W){return W.return(y.handleGetOpenedPopupsAction_().filter(function(V){var w;return((w=V.openPopupAction)==null?void 0:w.popupType)==="DIALOG"}).length>0)})}}];var v6C;var dtq;var L7m=_.CF(["about:blank"]),iD=function(){var y=_.u.apply(this,arguments)||this;y.isMuted=!1;y.pageLoadTimeoutId=void 0;return y};
_.p(iD,_.u);_.E=iD.prototype;_.E.dataChanged=function(){var y=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var W=this.data.url,V=_.X1(W);_.e("enable_yt_ata_iframe_authuser")?(V=_.X1(W),_.g$(this.iframe,FM3(V))):_.g$(this.iframe,V);this.pageLoadTimeoutId=_.Jt(_.Xu(),function(){return void y.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.h$({destination:window,iframe:this.iframe,origin:_.kji(V.toString()),channelName:"ataiframe",onMessage:_.JMP(aNd,function(w){Gdd(w.data)?(w=_.PZ(w.data,1,_.pe,_.hG()),w.length!==1?_.rQ(Error("zl")):(w=w[0],w===3?(y.isMuted=!0,y.logStateChanged({adMuteRequested:!0})):w===1&&y.close())):_.rQ(Error("Al"))}),
onEstablished:function(){y.cancelPageLoadTimeout();y.logStateChanged({pageLoadSucceeded:!0})}})}};
_.E.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Xu().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.E.logStateChanged=function(y){var W;if((W=this.data)==null?0:W.trackingParams)y={adsClientData:{aboutThisAdData:y}},_.BC().stateChanged(this.data.trackingParams,y)};
_.E.close=function(){_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
_.E.handlesPopupClosed=function(y,W){var V=this,w,t;return _.g(function(F){if(F.nextAddress==1)return _.yC("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ow(V.hostElement,"on-about-this-ad-popup-closed",[V.isMuted,W]),F.jumpTo(0)):y&&Ec4(y)?F.yield(Nc4(y),4):(V.isMuted&&_.ow(V.hostElement,"yt-mute-ad-action",[V.is,V]),F.jumpTo(0));if(w=F.yieldResult){var I=t=new _.HG(w),P=V.isMuted;I.getOptions().includes("onAboutThisAdPopupClosed")?_.n7f(I,"onAboutThisAdPopupClosed",{isMuted:P,layoutId:W}):_.ce("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.B7(F)})};
_.E.onPopupClosed=function(y){var W=this,V,w;return _.g(function(t){V=_.Tc(L7m);_.g$(W.iframe,V);W.cancelPageLoadTimeout();if(!W.data)return t.jumpTo(0);W.ytRendererBehavior.markDirty();w=y.detail.context.openingElement;return t.yield(W.handlesPopupClosed(w,W.data.layoutId),0)})};
_.E.detached=function(){this.cancelPageLoadTimeout()};
_.E.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iD.prototype.onPopupClosed=iD.prototype.onPopupClosed;iD.prototype.dataChanged=iD.prototype.dataChanged;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.J([_.s$("#iframe"),_.R("design:type",HTMLIFrameElement)],iD.prototype,"iframe",void 0);_.J([_.q(),_.R("design:type",Object)],iD.prototype,"data",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iD.prototype,"dataChanged",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype",Promise)],iD.prototype,"onPopupClosed",null);_.J([_.Zp({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],iD);
_.Y(iD,"yt-about-this-ad-renderer",function(){if(dtq===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;v6C===void 0&&(v6C=document.createElement("template"));var w=v6C;V.call(W,w.content.cloneNode(!0),y.content.firstChild);dtq=y}y=dtq;return y},{mode:2});var zQC;var cQj;var fS=function(y){var W=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=W.message;"stack"in W&&(this.stack=W.stack);this.maxFileSizeMB=y;Object.setPrototypeOf(this,fS.prototype)};
_.p(fS,Error);var eQu=function(y,W){var V=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=V.message;"stack"in V&&(this.stack=V.stack);this.minWidth=y;this.minHeight=W;Object.setPrototypeOf(this,eQu.prototype)};
_.p(eQu,Error);var hQt=function(y){this.requirements=y;this.JSC$20595_maxFileSize=y.maxFileSizeMB*1024*1024},o63=function(y,W){if(W.size>y.JSC$20595_maxFileSize)throw new fS(y.requirements.maxFileSizeMB);
};var K7u=function(y,W){this.canvas=y;this.imageEditorBuilder=W};
K7u.prototype.addEventListeners=function(y){var W=function(t){ptE(y,t)};
this.JSC$20601_mouseDownEvent=W;var V=function(t){iRd(y,t)};
this.JSC$20601_mouseMoveEvent=V;var w=function(){fom(y)};
this.JSC$20601_mouseUpEvent=w;this.canvas.addEventListener("mousedown",W);this.canvas.addEventListener("mousemove",V);document.addEventListener("mouseup",w)};
K7u.prototype.removeEventListeners=function(){this.JSC$20601_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20601_mouseDownEvent);this.JSC$20601_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20601_mouseMoveEvent);this.JSC$20601_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20601_mouseUpEvent)};
var T_v=function(y,W){y.removeEventListeners();return new Promise(function(V){var w=new Image;w.crossOrigin="anonymous";w.onload=function(){var t=y.imageEditorBuilder(y.canvas,w);y.addEventListeners(t);V(t)};
w.src=W})},TU=function(y,W,V,w,t,F,I,P){this.canvas=y;
this.image=W;this.requiredRatio=V;this.minImageCropDimension=w;this.minOutputImageResolution=t;this.component=F;this.styleFocusedCorner=P===void 0?!0:P;this.action=2;this.focusedCorner=this.resizeCorner=0;y=this.canvas.getContext("2d");if(!y)throw Error("Bl");this.ctx=y;this.canvasMargin=I!=null?I:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;I=this.image;y=this.canvasInnerWidth/I.width;I.height*y>912&&(y=I.width/I.height*912/I.width);I=y;this.scaledImageWidth=this.canvas.width%2?
gce(this.image.width*I):I8u(this.image.width*I);this.scaledImageHeight=Math.round(this.image.height*I);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20604_overlayMarginBottom=this.JSC$20604_overlayMarginTop=this.canvasMargin;this.JSC$20604_overlayMarginRight=this.JSC$20604_overlayMarginLeft=this.horizontalMargin;this.JSC$20604_overlayWidth=this.scaledImageWidth;this.JSC$20604_overlayHeight=this.scaledImageHeight;
y=this.image.width/this.image.height;y>this.requiredRatio?(this.JSC$20604_overlayWidth=this.canvas.width%2?gce(this.scaledImageHeight*this.requiredRatio):I8u(this.scaledImageHeight*this.requiredRatio),this.JSC$20604_overlayMarginRight=this.JSC$20604_overlayMarginLeft=(this.canvas.width-this.JSC$20604_overlayWidth)/2):y<this.requiredRatio&&(this.JSC$20604_overlayHeight=this.canvas.height%2?gce(this.scaledImageWidth/this.requiredRatio):I8u(this.scaledImageWidth/this.requiredRatio),this.JSC$20604_overlayMarginBottom=
this.JSC$20604_overlayMarginTop=(this.canvas.height-this.JSC$20604_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*I,this.scaledImageWidth);mtt(this)};
TU.prototype.getContext=function(){return this.ctx};
var ptE=function(y,W){W={x:Math.round(W.pageX-y.canvas.getBoundingClientRect().left),y:Math.round(W.pageY-y.canvas.getBoundingClientRect().top)};y.dragStart=W;Mo4(y,W)!==0?(y.action=1,q2v(y,W),y.resizeCorner=Mo4(y,W)):W.x>y.JSC$20604_overlayMarginLeft&&W.x<y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth&&W.y>y.JSC$20604_overlayMarginTop&&W.y<y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight&&(y.action=0)},Ut4=function(y,W){switch(W){case 1:return{x:y.JSC$20604_overlayMarginLeft,
y:y.JSC$20604_overlayMarginTop};case 2:return{x:y.JSC$20604_overlayMarginLeft,y:y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight};case 3:return{x:y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth,y:y.JSC$20604_overlayMarginTop};case 4:return{x:y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth,y:y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight};default:throw Error("Cl");}},S2j=function(y,W){if(y.focusedCorner!==0){y.dragStart=Ut4(y,y.focusedCorner);
y.action=1;y.resizeCorner=y.focusedCorner;var V=y.dragStart.x,w=y.dragStart.y;switch(W){case 0:y.focusedCorner===1||y.focusedCorner===4?(V-=10,w-=10):(V-=10,w+=10);break;case 1:y.focusedCorner===1||y.focusedCorner===4?(V+=10,w+=10):(V+=10,w-=10);break;case 2:V=y.focusedCorner===1||y.focusedCorner===4?V-10:V+10;w-=10;break;case 3:V=y.focusedCorner===1||y.focusedCorner===4?V+10:V-10;w+=10;break;default:throw Error("Dl");}uYt(y,{x:V,y:w});mtt(y);y.action=2;y.dragStart=void 0}},iRd=function(y,W){W={x:Math.round(W.pageX-
y.canvas.getBoundingClientRect().left),
y:Math.round(W.pageY-y.canvas.getBoundingClientRect().top)};q2v(y,W);switch(y.action){case 1:uYt(y,W);break;case 0:y.dragStart&&(y.JSC$20604_overlayMarginLeft=Math.max(y.horizontalMargin,Math.min(y.JSC$20604_overlayMarginLeft-(y.dragStart.x-W.x),y.horizontalMargin+y.scaledImageWidth-y.JSC$20604_overlayWidth)),y.JSC$20604_overlayMarginRight=y.canvas.width-y.JSC$20604_overlayMarginLeft-y.JSC$20604_overlayWidth,y.JSC$20604_overlayMarginTop=Math.max(y.canvasMargin,Math.min(y.JSC$20604_overlayMarginTop-
(y.dragStart.y-W.y),y.scaledImageHeight-y.JSC$20604_overlayHeight+y.canvasMargin)),y.JSC$20604_overlayMarginBottom=y.canvas.height-(y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight));break;default:return}mtt(y);y.dragStart=W},fom=function(y){y.action=2;
y.dragStart=void 0;document.body.style.cursor="auto"},q2v=function(y,W){switch(Mo4(y,W)){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:y.action!==1&&(document.body.style.cursor="auto")}},Mo4=function(y,W){var V=y.JSC$20604_overlayMarginLeft-5,w=y.JSC$20604_overlayMarginTop-5,t=y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth-5;
y=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-5;return Dtv(W,{x:V,y:w})?1:Dtv(W,{x:t,y:w})?3:Dtv(W,{x:V,y:y})?2:Dtv(W,{x:t,y:y})?4:0},Dtv=function(y,W){return y.x>=W.x&&y.x<=W.x+10&&y.y>=W.y&&y.y<=W.y+10},uYt=function(y,W){if(y.dragStart)switch(y.resizeCorner){case 2:Math.abs((y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth-W.x)/(W.y-y.JSC$20604_overlayMarginTop))>=y.requiredRatio?lou(y,W.x):xt4(y,W.y);
break;case 1:Math.abs((y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth-W.x)/(y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-W.y))>=y.requiredRatio?kTj(y,W.x):xt4(y,W.y);break;case 4:Math.abs((W.x-y.JSC$20604_overlayMarginLeft)/(W.y-y.JSC$20604_overlayMarginTop))>=y.requiredRatio?lou(y,W.x):slE(y,W.y);break;case 3:Math.abs((W.x-y.JSC$20604_overlayMarginLeft)/(y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-W.y))>=y.requiredRatio?kTj(y,W.x):slE(y,W.y);break;default:throw Error("El");
}},lou=function(y,W){var V=y.JSC$20604_overlayMarginTop;
y.JSC$20604_overlayMarginBottom=AQm(y,W);y.JSC$20604_overlayHeight=y.canvas.height-y.JSC$20604_overlayMarginBottom-V;y.JSC$20604_overlayWidth=Math.round(y.JSC$20604_overlayHeight*y.requiredRatio);Y2C(y)},kTj=function(y,W){var V=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight;
y.JSC$20604_overlayMarginTop=AQm(y,W);y.JSC$20604_overlayHeight=V-y.JSC$20604_overlayMarginTop;y.JSC$20604_overlayWidth=Math.round(y.JSC$20604_overlayHeight*y.requiredRatio);Y2C(y)},Y2C=function(y){switch(y.resizeCorner){case 2:case 1:y.JSC$20604_overlayMarginLeft=y.canvas.width-y.JSC$20604_overlayMarginRight-y.JSC$20604_overlayWidth;
break;case 4:case 3:y.JSC$20604_overlayMarginRight=y.canvas.width-y.JSC$20604_overlayMarginLeft-y.JSC$20604_overlayWidth;break;default:throw Error("El");}},xt4=function(y,W){var V=y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth;
y.JSC$20604_overlayMarginLeft=B_v(y,W);y.JSC$20604_overlayWidth=V-y.JSC$20604_overlayMarginLeft;y.JSC$20604_overlayHeight=Math.round(y.JSC$20604_overlayWidth/y.requiredRatio);JQq(y)},slE=function(y,W){var V=y.JSC$20604_overlayMarginLeft;
y.JSC$20604_overlayMarginRight=B_v(y,W);y.JSC$20604_overlayWidth=y.canvas.width-y.JSC$20604_overlayMarginRight-V;y.JSC$20604_overlayHeight=Math.round(y.JSC$20604_overlayWidth/y.requiredRatio);JQq(y)},JQq=function(y){switch(y.resizeCorner){case 2:case 4:y.JSC$20604_overlayMarginBottom=y.canvas.height-y.JSC$20604_overlayMarginTop-y.JSC$20604_overlayHeight;
break;case 1:case 3:y.JSC$20604_overlayMarginTop=y.canvas.height-y.JSC$20604_overlayMarginBottom-y.JSC$20604_overlayHeight;break;default:throw Error("El");}},AQm=function(y,W){switch(y.resizeCorner){case 2:W=y.canvas.height-(y.JSC$20604_overlayMarginTop+RQP(y,W));
break;case 4:W=y.canvas.height-(y.JSC$20604_overlayMarginTop+jle(y,W));break;case 1:W=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-RQP(y,W);break;case 3:W=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-jle(y,W);break;default:throw Error("El");}return Math.max(W,y.canvasMargin)},RQP=function(y,W){W=y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth-Math.max(W,y.horizontalMargin);
W=W<0?y.JSC$20604_overlayWidth:Math.max(W,y.minOverlayWidth);return Math.round(W/y.requiredRatio)},jle=function(y,W){W=y.canvas.width-Math.max(y.canvas.width-W,y.horizontalMargin)-y.JSC$20604_overlayMarginLeft;
W=W<0?y.JSC$20604_overlayWidth:Math.max(W,y.minOverlayWidth);return Math.round(W/y.requiredRatio)},B_v=function(y,W){switch(y.resizeCorner){case 2:W=y.canvas.width-y.JSC$20604_overlayMarginRight-$t4(y,W);
break;case 4:W=y.canvas.width-y.JSC$20604_overlayMarginLeft-$t4(y,W);break;case 1:W=y.canvas.width-y.JSC$20604_overlayMarginRight-n6j(y,W);break;case 3:W=y.canvas.width-y.JSC$20604_overlayMarginLeft-n6j(y,W);break;default:throw Error("El");}return Math.max(W,y.horizontalMargin)},$t4=function(y,W){W=y.canvas.height-Math.max(y.canvas.height-W,y.canvasMargin)-y.JSC$20604_overlayMarginTop;
return W<0?y.JSC$20604_overlayWidth:Math.max(Math.round(W*y.requiredRatio),y.minOverlayWidth)},n6j=function(y,W){W=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-Math.max(W,y.canvasMargin);
return W<0?y.JSC$20604_overlayWidth:Math.max(Math.round(W*y.requiredRatio),y.minOverlayWidth)},mtt=function(y){y.ctx.clearRect(0,0,y.canvas.width,y.canvas.height);
y.ctx.drawImage(y.image,0,0,y.image.width,y.image.height,y.horizontalMargin,y.canvasMargin,y.canvas.width-2*y.horizontalMargin,y.scaledImageHeight);y.ctx.fillStyle="rgba(0, 0, 0, 0.7)";y.ctx.fillRect(y.horizontalMargin,y.JSC$20604_overlayMarginTop,y.JSC$20604_overlayMarginLeft-y.horizontalMargin,y.JSC$20604_overlayHeight);y.ctx.fillRect(y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth,y.JSC$20604_overlayMarginTop,y.JSC$20604_overlayMarginRight-y.horizontalMargin,y.JSC$20604_overlayHeight);y.ctx.fillRect(y.horizontalMargin,
y.canvasMargin,y.scaledImageWidth,y.JSC$20604_overlayMarginTop-y.canvasMargin);y.ctx.fillRect(y.horizontalMargin,y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight,y.scaledImageWidth,y.JSC$20604_overlayMarginBottom-y.canvasMargin);y.drawOverlay();y.component&&_.h1(y.component,"image-updated")};
TU.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20604_overlayMarginLeft,this.JSC$20604_overlayMarginTop,this.JSC$20604_overlayWidth,this.JSC$20604_overlayHeight);HRW(this)};
var HRW=function(y){var W=y.JSC$20604_overlayMarginLeft-5,V=y.JSC$20604_overlayMarginTop-5,w=y.JSC$20604_overlayMarginLeft+y.JSC$20604_overlayWidth-5,t=y.JSC$20604_overlayMarginTop+y.JSC$20604_overlayHeight-5;y.ctx.fillStyle="#FFF";y.ctx.fillRect(W,V,10,10);y.ctx.strokeRect(W,V,10,10);y.ctx.fillRect(w,V,10,10);y.ctx.strokeRect(w,V,10,10);y.ctx.fillRect(W,t,10,10);y.ctx.strokeRect(W,t,10,10);y.ctx.fillRect(w,t,10,10);y.ctx.strokeRect(w,t,10,10);if(y.focusedCorner!==0&&y.styleFocusedCorner){y.ctx.lineWidth=
4;y.ctx.strokeStyle="#3EA6FF";switch(y.focusedCorner){case 1:--W;--V;break;case 2:--W;V=t-1;break;case 3:W=w-1;--V;break;case 4:W=w-1;V=t-1;break;default:return}y.ctx.strokeRect(W,V,12,12)}};
TU.prototype.crop=function(y,W){W=W===void 0?!0:W;var V=this.image.width/this.scaledImageWidth,w=document.createElement("canvas"),t=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],F=this.JSC$20604_overlayWidth*V,I=this.JSC$20604_overlayHeight*V;w.width=Math.max(F,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);w.height=Math.max(I,t);y&&(w.width=Math.min(w.width,w.height),w.height=Math.min(w.width,w.height));
y=w.getContext("2d");if(!y)throw Error("sl");t=(this.JSC$20604_overlayMarginLeft-this.horizontalMargin)*V;V*=this.JSC$20604_overlayMarginTop-this.canvasMargin;W||(y.fillStyle="white",y.fillRect(0,0,w.width,w.height));y.drawImage(this.image,t,V,F,I,0,0,w.width,w.height);return w};var XtP=function(y,W,V,w,t){TU.call(this,y,W,V,w,void 0,t,8,!1)};
_.p(XtP,TU);XtP.prototype.drawOverlay=function(){var y=this.getContext(),W=this.JSC$20604_overlayWidth,V=this.JSC$20604_overlayHeight,w=this.JSC$20604_overlayMarginTop,t=this.JSC$20604_overlayMarginLeft;y.lineWidth=2;y.strokeStyle="#3EA6FF";y.beginPath();y.arc(t+W/2,w+V/2,W/2,0,2*Math.PI);y.stroke();y.strokeRect(t,w,W,V);HRW(this)};
var aoP={maxFileSizeMB:15,minWidth:98,minHeight:98},GTC=["image/png","image/jpeg","image/gif"],mA=function(){var y=_.u.apply(this,arguments)||this;y.fileSelectorFocusListener=null;y.errorMessage=null;y.isLoading=!0;y.hideContainer=!0;y.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return y};
_.p(mA,_.u);_.E=mA.prototype;_.E.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.E.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.E.computePlaylistThumbnail=function(y){return y==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.E.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ow(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.E.setErrorState=function(y){this.resetErrorState();y&&(this.errorMessage=y)};
_.E.showPopup=function(){var y=this;this.hideContainer=!1;_.Jt(_.HU,function(){_.h1(y.hostElement,"yt-refit")});
this.isLoading=!1};
_.E.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.E.closePopup=function(){this.resetFileSelector();_.ow(this.hostElement,"yt-close-popup-action",[this.is])};
_.E.onCancelTap=function(){this.isPlaylistThumbnail||_.ow(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.E.openFileSelector=function(){var y=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Jt(_.HU,function(){setTimeout(function(){if(!y.fileSelector.files||y.fileSelector.files.length===0)y.onCancelTap();y.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(W){W instanceof Error?_.ap(W):_.GD(new _.Js(JSON.stringify(W)))}};
_.E.handleFileSelection=function(){var y=this,W,V,w,t,F,I;return _.g(function(P){switch(P.nextAddress){case 1:_.l7(P,2);if(!y.fileSelector.files||!y.imageEditorCanvas)return y.onCancelTap(),P.return();W=y.fileSelector.files[0];o63(y.imageChecker,W);_.l7(P,4);return P.yield(xgd(W),6);case 6:y.mimeType=P.yieldResult;_.E6(P,5,2);break;case 4:_.YX(P,2),_.ow(y.hostElement,"yt-image-selection-error-action",[(V=y.data)==null?void 0:V.genericImageLoadErrorMessage]),y.onCancelTap();case 5:w=new FileReader;
w.addEventListener("load",function(){var C,d;return _.g(function(L){if(L.nextAddress==1){if(!w.result)return _.rQ(Error("ul")),L.return();C=w.result;d=new Image;d.src=C;d.onload=function(){try{var z=y.imageChecker;if(d.width<z.requirements.minWidth||d.height<z.requirements.minHeight)throw new eQu(z.requirements.minWidth,z.requirements.minHeight);}catch(K){if(K instanceof eQu){var c;_.ow(y.hostElement,"yt-image-selection-error-action",[(c=y.data)==null?void 0:c.imageDimensionErrorMessage]);y.logImageDimensionErrorVe()}else K instanceof
Error?_.ap(K):(z=new _.Js(JSON.stringify(K)),_.ap(z));y.onCancelTap()}y.showPopup()};
d.onerror=function(){var z;_.ow(y.hostElement,"yt-image-selection-error-action",[(z=y.data)==null?void 0:z.genericImageLoadErrorMessage]);y.onCancelTap()};
return L.yield(T_v(y.imageEditorCanvas,C),2)}y.imageEditor=L.yieldResult;y.updatePositionOfAllCorners();y.addEventListeners(y.imageEditor);_.B7(L)})},!1);
w.readAsDataURL(W);_.E6(P,0);break;case 2:t=_.YX(P),t instanceof fS?_.ow(y.hostElement,"yt-image-selection-error-action",[(F=y.data)==null?void 0:F.imageSizeErrorMessage]):(t instanceof Error?_.ap(t):_.GD(new _.Js(JSON.stringify(t))),_.ow(y.hostElement,"yt-image-selection-error-action",[(I=y.data)==null?void 0:I.genericImageLoadErrorMessage])),y.onCancelTap(),_.B7(P)}})};
_.E.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var y=_.Yc(_.BC(),{veType:232707,visualElement:_.ad(232707)});y&&(y={visualElement:y},_.AY().reportShown(y))}};
_.E.handleImageSelectionErrorAction=function(y){this.isPlaylistThumbnail&&_.D0u(this.hostElement,y)};
_.E.convertToImageFormatBundle=function(y){var W=this,V,w,t;return _.g(function(F){switch(F.nextAddress){case 1:return V=y.toDataURL(W.outputMimeType,1),F.yield(kAW(V),2);case 2:w=F.yieldResult;_.l7(F,3);o63(W.imageChecker,w);_.E6(F,4);break;case 3:t=_.YX(F);if(!(t instanceof fS))throw t;_.rQ(new _.Js("Output size is bigger than input size for image",W.mimeType,W.outputMimeType,w.size));V=y.toDataURL("image/jpeg",.95);return F.yield(kAW(V),6);case 6:w=F.yieldResult;case 4:return F.return({dataUrl:V,
imageFile:w})}})};
_.E.handleUploadImageToScottyCommand=function(y){var W=this,V,w,t,F,I,P,C,d,L,z;return _.g(function(c){switch(c.nextAddress){case 1:if(!W.imageEditor||!_.h(y,Piq))return c.return();V=_.h(y,Piq).scottyUploadUrl;if(!V){var K=new _.Js("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.ap(K);return c.return()}_.l7(c,2);W.setLoadingState();w=W.imageEditor.crop(!1,!1);return c.yield(W.convertToImageFormatBundle(w),4);case 4:return t=c.yieldResult,c.yield(Dgv(t.imageFile,V),5);
case 5:F=c.yieldResult;((I=W.data)==null?0:I.onUploadEndpoint)?(P=W.buildUploadServiceEndpoint(F),W.ytComponentBehavior.resolveCommand(P),C=_.h(P,_.yB),((d=C)==null?0:d.params)?W.closePopup():W.resetFileSelector()):(_.ow(W.hostElement,"yt-image-updated-action",[t.dataUrl,F]),W.closePopup());_.E6(c,0);break;case 2:L=_.YX(c),W.setErrorState((z=W.data)==null?void 0:z.uploadErrorMessage),L instanceof Error?_.ap(L):(K=new _.Js(JSON.stringify(L)),_.ap(K)),_.B7(c)}})};
_.E.buildUploadServiceEndpoint=function(y){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",y),this.data.onUploadEndpoint):null};
_.E.dataChanged=function(){var y=this,W;return _.g(function(V){if(V.nextAddress==1){if(!y.data||!y.canvasElement)return V.return();y.data.imageRatio&&y.data.minImageCropWidth||_.GD(new _.Js("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));W=function(w,t){return y.data.imageType==="IMAGE_TYPE_AVATAR"?new XtP(w,t,y.data.imageRatio,[y.data.minImageCropWidth,y.data.minImageCropWidth/y.data.imageRatio],y.hostElement):new TU(w,t,y.data.imageRatio,[y.data.minImageCropWidth,
y.data.minImageCropWidth/y.data.imageRatio],void 0,y.hostElement,8,!1)};
y.imageEditorCanvas=new K7u(y.canvasElement,W);return y.data.url?V.yield(T_v(y.imageEditorCanvas,y.data.url),3):(y.hideContainer=!0,y.openFileSelector(),V.jumpTo(0))}y.imageEditor=V.yieldResult;y.showPopup();y.addEventListeners(y.imageEditor);_.B7(V)})};
_.E.addEventListeners=function(y){this.removeEventListeners();var W=function(t){ptE(y,t)};
this.JSC$20612_mouseDownEvent=W;var V=function(t){iRd(y,t)};
this.JSC$20612_mouseMoveEvent=V;var w=function(){fom(y)};
this.JSC$20612_mouseUpEvent=w;this.topLeftCorner.addEventListener("mousedown",W);this.topLeftCorner.addEventListener("mousemove",V);this.topLeftCorner.addEventListener("mouseup",w);this.topRightCorner.addEventListener("mousedown",W);this.topRightCorner.addEventListener("mousemove",V);this.topRightCorner.addEventListener("mouseup",w);this.bottomLeftCorner.addEventListener("mousedown",W);this.bottomLeftCorner.addEventListener("mousemove",V);this.bottomLeftCorner.addEventListener("mouseup",w);this.bottomRightCorner.addEventListener("mousedown",
W);this.bottomRightCorner.addEventListener("mousemove",V);this.bottomRightCorner.addEventListener("mouseup",w)};
_.E.removeEventListeners=function(){this.JSC$20612_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20612_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20612_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20612_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20612_mouseDownEvent));this.JSC$20612_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20612_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20612_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20612_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20612_mouseMoveEvent));this.JSC$20612_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20612_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20612_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20612_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20612_mouseUpEvent))};
_.E.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var y=document.activeElement;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;switch(y){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};
_.E.updatePositionOfCorner=function(y,W){var V=y.y-W.offsetHeight/2+4;W.style.left=y.x-W.offsetWidth/2+16+"px";W.style.top=V+"px"};
_.E.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var y=_.N([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),W=y.next();!W.done;W=y.next()){W=W.value;var V=Ut4(this.imageEditor,W.corner);this.updatePositionOfCorner(V,W.div)}};
_.E.onLeft=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(S2j(this.imageEditor,0),this.updatePositionOfAllCorners(),y.preventDefault())};
_.E.onRight=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(S2j(this.imageEditor,1),this.updatePositionOfAllCorners(),y.preventDefault())};
_.E.onUp=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(S2j(this.imageEditor,2),this.updatePositionOfAllCorners(),y.preventDefault())};
_.E.onDown=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(S2j(this.imageEditor,3),this.updatePositionOfAllCorners(),y.preventDefault())};
_.E.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.CM.Object.defineProperties(mA.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&GTC.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var y,W,V;((W=this.data)==null?0:W.imageRatio)&&((V=this.data)==null?0:V.minImageCropWidth)?y={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:y=aoP;return new hQt(y)}}});
mA.prototype.updatePositionOfAllCorners=mA.prototype.updatePositionOfAllCorners;mA.prototype.dataChanged=mA.prototype.dataChanged;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.J([_.m(_.Bw),_.R("design:type",Object)],mA.prototype,"ironA11yKeysBehavior",void 0);
_.J([_.s$("#canvas"),_.R("design:type",HTMLCanvasElement)],mA.prototype,"canvasElement",void 0);_.J([_.s$("#file-selector"),_.R("design:type",HTMLInputElement)],mA.prototype,"fileSelector",void 0);_.J([_.s$("#top-left-corner"),_.R("design:type",HTMLDivElement)],mA.prototype,"topLeftCorner",void 0);_.J([_.s$("#top-right-corner"),_.R("design:type",HTMLDivElement)],mA.prototype,"topRightCorner",void 0);
_.J([_.s$("#bottom-left-corner"),_.R("design:type",HTMLDivElement)],mA.prototype,"bottomLeftCorner",void 0);_.J([_.s$("#bottom-right-corner"),_.R("design:type",HTMLDivElement)],mA.prototype,"bottomRightCorner",void 0);_.J([_.q(),_.R("design:type",Object)],mA.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],mA.prototype,"errorMessage",void 0);_.J([_.q(),_.R("design:type",Object)],mA.prototype,"isLoading",void 0);_.J([_.q(),_.R("design:type",Object)],mA.prototype,"hideContainer",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.R("design:type",Boolean)],mA.prototype,"isPlaylistThumbnail",void 0);_.J([_.Jc("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],mA.prototype,"dataChanged",null);_.J([_.l6("image-updated"),_.l6("yt-refit"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],mA.prototype,"updatePositionOfAllCorners",null);
_.J([_.Zp({is:"yt-image-editor-renderer",disableElementRegistration:!0})],mA);
_.Y(mA,"yt-image-editor-renderer",function(){if(cQj===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;zQC===void 0&&(zQC=document.createElement("template"));var w=zQC;V.call(W,w.content.cloneNode(!0),y.content.firstChild);cQj=y}y=cQj;return y},{mode:2});var rQP;var bR3;var Ms=function(){return _.u.apply(this,arguments)||this};
_.p(Ms,_.u);Ms.prototype.updateMinutesFromBinding=function(y){this.handleMinutesChanged&&this.handleMinutesChanged(y)};
Ms.prototype.updateSecondsFromBinding=function(y){this.handleSecondsChanged&&this.handleSecondsChanged(y)};
Ms.prototype.updateDescriptionFromBinding=function(y){this.handleDescriptionChanged&&this.handleDescriptionChanged(y)};
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Ms.prototype,"data",void 0);_.J([_.q(),_.R("design:type",String)],Ms.prototype,"minutes",void 0);_.J([_.q(),_.R("design:type",String)],Ms.prototype,"seconds",void 0);_.J([_.q(),_.R("design:type",String)],Ms.prototype,"description",void 0);_.J([_.q(),_.R("design:type",Function)],Ms.prototype,"handleMinutesChanged",void 0);
_.J([_.q(),_.R("design:type",Function)],Ms.prototype,"handleSecondsChanged",void 0);_.J([_.q(),_.R("design:type",Function)],Ms.prototype,"handleDescriptionChanged",void 0);_.J([_.q(),_.R("design:type",Number)],Ms.prototype,"characterLimit",void 0);_.J([_.q(),_.R("design:type",Number)],Ms.prototype,"textNumRows",void 0);_.J([_.Zp({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ms);
_.Y(Ms,"yt-report-details-form-content",function(){if(bR3===void 0){var y=document.createElement("template");_.T(y,'\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>');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;rQP===void 0&&(rQP=document.createElement("template"));var w=rQP;V.call(W,w.content.cloneNode(!0),y.content.firstChild);bR3=y}y=bR3;return y},{mode:2});var Ql3;var ZRt;var qs=function(){var y=_.u.apply(this,arguments)||this;y.updateMinutesFromBinding=function(W){y.minutes=W.detail.value};
y.updateSecondsFromBinding=function(W){y.seconds=W.detail.value};
y.updateDescriptionFromBinding=function(W){y.description=W.detail.value};
return y};
_.p(qs,_.u);_.E=qs.prototype;_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.E.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"}}}};
_.E.ready=function(){_.i6(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.E.onSubmitYtAction=function(y){var W=y.detail;W.actionName==="yt-service-request"&&(W=W.args[1],W.flagEndpoint&&(y.stopPropagation(),this.refireAction(W)))};
_.E.refireAction=function(y){var W={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(W.vss_id=this.vssId);_.i5(this.hostElement,[y,W]);this.submitDisabled=!0};
_.E.dataChanged=function(){var y=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var W=_.Kn();W&&W.getPlayerPromise().then(function(V){var w=V.getOption("cc","track")||V.getOption("captions","track");w&&(y.vssId=w.vss_id);V=V.getCurrentTime();y.minutes=Math.floor(V/60).toString();y.seconds=(Math.floor(V)%60).toString()})};
_.E.updateSubmitButtonState=function(){var y;((y=this.data)==null?0:y.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==="")};
_.E.onYtServiceRequestCompleted=function(){_.ow(this.hostElement,"yt-close-popup-action")};
_.E.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.CM.Object.defineProperties(qs.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.textNumRows)||4}}});
qs.prototype.onYtServiceRequestError=qs.prototype.onYtServiceRequestError;qs.prototype.onYtServiceRequestCompleted=qs.prototype.onYtServiceRequestCompleted;qs.prototype.updateSubmitButtonState=qs.prototype.updateSubmitButtonState;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.J([_.q({observer:"dataChanged"}),_.R("design:type",Object)],qs.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Boolean)],qs.prototype,"submitDisabled",void 0);_.J([_.q(),_.R("design:type",String)],qs.prototype,"minutes",void 0);_.J([_.q(),_.R("design:type",String)],qs.prototype,"seconds",void 0);_.J([_.q(),_.R("design:type",String)],qs.prototype,"description",void 0);_.J([_.q(),_.R("design:type",String)],qs.prototype,"vssId",void 0);
_.J([_.q({value:_.yC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.R("design:type",Boolean)],qs.prototype,"isMusic",void 0);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],qs.prototype,"characterLimit",null);_.J([_.M("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],qs.prototype,"textNumRows",null);
_.J([_.Jc("minutes","seconds","description","submitDisabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qs.prototype,"updateSubmitButtonState",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qs.prototype,"onYtServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qs.prototype,"onYtServiceRequestError",null);_.J([_.Zp({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],qs);
_.Y(qs,"yt-report-details-form-renderer",function(){if(ZRt===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Ql3===void 0&&(Ql3=document.createElement("template"));var w=Ql3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);ZRt=y}y=ZRt;return y});var yVe;var WVW;var VTv;var wOd;var Uw=function(){return _.u.apply(this,arguments)||this};
_.p(Uw,_.u);
Uw.prototype.onCheckedChanged_=function(){if(this.data){var y=_.i6(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ow(this.hostElement,"yt-additional-detail-checkbox-update",[y]):this.data.identifier==="yt-hide-user-checkbox"?_.ow(this.hostElement,"yt-hide-user-checkbox-update",[y]):y&&this.data.enableCommand?_.ow(this.hostElement,"yt-modify-report-form-command",[_.h(this.data.enableCommand,cSE)]):!y&&this.data.disableCommand&&_.ow(this.hostElement,
"yt-modify-report-form-command",[_.h(this.data.enableCommand,cSE)])}};
Uw.prototype.onLabelTap_=function(y){y.target.tagName!="A"&&(_.i6(this.hostElement).querySelector("#checkbox").checked=!_.i6(this.hostElement).querySelector("#checkbox").checked)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Uw.prototype,"data",void 0);_.J([_.Zp({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Uw);
_.Y(Uw,"yt-boolean-form-field-v2-renderer",function(){if(wOd===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;VTv===void 0&&(VTv=document.createElement("template"));var w=VTv;V.call(W,w.content.cloneNode(!0),y.content.firstChild);wOd=y}y=wOd;return y});var uD=function(){var y=_.u.apply(this,arguments)||this;y.canShowAdditionalDetailCheckbox=!1;y.canShowCheckbox=!1;y.keepDropdownFocusedAfterSelection=!0;return y};
_.p(uD,_.u);uD.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}}}}};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],uD.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],uD.prototype,"canShowAdditionalDetailCheckbox",void 0);_.J([_.q(),_.R("design:type",Object)],uD.prototype,"canShowCheckbox",void 0);_.J([_.q(),_.R("design:type",Object)],uD.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.J([_.Zp({is:"yt-report-form-modal-content",disableElementRegistration:!0})],uD);
_.Y(uD,"yt-report-form-modal-content",function(){if(WVW===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;yVe===void 0&&(yVe=document.createElement("template"));var w=yVe;V.call(W,w.content.cloneNode(!0),y.content.firstChild);WVW=y}y=WVW;return y},{mode:2});var tT3;var FVP;var Sp=function(){var y=_.u.apply(this,arguments)||this;y.submitting=!1;y.submitButtonDisabled=!0;y.command=null;y.canShowCheckbox=!1;y.canShowAdditionalDetailCheckbox=!1;y.canShowNextButton=!1;y.additionalDetailCheckboxChecked=!1;y.refitJob=0;y.keepDropdownFocusedAfterSelection=!0;y.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 y};
_.p(Sp,_.u);_.E=Sp.prototype;_.E.created=function(){this.refitJob=0};
_.E.attached=function(){this.JSC$20635_scroller&&(this.JSC$20635_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20635_scroller.attached&&typeof this.JSC$20635_scroller.attached==="function"&&this.JSC$20635_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.dataChanged=function(y){y&&(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,y.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),y.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.E.onYtPopupOpened=function(){var y=_.Kn();y&&y.getPlayerPromise().then(function(W){W.pauseVideo()})};
_.E.onYtNavigate=function(y){_.h(y.detail.endpoint,_.tIq)&&(y.stopPropagation(),this.hideReportForm=!0)};
_.E.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.E.onYtServiceRequestCompleted=function(y,W){var V=W.actions;if(V){if(V.length===1&&_.h(V[0],_.mR)){var w;V=((w=_.h(V[0],_.mR))==null?void 0:w.commands)||[]}w=0;for(var t=V.length;w<t;w++)_.h(V[w],_.Hq)&&(y.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(V[w]))}if(W.data&&(y=this.get("feedbackResponses",W.data)))for(W=0;W<y.length;W++)if(y[W].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.E.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.E._onDescendantIronResize=function(y){y.stopPropagation();return!1};
_.E.handleReportFormEndpointUpdateAction=function(y){if(y.submitEndpoint){var W=this.command=y.submitEndpoint;W=_.h(W,_.yRI);if(W==null?0:W.additionalDetailCheckboxChecked)W.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else y.submitNavigationEndpoint?(this.command=y.submitNavigationEndpoint,this.toggleSubmitButton(!1)):y.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:y.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;y.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",y));this.refit()};
_.E.handleConfirmDialogCloseAction=function(y){y.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.E.submitButtonDisabledChanged=function(){var y=this.hostElement.parentElement;y&&y.invalidateTabbables&&y.invalidateTabbables()};
_.E.handleModifyReportFormCommand=function(y){y=this.get("action",y);y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:y==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:y==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.E.updateDialogStyling=function(){var y,W,V,w,t,F=((t=(y=this.data)==null?void 0:(W=y.optionsSupportedRenderers)==null?void 0:(V=W.optionsRenderer)==null?void 0:(w=V.items)==null?void 0:w.length)!=null?t:0)<=2?0:240;_.qg(this.hostElement,{"--yt-report-form-modal-renderer-min-width":F+"px"})};
_.E.toggleSubmitButton=function(y){this.submitButtonDisabled=!y;this.submitButtonDisabled=y};
_.E.computeSubmitButtonData=function(y,W){var V={};_.h(W,_.tIq)?V.navigationEndpoint=W:V.command=W||void 0;y&&y.buttonRenderer&&_.Gc.extend(V,y.buttonRenderer);return V};
_.E.computeNextButtonData=function(y,W){var V={};if(!y||!y.buttonRenderer)return V;_.Gc.extend(V,y.buttonRenderer);if(!W)return V;if(_.h(W,_.tIq))V.navigationEndpoint=DUm(W);else if(V.command=DUm(W),y=_.h(V.command,_.yRI))y.legalCheckboxChecked=!0;return V};
_.E.computeShowNextButton=function(y,W,V){return!!y&&W&&V};
_.E.refit=function(){var y=this;this.refitJob||(this.refitJob=_.HU.addLowPriorityJob(function(){_.h1(y.hostElement,"yt-refit");y.refitJob=0}))};
_.E.handleAdditionalDetailCheckboxUpdateAction=function(y){this.additionalDetailCheckboxChecked=y;_.h(this.command,_.yRI).additionalDetailCheckboxChecked=y};
_.CM.Object.defineProperties(Sp,{template:{configurable:!0,enumerable:!0,get:function(){if(FVP===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;tT3===void 0&&(tT3=document.createElement("template"));var w=tT3;V.call(W,w.content.cloneNode(!0),y.content.firstChild);FVP=y}y=FVP;return y}}});
Sp.prototype.onYtServiceRequestError=Sp.prototype.onYtServiceRequestError;Sp.prototype.onYtServiceRequestCompleted=Sp.prototype.onYtServiceRequestCompleted;Sp.prototype.onYtServiceRequestSent=Sp.prototype.onYtServiceRequestSent;Sp.prototype.onYtNavigate=Sp.prototype.onYtNavigate;Sp.prototype.onYtPopupOpened=Sp.prototype.onYtPopupOpened;_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],Sp.prototype,"openPopupBehavior",void 0);
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Sp.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],Sp.prototype,"eventForwardingBehavior",void 0);_.J([_.m(_.Gm),_.R("design:type",Object)],Sp.prototype,"ironResizableBehavior",void 0);_.J([_.q({observer:"dataChanged"}),_.R("design:type",Object)],Sp.prototype,"data",void 0);
_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"submitting",void 0);_.J([_.q({observer:"submitButtonDisabledChanged"}),_.R("design:type",Object)],Sp.prototype,"submitButtonDisabled",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"command",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Sp.prototype,"hideReportForm",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"canShowCheckbox",void 0);
_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"canShowAdditionalDetailCheckbox",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"canShowNextButton",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"additionalDetailCheckboxChecked",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"refitJob",void 0);_.J([_.q(),_.R("design:type",Object)],Sp.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.J([_.s$("#scroller"),_.R("design:type",Object)],Sp.prototype,"JSC$20635_scroller",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sp.prototype,"onYtPopupOpened",null);_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sp.prototype,"onYtNavigate",null);
_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],Sp.prototype,"onYtServiceRequestSent",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],Sp.prototype,"onYtServiceRequestCompleted",null);
_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sp.prototype,"onYtServiceRequestError",null);_.J([_.Zp({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Sp);var E4j;var NIu;var Dz=function(){return _.u.apply(this,arguments)||this};
_.p(Dz,_.u);_.E=Dz.prototype;_.E.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.E.onVisible=function(){var y,W;(W=_.hs().resolve(_.eX(_.kT)))==null||W.enqueue({label:_.OT((y=this.data)==null?void 0:y.messageTitle),elementToFocus:this.hostElement})};
_.E.onThumbnailLoaded=function(){_.h1(this.hostElement,"yt-refit")};
_.E.onDismissTap=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.E.computeAlternateIcon=function(y){return y?y==="BACKSTAGE_ARTWORK"?"backstage:artwork":y:null};
_.E.computeFontFamily=function(y){return y==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.E.computeBackgroundStyle=function(y,W){if(y=this.computeBackgroundImage(y,W))if(y=_.TP(y.thumbnails))return'background-image: url("'+y+'");'};
_.E.computeHasFullHeightImage=function(y){return!(!(y&&y.thumbnails&&y.thumbnails.length>0)||this.modern)};
_.E.isModernStyle=function(y){return y.style==="STYLE_MODERN"};
_.E.computeIcon=function(y,W){if(y&&y.icon)return W?y.iconDark:y.icon};
_.E.computeBackgroundImage=function(y,W){if(y&&y.backgroundImage)return W?y.backgroundImageDark:y.backgroundImage};
_.E.computeLogo=function(y,W){if(y&&y.logo)return W?y.logoDark:y.logo};
_.E.computeShouldShowModernIcon=function(y,W){return y&&!!W};
_.E.getLogoContainerClassName=function(y){return this.logoWithPadding(y)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.E.getLogoImageId=function(y){return this.logoWithPadding(y)?"mealbar-logo-with-padding":"mealbar-logo"};
_.E.logoWithPadding=function(y){var W,V,w;return(y=(W=this.computeLogo(y,this.isDarkTheme))==null?void 0:(V=W.thumbnails)==null?void 0:(w=V[0])==null?void 0:w.height)&&y%31===0?!0:!1};
Dz.prototype.onThumbnailLoaded=Dz.prototype.onThumbnailLoaded;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.J([_.q({}),_.R("design:type",Object)],Dz.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.R("design:type",Boolean)],Dz.prototype,"modern",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],Dz.prototype,"isDarkTheme",void 0);
_.J([_.q({computed:"computeIcon(data, isDarkTheme)"}),_.R("design:type",Object)],Dz.prototype,"icon",void 0);_.J([_.q({computed:"computeLogo(data, isDarkTheme)"}),_.R("design:type",Object)],Dz.prototype,"logo",void 0);_.J([_.q({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.R("design:type",Object)],Dz.prototype,"backgroundStyle",void 0);_.J([_.q({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.R("design:type",Object)],Dz.prototype,"alternateIcon",void 0);
_.J([_.q({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.R("design:type",Boolean)],Dz.prototype,"hasFullHeightImage",void 0);_.J([_.q({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.R("design:type",Boolean)],Dz.prototype,"useYoutubeSans",void 0);_.J([_.q({computed:"computeShouldShowModernIcon(modern, icon)"}),_.R("design:type",Boolean)],Dz.prototype,"shouldShowModernIcon",void 0);
_.J([_.l6("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dz.prototype,"onThumbnailLoaded",null);_.J([_.Zp({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Dz);
_.Y(Dz,"yt-mealbar-promo-renderer",function(){if(NIu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;E4j===void 0&&(E4j=document.createElement("template"));var w=E4j;V.call(W,w.content.cloneNode(!0),y.content.firstChild);NIu=y}y=NIu;return y},{mode:2});var IXq;var g4u;var lD=function(){return _.u.apply(this,arguments)||this};
_.p(lD,_.u);_.E=lD.prototype;_.E.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]]"}}}}}};
_.E.computeHasButtons_=function(y){return!(!y.dismissButton&&!y.acceptButton)};
_.E.computeStyle_=function(y){return y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E.observeImpressionEndpoints_=function(){var y=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.i5(y.hostElement,[W])})};
_.E.onTap_=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lD.prototype.observeImpressionEndpoints_=lD.prototype.observeImpressionEndpoints_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],lD.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],lD.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],lD.prototype,"positionType",void 0);_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.R("design:type",Boolean)],lD.prototype,"hasButtons_",void 0);_.J([_.q({value:function(){return this.onTap_.bind(this)}}),
_.R("design:type",Function)],lD.prototype,"boundOnTap_",void 0);_.J([_.q({value:{style:"mono-inverse"}}),_.R("design:type",Object)],lD.prototype,"buttonOverride",void 0);_.J([_.xA("data.promoConfig.impressionEndpoints"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lD.prototype,"observeImpressionEndpoints_",null);_.J([_.Zp({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lD);
_.Y(lD,"yt-tooltip-renderer",function(){if(g4u===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;IXq===void 0&&(IXq=document.createElement("template"));var w=IXq;V.call(W,w.content.cloneNode(!0),y.content.firstChild);g4u=y}y=g4u;return y},{mode:2});var P$v;var C$3;var OUj={},v4t=(OUj.WEB_REMIX="music.youtube.com",OUj),xb=function(){var y=_.u.apply(this,arguments)||this;y.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return y};
_.p(xb,_.u);_.E=xb.prototype;_.E.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.created=function(){this.embedHost_=v4t[_.yC("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.E.ready=function(){_.i6(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.E.computeEmbedCode_=function(y,W,V,w,t){if(!y)return"";var F=y.videoId,I=y.fullListId,P=[];y.attributionId&&P.push("si="+y.attributionId);w||P.push("controls=0");V&&Number(W)>0&&P.push("start="+W);I&&(F="videoseries",P.push("list="+I));V="https://"+(t?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+F;y.clipId&&(P.push("clip="+y.clipId),P.push("clipt="+y.clipTiming));W=P.length>0?V+"?"+P.join("&amp;"):V;y.encryptedEmbedConfig&&P.push("embed_config="+JSON.stringify({enc:y.encryptedEmbedConfig}));
P=P.length>0?V+"?"+P.join("&amp;"):V;_.e("web_sharing_embed_preview_killswitch")?_.i6(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(P,y.previewWidth||854,y.previewHeight||480):(_.G7(this.videoPreviewContainer),_.i6(this.videoPreviewContainer).appendChild(this.buildIframeElement(P)));return this.getEmbedCode_(W,y.width||560,y.height||315)};
_.E.buildIframeElement=function(y){var W=document.createElement("iframe"),V,w;W.width=""+((w=(V=this.data)==null?void 0:V.previewWidth)!=null?w:854);var t,F;W.height=""+((F=(t=this.data)==null?void 0:t.previewHeight)!=null?F:480);_.$5u(W,2,y);W.title="YouTube video player";W.frameBorder="0";W.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";W.referrerPolicy="strict-origin-when-cross-origin";W.allowFullscreen=!0;return W};
_.E.computeIsSquareAspectRatio_=function(y){return y.previewHeight&&y.previewWidth?y.previewHeight==y.previewWidth:!1};
_.E.computeShowEmbedOptions_=function(y){return!!y.enablePrivacyModeOptionLabel||!!y.showPlayerControlsOptionLabel};
_.E.getEmbedCode_=function(y,W,V){return'<iframe width="'+W+'" height="'+V+'" src="'+y+'" 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>'};
_.E.handleSignalActionCopyShareEmbedUrl_=function(){_.i6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.E.handleSetTimestamp_=function(y){this.startAtTimeStamp_=(this.startAtChecked_=y.isSet)?y.timestamp:0};
_.E.closePanel_=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.E.onEmbedCode_=function(){_.i6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.E.onYtPopupClosed_=function(){_.G7(_.i6(this.hostElement).querySelector("#video-preview"))};
_.E.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.h(this.data.actionButtons[0],_.wz)&&this.ytRendererBehavior.logExplicitClick(_.h(this.data.actionButtons[0],_.wz))};
xb.prototype.onYtPopupClosed_=xb.prototype.onYtPopupClosed_;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],xb.prototype,"data",void 0);
_.J([_.q({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.R("design:type",String)],xb.prototype,"embedCode_",void 0);_.J([_.q({value:!0}),_.R("design:type",Boolean)],xb.prototype,"isPlayerControlsOptionChecked_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],xb.prototype,"isPrivacyModeOptionChecked_",void 0);_.J([_.q({value:!1,notify:!0}),_.R("design:type",Boolean)],xb.prototype,"startAtChecked_",void 0);
_.J([_.q({value:0}),_.R("design:type",Number)],xb.prototype,"startAtTimeStamp_",void 0);_.J([_.q({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],xb.prototype,"isSquareAspectRatio_",void 0);_.J([_.s$("#video-preview"),_.R("design:type",HTMLElement)],xb.prototype,"videoPreviewContainer",void 0);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xb.prototype,"onYtPopupClosed_",null);
_.J([_.Zp({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],xb);
_.Y(xb,"yt-sharing-embed-renderer",function(){if(C$3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;P$v===void 0&&(P$v=document.createElement("template"));var w=P$v;V.call(W,w.content.cloneNode(!0),y.content.firstChild);C$3=y}y=C$3;return y},{mode:2});var dPt={};
dPt.YtUnlimitedFamilyInterstitialBehavior=[_.sm.YtOpenPopupBehavior,_.ik.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(y){y=_.CtK(_.vW(y),"yt-button-renderer");return y?y.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(y){this.dialogHistory_.push(y)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var y=this.popFromHistory();if(y){var W={openPopupAction:{popupType:"DIALOG",popup:{}}};W.openPopupAction.popup[y.renderer]=y.data;this.showingPreviousDialog_=!0;this.openPopup(W)}},
handleOpenPopupAction_:function(y){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var W=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(w){return!!y.openPopupAction.popup[w]}),V=this.getElementName_();
W&&this.data&&(this.pushToHistory({renderer:V,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(y){if(y=_.h(y,nKu))this.loading=!0,_.ow(this.hostElement,"yt-open-create-family-dialog",[y,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var y=this.hostElement.nodeName.split("-").slice(1).map(function(W){return""+W[0].toUpperCase()+W.slice(1).toLowerCase()}).join("");
return y[0].toLowerCase()+y.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var LVj;var zet;var kb=function(){return _.u.apply(this,arguments)||this};
_.p(kb,_.u);_.E=kb.prototype;_.E.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}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ow(this.hostElement,"yt-register-create-family-dialog");_.i6(this.hostElement).querySelector("#thumbnail").onShow()};
_.E.fireOnCloseCommand_=function(){var y;((y=this.data)==null?0:y.onCloseCommand)&&_.fg(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.E.onYtServiceRequestSent_=function(y,W){W&&W.endpoint&&_.h(W.endpoint,_.q8)||(this.loading=!0)};
_.E.onYtServiceRequestCompleted_=function(){var y=this.hostElement.parentElement;y.close&&y.close();this.loading=!1};
_.E.openPopupHandler_=function(y){if(y.detail==this){var W;((W=this.data)==null?0:W.onOpenCommands)&&_.fg(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.E.closePopupHandler_=function(y,W){this.fireOnCloseCommand_();if(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1){var V;((V=this.data)==null?0:V.onDismissCommands)&&_.fg(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.E.dataChanged_=function(){this.loading=!1};
kb.prototype.dataChanged_=kb.prototype.dataChanged_;kb.prototype.closePopupHandler_=kb.prototype.closePopupHandler_;kb.prototype.openPopupHandler_=kb.prototype.openPopupHandler_;kb.prototype.onYtServiceRequestCompleted_=kb.prototype.onYtServiceRequestCompleted_;kb.prototype.onYtServiceRequestSent_=kb.prototype.onYtServiceRequestSent_;_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],kb.prototype,"ytEventForwardingBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(dPt.YtUnlimitedFamilyInterstitialBehavior),_.R("design:type",Object)],kb.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],kb.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],kb.prototype,"loading",void 0);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],kb.prototype,"onYtServiceRequestSent_",null);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],kb.prototype,"onYtServiceRequestCompleted_",null);
_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],kb.prototype,"openPopupHandler_",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],kb.prototype,"closePopupHandler_",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kb.prototype,"dataChanged_",null);
_.J([_.Zp({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],kb);
_.Y(kb,"yt-unlimited-family-message-interstitial-renderer",function(){if(zet===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;LVj===void 0&&(LVj=document.createElement("template"));var w=LVj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);zet=y}y=zet;return y},{mode:2});var cVW;var eev;var sw=function(){return _.u.apply(this,arguments)||this};
_.p(sw,_.u);sw.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"}}}};
sw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.i6(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(y){y.onShow()});
_.i6(this.hostElement).querySelector("#main-thumbnail").onShow()};
sw.prototype.onButtonTap_=function(y){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(y)};
sw.prototype.computeMainThumbnailWidth_=function(y){return y&&y.length!==0?72:96};
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.J([_.m(dPt.YtUnlimitedFamilyInterstitialBehavior),_.R("design:type",Object)],sw.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],sw.prototype,"data",void 0);
_.J([_.q({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.R("design:type",Number)],sw.prototype,"mainThumbnailWidth_",void 0);_.J([_.q({value:function(){return this.onButtonTap_.bind(this)}}),
_.R("design:type",Function)],sw.prototype,"boundButtonTap_",void 0);_.J([_.Zp({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],sw);
_.Y(sw,"yt-unlimited-family-profile-interstitial-renderer",function(){if(eev===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;cVW===void 0&&(cVW=document.createElement("template"));var w=cVW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);eev=y}y=eev;return y},{mode:2});var hev;var o4C;var AH=function(){var y=_.u.apply(this,arguments)||this;y.sliderAriaValueText_=null;y.selectedIndex_=0;y.messages={PAUSE_SLIDER:_.u5("PAUSE_SLIDER",void 0,"Pause Duration")};return y};
_.p(AH,_.u);_.E=AH.prototype;_.E.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_]]"}}}}}};
_.E.onPopupOpened_=function(y){y.detail==this&&_.e("enable_premium_voluntary_pause")&&(_.ow(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E.setDialogData=function(y){this.data=y;this.resetSlider_()};
_.E.dataChanged_=function(){this.data&&this.resetSlider_()};
_.E.onSubmitTap_=function(){if(this.data.confirmCommand){var y=this.data.confirmCommand;_.h(y,_.hjq)&&_.i5(this.hostElement,[y,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.E.onExitButtonTap_=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.E.closePopupHandler_=function(y,W){(W&&W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.handleOnDismissCommands_()};
_.E.onSliderChange_=function(){this.selectedIndex_=_.i6(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.E.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.E.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.E.resetSlider_=function(){if(this.data){var y=this.data.defaultEndOptionIndex||0,W=_.i6(this.hostElement).querySelector("#id-pause-slider");if(W.immediateValue<y)for(;W.immediateValue!=y;)W.increment();else if(y<W.immediateValue)for(;W.immediateValue!=y;)W.decrement();this.selectedIndex_=y;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.E.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.fg(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.E.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.fg(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.E.onYtServiceRequestSent=function(){this.loading=!0};
_.E.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
AH.prototype.onYtServiceRequestCompleted=AH.prototype.onYtServiceRequestCompleted;AH.prototype.onYtServiceRequestSent=AH.prototype.onYtServiceRequestSent;AH.prototype.closePopupHandler_=AH.prototype.closePopupHandler_;AH.prototype.dataChanged_=AH.prototype.dataChanged_;AH.prototype.onPopupOpened_=AH.prototype.onPopupOpened_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],AH.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],AH.prototype,"loading",void 0);_.J([_.q(),_.R("design:type",Number)],AH.prototype,"selectIndexMax_",void 0);_.J([_.q(),_.R("design:type",Object)],AH.prototype,"selectedData_",void 0);
_.J([_.q(),_.R("design:type",Object)],AH.prototype,"sliderAriaValueText_",void 0);_.J([_.q({value:function(){return this.onSubmitTap_.bind(this)}}),
_.R("design:type",Function)],AH.prototype,"onButtonTap_",void 0);_.J([_.q({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.R("design:type",Function)],AH.prototype,"onSecondaryTap_",void 0);_.J([_.q(),_.R("design:type",Object)],AH.prototype,"messages",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],AH.prototype,"onPopupOpened_",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AH.prototype,"dataChanged_",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],AH.prototype,"closePopupHandler_",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],AH.prototype,"onYtServiceRequestSent",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],AH.prototype,"onYtServiceRequestCompleted",null);_.J([_.Zp({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],AH);
_.Y(AH,"yt-unplugged-pause-membership-dialog-renderer",function(){if(o4C===void 0){var y=document.createElement("template");_.T(y,'\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>');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;hev===void 0&&(hev=document.createElement("template"));var w=hev;V.call(W,w.content.cloneNode(!0),y.content.firstChild);o4C=y}y=o4C;return y},{mode:2});var KVu;var pOu;var Yb=function(){return _.u.apply(this,arguments)||this};
_.p(Yb,_.u);Yb.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.y7("vcBalanceRenderer")}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],Yb.prototype,"data",void 0);_.J([_.Zp({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Yb);
_.Y(Yb,"yt-vc-offer-layout-header-renderer",function(){if(pOu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;KVu===void 0&&(KVu=document.createElement("template"));var w=KVu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);pOu=y}y=pOu;return y},{mode:2});var iUe;var fXE;var TIj;var mPE;var BF=function(){return _.u.apply(this,arguments)||this};
_.p(BF,_.u);BF.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.CM.Object.defineProperties(BF.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)}}});
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.SOJ.YtTappableItemBehavior),_.R("design:type",Object)],BF.prototype,"ytTappableItemBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],BF.prototype,"data",void 0);
_.J([_.q({reflectToAttribute:!0}),_.M("data.accessibilityText"),_.R("design:type",String),_.R("design:paramtypes",[])],BF.prototype,"ariaLabel",null);_.J([_.q({reflectToAttribute:!0}),_.M("data.style"),_.R("design:type",String),_.R("design:paramtypes",[])],BF.prototype,"vcOfferStyle",null);_.J([_.M("data.style","data.titleText"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],BF.prototype,"showTitleText",null);_.J([_.Zp({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],BF);
_.Y(BF,"yt-vc-offer-renderer",function(){if(mPE===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;TIj===void 0&&(TIj=document.createElement("template"));var w=TIj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);mPE=y}y=mPE;return y},{mode:2});var JH=function(){return _.u.apply(this,arguments)||this};
_.p(JH,_.u);JH.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],JH.prototype,"data",void 0);_.J([_.Zp({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],JH);
_.Y(JH,"yt-vc-offer-layout-renderer",function(){if(fXE===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;iUe===void 0&&(iUe=document.createElement("template"));var w=iUe;V.call(W,w.content.cloneNode(!0),y.content.firstChild);fXE=y}y=fXE;return y},{mode:2});var MTt;var qit;var UPd;var uFE;var RF=function(){return _.u.apply(this,arguments)||this};
_.p(RF,_.u);RF.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}}}}}};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],RF.prototype,"data",void 0);_.J([_.Zp({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],RF);
_.Y(RF,"yt-ypc-offers-modal-top-bar-renderer",function(){if(uFE===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;UPd===void 0&&(UPd=document.createElement("template"));var w=UPd;V.call(W,w.content.cloneNode(!0),y.content.firstChild);uFE=y}y=uFE;return y},{mode:2});var jp=function(){return _.u.apply(this,arguments)||this};
_.p(jp,_.u);jp.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"}}}}};
jp.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
jp.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var y=this.scrollable;y.attached&&typeof y.attached==="function"&&y.attached()};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.J([_.s$("#scrollable"),_.R("design:type",Object)],jp.prototype,"scrollable",void 0);_.J([_.q(),_.R("design:type",Object)],jp.prototype,"data",void 0);_.J([_.Zp({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],jp);
_.Y(jp,"yt-ypc-offers-modal-renderer",function(){if(qit===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;MTt===void 0&&(MTt=document.createElement("template"));var w=MTt;V.call(W,w.content.cloneNode(!0),y.content.firstChild);qit=y}y=qit;return y},{mode:2});var Sij;var DPq;var $b=function(){return _.u.apply(this,arguments)||this};
_.p($b,_.u);_.E=$b.prototype;_.E.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}}}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.i6(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.E.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ow(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.E.onYtPopupOpened_=function(y,W){(W==null?void 0:W.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.fg(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.E.onYtPopupClosed_=function(y,W){this.continueButtonTapped||W&&(W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.data.onDismissCommands&&_.fg(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.E.onYtServiceRequestError_=function(y){this.set("showSpinner",!1);_.ey(this.hostElement,y.detail.error.message)};
_.E.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.e("enable_ypc_spinners")?_.ow(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
$b.prototype.onYtServiceRequestError_=$b.prototype.onYtServiceRequestError_;$b.prototype.onYtPopupClosed_=$b.prototype.onYtPopupClosed_;$b.prototype.onYtPopupOpened_=$b.prototype.onYtPopupOpened_;$b.prototype.onYtServiceRequestCompleted_=$b.prototype.onYtServiceRequestCompleted_;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);
_.J([_.q(),_.R("design:type",Object)],$b.prototype,"data",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],$b.prototype,"showSpinner",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],$b.prototype,"continueButtonTapped",void 0);_.J([_.q({value:function(){return this.onContinueTapped_.bind(this)}}),
_.R("design:type",Function)],$b.prototype,"bindOnContinueTapped_",void 0);_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$b.prototype,"onYtServiceRequestCompleted_",null);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],$b.prototype,"onYtPopupOpened_",null);
_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],$b.prototype,"onYtPopupClosed_",null);_.J([_.l6("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$b.prototype,"onYtServiceRequestError_",null);_.J([_.Zp({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],$b);
_.Y($b,"yt-ypc-upgrade-dialog-renderer",function(){if(DPq===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;Sij===void 0&&(Sij=document.createElement("template"));var w=Sij;V.call(W,w.content.cloneNode(!0),y.content.firstChild);DPq=y}y=DPq;return y},{mode:2});var lXW;var xPE;var nS=function(){return _.u.apply(this,arguments)||this};
_.p(nS,_.u);nS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nS.prototype.computeHasButtons_=function(y){return!(!y.dismissButton&&!y.confirmButton)};
nS.prototype.computeStyle_=function(y){return y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],nS.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],nS.prototype,"data",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],nS.prototype,"positionType",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.R("design:type",Boolean)],nS.prototype,"hasButtons_",void 0);_.J([_.q({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.R("design:type",Boolean)],nS.prototype,"style_",void 0);_.J([_.Zp({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],nS);
_.Y(nS,"yt-bubble-hint-renderer",function(){if(xPE===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;lXW===void 0&&(lXW=document.createElement("template"));var w=lXW;V.call(W,w.content.cloneNode(!0),y.content.firstChild);xPE=y}y=xPE;return y},{mode:2});var ket;var sNd;var HF=function(){var y=_.O0.apply(this,arguments)||this;y.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return y};
_.p(HF,_.O0);_.E=HF.prototype;_.E.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.E.attached=function(){var y=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){y.$.thumbnail.onShow();y.$["header-image"].onShow()})};
_.E.handleCheckBoxUpdateAction_=function(y){this.canShowCheckboxEnabledConfirmButton=y};
_.E.computeUseOverlayForSpinner_=function(y,W){return!!y&&W};
_.E.computeShowSpinner_=function(y,W){return y||!!W};
_.E.fireOnCloseActions_=function(){var y,W=_.N(((y=this.data)==null?void 0:y.onClosedActions)||[]);for(y=W.next();!y.done;y=W.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.E.fireOnOpenCommands_=function(y){var W,V=(W=this.data)==null?void 0:W.onOpenCommands;if(V)for(y.stopImmediatePropagation(),y=_.N(V),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.E.fireOnDismissCommands_=function(y){var W,V=(W=this.data)==null?void 0:W.onDismissCommands;if(V)for(y.stopImmediatePropagation(),y=_.N(V),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.E.openPopupHandler_=function(y){y.detail==this&&this.fireOnOpenCommands_(y)};
_.E.closePopupHandler_=function(y,W){_.Kg(this,"yt-confirm-dialog-close-action",[W]);this.fireOnCloseActions_();(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.fireOnDismissCommands_(y)};
_.E.onHeaderImageChanged_=function(){var y;((y=this.data)==null?0:y.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.E.computeHasHeaderImageWidth_=function(y){return y!=void 0};
_.E.computeHasLoadingMessage=function(y){return!!y};
_.E.onHeaderImageWidthChanged_=function(){var y,W=(y=this.data)==null?void 0:y.headerImageWidth;if(W){if(y=1.25*W*2+W,this.$.main.style.width=y+"px",W=this.$.scroller.firstElementChild)W.style.minWidth=y+"px"}else this.$.main.style.width="100%"};
_.E.onThumbnailChanged_=function(){var y;((y=this.data)==null?0:y.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")};
_.E.onYtNavigate_=function(y){y=_.vW(y);y instanceof Node&&_.f6(this.$["confirm-button"]).contains(y)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.E.computePrimaryIsCancel_=function(y){return y};
_.E.computeIsCancelButtonHidden_=function(y){return y.skipCancelButton||!y.cancelButton};
_.E.computeIsCheckboxHidden_=function(y){return!y.checkbox};
_.E.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.E.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.E.onYtServiceRequestCompleted_=function(){var y;((y=this.data)==null?0:y.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.CM.Object.defineProperties(HF,{template:{configurable:!0,enumerable:!0,get:function(){if(sNd===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;ket===void 0&&(ket=document.createElement("template"));var w=ket;V.call(W,w.content.cloneNode(!0),y.content.firstChild);sNd=y}y=sNd;return y}}});
HF.prototype.onYtServiceRequestCompleted_=HF.prototype.onYtServiceRequestCompleted_;HF.prototype.onYtServiceRequestSent_=HF.prototype.onYtServiceRequestSent_;HF.prototype.onThumbnailLoaded_=HF.prototype.onThumbnailLoaded_;HF.prototype.onYtNavigate_=HF.prototype.onYtNavigate_;HF.prototype.onThumbnailChanged_=HF.prototype.onThumbnailChanged_;HF.prototype.onHeaderImageWidthChanged_=HF.prototype.onHeaderImageWidthChanged_;HF.prototype.onHeaderImageChanged_=HF.prototype.onHeaderImageChanged_;
HF.prototype.closePopupHandler_=HF.prototype.closePopupHandler_;HF.prototype.openPopupHandler_=HF.prototype.openPopupHandler_;_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],HF.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);
_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],HF.prototype,"ytEventForwardingBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],HF.prototype,"data",void 0);_.J([_.q({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.R("design:type",Boolean)],HF.prototype,"primaryIsCancel",void 0);_.J([_.q({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.R("design:type",Boolean)],HF.prototype,"isCancelButtonHidden",void 0);
_.J([_.q({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.R("design:type",Boolean)],HF.prototype,"isCheckboxHidden",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],HF.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.J([_.q({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.R("design:type",Boolean)],HF.prototype,"useOverlayForSpinner_",void 0);
_.J([_.q({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.R("design:type",Boolean)],HF.prototype,"showSpinner_",void 0);_.J([_.q({value:!1}),_.R("design:type",Boolean)],HF.prototype,"isActionInProgress_",void 0);_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.R("design:type",Boolean)],HF.prototype,"hasHeaderImageWidth_",void 0);
_.J([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.R("design:type",Boolean)],HF.prototype,"hasLoadingMessage",void 0);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],HF.prototype,"openPopupHandler_",null);_.J([_.l6("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],HF.prototype,"closePopupHandler_",null);
_.J([_.xA("data.headerImage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HF.prototype,"onHeaderImageChanged_",null);_.J([_.xA("data.headerImageWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HF.prototype,"onHeaderImageWidthChanged_",null);_.J([_.xA("data.thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HF.prototype,"onThumbnailChanged_",null);
_.J([_.l6("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],HF.prototype,"onYtNavigate_",null);_.J([_.l6("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HF.prototype,"onThumbnailLoaded_",null);_.J([_.l6("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.IJ]),_.R("design:returntype")],HF.prototype,"onYtServiceRequestSent_",null);
_.J([_.l6("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.z$]),_.R("design:returntype")],HF.prototype,"onYtServiceRequestCompleted_",null);_.J([_.Zp({is:"yt-confirm-dialog-renderer",noInjection:!0})],HF);var AVj;var Yiu;var X8=function(){return _.u.apply(this,arguments)||this};
_.p(X8,_.u);X8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.i6(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
X8.prototype.computeConfirmButton_=function(y){var W={text:y.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};y.confirmNavigationEndpoint?W.navigationEndpoint=y.confirmNavigationEndpoint:y.confirmServiceEndpoint&&(W.serviceEndpoint=y.confirmServiceEndpoint);return W};
X8.prototype.computeShowTitle_=function(y){return!(y==null||!y.title)};
_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],X8.prototype,"data",void 0);_.J([_.q({computed:"computeShowTitle_(data)"}),_.R("design:type",Boolean)],X8.prototype,"showTitle",void 0);_.J([_.Zp({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],X8);
_.Y(X8,"yt-fancy-dismissible-dialog-renderer",function(){if(Yiu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;AVj===void 0&&(AVj=document.createElement("template"));var w=AVj;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Yiu=y}y=Yiu;return y});var BIu;var JV3;var aF=function(){var y=_.u.apply(this,arguments)||this;y.spinnerActive=!1;return y};
_.p(aF,_.u);aF.prototype.created=function(){ynW(2201)};
aF.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
aF.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
aF.prototype.onIronOverlayClosed=aF.prototype.onIronOverlayClosed;aF.prototype.onIronOverlayOpened=aF.prototype.onIronOverlayOpened;_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Pq),_.R("design:type",Object)],aF.prototype,"tpYtIronOverlayBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],aF.prototype,"data",void 0);_.J([_.q(),_.R("design:type",Object)],aF.prototype,"spinnerActive",void 0);
_.J([_.l6("iron-overlay-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aF.prototype,"onIronOverlayOpened",null);_.J([_.l6("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aF.prototype,"onIronOverlayClosed",null);_.J([_.Zp({is:"yt-loading-renderer",disableElementRegistration:!0})],aF);
_.Y(aF,"yt-loading-renderer",function(){if(JV3===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;BIu===void 0&&(BIu=document.createElement("template"));var w=BIu;V.call(W,w.content.cloneNode(!0),y.content.firstChild);JV3=y}y=JV3;return y},{mode:2});var Rej;var jNu;var GU=function(){var y=_.u.apply(this,arguments)||this;y.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);y.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);y.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.p(GU,_.u);_.E=GU.prototype;_.E.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.E.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.E.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.E.openPopupHandler_=function(y){y.detail===this.hostElement&&this.hostElement.hidden&&_.ow(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.E.onDismissButtonTap_=function(){var y;this.closeOnDismissButton_.has(((y=this.data)==null?void 0:y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ow(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.E.onAcceptButtonTap_=function(){var y;this.closeOnAcceptButton_.has(((y=this.data)==null?void 0:y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ow(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.E.computeHasHeader_=function(y){return!!y.headerBackgroundImage};
_.E.computeLayoutStyle_=function(y){return y};
_.E.computePopupSize_=function(y){return y};
_.E.computeIconType_=function(y){return y.dialogIcon&&y.dialogIcon.iconType?y.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":y.dialogIcon.iconType:""};
_.E.computeIsLogo_=function(y){return!!y.dialogIcon&&!!y.dialogIcon.iconType&&(y.dialogIcon.iconType==="YOUTUBE_LOGO"||y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||y.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.E.computeHasCustomLogo=function(y){return!(y==null||!y.headerForegroundImage)};
_.E.computeCustomLogo=function(y,W){if(y!=null&&y.headerForegroundImage)return y.headerForegroundImageDark?W?y.headerForegroundImageDark:y.headerForegroundImage:y.headerForegroundImage};
_.E.computeHeaderBackgroundImage=function(y,W){if(y!=null&&y.headerBackgroundImage)return W&&(y==null?0:y.headerBackgroundImageDark)?y.headerBackgroundImageDark:y.headerBackgroundImage};
_.E.shouldShowIconContainer=function(y,W){return y&&!W};
_.E.shouldShowNonYouTubeIcon=function(y,W){return!y&&!W};
_.E.getLogoImageId=function(y){var W,V,w;return(y=(W=this.computeCustomLogo(y,this.isDarkTheme))==null?void 0:(V=W.thumbnails)==null?void 0:(w=V[0])==null?void 0:w.height)&&y%31===0?"custom-logo-with-padding":"custom-logo"};
GU.prototype.openPopupHandler_=GU.prototype.openPopupHandler_;GU.prototype.dataChanged_=GU.prototype.dataChanged_;_.J([_.m(_.ph.YtRendererstamperBehavior),_.R("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.J([_.q(),_.R("design:type",Boolean)],GU.prototype,"isDarkTheme",void 0);
_.J([_.q({computed:"computeCustomLogo(data, isDarkTheme)"}),_.R("design:type",Object)],GU.prototype,"customLogo",void 0);_.J([_.q({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.R("design:type",Object)],GU.prototype,"headerBackgroundImage",void 0);_.J([_.q(),_.R("design:type",Object)],GU.prototype,"data",void 0);_.J([_.q({computed:"computeHasHeader_(data)"}),_.R("design:type",Boolean)],GU.prototype,"hasHeader",void 0);
_.J([_.q({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.R("design:type",Object)],GU.prototype,"layoutStyle",void 0);_.J([_.q({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.R("design:type",Object)],GU.prototype,"popupSize",void 0);_.J([_.q({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],GU.prototype,"hasLogo",void 0);
_.J([_.q({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],GU.prototype,"hasCustomLogo",void 0);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GU.prototype,"dataChanged_",null);_.J([_.l6("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],GU.prototype,"openPopupHandler_",null);
_.J([_.Zp({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],GU);
_.Y(GU,"yt-upsell-dialog-renderer",function(){if(jNu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;Rej===void 0&&(Rej=document.createElement("template"));var w=Rej;V.call(W,w.content.cloneNode(!0),y.content.firstChild);jNu=y}y=jNu;return y},{mode:2});var $PW=_.eY(function(y){return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.O(_.v,{cond:y.title,then:function(W){return _.O("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},W)}}))},"Jg"),n4e=_.eY(function(y){return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.O(_.Q7,{data:y.closeButton},{buttonViewModel:function(W){return _.O("div",null,_.O(_.lk,{data:W.data}))}}))},"Kg"),HUm=_.eY(function(y){var W=
y.data;
return _.O(_.o8,null,_.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.O(_.v,{cond:function(){return!!W().image&&!!W().title},
then:function(){return _.O(_.ca,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.O(_.v,{cond:function(){return W().title},
then:function(V){return _.O("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},V)}}),_.O(_.v,{cond:function(){return W().primaryGenre},
then:function(V){return _.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},V)}}))),_.O(_.v,{cond:function(){var V=W().description;
return V&&V.length<=150},
then:function(){return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return W().description}))}}))},"Lg"),XOj=_.eY(function(y){y=y.infoRows;
var W=_.hs().resolve(_.FP),V=_.e("enable_displaying_ppn");return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.O(_.YV,{each:y},function(w){return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.O(_.v,{cond:function(){return w.label},
then:function(t){return _.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},t)}}),_.O(_.v,{cond:function(){return w.attributedLabel},
then:function(t){return _.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.O(_.Lv,{text:t,noPreWrap:!0}))}}),_.O(_.v,{cond:function(){return w.value},
then:function(t){return _.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},t)}}),_.O(_.v,{cond:function(){return w.attributedValue},
then:function(t){return _.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.O(_.Lv,{text:t,noPreWrap:!0}))}}))}),_.O(_.v,{cond:function(){return V&&W.clientData.has("post_play_nonce")},
then:function(){return _.O("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.O("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},W.getData("post_play_nonce")))}}))},"Mg"),aXv=_.eY(function(y){var W=y.data;
return _.O("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.O($PW,{title:function(){return W().dialogTitle}}),_.O(HUm,{data:W}),_.O(_.v,{cond:function(){return W().infoRow},
then:function(V){return _.O(XOj,{infoRows:V})}}),_.O(n4e,{closeButton:function(){return W().closeButton}}))},"Ng");
aXv.idomCompat=!0;_.iF(aXv,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;return _.O("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.O(_.ca,{data:function(){return W().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.O("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.O("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.O(_.v,{cond:function(){var V=W().ytLogo;return V?V.iconType:null},
then:function(V){return _.O(_.jl,{icon:V,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.O("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.O("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.O(_.Lv,{text:function(){return W().body}})),_.O("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.O(_.Lv,{text:function(){return W().verifyStateText}}))),
_.O("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.O("div",null,_.O(_.Q7,{data:function(){return W().dismissButton}},{buttonViewModel:_.lk})),_.O("div",null,_.O(_.Q7,{data:function(){return W().linkParentButton}},{buttonViewModel:_.lk})))))},"Og"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.vB}});var GeE=_.eY(function(y){var W=y.data;y=_.LD(function(){return W().agreements},[]);
return _.O("installment-agreements-view-model",{class:_.kS("ytInstallmentAgreementsViewModelHost")},_.O(_.YV,{each:y},function(V){return _.O("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.O("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.O(_.Lv,{text:V.label})),_.O("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.O(_.Q7,{data:function(){return V.openButton}},{buttonViewModel:_.lk})))}))},"Pg");
GeE.idomCompat=!0;var rV3=_.eY(function(y){return _.O("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.O(_.Lv,{text:function(){return y.data().inviteMessage}})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.O(_.Lv,{text:function(){return y.data().attributedAccountSectionHeaderText}})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.O(_.Q7,{data:function(){return y.data().accountAvatar}},{avatarViewModel:_.ra}),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.O(_.Lv,{text:function(){return y.data().accountName}}),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.O(_.Lv,{text:function(){return y.data().handle}}))),_.O(_.Q7,{data:function(){return y.data().trailingButton}},{buttonViewModel:_.lk})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.O(_.Lv,{text:function(){return y.data().termsOfService}})))},"Qg");var bUP=_.eY(function(y){var W=_.N(_.Jl(function(){var b,Fv;return((b=y.data().createPlaylistDialogFormSchema)==null?0:(Fv=b.initialValues)==null?0:Fv.title)?y.data().createPlaylistDialogFormSchema.initialValues.title:""})),V=W.next().value,w=W.next().value;
W=_.N(_.Jl(function(){y.data();return!1}));
var t=W.next().value,F=W.next().value;W=_.N(_.Jl(function(){y.data();return!1}));
var I=W.next().value,P=W.next().value;W=_.N(_.Jl(function(){var b,Fv;return(b=y.data().createPlaylistDialogFormSchema)==null?void 0:(Fv=b.initialValues)==null?void 0:Fv.visibility}));
var C=W.next().value,d=W.next().value;W=_.N(_.Jl(function(){y.data();return!1}));
var L=W.next().value,z=W.next().value;W=_.N(_.Jl(function(){var b,Fv;return(b=y.data().createPlaylistDialogFormSchema)==null?void 0:(Fv=b.initialValues)==null?void 0:Fv.isCollaborative}));
var c=W.next().value,K=W.next().value,f=_.I0("div");_.H1(function(){var b=f.value.querySelector("textarea");b&&(b.value=V())},"OCauEe");
_.a8(function(){var b;_.EVj((b=y.data().createPlaylistDialogFormSchema)==null?void 0:b.id,{onSubmit:function(){var Fv=V();var Py=C(),du=c(),mL=y.data();Fv={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Fv,privacyStatus:Py,videoIds:mL.videoIds,sourcePlaylistId:mL.sourcePlaylistId,params:du?mL.createPlaylistParamsCollaborationEnabled:mL.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.hs().resolve(_.oA).resolveCommand(Fv)},
isValid:function(){return t()&&!I()&&!L()}})});
var U=function(b){if(b!==void 0&&(w(b),!t()&&b.length>0&&F(!0),t())){var Fv=PEe(y.data());if(Fv){var Py=Fv.minLength;Fv=Fv.maxLength;Py&&b.length<Py?P(!0):Fv&&b.length>Fv?P(!0):P(!1)}}},l=function(){var b=!(!c()||C()!=="PRIVATE");
z(b)},x=function(b){b!==void 0&&(d(b),l())},B=function(){if(L())return ODt(y.data())},r=function(){K(!c());
l()},H=function(){return{validate:function(b){if(t()){var Fv=PEe(y.data());
if(Fv){var Py=Fv.minLength;Fv=Fv.translations;if(Py&&b.length<Py)return Fv==null?void 0:Fv.minLengthErrorMessage}}}}},a=function(){var b=PEe(y.data()),Fv=b==null?void 0:b.maxLength,Py;
b=b==null?void 0:(Py=b.translations)==null?void 0:Py.maxLengthErrorMessage;if(Fv&&b)return{maxChars:Fv,errorMessage:b}};
return _.O("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.O("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:f},_.O(_.Q7,{data:function(){return y.data().playlistTitle}},{textFormFieldViewModel:function(b){return _.O(_.Gpj,{data:b.data,
text:V,onInput:U,validation:H,characterLimit:a})},
textFieldViewModel:function(b){return _.O(_.abC,{data:b.data,text:V,onInput:U,validation:H,characterLimit:a})}})),_.O("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.O(_.Q7,{data:function(){return y.data().playlistVisibility}},{dropdownViewModel:function(b){return _.O(_.NQm,{data:b.data,
onSelected:x,error:B})}})),_.O(_.v,{cond:function(){return!!y.data().playlistCollaborate},
then:function(){return _.O("div",null,_.O(_.Q7,{data:function(){return y.data().playlistCollaborate}},{switchListItemViewModel:function(b){return _.O(_.xmJ,{data:b.data,
onTap:r})}}))}}))},"Rg");var QNv=_.eY(function(y){var W=y.data;return _.O("upsell-offer-table-cell-content-view-model",null,_.O("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.O(_.$V,null,_.O(_.BV,{when:function(){return W().iconType}},function(){return _.O("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.O(_.jl,{icon:function(){return W().iconType.toString()}}))}),_.O(_.BV,{when:function(){return W().title}},function(){return _.O(_.Lv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return W().title}})}),_.O(_.BV,{when:function(){return W().subtitle}},function(){return _.O(_.Lv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return W().subtitle}})}),_.O(_.BV,{when:function(){return W().infoText}},function(){return _.O(_.Lv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return W().infoText}})}),_.O(_.BV,{when:function(){return W().featureDescription}},function(){return _.O(_.Lv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return W().featureDescription}})}),_.O(_.BV,{when:function(){return W().note}},function(){return _.O(_.Lv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return W().note}})}))))},"Sg");
QNv.idomCompat=!0;var ZUW=_.eY(function(y){var W=y.data;return _.O("upsell-offer-table-cell-view-model",null,_.O("div",{class:_.kS("ytUpsellOfferTableCellViewModelCellWrapper",function(){return W().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.O(_.Q7,{data:function(){return W().contents}},{upsellOfferTableCellContentViewModel:QNv})))},"Tg");
ZUW.idomCompat=!0;var yyt=_.eY(function(y){var W=y.data;var V=y.upsellTableIsFirstRow;var w=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},t=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.O("ytm-upsell-offer-table-row-view-model",null,_.O("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.O(_.Q7,{data:function(){return W().rowHeaderCell}},{upsellOfferTableCellViewModel:function(F){return _.O("div",{class:w},_.O(ZUW,{data:F.data}))}}),_.O(_.Q7,{data:function(){return W().contentCells}},{upsellOfferTableCellViewModel:function(F){return _.O("div",{class:t},_.O(ZUW,{data:F.data}))}})))},"Ug");
yyt.idomCompat=!0;var W4P=_.eY(function(y){var W=y.data;return _.O("ytm-upsell-offer-table-view-model",null,_.O("div",{class:"ytUpsellOfferTableViewModelHost"},_.O("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.O(_.Q7,{data:function(){return W().rows}},{upsellOfferTableRowViewModel:function(V,w){return _.O(yyt,{data:V.data,
upsellTableIsFirstRow:function(){return w()===0}})}}))))},"Vg");
W4P.idomCompat=!0;var VGj=_.eY(function(y){var W=_.LD(y.noPadding,!1),V=function(){var F,I;return(I=(F=y.data().logo.accessibilityData)==null?void 0:F.label)!=null?I:""},w=function(){return y.data().offerTable},t={};
return _.O("upsell-view-model",{class:_.kS("ytUpsellViewModelHost",(t.ytUpsellViewModelHostNoPadding=function(){return W()},t.ytUpsellViewModelHostWide=function(){return w()!==void 0},t))},_.O("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.O(_.v,{cond:function(){return _.OZ(y.data().logo)},
then:function(F){return _.O(_.ca,{data:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:V})}})),_.O("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.O(_.Lv,{text:function(){return y.data().title}})),_.O("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.O(_.YV,{each:function(){var F;
return(F=y.data().subtitles)!=null?F:[]},
keyBy:"INDEX"},function(F){var I={};return _.O("div",{class:_.kS("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(I.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return w()!==void 0},I))},_.O(_.Lv,{text:F}))})),_.O("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.O(_.YV,{each:function(){var F;
return(F=y.data().benefitInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){return _.O(_.v,{cond:function(){return F().info},
then:function(I){return _.O("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.O(_.jl,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.O(_.Lv,{text:I}))}})})),_.O(_.v,{cond:function(){return w()!==void 0},
then:function(){return _.O("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.O(W4P,{data:w}))}}),_.O("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.O(_.YV,{each:function(){var F;
return(F=y.data().legalInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){var I={};return _.O("div",{class:_.kS("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(I.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return w()!==void 0},I))},_.O(_.Lv,{text:F}))})))},"Wg");var wR4=_.eY(function(y){var W=y.data;y={};y=(y.ytMiniAppScoreChallengeViewModelScoreRadial=!0,y.ytMiniAppScoreChallengeViewModelDarkScoreRadial=vcC(),y);return _.O("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.O("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return W().title}),_.O("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return W().subtitle}),_.O("div",{class:_.sU(y)},_.O("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return W().score})),_.O("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return W().prompt}))},"Xg");var tGe=function(){this.store=_.vC();this.formId=""};
tGe.prototype.onInit=function(y){y.formId&&(this.formId=y.formId,this.store.dispatch(_.ig({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var F4j=_.eY(function(y){function W(P){if(P&&(P=_.h(P,_.RJ)))return Object.assign({},P,{isSelected:F()})}
var V=_.N(_.Jl(function(){var P,C;return(C=(P=_.h(y.data().option,_.RJ))==null?void 0:P.isSelected)!=null?C:!1})),w=V.next().value,t=V.next().value,F=w;
_.a8(function(){var P;_.EVj((P=y.data().formSchema)==null?void 0:P.id,{onSubmit:function(){var C=_.hs().resolve(_.oA),d=!!y.data().selectedCommand,L=!!y.data().unselectedCommand;if(F()){if(d)var z=y.data().selectedCommand}else L&&(z=y.data().unselectedCommand);z=_.tl(z);W(y.data().option)&&!z?(C="",!d&&L?C="selected ":d&&!L&&(C="unselected "),d=new _.Js("No "+C+"command found for SelectionListItemFormViewModel"),_.ap(d)):z&&C.resolveCommand(z)},
isValid:function(){return!0}})});
var I=function(){t(!F())};
_.XT(function(){var P,C,d=(P=y.data())==null?void 0:(C=P.formSchema)==null?void 0:C.id;d&&_.t0C()().delete(d)});
return _.O("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.O("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.O(_.Lv,{text:function(){return y.data().paragraph}})),_.O(_.v,{cond:function(){return W(y.data().option)},
then:function(P){return _.O(_.Zo,{data:P,isCompact:!0,hideSelectionTextChevron:!0,onTap:I,disableHorizontalPadding:!0})}}))},"Yg");var Eae=_.eY(function(y){var W=y.data;var V=y.disablePadding;var w=y.className;var t=_.I0("yt-dialog-header-view-model"),F=function(){var P=W().imageBanner;a:switch(W().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var C="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:C="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:P,style:C,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},I=function(){return W().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.a8(function(){var P=function(){_.ow(t.value,"yt-refit-popups-action")},C;
(C=t.value)==null||C.addEventListener("image-loaded",P);_.XT(function(){var d;(d=t.value)==null||d.removeEventListener("image-loaded",P)})});
y={};return _.O("yt-dialog-header-view-model",{el:t,class:_.kS(w,(y.ytDialogHeaderViewModelHost=!0,y.ytDialogHeaderViewModelHostDisablePadding=V,y))},_.O(_.v,{cond:function(){return W().imageBanner},
then:function(){var P={};return _.O("div",{class:_.kS(w,(P.ytDialogHeaderViewModelBanner=!0,P.ytDialogHeaderViewModelBannerFullBleed=I,P)),style:_.Rd({"max-height":function(){return W().assetContainerMaxHeight!==void 0?W().assetContainerMaxHeight+"px":void 0}})},_.O(_.f9,{data:F,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.O(_.v,{cond:function(){return W().headerBlock},
then:function(){return _.O("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.O(_.Q7,{data:function(){return W().headerBlock}},{contentPreviewImageViewModel:function(P){return _.O(_.f9,{data:P.data,
notifyOnLoaded:!0})}}))}}),_.O(_.v,{cond:function(){return W().customBanner},
then:function(P){return _.O("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.O(_.Q7,{data:P},{avatarStackViewModel:_.QF}))}}),_.O(_.v,{cond:function(){return W().headline},
then:function(P){return _.O("h2",null,_.O(_.Lv,{text:P,className:"ytDialogHeaderViewModelText"}))}}))},"Zg");
Eae.idomCompat=!0;var Nt4=_.eY(function(y){var W=_.NVq(function(){return y.data().formId}),V=W.onSubmit,w=W.isValid;
return _.O("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.O(_.Q7,{data:function(){return y.data().panelFooter}},{panelFooterViewModel:function(t){return _.O(_.O7,{data:t.data,
disablePadding:!0,disablePrimaryButton:function(){return!w()},
onClickPrimaryButton:function(){V()}})}}))},"$g");var Iwt=_.eY(function(y){var W=function(){var V,w;return(w=(V=_.h(y.data().rendererContext,_.Bq))==null?void 0:V.label)!=null?w:""};
return _.O("yt-dialog-image-content-view-model",{class:_.kS("ytDialogImageContentViewModelHost",y.className)},_.O(_.v,{cond:function(){return _.OZ(y.data().image)},
then:function(V){return _.O(_.ca,{data:V,alt:W,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.O(_.Lv,{text:function(){return y.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ah");var CYm=_.eY(function(y){var W=_.zb(y,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),V=W.elRefCallback;y=W.iconWiz;var w=W.assetWiz,t=W.assetType,F=W.titleWiz,I=W.leadingActionHeaderWiz,P=W.trailingActionHeaderWiz,C=W.headerPosition,d=W.contentWiz,L=W.buttonLayout,z=W.buttonStyle,c=W.primaryButtonWiz,K=W.secondaryButtonWiz,f=W.contentAlignment,U=W.isFullscreen,l=W.width,x=W.maxHeight,B=W.isHeaderWizDefined,
r=W.headerWiz,H=W.isFooterWizDefined,a=W.footerWiz;W=_.I0("dialog-layout",function(sz){V==null||V(sz)});
var b=w?function(){return w({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Fv=c?function(){var sz={};
return c({buttonOverrides:function(){return{style:(z==null?void 0:z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.kS((sz["yt-spec-dialog-layout__dialog-layout-button"]=!0,sz["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},sz))})}:void 0,Py=K?function(){var sz={};
return K({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.kS((sz["yt-spec-dialog-layout__dialog-layout-button"]=!0,sz["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},sz))})}:void 0,du=function(){return(!!F||!!I||!!P)&&C()===0},mL={},un={},hv={},$P={};
return _.O("dialog-layout",{el:W,class:_.kS((mL["yt-spec-dialog-layout"]=!0,mL["yt-spec-dialog-layout--dialog-layout-fullscreen"]=U,mL["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!U()},mL["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return x()===1},mL["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(t==null?void 0:t())===1},mL)),
style:function(){return(l==null?void 0:l())!==void 0?"width: "+l+"px;":""}},y?_.O("div",{class:_.kS((un["yt-spec-dialog-layout__dialog-layout-icon"]=!0,un["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!w&&C()===1},un["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return f()===1},un))},_.O(y,null)):null,_.O(_.v,{cond:B,
then:function(){return r?_.O("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.O(r,null)):null},
else:function(){return _.O(_.o8,null,_.O(_.v,{cond:du,then:function(){return _.O(gaE,{contentAlignment:f,LeadingActionHeader:I,TrailingActionHeader:P,Title:F,isAboveAsset:!!b})}}),b?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.O(b,null)):null)}}),_.O("div",{class:_.kS((hv["yt-spec-dialog-layout__dialog-layout-container"]=!0,hv["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(f==null?void 0:f())===1},hv["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!F&&!r||!!b&&(C==null?void 0:C())===0},hv))},_.O(_.v,{cond:function(){return F&&!r&&(C==null?void 0:C())===1},
then:function(){return _.O(gaE,{contentAlignment:f,LeadingActionHeader:I,TrailingActionHeader:P,Title:F,isAboveAsset:!1})}}),d?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.O(d,null))):null,_.O(_.v,{cond:H,
then:function(){return a?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.O(a,null)):null}}),Fv||Py?_.O(PYP,{footerClasses:_.kS(($P["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,$P["yt-spec-dialog-layout__dialog-layout-footer"]=!0,$P["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(L==null?void 0:L())===2},$P["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(L==null?void 0:L())===1},$P)),
PrimaryButton:Fv,SecondaryButton:Py}):null))},"bh"),gaE=_.eY(function(y){var W=_.zb(y,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),V=W.contentAlignment,w=W.LeadingActionHeader;y=W.Title;var t=W.TrailingActionHeader,F=W.isAboveAsset,I=W.enableLeadingActionHeader;W={};return _.O("div",{class:_.kS((W["yt-spec-dialog-layout__dialog-header-container"]=!0,W["yt-spec-dialog-layout__dialog-header"]=!0,W["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=F,W["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(V==null?void 0:V())===1&&I()},W))},_.O(_.v,{cond:function(){return I()},
then:function(){return w?_.O("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.O(w,null)):null}}),y?_.O("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.O(y,null)):null,t?_.O("div",null,_.O(t,null)):null)},"ch"),PYP=_.eY(function(y){var W=y.footerClasses;
var V=y.PrimaryButton;y=y.SecondaryButton;return _.O("div",{class:W},y?_.O(y,null):null,V?_.O(V,null):null)},"dh");var Opu=_.eY(function(y){var W=y.data;return _.O("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.O("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.O(_.Q7,{data:function(){return W().avatar}},{avatarViewModel:_.ra})),_.O("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.Lv,{text:function(){return W().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"eh");var vaE=_.eY(function(y){var W=y.data;return _.O("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.O("div",{class:"ytAccessConfirmationViewModelContent"},_.O(_.Q7,{data:function(){var V;return(V=W().avatar)!=null?V:W().dualAvatar}},{dualAvatarViewModel:function(V){return _.O(_.zHA,{data:V.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(V){return _.O(_.bV,{data:V.data})}}),_.O("h2",{class:"ytAccessConfirmationViewModelTitle"},_.O(_.Lv,{text:function(){return W().title}})),_.O(_.Lv,{text:function(){return W().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fh");var dzm=_.eY(function(y){var W=y.data;var V=void 0;y=_.N(_.Jl(function(){var d;return((d=_.h(W().content,_.p4m))==null?void 0:d.defaultSelectedKey)||""}));
var w=y.next().value,t=y.next().value,F,I=function(){t("");var d;(d=V)!=null&&d.store.dispatch(_.ig({type:"RESET_COMMAND_MAP"}))};
_.a8(function(){V=new tGe;window.addEventListener("yt-popup-closed",I)});
_.H1(function(){if(V&&F!==W().formId&&(V.onInit(W()),(F=W().formId)&&w())){var d=V,L={key:w()};L.command&&d.store.dispatch(Nxt(F,L.command))}},"k6b6Qe");
_.XT(function(){window.removeEventListener("yt-popup-closed",I)});
var P=function(d,L,z){L.key&&z&&L.key!==w()&&(t(L.key),V&&L.command&&V.store.dispatch(Nxt(z,L.command)))},C=function(){if(_.h(W().content,_.p4m))return!(w==null?0:w())};
return _.O("yt-dialog-view-model",{class:_.kS("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.O(CYm,{headerWiz:function(){return _.O("span",{skip:!0},_.O(_.Q7,{data:function(){return W().header}},{dialogHeaderViewModel:function(d){return _.O(Eae,{data:d.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!W().header},
contentWiz:function(){return _.O("span",{skip:!0},_.O(_.Q7,{data:function(){return W().customContent?W().customContent:W().content}},{basicContentViewModel:_.Iqu,
createPlaylistDialogFormViewModel:bUP,collaborativePlaylistInviteMessageViewModel:rV3,miniAppScoreChallengeViewModel:wR4,radioButtonGroupViewModel:function(d){var L=d.data;return _.O(_.ts4,{data:L,selectedKey:w,onSelected:P,groupName:function(){return L().formId}})},
selectionListItemFormViewModel:F4j,upsellViewModel:function(d){return _.O(VGj,{data:d.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Opu,installmentAgreementsViewModel:GeE,accessConfirmationViewModel:vaE,listViewModel:function(d){return _.O(_.jC6,{data:d.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Iwt}))},
footerWiz:function(){return _.O("span",{skip:!0},_.O(_.Q7,{data:function(){return W().footer}},{panelFooterViewModel:function(d){return _.O(_.O7,{data:d.data,
disablePadding:!0,disablePrimaryButton:C})},
formPanelFooterViewModel:Nt4,formFooterViewModel:function(d){return _.O(_.n23,{data:d.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!W().footer}}))},"gh");
dzm.idomCompat=!0;_.iF(dzm,"yt-dialog-view-model",{props:{data:_.vB},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var L4d=_.eY(function(y){var W=y.data;y={};return _.O("yt-panel-header-view-model",{class:_.kS("yt-panel-header-view-model-wiz",(y["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!W().shouldHideDivider},y["yt-panel-header-view-model-wiz--compact"]=function(){return!!W().subtitle},y))},_.O("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.O(_.v,{cond:function(){return W().title},
then:function(V){return _.O(_.Lv,{text:V,className:"yt-panel-header-view-model-wiz__title"})}}),_.O(_.v,{cond:function(){return W().subtitle},
then:function(V){return _.O(_.Lv,{text:V,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.O("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.O(_.Q7,{data:function(){return W().trailingButtons}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"hh");
L4d.idomCompat=!0;var zfm=_.eY(function(y){var W=_.YS(function(F){var I;if((I=y.skipContentClick)==null?0:I.call(y))return!1;y.onContentWrapperClick(F);return!0}),V,w,t;
return _.O("div",{class:_.kS("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return y.isAnimating()?"transform: translateY("+y.currentY()+"px);transition: 0.2s":""}},(V=y.header)==null?void 0:V.call(y),_.O("div",{id:y.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Rd({"max-height":(0,_.bH)(y.maxHeightForContentWrapper)}),"on:scroll":cYu(y.onScroll),"on:touchmove":cYu(function(F){return void F.stopPropagation()})},_.O("div",{el:{onRender:y.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":W},(w=y.body)==null?void 0:w.call(y))),(t=y.footer)==null?void 0:t.call(y))},"ih");
zfm.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var cyd=_.eY(function(y){var W=_.LD(y.leadingLabel),V=_.LD(y.trailingLabel),w=_.LD(y.footerButtonType),t=function(){return W()||V()||y.hasPrimaryButton()||y.hasSecondaryButton()},F={},I=_.kS("yt-spec-bottom-sheet-layout__primary-button",(F["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return w()===0&&y.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return w()===1&&y.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return w()===2&&y.hasPrimaryButton()},F["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return w()===3&&y.hasPrimaryButton()},F));
F={};var P=_.kS("yt-spec-bottom-sheet-layout__secondary-button",(F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return w()===1&&y.hasSecondaryButton()},F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return w()===2&&y.hasSecondaryButton()},F["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return w()===3&&y.hasPrimaryButton()},F));
return _.O(_.v,{cond:y.hasFooterOverride,then:function(){var C;return _.O(_.o8,null,(C=y.footerOverride)==null?void 0:C.call(y))},
else:function(){return _.O(_.v,{cond:t,then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.O(_.v,{cond:function(){return W()||V()},
then:function(){var C={};return _.O("div",{class:_.kS("yt-spec-bottom-sheet-layout__footer-label-wrapper",(C["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!y.hasPrimaryButton()},C))},_.O(_.v,{cond:W,
then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},W)}}),_.O(_.v,{cond:V,
then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},V)}}))}}),_.O(_.v,{cond:function(){return y.hasPrimaryButton()||y.hasSecondaryButton()},
then:function(){var C={};return _.O("div",{class:_.kS("yt-spec-bottom-sheet-layout__footer-button-wrapper",(C["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.RQQ,C))},_.O(_.v,{cond:function(){return y.hasSecondaryButton()&&w()!==0},
then:function(){var d;return _.O("div",{class:P},(d=y.secondaryButton)==null?void 0:d.call(y))}}),_.O(_.v,{cond:y.hasPrimaryButton,
then:function(){var d;return _.O("div",{class:I},(d=y.primaryButton)==null?void 0:d.call(y))}}))}}))}})}})},"jh");
cyd.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var efm=_.eY(function(y){var W=_.LD(y.title),V=_.LD(y.subtitle);return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:y.headerId,"on:touchstart":_.YS(function(w){var t;(t=y.touchstart)==null||t.call(y,w);return!1}),
"on:touchmove":_.YS(function(w){var t;(t=y.touchmove)==null||t.call(y,w);return!1}),
"on:touchend":_.YS(function(w){var t;(t=y.touchend)==null||t.call(y,w);return!1})},_.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.O(_.v,{cond:y.hasHeaderOverride,
then:function(){var w;return _.O(_.o8,null,(w=y.headerOverride)==null?void 0:w.call(y))},
else:function(){var w={};return _.O("div",{class:_.kS((w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=W,w))},_.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.O(_.v,{cond:W,then:function(){return _.O(_.o8,null,_.O("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},W),_.O(_.v,{cond:V,then:function(){return _.O("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
V)}}))}})),_.O(_.v,{cond:function(){return W()&&y.hasActionHeader()},
then:function(){var t;return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(t=y.actionHeader)==null?void 0:t.call(y))}}))}}))},"kh");
efm.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.eY(function(y){function W(b){if(!x&&typeof MutationObserver!=="undefined"){var Fv={childList:!0};"MutationObserver"in window&&(x=new MutationObserver(V.bind(void 0,b)),x.observe(b,Fv))}}
function V(b){typeof x!=="undefined"&&(B["content-wrapper"]===void 0&&(B["content-wrapper"]=b.children[0].clientHeight),K(B["content-wrapper"]),c()>f()||U(c()))}
function w(){z(window.innerHeight);c()>f()||U(c());r.isFullScreen[0]()&&c()>f()?H().dispatch("Snap To Full Screen",{maxHeight:l()}):H().dispatch("Snap To Neutral Position",{maxHeight:f()})}
function t(b){document.body.style.overscrollBehavior="none";b.preventDefault();H().dispatch("Touch Start",{event:b})}
function F(b){b.preventDefault();H().dispatch("Touch Move",{event:b,contentScrollable:c()>f(),fullContentWrapperHeight:l(),contentWrapperHeight:f(),contentHeightMap:B,contentWrapperId:"content-wrapper",header:h6t(y),footer:h6t(y)})}
function I(){document.body.style.overscrollBehavior="";r.isFullScreen[0]()?r.currentY[0]()>=60?H().dispatch("Snap To Neutral Position",{maxHeight:f()}):H().dispatch("Snap To Full Screen",{maxHeight:l()}):r.currentY[0]()>=60?P():r.currentY[0]()<=-60&&c()>f()?H().dispatch("Snap To Full Screen",{maxHeight:l()}):H().dispatch("Snap To Neutral Position",{maxHeight:f()})}
function P(){H().dispatch("Close Sheet",{clientHeight:L(),maxHeight:0});setTimeout(function(){e6u()},250)}
var C=_.N(_.M1(window.innerHeight,void 0,"NWeFS")),d=C.next().value;C=C.next().value;var L=d,z=C;C=_.N(_.M1(0,void 0,"oxfm4"));d=C.next().value;C=C.next().value;var c=d,K=C;C=_.N(_.Jl(function(){var b=h6t(y);return.6*L()-dMe(b)-LM3(b)}));
d=C.next().value;C=C.next().value;var f=d,U=C,l=function(){var b=h6t(y);return L()-dMe(b)-LM3(b)-24-24},x=null,B={},r={initialY:_.M1(0,void 0,"cYBE5c"),
currentY:_.M1(0,void 0,"RndqHc"),isAnimating:_.M1(!1,void 0,"vO9DVd"),isFullScreen:_.M1(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Jl(f)},H=function(){var b=null;return function(){if(!b){var Fv={initialY:r.initialY[0](),currentY:r.currentY[0](),isAnimating:r.isAnimating[0](),isFullScreen:r.isFullScreen[0](),maxHeightForContentWrapper:r.maxHeightForContentWrapper[0]()};b=z63(Fv)}return b}}();
_.a8(function(){window.addEventListener("resize",w);H().subscribe(function(b){r.initialY[1](b.initialY);r.currentY[1](b.currentY);r.isAnimating[1](b.isAnimating);r.isFullScreen[1](b.isFullScreen);r.maxHeightForContentWrapper[1](b.maxHeightForContentWrapper)})});
_.XT(function(){window.removeEventListener("resize",w);x&&(x.disconnect(),x=null)});
var a=_.kS({"bottom-sheet-content-without-icon":function(){var b;return!((b=y.shouldShowIcons)==null?0:b.call(y))}});
return _.O("bottom-sheet-layout",null,_.O(zfm,{contentWrapperId:"content-wrapper",isAnimating:function(){return r.isAnimating[0]()},
currentY:function(){return r.currentY[0]()},
maxHeightForContentWrapper:function(){return r.maxHeightForContentWrapper[0]()},
shouldShowIcons:y.shouldShowIcons,skipContentClick:y.skipContentClick,onScroll:function(){var b=document.getElementById("header-wrapper"),Fv=document.getElementById("content-wrapper");if(b&&Fv){var Py={};Py=(Py["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Py["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Py);b.className=Fv.scrollTop>1?_.sU(Py):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:e6u,contentWrapperEl:function(b){W(b);requestAnimationFrame(function(){V(b)})},
header:function(){return _.O(efm,{touchstart:t,touchmove:F,touchend:I,title:y.headerTitle,subtitle:y.headerSubtitle,headerId:"header-wrapper",headerOverride:y.headerFn,hasHeaderOverride:y.hasHeaderFn,actionHeader:y.headerActionHeader,hasActionHeader:y.hasHeaderActionHeader})},
footer:function(){return _.O(cyd,{footerButtonType:y.footerButtonType,leadingLabel:y.footerLeadingLabel,trailingLabel:y.footerTrailingLabel,primaryButton:y.footerPrimaryButton,hasPrimaryButton:y.hasFooterPrimaryButton,secondaryButton:y.footerSecondaryButton,hasSecondaryButton:y.hasFooterSecondaryButton,footerOverride:y.footerFn,hasFooterOverride:y.hasFooterFn})},
body:function(){return _.O(_.v,{cond:y.hasContentFn,then:function(){var b;return _.O("div",{class:a},(b=y.contentFn)==null?void 0:b.call(y))}})}}))},"lh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var hfv=_.eY(function(y){var W=_.hs().resolve(_.nr);return _.O("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.YS(function(){return void W.closeSheet()})},_.O(_.v,{cond:function(){return!!y.header},
then:function(){return _.O("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},y.header())}}),_.O(_.v,{cond:function(){return!!y.content},
then:function(){return _.O("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},y.content())}}),_.O(_.v,{cond:function(){return!!y.footer},
then:function(){return _.O("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},y.footer())}}))},"mh");
hfv.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var oae=_.eY(function(y){y=y.data;var W=_.I0("yt-sheet-view-model",function(w){if(_.e("web_focus_first_element_sheet")||!_.e("sheet_focus_first_killswitch"))return w.addEventListener("focus",function(){C5W(w)}),function(){w.removeEventListener("focus",function(){C5W(w)})}}),V={};
return _.O("yt-sheet-view-model",{"on:mousedown":_.YS(function(w){_.e("sheet_focus_first_killswitch")||w.currentTarget!==w.target&&w.preventDefault()}),
"on:focus":_.YS(function(){_.e("sheet_focus_first_killswitch")||C5W(W.value)}),
class:_.kS("yt-sheet-view-model-wiz",(V["yt-sheet-view-model-wiz--contextual"]=!0,V["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.e("web_disable_backdrop_filter"),V)),el:W,tabindex:-1},_.O(_.v,{cond:y,then:function(w){return _.O(hfv,{header:function(){return _.O(_.Q7,{data:function(){return w().header}},{panelHeaderViewModel:L4d})},
content:function(){return _.O(_.Q7,{data:function(){return w().content}},{listViewModel:function(t){return _.O(_.jC6,{data:t.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:VGj,miniAppScoreChallengeViewModel:wR4})},
footer:function(){return _.O(_.Q7,{data:function(){return w().footer}},{panelFooterViewModel:_.O7})}})}}))},"nh");
oae.idomCompat=!0;_.iF(oae,"yt-sheet-view-model",{props:{data:_.vB}});var pRe=_.eY(function(y){var W=function(){var V;return(V=y.data().enableDebuggingFeatures)!=null?V:!1};
return _.O("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.O(_.YV,{each:function(){var V;return(V=y.data().stickers)!=null?V:[]}},function(V){return _.O(K4m,{data:function(){return V},
debugMode:W})}))},"oh"),K4m=_.eY(function(y){var W=_.zb(y,{debugMode:!1}).debugMode,V=_.LD(function(){var C;
return(C=y.data().region)==null?void 0:C.w},0),w=_.LD(function(){var C;
return(C=y.data().region)==null?void 0:C.h},0),t=_.LD(function(){var C;
return(C=y.data().region)==null?void 0:C.x},0),F=_.LD(function(){var C;
return(C=y.data().region)==null?void 0:C.y},0),I=_.YS(function(){var C=y.data().onTap;
C&&_.Id(C)}),P={};
return _.O("div",{class:_.kS("ytStoriesStickerLayerViewModelSticker",(P.ytStoriesStickerLayerViewModelDebugMode=W,P)),style:_.Rd({width:function(){return 100*V()+"%"},
height:function(){return 100*w()+"%"},
left:function(){return 100*t()+"%"},
top:function(){return 100*F()+"%"},
"flex-direction":function(){return ocP(y.data().flexDirection)},
"justify-content":function(){return KM3(y.data().justifyContent)},
"align-items":function(){return pCj(y.data().alignItems)}}),
"on:click":I},_.O(_.Q7,{data:function(){return y.data().button||y.data().toggleButton}},{buttonViewModel:function(C){return _.O(_.lk,{data:C.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(C){return _.O(_.XV,{data:C.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ph");var fwu=_.eY(function(y){var W=function(){return y.data()},V={},w=_.LD(function(){return W().backgroundColor},0),t=_.LD(function(){return W().actionButtons},[]),F=_.LD(function(){return W().stickerLayer},{}),I=function(){var C,d;
return{animationRef:V,animationConfig:{autoplay:!1,loop:!1,path:(d=(C=W().foregroundAnimation)==null?void 0:C.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){y.navigateToNextItemOnLottieComplete()}}}},P=function(){var C,d,L,z,c,K,f,U;
return{animationConfig:{autoplay:(K=(C=W().backgroundAnimation)==null?void 0:(d=C.settings)==null?void 0:d.autoplay)!=null?K:!1,loop:(f=(L=W().backgroundAnimation)==null?void 0:(z=L.settings)==null?void 0:z.loop)!=null?f:!1,path:(U=(c=W().backgroundAnimation)==null?void 0:c.url)!=null?U:"",name:"stories_item_background_animation"}}};
_.H1(function(){if(y.isVisible()){var C;(C=V.lottieEl)==null||C.play();y.animationRef()&&(y.animationRef().lottieEl=V.lottieEl)}else{var d;(d=V.lottieEl)==null||d.stop()}},"Cbnkwd");
return _.O("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Rd({"background-color":function(){return _.wg(w())+";"}})},_.O("div",{class:"ytStoriesItemViewModelAssetContent"},_.O(_.v,{cond:function(){return!!W().backgroundAnimation},
then:function(){return _.O(_.fh,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.O(_.v,{cond:function(){return!!W().backgroundImage},
then:function(){return _.O(_.ca,{data:function(){return W().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.O(_.v,{cond:function(){return!!W().foregroundAnimation},
then:function(){return _.O(_.fh,{data:I,animationName:function(){return I().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.O(_.v,{cond:function(){return!!W().foregroundImage},
then:function(){return _.O(_.ca,{data:function(){return W().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.O("div",{class:"ytStoriesItemViewModelTopShadow"}),_.O(_.Q7,{data:function(){return F()}},{storiesStickerLayerViewModel:pRe})),_.O("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Rd({"background-color":function(){return _.wg(w())}})},_.O("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.O(_.YV,{each:t},function(C){return _.O(ipW,{data:function(){return C},
pauseAutoNavigation:y.pauseAutoNavigation})}))))},"qh"),Ttm={style:"overlay",
type:"outline"},ipW=_.eY(function(y){var W={};return _.O("div",{class:_.kS("ytStoriesItemViewModelActionButton",(W.ytStoriesItemViewModelStretchedActionButton=function(){return y.data().size==="STORIES_BUTTON_SIZE_STRETCH"},W)),
"on:click":_.YS(y.pauseAutoNavigation)},_.O(_.Q7,{data:function(){return y.data().button}},{buttonViewModel:function(V){return _.O(_.lk,{data:V.data,
buttonOverrides:Ttm})}}))},"rh");_.iF(_.eY(function(y){var W=function(){var Fv;return(Fv=y.data().startIndex)!=null?Fv:0},V=_.N(_.Jl(W)),w=V.next().value,t=V.next().value;
V=_.N(_.M1(!1,void 0,"O8yPf"));var F=V.next().value,I=V.next().value,P=function(){var Fv;return(Fv=y.data().storyItems)!=null?Fv:[]},C={},d=function(){return y.data().dismissButton},L=function(){var Fv;
return _.h((Fv=_.h(d(),_.H5))==null?void 0:Fv.onTap,_.wL)},z=_.I0("div"),c,K,f=!1,U=function(){var Fv;
(Fv=c)==null||Fv.cancel();c=l(w()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});c.onfinish=function(){l(w()).style.width="100%";var Py=_.h(P()[w()],Tdu),du,mL;Py!=null&&Py.foregroundAnimation&&((Py==null?0:(du=Py.foregroundAnimation)==null?0:du.url)||(Py==null?0:(mL=Py.foregroundAnimation)==null?0:mL.payload))||(w()!==P().length-1?(t(w()+1),U()):L()&&_.F2(L()))}},l=function(Fv){return z.value.children[Fv].children[0]},x=function(){for(var Fv=0;Fv<w();Fv++)l(Fv).style.width=
"100%"};
V=_.YS(function(){f||(F()?I(!1):(w()===P().length-1&&L()&&_.F2(L()),l(w()).style.width="100%",w()!==P().length-1&&(t(w()+1),U())))});
var B=_.YS(function(){f||(F()?I(!1):(l(w()).style.width="0%",w()!==0?t(w()-1):t(w()),U()))}),r=function(){I(!0)},H=function(){l(w()).style.width="100%";
w()!==P().length-1?(t(w()+1),U()):L()&&_.F2(L())},a=_.YS(function(){f=!1;
K=setTimeout(function(){I(!0);f=!0},300)}),b=_.YS(function(){clearTimeout(K);
f&&F()&&I(!1)});
_.H1(function(){if(F()){var Fv;(Fv=c)==null||Fv.pause();var Py;(Py=C.lottieEl)==null||Py.pause()}else{var du;(du=c)==null||du.play();var mL;(mL=C.lottieEl)==null||mL.play()}},"DIHTEd");
_.H1(function(){x();w()===W()&&U()},"ze5F8b");
_.a8(function(){x();U()});
_.XT(function(){clearTimeout(K)});
return _.O("yt-stories-viewer-view-model",{class:_.kS("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.O("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.O("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":B,"on:mousedown":a,"on:mouseup":b,"on:mouseleave":b}),_.O("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":V,"on:mousedown":a,"on:mouseup":b,"on:mouseleave":b})),_.O("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.O(_.Q7,{data:P},{storiesItemViewModel:function(Fv,Py){var du=Fv.data;return _.O(_.v,{cond:function(){return Math.abs(Py()-w())<=1},
then:function(){var mL={};return _.O("div",{class:_.kS("ytStoriesViewerViewModelStoryItem",(mL.ytStoriesViewerViewModelActiveStoryItem=function(){return Py()===w()},mL))},_.O(fwu,{data:du,
pauseAutoNavigation:r,navigateToNextItemOnLottieComplete:H,isVisible:function(){return Py()===w()},
animationRef:C}))}})}})),_.O("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:z},_.O(_.YV,{each:P},function(){return _.O("div",{class:"ytStoriesViewerViewModelProgressBar"},_.O("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.O("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.O(_.Q7,{data:d},{buttonViewModel:_.lk})))},"sh"),"yt-stories-viewer-view-model",{props:{data:_.vB}});_.iF(_.eY(function(y){var W=y.data;var V=_.I0("yt-gen-ai-feedback-form-view-model"),w=[];return _.O("yt-gen-ai-feedback-form-view-model",{el:V,class:"ytGenAiFeedbackFormViewModelHost"},_.O(_.Lv,{text:function(){return W().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.O("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.O(_.Q7,{data:function(){return W().feedbackChips}},{toggleButtonViewModel:function(t){var F=t.data;
return _.O(_.XV,{data:F,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(I){var P=F();P=_.h(P,_.aJ);P=_.h(P==null?void 0:P.defaultButtonViewModel,_.H5).trackingParams;I?w.push(P):(I=w.indexOf(P),I>-1&&w.splice(I,1))}})}})),_.O(_.Lv,{text:function(){return W().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.O("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.O(_.Q7,{data:function(){return W().submitButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){iDC(V.value,w,W().uniqueId)}})}}),_.O(_.Q7,{data:function(){return W().moreFeedbackButton}},{buttonViewModel:function(t){return _.O(_.lk,{data:t.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"th"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.vB},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var rA=function(){return _.u.apply(this,arguments)||this};
_.p(rA,_.u);rA.prototype.created=function(){ynW(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(ntE);var y=_.hs().resolve(_.Bmu);y&&(y.container=this.ytPopupContainerBehavior);if(y=_.hs().resolve(_.nr))y.container=this.ytPopupContainerBehavior;if(y=_.hs().resolve(_.HS)){var W=this.ytPopupContainerBehavior;y.containerWasInjected?_.rQ(Error("mj")):y.container=W}};
rA.prototype.ensurePopupBelowPlayer=function(y,W){var V=_.hs().resolve(_.eX(_.hn));if(!V||!V.isOnWatch()||!_.Kn())return!1;V=V.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.B9().height>V+this.getPopupHeight(y,W)?(y.style.top="auto",y.style.bottom="0px"):(y.style.top=V+"px",y.style.bottom="auto");return!0};
rA.prototype.getPopupHeight=function(y,W){W&&(y.cachedPopupHeight=0);if(!y.cachedPopupHeight){W=0;var V=y.clientHeight,w=window.getComputedStyle(y);W+=parseInt(w.marginTop,10);W+=parseInt(w.marginBottom,10);y.cachedPopupHeight=V+W}return y.cachedPopupHeight};
rA.prototype.getElement=function(y){return document.createElement(y)};
_.J([_.m(ORP.YtPopupContainerBehavior),_.R("design:type",Object)],rA.prototype,"ytPopupContainerBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],rA.prototype,"ytComponentBehavior",void 0);_.J([_.k({disableElementRegistration:!0,is:"ytd-popup-container"})],rA);
_.Y(rA,"ytd-popup-container",function(){if(wtj!==void 0)return wtj;var y=document.createElement("template");_.T(y,"\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");y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);return wtj=y},{mode:1});var mzj;var MGC={};MGC.YtLogYpcFlowCommandsBehavior=[_.ik.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(y){_.h(y,$it)&&(y=_.h(y,$it))&&(y.serializedTransactionFlowLoggingParams?_.vqd(y.serializedTransactionFlowLoggingParams):y.serializedYpcCancelFlowLoggingParams?(y=y.serializedYpcCancelFlowLoggingParams)&&_.t9("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",y):y.serializedYpcResumeFlowLoggingParams?(y=y.serializedYpcResumeFlowLoggingParams)&&_.t9("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",y):y.serializedYpcPauseFlowLoggingParams?(y=y.serializedYpcPauseFlowLoggingParams)&&
_.t9("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",y):y.serializedYpcRefundFlowLoggingParams?(y=y.serializedYpcRefundFlowLoggingParams)&&Bym("YPC_EVENT_TYPE_START",y):y.serializedYpcDeactivateFlowLoggingParams?(y=y.serializedYpcDeactivateFlowLoggingParams)&&_.t9("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",y):y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(y=y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.t9("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",y))},
handleLogYpcFlowDismiss_:function(y){_.h(y,jbE)&&(y=_.h(y,jbE),y.serializedTransactionFlowLoggingParams?_.dJ4(y.serializedTransactionFlowLoggingParams):y.serializedYpcCancelFlowLoggingParams?(y=y.serializedYpcCancelFlowLoggingParams)&&_.t9("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",y):y.serializedYpcResumeFlowLoggingParams?(y=y.serializedYpcResumeFlowLoggingParams)&&_.t9("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",y):y.serializedYpcPauseFlowLoggingParams?(y=
y.serializedYpcPauseFlowLoggingParams)&&_.t9("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",y):y.serializedYpcRefundFlowLoggingParams&&(y=y.serializedYpcRefundFlowLoggingParams)&&Bym("YPC_EVENT_TYPE_CANCEL",y))}}];var qGP={};qGP.YtCancelRecurrenceBehavior=[_.Em.YtComponentBehavior,_.xLq,{attached:function(){var y=this;Anu(this,function(W,V){return y.ypcCancelRecurrenceHandler(W,V)})},
ypcCancelRecurrenceHandler:function(y,W){var V=this;if(!W||!W.ypcCancelRecurrenceEndpoint)return!1;if(!W.ypcCancelRecurrenceEndpoint.params)return _.VC(Error("Fl")),!0;_.Ep(this.hostElement);var w=_.P5.instance,t=_.hs().resolve(_.eX(_.bN));w&&_.Cn(w,W)?_.OP(w,W).then(function(F){V.ypcCancelRecurrenceSuccess_(y,W,{data:F})},function(F){V.ypcCancelRecurrenceFailure_(y,W,F)}).thenCatch(function(){_.VC(Error("Gl"))}):t?t.requestDataForServiceEndpoint(W).then(function(F){V.ypcCancelRecurrenceSuccess_(y,
W,F)},function(F){V.ypcCancelRecurrenceFailure_(y,W,F)}).thenCatch(function(){_.VC(Error("Gl"))}):_.VC(Error("Hl"));
return!0},
ypcCancelRecurrenceSuccess_:function(y,W,V){_.NE(this.hostElement);V.data||(V={data:V});V.data&&V.data.actions&&_.fg(this.hostElement,V.data.actions,this.hostElement);V.data.messageRenderer?RDu(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(W=W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.t9("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",W);_.h1(y,"yt-service-request-completed",V)},
ypcCancelRecurrenceFailure_:function(y,W,V){_.NE(this.hostElement);RDu(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.h1(y,"yt-service-request-error",{error:V,params:[y,W]})}}];var Uzt=function(y,W){_.yj.call(this,W)};
_.p(Uzt,oUu);var uPW={};uPW.YtCompleteTransactionBehavior=[_.Em.YtComponentBehavior,_.xLq,{attached:function(){var y=this;Anu(this,function(W,V){return y.ypcCompleteTransactionHandler(W,V)})},
completeTransaction:function(y,W){var V=this;W={payments_payload:window.btoa(W.integratorData),buybucket_params:y.data.buybucketParams,offer_params:y.data.offerParams};var w=_.hs().resolve(_.bN),t=y.data.completeTransactionEndpoint,F=this.get("ypcCompleteTransactionEndpoint.actions",t);F&&_.fg(this.hostElement,F,this.hostElement);return(F=_.P5.instance)&&_.Cn(F,t)?_.OP(F,t,W).then(function(I){return!I||(I==null?0:I.error)?(I=V.get("data.serializedTransactionFlowLoggingParams",y),_.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
I))):{data:I}}).then(function(I){return V.handleCompleteTransactionSuccess_(I,y)},function(){return V.handleCompleteTransactionFailure_(y)}):w.requestDataForServiceEndpoint(t,W).then(function(I){return V.handleCompleteTransactionSuccess_(I,y)},function(){return V.handleCompleteTransactionFailure_(y)})},
handleCompleteTransactionSuccess_:function(y,W){y.data||(y={data:y});if(y.data.messageRenderer)return _.Gb(new Uzt(y.data.messageRenderer));if(y.data.trackingParams){var V=_.Xn(),w=_.Hf();V&&w&&_.Fr(V,w,_.nD(y.data.trackingParams))}W=this.get("data.serializedTransactionFlowLoggingParams",W);J8u(W);return _.T2(y)},
handleCompleteTransactionFailure_:function(y){y=this.get("data.serializedTransactionFlowLoggingParams",y);_.PW("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y);return _.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y))},
ypcCompleteTransactionHandler:function(y,W){var V=this;if(!W.ypcCompleteTransactionEndpoint)return!1;if(!W.ypcCompleteTransactionEndpoint.transactionParams)return _.VC(Error("Il")),!0;W.ypcCompleteTransactionEndpoint&&W.ypcCompleteTransactionEndpoint.gtmData&&_.Gq(W.ypcCompleteTransactionEndpoint.gtmData);var w=_.hs().resolve(_.eX(_.bN));if(w){_.Ep(this.hostElement);var t=_.P5.instance;t&&_.Cn(t,W)?_.OP(t,W).then(function(F){return!F||(F==null?0:F.error)?(F=V.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
W),_.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F))):{data:F}}).then(function(F){_.h1(y,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(W,F)},function(){return V.ypcCompleteTransactionFailure_(W)}):w.requestDataForServiceEndpoint(W).then(function(F){_.h1(y,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(W,F)},function(){return V.ypcCompleteTransactionFailure_(W)})}return!0},
ypcCompleteTransactionSuccess_:function(y,W){_.NE(this.hostElement);W.data||(W={data:W});_.ow(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);W.data.messageRenderer||W.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(y):(_.Gq('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",y));W.data.actions&&(y=ZOq(W.data.actions),W=ycE(W.data.actions),y.length&&_.i5(this.hostElement,
y),W.length&&_.fg(this.hostElement,W,this.hostElement))},
ypcCompleteTransactionFailure_:function(y){_.NE(this.hostElement);_.ow(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",y,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(y,W,V){if(W=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",W))W={serializedTransactionFlowLoggingParams:W},V&&(W.errorType=V),_.Hp(y,W),_.Xk()}}];var SGq={};SGq.YtEndpointHandlerWithYpcBehavior=[_.xLq,_.ik.YtActionHandlerBehavior,[{openWalletDialog:function(y,W,V,w,t,F,I){var P=this,C=_.v5();W=W.replace(/-/g,"+").replace(/_/g,"/");var d=_.l5().get("hl");_.HSR(_.hD(_.C6),W,C.resolve,t,function(L){F&&F();C.reject(L)},d,function(L){return P.onServerBackendAnalyticEvent_(y,V,L)},this.onDialogClose_.bind(this),w,I);
return C.promise},
openFixFlowDialog:function(y,W,V,w){y=y.replace(/-/g,"+").replace(/_/g,"/");_.hD(_.C6).openFixFlowDialog(y,W,V,w)},
onDialogClose_:function(){_.ow(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(y,W,V){_.h1(y,"yt-commerce-action-init-done");W&&_.i5(this.hostElement,[W,{backend_analytics:V}])}}],
_.sm.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(y,W){y=this.get("data.nativeFlowEndpoint",W);W=this.get("data.fallbackEndpoint",W);y?_.i5(this.hostElement,[y]):W&&_.h1(this.hostElement,"yt-navigate",{endpoint:W})}}],
qGP.YtCancelRecurrenceBehavior,uPW.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 y=this;Anu(this,function(W,V,w){return y.handleYPCEndpoint(W,V,w)});
this.ypcRegisterActionMapJobId_=_.Jt(_.HU,function(){y.registerActionMap(y.buyFlowActionMap_)})},
detached:function(){var y=this;_.HU.cancelJob(this.ypcRegisterActionMapJobId_);_.Jt(_.HU,function(){y.unregisterActionMap(y.buyFlowActionMap_)})},
handleYPCEndpoint:function(y,W,V){var w=W.ypcGetCartEndpoint;if(w){_.X$("commerce_transaction");var t=w.gtmId;t&&_.ab(t);(w=w.gtmData)&&_.Gq(w)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",W)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(y,W),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",W)!=null?(this.handleYPCFixInstrumentEndpoint_(y,W),!0):W.ypcPauseSubscriptionCommand?(DMW(this.hostElement,y,W,V),
!0):W.ypcResumeSubscriptionCommand?(kbe(this.hostElement,y,W),!0):W.getPaymentInstrumentsParamsCommand?(UM3(this.hostElement,y,W),!0):W.ypcHandleTransactionEndpoint?(MY4(this.hostElement,y,W,V),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(y,W){var V=this;_.aw("ttcr",void 0,"commerce_transaction");W=W.ypcGetCartEndpoint;var w=W.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,t=w.encryptedPurchaseParams,F=w.serializedTransactionFlowLoggingParams,I=w.serializedPaymentsClientParams,P=this.createGetCartResponseFromParams_(w,W.offerParams,F);this.changeButtonState(y,!0);_.$s(this.openWalletDialog(y,t,w.ypcLogWalletAnalyticDataEndpoint,F,function(){V.changeButtonState(y,!1)},function(){V.changeButtonState(y,
!1)},I).then(function(C){return V.handleBuyFlowCompleteCallback_(y,P,C)},function(){return V.handleOnLoadError(P)}).then(function(C){return void V.handlePostPurchaseSuccess_(y,P,C)},function(C){return void V.handlePostPurchaseError_(C)}),function(){V.changeButtonState(y,!1);
y instanceof Element&&_.h1(y,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(y,W,V){var w=y.completeTransactionEndpoint,t=y.handleTransactionEndpoint;W={data:{offerParams:window.btoa(W),serializedTransactionFlowLoggingParams:V}};t?W.data.handleTransactionEndpoint=t:W.data.completeTransactionEndpoint=w;y.onCartDismissCommand&&(W.data.onCartDismissCommand=y.onCartDismissCommand);return W},
onGetCartServiceRequestCompleted_:function(y,W){var V=this,w=y.target;if(W&&W.data&&W.data.messageRenderer)_.NE(this.hostElement),this.handleMessageRenderer_(W.data.messageRenderer),this.changeButtonState(w,!1);else{var t=this.get("data.encryptedPurchaseParams",W),F=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",W),I=this.get("data.ypcLogWalletAnalyticDataEndpoint",W),P=this.get("data.serializedPaymentsClientParams",W),C=this.getLoggingParams_(W);if(C||t||F)y.stopPropagation(),_.aw("ttcr",
void 0,"commerce_transaction"),t||_.NE(this.hostElement),this.changeButtonState(w,!1),F?_.ow(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.yC("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:F}}},this]):t&&(this.changeButtonState(w,!0),y=null,y=this.openWalletDialog(w,t,I,C,function(){_.NE(V.hostElement);V.changeButtonState(w,!1)},function(){_.NE(V.hostElement);
V.changeButtonState(w,!1)},P),_.$s(y.then(function(d){return V.handleBuyFlowCompleteCallback_(w,W,d)},function(){return V.handleOnLoadError(W)}).then(function(d){return V.handlePostPurchaseSuccess_(w,W,d)},function(d){return V.handlePostPurchaseError_(d)}),function(){V.changeButtonState(w,!1);
_.h1(w,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(y,W){W&&W.endpoint&&W.endpoint.ypcGetCartEndpoint&&!W.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)&&_.fg(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)],y.target),_.Ep(this.hostElement),this.changeButtonState(y.target,!0))},
onServiceRequestError_:function(y,W){if(W&&W.params&&W.params.length){W=_.N(W.params);for(var V=W.next();!V.done;V=W.next())if((V=V.value)&&V.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)&&_.fg(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)],y.target);_.NE(this.hostElement);this.changeButtonState(y.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(y,W,V){var w=V.integratorData;return w==null||w===""||V.error!=null?(w=this.getLoggingParams_(W),String(V.error)==="-1"?(W.data.onCartDismissCommand&&_.fg(this.hostElement,[W.data.onCartDismissCommand],y),_.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w,!0))):_.Gb(new mD("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w))):W.data.handleTransactionEndpoint?qr3(this.hostElement,W.data.handleTransactionEndpoint,{payments_payload:w,funds_guarantee_callback_client_data:V.integratorClientCallbackData}):
this.completeTransaction(W,V)},
handlePostPurchaseSuccess_:function(y,W,V){W=V.data;var w=!1,t,F;if(W&&((t=W.command)==null?0:(F=t.commandExecutorCommand)==null?0:F.commands)){var I,P;t=(I=W.command)==null?void 0:(P=I.commandExecutorCommand)==null?void 0:P.commands;for(I=0;I<t.length;I++)if(_.h(t[I],_.cZf)){w=!0;break}}w||(W&&W.gtmDatas&&W.gtmDatas.length?_.Gq(W.gtmDatas[0]):_.Gq('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));V.data&&V.data.actions&&(W=ZOq(V.data.actions),V=ycE(V.data.actions),W.length&&
_.i5(this.hostElement,W),V.length&&_.fg(this.hostElement,V,y))},
handlePostPurchaseError_:function(y){y&&y.payload&&y.payload.isUserDismiss||_.ap(Error("Kl"))},
handleOnLoadError:function(y){y=this.getLoggingParams_(y);return _.Gb(new mD("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",y))},
getLoggingParams_:function(y){return this.get("data.serializedTransactionFlowLoggingParams",y)},
handleMessageRenderer_:function(y){var W=_.bU(y,"renderer"),V=_.yC("openPopupConfig");W==="confirmDialogRenderer"&&V&&_.ow(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:V.popupTypeMap[W],popup:y}},this])},
handleYPCFixInstrumentEndpoint_:function(y,W){var V=this,w=W.ypcFixInstrumentEndpoint;W=w.encryptedFixInstrumentParameters;this.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(y,!0);this.openFixFlowDialog(W,function(t,F){V.onFixFlowCompleteCallback_(w,t,F)},function(){return V.changeButtonState(y,!1)},function(){V.changeButtonState(y,!1);
V.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(y,W,V){var w=_.ts("payments.business.integration.scenario.FixInstrument");if(W==w.IntegratorCallbackType.ON_COMPLETE){W="FIX_FOP_EVENT_TYPE_CANCEL";var t=null;V.error!=null?V.error!=w.OnCompleteCallbackError.USER_CANCELLED&&(_.fg(this.hostElement,[y.errorAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_FAILURE",t="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.fg(this.hostElement,[y.successAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_SUCCESS");_.fg(this.hostElement,[y.onFinishAction],
this.hostElement);this.logFixFopEvent_(y,W,t)}},
logFixFopEvent_:function(y,W,V){(y=y.serializedFixFopLoggingParams)?(W={eventType:W,serializedFixFopLoggingParams:y},V!=null&&(W.errorType=V),_.Hp("fixFopFlow",W),_.Xk()):_.ap(Error("Ll"))},
changeButtonState:function(y,W){_.e("enable_ypc_spinners")&&y&&(y.is==="yt-button-renderer"||y.is==="ytd-button-renderer")&&(y.disabled=W)}}];var Dzq=function(y){this.JSC$31994_clientRoot=y;this.feedbackCollectorActionMap={"yt-help-dialog-requested":AYt,"yt-feedback-dialog-requested":sUC,"yt-signal-action-help":YrW,"yt-signal-action-send-feedback":Bcq,"yt-send-feedback-action":R6t,"yt-user-feedback-endpoint":jUP};_.FD(_.tL.getInstance(),this.feedbackCollectorActionMap,this.JSC$31994_clientRoot)},lwd;var xzW=function(y){this.JSC$31999_clientRoot=y;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":$Mj.bind(null,this.JSC$31999_clientRoot),"yt-signal-action-delete-all-downloads":HDj,"yt-signal-action-delete-download":XCC,"yt-signal-action-delete-playlist-download":Gbm,"yt-signal-action-install-pwa":WmC,"yt-signal-action-refresh-downloads":ZD4,"yt-offline-video-endpoint":waC,"yt-offline-playlist-endpoint":FmC,"yt-update-local-app-setting-command":NLe,"yt-offline-orchestration-action-command":gS3,
"yt-signal-action-undo-delete-download":bDv,"yt-local-watch-history-command":O5e};_.FD(_.tL.getInstance(),this.downloadManagerActionMap,this.JSC$31999_clientRoot);_.ac.instance=new _.ac},kv4;var P$=function(){var y=_.u.apply(this,arguments)||this;y.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_"};y.remoteApi_=null;return y};
_.p(P$,_.u);_.E=P$.prototype;
_.E.ready=function(){_.e("polymer_enable_mdx")&&(HKm({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.e("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.e("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.e("enable_cast_short_lived_lounge_token")}),_.pi("yt-remote-connection-change",this.handleConnectionChange_,this),_.pi("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=ZKd())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.E.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.E.handleConnectionChange_=function(y){(this.mdxConnected=y)?(y=G8j(),!y&&AxP()&&YTP()&&(y={key:"cast-selector-receiver",name:YTP()}),y=y.name):y=null;this.receiverName=y;_.La(this.remoteApi_);(this.remoteApi_=ZKd())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.E.handleReceiverAvailabilityChange_=function(){var y=a9W();AxP()&&_.SL("yt-remote-cast-available")&&y.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=y.length>0};
_.E.handleRemoteQueueChange_=function(){var y=this.currentVideoId_,W=this.currentListId_,V=Sz(this.remoteApi_);this.currentVideoId_=V.videoId;this.currentListId_=V.listId;this.currentVideoId_&&_.ow(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.e("polymer_enable_mdx_queue")?this.currentListId_:null,y,W])};
_.E.handleAddToQueueAction_=function(y){y=_.h(y,miq);this.remoteApi_&&(y.videoId?this.remoteApi_.addVideo(y.videoId):y.playlistId&&this.remoteApi_.addPlaylist(y.playlistId))};
_.E.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.E.handleInsertInQueueAction_=function(y){y=_.h(y,MLj);this.remoteApi_&&y.videoId&&this.remoteApi_.JSC$19587_insertVideo(y.videoId)};
_.E.handleRemoveFromQueueAction_=function(y){y=_.h(y,qAe);this.remoteApi_&&y.videoId&&this.remoteApi_.JSC$19587_removeVideo(y.videoId)};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],P$.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q(),_.R("design:type",Object)],P$.prototype,"appId",void 0);_.J([_.q(),_.R("design:type",Boolean)],P$.prototype,"mdxConnected",void 0);_.J([_.q(),_.R("design:type",Boolean)],P$.prototype,"receiverAvailable",void 0);_.J([_.q(),_.R("design:type",Object)],P$.prototype,"receiverName",void 0);_.J([_.q(),_.R("design:type",Object)],P$.prototype,"currentVideoId_",void 0);
_.J([_.q(),_.R("design:type",Object)],P$.prototype,"currentListId_",void 0);_.J([_.Zp({is:"yt-mdx-manager",disableElementRegistration:!0})],P$);_.Y(P$,"yt-mdx-manager",void 0,{mode:2});var s3e;var Ayd;var Cf=function(){var y=_.u.apply(this,arguments)||this;y.APP_IDS={ytr:3,ytm:5};y.JSC$20827_timeoutId_=0;y.actionMap={"yt-open-create-family-dialog":"open"};return y};
_.p(Cf,_.u);_.E=Cf.prototype;_.E.created=function(){ynW(2200)};
_.E.detached=function(){this.observer_&&this.observer_.disconnect()};
_.E.open=function(y,W){var V=this,w=y.serializedYpcFamilyCreateLoggingParams;this.JSC$20827_timeoutId_=setTimeout(this.abort_.bind(this,y.postFlowErrorEndpoint,w),3E4);W&&(this.onReadyCallback_=W);var t=_.i6(this.hostElement).querySelector("#unicorn-iframe");w&&w&&Y0P("ypcFamilyCreateFlowStarted",w);_.Wuy("family_creation",function(){var F=_.ts("gapi.family_creation.render");_.ts("gapi.config.update")("iframes/family_creation/url",V.getFamilyCreationUrlWithUnicornParams_());var I=3;y.appId&&y.appId in
V.APP_IDS&&(I=V.APP_IDS[y.appId]);I={authUser:_.yC("SESSION_INDEX")||0,clientId:I,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.yC("HL"),initialflow:[4,5,6,7],m:V.isMobile?1:0,onFlowComplete:V.onUnicornFlowComplete_.bind(V,y.postFlowSuccessEndpoint,w),onError:V.onUnicornFlowError_.bind(V,y.postFlowErrorEndpoint,w),onReady:V.onUnicornFlowReady_.bind(V,y.referencePcidParams)};F(t,I)})};
_.E.close=function(){_.i6(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.E.onUnicornFlowComplete_=function(y,W){this.close();W&&W&&Y0P("ypcFamilyCreateFlowSucceeded",W);_.h1(this.hostElement,"yt-navigate",{endpoint:y})};
_.E.onUnicornFlowError_=function(y,W){this.close();W&&Y0P("ypcFamilyCreateFlowCancelled",W);_.h1(this.hostElement,"yt-navigate",{endpoint:y})};
_.E.onUnicornFlowReady_=function(y){var W=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();y&&_.ts("gapi.family_creation.setConfig")(0,y);this.observer_=new MutationObserver(function(){_.i6(W.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.i6(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.i6(this.hostElement).querySelector("#dialog").open()};
_.E.getFamilyCreationUrlWithUnicornParams_=function(){return _.yC("YTR_FAMILY_CREATION_URL")};
_.E.getCurrentUrl_=function(){return document.location.href};
_.E.abort_=function(y,W){this.clearTimeout_();this.onUnicornFlowError_(y,W)};
_.E.clearTimeout_=function(){clearTimeout(this.JSC$20827_timeoutId_)};
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],Cf.prototype,"ytActionHandlerBehavior",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],Cf.prototype,"isMobile",void 0);_.J([_.q(),_.R("design:type",Object)],Cf.prototype,"onReadyCallback_",void 0);_.J([_.q(),_.R("design:type",Object)],Cf.prototype,"observer_",void 0);_.J([_.Zp({is:"yt-create-family-dialog",disableElementRegistration:!0})],Cf);
_.Y(Cf,"yt-create-family-dialog",function(){if(Ayd===void 0){var y=document.createElement("template");_.T(y,'\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');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);var W=y.content,V=W.insertBefore;s3e===void 0&&(s3e=document.createElement("template"));var w=s3e;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Ayd=y}y=Ayd;return y},{mode:2});var YGE;var Btu;var Od=function(){var y=_.u.apply(this,arguments)||this;y.STEP=1;y.BLOCK_ON=80;y.MIN_PROGESS=0;y.MAX_PROGESS=100;return y};
_.p(Od,_.u);_.E=Od.prototype;_.E.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.E.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));_.hs().addProvider({provide:q4W,useValue:this})};
_.E.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.E.finish=function(){var y=this;this.progress=this.MAX_PROGESS;vSe(function(){y.progress==y.MAX_PROGESS&&(y.hostElement.hidden=!0)})};
_.E.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.CM.Object.defineProperties(Od.prototype,{progress:{configurable:!0,enumerable:!0,set:function(y){this.progress_=y;var W="scaleX("+y/this.MAX_PROGESS+")",V=_.i6(this.hostElement).querySelector("#progress").style;V.transform=W;V.webkitTransform=W;this.hostElement.setAttribute("aria-valuenow",String(y))},
get:function(){return this.progress_}}});
_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],Od.prototype,"ytComponentBehavior",void 0);_.J([_.Zp({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Od);
_.Y(Od,"yt-page-navigation-progress",function(){if(Btu===void 0){var y=document.createElement("template");_.T(y,'\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');y.content.insertBefore(_.n().content.cloneNode(!0),
y.content.firstChild);var W=y.content,V=W.insertBefore;YGE===void 0&&(YGE=document.createElement("template"));var w=YGE;V.call(W,w.content.cloneNode(!0),y.content.firstChild);Btu=y}y=Btu;return y},{mode:2});var Jyu={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"},Rfv={"font-size":"12px","font-style":"italic"},j3W={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.clu=function(){return _.g(function(y){_.B7(y)})};var $zE=_.eY(function(y){var W=function(){return y.data().subtext},V={};
return _.O("snackbar-view-model",{class:_.kS("snackbarViewModelHost",y.className)},_.O("div",{class:_.kS("snackbarViewModelEngagementBarWrapper",y.className)},_.O(_.v,{cond:function(){return y.data().image},
then:function(w){return _.O(_.ca,{data:w,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.O(_.v,{cond:function(){return y.data().imageContent},
then:function(){return _.O("div",{class:"snackbarViewModelAvatarContainer"},_.O(_.Q7,{data:function(){return y.data().imageContent}},{decoratedAvatarViewModel:_.bV}))}}),_.O("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.O("div",{class:_.kS((V.snackbarViewModelTitle=!0,V.snackbarViewModelTitleWithSubtext=W,V))},_.O(_.Lv,{text:function(){return y.data().text}})),_.O(_.v,{cond:W,
then:function(){return _.O("div",{class:"snackbarViewModelSubtext"},_.O(_.Lv,{text:function(){return W()}}))}})),_.O(_.v,{cond:function(){return y.data().buttons},
then:function(){return _.O("div",{class:"snackbarViewModelButtonClassWrapper"},_.O(_.Q7,{data:function(){return y.data().buttons}},{buttonViewModel:function(w){return _.O(_.lk,{data:w.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:y.target})}}))}})))},"uh");_.iF(_.eY(function(){function y(B,r,H){f(B);l(H);c("in");L(!0);W(B,r);I=setTimeout(function(){V()},r)}
function W(B,r){var H,a=(H=B.text)==null?void 0:H.content;B=_.w7(B.rendererContext);a&&(r={label:a,command:B,durationMs:r},_.hs().resolve(_.kT).enqueue(r))}
function V(B){c("out");B&&clearTimeout(I)}
function w(){V(!0)}
function t(B){if(B){var r=B.snackbarViewModel,H=B.durationMs,a=B.target;H||(H=3E3);r&&(B=_.hs().resolve(_.eX(_.uc)))&&B.enqueue({isOpened:d,open:function(){y(r,H,a)},
close:V},0)}}
var F=_.gS("snackbar-container"),I=void 0,P=_.N(_.M1(!1,void 0,"jJ4tBf")),C=P.next().value;P=P.next().value;var d=C,L=P;C=_.N(_.M1("out",void 0,"M6Rbpb"));var z=C.next().value,c=C.next().value;C=_.N(_.M1(void 0,void 0,"aFswib"));var K=C.next().value,f=C.next().value;C=_.N(_.M1(void 0,void 0,"mlWWhb"));var U=C.next().value,l=C.next().value,x=_.YS(function(){if(z()==="out"){L(!1);f(void 0);l(void 0);var B=_.hs().resolve(_.eX(_.uc));B&&v9E(B,0)}});
_.a8(function(){var B=_.hs().resolve(_.eX(_.Cnu));B&&(B.showSnackbarFn=t,B.closeSnackbarFn=w)});
return _.O("snackbar-container",{class:"ytSnackbarContainerHost",el:F},_.O(_.v,{cond:function(){return d()&&!!K()},
then:function(){var B={};return _.O("div",{class:_.kS("ytSnackbarContainerSnackbarContainer",(B.ytSnackbarContainerMobile=!1,B.ytSnackbarContainerPivotBar=function(){var r;return!((r=_.hs().resolve(_.eX(_.Odq)))==null||!r())},B.ytSnackbarContainerOpened=function(){return d()&&z()==="in"},B.ytSnackbarContainerClosed=function(){return d()&&z()==="out"},B)),
"on:animationend":x},_.O($zE,{data:function(){return K()},
target:function(){return U()}}))}}))},"vh"),"snackbar-container");_.iF(_.XOR,"yt-tooltip");_.iF(_.eY(function(){var y=_.tn(_.Lpj);return _.O("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var W;return(W=y())==null?void 0:W.announcement})},"wh"),"yt-ephemeral-actions");var kPW=new Map;var emC=function(y,W){var V=this;this.handleError=y;this.logEventInternal=W;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){V.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
emC.prototype.logError=function(y){this.handleError(y)};
emC.prototype.logEvent=function(y,W){switch(y){case "IDB_DATA_CORRUPTED":_.e("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":_.e("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":nau(this,W);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":y=Object.assign({},W,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",y)}};
var nau=function(y,W){_.Bu.getInstance().estimate().then(function(V){V=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Ald(V==null?void 0:V.usage),deviceStorageQuotaMbytes:Ald(V==null?void 0:V.quota)});y.logEventInternal("idbQuotaExceeded",V)})};var v$=function(){var y=_.u.apply(this,arguments)||this;y.tabGesturesIsActive=!1;y.deprecateFullerscreenUi=_.e("web_watch_fullerscreen_deprecation_ui");y.hasDelegation=!1;y.darkerDarkTheme=_.e("web_darker_dark_theme");y.isFrostedGlassInitialized=!1;y.frostedGlassExp=_.e("web_frosted_glass");y.mastheadHiddenFocusWithinKillswitch=_.e("web_masthead_hidden_focus_within_killswitch");y.clientOnlyWizTooltipsEnabled=_.e("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");y.scrollAtTop=
!0;y.guideScrollTop=0;y.isTheaterModeSession=_.W4("START_IN_THEATER_MODE");y.iMaxTheaterMode=_.e("web_watch_imax_theater_mode");y.isFullWindowSession=_.W4("START_IN_FULL_WINDOW_MODE");y.hasCreateFamilyDialog=!1;y.mastheadHeight=56;y.networkStatusManager=new _.NN;y.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"};y.dynamicActionMap={"yt-run-attestation-command":function(W){var V=_.d9q.instance,w=_.h(W,_.Kqm);return w?_.e("use_rta_manager_for_async")&&
wl4()?$He(V,w,W.clickTrackingParams):jJd(V,w,W.clickTrackingParams):_.Gb(Error("vi"))}};
y.isFrostedGlassDisabled=!1;y.isChannelOrPlaylistPage=!1;return y};
_.p(v$,_.u);_.E=v$.prototype;_.E.created=function(){var y=_.hs();_.e("kevlar_clear_duplicate_pref_cookie")&&_.Jt(_.HU,function(){var W=_.k_.get("PREF");W&&!/f\d=/.test(W)&&(W=_.iC("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=W?"PREF=null;domain="+W+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.e("gzip_gel_with_worker")&&_.Lgz();_.e("jspb_serialize_with_worker")&&qhC();_.e("web_worker_availability_check")&&sdm();_.e("nwl_init_killswitch")||mTv().then(function(){_.HU.addLowPriorityJob(n1d)});
this.pageManagerAttachedPromise=_.v5();this.ytdAppBehavior.loadDepsPromise=_.jI([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.d7(this.onThrottledScroll,200,this);_.e("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);hmC();eTj=!!_.ts("ytappsettings.initialized");kM=_.ts("ytappsettings.previousValue");VKW=_.ts("ytappsettings.previousSnapshotTime");eTj||(eTj=!0,wfE());bOv();Qcj();_.Z7("DEFERRED_DETACH",
_.e("kevlar_tuner_should_defer_detach"));_.Z7("REUSE_COMPONENTS",!0);_.Z7("STAMPER_STABLE_LIST",!0);_.Z7("SCHEDULED_LAZY_LIST",!0);_.Z7("openPopupConfig",$dE);_.Z7("useClickHandler",!0);_.e("kevlar_shell_cleanup")&&_.HU.addLowPriorityJob(Puv.bind(this,_.Vj.caches));_.W4("IS_SHELL_LOAD")&&_.HN({shellStartupDurationMs:Math.round((0,_.cU)()-_.BN())});Kmq(this.networkStatusManager);_.e("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",d4j(Jyu)),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!",
d4j(Rfv)),console.log("%cVisit http://go/join-youtube-web to apply today.",d4j(j3W)));_.OB4(y.resolve(_.lc),1E3)};
_.E.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var y=Yhu();y&&!_.e("external_fullscreen_killswitch")&&document.addEventListener(y,this.setFullscreen.bind(this));(y=window.matchMedia("(prefers-color-scheme: dark)"))&&y.addEventListener&&y.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.E.attached=function(){var y=this;_.FS().processSignal("ci");_.e("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.x9j?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.DE(_.o$4(),"SUCCESS");this.updateIconSet();_.cN(this.guideInnerContent,!1);_.$K().initVisibilityObserver();this.guideService.guideElement=this.guide;var W=document.createElement("ytd-miniplayer"),V=_.i6(this.hostElement).querySelector("#content");
_.i6(this.hostElement).insertBefore(W,V);_.FS().processSignal("ma");_.hs().resolve(_.VH).init(W);_.W4("IS_SHELL_LOAD")&&(V=document.createElement("ytd-network-status-banner"),_.i6(this.hostElement).insertBefore(V,W));_.e("kevlar_right_click_on_lockups")&&_.Ix._onCaptureClick&&document.addEventListener("contextmenu",_.Ix._onCaptureClick.bind(_.Ix),!0);var w=function(){var t=_.hZ("yt-page-navigation-progress");_.i6(y.hostElement).appendChild(t)};
setTimeout(function(){_.FS().parkOrScheduleJob(w,0,"eocs",16)},0);
_.e("service_worker_push_enabled")&&_.Jt(_.HU,A8P);_.FD(_.tL.getInstance(),this.dynamicActionMap,this.hostElement);_.h1(this.hostElement,"ytd-app-attached");_.FS().processSignal("aa");WNP(this.hostElement);_.dE("gapi.load",_.Wuy);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Jt(_.HU,
function(){var t=document.createElement("ytd-video-preview");_.i6(_.i6(y.hostElement).querySelector("#video-preview")).appendChild(t)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Jt(_.HU,function(){eAd();y.registerWithViewTransitionManager()});
if(_.X4()&&this.isAppDarkTheme()!==_.nO())this.onDarkModeToggledAction();else W=_.H9()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==W&&(_.e("enable_dark_theme_only_on_shorts")?_.Ng(_.e("enable_dark_theme_only_on_shorts_control")?window.location.href:_.CB(window.location.href,{theme:"dark"})):_.rQ(new _.Js("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(aOq=new XSj(this.hostElement)),kv4=new xzW(this.hostElement),lwd=new Dzq(this.hostElement),vqe=new Osm(this.hostElement)};
_.E.getThemeSettingsToLog=function(){var y=_.H9()==="USER_INTERFACE_THEME_DARK";y=_.X4()?_.nO()?"os-dark":"os-light":y?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:y,cookiesEnabled:_.As()}};
_.E.detached=function(){_.eM(this.guideInnerContent);_.HU.cancelJob(DW);DW=0;_.HU.cancelJob(xM);xM=0;_.qrz(y83);y83.length=0;b7u=_.XKP=null;_.$K().dispose();_.e("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Eh(_.tL.getInstance(),aOq.playlistHandlerActionMap,aOq.JSC$31693_clientRoot);_.Eh(_.tL.getInstance(),kv4.downloadManagerActionMap,kv4.JSC$31999_clientRoot);_.Eh(_.tL.getInstance(),lwd.feedbackCollectorActionMap,lwd.JSC$31994_clientRoot);
for(var y=_.N(vqe.eventListeners),W=y.next();!W.done;W=y.next()){var V=_.N(W.value);W=V.next().value;V=V.next().value;V=_.N(V);for(var w=V.next();!w.done;w=V.next()){var t=_.N(w.value);w=t.next().value;t=t.next().value;W.removeEventListener(w,t)}}_.Eh(_.tL.getInstance(),vqe.autonavPauseActionMap,vqe.JSC$19770_clientRoot)};
_.E.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.l5().getFlag(186)};
_.E.computeIsInlinePreviewEnabled=function(y,W,V){return!V&&_.I3W({miniplayerIsActive:y,miniplayerPlaybackState:W})};
_.E.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.ig({type:"SET_FROSTED_GLASS_MODE",payload:!_.e("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"}))};
_.E.computeIsFrostedGlassDisabled=function(y,W,V,w){return y||W||V||w&&_.e("web_frosted_glass_disable_watch")};
_.E.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.e("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.E.computeIsHomePage=function(y,W){if(!y||W==null||!W.endpoint)return!1;var V;return((V=_.h(W.endpoint,_.sT))==null?void 0:V.browseId)==="FEwhat_to_watch"};
_.E.updateIsChannelOrPlaylistPage=function(){if(_.e("web_frosted_glass")){var y,W,V=(W=(y=_.hs().resolve(_.eX(_.hn)))==null?void 0:y.getCurrentPage())==null?void 0:W.pageSubtype;this.isChannelOrPlaylistPage=V?["channel","channels","playlist"].includes(V):!1}};
_.E.scheduleFrostedGlassInitialization=function(){var y=this;_.e("web_frosted_glass")&&_.FS().parkOrScheduleJob(function(){y.isFrostedGlassInitialized=!0},0,_.FC(["eocs",
"cr"]),300)};
_.E.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Cpi(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.ig({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.ig({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.E.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gUW(!0))};
_.E.onYtSignalActionRequestPersistentStorage=function(){if(!_.e("request_persistent_storage_killswitch")){var y=_.hs().resolve(_.WCq);y.cachedPersistStatePromise||(y.cachedPersistStatePromise=ivq())}};
_.E.handleYtChannelCreationFormEndpoints=function(y){y&&this.ytComponentBehavior.resolveCommand(y)};
_.E.handleShowEngagementPanelEndpoint=function(y){y&&this.ytComponentBehavior.resolveCommand(y)};
_.E.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gUW(!1))};
_.E.initIconDefs=function(y,W){var V=document.createElement("iron-iconset-svg");V.name=y;y=document.createElementNS("http://www.w3.org/2000/svg","svg");V.appendChild(y);y.appendChild(W);document.body.appendChild(V);return V};
_.E.onWindowResized=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var y=_.pvr.getInstance();y.documentWidth_=document.body.clientWidth;zME(y)};
_.E.onWindowScrolled=function(){var y=_.hs().resolve(_.hn).getCurrentPage();if(y!=null&&y.getScrollTop){var W=this.ytdReduxBehavior,V=W.dispatch;y=y.getScrollTop()<=0;V.call(W,_.ig({type:"SET_SCROLL_AT_TOP",payload:y}))}};
_.E.guideIsVisibleButNotPersistentSelectorChanged=function(){var y=_.hs().resolve(_.hn).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=y.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"),
y.setScrollTop(this.guideScrollTop));_.Kg(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.E.getCurrentPageScrollableElementType=function(){var y=_.hs().resolve(_.hn).getCurrentPage();if(y&&y.getPageScrollingElement())return y.getPageScrollingElement().nodeName};
_.E.observeGuideVisibility=function(){var y=_.pvr.getInstance(),W=this.miniGuideVisible;y.guidePersistentAndVisible_=this.guidePersistentAndVisible;y.miniGuideVisible_=W;zME(y)};
_.E.handleEduDismissAction=function(y){y&&y.eduDismissAction&&(_.ow(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.c4Q.getInstance(),_.eL.set(y.eduDismissAction.key+"-dismissed",!0))};
_.E.handleEduImpressionAction=function(y){if(y&&y.eduImpressionAction){var W=_.c4Q.getInstance();y=y.eduImpressionAction.key;W.JSC$12883_eduDisplayedThisLoad_[_.zr6[y].setKey||y]=!0;_.eL.set(y+"-impression",parseInt(_.eL.get(y+"-impression")||0,10)+1)}};
_.E.onYtSignalActionConfirmMentionsEdu=function(){_.ow(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Kc.getInstance();_.ob.set("edu-dismissed",!0)};
_.E.onYtSignalActionRecordMentionsEduImpression=function(){_.Kc.getInstance();var y=_.ob.set,W=parseInt(_.ob.get("edu-impressions"),10);y.call(_.ob,"edu-impressions",(isFinite(W)?W:0)+1)};
_.E.onYtPageManagerAttached=function(y){var W;((W=_.vW(y))==null?void 0:W.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.E.onInvokeInstrumentManagerAction=function(y,W){RAC(W,y)};
_.E.updateIconSet=function(){var y=this.hostElement.querySelector("#masthead");if(y){var W=_.f6(y),V=W.querySelector("g#yt-logo-updated");V&&(y=document.createElementNS("http://www.w3.org/2000/svg","defs"),y.appendChild(V.cloneNode(!0)),(W=W.querySelector("g#yt-logo-red-updated"))&&y.appendChild(W.cloneNode(!0)),this.initIconDefs("yt-logos-ext",y))}};
_.E.updateMastheadData=function(){var y=this,W,V,w,t,F;return _.g(function(I){if(I.nextAddress==1){W=y.data;V=y.hostElement.querySelector("#masthead");if(!V)return I.return();_.gy(y,function(){V.data=y.topbarData});
if(!y.get("response.topbar",W)||y.get("response.topbar.responseContext.maxAgeSeconds",W)===0)return I.jumpTo(0);if(w=_.hs().resolve(_.vu))return I.yield(w(),6);t=_.hs().resolve(_.Md);return I.yield(t.put("service:topbar:fallback",new _.qd({innertubeResponse:y.get("response.topbar",W)})),0)}return(F=I.yieldResult)?I.yield(F.put("service:topbar:fallback",new _.qd({innertubeResponse:y.get("response.topbar",W)})),0):I.jumpTo(0)})};
_.E.computeTopbarData=function(y){if(!y)return null;var W;return this.isShortsPage&&this.topbarData&&!_.h((W=y.response)==null?void 0:W.topbar,vKj)?this.topbarData:y.response&&"topbar"in y.response?_.h(y.response.topbar,vKj)||null:null};
_.E.onSetTheaterModeEnabled=function(y,W){this.isTheaterModeSession=W.enabled;this.setTheaterModeStyles(W.enabled)};
_.E.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.E.onDarkModeToggledAction=function(){var y=_.U1(window.location.href);if(!_.tUv(y)){(y=!!_.P4(window.location.href).themeRefresh)&&_.rQ(new _.Js("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!y){wfE();y={themeRefresh:1};var W=_.hs().resolve(_.hn);if(W.isOnWatch()){var V,w;W=((V=W.getPlayerFromWatch())==null?void 0:(w=V.getPlayer())==null?void 0:w.getCurrentTime())||0;W>=1&&(y.time_continue=Math.floor(W))}_.As()||_.H9()!=="USER_INTERFACE_THEME_DARK"||(y.theme="dark");_.Ng(_.CB(window.location.href,
y))}_.e("web_appshell_refresh_trigger")&&_.Vj.caches&&this.refreshAppShellResponse();V=_.Vm(window.location.href);_.SU(_.hs().resolve(_.DO),_.vN(V,"theme"))}};
_.E.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.E.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.E.onPlayerFullscreen=function(y){_.Lg();this.playerFullscreen=y};
_.E.setRestrictedMode=function(y){var W=_.l5();_.xF(0,58,y);W.save();_.hs().resolve(_.jL).reload()};
_.E.onPageChanged=function(y){y.detail.newPageType==="ytd-watch-flexy"||y.detail.newPageType==="ytd-watch-fixie"||y.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.aD("WEB_PAGE_TYPE_WATCH")):y.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.aD("WEB_PAGE_TYPE_SHORTS")):y.detail.newPageType==="ytd-browse"&&y.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.aD("WEB_PAGE_TYPE_MINI_APP")):_.e("web_frosted_glass")&&y.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.aD("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.aD("WEB_PAGE_TYPE_UNKNOWN"));y.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.E.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.E.onGuideToggleTap=function(){_.h1(this.hostElement,"yt-guide-toggle")};
_.E.onGuideToggleHover=function(){_.h1(this.hostElement,"yt-guide-hover")};
_.E.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.E.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E.setMastheadTheme=function(){var y=_.f6(this.hostElement).querySelector("#masthead");y&&(y.dark=y.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),y.isDarkThemeForced=!1)};
_.E.onRequestPanelModeChange=function(y,W){this.hideHeaderShadow=W.mode!=="seamed"};
_.E.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.E.onDrawerIronSelect=function(y){_.vW(y).id==="guide"&&this.processDrawerIronSelect()};
_.E.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var y="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(y="opened"));_.h1(this.hostElement,"yt-autonav-pause-guide-"+y)};
_.E.onAddElementToApp=function(y){_.i6(this.hostElement).appendChild(y.detail)};
_.E.onThrottledScroll=function(){var y=_.hs().resolve(_.hn).getCurrentPage();y&&(this.scrollAtTop=y.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.E.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.E.setFullscreen=function(){if(_.e("external_fullscreen")||!this.isWatchPage){var y=_.e("kevlar_fullerscreen_root_only_killswitch")?!!_.Lg():!!_.Lg()&&_.Lg()===document.documentElement;y=(this.isWatchPage||_.e("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(y||this.isFullWindowSession);this.fullscreen!==y&&((this.fullscreen=y)&&_.Kg(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.dP().dispatch(_.Wlq(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ow(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.E.setFullscreenLoggingForShorts=function(y){var W,V,w;return _.g(function(t){if(t.nextAddress==1)return t.yield((W=_.Kn())==null?void 0:W.getPlayerPromise(),2);V=t.yieldResult;(w=V)==null||w.setAppFullscreen(y);_.B7(t)})};
_.E.updateMastheadCssHeight=function(){var y=this.mastheadHeight;this.fullscreen&&(y=0);_.qg(this.hostElement,{"--ytd-masthead-height":y+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.E.updateNetworkStatusBannerDisplayStatus=function(){var y="unset";this.fullscreen&&(y="none");_.qg(this.hostElement,{"--ytd-network-status-banner-display":y})};
_.E.updateNetworkStatusBannerCssHeight=function(){var y="unset";this.fullscreen&&(y="0px");_.qg(this.hostElement,{"--ytd-network-status-banner-max-height":y})};
_.E.updateScrollAndMasthead=function(y,W,V,w){this.iMaxTheaterMode||(w=!1);var t=_.hs().resolve(_.hn).getCurrentPage();y||W||w?(document.body.classList.add("no-scroll"),t.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Dp(this,this.onScroll)),t.setScrollTop(0),_.qg(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Vv()+"px"})):V?_.h1(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.h1(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
t.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Dp(this,this.onScroll)));this.mastheadHidden=y||W||V;this.updateMastheadCssHeight();_.e("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.E.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.E.onYtNavigateAction=function(y){y=this.get("navigateAction.endpoint",y);_.h1(this.hostElement,"yt-navigate",{endpoint:y})};
_.E.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var y=document.createElement("yt-create-family-dialog");_.i6(this.hostElement).appendChild(y);this.hasCreateFamilyDialog=!0}};
_.E.onSetPushNotificationsEnabledCommand=function(y){var W=this,V=_.h(y,Ocj);V&&typeof V.enabled==="boolean"&&(Notification.permission!=="granted"?DBu().then(function(){Notification.permission==="granted"?(c8C(!V.enabled).then(oyj),V.successAction&&_.i5(W.hostElement,[V.successAction])):V.failureAction&&_.i5(W.hostElement,[V.failureAction])}):(c8C(!V.enabled).then(oyj),V.successAction&&_.i5(this.hostElement,[V.successAction])))};
_.E.onYtSignalActionEnableChromeNotifications=function(){lAe(!0)};
_.E.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.h(this.topbarData.hotkeyDialog,zYm)}}})};
_.E.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.E.onYtEndpointChangeHandler=function(y,W){var V=_.hD(_.Rb);V.pendingPrefetchJob_&&(W=!(!W||W.autonav!="1"),V.pendingPrefetchJob_.resolve(y&&_.a9u(y)?_.G8v(y,W):""),V.pendingPrefetchJob_=null);_.ow(this.hostElement,"yt-pause-active-page-context");_.ow(this.hostElement,"ytd-log-youthere-nav");_.ow(this.hostElement,"yt-prepare-page-dispose")};
_.E.handleCommandWithCommandHandler=function(y,W){_.xc.instance.resolveCommand(y,{form:{element:W}})};
_.E.onYtTimedCommand=function(y){var W=this;y=_.h(y,WPv);var V=y.command;V&&_.b8(_.HU,function(){var w=_.h(V,_.YVf);w?(_.xc.instance.resolveCommand(V),W.maybeLogGetAnswerRequestTick(w)):_.fg(W.hostElement,[V],W.hostElement)},y.timeoutMs||0)};
_.E.maybeLogGetAnswerRequestTick=function(y){y&&y.isFirstRequest&&(_.X$("search_overview_answer"),_.aw("so_rq",void 0,"search_overview_answer"))};
_.E.onYtSignalActionSkipNavigation=function(){var y=_.hs().resolve(_.hn).getCurrentPage();_.Ci(y)};
_.E.onYtSignalActionCopyDebugData=function(){XfC()};
_.E.handleEntityUpdateCommand=function(y){_.xC(_.h(y,_.BFq).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.E.logFlowLoggingEventCommand=function(y){if(y=_.h(y,_.Y2L))if(y.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var W=y.flowEventNamespace,V=y.flowEventType,w=y.flowType;w&&W&&V&&_.JCv(_.uN(W,V,y.flowEventMetadata),w)}else{W=_.DP();V=y.flowEventNamespace;w=y.flowEventType;var t=y.flowType;t&&V&&w&&_.SW(W,_.uN(V,w,y.flowEventMetadata),t,y.flowNonce)}};
_.E.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.E.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.E.onTouchStart=function(){var y=_.nc();_.Xn()&&_.gp(y.JSC$13110_screenManager,{visualElement:y.ve})};
_.E.handleSelectLanguageCommand=function(y){if(y=_.h(y,gKe).hl){var W=_.l5();W.set("hl",y);W.save();_.hs().resolve(_.jL).reload()}};
_.E.handleConfirmDialogEndpoint=function(y){(y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y))&&this.ytOpenPopupBehavior.openPopup(y)};
_.E.handleOpenPopupNavigationEndpoints=function(y,W){_.e("web_button_rework")&&(y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y))&&this.ytOpenPopupBehavior.openPopup(y,W)};
_.E.handleSaveCommandToSessionStorage=function(y){if(y=_.h(y,_.MdK)){var W=y.key;W&&y.command&&window.sessionStorage.setItem(W,JSON.stringify(y.command))}};
_.E.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(y){y&&y.active&&y.active.postMessage({type:"refresh_shell"})}).catch(function(y){y.name!=="SecurityError"&&_.ap(y)})};
_.E.onDeviceThemeChanged=function(){var y=_.nO();_.xF(_.l5(),185,y);_.l5().save()};
_.E.handleYtRegisterPromoCommand=function(y){if(_.h(y,Cij)){var W=_.hs().resolve(_.hn).getCurrentPage()||this.hostElement;pSC().registerPromoCommand(_.h(y,Cij),W)}};
_.E.onYtNavigateHomeAction=function(){if(!_.e("kevlar_miniplayer_navigate_home_from_app_killswitch")){var y,W,V,w,t=(w=(y=this.topbarData)==null?void 0:(W=y.logo)==null?void 0:(V=W.topbarLogoRenderer)==null?void 0:V.endpoint)!=null?w:_.Ag;this.ytComponentBehavior.resolveCommand(t)}};
_.E.onYtLocationCollectionCommand=function(y){zAE(_.h(y,fk3))};
_.E.onYtGetLocationCommand=function(y){VBu(_.h(y,icW),this)};
_.E.updateRenderGuideFromBinding=function(y){this.renderGuide=y.detail.value};
_.E.updateGuidePersistentAndVisibleFromBinding=function(y){this.guidePersistentAndVisible=y.detail.value};
_.E.updateMiniGuideVisibleFromBinding=function(y){this.miniGuideVisible=y.detail.value};
_.E.onThemeSelected=function(y,W){var V=_.l5(),w=y||W?y:_.nO(),t=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tUv(_.U1(window.location.href));_.xF(0,165,y);_.xF(0,174,W);V.save();t&&_.ow(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.ow(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.E.getCurrentTheme=function(){return _.X4()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.H9()};
_.E.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.E.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.E.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.E.handleShowConsentPrimitive=function(y){var W=this,V,w;return _.g(function(t){if(t.nextAddress==1){try{V=(w=_.Kn())==null?void 0:w.getPlayerPromise()}catch(F){}return t.yield(x4u(y,V),2)}_.ow(W.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.B7(t)})};
_.E.handleSelectActiveIdentityEndpointInternal=function(y){_.Fe();y=_.h(y,_.ygE);if(y!=null&&y.supportedTokens){y=_.N(y.supportedTokens);for(var W=y.next();!W.done;W=y.next())W=W.value,W.accountSigninToken&&_.Ng(W.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.E.handleUpdatePermissionRoleCommand=function(y){if(y=_.h(y,_.VZA)){var W;this.hasDelegation=!((W=_.h(y.renderer,_.WIi))==null||!W.status)}};
_.E.registerWithViewTransitionManager=function(){var y=_.hs().resolve(_.eX(_.Hu));if(y){var W,V=(W=this.guide)==null?void 0:W.querySelector("#scrim"),w;W=(w=this.guide)==null?void 0:w.querySelector("#contentContainer");V&&W&&y.isAnyTransitionEnabled&&(w={},y.viewTransitionCoordinator.registerElement(V,(w.slide="app-drawer-scrim-page-transition",w["lockup-to-watch"]="app-drawer-scrim-page-transition",w["learning-journey"]="app-drawer-scrim-page-transition",w)),V={},y.viewTransitionCoordinator.registerElement(W,
(V.slide="app-drawer-container-page-transition",V["lockup-to-watch"]="app-drawer-container-page-transition",V["learning-journey"]="app-drawer-container-page-transition",V)))}};
_.CM.Object.defineProperties(v$.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.e("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.CM.Object.defineProperties(v$,{template:{configurable:!0,enumerable:!0,get:function(){if(mzj===void 0){var y=document.createElement("template");_.T(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
y.content.insertBefore(_.n().content.cloneNode(!0),y.content.firstChild);mzj=y}y=mzj;return y}}});
v$.prototype.onOpenHotkeyDialog=v$.prototype.onOpenHotkeyDialog;v$.prototype.setFullscreen=v$.prototype.setFullscreen;v$.prototype.onAddElementToApp=v$.prototype.onAddElementToApp;v$.prototype.onDrawerIronSelect=v$.prototype.onDrawerIronSelect;v$.prototype.onGuideOpenButtonHover=v$.prototype.onGuideOpenButtonHover;v$.prototype.onRequestPanelModeChange=v$.prototype.onRequestPanelModeChange;v$.prototype.onPageDataUpdated=v$.prototype.onPageDataUpdated;v$.prototype.onPageChanged=v$.prototype.onPageChanged;
v$.prototype.onSetTheaterModeEnabled=v$.prototype.onSetTheaterModeEnabled;v$.prototype.updateMastheadData=v$.prototype.updateMastheadData;v$.prototype.onYtPageManagerAttached=v$.prototype.onYtPageManagerAttached;v$.prototype.observeGuideVisibility=v$.prototype.observeGuideVisibility;v$.prototype.guideIsVisibleButNotPersistentSelectorChanged=v$.prototype.guideIsVisibleButNotPersistentSelectorChanged;v$.prototype.isInlinePreviewEnabledChanged=v$.prototype.isInlinePreviewEnabledChanged;
v$.prototype.isWatchPageChanged=v$.prototype.isWatchPageChanged;v$.prototype.dispatchFrostedGlassMode=v$.prototype.dispatchFrostedGlassMode;_.J([_.m(_.y$),_.R("design:type",Object)],v$.prototype,"ytdReduxBehavior",void 0);_.J([_.m(_.Jj.YtEventForwardingBehavior),_.R("design:type",Object)],v$.prototype,"ytEventForwardingBehavior",void 0);_.J([_.m(_.sm.YtOpenPopupBehavior),_.R("design:type",Object)],v$.prototype,"ytOpenPopupBehavior",void 0);
_.J([_.m(_.ik.YtActionHandlerBehavior),_.R("design:type",Object)],v$.prototype,"ytActionHandlerBehavior",void 0);_.J([_.m({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.tL.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.e("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var y;((y=this.actionRouterNode.hostElement)!=null?y:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var y;((y=this.actionRouterNode.hostElement)!=null?y:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(y){this.actionRouter_.handleAction(y.detail)}}),
_.R("design:type",Object)],v$.prototype,"ytActionRouterBehavior",void 0);_.J([_.m(Udv.YtdAppBehavior),_.R("design:type",Object)],v$.prototype,"ytdAppBehavior",void 0);_.J([_.m(_.AZ.YtEndpointBehavior),_.R("design:type",Object)],v$.prototype,"ytEndpointBehavior",void 0);_.J([_.m(SGq.YtEndpointHandlerWithYpcBehavior),_.R("design:type",Object)],v$.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.J([_.m(MGC.YtLogYpcFlowCommandsBehavior),_.R("design:type",Object)],v$.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.J([_.m(_.X.YtRendererBehavior),_.R("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.J([_.m(_.Em.YtComponentBehavior),_.R("design:type",Object)],v$.prototype,"ytComponentBehavior",void 0);_.J([_.q({selector:_.Hat}),_.R("design:type",Object)],v$.prototype,"tabGesturesIsActive",void 0);_.J([_.q(),_.R("design:type",Boolean)],v$.prototype,"renderGuide",void 0);
_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"guidePersistentAndVisible",void 0);_.J([_.q({selector:_.nuq}),_.R("design:type",Boolean)],v$.prototype,"guideIsVisibleButNotPersistent",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"standalone",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"miniGuideVisible",void 0);
_.J([_.q({selector:_.q8R}),_.R("design:type",Number)],v$.prototype,"miniplayerPlaybackState",void 0);_.J([_.q({selector:_.bg,reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"miniplayerIsActive",void 0);_.J([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.R("design:type",Boolean)],v$.prototype,"isInlinePreviewEnabled",void 0);_.J([_.q(),_.R("design:type",Boolean)],v$.prototype,"isInlinePreviewDisabled",void 0);
_.J([_.q({reflectToAttribute:!0,value:function(){return _.W4("START_IN_FULL_WINDOW_MODE")}}),
_.R("design:type",Boolean)],v$.prototype,"mastheadHidden",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"playerFullscreen",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],v$.prototype,"deprecateFullerscreenUi",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"fullscreen",void 0);_.J([_.q({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"hideHeaderShadow",void 0);
_.J([_.q({value:{GUIDE_ALT_LABEL:_.u5("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.R("design:type",Object)],v$.prototype,"menuStrings",void 0);_.J([_.q({computed:"computeTopbarData(data)"}),_.R("design:type",Object)],v$.prototype,"topbarData",void 0);_.J([_.q({selector:_.QD}),_.R("design:type",Boolean)],v$.prototype,"isWatchPage",void 0);_.J([_.q({selector:_.Tzu,reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"isShortsPage",void 0);
_.J([_.q({selector:function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.R("design:type",Boolean)],v$.prototype,"isMiniAppPage",void 0);_.J([_.q({selector:function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.R("design:type",Boolean)],v$.prototype,"isBrowsePage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Boolean)],v$.prototype,"scrolling",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],v$.prototype,"hasDelegation",void 0);_.J([_.q({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],v$.prototype,"guideScrolledByTouch",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],v$.prototype,"darkerDarkTheme",void 0);
_.J([_.q(),_.R("design:type",Object)],v$.prototype,"isFrostedGlassInitialized",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],v$.prototype,"frostedGlassExp",void 0);_.J([_.q({selector:function(y){return y.ui.chipBarIsSticky}}),
_.R("design:type",Boolean)],v$.prototype,"chipBarIsSticky",void 0);_.J([_.q({computed:"computeIsHomePage(isBrowsePage, data)"}),_.R("design:type",Boolean)],v$.prototype,"isHomePage",void 0);_.J([_.q({reflectToAttribute:!0}),_.R("design:type",Object)],v$.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.J([_.q(),_.R("design:type",Object)],v$.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.J([_.KP("guide"),_.R("design:type",Object)],v$.prototype,"guide",void 0);
_.J([_.KP("guide-service"),_.R("design:type",zRE)],v$.prototype,"guideService",void 0);_.J([_.KP("guide-inner-content"),_.R("design:type",HTMLDivElement)],v$.prototype,"guideInnerContent",void 0);_.J([_.q({selector:_.Uxj}),_.R("design:type",String)],v$.prototype,"frostedGlassMode",void 0);
_.J([_.xA("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"dispatchFrostedGlassMode",null);_.J([_.q({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.R("design:type",Object)],v$.prototype,"isFrostedGlassDisabled",void 0);
_.J([_.xA("isWatchPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"isWatchPageChanged",null);_.J([_.M("isHomePage","chipBarIsSticky"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],v$.prototype,"applyFrostedGlassToChipBar",null);_.J([_.q(),_.R("design:type",Object)],v$.prototype,"isChannelOrPlaylistPage",void 0);
_.J([_.Jc("isInlinePreviewEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"isInlinePreviewEnabledChanged",null);_.J([_.xA("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.J([_.xA("guidePersistentAndVisible","miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"observeGuideVisibility",null);_.J([_.l6("attached"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],v$.prototype,"onYtPageManagerAttached",null);_.J([_.xA("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],v$.prototype,"updateMastheadData",null);
_.J([_.l6("yt-set-theater-mode-enabled"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],v$.prototype,"onSetTheaterModeEnabled",null);_.J([_.l6("yt-page-type-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],v$.prototype,"onPageChanged",null);_.J([_.l6("yt-page-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"onPageDataUpdated",null);
_.J([_.l6("yt-request-panel-mode-change"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],v$.prototype,"onRequestPanelModeChange",null);_.J([_.l6("yt-guide-hover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"onGuideOpenButtonHover",null);_.J([_.l6("app-drawer-transitioned"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],v$.prototype,"onDrawerIronSelect",null);
_.J([_.l6("yt-add-element-to-app"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],v$.prototype,"onAddElementToApp",null);_.J([_.l6("yt-set-fullerscreen-styles"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"setFullscreen",null);_.J([_.l6("yt-open-hotkey-dialog"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v$.prototype,"onOpenHotkeyDialog",null);
_.J([_.k({is:"ytd-app"})],v$);_.FS().processSignal("eor");
_.rJ();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
